/* Discover Dubai microsite — mobile first. Phone styles come first; wider screens are added at
   768px and 1024px. All colours come from the tokens below. */

:root {
  --sand: #eaf6fc; --sand-2: #d8ecf6; --paper: #ffffff; --ink: #1c2230; --muted: #5f6675; --line: #cfe5f0;
  --night: #12233f; --night-2: #1b3157;
  /* Coral = brand magenta (the "i" dots in the visitdubai.com wordmark) so CTAs match the logo. */
  --coral: #ba2c87; --coral-dark: #8e1f64; --coral-ink: #fff; --gold: #e9b44c;
  --dubai-blue: #0090d7; --dubai-magenta: #ba2c87; --ok: #2f855a; --warn: #b7791f; --alert: #c53030;
  --d1: #0090d7; --d2: #ba2c87; --d3: #e2603a; --d4: #2a9d8f; --d5: #7c3aed; --d6: #b7791f; --d7: #4b5563;
  --radius: 14px; --radius-sm: 8px; --shadow: 0 10px 30px rgba(18, 35, 63, .14);
  --header-h: 56px; --bottomnav-h: 56px;
  --display: "Readex Pro", "DM Sans", system-ui, sans-serif;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: 16px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 12px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--sand); color: var(--ink); font: 400 16px/1.55 var(--sans); overflow-x: hidden; padding-bottom: calc(var(--bottomnav-h) + env(safe-area-inset-bottom)); }
img, svg, canvas { max-width: 100%; }
img { display: block; height: auto; }
a { color: var(--dubai-blue); text-underline-offset: 3px; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.15; margin: 0; text-wrap: balance; }
h2 { font-size: 26px; font-weight: 700; letter-spacing: -.01em; }
h3 { font-size: 18px; font-weight: 600; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--dubai-blue); outline-offset: 2px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 8px; top: -60px; z-index: 300; background: var(--paper); padding: 10px 14px; border-radius: var(--radius-sm); font-weight: 700; }
.skip-link:focus { top: 8px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.kicker { font: 600 12px/1.3 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--coral-dark); }
[hidden] { display: none !important; }

.container { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: 32px; }
.section-paper { background: var(--paper); }
.section-alt { background: var(--sand-2); }
.section-night { background: var(--night); color: #fff; }
.section-night .kicker { color: var(--gold); }
.section-head { display: grid; gap: 6px; margin-bottom: 20px; }
.section-intro { color: var(--muted); max-width: 60ch; }
.section-night .section-intro, .section-night .muted { color: #c6cfdd; }

/* ---------- Buttons, chips, pills ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 18px; border: 1px solid transparent; border-radius: 999px; font-weight: 700; font-size: 15px; text-decoration: none; line-height: 1.1; background: none; color: inherit; }
.btn-coral { background: var(--coral); color: var(--coral-ink); }
.btn-coral:hover { background: var(--coral-dark); }
.btn-night { background: var(--night); color: #fff; }
.btn-ghost { border-color: currentColor; }
.btn-ghost:hover { background: rgba(18, 35, 63, .06); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-block { width: 100%; }
.icon-button { display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: none; font-size: 26px; line-height: 1; }
.icon-button svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.link-button { border: 0; background: none; padding: 0; color: var(--dubai-blue); text-decoration: underline; text-underline-offset: 3px; font: inherit; cursor: pointer; }
.chip-row { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px var(--gutter) 6px; margin-inline: calc(-1 * var(--gutter)); scroll-padding-inline: var(--gutter); }
.chip-row::-webkit-scrollbar { display: none; }
.chip { flex: none; min-height: 40px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); font-size: 14px; font-weight: 600; white-space: nowrap; }
.chip[aria-pressed="true"] { background: var(--night); border-color: var(--night); color: #fff; }
.pill { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: .02em; background: var(--sand-2); color: var(--ink); white-space: nowrap; }
.pill-forecast, .pill-today { background: #dcefe4; color: #1f5a3c; }
.pill-typical { background: #f3e6cc; color: #6b4c12; }
.pill-live { background: var(--coral); color: #fff; }

/* Images with a gradient fallback */
.media { position: relative; overflow: hidden; background: var(--fallback, linear-gradient(135deg, var(--night-2), var(--coral))); }
.media img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Header ---------- */
.site-header { background: var(--night); color: #fff; }
.header-inner { display: flex; align-items: center; gap: 12px; height: var(--header-h); max-width: 1200px; margin-inline: auto; padding-inline: var(--gutter); }
.dh-logo img { height: 40px; width: auto; }
.campaign-mark { display: grid; color: #fff; text-decoration: none; line-height: 1.05; padding-left: 12px; border-left: 1px solid rgba(255, 255, 255, .25); }
.campaign-mark strong { font: 700 17px var(--display); letter-spacing: .02em; text-transform: uppercase; }
.campaign-mark small { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.header-nav, .partner-lockup-header, .menu-button { display: none; }
.partner-bar { background: var(--night-2); display: flex; justify-content: center; padding: 8px var(--gutter); }
.partner-lockup { display: inline-flex; align-items: center; gap: 10px; color: #dfe6f1; text-decoration: none; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.partner-lockup img { height: 26px; width: auto; }
.partner-lockup.partner-lockup-header { display: none; }

/* ---------- Drawer ---------- */
.drawer { position: fixed; inset: 0; z-index: 250; background: rgba(12, 20, 36, .6); }
.drawer-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(360px, 88vw); background: var(--night); color: #fff; padding: 16px 24px calc(24px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 12px; overflow-y: auto; }
.drawer-close { align-self: flex-end; color: #fff; }
.drawer .kicker { color: var(--gold); }
.drawer-links { display: grid; }
.drawer-links a { color: #fff; text-decoration: none; font: 600 22px var(--display); padding: 14px 0; border-bottom: 1px solid rgba(255, 255, 255, .15); }
.drawer-dh { margin-top: auto; color: var(--gold); font-weight: 700; text-decoration: none; padding: 12px 0; }

/* ---------- Bottom navigation (phones) ---------- */
.bottom-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 150; display: flex; height: calc(var(--bottomnav-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: var(--night); box-shadow: 0 -4px 20px rgba(0, 0, 0, .2); }
.bottom-nav > * { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-width: 0; border: 0; background: none; color: #c6cfdd; text-decoration: none; font-size: 11px; font-weight: 600; position: relative; }
.bottom-nav svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.bottom-nav .is-active { color: #fff; }
.bottom-nav .is-active::before { content: ""; position: absolute; top: 0; left: 50%; width: 28px; height: 3px; margin-left: -14px; border-radius: 0 0 3px 3px; background: var(--coral); }
body.is-fullscreen { overflow: hidden; }
body.is-fullscreen .bottom-nav { display: none; }

/* ---------- Ads (house banners) ---------- */
.ad-slot { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px var(--gutter); background: var(--sand-2); }
.ad-label { font-size: 10px; letter-spacing: .14em; color: var(--muted); }
.house-ad { display: flex; align-items: center; justify-content: space-between; gap: 10px; overflow: hidden; max-width: 100%; padding: 8px 14px; border-radius: 6px; background: linear-gradient(110deg, var(--night) 55%, var(--night-2)); color: #fff; text-decoration: none; }
.house-ad img { height: 22px; width: auto; flex: none; }
.house-ad-copy { display: grid; line-height: 1.15; min-width: 0; }
.house-ad-copy b { font: 700 16px var(--display); }
.house-ad-copy span { font-size: 12px; color: #c6cfdd; }
.house-ad-cta { flex: none; padding: 6px 12px; border-radius: 999px; background: var(--coral); font-weight: 700; font-size: 13px; }
.house-ad.size-320x50 { padding: 4px 10px; }
.house-ad.size-320x50 .house-ad-copy span { display: none; }
.house-ad.size-300x250 { flex-direction: column; justify-content: center; text-align: center; padding: 20px; gap: 14px; }
.house-ad.size-300x250 img { height: 40px; }
.house-ad.size-300x250 .house-ad-copy b { font-size: 24px; }
.house-ad.size-970x250 { justify-content: center; gap: 48px; }
.house-ad.size-970x250 img { height: 64px; }
.house-ad.size-970x250 .house-ad-copy b { font-size: 40px; }
.house-ad.size-970x250 .house-ad-copy span { font-size: 18px; }
.house-ad.size-970x250 .house-ad-cta { font-size: 18px; padding: 12px 22px; }

/* ---------- Hero: event countdown carousel ---------- */
.hero { position: relative; background: var(--night); color: #fff; }
.hero-static { padding: 40px var(--gutter); display: grid; gap: 12px; justify-items: start; }
.hero-track { display: grid; }
.slide { grid-area: 1 / 1; display: flex; flex-direction: column; opacity: 0; visibility: hidden; transition: opacity .6s ease, visibility 0s linear .6s; }
.slide.is-active { opacity: 1; visibility: visible; transition: opacity .6s ease; }
.slide-media { aspect-ratio: 16 / 10; }
.slide-credit { position: absolute; right: 8px; bottom: 6px; font-size: 11px; color: rgba(255, 255, 255, .85); text-shadow: 0 1px 3px rgba(0, 0, 0, .7); }
.slide-body { display: grid; gap: 10px; padding: 18px var(--gutter) 10px; }
.slide-kicker { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); }
.slide-title { font-size: 30px; font-weight: 700; }
.slide-dates { color: #dfe6f1; }
.countdown { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.cd-label { flex-basis: 100%; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #c6cfdd; }
.cd-unit { display: grid; justify-items: center; min-width: 62px; padding: 8px 6px 6px; border-radius: var(--radius-sm); background: rgba(255, 255, 255, .1); }
.cd-unit b { font: 700 30px/1 var(--display); font-variant-numeric: tabular-nums; }
.cd-unit small { margin-top: 4px; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: #c6cfdd; }
.cd-running { font: 600 20px var(--display); }
.slide-weather .weather-line { color: #fff; }
.slide-weather .tips li { color: #dfe6f1; }
.slide-actions { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 4px; }
.slide-actions .btn-ghost { color: #fff; }
.hero-controls { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 6px var(--gutter) 18px; }
.hero-controls .icon-button { color: #fff; font-size: 22px; border: 1px solid rgba(255, 255, 255, .3); width: 40px; height: 40px; }
.hero-prev, .hero-next { display: none !important; }
.hero-dots { display: flex; align-items: center; }
.hero-dots button { width: 28px; height: 44px; padding: 0; border: 0; background: none; display: grid; place-items: center; }
.hero-dots button::before { content: ""; width: 8px; height: 8px; border-radius: 4px; background: rgba(255, 255, 255, .45); transition: width .25s; }
.hero-dots button[aria-current="true"]::before { width: 22px; background: var(--gold); }
.hero-pause { margin-left: 8px; font-size: 13px !important; }

/* Weather line and tips (carousel, sheets, plan) */
.weather-line { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 15px; }
.weather-line svg { width: 26px; height: 26px; flex: none; }
.weather-temps { font: 700 17px var(--display); }
.tips { margin: 6px 0 0; padding-left: 18px; display: grid; gap: 4px; font-size: 14px; }

/* ---------- Events ---------- */
.week-strip { margin-bottom: 18px; }
.week-strip h3 { font-size: 15px; margin-bottom: 8px; }
.week-list { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; padding: 2px var(--gutter) 6px; margin-inline: calc(-1 * var(--gutter)); }
.week-card { flex: 0 0 78%; display: grid; gap: 4px; text-align: left; padding: 12px 14px; border: 0; border-radius: var(--radius); background: var(--night); color: #fff; }
.week-card small { color: var(--gold); font-weight: 700; }
.events-filters { display: grid; gap: 4px; margin-bottom: 12px; }
.event-list { display: grid; gap: 10px; list-style: none; margin: 0; padding: 0; }
.event-row { display: grid; grid-template-columns: 56px 1fr auto; align-items: center; gap: 12px; width: 100%; min-height: 72px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); text-align: left; }
.event-date { display: grid; justify-items: center; padding: 6px 0; border-radius: var(--radius-sm); background: var(--sand-2); line-height: 1.05; }
.event-date b { font: 700 22px var(--display); }
.event-date small { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.event-info { min-width: 0; display: grid; gap: 2px; }
.event-info h3 { font-size: 16px; }
.event-info p { font-size: 13px; color: var(--muted); }
.event-chevron { color: var(--muted); font-size: 22px; }
.event-sheet-media { aspect-ratio: 16 / 9; border-radius: var(--radius); margin-bottom: 12px; }
.event-sheet-meta { display: grid; gap: 4px; margin-bottom: 10px; }

/* ---------- Guides ---------- */
.guide-list { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 2px var(--gutter) 8px; margin-inline: calc(-1 * var(--gutter)); scroll-padding-inline: var(--gutter); }
.guide-list::-webkit-scrollbar { display: none; }
.guide-card { flex: 0 0 78%; scroll-snap-align: start; display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); color: inherit; text-decoration: none; }
.guide-card .media { aspect-ratio: 16 / 10; }
.guide-body { display: grid; gap: 6px; padding: 14px; flex: 1; align-content: start; }
.guide-body h3 { font-size: 17px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.guide-body p { font-size: 14px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.guide-link { margin-top: auto; padding-top: 6px; font-size: 13px; font-weight: 700; color: var(--dubai-blue); }

/* ---------- Itinerary: intro ---------- */
.planner-intro { display: grid; gap: 16px; }
.planner-preview { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #dfeaf0; aspect-ratio: 994 / 960; max-height: 360px; }
.planner-preview svg { width: 100%; height: 100%; }
.planner-preview::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255, 250, 242, 0) 40%, rgba(255, 250, 242, .85)); }
.planner-intro-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }

/* ---------- Itinerary: builder ---------- */
.builder { display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.builder.is-fullscreen { position: fixed; inset: 0; z-index: 200; height: auto; border: 0; border-radius: 0; padding-top: env(safe-area-inset-top); }
.summary { overflow-y: auto; }
.builder.is-fullscreen .summary { flex: 1; }
.builder-top { display: flex; align-items: center; gap: 6px; min-height: 52px; padding: 4px 8px; border-bottom: 1px solid var(--line); }
.builder-close { flex: none; }
.trip-summary { flex: 1; min-width: 0; display: grid; line-height: 1.2; }
.trip-summary b { font: 600 16px var(--display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.trip-summary small { color: var(--muted); font-size: 12px; }
.builder-top .btn { min-height: 40px; padding: 8px 14px; font-size: 14px; }
.day-tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 8px 12px 4px; }
.day-tabs::-webkit-scrollbar { display: none; }
.day-tab { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-weight: 700; font-size: 14px; }
.day-tab .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--day); }
.day-tab small { font-weight: 500; color: var(--muted); }
.day-tab .count { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--day); color: #fff; font-size: 12px; display: grid; place-items: center; }
.day-tab[aria-selected="true"] { border-color: var(--day); box-shadow: inset 0 -3px 0 var(--day); }
.builder .chip-row { margin: 0; padding: 4px 12px 6px; }
.filter-note { padding: 0 12px 6px; font-size: 12px; color: var(--muted); }
.builder-main { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.map-wrap { position: relative; flex: 1; min-height: 320px; background: #dfeaf0; }
.builder:not(.is-fullscreen) .map-wrap { height: 420px; flex: none; }
.map-viewport { position: absolute; inset: 0; touch-action: none; cursor: grab; user-select: none; -webkit-user-select: none; }
.map-viewport.is-dragging { cursor: grabbing; }
.map-viewport > svg { width: 100%; height: 100%; display: block; }
.map-viewport #pins, .map-viewport #areas text { pointer-events: none; }
.map-viewport #pins, .map-viewport #graticule { display: none; }
.map-viewport #areas text { paint-order: stroke; stroke: rgba(255, 255, 255, .7); stroke-width: 3px; vector-effect: non-scaling-stroke; }
.map-wrap { background: #dfeaf0; }
.map-tools { position: absolute; right: 10px; bottom: 10px; display: grid; gap: 6px; }
.map-tools .icon-button { width: 44px; height: 44px; background: #fff; box-shadow: var(--shadow); color: var(--ink); font-size: 22px; font-weight: 700; }
.map-status { position: absolute; left: 10px; bottom: 10px; max-width: 60%; padding: 6px 10px; border-radius: var(--radius-sm); background: rgba(255, 255, 255, .92); font-size: 12px; color: var(--muted); }
.live-pin { cursor: pointer; }
.live-pin .hit { fill: transparent; stroke: none; }
.live-pin .dot { fill: #fff; stroke: var(--night); }
.live-pin text { font-family: var(--sans); font-weight: 700; fill: #fff; text-anchor: middle; dominant-baseline: central; pointer-events: none; }
.live-pin.is-active .dot { fill: var(--day); stroke: #fff; }
.live-pin.is-other .dot { fill: var(--day); stroke: #fff; opacity: .7; }
.live-pin .event-ring { fill: none; stroke: var(--gold); }
.live-pin:focus { outline: none; }
.live-pin:focus-visible .dot { stroke: var(--dubai-blue); stroke-width: 4px; }
.live-cluster { cursor: pointer; }
.live-cluster circle { fill: var(--night); stroke: #fff; }
.live-cluster text { font-family: var(--sans); fill: #fff; font-weight: 700; text-anchor: middle; dominant-baseline: central; pointer-events: none; }
.pin-pop { animation: pin-pop .25s ease-out; transform-box: fill-box; transform-origin: center; }
@keyframes pin-pop { from { transform: scale(1.5); } to { transform: scale(1); } }
.plan-bar { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 64px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); border: 0; border-top: 1px solid var(--line); background: #fff; text-align: left; box-shadow: 0 -6px 18px rgba(18, 35, 63, .1); }
.plan-bar .dot { width: 12px; height: 12px; border-radius: 50%; background: var(--day); flex: none; }
.plan-bar span { flex: 1; font-weight: 700; }
.plan-bar b { font-size: 20px; color: var(--muted); }
.plan-panel { display: none; }

/* Plan content (sheet on phones, side panel on desktop) */
.plan-day-head { display: grid; gap: 6px; margin-bottom: 10px; }
.plan-day-head h3 { display: flex; align-items: center; gap: 8px; }
.plan-day-head h3 .dot { width: 12px; height: 12px; border-radius: 50%; background: var(--day); }
.plan-start { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.plan-start input { min-height: 36px; padding: 4px 8px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; }
.timeline { list-style: none; margin: 0 0 12px; padding: 0; display: grid; }
.stop { display: grid; grid-template-columns: 54px 28px 1fr auto; align-items: center; gap: 8px; padding: 8px 0; }
.stop-time { font-variant-numeric: tabular-nums; font-weight: 700; font-size: 14px; }
.stop-num { width: 26px; height: 26px; border-radius: 50%; background: var(--day); color: #fff; display: grid; place-items: center; font-size: 13px; font-weight: 700; }
.stop-name { min-width: 0; }
.stop-name b { display: block; font-size: 15px; }
.stop-name small { color: var(--muted); font-size: 12px; }
.stop-menu { display: flex; gap: 2px; }
.stop-menu .icon-button { width: 36px; height: 44px; font-size: 18px; color: var(--muted); }
.stop.is-dragging { opacity: .5; }
.drag-handle { touch-action: none; cursor: grab; }
.leg { padding: 2px 0 2px 62px; font-size: 13px; color: var(--muted); }
.leg::before { content: ""; display: inline-block; width: 2px; height: 14px; margin-right: 10px; vertical-align: middle; background: var(--line); }
.warnings { display: grid; gap: 6px; margin-bottom: 12px; }
.warning { padding: 8px 12px; border-radius: var(--radius-sm); background: #fbf0dc; color: #6b4c12; font-size: 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.warning .link-button { font-size: 14px; font-weight: 700; }
.day-events { display: grid; gap: 6px; margin-bottom: 12px; }
.day-event { padding: 8px 12px; border-radius: var(--radius-sm); background: #e7eef8; font-size: 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.plan-weather { margin-bottom: 10px; }
.plan-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.plan-note { margin-top: 10px; font-size: 12px; color: var(--muted); }
.empty-day { padding: 16px; border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted); text-align: center; margin-bottom: 12px; }

/* Pin card */
.pin-card .media { aspect-ratio: 16 / 9; border-radius: var(--radius); margin-bottom: 12px; }
.pin-meta { display: grid; gap: 4px; margin-bottom: 10px; color: var(--muted); font-size: 14px; }
.tag-list { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.tag-list .pill { text-transform: capitalize; }

/* Summary */
.summary { display: grid; gap: 16px; padding: 16px; }
.summary-days { display: grid; gap: 12px; }
.summary-day { border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; background: #fff; }
.summary-day h4 { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; font-size: 16px; }
.summary-day h4 .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--day); }
.summary-day ol { margin: 0; padding-left: 20px; display: grid; gap: 2px; font-size: 14px; }
.summary-actions { display: grid; gap: 10px; }
.gmaps-links { display: flex; flex-wrap: wrap; gap: 8px; }

/* Form bits in sheets */
.field { display: grid; gap: 6px; margin-bottom: 14px; font-weight: 600; font-size: 14px; }
.field input, .field select { min-height: 44px; padding: 8px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; font-weight: 400; font-size: 16px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.stepper { display: inline-flex; align-items: center; gap: 12px; }
.stepper output { min-width: 3ch; text-align: center; font: 700 22px var(--display); }
.stepper .icon-button { border: 1px solid var(--line); }

/* ---------- Dubai now ---------- */
.dubai-now { margin-top: 28px; }
.dubai-now > .kicker { margin-bottom: 10px; font-family: var(--sans); }
.now-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.now-tile { display: grid; align-content: start; gap: 4px; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; min-width: 0; font-size: 14px; }
.now-tile h4 { font: 700 12px var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.now-tile .muted { font-size: 12px; }
.now-big { font: 700 26px var(--display); }
.now-weather { display: flex; align-items: center; gap: 6px; }
.now-weather svg { width: 30px; height: 30px; }
.now-weather b { font: 700 24px var(--display); }
.fx-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.fx-row input { width: 100%; max-width: 110px; min-height: 40px; padding: 6px 8px; border: 1px solid var(--line); border-radius: var(--radius-sm); font-size: 16px; }
.fx-row output { font: 700 18px var(--display); }

/* ---------- Scene card ---------- */
.card-teaser { display: grid; gap: 20px; }
.card-copy { display: grid; gap: 10px; justify-items: start; }
.card-sample canvas { width: 100%; max-width: 340px; height: auto; border-radius: var(--radius); display: block; margin-inline: auto; box-shadow: 0 20px 50px rgba(0, 0, 0, .35); }
.card-studio { background: var(--sand); color: var(--ink); }
body.card-open .card-teaser { visibility: hidden; } /* the page's sample card never shows behind the card maker */
.card-studio.is-open { position: fixed; inset: 0; z-index: 200; display: flex; flex-direction: column; overflow: hidden; padding-top: env(safe-area-inset-top); }
.studio-bar { display: flex; align-items: center; gap: 4px; min-height: 52px; padding: 0 6px; border-bottom: 1px solid var(--line); background: var(--paper); }
.studio-title { flex: 1; min-width: 0; font: 600 17px var(--display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.studio-title small { font: 700 12px var(--sans); color: var(--coral-dark); margin-right: 6px; letter-spacing: .06em; }
.studio-body { flex: 1; min-height: 0; overflow-y: auto; padding: 16px var(--gutter) 16px; }
.studio-foot { display: flex; gap: 10px; padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--paper); }
.studio-foot .btn { flex: 1; }
.photo-step { display: grid; gap: 14px; max-width: 520px; margin-inline: auto; }
.photo-step .studio-canvas { max-height: 42dvh; }
.photo-sources { display: grid; gap: 10px; }
.photo-sources .btn { width: 100%; }
.privacy { display: flex; gap: 10px; padding: 12px; border-radius: var(--radius); background: #e7eef8; font-size: 14px; }
.studio-status { min-height: 22px; font-size: 14px; color: var(--muted); }
.studio-status.is-busy::before { content: ""; display: inline-block; width: 12px; height: 12px; margin-right: 8px; vertical-align: -1px; border: 2px solid var(--coral); border-right-color: transparent; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.scene-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.scene-tile { position: relative; display: grid; align-content: end; aspect-ratio: 4 / 5; padding: 10px; border: 0; border-radius: var(--radius); overflow: hidden; color: #fff; text-align: left; background: var(--fallback); }
.scene-tile .media { position: absolute; inset: 0; background: transparent; }
.scene-tile .media canvas { display: block; width: 100%; height: 100%; object-fit: cover; }
.scene-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 45%, rgba(0, 0, 0, .7)); }
.scene-tile span, .scene-tile b { position: relative; z-index: 1; }
.scene-tile span { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); }
.scene-tile b { font: 600 15px/1.2 var(--display); }
.scene-tile .order { position: absolute; top: 8px; right: 8px; z-index: 2; width: 30px; height: 30px; border-radius: 50%; background: var(--coral); color: #fff; display: grid; place-items: center; font: 700 15px var(--sans); }
.scene-tile[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--coral); }
.picked-strip { display: flex; gap: 8px; overflow-x: auto; padding: 8px 0; scrollbar-width: none; }
.picked-item { flex: none; display: flex; align-items: center; gap: 2px; padding: 4px 4px 4px 12px; border-radius: 999px; background: var(--night); color: #fff; font-size: 13px; font-weight: 600; }
.picked-item .icon-button { width: 32px; height: 32px; color: #fff; font-size: 18px; }
.scene-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; justify-content: space-between; }
.studio-canvas { display: block; margin: 0 auto; width: auto; max-width: 100%; max-height: calc(100dvh - 52px - 160px - env(safe-area-inset-top) - env(safe-area-inset-bottom)); height: auto; border-radius: var(--radius-sm); box-shadow: var(--shadow); touch-action: none; background: var(--night); }
.card-studio[data-step="preview"] .studio-canvas { max-height: calc(100dvh - 52px - 56px - 120px - env(safe-area-inset-top) - env(safe-area-inset-bottom)); }
.studio-hint { margin-top: 8px; text-align: center; font-size: 13px; color: var(--muted); }
.format-toggle { display: flex; justify-content: center; gap: 8px; margin-bottom: 10px; }
.export-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.export-actions .btn-coral { grid-column: 1 / -1; }
.progress { height: 6px; border-radius: 3px; background: var(--sand-2); overflow: hidden; margin-top: 10px; }
.progress span { display: block; height: 100%; width: 0; background: var(--coral); transition: width .1s linear; }
.studio-links { display: flex; justify-content: space-between; gap: 10px; margin-top: 10px; }
.field-name { max-width: 360px; }
.scene-head { display: grid; gap: 2px; margin-bottom: 10px; }
.scene-head h3 { font-size: 20px; }
.picked-strip[hidden] { display: none; }
.done-step { display: grid; gap: 18px; max-width: 980px; margin-inline: auto; }
.done-canvas { max-height: 46dvh; }
.done-copy { display: grid; gap: 10px; }
.done-copy h3 { font-size: 24px; }
.done-actions { display: grid; gap: 10px; margin-top: 6px; }
.done-actions .link-button { justify-self: center; padding: 10px; }
@media (min-width: 1024px) { .done-step { grid-template-columns: minmax(0, 1fr) 380px; align-items: center; } .done-canvas { max-height: calc(100vh - 220px); } }
.adjust-side { display: grid; gap: 12px; margin-top: 12px; }
.camera-dialog { width: min(640px, calc(100vw - 32px)); padding: 0; border: 0; border-radius: var(--radius); background: var(--night); color: #fff; overflow: hidden; }
.camera-dialog::backdrop { background: rgba(12, 20, 36, .7); }
.camera-dialog video { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: #000; transform: scaleX(-1); }
.camera-dialog .sheet-actions { justify-content: center; padding: 12px; margin: 0; }
.camera-dialog .btn-ghost { color: #fff; }

/* ---------- Share ---------- */
.share { background: var(--night-2); color: #fff; }
.share .muted { color: #c6cfdd; }
.share-inner { display: grid; gap: 14px; }
.share-buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.share .btn-ghost { color: #fff; }
.share-whatsapp { background: #25d366; color: #0b3d1d; }

/* ---------- Footer ---------- */
.site-footer { background: var(--night); color: #dfe6f1; padding-block: 28px; font-size: 14px; }
.footer-inner { display: grid; gap: 18px; }
.footer-logos { display: flex; align-items: center; gap: 22px; }
.footer-logos img { height: 40px; width: auto; }
.footer-text { display: grid; gap: 8px; }
.footer-label { font-weight: 700; color: #fff; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.footer-links a, .footer-links .link-button { color: var(--gold); }
.site-footer .muted { color: #9fb0c7; }

/* ---------- Sheet ---------- */
.sheet { width: 100%; max-width: 100%; max-height: 88dvh; margin: auto 0 0; padding: 0; border: 0; border-radius: 18px 18px 0 0; background: var(--paper); color: var(--ink); box-shadow: 0 -10px 40px rgba(0, 0, 0, .3); overflow: hidden; }
.sheet[open] { display: flex; flex-direction: column; animation: sheet-up .25s ease-out; }
.sheet::backdrop { background: rgba(12, 20, 36, .55); }
@keyframes sheet-up { from { transform: translateY(40px); opacity: .6; } to { transform: none; opacity: 1; } }
.sheet-grip { width: 40px; height: 5px; margin: 8px auto 0; border-radius: 3px; background: var(--line); flex: none; }
.sheet-close { position: absolute; top: 4px; right: 4px; z-index: 2; color: var(--ink); }
.sheet-body { overflow-y: auto; padding: 8px var(--gutter) calc(20px + env(safe-area-inset-bottom)); }
.sheet-title { font-size: 20px; margin: 8px 44px 12px 0; }
.sheet-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.sheet-actions.stack { flex-direction: column; }
.sheet-actions.stack .btn { width: 100%; }
html.sheet-open { overflow: hidden; }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; bottom: calc(var(--bottomnav-h) + 16px + env(safe-area-inset-bottom)); z-index: 400; transform: translate(-50%, 20px); display: flex; align-items: center; gap: 14px; max-width: calc(100% - 32px); padding: 10px 16px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 14px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast button { border: 0; background: none; color: var(--gold); font-weight: 700; padding: 6px 0; }
body.is-fullscreen .toast { bottom: calc(80px + env(safe-area-inset-bottom)); }

/* ======================= Tablet (768px+) ======================= */
@media (min-width: 768px) {
  :root { --gutter: 24px; }
  .section { padding-block: 44px; }
  h2 { font-size: 32px; }
  .slide-title { font-size: 36px; }
  .guide-list { display: grid; grid-template-columns: repeat(2, 1fr); overflow: visible; margin: 0; padding: 0; }
  .event-list { grid-template-columns: 1fr 1fr; }
  .week-card { flex-basis: 300px; }
  .now-grid { grid-template-columns: repeat(4, 1fr); }
  .scene-grid { grid-template-columns: repeat(3, 1fr); }
  .card-teaser { grid-template-columns: 1fr 1fr; align-items: center; }
  .share-inner { grid-template-columns: 1fr auto; align-items: center; }
  .footer-inner { grid-template-columns: auto 1fr; gap: 40px; }
  .sheet { width: min(560px, 92vw); margin: auto; border-radius: 18px; max-height: 86vh; }
  .sheet-grip { display: none; }
  .toast { bottom: 24px; }
}

/* ======================= Desktop (1024px+) ======================= */
@media (min-width: 1024px) {
  :root { --gutter: 32px; --header-h: 64px; }
  body { padding-bottom: 0; }
  .bottom-nav { display: none; }
  .site-header { position: sticky; top: 0; z-index: 120; }
  html { scroll-padding-top: calc(var(--header-h) + 12px); }
  .partner-bar { display: none; }
  .header-nav { display: flex; align-self: stretch; margin-left: auto; }
  .header-nav a { display: flex; align-items: center; padding: 0 14px; color: #dfe6f1; text-decoration: none; font-weight: 600; font-size: 14px; letter-spacing: .04em; border-bottom: 3px solid transparent; }
  .header-nav a:hover { color: #fff; }
  .header-nav a.is-active { color: #fff; border-bottom-color: var(--coral); }
  .partner-lockup.partner-lockup-header { display: inline-flex; padding-left: 16px; border-left: 1px solid rgba(255, 255, 255, .25); }
  .menu-button { display: inline-grid; color: #fff; }
  .section { padding-block: 56px; }
  h2 { font-size: 40px; }
  h3 { font-size: 22px; }
  .section-head { margin-bottom: 28px; }

  /* Hero: photo fills the slide; copy sits on the left over a gradient */
  .hero-track { min-height: 540px; }
  .slide { position: relative; display: block; min-height: 540px; }
  .slide-media { position: absolute; inset: 0; aspect-ratio: auto; }
  .slide-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(18, 35, 63, .94) 0 40%, rgba(18, 35, 63, .55) 58%, rgba(18, 35, 63, 0) 78%); }
  .slide-credit { z-index: 1; }
  .slide-body { position: relative; z-index: 1; width: min(46%, 560px); padding: 56px 0 96px max(var(--gutter), calc((100vw - 1200px) / 2 + var(--gutter))); gap: 14px; box-sizing: content-box; }
  .slide-title { font-size: 52px; }
  .cd-unit { min-width: 76px; }
  .cd-unit b { font-size: 44px; }
  .hero-controls { position: absolute; left: max(var(--gutter), calc((100vw - 1200px) / 2 + var(--gutter))); bottom: 24px; z-index: 2; padding: 0; justify-content: flex-start; }
  .hero-prev, .hero-next { display: inline-grid !important; }

  .guide-list { grid-template-columns: repeat(4, 1fr); }
  .planner-intro { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); align-items: center; gap: 40px; }
  .planner-preview { max-height: 520px; }
  .scene-grid { grid-template-columns: repeat(4, 1fr); }

  /* Itinerary: map + side panel */
  .builder-main { flex-direction: row; }
  .builder:not(.is-fullscreen) .map-wrap { height: auto; flex: 1; }
  .plan-panel { display: block; width: 380px; flex: none; overflow-y: auto; padding: 16px; border-left: 1px solid var(--line); }
  .plan-bar { display: none; }
  .summary { padding: 24px; }
  .summary-days { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
  .summary-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 720px; }

  .studio-body { padding-block: 24px; }
  .studio-body > * { max-width: 1100px; margin-inline: auto; }
  .studio-foot { justify-content: flex-end; }
  .studio-foot .btn { flex: 0 0 auto; min-width: 180px; }
  .studio-canvas { max-height: calc(100vh - 52px - 76px - 64px); }
  .card-studio[data-step="adjust"] .studio-body > .studio-split, .card-studio[data-step="preview"] .studio-body > .studio-split { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 32px; align-items: start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
