/* ═══════════════════════════════════════════════════════════
   Tour Booking Pro — Home sections + Quote popup
   Forest Green · Champagne Gold · Ivory  (mobile-first friendly)
   ═══════════════════════════════════════════════════════════ */
.tbp-chips-wrap, .tbp-trend, .tbp-mosaic, .tbp-hp, .tbp-gem, .tbp-quote-overlay, .tbp-quote-fab {
    --h-gold: var(--tbp-primary, #C9A227);
    --h-gold-dark: #A8841A;
    --h-green: var(--tbp-green, #12372A);
    --h-ivory: #F8F4EA;
    --h-ink: #171717;
    --h-muted: #5b5b55;
    --h-font: var(--gg-font-body, 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif);
    --h-head: var(--gg-font-heading, 'Playfair Display', Georgia, serif);
    font-family: var(--h-font);
    box-sizing: border-box;
}
.tbp-chips-wrap *, .tbp-trend *, .tbp-mosaic *, .tbp-hp *, .tbp-gem *, .tbp-quote-overlay *, .tbp-quote-fab * { box-sizing: border-box; }
.tbp-ph-ico { color: rgba(18,55,42,.35); }

/* ───────── Category chips (pill with round thumbnails) ───────── */
.tbp-chips-wrap { display: flex; justify-content: center; padding: 0 16px; }
.tbp-chips {
    display: flex; gap: 6px; max-width: 100%;
    background: #fff; border: 1px solid rgba(201,162,39,.35); border-radius: 999px;
    padding: 8px 12px; box-shadow: 0 12px 32px rgba(18,55,42,.14);
    overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.tbp-chips::-webkit-scrollbar { display: none; }
.tbp-chip {
    flex: 0 0 auto; display: inline-flex; align-items: center; gap: 10px;
    padding: 5px 16px 5px 5px; border-radius: 999px; text-decoration: none;
    color: var(--h-green); font-size: 13px; font-weight: 600; white-space: nowrap; min-height: 44px;
    transition: background .25s ease;
}
.tbp-chip:hover { background: var(--h-ivory); color: var(--h-green); }
.tbp-chip-img {
    width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0;
    background: #efe8d2 center/cover no-repeat; border: 2px solid var(--h-gold);
    display: inline-flex; align-items: center; justify-content: center; overflow: hidden;
}
.tbp-chip-img .tbp-ph-ico { width: 18px; height: 18px; }

/* ───────── Top trending destinations ───────── */
.tbp-trend { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 22px; }
.tbp-trend-card { display: block; text-align: center; text-decoration: none; color: var(--h-ink); }
.tbp-trend-img {
    display: flex; align-items: center; justify-content: center; aspect-ratio: 1 / 1.08;
    border-radius: 22px; overflow: hidden; background: #efe8d2;
    box-shadow: 0 10px 28px rgba(18,55,42,.12); border: 1px solid rgba(201,162,39,.2);
}
.tbp-trend-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.tbp-trend-card:hover .tbp-trend-img img { transform: scale(1.05); }
.tbp-trend-name { display: block; margin-top: 12px; font-size: 14.5px; font-weight: 700; color: var(--h-ink); }
.tbp-trend-card:hover .tbp-trend-name { color: var(--h-green); }

/* ───────── Seasonal journeys mosaic ───────── */
.tbp-mosaic { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: 170px; gap: 14px; }
.tbp-mosaic-item { position: relative; display: block; border-radius: 18px; overflow: hidden; background: #efe8d2; text-decoration: none; color: #fff; grid-column: span 4; box-shadow: 0 8px 24px rgba(18,55,42,.10); }
.tbp-mosaic-item:nth-child(6n+1) { grid-column: span 5; }
.tbp-mosaic-item:nth-child(6n+2) { grid-column: span 4; }
.tbp-mosaic-item:nth-child(6n+3) { grid-column: span 3; }
.tbp-mosaic-item:nth-child(6n+4) { grid-column: span 3; }
.tbp-mosaic-item:nth-child(6n+5) { grid-column: span 3; }
.tbp-mosaic-item:nth-child(6n+6) { grid-column: span 6; }
.tbp-mosaic-item:nth-child(6n+1):last-child { grid-column: span 12; }
.tbp-mosaic-item:nth-child(6n+2):last-child { grid-column: span 7; }
.tbp-mosaic-item:nth-child(6n+4):last-child { grid-column: span 12; }
.tbp-mosaic-item:nth-child(6n+5):last-child { grid-column: span 9; }
.tbp-mosaic-item img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.tbp-mosaic-item:hover img { transform: scale(1.05); }
.tbp-mosaic-ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.tbp-mosaic-shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(18,55,42,.82) 0%, rgba(18,55,42,.12) 55%, transparent 100%); }
.tbp-mosaic-text { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; }
.tbp-mosaic-text strong { font-family: var(--h-head); font-size: 17px; font-weight: 600; line-height: 1.25; color: #fff; }
.tbp-mosaic-text small { font-size: 12px; font-weight: 500; color: var(--tbp-gold-light, #E3C766); }

/* ───────── Handpicked holiday packages ───────── */
.tbp-hp { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.tbp-hp-card { position: relative; display: block; aspect-ratio: 3 / 4; border-radius: 22px; overflow: hidden; background: #efe8d2; text-decoration: none; box-shadow: 0 10px 28px rgba(18,55,42,.12); }
.tbp-hp-img { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.tbp-hp-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.tbp-hp-card:hover .tbp-hp-img img { transform: scale(1.05); }
.tbp-hp-box {
    position: absolute; left: 10px; right: 10px; bottom: 10px;
    background: #fff; border-radius: 16px; padding: 13px 15px 12px;
    box-shadow: 0 6px 20px rgba(18,55,42,.18); display: flex; flex-direction: column; gap: 3px;
}
.tbp-hp-title { font-family: var(--h-head); font-size: 17px; font-weight: 600; color: var(--h-ink); line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tbp-hp-dur { font-size: 11.5px; color: var(--h-muted); }
.tbp-hp-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; padding-top: 9px; border-top: 1px solid rgba(18,55,42,.09); }
.tbp-hp-price { font-size: 12.5px; color: var(--h-muted); }
.tbp-hp-price em { font-style: normal; }
.tbp-hp-price b { color: var(--h-green); font-weight: 700; font-size: 13.5px; }
.tbp-hp-go { font-size: 12.5px; font-weight: 700; color: var(--h-gold-dark); white-space: nowrap; }
.tbp-hp-go i { font-style: normal; display: inline-block; transition: transform .25s ease; }
.tbp-hp-card:hover .tbp-hp-go i { transform: translateX(3px); }

/* ───────── Hidden gem banner ───────── */
.tbp-gem {
    position: relative; display: flex; align-items: center; min-height: 340px; border-radius: 28px; overflow: hidden;
    background: var(--h-green) center/cover no-repeat; text-decoration: none; color: #fff;
    box-shadow: 0 16px 44px rgba(18,55,42,.22);
}
.tbp-gem-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(18,55,42,.9) 0%, rgba(18,55,42,.55) 55%, rgba(18,55,42,.15) 100%); }
.tbp-gem-body { position: relative; padding: 44px 52px; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; max-width: 640px; }
.tbp-gem-title { font-family: var(--h-head); font-size: clamp(36px, 5vw, 58px); font-weight: 700; line-height: 1.1; color: #fff; }
.tbp-gem-sub { font-size: 16px; color: rgba(248,244,234,.92); }
.tbp-gem-price { margin-top: 14px; background: #fff; color: var(--h-muted); font-size: 13px; padding: 9px 16px; border-radius: 10px; }
.tbp-gem-price b { color: var(--h-green); font-size: 15px; }

/* ───────── Request-a-Quote popup ───────── */
.tbp-quote-overlay {
    position: fixed; inset: 0; z-index: 99999; display: flex; align-items: center; justify-content: center;
    padding: 16px; background: rgba(18,55,42,.62); opacity: 0; transition: opacity .25s ease;
}
.tbp-quote-overlay[hidden] { display: none; }
.tbp-quote-overlay.is-open { opacity: 1; }
.tbp-quote-dialog {
    position: relative; width: min(720px, 100%); max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px);
    overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
    background: #fff; border-radius: 22px; border-top: 4px solid var(--h-gold);
    padding: 30px 32px 30px; box-shadow: 0 30px 80px rgba(0,0,0,.35);
}
.tbp-quote-close {
    position: absolute; top: 14px; right: 14px; width: 44px; height: 44px; border-radius: 50%;
    border: 0; background: var(--h-ivory); color: var(--h-green); font-size: 28px; line-height: 1; cursor: pointer;
}
.tbp-quote-close:hover { background: var(--h-gold); color: #fff; }
.tbp-quote-head { padding-right: 46px; margin-bottom: 20px; }
.tbp-quote-eyebrow { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--h-gold-dark); }
.tbp-quote-head h2 { margin: 4px 0 6px; font-family: var(--h-head); font-size: 30px; font-weight: 700; color: var(--h-green); line-height: 1.2; }
.tbp-quote-head p { margin: 0; font-size: 14px; color: var(--h-muted); }
.tbp-quote-form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.tbp-q-full, .tbp-quote-msg, .tbp-quote-submit { grid-column: 1 / -1; }
.tbp-q-field label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 700; color: var(--h-green); }
.tbp-q-field label i { color: var(--h-gold-dark); font-style: normal; }
.tbp-q-field input, .tbp-q-field textarea {
    width: 100%; padding: 13px 14px; font: 400 16px/1.4 var(--h-font); color: var(--h-ink);
    background: #fff; border: 1px solid rgba(18,55,42,.22); border-radius: 10px; outline: none; appearance: none; -webkit-appearance: none;
    transition: border-color .2s ease, box-shadow .2s ease; min-height: 48px;
}
.tbp-q-field textarea { resize: vertical; min-height: 96px; }
.tbp-q-field input:focus, .tbp-q-field textarea:focus { border-color: var(--h-gold); box-shadow: 0 0 0 3px rgba(201,162,39,.2); }
.tbp-q-field input::placeholder, .tbp-q-field textarea::placeholder { color: rgba(23,23,23,.4); }
.tbp-quote-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.tbp-quote-msg { font-size: 14px; border-radius: 10px; }
.tbp-quote-msg.ok, .tbp-quote-msg.err { padding: 12px 14px; }
.tbp-quote-msg.ok { background: rgba(46,125,79,.1); color: #2e7d4f; border: 1px solid rgba(46,125,79,.35); }
.tbp-quote-msg.err { background: rgba(192,57,43,.08); color: #c0392b; border: 1px solid rgba(192,57,43,.35); }
.tbp-quote-submit {
    justify-self: start; padding: 15px 34px; border: 0; border-radius: 999px; cursor: pointer;
    background: var(--h-gold); color: #fff; font: 700 15px var(--h-font); letter-spacing: .02em; min-height: 50px;
    transition: background .25s ease, color .25s ease;
}
.tbp-quote-submit:hover { background: var(--h-green); color: var(--tbp-gold-light, #E3C766); }
.tbp-quote-submit[disabled] { opacity: .7; cursor: wait; }
html.tbp-quote-lock, html.tbp-quote-lock body { overflow: hidden; }
html.tbp-quote-lock .tbp-quote-fab { display: none; }

/* floating button */
.tbp-quote-fab {
    position: fixed; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); z-index: 9990;
    display: inline-flex; align-items: center; gap: 8px; padding: 14px 22px; border: 0; border-radius: 999px; cursor: pointer;
    background: var(--h-gold); color: #fff; font: 700 14px var(--h-font); letter-spacing: .02em;
    box-shadow: 0 10px 26px rgba(18,55,42,.3); transition: background .25s ease, color .25s ease;
}
.tbp-fab-right { right: calc(18px + env(safe-area-inset-right, 0px)); }
.tbp-fab-left  { left: calc(18px + env(safe-area-inset-left, 0px)); }
.tbp-quote-fab:hover { background: var(--h-green); color: var(--tbp-gold-light, #E3C766); }

/* ───────── Responsive ───────── */
@media (max-width: 1024px) {
    .tbp-hp { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .tbp-trend { gap: 16px; }
}
@media (max-width: 760px) {
    .tbp-chips { border-radius: 26px; padding: 6px 8px; }
    .tbp-trend { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px; padding: 4px 16px 12px; margin: 0 -16px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
    .tbp-trend::-webkit-scrollbar { display: none; }
    .tbp-trend-card { flex: 0 0 42%; scroll-snap-align: start; }
    .tbp-mosaic { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; gap: 10px; }
    .tbp-mosaic > a.tbp-mosaic-item:nth-child(n) { grid-column: span 1; }
    .tbp-mosaic > a.tbp-mosaic-item:nth-child(3n+1) { grid-column: span 2; }
    .tbp-mosaic-text { padding: 11px 12px; }
    .tbp-mosaic-text strong { font-size: 15px; }
    .tbp-hp { gap: 12px; }
    .tbp-hp-box { left: 8px; right: 8px; bottom: 8px; padding: 10px 11px; border-radius: 13px; }
    .tbp-hp-title { font-size: 15px; }
    .tbp-hp-row { flex-direction: column; align-items: flex-start; gap: 3px; margin-top: 6px; padding-top: 7px; }
    .tbp-gem { min-height: 260px; border-radius: 20px; }
    .tbp-gem-body { padding: 28px 22px; }
    .tbp-gem-shade { background: linear-gradient(180deg, rgba(18,55,42,.35), rgba(18,55,42,.9)); }
}
@media (max-width: 640px) {
    .tbp-quote-overlay { align-items: flex-end; padding: 0; }
    .tbp-quote-dialog { width: 100%; max-height: 92vh; max-height: 92dvh; border-radius: 22px 22px 0 0; padding: 24px 18px calc(24px + env(safe-area-inset-bottom, 0px)); }
    .tbp-quote-head h2 { font-size: 25px; }
    .tbp-quote-form { grid-template-columns: 1fr; gap: 14px; }
    .tbp-quote-submit { width: 100%; justify-self: stretch; }
    .tbp-quote-fab { padding: 12px 18px; font-size: 13px; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); }
    .tbp-fab-right { right: 14px; } .tbp-fab-left { left: 14px; }
}
@media (prefers-reduced-motion: reduce) {
    .tbp-quote-overlay, .tbp-trend-img img, .tbp-mosaic-item img, .tbp-hp-img img { transition: none; }
}
