﻿/* ==========================================================================
   Wild Boar Safaris - Kilimanjaro Pricing & Price List Modal
   Shared by the Kilimanjaro guide family.
   Extracted from routes.css so guide pages can use the same price sheet
   without loading the full route stylesheet.
   ========================================================================== */

/* ── On-page Section (Reduced Gap & No Border-Top) ─────────────────────── */
.wbs-pricing-section {
    padding: 24px 24px 20px;
    background: #FFFFFF;
    font-family: 'Outfit', sans-serif;
    border-top: none;
}

.wbs-pricing-container {
    max-width: 1040px;
    margin: 0 auto;
    text-align: center;
}

.wbs-pricing-header {
    margin-bottom: 24px;
}

.wbs-pricing-header h2 {
    font-size: clamp(28px, 3.5vw, 42px);
    font-weight: 800;
    color: #111827;
    line-height: 1.2;
    margin: 0 0 16px;
    letter-spacing: -0.5px;
}

.wbs-pricing-header p.wbs-pricing-intro {
    font-size: 15.5px;
    color: #4B5563;
    line-height: 1.8;
    max-width: 780px;
    margin: 0 auto 28px;
}

/* Season Explainer Cards on Main Page */
.wbs-pricing-season-explainer {
    max-width: 960px;
    margin: 0 auto 30px;
    text-align: left;
}

.wbs-pricing-season-explainer > p {
    font-size: 14px;
    color: #6B7280;
    margin-bottom: 16px;
    text-align: center;
    font-weight: 500;
}

.wbs-season-explainer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 16px;
}

.wbs-season-explainer-card {
    background: #FFFFFF;
    border: 1px solid #D5DBD8;
    border-radius: 6px;
    padding: 20px 20px 18px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.wbs-season-explainer-card h4 {
    font-size: 13.5px;
    font-weight: 700;
    color: #1E3A2B;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.wbs-season-explainer-card .tag-gold {
    background: #1E3A2B;
    color: #B57833;
    font-size: 9.5px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.wbs-season-explainer-card .explainer-dates {
    font-size: 11.5px;
    color: #B57833;
    font-weight: 600;
    margin-bottom: 4px;
}

.wbs-season-explainer-card p {
    font-size: 12.5px;
    color: #4B5563;
    line-height: 1.6;
    margin: 0;
}

.wbs-solo-explainer-note {
    font-size: 12.5px;
    color: #4B5563;
    background: #F9FAFB;
    border: 1px dashed #D1D5DB;
    border-radius: 6px;
    padding: 12px 18px;
    line-height: 1.6;
    text-align: left;
    margin: 0;
}

/* Season status banner on page */
.wbs-season-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #FAF8F5;
    border: 1px solid #D5DBD8;
    border-radius: 6px;
    padding: 10px 22px;
    margin: 0 0 28px;
    font-size: 13px;
    color: #1E3A2B;
}

.wbs-season-status-pill .status-dot {
    width: 8px;
    height: 8px;
    background: #B57833;
    border-radius: 50%;
    display: inline-block;
}

.wbs-season-status-pill strong {
    font-weight: 700;
}

.wbs-season-status-pill span.offer-badge {
    background: #1E3A2B;
    color: #B57833;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.5px;
    padding: 2px 7px;
    border-radius: 4px;
    text-transform: uppercase;
}

/* Trigger button with border-radius */
.wbs-price-trigger-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 18px 44px;
    background: #1E3A2B;
    color: #FFFFFF;
    font-family: 'Outfit', sans-serif;
    font-size: 13.5px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    border: 1px solid #1E3A2B;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.wbs-price-trigger-btn:hover {
    background: #B57833;
    border-color: #B57833;
    color: #FFFFFF;
}

.wbs-price-trigger-btn i {
    color: #B57833;
    font-size: 15px;
    transition: color 0.2s ease;
}

.wbs-price-trigger-btn:hover i {
    color: #FFFFFF;
}

.wbs-trigger-sub {
    display: block;
    font-size: 12.5px;
    color: #6B7280;
    margin-top: 14px;
}

/* ==========================================================================
   PRICE LIST MODAL (Exact PDF Sheet Style)
   ========================================================================== */
.wbs-price-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    background: rgba(10, 20, 15, 0.75);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    padding: 30px 16px;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.wbs-price-modal-backdrop::-webkit-scrollbar { display: none; }

.wbs-price-modal-backdrop.is-visible {
    opacity: 1;
    pointer-events: all;
}

/* Document Sheet */
.wbs-pdf-sheet {
    background: #FFFFFF;
    width: 100%;
    max-width: 1140px;
    margin: auto;
    padding: 44px 48px 40px;
    box-shadow: 0 25px 70px rgba(0,0,0,0.35);
    border: 1px solid #D5DBD8;
    border-radius: 8px;
    position: relative;
    font-family: 'Outfit', sans-serif;
    color: #111827;
}

/* Close button with border-radius */
.wbs-pdf-sheet-close {
    position: absolute;
    top: 24px;
    right: 28px;
    width: 36px;
    height: 36px;
    border: 1px solid #D5DBD8;
    border-radius: 6px;
    background: #FFFFFF;
    color: #1E3A2B;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10;
}

.wbs-pdf-sheet-close:hover {
    background: #1E3A2B;
    color: #FFFFFF;
    border-color: #1E3A2B;
}

/* Document Top Header (Logo + Contact) */
.wbs-pdf-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 22px;
    border-bottom: 1px solid #E5E7EB;
    margin-bottom: 24px;
}

.wbs-pdf-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.wbs-pdf-brand img.pdf-brand-logo {
    height: 48px;
    width: auto;
    display: block;
}

.wbs-pdf-brand-text h3 {
    font-size: 22px;
    font-weight: 800;
    color: #1E3A2B;
    margin: 0 0 2px;
    letter-spacing: -0.3px;
}

.wbs-pdf-brand-text p {
    font-size: 12.5px;
    color: #6B7280;
    margin: 0;
}

.wbs-pdf-contact {
    text-align: right;
    font-size: 12.5px;
    color: #4B5563;
    padding-right: 48px; /* space for close btn */
}

.wbs-pdf-contact span.pdf-phones {
    font-weight: 700;
    color: #1E3A2B;
    display: block;
    margin-top: 3px;
}

/* Document Title Block */
.wbs-pdf-title-block {
    margin-bottom: 20px;
}

.wbs-pdf-eyebrow {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 3.5px;
    text-transform: uppercase;
    color: #B57833;
    margin-bottom: 8px;
    display: block;
}

.wbs-pdf-title-block h1,
.wbs-pdf-title-block h2 {
    font-size: 28px;
    font-weight: 800;
    color: #111827;
    margin: 0 0 8px;
    letter-spacing: -0.5px;
}

.wbs-pdf-title-block p.wbs-pdf-lead {
    font-size: 13.5px;
    color: #4B5563;
    line-height: 1.6;
    margin: 0 0 14px;
    max-width: 980px;
}

/* Live Season Auto-Detection Banner inside Sheet */
.wbs-pdf-season-notice {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #FAF8F5;
    border: 1px solid #E2E8E4;
    border-left: 4px solid #B57833;
    border-radius: 4px;
    padding: 10px 16px;
    font-size: 12.5px;
    color: #1E3A2B;
    margin-bottom: 18px;
    flex-wrap: wrap;
    gap: 8px;
}

.wbs-pdf-season-notice strong {
    font-weight: 700;
}

.wbs-pdf-season-notice .season-note-right {
    font-size: 11.5px;
    color: #6B7280;
    font-style: italic;
}

/* Table Styling */
.wbs-pdf-table-wrap {
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    margin-bottom: 14px;
    border: 1px solid #D5DBD8;
    border-radius: 4px;
}

.wbs-pdf-table-wrap::-webkit-scrollbar { display: none; }

.wbs-pdf-table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Outfit', sans-serif;
    font-size: 13px;
    min-width: 980px;
}

/* Table Header */
.wbs-pdf-table thead th {
    background: #1E3A2B;
    color: #FFFFFF;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    padding: 12px 8px;
    text-align: center;
    border-right: 1px solid rgba(255, 255, 255, 0.12);
    vertical-align: middle;
}

.wbs-pdf-table thead th:first-child {
    text-align: left;
    padding-left: 14px;
    width: 150px;
}

.wbs-pdf-table thead th:nth-child(2) {
    width: 90px;
}

.wbs-pdf-table thead th .th-sub {
    display: block;
    font-size: 9px;
    font-weight: 400;
    letter-spacing: 0.4px;
    text-transform: none;
    color: #D1D5DB;
    margin-top: 2px;
}

.wbs-pdf-table thead th .th-sub.gold {
    color: #F0B86E;
    font-weight: 600;
}

/* Table Body */
.wbs-pdf-table tbody td {
    padding: 10px 8px;
    text-align: center;
    border: 1px solid #E2E8E4;
    color: #1F2937;
    font-size: 13px;
    font-weight: 500;
}

.wbs-pdf-table tbody td.route-cell {
    text-align: left;
    padding-left: 14px;
    font-weight: 700;
    color: #111827;
    background: #FFFFFF;
    vertical-align: middle;
    border-right: 1px solid #D5DBD8;
}

.wbs-pdf-table tbody td.dur-cell {
    color: #4B5563;
    font-size: 12.5px;
    font-weight: 600;
}

.wbs-pdf-table tbody td.solo-cell {
    font-weight: 600;
    color: #111827;
}

.wbs-pdf-table tbody td.ask-cell {
    color: #B57833;
    font-weight: 700;
    font-size: 12px;
}

.wbs-pdf-table tbody tr.row-alt td:not(.route-cell) {
    background: #FAFBFB;
}

.wbs-pdf-table-note {
    font-size: 12.5px;
    color: #4B5563;
    line-height: 1.5;
    margin: 12px 0 28px;
}

/* Inclusions / Exclusions */
.wbs-pdf-meta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 36px;
    padding-top: 20px;
    border-top: 1px solid #E5E7EB;
    margin-bottom: 24px;
}

.wbs-pdf-meta-col h4 {
    font-size: 14px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 14px;
    letter-spacing: -0.2px;
}

.wbs-pdf-meta-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.wbs-pdf-meta-col ul li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 12.5px;
    color: #4B5563;
    line-height: 1.55;
}

.wbs-pdf-meta-col ul li .pdf-bullet {
    color: #B57833;
    font-size: 9px;
    margin-top: 4px;
    flex-shrink: 0;
}

/* Document Bottom Footer */
.wbs-pdf-doc-footer {
    text-align: center;
    font-size: 11.5px;
    color: #9CA3AF;
    padding: 16px 0 18px;
    border-top: 1px solid #E5E7EB;
}

/* Action Buttons with Border Radius */
.wbs-pdf-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    flex-wrap: wrap;
    padding-top: 16px;
    border-top: 1px dashed #D5DBD8;
}

.wbs-pdf-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 24px;
    font-family: 'Outfit', sans-serif;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.wbs-pdf-btn.primary {
    background: #B57833;
    color: #FFFFFF;
    border-color: #B57833;
}
.wbs-pdf-btn.primary:hover {
    background: #9E6426;
    border-color: #9E6426;
}

.wbs-pdf-btn.secondary {
    background: #1E3A2B;
    color: #FFFFFF;
    border-color: #1E3A2B;
}
.wbs-pdf-btn.secondary:hover {
    background: #B57833;
    border-color: #B57833;
}

.wbs-pdf-btn.outline {
    background: #FFFFFF;
    color: #1E3A2B;
    border-color: #D5DBD8;
}
.wbs-pdf-btn.outline:hover {
    background: #FAF8F5;
    border-color: #1E3A2B;
}

/* B2B SUB-MODAL with Border Radius */
.wbs-b2b-overlay {
    position: fixed;
    inset: 0;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(10, 20, 15, 0.85);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.wbs-b2b-overlay.is-visible {
    opacity: 1;
    pointer-events: all;
}

.wbs-b2b-modal {
    background: #FFFFFF;
    width: 100%;
    max-width: 560px;
    box-shadow: 0 30px 90px rgba(0,0,0,0.50);
    border: 1px solid #D5DBD8;
    border-radius: 8px;
    max-height: 90vh;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.wbs-b2b-modal::-webkit-scrollbar { display: none; }

.wbs-b2b-header {
    background: #1E3A2B;
    padding: 20px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top-left-radius: 7px;
    border-top-right-radius: 7px;
}

.wbs-b2b-header h3 {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #FFFFFF;
    margin: 0;
}

.wbs-b2b-close {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 4px;
    color: #FFFFFF;
    width: 30px;
    height: 30px;
    cursor: pointer;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.wbs-b2b-close:hover {
    background: #B57833;
    border-color: #B57833;
}

.wbs-b2b-body {
    padding: 26px 28px 30px;
}

.wbs-b2b-body p.wbs-b2b-intro {
    font-size: 13px;
    color: #4B5563;
    line-height: 1.6;
    margin: 0 0 20px;
}

.wbs-b2b-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.wbs-b2b-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.wbs-b2b-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.wbs-b2b-field label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: #1E3A2B;
}

.wbs-b2b-field input,
.wbs-b2b-field select,
.wbs-b2b-field textarea {
    font-family: 'Outfit', sans-serif;
    font-size: 13.5px;
    color: #111827;
    background: #FAFBFB;
    border: 1px solid #D1D5DB;
    border-radius: 4px;
    padding: 10px 12px;
    outline: none;
    transition: all 0.2s ease;
    width: 100%;
    box-sizing: border-box;
}

.wbs-b2b-field input:focus,
.wbs-b2b-field select:focus,
.wbs-b2b-field textarea:focus {
    border-color: #B57833;
    background: #FFFFFF;
}

.wbs-b2b-field textarea {
    resize: vertical;
    min-height: 80px;
}

.wbs-b2b-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 26px;
    background: #1E3A2B;
    color: #FFFFFF;
    font-family: 'Outfit', sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    border: 1px solid #1E3A2B;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 4px;
}

.wbs-b2b-submit:hover {
    background: #B57833;
    border-color: #B57833;
}

.wbs-b2b-success {
    display: none;
    text-align: center;
    padding: 22px;
    border: 1px solid #B57833;
    border-radius: 6px;
    background: #FAF8F5;
}

.wbs-b2b-success i {
    font-size: 34px;
    color: #B57833;
    margin-bottom: 10px;
}

.wbs-b2b-success p {
    font-size: 14px;
    color: #111827;
    line-height: 1.5;
}

/* Responsive adjustments */
@media (max-width: 820px) {
    .wbs-season-explainer-grid {
        grid-template-columns: 1fr;
    }

    .wbs-pdf-sheet {
        padding: 28px 20px 24px;
    }

    .wbs-pdf-topbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }

    .wbs-pdf-contact {
        text-align: left;
        padding-right: 0;
    }

    .wbs-pdf-meta-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .wbs-pdf-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .wbs-pdf-btn {
        justify-content: center;
    }

    .wbs-b2b-row {
        grid-template-columns: 1fr;
    }
}

/* ── On-Page Inclusions & Exclusions Flex Cards ─────────────────────────── */
.wbs-pricing-ie-flex {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 48px;
    text-align: left;
}

.wbs-pricing-ie-card {
    background: #FFFFFF;
    border: 1px solid #D5DBD8;
    border-radius: 8px;
    padding: 30px 28px 28px;
    display: flex;
    flex-direction: column;
}

.wbs-pricing-ie-head {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-bottom: 18px;
    margin-bottom: 20px;
    border-bottom: 1px solid #E5E7EB;
}

.wbs-pricing-ie-icon {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    flex-shrink: 0;
}

.wbs-pricing-ie-icon.incl {
    background: #1E3A2B;
    color: #B57833;
}

.wbs-pricing-ie-icon.excl {
    background: #FAF0F0;
    color: #8E2B3C;
    border: 1px solid #F5D5D8;
}

.wbs-pricing-ie-head h3 {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 2px;
    letter-spacing: -0.3px;
}

.wbs-pricing-ie-head p {
    font-size: 12.5px;
    color: #6B7280;
    margin: 0;
}

.wbs-pricing-ie-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.wbs-pricing-ie-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 13.5px;
    color: #374151;
    line-height: 1.55;
}

.wbs-pricing-ie-card.incl .wbs-pricing-ie-list li i {
    color: #B57833;
    font-size: 14px;
    margin-top: 3px;
    flex-shrink: 0;
}

.wbs-pricing-ie-card.excl .wbs-pricing-ie-list li i {
    color: #9CA3AF;
    font-size: 14px;
    margin-top: 3px;
    flex-shrink: 0;
}

@media (max-width: 820px) {
    .wbs-pricing-ie-flex {
        grid-template-columns: 1fr;
        margin-top: 36px;
    }
}

/* Keep closed dialogs out of the tab order as well as out of sight */
.wbs-price-modal-backdrop,
.wbs-b2b-overlay {
    visibility: hidden;
}

.wbs-price-modal-backdrop.is-visible,
.wbs-b2b-overlay.is-visible {
    visibility: visible;
}

/* ==========================================================================
   GENERIC SHEET MODALS (packing list / food menu / gear rental)
   Same .wbs-pdf-* skeleton as the price modal, with body blocks rendered
   from includes/kilimanjaro-sheets.php.
   ========================================================================== */

/* Section title above each body block */
.wbs-pdf-block-title {
    font-size: 15px;
    font-weight: 800;
    color: #111827;
    margin: 26px 0 10px;
    letter-spacing: -0.2px;
}

.wbs-pdf-sheet .wbs-pdf-block-title:first-child {
    margin-top: 20px;
}

/* Sheet tables reset the price-matrix column widths and left-align text */
.wbs-pdf-table.is-sheet {
    min-width: 720px;
}

.wbs-pdf-table.is-sheet thead th,
.wbs-pdf-table.is-sheet thead th:first-child,
.wbs-pdf-table.is-sheet thead th:nth-child(2) {
    width: auto;
    padding: 11px 10px;
}

.wbs-pdf-table.is-sheet thead th.th-tick {
    width: 46px;
    padding: 11px 4px;
}

.wbs-pdf-table.is-sheet tbody td {
    text-align: left;
    padding: 10px 12px;
    font-weight: 400;
    font-size: 12.5px;
    line-height: 1.5;
    color: #4B5563;
    vertical-align: top;
}

.wbs-pdf-table.is-sheet tbody td.td-item {
    font-weight: 700;
    color: #111827;
}

.wbs-pdf-table.is-sheet tbody td.td-num,
.wbs-pdf-table.is-sheet tbody td.td-price {
    text-align: center;
    font-weight: 700;
    color: #111827;
    white-space: nowrap;
}

.wbs-pdf-table.is-sheet tbody td.td-price {
    color: #B57833;
}

/* Printable tick box column */
.wbs-pdf-table.is-sheet tbody td.tick-cell {
    width: 46px;
    text-align: center;
    vertical-align: middle;
    padding: 10px 4px;
}

.wbs-pdf-table.is-sheet .pdf-tick {
    display: inline-block;
    width: 15px;
    height: 15px;
    border: 1.5px solid #B9C2BC;
    border-radius: 3px;
    background: #FAFBFB;
}

/* Single-column bullet list (meta grid variant) */
.wbs-pdf-meta-grid.is-single {
    grid-template-columns: 1fr;
}
