/* ============================================================================
 * VTS Tour Builder V7 · Design System CSS
 * ----------------------------------------------------------------------------
 * Top-tier, strict palette, zero gray tones, typography 11/13/15/18/24/36.
 * Semantic whites: rgba(.78)/rgba(.45) for secondary/tertiary (NEVER gray).
 * Gold #FFCC00 for primary CTAs, purple #8b5cf6 only for Malé pin.
 * Urbanist font weights 500/700/900. Generous 20-28px padding on cards.
 * Glass cards with backdrop-filter. Icons: SVG only, stroke 1.6-1.8px.
 * Commit: V7 F4 · design system CSS
 * ============================================================================ */

/* -----------------------------------------------------------------------------
 * 1. DESIGN TOKENS
 * -------------------------------------------------------------------------- */
#tbv7-app {
  --bg-0: #06102a;
  --bg-1: #0a1836;
  --bg-2: #0d2260;
  --bg-3: #060f26;
  --bg-elev: rgba(255, 255, 255, .04);
  --bg-elev-2: rgba(255, 255, 255, .07);
  --bg-elev-3: rgba(255, 255, 255, .11);

  --stroke-1: rgba(255, 255, 255, .08);
  --stroke-2: rgba(255, 255, 255, .16);
  --stroke-3: rgba(255, 255, 255, .28);
  --stroke-gold: rgba(255, 204, 0, .32);

  --text-1: #ffffff;
  --text-2: rgba(255, 255, 255, .78);
  --text-3: rgba(255, 255, 255, .45);

  --gold:   #FFCC00;
  --gold-2: #FFD633;
  --gold-soft: rgba(255, 204, 0, .10);
  --gold-hi:   rgba(255, 204, 0, .18);
  --purple:   #8b5cf6;
  --purple-soft: rgba(139, 92, 246, .14);
  --blue:     #1A3C8F;
  --blue-soft:rgba(26, 60, 143, .24);
  --green:    #10b981;
  --danger:   #ef4444;

  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;

  --t-1: 11px;
  --t-2: 13px;
  --t-3: 15px;
  --t-4: 18px;
  --t-5: 24px;
  --t-6: 36px;

  --w-500: 500;
  --w-700: 700;
  --w-800: 800;
  --w-900: 900;

  --shadow-sm: 0 4px 12px rgba(0, 0, 0, .25);
  --shadow-md: 0 10px 28px rgba(0, 0, 0, .35);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, .5);
  --shadow-gold: 0 8px 24px rgba(255, 204, 0, .24);

  --ease: cubic-bezier(.4, 0, .2, 1);
  --dur: 200ms;

  font-family: 'Urbanist', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--text-1);
  background: var(--bg-0);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Reset within scope */
#tbv7-app *, #tbv7-app *::before, #tbv7-app *::after { box-sizing: border-box; }
#tbv7-app button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; padding: 0; }
#tbv7-app input, #tbv7-app select, #tbv7-app textarea { font-family: inherit; color: inherit; }
#tbv7-app a { color: inherit; text-decoration: none; }
#tbv7-app svg { display: block; }

/* -----------------------------------------------------------------------------
 * 2. HEADER
 * -------------------------------------------------------------------------- */
.tbv7-header {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; gap: 20px;
  height: 68px; padding: 0 28px;
  background: linear-gradient(180deg, var(--bg-2) 0%, var(--bg-1) 100%);
  border-bottom: 1px solid var(--stroke-1);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
}
.tbv7-brand { display: flex; align-items: center; gap: 12px; cursor: pointer; }
.tbv7-brand-mark {
  width: 38px; height: 38px; border-radius: 50%;
  background: #000; color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: var(--w-900);
  box-shadow: 0 0 0 1px var(--stroke-gold);
}
.tbv7-brand-text strong { display: block; font-size: var(--t-3); font-weight: var(--w-900); letter-spacing: -.01em; line-height: 1.1; }
.tbv7-brand-text strong span { color: var(--gold); }
.tbv7-brand-text small { display: block; font-size: 9px; font-weight: var(--w-700); letter-spacing: .22em; text-transform: uppercase; color: var(--text-3); margin-top: 2px; }
.tbv7-mainnav { display: flex; gap: 4px; margin-left: 8px; flex: 1; }
.tbv7-mainnav a {
  padding: 9px 14px; border-radius: var(--r-sm);
  font-size: var(--t-2); font-weight: var(--w-700); color: var(--text-2);
  cursor: pointer; transition: all var(--dur) var(--ease);
}
.tbv7-mainnav a:hover { color: var(--text-1); background: var(--bg-elev); }
.tbv7-mainnav a.is-active { color: var(--gold); }
.tbv7-header-actions { display: flex; align-items: center; gap: 10px; }
.tbv7-concierge-btn {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 16px; border-radius: var(--r-sm);
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-2) 100%);
  color: var(--bg-2); font-size: var(--t-2); font-weight: var(--w-900);
  letter-spacing: .02em; box-shadow: var(--shadow-gold);
  transition: transform var(--dur) var(--ease);
}
.tbv7-concierge-btn:hover { transform: translateY(-1px); }
.tbv7-concierge-btn svg { width: 14px; height: 14px; }
.tbv7-concierge-pulse {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--green); box-shadow: 0 0 8px rgba(16, 185, 129, .8);
  animation: tbv7-pulse 1.8s infinite;
}
@keyframes tbv7-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .4; } }
.tbv7-pop-wrap { position: relative; }
.tbv7-ctrl {
  padding: 8px 14px; border-radius: var(--r-sm);
  background: var(--bg-elev-2); border: 1px solid var(--stroke-1);
  color: var(--text-1); font-size: var(--t-2); font-weight: var(--w-700);
  transition: all var(--dur) var(--ease);
}
.tbv7-ctrl:hover { background: var(--bg-elev-3); border-color: var(--stroke-2); }
.tbv7-pop {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 200;
  min-width: 180px; padding: 6px;
  background: var(--bg-1); border: 1px solid var(--stroke-2);
  border-radius: var(--r-md); box-shadow: var(--shadow-md);
}
.tbv7-pop[hidden] { display: none; }
.tbv7-pop-item {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; padding: 10px 12px; border-radius: 8px;
  font-size: var(--t-2); font-weight: var(--w-700); color: var(--text-1);
  transition: background var(--dur) var(--ease);
}
.tbv7-pop-item:hover { background: var(--bg-elev-2); }
.tbv7-pop-item.is-active { color: var(--gold); background: var(--gold-soft); }
.tbv7-pop-item svg { width: 14px; height: 14px; }
.tbv7-btn-accedi {
  padding: 10px 22px; border-radius: var(--r-sm);
  border: 1.5px solid var(--gold); background: transparent;
  color: var(--gold); font-size: var(--t-2); font-weight: var(--w-900);
  letter-spacing: .04em; transition: all var(--dur) var(--ease);
}
.tbv7-btn-accedi:hover { background: var(--gold); color: var(--bg-2); }

/* -----------------------------------------------------------------------------
 * 3. STEPPER (dynamic, unlimited, always readable)
 * -------------------------------------------------------------------------- */
.tbv7-stepper {
  display: flex; align-items: center; gap: 4px;
  padding: 14px 28px; overflow-x: auto;
  background: rgba(13, 34, 96, .45); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--stroke-1);
  scrollbar-width: none;
}
.tbv7-stepper::-webkit-scrollbar { display: none; }
.tbv7-step {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 14px; border-radius: 12px;
  border: 1.5px solid transparent;
  transition: all var(--dur) var(--ease);
  flex-shrink: 0; cursor: pointer;
  font-family: inherit;
}
.tbv7-step:hover { background: var(--bg-elev); }
.tbv7-step-n {
  width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: var(--t-1); font-weight: var(--w-900);
  background: var(--bg-elev-2); border: 1.5px solid var(--stroke-2);
  color: var(--text-2); flex-shrink: 0;
}
.tbv7-step-n svg { width: 12px; height: 12px; color: var(--gold); }
.tbv7-step-label {
  font-size: var(--t-2); font-weight: var(--w-800);
  color: var(--text-1);
  white-space: nowrap; letter-spacing: .01em;
}
.tbv7-step.is-active {
  background: var(--gold-soft); border-color: var(--stroke-gold);
}
.tbv7-step.is-active .tbv7-step-n { background: var(--gold); color: var(--bg-2); border-color: var(--gold); }
.tbv7-step.is-active .tbv7-step-n svg { color: var(--bg-2); }
.tbv7-step.is-active .tbv7-step-label { color: var(--text-1); }
.tbv7-step.is-done .tbv7-step-n {
  background: var(--gold-hi); color: var(--gold); border-color: var(--stroke-gold);
}
.tbv7-step.is-add { border: 1.5px dashed var(--stroke-2); }
.tbv7-step.is-add .tbv7-step-n { color: var(--gold); background: transparent; border-color: var(--stroke-gold); }
.tbv7-step.is-add .tbv7-step-label { color: var(--text-2); }
.tbv7-step.is-add:hover { border-color: var(--gold); }
.tbv7-step.is-add:hover .tbv7-step-label { color: var(--text-1); }
.tbv7-step.is-confirm .tbv7-step-n { background: var(--green); color: #fff; border-color: var(--green); }
.tbv7-step.is-confirm .tbv7-step-n svg { color: #fff; }
.tbv7-step-sep {
  width: 18px; height: 1.5px; background: var(--stroke-2); flex-shrink: 0;
  border-radius: 1px;
}

/* -----------------------------------------------------------------------------
 * 4. MAIN + STAGE (persistent map + 3 layout modes: hero-full / hero-split / workspace)
 * -------------------------------------------------------------------------- */
.tbv7-main {
  flex: 1; display: flex; overflow: hidden; position: relative; min-height: 0;
}
.tbv7-stage {
  position: relative; flex: 1; overflow: hidden;
}
.tbv7-stage-map {
  position: absolute; inset: 0; z-index: 1;
  background: #0a1020;
  transition: filter 1.2s var(--ease);
}
.tbv7-stage-map::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 2;
  transition: background 1.2s var(--ease);
  background: radial-gradient(ellipse at 50% 40%, transparent 0%, rgba(6, 15, 42, .35) 75%, rgba(6, 15, 42, .65) 100%);
}
.tbv7-stage-overlay {
  position: absolute; inset: 0; z-index: 10;
  pointer-events: none;
  display: grid;
  transition: grid-template-columns 1.2s var(--ease);
}

/* -----------------------------------------------------------------------------
 * MODE A · HERO-FULL (Step 1 · Destinazione)
 * Fullscreen centered card over blurred darkened map
 * -------------------------------------------------------------------------- */
.tbv7-stage-overlay.is-hero-full {
  grid-template-columns: 1fr;
  align-items: center; justify-content: center;
  background: radial-gradient(ellipse at 50% 45%, rgba(6, 15, 42, .45) 0%, rgba(6, 15, 42, .78) 70%);
  backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
}
/* Blur map more intensely in hero-full (cinematic mood) */
.tbv7-stage-overlay.is-hero-full ~ .tbv7-stage-map,
.tbv7-stage:has(.is-hero-full) .tbv7-stage-map { filter: blur(3px) brightness(.72); }
/* Fallback if :has unsupported: use data-attr on main */
body.tbv7-phase-hero-full .tbv7-stage-map { filter: blur(3px) brightness(.72); }

.tbv7-stage-overlay.is-hero-full .tbv7-hero-card {
  width: 100%; max-width: 580px; pointer-events: auto;
  margin: 0 auto; padding: 0 24px;
  animation: tbv7-hero-in .45s var(--ease);
}

/* -----------------------------------------------------------------------------
 * MODE B · HERO-SPLIT (Step 2 Pax+Date · Step 3 Volo)
 * Left panel 380px wide + map at right — map sharp, no more blur
 * -------------------------------------------------------------------------- */
.tbv7-stage-overlay.is-hero-split {
  grid-template-columns: 420px 1fr;
  background: transparent;
  backdrop-filter: none; -webkit-backdrop-filter: none;
}
.tbv7-stage-overlay.is-hero-split .tbv7-col-hero {
  pointer-events: auto;
  overflow-y: auto; padding: 30px 26px;
  background: linear-gradient(180deg, rgba(13, 34, 96, .96) 0%, rgba(10, 24, 54, .96) 100%);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-right: 1px solid var(--stroke-2);
  box-shadow: 8px 0 32px rgba(0, 0, 0, .35);
  animation: tbv7-panel-in .6s var(--ease);
}
.tbv7-stage-overlay.is-hero-split .tbv7-hero-title {
  font-size: 28px; text-align: left; margin-bottom: 8px;
}
.tbv7-stage-overlay.is-hero-split .tbv7-hero-sub {
  text-align: left; margin-left: 0; margin-bottom: 22px;
}
.tbv7-stage-overlay.is-hero-split .tbv7-form {
  padding: 22px; max-width: none;
}

/* -----------------------------------------------------------------------------
 * MODE C · WORKSPACE (Tappe · Conferma)
 * 3 columns: left 300 / map 1fr / right 360
 * -------------------------------------------------------------------------- */
.tbv7-stage-overlay.is-workspace {
  grid-template-columns: 280px 1fr 480px;
}
.tbv7-stage-overlay.is-workspace .tbv7-col {
  pointer-events: auto;
  overflow-y: auto; padding: 22px;
  background: linear-gradient(180deg, rgba(13, 34, 96, .94) 0%, rgba(10, 24, 54, .94) 100%);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.tbv7-stage-overlay.is-workspace .tbv7-col-left {
  border-right: 1px solid var(--stroke-2);
}
.tbv7-stage-overlay.is-workspace .tbv7-col-right {
  border-left: 1px solid var(--stroke-2);
  background: linear-gradient(180deg, rgba(10, 24, 54, .94) 0%, rgba(6, 15, 38, .94) 100%);
  animation: tbv7-right-in .5s var(--ease);
}
.tbv7-col-map-space {
  position: relative;
  pointer-events: none;
}
.tbv7-col-map-space > * { pointer-events: auto; }

/* -----------------------------------------------------------------------------
 * HERO CARD + TITLE shared styles
 * -------------------------------------------------------------------------- */
@keyframes tbv7-hero-in {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}
@keyframes tbv7-panel-in {
  from { opacity: 0; transform: translateX(-24px); }
  to   { opacity: 1; transform: none; }
}
@keyframes tbv7-right-in {
  from { opacity: 0; transform: translateX(24px); }
  to   { opacity: 1; transform: none; }
}
.tbv7-hero-title {
  font-size: var(--t-6); font-weight: var(--w-900); line-height: 1.05;
  letter-spacing: -.02em; text-align: center; margin: 0 0 12px;
  color: var(--text-1);
  text-shadow: 0 2px 16px rgba(0, 0, 0, .45);
}
.tbv7-hero-title em { font-style: normal; color: var(--gold); }
.tbv7-hero-sub {
  font-size: var(--t-3); font-weight: var(--w-500); color: var(--text-2);
  text-align: center; margin: 0 auto 28px; max-width: 520px;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .4);
}
.tbv7-form {
  width: 100%; padding: 26px;
  background: rgba(6, 15, 42, .82);
  border: 1px solid var(--stroke-2); border-radius: var(--r-xl);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  box-shadow: var(--shadow-lg);
}
.tbv7-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px;
}
.tbv7-field { display: flex; flex-direction: column; gap: 6px; position: relative; }
.tbv7-field label {
  font-size: var(--t-1); font-weight: var(--w-800);
  letter-spacing: .16em; text-transform: uppercase; color: var(--text-3);
}
.tbv7-field input,
.tbv7-field select {
  padding: 14px 16px;
  background: var(--bg-1); border: 1px solid var(--stroke-1);
  border-radius: var(--r-md); color: var(--text-1);
  font-size: var(--t-3); font-weight: var(--w-700);
  outline: none; transition: border-color var(--dur) var(--ease);
  width: 100%; font-family: inherit;
}
.tbv7-field input:focus,
.tbv7-field select:focus { border-color: var(--gold); }

/* Custom select arrow — NEVER overlap with mic */
.tbv7-field select {
  appearance: none; -webkit-appearance: none; -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23ffcc00' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 44px;
  cursor: pointer;
}

/* When field has mic button: reserve 62px on right (44 mic + 8 gap + 10 arrow) */
.tbv7-field-mic select {
  background-position: right 62px center;
  padding-right: 90px;
}

.tbv7-mic-btn, .tbv7-mic-btn-inline {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--gold); border: 1.5px solid var(--gold);
  color: var(--bg-2);
  box-shadow: 0 4px 14px rgba(255, 204, 0, .4);
  transition: all var(--dur) var(--ease);
  flex-shrink: 0;
}
.tbv7-mic-btn svg, .tbv7-mic-btn-inline svg { width: 18px; height: 18px; }
.tbv7-mic-btn:hover, .tbv7-mic-btn-inline:hover {
  background: var(--gold-2); transform: scale(1.08);
  box-shadow: 0 6px 20px rgba(255, 204, 0, .55);
}
/* Mic anchored in field-mic at right, vertically aligned with select (38px after label+gap) */
.tbv7-field-mic { position: relative; }
.tbv7-field-mic .tbv7-mic-btn {
  position: absolute; right: 10px; top: auto; bottom: 5px; z-index: 2;
}

.tbv7-pax {
  display: flex; align-items: center; gap: 6px;
  padding: 6px; background: var(--bg-1); border: 1px solid var(--stroke-1);
  border-radius: var(--r-md);
}
.tbv7-pax button {
  width: 34px; height: 34px; border-radius: 8px;
  background: var(--bg-elev-2); color: var(--text-1);
  display: flex; align-items: center; justify-content: center;
  transition: all var(--dur) var(--ease);
}
.tbv7-pax button:hover:not(:disabled) { background: var(--gold); color: var(--bg-2); }
.tbv7-pax button:disabled { opacity: .32; cursor: not-allowed; }
.tbv7-pax button svg { width: 13px; height: 13px; }
.tbv7-pax-val { flex: 1; text-align: center; font-size: var(--t-3); font-weight: var(--w-900); }

.tbv7-toggle { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px; }
.tbv7-toggle-opt {
  display: flex; flex-direction: column; gap: 4px; align-items: flex-start;
  padding: 16px 18px; border-radius: var(--r-md);
  background: var(--bg-elev); border: 1.5px solid var(--stroke-2);
  text-align: left; transition: all var(--dur) var(--ease);
}
.tbv7-toggle-opt:hover { border-color: var(--stroke-3); background: var(--bg-elev-2); }
.tbv7-toggle-opt.is-active { border-color: var(--gold); background: var(--gold-soft); }
.tbv7-toggle-opt strong { font-size: var(--t-3); font-weight: var(--w-900); display: flex; align-items: center; gap: 6px; }
.tbv7-toggle-opt strong svg { width: 14px; height: 14px; color: var(--gold); }
.tbv7-toggle-opt small { font-size: var(--t-2); font-weight: var(--w-500); color: var(--text-2); }

.tbv7-readonly {
  padding: 13px 15px; background: var(--bg-1);
  border: 1px solid var(--stroke-1); border-radius: var(--r-md);
  font-size: var(--t-4); font-weight: var(--w-900);
}
.tbv7-gold { color: var(--gold); }

.tbv7-affiliate {
  display: flex; align-items: center; gap: 12px; margin-top: 14px;
  padding: 14px 16px; border-radius: var(--r-md);
  background: var(--blue-soft); border: 1px solid rgba(26, 60, 143, .45);
  transition: transform var(--dur) var(--ease);
}
.tbv7-affiliate:hover { transform: translateY(-1px); }
.tbv7-affiliate-badge {
  width: 32px; height: 32px; border-radius: 8px;
  background: var(--blue); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: var(--t-2); font-weight: var(--w-900);
}
.tbv7-affiliate-body { flex: 1; }
.tbv7-affiliate-body strong { display: block; font-size: var(--t-2); font-weight: var(--w-900); }
.tbv7-affiliate-body small { display: block; font-size: var(--t-1); color: var(--text-2); margin-top: 2px; }
.tbv7-affiliate-arrow { color: var(--text-2); }
.tbv7-affiliate-arrow svg { width: 14px; height: 14px; }

.tbv7-form-foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; margin-top: 20px; flex-wrap: wrap;
}
.tbv7-form-hint {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: var(--t-2); font-weight: var(--w-700); color: var(--text-2);
}
.tbv7-form-hint svg { width: 14px; height: 14px; color: var(--gold); }
.tbv7-form-hint strong { color: var(--gold); font-weight: var(--w-900); }
.tbv7-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }

.tbv7-disclaimer {
  font-size: var(--t-1); font-weight: var(--w-500); font-style: italic;
  color: var(--text-3); margin-top: 12px; line-height: 1.5;
}

/* -----------------------------------------------------------------------------
 * 5. BUTTONS
 * -------------------------------------------------------------------------- */
.tbv7-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 24px; border-radius: var(--r-md);
  font-size: var(--t-2); font-weight: var(--w-900);
  letter-spacing: .03em; transition: all var(--dur) var(--ease);
}
.tbv7-btn svg { width: 14px; height: 14px; }
.tbv7-btn:disabled { opacity: .35; cursor: not-allowed; }
.tbv7-btn-primary {
  background: var(--gold); color: var(--bg-2);
  box-shadow: var(--shadow-gold);
}
.tbv7-btn-primary:hover:not(:disabled) { transform: translateY(-1px); background: var(--gold-2); }
.tbv7-btn-ghost {
  background: transparent; color: var(--text-2);
  border: 1.5px solid var(--stroke-2);
}
.tbv7-btn-ghost:hover:not(:disabled) { color: var(--text-1); border-color: var(--stroke-3); background: var(--bg-elev); }
.tbv7-btn-gold-ghost {
  background: var(--gold-soft); color: var(--gold);
  border: 1.5px solid var(--stroke-gold);
}
.tbv7-btn-gold-ghost:hover:not(:disabled) { background: var(--gold-hi); }
.tbv7-btn-block { width: 100%; margin-top: 12px; }

/* -----------------------------------------------------------------------------
 * 6. WORKSPACE COLUMN HEADERS & SPACING (content styling, layout is in section 4)
 * -------------------------------------------------------------------------- */
.tbv7-col::-webkit-scrollbar { width: 6px; }
.tbv7-col::-webkit-scrollbar-thumb { background: var(--stroke-2); border-radius: 3px; }
.tbv7-col::-webkit-scrollbar-thumb:hover { background: var(--stroke-3); }
.tbv7-col-h {
  font-size: var(--t-1); font-weight: var(--w-900);
  letter-spacing: .22em; text-transform: uppercase; color: var(--text-3);
  margin: 0 0 14px; padding-top: 4px;
}
.tbv7-col-title {
  font-size: var(--t-4); font-weight: var(--w-900);
  margin: 0 0 8px; letter-spacing: -.01em;
}
.tbv7-col-sub {
  font-size: var(--t-2); font-weight: var(--w-500); color: var(--text-2);
  margin: 0 0 18px; line-height: 1.55;
}

/* -----------------------------------------------------------------------------
 * 7. MAP GUIDE + MIC FLOAT
 * -------------------------------------------------------------------------- */
.tbv7-map-guide {
  position: absolute; top: 22px; left: 50%; transform: translateX(-50%);
  z-index: 400; max-width: calc(100% - 60px);
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 20px;
  background: rgba(6, 15, 42, .94); backdrop-filter: blur(14px);
  border: 1px solid var(--stroke-gold); border-radius: var(--r-md);
  font-size: var(--t-2); font-weight: var(--w-800);
  color: var(--text-1); letter-spacing: .02em;
  pointer-events: none; box-shadow: var(--shadow-md);
  white-space: nowrap;
}
.tbv7-map-guide-dot {
  width: 9px; height: 9px; border-radius: 50%; background: var(--gold);
  box-shadow: 0 0 10px rgba(255, 204, 0, .8);
  animation: tbv7-pulse 1.5s infinite;
}
.tbv7-mic-float {
  position: absolute; bottom: 24px; right: 24px; z-index: 500;
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--gold); color: var(--bg-2);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 20px rgba(255, 204, 0, .4), 0 0 0 4px rgba(255, 204, 0, .15);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  border: 2px solid var(--gold);
}
.tbv7-mic-float:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 26px rgba(255, 204, 0, .55), 0 0 0 6px rgba(255, 204, 0, .22);
}
.tbv7-mic-float svg { width: 22px; height: 22px; }

/* -----------------------------------------------------------------------------
 * 8. LEFT COLUMN: QUOTE + FLIGHT CARD + STOPS
 * -------------------------------------------------------------------------- */
.tbv7-quote {
  padding: 22px; margin-bottom: 18px;
  background: linear-gradient(135deg, var(--gold-soft) 0%, rgba(255, 204, 0, .02) 100%);
  border: 1.5px solid var(--stroke-gold); border-radius: var(--r-lg);
}
.tbv7-quote-label {
  font-size: 10px; font-weight: var(--w-900); letter-spacing: .22em;
  text-transform: uppercase; color: rgba(255, 204, 0, .75); margin-bottom: 6px;
}
.tbv7-quote-total {
  font-size: 32px; font-weight: var(--w-900); color: var(--gold);
  line-height: 1; letter-spacing: -.02em; margin-bottom: 6px;
}
.tbv7-quote-pax { font-size: var(--t-1); font-weight: var(--w-700); color: var(--text-3); margin-bottom: 16px; }
.tbv7-quote-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 6px 0; font-size: var(--t-2); color: var(--text-2);
  border-top: 1px solid var(--stroke-1);
}
.tbv7-quote-row:first-of-type { border-top: none; }
.tbv7-quote-row strong { color: var(--gold); font-weight: var(--w-900); }

.tbv7-flight-card {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 14px; margin-bottom: 10px;
  background: var(--bg-elev); border: 1px solid var(--stroke-1);
  border-radius: var(--r-md);
}
.tbv7-flight-card.is-empty { opacity: .75; }
.tbv7-flight-ic {
  width: 34px; height: 34px; border-radius: 8px; flex-shrink: 0;
  background: var(--gold-soft); color: var(--gold);
  display: flex; align-items: center; justify-content: center;
}
.tbv7-flight-ic svg { width: 16px; height: 16px; }
.tbv7-flight-body { flex: 1; min-width: 0; }
.tbv7-flight-body strong { display: block; font-size: var(--t-2); font-weight: var(--w-900); }
.tbv7-flight-body small { display: block; font-size: var(--t-1); color: var(--text-3); margin-top: 2px; }
.tbv7-mini-edit {
  padding: 6px 10px; border-radius: 8px;
  background: var(--bg-elev-2); border: 1px solid var(--stroke-1);
  font-size: 10px; font-weight: var(--w-800); color: var(--text-2);
  letter-spacing: .04em;
  transition: all var(--dur) var(--ease);
}
.tbv7-mini-edit:hover { color: var(--gold); border-color: var(--stroke-gold); background: var(--gold-soft); }

.tbv7-empty-slot {
  padding: 18px 14px;
  background: transparent; border: 1.5px dashed var(--stroke-2);
  border-radius: var(--r-md);
  font-size: var(--t-2); font-weight: var(--w-700);
  color: var(--text-2); text-align: center; line-height: 1.5;
}

.tbv7-stop-card {
  position: relative;
  display: flex; align-items: flex-start; gap: 12px;
  padding: 13px 14px; margin-bottom: 8px;
  background: var(--bg-elev); border: 1px solid var(--stroke-1);
  border-radius: var(--r-md); cursor: pointer;
  transition: all var(--dur) var(--ease);
}
.tbv7-stop-card:hover { background: var(--bg-elev-2); border-color: var(--stroke-2); }
.tbv7-stop-card.is-editing { border-color: var(--gold); background: var(--gold-soft); }
.tbv7-stop-rm {
  position: absolute; top: 8px; right: 8px;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--bg-elev-2); color: var(--text-3);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: all var(--dur) var(--ease);
}
.tbv7-stop-rm svg { width: 12px; height: 12px; }
.tbv7-stop-card:hover .tbv7-stop-rm { opacity: 1; }
.tbv7-stop-rm:hover { background: var(--danger); color: #fff; }
.tbv7-stop-num {
  width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0;
  background: var(--gold); color: var(--bg-2);
  font-size: var(--t-1); font-weight: var(--w-900);
  display: flex; align-items: center; justify-content: center;
}
.tbv7-stop-body { flex: 1; min-width: 0; }
.tbv7-stop-name { font-size: var(--t-2); font-weight: var(--w-900); line-height: 1.25; }
.tbv7-stop-meta { font-size: var(--t-1); font-weight: var(--w-700); color: var(--text-3); margin-top: 3px; }
.tbv7-stop-resort { font-size: var(--t-1); font-weight: var(--w-700); color: var(--text-2); margin-top: 3px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.tbv7-stop-hint { font-size: var(--t-1); font-weight: var(--w-800); color: var(--gold); margin-top: 3px; }
.tbv7-stop-transit { font-size: var(--t-1); font-weight: var(--w-700); color: var(--purple); margin-top: 3px; }
.tbv7-stop-transfer {
  display: flex; align-items: center; gap: 6px; margin-top: 6px; padding-top: 6px;
  border-top: 1px dashed rgba(255, 204, 0, .28);
  font-size: var(--t-1); font-weight: var(--w-800); color: var(--gold);
}
.tbv7-stop-transfer svg { width: 12px; height: 12px; }

/* -----------------------------------------------------------------------------
 * 9. RIGHT COLUMN: SUB-PANEL UNIFIED
 * -------------------------------------------------------------------------- */
.tbv7-sub {
  padding-bottom: 18px; margin-bottom: 18px;
  border-bottom: 1px solid var(--stroke-1);
}
.tbv7-sub:last-of-type { border-bottom: 0; margin-bottom: 0; }
.tbv7-sub-h {
  display: flex; align-items: center; gap: 8px;
  font-size: var(--t-1); font-weight: var(--w-900);
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--text-2); margin-bottom: 12px;
}
.tbv7-sub-num {
  width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0;
  background: var(--gold); color: var(--bg-2);
  font-size: 10px; font-weight: var(--w-900);
  display: flex; align-items: center; justify-content: center;
}
.tbv7-auth-badge {
  display: inline-flex; align-items: center; gap: 5px; margin-left: auto;
  padding: 4px 9px; border-radius: 6px;
  background: var(--gold-soft); border: 1px solid var(--stroke-gold);
  color: var(--gold); font-size: 10px; font-weight: var(--w-900);
  letter-spacing: .05em; text-transform: none;
}
.tbv7-auth-badge svg { width: 10px; height: 10px; }

.tbv7-transit-toggle {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 14px; margin-bottom: 12px;
  background: var(--purple-soft); border: 1.5px solid rgba(139, 92, 246, .35);
  border-radius: var(--r-md); text-align: left;
  transition: all var(--dur) var(--ease);
}
.tbv7-transit-toggle:hover { background: rgba(139, 92, 246, .22); }
.tbv7-transit-toggle.is-active { border-color: var(--purple); background: rgba(139, 92, 246, .24); }
.tbv7-transit-ic {
  width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0;
  background: rgba(139, 92, 246, .3); color: #fff;
  display: flex; align-items: center; justify-content: center;
}
.tbv7-transit-ic svg { width: 16px; height: 16px; }
.tbv7-transit-body { flex: 1; }
.tbv7-transit-body strong { display: block; font-size: var(--t-3); font-weight: var(--w-900); }
.tbv7-transit-body small { display: block; font-size: var(--t-1); font-weight: var(--w-500); color: var(--text-2); margin-top: 2px; }

.tbv7-resort-card {
  display: flex; gap: 12px; width: 100%;
  padding: 10px; margin-bottom: 8px;
  background: var(--bg-elev); border: 1px solid var(--stroke-1);
  border-radius: var(--r-md); text-align: left; align-items: center;
  transition: all var(--dur) var(--ease);
}
.tbv7-resort-card:hover { background: var(--bg-elev-2); border-color: var(--stroke-2); }
.tbv7-resort-card.is-selected { border-color: var(--gold); background: var(--gold-soft); }
.tbv7-resort-thumb {
  width: 68px; height: 68px; border-radius: var(--r-sm); flex-shrink: 0;
  background: var(--bg-3) center/cover no-repeat;
}
.tbv7-resort-body { flex: 1; min-width: 0; }
.tbv7-resort-name { font-size: var(--t-2); font-weight: var(--w-900); line-height: 1.2; }
.tbv7-resort-meta {
  display: flex; align-items: center; gap: 4px;
  font-size: 10px; font-weight: var(--w-700); color: var(--text-3); margin-top: 4px;
}
.tbv7-resort-meta svg { width: 10px; height: 10px; color: var(--gold); }
.tbv7-resort-price { font-size: var(--t-1); font-weight: var(--w-700); color: var(--text-2); margin-top: 4px; }
.tbv7-resort-price strong { color: var(--gold); font-weight: var(--w-900); }

.tbv7-transfer-opt {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 12px; margin-bottom: 6px;
  background: var(--bg-elev); border: 1.5px solid var(--stroke-1);
  border-radius: var(--r-md); text-align: left;
  transition: all var(--dur) var(--ease);
}
.tbv7-transfer-opt:hover { border-color: var(--stroke-gold); background: var(--bg-elev-2); }
.tbv7-transfer-opt.is-selected { border-color: var(--gold); background: var(--gold-soft); }
.tbv7-transfer-ic {
  width: 36px; height: 36px; border-radius: var(--r-sm); flex-shrink: 0;
  background: var(--gold-soft); color: var(--gold);
  display: flex; align-items: center; justify-content: center;
}
.tbv7-transfer-ic svg { width: 16px; height: 16px; }
.tbv7-transfer-body { flex: 1; min-width: 0; }
.tbv7-transfer-body strong { display: block; font-size: var(--t-2); font-weight: var(--w-900); }
.tbv7-transfer-body small { display: block; font-size: var(--t-1); font-weight: var(--w-700); color: var(--text-3); margin-top: 3px; }
.tbv7-transfer-price { font-size: var(--t-3); font-weight: var(--w-900); color: var(--gold); }

.tbv7-chip-group { margin-bottom: 14px; }
.tbv7-chip-label {
  font-size: 10px; font-weight: var(--w-900); letter-spacing: .18em;
  text-transform: uppercase; color: var(--text-3); margin-bottom: 8px;
}
.tbv7-chip {
  display: inline-flex; align-items: center;
  padding: 7px 13px; margin: 0 4px 4px 0; border-radius: 9px;
  background: var(--bg-elev-2); border: 1px solid var(--stroke-1);
  font-size: var(--t-1); font-weight: var(--w-700); color: var(--text-1);
  transition: all var(--dur) var(--ease);
}
.tbv7-chip:hover { border-color: var(--stroke-3); background: var(--bg-elev-3); }
.tbv7-chip.is-active { background: var(--gold); color: var(--bg-2); border-color: var(--gold); font-weight: var(--w-900); }

/* -----------------------------------------------------------------------------
 * 10. MODALS
 * -------------------------------------------------------------------------- */
.tbv7-modals { position: relative; }
.tbv7-modal-overlay {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  background: rgba(6, 15, 42, .82);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  animation: tbv7-fade-in .25s var(--ease);
}
@keyframes tbv7-fade-in { from { opacity: 0; } to { opacity: 1; } }
.tbv7-modal {
  position: relative; width: 100%; max-width: 560px; max-height: 90vh;
  padding: 32px; overflow-y: auto;
  background: linear-gradient(180deg, var(--bg-2) 0%, var(--bg-3) 100%);
  border: 1px solid var(--stroke-gold); border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
  animation: tbv7-slide-up .3s var(--ease);
}
@keyframes tbv7-slide-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.tbv7-modal-wide { max-width: 760px; }
.tbv7-modal-close {
  position: absolute; top: 18px; right: 18px;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--bg-elev-2); border: 1px solid var(--stroke-1);
  color: var(--text-2);
  display: flex; align-items: center; justify-content: center;
  transition: all var(--dur) var(--ease);
}
.tbv7-modal-close:hover { color: var(--text-1); background: var(--bg-elev-3); }
.tbv7-modal-close svg { width: 14px; height: 14px; }
.tbv7-modal-icon {
  width: 60px; height: 60px; border-radius: 50%; margin: 0 auto 16px;
  background: var(--gold-soft); border: 1.5px solid var(--stroke-gold);
  color: var(--gold); display: flex; align-items: center; justify-content: center;
}
.tbv7-modal-icon svg { width: 26px; height: 26px; }
.tbv7-modal-title {
  font-size: var(--t-5); font-weight: var(--w-900); letter-spacing: -.01em;
  text-align: center; margin: 0 0 8px;
}
.tbv7-modal-sub {
  font-size: var(--t-2); font-weight: var(--w-500); color: var(--text-2);
  text-align: center; margin: 0 0 22px; line-height: 1.55;
}
.tbv7-auth-methods { display: flex; flex-direction: column; gap: 10px; }
.tbv7-auth-btn {
  display: flex; align-items: center; gap: 14px; width: 100%;
  padding: 14px 18px; border-radius: var(--r-md);
  background: var(--bg-elev-2); border: 1.5px solid var(--stroke-2);
  color: var(--text-1); text-align: left;
  transition: all var(--dur) var(--ease);
}
.tbv7-auth-btn:hover { border-color: var(--gold); background: var(--bg-elev-3); }
.tbv7-auth-ic {
  width: 38px; height: 38px; border-radius: 10px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: var(--w-900);
}
.tbv7-auth-btn.is-google .tbv7-auth-ic { background: #fff; color: #444; }
.tbv7-auth-btn.is-email  .tbv7-auth-ic { background: var(--gold-soft); color: var(--gold); }
.tbv7-auth-btn strong { display: block; font-size: var(--t-3); font-weight: var(--w-800); }
.tbv7-auth-btn small  { display: block; font-size: var(--t-1); font-weight: var(--w-500); color: var(--text-3); margin-top: 2px; }
.tbv7-or {
  text-align: center; font-size: var(--t-1); font-weight: var(--w-800);
  letter-spacing: .18em; text-transform: uppercase; color: var(--text-3);
  margin: 4px 0;
}

.tbv7-final-rows { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.tbv7-final-row {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 16px;
  background: var(--bg-elev); border: 1px solid var(--stroke-1);
  border-radius: var(--r-md);
}
.tbv7-final-row-l { flex: 1; min-width: 0; }
.tbv7-final-row-l strong { display: block; font-size: var(--t-2); font-weight: var(--w-800); }
.tbv7-final-row-l small { display: block; font-size: var(--t-1); font-weight: var(--w-500); color: var(--text-3); margin-top: 2px; }
.tbv7-final-row-r { font-size: var(--t-2); font-weight: var(--w-900); color: var(--gold); white-space: nowrap; }
.tbv7-final-total {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; margin-top: 8px;
  background: linear-gradient(135deg, var(--gold-soft) 0%, transparent 100%);
  border: 1.5px solid var(--stroke-gold); border-radius: var(--r-md);
}
.tbv7-final-total span { font-size: var(--t-3); font-weight: var(--w-900); }
.tbv7-final-total strong { font-size: 28px; font-weight: var(--w-900); color: var(--gold); letter-spacing: -.01em; }
.tbv7-final-cta { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; margin-top: 18px; }
.tbv7-final-cta .tbv7-btn { flex-direction: column; gap: 2px; padding: 14px 8px; }
.tbv7-final-cta .tbv7-btn strong { font-size: var(--t-2); font-weight: var(--w-900); letter-spacing: 0; }
.tbv7-final-cta .tbv7-btn small { font-size: 9px; font-weight: var(--w-700); opacity: .8; letter-spacing: .06em; text-transform: uppercase; }

/* -----------------------------------------------------------------------------
 * 11. MAP PINS (Leaflet overrides, F2 module classes)
 * -------------------------------------------------------------------------- */
.vts-pin-wrap { background: transparent !important; border: none !important; }
.vts-pin {
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: var(--w-900);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  cursor: pointer;
}
.vts-pin svg { width: 14px; height: 14px; }
.vts-pin:hover { transform: scale(1.14); }
.vts-pin.is-atoll {
  background: #FFCC00; color: #0d2260;
  box-shadow: 0 4px 12px rgba(255, 204, 0, .55), 0 0 0 3px rgba(255, 204, 0, .2);
}
.vts-pin.is-airport {
  background: #1A3C8F; color: #fff;
  box-shadow: 0 4px 12px rgba(26, 60, 143, .6), 0 0 0 3px rgba(255, 255, 255, .25);
}
.vts-pin.is-male {
  background: #8b5cf6; color: #fff;
  box-shadow: 0 4px 12px rgba(139, 92, 246, .55), 0 0 0 3px rgba(255, 255, 255, .22);
}
.vts-pin.is-selected {
  background: #fff;
  box-shadow: 0 4px 16px rgba(255, 255, 255, .45), 0 0 0 3px #FFCC00;
}
.vts-pin.is-selected .vts-pin-num { color: #0d2260; font-weight: 900; }
.vts-pin.is-atoll.is-selected svg { color: #0d2260; }
.vts-pin.is-reachable { animation: tbv7-breathe 2s ease-in-out infinite; }
@keyframes tbv7-breathe {
  0%, 100% { box-shadow: 0 4px 12px rgba(255, 204, 0, .55), 0 0 0 3px rgba(255, 204, 0, .22); }
  50%      { box-shadow: 0 4px 16px rgba(255, 204, 0, .85), 0 0 0 8px rgba(255, 204, 0, .35); }
}
.vts-pin.is-dimmed { opacity: .35; pointer-events: none; }
.vts-pin-num { font-size: 13px; font-weight: 900; color: #0d2260; }
.vts-pin-tip {
  background: rgba(6, 15, 42, .96) !important;
  border: 1px solid rgba(255, 255, 255, .14) !important;
  color: #fff !important;
  font-family: 'Urbanist', sans-serif !important;
  font-size: 11px !important; font-weight: 800 !important;
  padding: 5px 9px !important; border-radius: 6px !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .35) !important;
}
.vts-pin-tip:before { border-top-color: rgba(6, 15, 42, .96) !important; }

/* Leaflet zoom control + attribution */
.leaflet-control-zoom a {
  background: rgba(6, 15, 42, .92) !important;
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, .14) !important;
  font-weight: 900 !important;
}
.leaflet-control-zoom a:hover { background: rgba(26, 60, 143, .92) !important; }

/* Transfer mini-cards (from F2 map module) */
.vts-tr-card {
  position: absolute; z-index: 500;
  display: flex; align-items: center; gap: 10px;
  min-width: 196px; padding: 9px 12px;
  background: rgba(6, 15, 42, .96); backdrop-filter: blur(10px);
  border: 1.5px solid rgba(255, 204, 0, .35); border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .45);
  cursor: grab; user-select: none;
  transition: box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.vts-tr-card:hover { border-color: #FFCC00; box-shadow: 0 8px 26px rgba(255, 204, 0, .3); }
.vts-tr-card.is-dragging { cursor: grabbing; }
.vts-tr-card-ic {
  width: 32px; height: 32px; border-radius: 9px; flex-shrink: 0;
  background: rgba(255, 204, 0, .14); color: #FFCC00;
  display: flex; align-items: center; justify-content: center;
}
.vts-tr-card-ic svg { width: 15px; height: 15px; }
.vts-tr-card-body { flex: 1; min-width: 0; }
.vts-tr-card-mode { font-size: 12px; font-weight: 900; color: #fff; line-height: 1.2; }
.vts-tr-card-meta {
  display: flex; gap: 6px; align-items: center;
  font-size: 10px; font-weight: 700; color: rgba(255, 255, 255, .55);
  margin-top: 2px;
}
.vts-tr-card-price { color: #FFCC00; font-weight: 900; }
.vts-tr-card-chg {
  padding: 4px 9px; border-radius: 6px;
  background: rgba(255, 204, 0, .12); color: #FFCC00;
  font-size: 10px; font-weight: 900; letter-spacing: .04em;
  border: 1px solid rgba(255, 204, 0, .3);
  transition: all var(--dur) var(--ease);
}
.vts-tr-card-chg:hover { background: #FFCC00; color: #0d2260; }

/* -----------------------------------------------------------------------------
 * 12. RESPONSIVE
 * -------------------------------------------------------------------------- */
@media (max-width: 1240px) {
  .tbv7-stage-overlay.is-hero-split { grid-template-columns: 340px 1fr; }
  /* F11 bump: sub-panel needs 440px on tablet */
  .tbv7-stage-overlay.is-workspace { grid-template-columns: 260px 1fr 440px; }
}
@media (max-width: 1040px) {
  .tbv7-stage-overlay.is-hero-split { grid-template-columns: 310px 1fr; }
  /* F11: keep sub-panel 400px, shrink left + map */
  .tbv7-stage-overlay.is-workspace { grid-template-columns: 220px 1fr 400px; }
  .tbv7-stage-overlay .tbv7-col { padding: 16px; }
}
@media (max-width: 900px) {
  .tbv7-header { padding: 0 16px; gap: 10px; height: 60px; }
  .tbv7-mainnav { display: none; }
  .tbv7-brand-text small { display: none; }
  .tbv7-stepper { padding: 10px 16px; }
  .tbv7-step-label { display: none; }
  .tbv7-step.is-active .tbv7-step-label,
  .tbv7-step.is-add .tbv7-step-label { display: inline; }
  .tbv7-stage-overlay.is-hero-full { padding: 16px; }
  .tbv7-hero-title { font-size: 28px; }
  .tbv7-form { padding: 20px; }
  .tbv7-row { grid-template-columns: 1fr; gap: 10px; }
  .tbv7-toggle { grid-template-columns: 1fr; }
  .tbv7-stage-overlay.is-hero-split,
  .tbv7-stage-overlay.is-workspace {
    grid-template-columns: 1fr; grid-template-rows: auto 1fr auto;
  }
  .tbv7-stage-overlay.is-hero-split .tbv7-col-hero {
    position: absolute; bottom: 0; left: 0; right: 0; max-height: 70vh;
    border-right: none; border-top: 1px solid var(--stroke-2);
    border-top-left-radius: 20px; border-top-right-radius: 20px;
  }
  .tbv7-stage-overlay.is-workspace .tbv7-col-left,
  .tbv7-stage-overlay.is-workspace .tbv7-col-right { display: none; }
  .tbv7-final-cta { grid-template-columns: 1fr; }
  .tbv7-modal { padding: 22px; }
  .tbv7-modal-title { font-size: 20px; }
}

/* -----------------------------------------------------------------------------
 * 13. UTILITIES
 * -------------------------------------------------------------------------- */
#tbv7-app [hidden] { display: none !important; }
#tbv7-app .tbv7-fade-in { animation: tbv7-fade-in .3s var(--ease); }

/* =============================================================================
 * F9 FIXES · input date styling + calendar picker indicator + connector SVG
 * ============================================================================= */

/* Bug 2 — calendar picker indicator: nativo nero invisibile su navy dark */
#tbv7-app input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(1) brightness(1.3) opacity(.85);
  cursor: pointer;
  padding: 2px 4px;
}
/* Firefox fallback (no calendar picker selector but native widget respects color-scheme) */
#tbv7-app input[type="date"] { color-scheme: dark; }

/* Bug 1 — date input compact in hero-split col (420px but date field has heavy UI) */
.tbv7-stage-overlay.is-hero-split input[type="date"] {
  font-size: 13px;
  padding-right: 6px;
  letter-spacing: 0;
}

/* Connector SVG overlay on map container — pointer-events managed in inline style by JS */
#tbv7-connectors { will-change: contents; }

/* ============================================================
   F11 · SUB-PANEL V2 LUXURY REDESIGN (480px)
   Progressive disclosure + editorial photo-led
   ============================================================ */

#tbv7-col-right {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: 0;
  background: linear-gradient(180deg, rgba(13,34,96,.92) 0%, rgba(6,16,42,.98) 100%);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  border-left: 1px solid rgba(255,255,255,.12);
  display: grid;
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
  box-sizing: border-box;
}

/* HEADER */
.tbv7-sp-header {
  padding: 18px 24px 14px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  background: linear-gradient(180deg, rgba(26,60,143,.35) 0%, transparent 100%);
}
.tbv7-sp-header-top { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.tbv7-sp-stop-num {
  width: 28px; height: 28px;
  background: #FFCC00; color: #06102a;
  border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 900; font-size: 14px;
}
.tbv7-sp-stop-label {
  font-size: 11px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  color: rgba(255,255,255,.45);
}
.tbv7-sp-stop-title {
  font-size: 26px; font-weight: 800;
  letter-spacing: -.02em; line-height: 1.1;
  color: #fff; margin: 0;
}

/* BREADCRUMB */
.tbv7-sp-crumbs { display: flex; gap: 6px; margin-top: 14px; flex-wrap: wrap; }
.tbv7-sp-crumb {
  font-size: 10px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 100px;
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.45);
  border: 1px solid transparent;
  transition: all .3s cubic-bezier(.4,0,.2,1);
}
.tbv7-sp-crumb.done {
  background: rgba(255,204,0,.12);
  border-color: rgba(255,204,0,.3);
  color: #FFCC00;
}
.tbv7-sp-crumb.done::before { content: "\2713 "; font-weight: 900; }
.tbv7-sp-crumb.active { background: #FFCC00; color: #06102a; border-color: #FFCC00; }

/* AI CHIP */
.tbv7-sp-ai-chip {
  margin-bottom: 16px;
  padding: 12px 16px;
  background: linear-gradient(135deg, rgba(255,204,0,.12), rgba(255,204,0,.04));
  border: 1px solid rgba(255,204,0,.28);
  border-radius: 20px;
  display: flex; align-items: center; gap: 10px;
  cursor: pointer;
  transition: all .3s cubic-bezier(.4,0,.2,1);
  animation: tbv7-sp-ai-glow 3s ease-in-out infinite;
}
.tbv7-sp-ai-chip:hover { background: linear-gradient(135deg, rgba(255,204,0,.2), rgba(255,204,0,.08)); transform: translateY(-1px); }
@keyframes tbv7-sp-ai-glow {
  0%, 100% { box-shadow: 0 0 0 rgba(255,204,0,0); }
  50% { box-shadow: 0 0 24px rgba(255,204,0,.15); }
}
.tbv7-sp-ai-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #FFCC00; box-shadow: 0 0 12px #FFCC00;
  animation: tbv7-sp-ai-pulse 1.6s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes tbv7-sp-ai-pulse {
  0%, 100% { opacity: .6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.3); }
}
.tbv7-sp-ai-text { flex: 1; font-size: 13px; font-weight: 600; line-height: 1.35; color: #fff; }
.tbv7-sp-ai-text em { font-style: normal; color: #FFCC00; font-weight: 700; }
.tbv7-sp-ai-arrow { color: #FFCC00; font-weight: 900; font-size: 16px; flex-shrink: 0; }

/* SCROLL BODY */
.tbv7-sp-body {
  overflow-y: auto;
  padding: 20px 24px 24px;
  scroll-behavior: smooth;
}
.tbv7-sp-body::-webkit-scrollbar { width: 6px; }
.tbv7-sp-body::-webkit-scrollbar-track { background: transparent; }
.tbv7-sp-body::-webkit-scrollbar-thumb { background: rgba(255,255,255,.12); border-radius: 3px; }
.tbv7-sp-body::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,.45); }

/* HERO RESORT */
.tbv7-sp-hero {
  border-radius: 28px; overflow: hidden;
  background: #06102a;
  box-shadow: 0 8px 24px rgba(0,0,0,.35);
  margin-bottom: 16px;
  position: relative;
}
.tbv7-sp-hero-photo {
  aspect-ratio: 16/10;
  background-size: cover; background-position: center;
  position: relative;
  transition: transform .8s cubic-bezier(.4,0,.2,1);
}
.tbv7-sp-hero-photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(6,16,42,.9) 100%);
}
.tbv7-sp-hero:hover .tbv7-sp-hero-photo { transform: scale(1.04); }
.tbv7-sp-hero-badge {
  position: absolute; top: 14px; left: 14px;
  padding: 6px 12px;
  background: rgba(255,204,0,.95); color: #06102a;
  font-size: 10px; font-weight: 900;
  letter-spacing: .1em; text-transform: uppercase;
  border-radius: 100px; z-index: 2;
}
.tbv7-sp-hero-fav {
  position: absolute; top: 14px; right: 14px;
  width: 36px; height: 36px;
  background: rgba(6,16,42,.6);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 50%;
  display: grid; place-items: center;
  cursor: pointer; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  z-index: 2; transition: all .3s cubic-bezier(.4,0,.2,1);
}
.tbv7-sp-hero-fav:hover { background: rgba(255,204,0,.2); border-color: #FFCC00; }
.tbv7-sp-hero-fav svg { width: 18px; height: 18px; }
.tbv7-sp-hero-content { padding: 16px 18px 4px; }
.tbv7-sp-hero-name {
  font-size: 19px; font-weight: 800;
  letter-spacing: -.01em; line-height: 1.2;
  margin: 0 0 4px; color: #fff;
}
.tbv7-sp-hero-stars { display: flex; gap: 2px; margin-bottom: 8px; }
.tbv7-sp-hero-stars svg { width: 14px; height: 14px; fill: #FFCC00; }
.tbv7-sp-hero-meta { font-size: 13px; color: rgba(255,255,255,.78); font-weight: 500; }
.tbv7-sp-hero-actions { display: flex; gap: 8px; padding: 12px 18px 18px; }
.tbv7-sp-hero-btn {
  flex: 1; padding: 12px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  color: #fff; border-radius: 20px;
  font-family: 'Urbanist', sans-serif;
  font-weight: 700; font-size: 13px;
  cursor: pointer;
  transition: all .3s cubic-bezier(.4,0,.2,1);
}
.tbv7-sp-hero-btn:hover { background: rgba(255,255,255,.12); border-color: #FFCC00; color: #FFCC00; }

/* ACCORDION SECTIONS */
.tbv7-sp-section {
  margin-bottom: 10px; border-radius: 20px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.06);
  overflow: hidden;
  transition: border-color .3s cubic-bezier(.4,0,.2,1);
}
.tbv7-sp-section.open {
  border-color: rgba(255,204,0,.3);
  background: rgba(255,204,0,.03);
}
.tbv7-sp-sec-head {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 18px; cursor: pointer; -webkit-user-select: none; user-select: none;
  transition: background .2s cubic-bezier(.4,0,.2,1);
}
.tbv7-sp-sec-head:hover { background: rgba(255,255,255,.08); }
.tbv7-sp-sec-num {
  width: 26px; height: 26px; border-radius: 50%;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  display: grid; place-items: center;
  font-size: 12px; font-weight: 800;
  color: rgba(255,255,255,.45);
  transition: all .3s cubic-bezier(.4,0,.2,1);
  flex-shrink: 0;
}
.tbv7-sp-section.done .tbv7-sp-sec-num {
  background: rgba(255,204,0,.15); border-color: #FFCC00; color: #FFCC00;
}
.tbv7-sp-section.done .tbv7-sp-sec-num::before { content: "\2713"; font-weight: 900; }
.tbv7-sp-section.done .tbv7-sp-sec-num-text { display: none; }
.tbv7-sp-sec-body { flex: 1; min-width: 0; }
.tbv7-sp-sec-label {
  font-size: 11px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: rgba(255,255,255,.45); margin-bottom: 2px;
}
.tbv7-sp-sec-value {
  font-size: 15px; font-weight: 700; color: #fff; line-height: 1.25;
}
.tbv7-sp-sec-value.empty {
  color: rgba(255,255,255,.45); font-weight: 500; font-style: italic;
}
.tbv7-sp-sec-chev {
  color: rgba(255,255,255,.45);
  transition: transform .3s cubic-bezier(.4,0,.2,1);
  flex-shrink: 0;
}
.tbv7-sp-section.open .tbv7-sp-sec-chev { transform: rotate(180deg); color: #FFCC00; }
.tbv7-sp-sec-chev svg { width: 18px; height: 18px; }
.tbv7-sp-sec-content {
  max-height: 0; overflow: hidden;
  transition: max-height .4s cubic-bezier(.4,0,.2,1);
}
.tbv7-sp-section.open .tbv7-sp-sec-content { max-height: 1200px; }
.tbv7-sp-sec-inner { padding: 4px 18px 18px; }

/* OPTION CARDS */
.tbv7-sp-opts { display: flex; flex-direction: column; gap: 8px; }
.tbv7-sp-opt {
  display: flex; align-items: center; gap: 12px;
  padding: 14px;
  background: rgba(255,255,255,.06);
  border: 1.5px solid transparent;
  border-radius: 20px;
  cursor: pointer;
  font-family: 'Urbanist', sans-serif;
  transition: all .3s cubic-bezier(.4,0,.2,1);
  text-align: left;
}
.tbv7-sp-opt:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.12); }
.tbv7-sp-opt.selected { background: rgba(255,204,0,.08); border-color: #FFCC00; }
.tbv7-sp-opt-radio {
  width: 20px; height: 20px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.45);
  display: grid; place-items: center; flex-shrink: 0;
  transition: all .3s cubic-bezier(.4,0,.2,1);
}
.tbv7-sp-opt.selected .tbv7-sp-opt-radio { border-color: #FFCC00; }
.tbv7-sp-opt.selected .tbv7-sp-opt-radio::after {
  content: ""; width: 10px; height: 10px;
  border-radius: 50%; background: #FFCC00;
}
.tbv7-sp-opt-body { flex: 1; min-width: 0; }
.tbv7-sp-opt-name { font-size: 14px; font-weight: 700; color: #fff; line-height: 1.2; margin-bottom: 2px; }
.tbv7-sp-opt-desc { font-size: 12px; color: rgba(255,255,255,.78); font-weight: 500; line-height: 1.3; }
.tbv7-sp-opt-price { font-size: 13px; font-weight: 800; color: #FFCC00; text-align: right; flex-shrink: 0; }
.tbv7-sp-opt-price small {
  display: block; font-size: 10px;
  color: rgba(255,255,255,.45); font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase;
}

/* NIGHTS STEPPER */
.tbv7-sp-stepper {
  display: flex; align-items: center; justify-content: center;
  gap: 24px; padding: 10px 0 6px;
}
.tbv7-sp-step-btn {
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(255,255,255,.06);
  border: 1.5px solid rgba(255,255,255,.12);
  color: #fff; cursor: pointer;
  display: grid; place-items: center;
  transition: all .25s cubic-bezier(.4,0,.2,1);
  flex-shrink: 0;
}
.tbv7-sp-step-btn:hover:not(:disabled) {
  background: #FFCC00; border-color: #FFCC00; color: #06102a;
  transform: scale(1.08);
  box-shadow: 0 6px 16px rgba(255,204,0,.3);
}
.tbv7-sp-step-btn:active:not(:disabled) { transform: scale(.95); }
.tbv7-sp-step-btn:disabled { opacity: .3; cursor: not-allowed; }
.tbv7-sp-step-btn svg { width: 22px; height: 22px; }
.tbv7-sp-step-value { display: flex; flex-direction: column; align-items: center; min-width: 110px; }
.tbv7-sp-step-num {
  width: 80px; background: transparent; border: none;
  color: #FFCC00;
  font-family: 'Urbanist', sans-serif;
  font-size: 48px; font-weight: 900;
  letter-spacing: -.03em; text-align: center;
  line-height: 1; outline: none;
  -moz-appearance: textfield;
  appearance: textfield;
}
.tbv7-sp-step-num::-webkit-outer-spin-button,
.tbv7-sp-step-num::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.tbv7-sp-step-num:focus { color: #FFD633; }
.tbv7-sp-step-label {
  font-size: 11px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  color: rgba(255,255,255,.45); margin-top: 4px;
}
.tbv7-sp-step-hint {
  text-align: center; font-size: 11px;
  color: rgba(255,255,255,.45); font-weight: 500;
  margin-top: 10px; padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,.06);
}
.tbv7-sp-step-hint strong { color: #FFCC00; font-weight: 700; }

/* EXTRAS */
.tbv7-sp-extras { display: flex; flex-direction: column; gap: 8px; }
.tbv7-sp-extra {
  display: flex; align-items: center; gap: 12px;
  padding: 12px;
  background: rgba(255,255,255,.06);
  border: 1px solid transparent;
  border-radius: 20px; cursor: pointer;
  font-family: 'Urbanist', sans-serif;
  transition: all .3s cubic-bezier(.4,0,.2,1);
  text-align: left;
}
.tbv7-sp-extra:hover { background: rgba(255,255,255,.08); }
.tbv7-sp-extra.selected { background: rgba(255,204,0,.08); border-color: #FFCC00; }
.tbv7-sp-extra-icon {
  width: 40px; height: 40px; border-radius: 12px;
  background: linear-gradient(135deg, rgba(255,204,0,.15), rgba(255,204,0,.05));
  display: grid; place-items: center; flex-shrink: 0;
}
.tbv7-sp-extra-icon svg { width: 22px; height: 22px; stroke: #FFCC00; fill: none; stroke-width: 1.6; }
.tbv7-sp-extra-body { flex: 1; min-width: 0; }
.tbv7-sp-extra-name { font-size: 13px; font-weight: 700; color: #fff; margin-bottom: 2px; }
.tbv7-sp-extra-desc { font-size: 11px; color: rgba(255,255,255,.78); line-height: 1.3; }
.tbv7-sp-extra-price { font-size: 13px; font-weight: 800; color: #FFCC00; flex-shrink: 0; }
.tbv7-sp-extra-check {
  width: 22px; height: 22px; border-radius: 6px;
  border: 2px solid rgba(255,255,255,.45);
  display: grid; place-items: center;
  transition: all .3s cubic-bezier(.4,0,.2,1);
  flex-shrink: 0;
}
.tbv7-sp-extra.selected .tbv7-sp-extra-check { background: #FFCC00; border-color: #FFCC00; }
.tbv7-sp-extra.selected .tbv7-sp-extra-check::before {
  content: "\2713"; color: #06102a; font-size: 14px; font-weight: 900;
}

/* FOOTER */
.tbv7-sp-footer {
  padding: 16px 24px 36px;
  background: linear-gradient(180deg, transparent 0%, rgba(6,16,42,.98) 40%);
  border-top: 1px solid rgba(255,255,255,.12);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}
.tbv7-sp-price-row {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-bottom: 12px;
}
.tbv7-sp-price-label {
  font-size: 11px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: rgba(255,255,255,.45); margin-bottom: 4px;
}
.tbv7-sp-price-value {
  font-size: 30px; font-weight: 900;
  letter-spacing: -.02em; color: #fff; line-height: 1;
}
.tbv7-sp-price-small { font-size: 12px; color: rgba(255,255,255,.78); font-weight: 600; text-align: right; }
.tbv7-sp-price-small strong { color: #FFCC00; font-weight: 800; }
.tbv7-sp-cta {
  width: 100%; padding: 18px;
  background: #FFCC00;
  color: #0D2260; border: none; border-radius: 20px;
  font-family: 'Urbanist', sans-serif;
  font-weight: 900; font-size: 16px;
  letter-spacing: .01em; cursor: pointer;
  transition: all .3s cubic-bezier(.4,0,.2,1);
  box-shadow: 0 10px 28px rgba(255,204,0,.45), 0 2px 6px rgba(0,0,0,.3);
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.tbv7-sp-cta:hover { background: #FFD633; transform: translateY(-2px); box-shadow: 0 14px 36px rgba(255,204,0,.55), 0 3px 8px rgba(0,0,0,.35); }
.tbv7-sp-cta:active { transform: translateY(0); }
.tbv7-sp-cta svg { width: 18px; height: 18px; stroke-width: 3; }

/* EMPTY STATE */
.tbv7-sp-empty {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  height: 100%; padding: 40px 24px;
  text-align: center;
}
.tbv7-sp-empty-icon {
  width: 64px; height: 64px; border-radius: 50%;
  background: rgba(255,204,0,.08);
  border: 1px solid rgba(255,204,0,.2);
  display: grid; place-items: center;
  margin-bottom: 16px;
}
.tbv7-sp-empty-icon svg { width: 28px; height: 28px; stroke: #FFCC00; fill: none; stroke-width: 1.6; }
.tbv7-sp-empty-title { font-size: 18px; font-weight: 800; color: #fff; margin-bottom: 6px; }
.tbv7-sp-empty-sub { font-size: 13px; color: rgba(255,255,255,.78); font-weight: 500; }

/* RTL support (arabic) */
[dir="rtl"] .tbv7-sp-crumb.done::before { content: " \2713"; }
[dir="rtl"] .tbv7-sp-price-row { flex-direction: row-reverse; }
[dir="rtl"] .tbv7-sp-opt, [dir="rtl"] .tbv7-sp-extra { flex-direction: row-reverse; text-align: right; }

/* END F11 */

