/* Tour Booking for WooCommerce - Public Styles */

/* ── Tour Grid ─────────────────────────────────── */
.tb-tour-grid {
    display: grid;
    gap: 24px;
    margin: 20px 0;
}
.tb-cols-2 { grid-template-columns: repeat(2, 1fr); }
.tb-cols-3 { grid-template-columns: repeat(3, 1fr); }
.tb-cols-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 768px) {
    .tb-tour-grid { grid-template-columns: 1fr !important; }
}
@media (max-width: 1024px) {
    .tb-cols-3, .tb-cols-4 { grid-template-columns: repeat(2, 1fr); }
}

.tb-tour-card {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.tb-tour-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    transform: translateY(-3px);
}
.tb-tour-card .tb-tour-thumb {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}
.tb-tour-card-body {
    padding: 16px;
}
.tb-tour-meta {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}
.tb-badge {
    background: #1a73e8;
    color: #fff;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 20px;
    font-weight: 600;
}
.tb-duration {
    font-size: 12px;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 4px;
}
.tb-tour-title {
    font-size: 17px;
    font-weight: 700;
    margin: 0 0 8px;
}
.tb-tour-title a { color: #1e293b; text-decoration: none; }
.tb-tour-title a:hover { color: #1a73e8; }
.tb-tour-excerpt { color: #64748b; font-size: 13px; margin: 0 0 12px; }
.tb-tour-price { font-size: 18px; font-weight: 700; color: #1a73e8; margin-bottom: 12px; }
.tb-btn-book {
    display: inline-block;
    background: #1a73e8;
    color: #fff !important;
    padding: 8px 18px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s;
}
.tb-btn-book:hover { background: #1558b0; color: #fff !important; }

/* ── Booking Calendar ─────────────────────────── */
.tb-booking-calendar {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 16px;
    border-radius: 10px;
    margin: 20px 0;
}
.tb-booking-calendar h4 {
    margin: 0 0 12px;
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
}
.tb-fixed-dates {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    padding: 12px;
    border-radius: 6px;
}
.tb-fixed-dates p { margin: 4px 0; }

/* ── Guest Pricing ────────────────────────────── */
.tb-guest-pricing {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 16px;
    border-radius: 10px;
    margin: 20px 0;
}
.tb-guest-pricing h4 { margin: 0 0 12px; font-size: 16px; font-weight: 700; }
.tb-guest-table { width: 100%; border-collapse: collapse; }
.tb-guest-table th, .tb-guest-table td {
    border: 1px solid #e2e8f0;
    padding: 8px 12px;
}
.tb-guest-table thead { background: #f1f5f9; }
.tb-guest-total { margin-top: 12px; font-size: 16px; }

/* ── Extra Services ───────────────────────────── */
.tb-extra-services {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 16px;
    border-radius: 10px;
    margin: 20px 0;
}
.tb-extra-services h4 { margin: 0 0 12px; font-size: 16px; font-weight: 700; }

/* ── Deposit Choice ───────────────────────────── */
.tb-deposit-choice {
    background: #fffbeb;
    border: 1px solid #fde68a;
    padding: 14px;
    border-radius: 8px;
    margin: 20px 0;
}
.tb-deposit-choice h4 { margin: 0 0 10px; }
.tb-deposit-choice label { display: block; margin-bottom: 6px; cursor: pointer; }

/* ══════════════════════════════════════════════
   Itinerary Accordion
   ══════════════════════════════════════════════ */

/* Outer wrapper */
.tb-accordion {
    margin: 0;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
}

/* Meta bar: day count + expand-all toggle */
.tb-accordion-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 18px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}
.tb-accordion-count {
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.tb-accordion-toggle-all {
    background: none;
    border: none;
    padding: 0;
    font-size: 12px;
    font-weight: 500;
    color: #1a73e8;
    cursor: pointer;
    line-height: 1;
}
.tb-accordion-toggle-all:hover { text-decoration: underline; }

/* Individual item */
.tb-accordion-item {
    border-bottom: 1px solid #e2e8f0;
}
.tb-accordion-item:last-child { border-bottom: none; }

/* Header button */
.tb-accordion-header {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 14px 18px;
    background: #fff;
    border: none;
    cursor: pointer;
    text-align: left;
    gap: 12px;
    transition: background 0.15s;
    font-family: inherit;
}
.tb-accordion-header:hover { background: #f8fafc; }
.tb-accordion-item.open .tb-accordion-header { background: #f0f7ff; }

/* Day badge (e.g. "Day 1") */
.tb-accordion-day-badge {
    flex-shrink: 0;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #fff;
    background: #1a73e8;
    border-radius: 20px;
    padding: 3px 10px;
    min-width: 48px;
    text-align: center;
    transition: background 0.15s;
}
.tb-accordion-item.open .tb-accordion-day-badge { background: #1558b0; }

/* Day title text */
.tb-accordion-title {
    flex: 1;
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.4;
}

/* +/− icon — CSS-drawn, no emoji */
.tb-accordion-icon {
    flex-shrink: 0;
    position: relative;
    width: 20px;
    height: 20px;
    border: 1.5px solid #cbd5e1;
    border-radius: 50%;
    transition: border-color 0.15s, transform 0.3s;
}
/* horizontal bar (always visible) */
.tb-accordion-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 1.5px;
    background: #64748b;
    border-radius: 1px;
    transition: background 0.15s;
}
/* vertical bar (hidden when open) */
.tb-accordion-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(0deg);
    width: 1.5px;
    height: 8px;
    background: #64748b;
    border-radius: 1px;
    transition: transform 0.3s ease, opacity 0.2s, background 0.15s;
}
.tb-accordion-item.open .tb-accordion-icon {
    border-color: #1a73e8;
}
.tb-accordion-item.open .tb-accordion-icon::before,
.tb-accordion-item.open .tb-accordion-icon::after {
    background: #1a73e8;
}
/* Rotate vertical bar to 0deg = disappears into horizontal bar = minus sign */
.tb-accordion-item.open .tb-accordion-icon::after {
    transform: translate(-50%, -50%) rotate(90deg);
    opacity: 0;
}

/* Body — hidden by default via [hidden] attribute */
.tb-accordion-body {
    overflow: hidden;
}
.tb-accordion-body[hidden] {
    display: none; /* fallback for browsers without JS */
}
/* When JS removes [hidden] but is animating closed, ensure still visible */
.tb-accordion-body:not([hidden]) {
    display: block;
}

.tb-accordion-body-inner {
    padding: 4px 18px 20px 18px;
    border-left: 3px solid #1a73e8;
    margin: 0 18px 14px;
    border-radius: 0 0 4px 4px;
}

/* Day description text */
.tb-day-desc {
    font-size: 14px;
    color: #374151;
    line-height: 1.75;
    margin: 0;
}
.tb-day-empty {
    font-size: 13px;
    color: #94a3b8;
    margin: 0;
    font-style: italic;
}

/* No itinerary message */
.tb-no-itinerary {
    color: #94a3b8;
    font-style: italic;
    font-size: 14px;
}

/* ── Inclusions Tab ───────────────────────────── */
.tb-inclusions ul { list-style: none; padding: 0; }
.tb-inclusions li { padding: 4px 0; }
.tb-inclusions h4 { margin: 16px 0 8px; }

/* ── Checkout Fields ──────────────────────────── */
.tb-checkout-fields {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
}
.tb-checkout-fields h3 { margin: 0 0 16px; }

/* ── Map ──────────────────────────────────────── */
.tb-map-wrap {
    border-radius: 10px;
    overflow: hidden;
    margin: 20px 0;
    border: 1px solid #e2e8f0;
}

/* ── Highlights List ──────────────────────────── */
.tb-highlights-list {
    list-style: none;
    padding: 0;
    columns: 2;
}
.tb-highlights-list li {
    padding: 6px 0 6px 24px;
    position: relative;
}
.tb-highlights-list li::before {
    content: '✓';
    color: #22c55e;
    font-weight: 700;
    position: absolute;
    left: 0;
}

@media (max-width: 600px) {
    .tb-highlights-list { columns: 1; }
}

/* ══════════════════════════════════════════════
   Departure City Selector + Date Grid
   ══════════════════════════════════════════════ */

.tb-city-section {
    margin: 20px 0;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}

.tb-section-head {
    padding: 14px 16px 10px;
    border-bottom: 1px solid #f1f5f9;
}
.tb-section-head h4 {
    font-size: 15px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 2px;
}
.tb-section-sub {
    font-size: 12px;
    color: #94a3b8;
    margin: 0;
}

/* ── City pills ─────────────────────────────── */
.tb-city-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 14px 16px;
    border-bottom: 1px solid #f1f5f9;
}

.tb-city-pill {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: 1.5px solid #e2e8f0;
    border-radius: 50px;
    background: #f8fafc;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    color: #475569;
    transition: border-color 0.15s, background 0.15s, color 0.15s, box-shadow 0.15s;
    white-space: nowrap;
}
.tb-city-pill:hover {
    border-color: #1a73e8;
    color: #1a73e8;
    background: #eff6ff;
}
.tb-city-pill.active {
    border-color: #1a73e8;
    background: #1a73e8;
    color: #fff;
    box-shadow: 0 2px 8px rgba(26,115,232,0.3);
}
.tb-city-emoji {
    font-size: 16px;
    line-height: 1;
}
.tb-city-code {
    font-size: 10px;
    opacity: 0.75;
    font-weight: 400;
    letter-spacing: 0.05em;
}

/* ── Date grid wrapper ───────────────────────── */
.tb-date-grid-wrap {
    padding: 14px 16px 16px;
}
.tb-date-grid-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 6px;
}
#tb-city-date-label {
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
}
.tb-date-grid-legend {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 11px;
    color: #64748b;
}
.tb-leg {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 2px;
    margin-right: 3px;
}
.tb-leg-avail { background: #22c55e; }
.tb-leg-low   { background: #f59e0b; }
.tb-leg-full  { background: #e2e8f0; }

/* ── Date grid (scrollable row of cards) ─────── */
.tb-date-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.tb-date-grid-empty {
    font-size: 13px;
    color: #94a3b8;
    padding: 16px 0;
    width: 100%;
}

/* ── Individual date slot card ─────────────── */
.tb-date-slot {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 90px;
    padding: 10px 12px;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    background: #f8fafc;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
    position: relative;
    user-select: none;
}
.tb-date-slot:hover:not(.sold-out) {
    border-color: #1a73e8;
    background: #eff6ff;
}
.tb-date-slot.selected {
    border-color: #1a73e8;
    background: #1a73e8;
    box-shadow: 0 2px 10px rgba(26,115,232,0.3);
}
.tb-date-slot.sold-out {
    opacity: 0.45;
    cursor: not-allowed;
    pointer-events: none;
}
.tb-date-slot.limited {
    border-color: #f59e0b;
}

.tb-slot-month {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #94a3b8;
    margin-bottom: 1px;
}
.tb-date-slot.selected .tb-slot-month { color: rgba(255,255,255,0.8); }

.tb-slot-day {
    font-size: 22px;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.1;
}
.tb-date-slot.selected .tb-slot-day { color: #fff; }

.tb-slot-weekday {
    font-size: 10px;
    color: #94a3b8;
    margin-bottom: 6px;
}
.tb-date-slot.selected .tb-slot-weekday { color: rgba(255,255,255,0.75); }

.tb-slot-price {
    font-size: 12px;
    font-weight: 700;
    color: #1a73e8;
    background: #eff6ff;
    border-radius: 4px;
    padding: 2px 6px;
    margin-bottom: 4px;
}
.tb-date-slot.selected .tb-slot-price {
    background: rgba(255,255,255,0.25);
    color: #fff;
}

.tb-slot-avail {
    font-size: 10px;
    color: #22c55e;
    font-weight: 500;
}
.tb-slot-avail.low   { color: #f59e0b; }
.tb-slot-avail.full  { color: #94a3b8; }
.tb-date-slot.selected .tb-slot-avail { color: rgba(255,255,255,0.85); }

/* ── Selected departure summary bar ──────────── */
.tb-selected-dep {
    margin-top: 12px;
    background: linear-gradient(135deg, #f0f7ff 0%, #e8f4fd 100%);
    border: 1px solid #bfdbfe;
    border-radius: 10px;
    padding: 12px 16px;
    animation: tbSlideIn 0.2s ease;
}
@keyframes tbSlideIn {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}
.tb-selected-dep-inner {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.tb-selected-dep-inner > div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.tb-selected-dep-inner strong {
    font-size: 14px;
    color: #1e293b;
}
.tb-selected-dep-inner span {
    font-size: 12px;
    color: #64748b;
}
.tb-sel-price-wrap {
    margin-left: auto;
    align-items: flex-end !important;
}
.tb-sel-price-wrap strong {
    font-size: 20px !important;
    color: #1a73e8 !important;
}
.tb-sel-seats {
    font-size: 12px;
    color: #64748b;
}

@media (max-width: 600px) {
    .tb-city-pills { gap: 6px; }
    .tb-city-pill  { padding: 6px 12px; font-size: 12px; }
    .tb-date-slot  { min-width: 75px; padding: 8px 8px; }
    .tb-slot-day   { font-size: 18px; }
}

/* ── City validation error ────────────────────── */
.tb-city-validation-error {
    margin-bottom: 12px;
}

/* ── Selected dep bar: fix gradient → flat ───── */
.tb-selected-dep {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 10px;
    padding: 12px 16px;
    margin-top: 12px;
    animation: tbFadeIn 0.2s ease;
}
@keyframes tbFadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Elementor Editor Placeholders ───────────── */
.tb-elementor-placeholder {
    background: #f8fafc;
    border: 2px dashed #cbd5e1;
    border-radius: 8px;
    padding: 24px 20px;
    text-align: center;
    color: #64748b;
    font-size: 13px;
}
.tb-elementor-placeholder p { margin: 0; }

/* ── Inclusions Widget ────────────────────────── */
.tb-inc-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 5px 0;
    font-size: 14px;
}
.tb-inc-icon {
    flex-shrink: 0;
    font-weight: 700;
    margin-top: 1px;
}
.tb-inc-heading {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 12px;
}

/* ── Info Bar Widget ──────────────────────────── */
.tb-info-bar {
    flex-wrap: wrap;
}
.tb-info-item {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px 16px;
    background: #f8fafc;
}
.tb-info-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #64748b;
    margin-bottom: 2px;
}
.tb-info-value {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
}
.tb-info-icon {
    font-size: 20px;
    flex-shrink: 0;
}

/* ── Highlights Grid ──────────────────────────── */
.tb-highlights-grid {
    gap: 10px;
}
.tb-hl-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 6px 0;
    font-size: 14px;
    color: #374151;
}
.tb-hl-icon {
    color: #22c55e;
    font-weight: 700;
    font-size: 15px;
    flex-shrink: 0;
    margin-top: 1px;
}
.tb-highlights-heading {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 16px;
}

/* ── Tour Price Widget ────────────────────────── */
.tb-price-box {
    line-height: 1.2;
}
.tb-price-from-label {
    font-size: 13px;
    color: #64748b;
    font-weight: 500;
}
.tb-price-amount {
    font-size: 28px;
    font-weight: 700;
    color: #1a73e8;
    line-height: 1;
}
.tb-price-amount .woocommerce-Price-amount {
    color: inherit;
    font-size: inherit;
    font-weight: inherit;
}
.tb-price-per-person {
    font-size: 13px;
    color: #64748b;
}
.tb-price-emi {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 13px;
    background: #ecfdf5;
    color: #047857;
}
.tb-price-deposit {
    font-size: 12px;
    color: #64748b;
}

/* ── Enquiry Form Widget ──────────────────────── */
.tb-enquiry-wrap {
    border-radius: 12px;
}
.tb-enquiry-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 4px;
    color: #1e293b;
}
.tb-enquiry-subtitle {
    font-size: 13px;
    color: #64748b;
    margin: 0 0 16px;
}
.tb-eq-field {
    width: 100%;
    display: block;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 10px 12px;
    font-size: 14px;
    background: #f8fafc;
    box-sizing: border-box;
    transition: border-color 0.15s;
    font-family: inherit;
}
.tb-eq-field:focus {
    outline: none;
    border-color: #1a73e8;
    background: #fff;
}
.tb-eq-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 4px;
}
.tb-eq-submit {
    width: 100%;
    padding: 12px;
    background: #1a73e8;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    font-family: inherit;
}
.tb-eq-submit:hover { background: #1558b0; }
.tb-eq-submit:disabled { opacity: 0.7; cursor: not-allowed; }

@media (max-width: 480px) {
    .tb-enquiry-form .two-col-grid {
        grid-template-columns: 1fr !important;
    }
}

