/* ══════════════════════════════════════════════════════════════════════
   ALGARVE DAILY — "Sunlit Edition" homepage (index_new.php)
   Faithful to /newdesign mockups: Spectral + IBM Plex Mono, terracotta
   accent, clean white cards on warm off-white. Vanilla CSS, no framework.
   ══════════════════════════════════════════════════════════════════════ */

:root {
    /* surfaces — warm "sunlit" off-whites, not pure #fff */
    --page: #f6f6f3;
    --card: #fffdf9;
    --card-soft: #f5f7f6;
    --ink: #16191c;
    --ink-2: #3a4045;
    --muted: #6b7177;
    --muted-2: #6e747a;
    --faint: #6e747a;
    --line: #ebeeed;
    --line-2: #e3e6e5;

    /* brand — bright values are for fills/borders (≥3:1 non-text is fine);
       the *-text variants are darkened to clear WCAG AA 4.5:1 as small text. */
    --terra: #f2604f;
    --terra-deep: #d8442f;
    --terra-text: #c0392b;
    --sea: #1a9d92;
    --sea-bright: #2bb7a8;
    --sea-text: #0f766e;
    --rain: #4f8fc7;
    --rain-text: #2f6bb0;
    --gold: #e7b008;
    --gold-text: #8a6d00;

    /* alerts */
    --alert-a: #a8261c;
    --alert-b: #d23b2c;
    --warn: #e8772b;

    /* dark surfaces */
    --dark: #16191c;
    --dark-2: #1f2327;
    --dark-card: #2a2e32;
    --on-dark: #ffffff;
    --on-dark-muted: #9aa0a6;

    --serif: 'Spectral', Georgia, 'Times New Roman', serif;
    --mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

    --r-sm: 9px;
    --r: 14px;
    --r-lg: 20px;
    --r-pill: 40px;
    --shadow: 0 1px 2px rgba(22, 25, 28, .04), 0 6px 22px rgba(22, 25, 28, .05);
    --shadow-lg: 0 10px 40px rgba(22, 25, 28, .10);
    --wrap: 1200px;
    --pad: clamp(16px, 4vw, 32px);
    --gap: clamp(16px, 2.4vw, 26px);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background: var(--page);
    color: var(--ink);
    font-family: var(--serif);
    font-size: 16px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

.skip-link {
    position: absolute; left: -9999px; top: 0; z-index: 100;
    background: var(--ink); color: #fff; padding: 12px 18px;
    border-radius: 0 0 10px 0; font: 600 14px/1 var(--mono);
}
.skip-link:focus { left: 0; }

.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

:focus-visible {
    outline: 2.5px solid var(--terra);
    outline-offset: 2px;
    border-radius: 4px;
}

.mono {
    font-family: var(--mono);
    letter-spacing: .04em;
}
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }

/* ── Section heading ───────────────────────────────────────────── */
.sec-head {
    display: flex; align-items: baseline; justify-content: space-between;
    gap: 14px; margin: 0 0 16px;
}
.sec-head h2 {
    font: 600 clamp(22px, 3vw, 28px)/1.1 var(--serif);
    margin: 0; letter-spacing: -.01em;
}
.sec-head .sec-kicker {
    display: block; font: 600 11px/1 var(--mono); letter-spacing: .22em;
    text-transform: uppercase; color: var(--terra-text); margin-bottom: 7px;
}
.sec-head .sec-link {
    font: 600 12px/1 var(--mono); letter-spacing: .04em; text-transform: uppercase;
    color: var(--muted); text-decoration: none; white-space: nowrap; flex: none;
}
.sec-head .sec-link:hover { color: var(--terra-text); }

section.block { padding: clamp(26px, 5vw, 48px) 0 0; }

/* ════════════════════════ HEADER / NAV ════════════════════════ */
.masthead {
    background: var(--card);
    border-bottom: 1px solid var(--line);
    position: sticky; top: 0; z-index: 40;
}
.masthead-row {
    display: flex; align-items: center; gap: 18px;
    padding-top: 14px; padding-bottom: 14px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex: none; }
.brand-mark {
    width: 38px; height: 38px; border-radius: 11px; background: var(--terra);
    color: #fff; display: grid; place-items: center;
    font: 700 22px/1 var(--serif); flex: none;
    box-shadow: 0 2px 8px rgba(242, 96, 79, .35);
}
.brand-name { font: 600 21px/1 var(--serif); letter-spacing: -.01em; color: var(--ink); }
.brand-name small {
    display: block; font: 500 9.5px/1.2 var(--mono); letter-spacing: .18em;
    text-transform: uppercase; color: var(--muted-2); margin-top: 3px;
}

.nav-pills {
    display: flex; gap: 3px; background: var(--page); border-radius: var(--r-pill);
    padding: 5px; margin: 0 auto;
}
.nav-pills a {
    font: 600 13.5px/1 var(--serif); color: var(--ink-2); text-decoration: none;
    padding: 9px 15px; border-radius: var(--r-pill); white-space: nowrap;
    transition: background .15s, color .15s;
}
.nav-pills a:hover { color: var(--ink); }
.nav-pills a.is-active { background: var(--ink); color: #fff; }

.masthead-actions { display: flex; align-items: center; gap: 10px; flex: none; }
.icon-btn {
    width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-2);
    background: var(--card); display: grid; place-items: center; cursor: pointer;
    color: var(--ink-2); text-decoration: none; position: relative;
    transition: background .15s, border-color .15s;
}
.icon-btn:hover { background: var(--page); border-color: var(--muted-2); }
.icon-btn svg { width: 19px; height: 19px; }
.notif-dot {
    position: absolute; top: -3px; right: -3px; min-width: 18px; height: 18px;
    padding: 0 4px; border-radius: 9px; background: var(--terra); color: #fff;
    font: 700 10px/18px var(--mono); text-align: center; display: none;
    border: 2px solid var(--card);
}
.notif-dot.on { display: block; }

.btn-cta {
    font: 600 13.5px/1 var(--serif); background: var(--terra); color: #fff;
    text-decoration: none; padding: 11px 18px; border-radius: var(--r-pill);
    border: 0; cursor: pointer; white-space: nowrap;
    transition: background .15s, transform .12s;
}
.btn-cta:hover { background: var(--terra-deep); }
.btn-cta:active { transform: translateY(1px); }

.hamburger { display: none; }
.mobile-date { display: none; }

/* notification dropdown */
.notif-panel {
    position: absolute; top: 52px; right: var(--pad); width: min(360px, calc(100vw - 32px));
    background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
    box-shadow: var(--shadow-lg); z-index: 60; overflow: hidden; display: none;
}
.notif-panel.open { display: block; }
.notif-panel header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 13px 16px; border-bottom: 1px solid var(--line);
    font: 600 12px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
}
.notif-panel header button { background: none; border: 0; color: var(--terra-text); font: 600 11px/1 var(--mono); cursor: pointer; text-transform: uppercase; letter-spacing: .08em; }
.notif-list { max-height: 60vh; overflow-y: auto; }
.notif-item { display: block; padding: 13px 16px; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.notif-item:last-child { border-bottom: 0; }
.notif-item.unread { background: #fff6f4; }
.notif-item .ni-top { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 4px; }
.notif-item .ni-tag { font: 700 9.5px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; padding: 4px 7px; border-radius: 5px; background: var(--page); color: var(--muted); }
.notif-item .ni-tag.danger { background: #fdecea; color: var(--alert-b); }
.notif-item .ni-tag.warning { background: #fdf2e6; color: var(--warn); }
.notif-item .ni-time { font: 500 10px/1.4 var(--mono); color: var(--faint); }
.notif-item .ni-title { font: 600 14px/1.3 var(--serif); }
.notif-item .ni-body { font-size: 13px; color: var(--muted); margin-top: 2px; }
.notif-empty { padding: 28px 16px; text-align: center; color: var(--muted-2); font-size: 14px; }

/* ════════════════════════ ALERT BANNER ════════════════════════ */
.alert-rail { background: linear-gradient(90deg, var(--alert-a), var(--alert-b)); color: #fff; }
.alert-rail[hidden] { display: none; }
.alert-link {
    display: flex; align-items: center; gap: 14px; padding: 10px 0;
    text-decoration: none; color: #fff;
}
.alert-tag {
    font: 700 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase;
    background: rgba(255, 255, 255, .18); padding: 6px 9px; border-radius: 5px; flex: none;
}
.alert-text { font: 600 15px/1.3 var(--serif); flex: 1 1 auto; min-width: 0;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.alert-cue { font: 500 12px/1 var(--mono); opacity: .85; flex: none; }
.alert-pos { font: 500 11px/1 var(--mono); opacity: .7; flex: none; }
.alert-dots { display: flex; gap: 5px; flex: none; }
.alert-dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.4); transition: background .2s; }
.alert-dots i.on { background: #fff; }

/* ════════════════════════ UTILITY ROW ════════════════════════ */
.util { display: grid; grid-template-columns: 0.92fr 1.08fr; gap: var(--gap); padding-top: clamp(20px, 4vw, 34px); align-items: start; }
.util > .panel { min-width: 0; }

/* airport panel: busy chart on the left, flight deal to the right */
.airport-split { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 600px) { .airport-split { grid-template-columns: minmax(0, 1.3fr) minmax(208px, 1fr); align-items: stretch; } }
.airport-split .chart-card { display: flex; flex-direction: column; }
.airport-split .chart-card .chart-note { margin-top: auto; padding-top: 9px; }

/* EU / Non-EU flight type badges (used on the airport slide's peak list) */
.ap-ns, .ap-sch { display: inline-block; padding: 2px 6px; border-radius: 6px; font: 600 9px/1.2 var(--mono); white-space: nowrap; }
.ap-ns { background: #fde8e8; color: #b33; }
.ap-sch { background: #e8f5ee; color: #2a7a5a; }

.panel {
    background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg);
    padding: clamp(16px, 2vw, 22px); box-shadow: var(--shadow);
    min-width: 0; /* allow the grid column to shrink so the forecast scrolls, not the page */
}
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.panel-head h3 { font: 600 19px/1.1 var(--serif); margin: 0; }
.panel-head .ph-live { display: inline-flex; align-items: center; gap: 6px; font: 600 10px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--sea-text); }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--sea-bright); box-shadow: 0 0 0 0 rgba(43,183,168,.6); animation: pulse 2.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(43,183,168,.5);} 70%{box-shadow:0 0 0 7px rgba(43,183,168,0);} 100%{box-shadow:0 0 0 0 rgba(43,183,168,0);} }

/* airport chart card */
.chart-card { background: var(--card-soft); border: 1px solid var(--line); border-radius: var(--r); padding: 13px 15px; }
.chart-tabs { display: flex; gap: 5px; margin-bottom: 12px; }
.chart-tab {
    font: 600 11.5px/1 var(--mono); letter-spacing: .03em; padding: 7px 11px; border-radius: 8px;
    background: var(--page); color: var(--muted); border: 0; cursor: pointer; text-transform: uppercase;
    transition: background .15s, color .15s;
}
.chart-tab.is-active { background: var(--ink); color: #fff; }
/* busy chart — "popular times" style (mirrors the crowd page) */
.chart-bars { display: flex; align-items: flex-end; gap: 5px; height: 92px; padding-top: 4px; }
.chart-bars .cbar { position: relative; flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 2px; height: 100%; min-width: 0; cursor: default; }
.chart-bars .cseg { min-height: 3px; border-radius: 4px 4px 0 0; opacity: .82; transition: height .55s cubic-bezier(.22,1,.36,1), opacity .2s, box-shadow .2s; }
.chart-bars .cbar:hover .cseg { opacity: 1; }
.chart-bars .cbar.is-now .cseg { opacity: 1; box-shadow: 0 0 0 2px var(--card-soft), 0 0 0 3.5px rgba(22,25,28,.22); }
.chart-bars .cbar.is-peak .cseg { opacity: 1; }
.cbar-tip {
    position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%);
    background: var(--ink); color: #fff; padding: 4px 8px; border-radius: 7px;
    font: 600 10px/1.3 var(--mono); white-space: nowrap; z-index: 5; pointer-events: none;
    opacity: 0; transition: opacity .15s; box-shadow: 0 4px 14px rgba(22,25,28,.18);
    max-width: calc(100vw - 24px);
}
.cbar-tip::after { content: ""; position: absolute; top: 100%; left: 50%; transform: translateX(-50%); border: 4px solid transparent; border-top-color: var(--ink); }
@media (hover: hover) { .chart-bars .cbar:hover .cbar-tip { opacity: 1; } }
/* Below the two-column breakpoint the chart spans the full width, so the
   rightmost bar's absolutely-positioned hover tooltip extends ~12px past the
   screen and adds a stray horizontal scroll. Clip it here — the tooltip is
   hover-only (never shown on touch), and desktop (≥761px) keeps it in full. */
@media (max-width: 760px) { .chart-bars { overflow-x: clip; } }
.chart-x { display: flex; gap: 5px; margin-top: 6px; }
.chart-x span { flex: 1; text-align: center; font: 500 9px/1 var(--mono); color: var(--faint); }
.chart-x span.is-now { color: var(--terra-text); font-weight: 700; }
.chart-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; }
.chart-stat { font: 600 13px/1.2 var(--serif); color: var(--ink); }
.chart-stat b { font-family: var(--mono); color: var(--terra-text); }
.chart-legend { display: flex; gap: 12px; font: 500 10px/1 var(--mono); color: var(--muted); }
.chart-legend i { display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: 4px; vertical-align: -1px; }
.chart-note { font: 400 11.5px/1.4 var(--serif); color: var(--muted-2); margin: 9px 0 0; font-style: italic; }

/* flight deal card */
.deal { display: block; background: var(--card); border: 1.5px solid var(--line); border-radius: var(--r);
    padding: 13px 15px; text-decoration: none; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.airport-split .deal { display: flex; flex-direction: column; }
.airport-split .deal .deal-dots { margin-top: auto; }
.deal:hover { border-color: var(--terra-text); box-shadow: 0 4px 16px rgba(242,96,79,.12); }
.deal-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.deal-live { font: 600 9.5px/1 var(--mono); letter-spacing: .08em; color: var(--terra-text); display: inline-flex; align-items: center; gap: 5px; }
.deal-live .live-dot { background: var(--terra); animation: none; }
.deal-dir { font: 500 9.5px/1 var(--mono); letter-spacing: .06em; color: var(--muted-2); }
.deal-body { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin: 4px 0; }
.deal-city { font: 700 19px/1.05 var(--serif); }
.deal-detail { font: 400 11px/1.3 var(--mono); color: var(--muted-2); margin-top: 3px; }
.deal-price { font: 600 24px/1 var(--serif); color: var(--terra-text); white-space: nowrap; }
.deal-price small { font: 600 11px/1 var(--mono); color: var(--muted); display: block; text-align: right; }
.deal-dots { display: flex; gap: 4px; margin-top: 10px; }
.deal-dots span { flex: 1; height: 3px; border-radius: 3px; background: var(--line-2); transition: background .3s; }
.deal-dots span.on { background: var(--terra); }
.deal-cta { margin-top: 11px; font: 600 11px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }

/* 7-day forecast */
.forecast { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 9px; }
.fc-day {
    background: var(--card); border: 1px solid var(--line); border-radius: 13px; padding: 11px 7px;
    display: flex; flex-direction: column; gap: 8px; min-width: 0;
    border-top: 3px solid var(--temp-c, var(--line));
}
.fc-day.today {
    background: linear-gradient(180deg, #2f6fc6, #255aa8);
    border-color: transparent; border-top-color: rgba(255,255,255,.6); color: #fff;
    box-shadow: 0 6px 18px rgba(37,90,168,.28);
}
.fc-day.today .fc-dow,
.fc-day.today .fc-rows .fr,
.fc-day.today .fc-rows .fr span,
.fc-day.today .fc-temp small { color: rgba(255,255,255,.92); }
.fc-day.today .fc-temp,
.fc-day.today .fc-rows .fr b,
.fc-day.today .fc-icon,
.fc-day.today .fc-sea b { color: #fff; }
.fc-top { display: flex; align-items: center; justify-content: space-between; }
.fc-dow { font: 700 10px/1 var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.fc-icon { color: var(--ink-2); }
.fc-icon svg { width: 20px; height: 20px; }
.fc-temp { font: 600 23px/1 var(--serif); }
.fc-temp small { font: 500 12px/1 var(--mono); color: var(--muted-2); }
.fc-rows { display: flex; flex-direction: column; gap: 4px; margin-top: 2px; }
.fc-rows .fr { display: flex; justify-content: space-between; gap: 4px; font: 500 10px/1.3 var(--mono); color: var(--muted); min-width: 0; }
.fc-rows .fr span:first-child { flex: none; }
.fc-rows .fr b { font-weight: 600; color: var(--ink-2); text-align: right; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fc-sea b { color: var(--sea-text); }
.fc-rain b { color: var(--rain-text); }
.fc-wind .fw-arrow { display: inline-block; }
.fc-uv-chip { font: 600 9px/1 var(--mono); padding: 2px 5px; border-radius: 4px; color: #fff; }

/* ════════════════════════ CARDS (news / events / eat) ════════════════════════ */
.grid { display: grid; gap: var(--gap); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

/* What's On grid self-balances: when a chosen day has only 1-2 events, fill the
   row rather than leaving an orphan third column (desktop only — mobile sets its
   own column count below). The empty-state <p> isn't a .tile, so it's unaffected. */
@media (min-width: 601px) {
    #events-grid:has(> .tile:nth-child(1):last-child) { grid-template-columns: minmax(0, 460px); }
    #events-grid:has(> .tile:nth-child(2):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.tile {
    background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
    overflow: hidden; display: flex; flex-direction: column; position: relative;
    min-width: 0;
    transition: transform .14s ease, box-shadow .14s ease, border-color .14s;
}
.tile:has(.stretch-link) { cursor: pointer; }
.tile:has(.stretch-link:focus-visible) {
    outline: 2.5px solid var(--terra);
    outline-offset: 2px;
    box-shadow: var(--shadow);
    border-color: var(--line-2);
}
.tile-title, .tile-meta, .tile-sum { overflow-wrap: anywhere; }
.tile:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-2); }
.tile-art { aspect-ratio: 16 / 10; position: relative; overflow: hidden; background: var(--card-soft); }
.tile-art img { width: 100%; height: 100%; object-fit: cover; }
.tile-badge {
    position: absolute; top: 10px; left: 10px; z-index: 2;
    font: 700 10.5px/1 var(--mono); letter-spacing: .05em; text-transform: uppercase;
    background: var(--ink); color: #fff; padding: 6px 9px; border-radius: 7px;
}
.tile-badge.free { background: var(--sea); left: auto; right: 10px; }
.tile-body { padding: 13px 14px 15px; flex: 1; display: flex; flex-direction: column; gap: 4px; }
.tile-eyebrow { font: 600 10.5px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--terra-text); }
.tile-eyebrow.muted { color: var(--muted-2); }
.tile-title { font: 600 16.5px/1.25 var(--serif); margin: 1px 0 0; letter-spacing: -.005em; }
.tile-meta { font: 500 11.5px/1.4 var(--mono); color: var(--muted-2); margin-top: auto; padding-top: 6px; }
.tile-sum { font: 400 13.5px/1.5 var(--serif); color: var(--ink-2); }
/* Stretched link: ::after on the <a>, not the card — otherwise the overlay blocks clicks */
.tile a.stretch-link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.tile a.stretch-link { position: static; }

/* news pattern placeholder (no photo) */
.pat { position: absolute; inset: 0; }
/* generative azulejo tile art for imageless cards — real Portuguese-tile SVG
   (cobalt/terracotta/teal glazes) instead of a faint pinstripe that read as a
   loading state. Deterministic per seed, so each card differs. */
.tile-art .az-tile { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.pat-label { position: absolute; left: 12px; bottom: 12px; z-index: 2; font: 600 12px/1.3 var(--mono); color: rgba(22,25,28,.5); letter-spacing: .04em; max-width: 70%; }

.empty { color: var(--muted-2); font-size: 14px; padding: 18px 0; font-style: italic; }

/* eat & drink near-you note */
.near-note { font: 500 11px/1 var(--mono); letter-spacing: .04em; color: var(--sea-text); text-transform: uppercase; }
.rate { display: inline-flex; align-items: center; gap: 3px; color: var(--gold-text); font: 600 12px/1 var(--mono); }

/* ════════════════════════ MAP ════════════════════════ */
.map-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); }
.map-inner { position: relative; }
.map-svg { width: 100%; height: auto; display: block; background: linear-gradient(180deg, #eaf3f4, #e3eef0); }
.map-pin { transform-origin: center; }
.map-pin circle.ping { animation: ping 2.6s ease-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes ping { 0% { r: 4; opacity: .7; } 100% { r: 16px; opacity: 0; } }
.map-overlay { position: absolute; left: 18px; bottom: 18px; right: 18px; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.map-live { font: 700 10px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; background: rgba(22,25,28,.82); color: #fff; padding: 7px 11px; border-radius: 7px; backdrop-filter: blur(3px); }
.map-live i { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--sea-bright); margin-right: 6px; vertical-align: 0; }

/* ════════════════════════ NEWSLETTER ════════════════════════ */
.newsletter { margin: clamp(34px, 6vw, 56px) 0 0; }
.nl-card {
    background: var(--dark); color: #fff; border-radius: var(--r-lg);
    padding: clamp(26px, 4vw, 38px); display: flex; align-items: center;
    justify-content: space-between; gap: 26px; flex-wrap: wrap;
    background-image: radial-gradient(circle at 100% 0, rgba(242,96,79,.18), transparent 42%);
}
.nl-copy h3 { font: 600 clamp(21px, 3vw, 27px)/1.15 var(--serif); margin: 0 0 7px; }
.nl-copy p { margin: 0; color: var(--on-dark-muted); font-size: 15px; max-width: 44ch; }
.nl-form { display: flex; gap: 8px; flex: none; flex-wrap: wrap; }
.nl-form input[type=email] {
    background: var(--dark-card); border: 1px solid #3a3f44; color: #fff;
    border-radius: var(--r-pill); padding: 13px 20px; font: 400 15px/1 var(--serif);
    width: 230px; max-width: 100%;
}
.nl-form input::placeholder { color: #7d8389; }
.nl-form input:focus-visible { outline-color: var(--terra-text); }
.nl-msg { width: 100%; font: 500 13px/1.4 var(--mono); margin-top: 4px; min-height: 1em; }
.nl-msg.ok { color: var(--sea-bright); }
.nl-msg.err { color: #ff9b8c; }

/* ════════════════════════ FOOTER ════════════════════════ */
.foot { background: var(--dark); color: var(--on-dark-muted); margin-top: clamp(34px, 6vw, 56px); padding: clamp(30px, 5vw, 50px) 0; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; }
.foot-brand .brand-name { color: #fff; }
.foot-brand p { font-size: 13.5px; line-height: 1.6; max-width: 32ch; margin: 14px 0 0; }
.foot h4 { font: 600 11px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: #fff; margin: 0 0 14px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.foot a { color: var(--on-dark-muted); text-decoration: none; font-size: 14px; }
.foot a:hover { color: #fff; }
.foot-social { display: flex; gap: 10px; margin-top: 14px; }
.foot-social a { width: 36px; height: 36px; border-radius: 50%; background: var(--dark-card); display: grid; place-items: center; color: #fff; }
.foot-bottom { border-top: 1px solid #2a2e32; margin-top: 30px; padding-top: 20px; font: 400 12.5px/1.6 var(--mono); color: #6b7177; }

/* ════════════════════════ MOBILE NAV DRAWER ════════════════════════ */
.drawer-scrim { position: fixed; inset: 0; background: rgba(22,25,28,.5); z-index: 80; opacity: 0; pointer-events: none; transition: opacity .2s; }
.drawer-scrim.open { opacity: 1; pointer-events: auto; }
.drawer {
    position: fixed; top: 0; right: 0; bottom: 0; width: min(82vw, 320px); z-index: 90;
    background: var(--card); transform: translateX(100%); transition: transform .26s cubic-bezier(.22,1,.36,1);
    display: flex; flex-direction: column; padding: 18px; overflow-y: auto;
}
.drawer.open { transform: none; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.drawer nav { display: flex; flex-direction: column; gap: 2px; }
.drawer nav a { padding: 13px 12px; border-radius: 10px; text-decoration: none; color: var(--ink); font: 600 16px/1 var(--serif); }
.drawer nav a:hover, .drawer nav a.is-active { background: var(--page); }
.drawer-sep { height: 1px; background: var(--line); margin: 12px 0; }
.drawer .btn-cta { text-align: center; margin-top: 8px; }

/* ════════════════════════ RESPONSIVE ════════════════════════ */
@media (max-width: 1040px) {
    .util { grid-template-columns: 1fr; }
    .grid-4 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 860px) {
    .nav-pills { display: none; }
    .hamburger { display: grid; }
    .btn-cta.cta-desktop { display: none; }
    .grid-4, .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
    .masthead-row { padding-top: 11px; padding-bottom: 11px; gap: 12px; }
    .brand-name { font-size: 18px; }
    .brand-name small { display: none; }
    .mobile-date { display: block; font: 600 11px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 9px 0 11px; border-bottom: 1px solid var(--line); }
    .mobile-date span { color: var(--terra-text); }
    .forecast { grid-template-columns: repeat(7, minmax(86px, 1fr)); overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; padding-bottom: 6px; gap: 8px; }
    .fc-day { scroll-snap-align: start; }
    .grid-4, .grid-3, .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .alert-cue { display: none; }
    .nl-card { flex-direction: column; align-items: stretch; }
    .nl-form { flex-direction: column; }
    .nl-form input[type=email] { width: 100%; }
    .nl-form .btn-cta { width: 100%; }
    .foot-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
    .sec-head h2 { font-size: 21px; }
}
@media (max-width: 440px) {
    /* narrowest phones: one column so cards keep a comfortable width */
    .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 380px) {
    .foot-grid { grid-template-columns: 1fr; }
}

/* tap targets */
@media (pointer: coarse) {
    .nav-pills a, .icon-btn, .btn-cta, .chart-tab, .drawer nav a { min-height: 44px; }
    .chart-tab { display: inline-flex; align-items: center; }
}

/* ════════════════════════ MOTION ════════════════════════ */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s cubic-bezier(.22,1,.36,1); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
    .reveal { opacity: 1; transform: none; }
    .live-dot, .map-pin circle.ping, .sk-shimmer, .sk-line { animation: none; }
}

/* ════════════════════════ ACCOUNT / AUTH ════════════════════════ */
.acct-body { background: var(--page); }
.acct-main { padding: clamp(24px, 5vw, 48px) var(--pad) clamp(40px, 6vw, 64px); }
.acct-crumb { font: 600 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted-2); margin: 0 0 18px; }
.acct-foot { margin-top: 0; padding: 22px 0; }

.auth-wrap { max-width: 440px; margin: 0 auto; }
.auth-card, .acct-card {
    background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg);
    padding: clamp(22px, 4vw, 34px); box-shadow: var(--shadow);
}
.auth-card h1, .acct-card h2 { font: 600 clamp(23px, 3.4vw, 30px)/1.1 var(--serif); margin: 0 0 6px; letter-spacing: -.01em; }
.auth-card .lede, .acct-card .lede { color: var(--muted); margin: 0 0 22px; font-size: 15px; }

.field { margin-bottom: 16px; }
.field label { display: block; font: 600 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 7px; }
.field input[type=email], .field input[type=password], .field input[type=text], .field input[type=number], .field input[type=date], .field select {
    width: 100%; background: var(--page); border: 1px solid var(--line-2); border-radius: 11px;
    padding: 13px 15px; font: 400 16px/1.2 var(--serif); color: var(--ink);
}
.field input:focus-visible, .field select:focus-visible { outline-color: var(--terra-text); border-color: var(--terra-text); }
.field .hint { font: 400 12.5px/1.4 var(--serif); color: var(--muted-2); margin-top: 5px; }

.btn-block { width: 100%; justify-content: center; text-align: center; padding: 14px; font-size: 15.5px; }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line-2); }
.btn-ghost:hover { background: var(--page); }

.auth-alt { text-align: center; margin-top: 18px; font-size: 14px; color: var(--muted); }
.auth-alt a { color: var(--terra-text); font-weight: 600; text-decoration: none; }

.flash { border-radius: 11px; padding: 12px 15px; font: 500 14px/1.45 var(--serif); margin-bottom: 18px; }
.flash.err { background: #fdecea; color: #a8261c; border: 1px solid #f3c6c0; }
.flash.ok { background: #e7f6f1; color: #0c6f5e; border: 1px solid #bfe6da; }
.flash.info { background: #eef4fb; color: #235; border: 1px solid #cfe0f2; }

/* area + option chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
    display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
    border: 1.5px solid var(--line-2); border-radius: var(--r-pill);
    padding: 9px 14px; font: 500 13.5px/1 var(--serif); color: var(--ink-2);
    background: var(--card); transition: background .14s, color .14s, border-color .14s; user-select: none;
}
.chip input { position: absolute; opacity: 0; width: 0; height: 0; }
.chip:has(input:checked) { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip:has(input:focus-visible) { outline: 2.5px solid var(--terra); outline-offset: 2px; }

/* account hub */
.acct-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); align-items: start; }
.acct-card { margin-bottom: var(--gap); }
.acct-card h2 { font-size: 20px; display: flex; align-items: center; gap: 10px; }
.acct-card .card-kicker { font: 600 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--terra-text); margin-bottom: 6px; }
.pref-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.pref-row:last-of-type { border-bottom: 0; }
.pref-row .pref-label { font: 600 15px/1.3 var(--serif); }
.pref-row .pref-sub { font: 400 12.5px/1.4 var(--serif); color: var(--muted-2); }

/* toggle switch */
.switch { position: relative; width: 46px; height: 26px; flex: none; }
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.switch .track { position: absolute; inset: 0; background: var(--line-2); border-radius: 26px; transition: background .18s; }
.switch .track::before { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .18s; box-shadow: 0 1px 3px rgba(0,0,0,.25); }
.switch input:checked + .track { background: var(--sea); }
.switch input:checked + .track::before { transform: translateX(20px); }
.switch input:focus-visible + .track { outline: 2.5px solid var(--terra); outline-offset: 2px; }

.deal-alert-row { border: 1px solid var(--line); border-radius: var(--r); padding: 14px; margin-bottom: 12px; }
.deal-alert-row .dar-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.deal-alert-row h4 { font: 600 16px/1.3 var(--serif); margin: 0; }
.deal-alert-row .dar-meta { font: 500 12px/1.5 var(--mono); color: var(--muted); margin-top: 4px; }
.deal-alert-row .dar-del { background: none; border: 0; color: var(--alert-b); font: 600 11px/1 var(--mono); text-transform: uppercase; cursor: pointer; letter-spacing: .06em; }
.deal-alert-row .dar-actions { display: flex; gap: 12px; align-items: center; flex-shrink: 0; }
.deal-alert-row .dar-toggle { background: none; border: 0; color: var(--muted); font: 600 11px/1 var(--mono); text-transform: uppercase; cursor: pointer; letter-spacing: .06em; }
.deal-alert-row .dar-toggle:hover { color: var(--ink); }
.deal-alert-row.is-paused { opacity: .62; }
.deal-alert-row .dar-badge { display: inline-block; margin-left: 8px; padding: 2px 8px; border-radius: 999px; background: var(--line); color: var(--muted); font: 600 10px/1.4 var(--mono); text-transform: uppercase; letter-spacing: .06em; vertical-align: middle; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.airport-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 7px; max-height: 220px; overflow-y: auto; padding: 4px; border: 1px solid var(--line); border-radius: 11px; }
.airport-grid .chip { padding: 7px 10px; font-size: 12.5px; justify-content: flex-start; }

@media (max-width: 760px) {
    .acct-grid, .form-grid { grid-template-columns: 1fr; }
}

/* ══════════════════════ ROTATING SPOTLIGHT (coast · eat · airport) ══════════════════════ */
.spotlight-wrap { padding-top: clamp(20px, 4vw, 34px); }
.spotlight {
    position: relative; background: var(--card); border: 1px solid var(--line);
    border-radius: var(--r-lg); box-shadow: var(--shadow); overflow: hidden;
}
.spot-viewport { overflow: hidden; }
.spot-track { display: flex; transition: transform .6s cubic-bezier(.22, 1, .36, 1); will-change: transform; }
.spot-slide {
    flex: 0 0 100%; display: grid; grid-template-columns: 1.05fr 1fr;
    min-height: clamp(196px, 24vw, 236px); text-decoration: none; color: var(--ink);
}
.spot-art { position: relative; min-height: 168px; background-color: var(--card-soft); overflow: hidden; }
.spot-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.spot-art .pat { position: absolute; inset: 0; }
.spot-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, rgba(22,25,28,.30), rgba(22,25,28,0) 55%); }
.spot-tag {
    position: absolute; top: 12px; left: 12px; z-index: 1;
    font: 600 9.5px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase;
    color: #fff; background: rgba(22, 25, 28, .72); backdrop-filter: blur(4px);
    padding: 6px 10px; border-radius: var(--r-pill); text-shadow: 0 1px 3px rgba(0, 0, 0, .45);
}
.spot-body { padding: clamp(18px, 2.6vw, 28px); display: flex; flex-direction: column; justify-content: center; gap: 9px; }
.spot-title { font: 600 clamp(20px, 2.4vw, 27px)/1.12 var(--serif); margin: 0; letter-spacing: -.01em; }
.spot-sub { font: 400 13.5px/1.5 var(--serif); color: var(--ink-2); margin: 0; max-width: 42ch; }
.spot-cta { margin-top: 4px; font: 600 11px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--terra-text); }
.spot-slide:hover .spot-cta { text-decoration: underline; text-underline-offset: 3px; }
.spot-slide:hover .spot-art::after { background: linear-gradient(105deg, rgba(22,25,28,.20), rgba(22,25,28,0) 55%); }

/* airport mini area-curve (EU vs non-EU) + legend */
.spot-extra { display: flex; flex-direction: column; gap: 6px; margin-top: 2px; }
/* Spotlight "travel deals" slide — the three cheapest fares to Faro */
.spot-fares { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.spot-fares li { display: grid; grid-template-columns: 1fr auto; column-gap: 12px; padding-bottom: 7px; border-bottom: 1px solid var(--line); }
.spot-fares li:last-child { border-bottom: 0; padding-bottom: 0; }
.spot-fares .sf-city { grid-column: 1; grid-row: 1; font: 600 14.5px/1.2 var(--serif); color: var(--ink); }
.spot-fares .sf-meta { grid-column: 1; grid-row: 2; font: 500 10.5px/1.3 var(--mono); color: var(--muted); letter-spacing: .02em; }
.spot-fares .sf-price { grid-column: 2; grid-row: 1 / span 2; align-self: center; font: 700 17px/1 var(--serif); color: var(--sea-text); }
.spot-chart { position: relative; max-width: 280px; }
.spot-spark { width: 100%; height: 48px; display: block; }
.spot-spark-x { position: relative; height: 11px; margin-top: 2px; }
.spot-spark-x span { position: absolute; transform: translateX(-50%); font: 600 8.5px/1 var(--mono); color: var(--faint); white-space: nowrap; }
.spot-spark-x span:first-child { transform: none; }
.spot-spark-x span:last-child { transform: translateX(-90%); }
.spot-spark .area-eu { fill: rgba(22,163,74,.18); stroke: #16a34a; stroke-width: 1.6; }
.spot-spark .area-non { fill: rgba(220,38,38,.15); stroke: #dc2626; stroke-width: 1.6; }
.spot-spark path { vector-effect: non-scaling-stroke; }
.spot-spark .spark-now { stroke: rgba(22,25,28,.55); stroke-width: 1; stroke-dasharray: 2 2; vector-effect: non-scaling-stroke; }
.spot-spark-legend { display: flex; align-items: center; gap: 6px; font: 600 9.5px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.spot-spark-legend i { width: 9px; height: 9px; border-radius: 3px; display: inline-block; }
.spot-spark-legend .sl-eu { background: #16a34a; }
.spot-spark-legend .sl-non { background: #dc2626; }

/* airport slide: compact live peak-arrivals list (the "flight info") */
.spot-peak { margin-top: 2px; }
.sp-pk-hd { font: 600 11px/1.4 var(--mono); color: var(--muted); letter-spacing: .01em; }
.sp-pk-hd b { font-weight: 700; }
.sp-pk-hd .sp-vb { color: #b33; } .sp-pk-hd .sp-b { color: #9a5a00; }
.sp-pk-hd .sp-m { color: #8a6d00; } .sp-pk-hd .sp-q { color: #2a7a5a; }
.sp-pk-rows { margin-top: 5px; display: flex; flex-direction: column; gap: 3px; }
.sp-pk-row { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 8px; font: 600 11px/1.3 var(--mono); }
.sp-pk-row .sp-fl { font-weight: 700; color: var(--ink); }
.sp-pk-row .sp-ct { color: var(--muted-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.sp-pk-row .sp-tm { color: var(--ink-2); font-variant-numeric: tabular-nums; }

/* fire-risk slide: tag colour reflects the live IPMA risk level (class set by JS) */
.spot-fire .spot-tag { background: rgba(176, 51, 51, .82); }
.spot-fire.risk-low .spot-tag { background: rgba(42, 122, 90, .85); }
.spot-fire.risk-mod .spot-tag { background: rgba(200, 127, 0, .88); }
.spot-fire.risk-high .spot-tag, .spot-fire.risk-vhigh .spot-tag, .spot-fire.risk-max .spot-tag { background: rgba(176, 51, 51, .92); }

/* seismic slide: a calm generated seismograph trace instead of a photo */
.spot-art--seismic { background: linear-gradient(135deg, #163a37, #16191c); }
.spot-art--seismic::after { background: linear-gradient(105deg, rgba(22,25,28,.38), rgba(22,25,28,0) 62%); }
.seis-trace { position: absolute; inset: 0; width: 100%; height: 100%; }
.seis-base { stroke: rgba(255, 255, 255, .14); stroke-width: 1; }
.seis-line { fill: none; stroke: var(--sea-bright); stroke-width: 1.5; vector-effect: non-scaling-stroke; opacity: .9; }
.spot-seismic .spot-title b { font-weight: 600; font-variant-numeric: tabular-nums; }

/* beach-weather: compact live stat chips */
.spot-stars { color: var(--gold-text); font-weight: 700; }
.spot-stats { display: flex; flex-wrap: wrap; gap: 5px 6px; margin-top: 1px; }
.spot-stats .ss {
    font: 600 11px/1.25 var(--mono); color: var(--ink-2); background: var(--card-soft);
    border: 1px solid var(--line); border-radius: 8px; padding: 4px 8px; white-space: nowrap;
}
.spot-stats .ss i {
    font-style: normal; color: var(--muted); font-weight: 500; margin-right: 5px;
    text-transform: uppercase; letter-spacing: .05em; font-size: 9px;
}

.spot-nav {
    position: absolute; top: 0; bottom: 0; width: 46px; z-index: 3;
    display: grid; place-items: center; border: 0; cursor: pointer;
    background: none; color: #fff; font: 400 26px/1 var(--serif);
    opacity: 0; transition: opacity .2s; text-shadow: 0 1px 6px rgba(0,0,0,.4);
}
.spot-prev { left: 0; } .spot-next { right: 0; }
.spotlight:hover .spot-nav, .spotlight:focus-within .spot-nav, .spot-nav:focus-visible { opacity: .92; }
@media (max-width: 860px), (pointer: coarse) {
    .spot-nav { opacity: .78; width: 40px; font-size: 22px; }
    .spot-prev { background: linear-gradient(90deg, rgba(22,25,28,.22), transparent); }
    .spot-next { background: linear-gradient(270deg, rgba(22,25,28,.22), transparent); }
}
.spot-nav:focus-visible { outline: 2.5px solid var(--terra); outline-offset: -3px; opacity: 1; }
.spot-dots {
    position: absolute; right: 10px; bottom: 8px; z-index: 3; display: flex; gap: 2px;
    background: rgba(255, 253, 249, .72); backdrop-filter: blur(5px); padding: 2px 4px; border-radius: var(--r-pill);
}
/* 8px visual dot, but a 24px transparent hit-area (WCAG 2.5.5) */
.spot-dot { width: 24px; height: 24px; padding: 0; border: 0; background: none; cursor: pointer; position: relative; border-radius: 50%; }
.spot-dot::before { content: ""; position: absolute; inset: 8px; border-radius: 50%; background: var(--line-2); transition: background .25s, transform .25s; }
.spot-dot.on::before { background: var(--terra); transform: scale(1.18); }
.spot-dot:focus-visible { outline: 2px solid var(--terra); outline-offset: -2px; }

@media (max-width: 600px) {
    .spot-slide { grid-template-columns: 1fr; min-height: 0; }
    .spot-art { min-height: 148px; }
    .spot-dots { left: 14px; right: auto; }
}
@media (prefers-reduced-motion: reduce) {
    .spot-track { transition: none; }
}

/* ── What's On day-strip selector ───────────────────────────────────────── */
.daystrip {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    padding: 4px 2px 10px;
    margin: 0 0 18px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}
.daystrip::-webkit-scrollbar { height: 6px; }
.daystrip::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 4px; }
.daystrip-day {
    flex: 0 0 auto;
    scroll-snap-align: start;
    min-width: 62px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
    padding: 9px 10px 7px;
    background: var(--card);
    border: 1px solid var(--line-2);
    border-radius: var(--r-sm);
    cursor: pointer;
    font-family: var(--mono);
    color: var(--ink-2);
    transition: border-color .15s ease, background .15s ease, transform .1s ease;
}
.daystrip-day:hover { border-color: var(--sea-text); }
.daystrip-day:active { transform: translateY(1px); }
.daystrip-day:focus-visible { outline: 2px solid var(--sea); outline-offset: 2px; }
.daystrip-day.is-active {
    background: var(--ink);
    border-color: var(--ink);
    color: var(--on-dark);
}
.daystrip-day:disabled,
.daystrip-day[disabled] {
    opacity: .42;
    cursor: not-allowed;
    pointer-events: none;
    border-style: dashed;
}
.ds-dow { font-size: .62rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.daystrip-day.is-active .ds-dow { color: var(--on-dark-muted); }
.ds-day { font-family: var(--serif); font-size: 1.5rem; font-weight: 700; line-height: 1.06; }
.ds-mon { font-size: .56rem; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.daystrip-day.is-active .ds-mon { color: var(--on-dark-muted); }
.ds-dots { display: flex; gap: 3px; height: 6px; margin-top: 4px; }
.ds-dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--terra); }
.ds-dots i:nth-child(2) { background: var(--sea); }
.ds-dots i:nth-child(3) { background: var(--gold); }
#events-grid.is-loading { pointer-events: none; }
.tile-skeleton { pointer-events: none; }
.tile-skeleton .tile-art { background: var(--card-soft); }
.sk-shimmer {
    width: 100%; height: 100%;
    background: linear-gradient(90deg, var(--card-soft) 0%, var(--line) 45%, var(--card-soft) 90%);
    background-size: 220% 100%;
    animation: sk-shimmer 1.1s ease-in-out infinite;
}
.tile-skeleton .tile-body { gap: 8px; }
.sk-line {
    height: 11px; border-radius: 6px;
    background: linear-gradient(90deg, var(--card-soft) 0%, var(--line) 45%, var(--card-soft) 90%);
    background-size: 220% 100%;
    animation: sk-shimmer 1.1s ease-in-out infinite;
}
.sk-line.sk-w90 { width: 90%; }
.sk-line.sk-w60 { width: 60%; height: 14px; }
.sk-line.sk-w40 { width: 40%; margin-top: auto; }
@keyframes sk-shimmer {
    0% { background-position: 120% 0; }
    100% { background-position: -120% 0; }
}
@media (max-width: 640px) {
    .daystrip-day { min-width: 56px; padding: 8px 8px 6px; }
    .ds-day { font-size: 1.3rem; }
}
@media (prefers-reduced-motion: reduce) {
    .daystrip-day { transition: none; }
}

/* ── Markets grouped by municipality (traditions page) ── */
.muni-nav { display: flex; flex-wrap: wrap; gap: 7px; margin: 0 0 24px; }
.muni-nav a {
    display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px;
    border-radius: var(--r-pill); background: var(--card); border: 1px solid var(--line-2);
    font: 600 12.5px/1 var(--serif); color: var(--ink-2); text-decoration: none;
    transition: border-color .15s, color .15s;
}
.muni-nav a:hover { border-color: var(--sea-text); color: var(--ink); }
.muni-nav a span { font: 700 10px/1 var(--mono); color: #fff; background: var(--sea); border-radius: 9px; padding: 2px 6px; }
.muni-group { margin-bottom: 28px; }
.muni-head {
    font: 600 17px/1.2 var(--serif); margin: 0 0 12px; padding-bottom: 8px;
    border-bottom: 1px solid var(--line); display: flex; align-items: baseline; gap: 10px;
    scroll-margin-top: 84px;
}
.muni-head span { font: 600 11px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }

/* ── Almanac: tides · sun · moon (replaces the old flight-deal card) ── */
.almanac { display: flex; flex-direction: column; background: var(--card-soft); border: 1px solid var(--line); border-radius: var(--r); padding: 13px 15px; }
.alm-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 6px; }
.alm-title { font: 600 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--rain-text); }
.alm-loc { font: 600 10px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted-2); }
.alm-tide-svg { width: 100%; height: 60px; display: block; }
.alm-tide-state { font: 500 11px/1.4 var(--mono); color: var(--muted); margin: 5px 0 11px; }
.alm-tide-state b { color: var(--ink-2); font-weight: 700; }
.alm-tide-state #alm-tide-arrow { color: var(--rain-text); font-weight: 700; }
.alm-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: auto; }
.alm-cell { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 1px; padding: 8px 4px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-sm); }
.alm-ico { font-size: 16px; line-height: 1; }
.alm-val { font: 700 13px/1.1 var(--serif); color: var(--ink); margin-top: 3px; }
.alm-lbl { font: 600 8px/1.1 var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.alm-tide-svg .tide-fill { fill: rgba(79,143,199,.16); }
.alm-tide-svg .tide-line { fill: none; stroke: var(--rain); stroke-width: 2; vector-effect: non-scaling-stroke; }
.alm-tide-svg .tide-now-ring { fill: #fff; stroke: var(--rain); stroke-width: 2; }
.alm-tide-svg .tide-base { stroke: var(--line-2); stroke-width: 1; stroke-dasharray: 2 3; }
.alm-tide-svg .tide-lab { fill: var(--muted-2); font: 600 7px/1 var(--mono); }

/* ── Weather hero (Image-20 style: sea gradient + lighthouse) ── */
.wx-panel { overflow: hidden; padding: 0; }
.wx-panel .forecast { padding: 0 clamp(16px, 2vw, 22px) clamp(16px, 2vw, 22px); }
.wx-hero { position: relative; padding: 18px clamp(16px, 2vw, 22px) 34px; min-height: 96px; margin-bottom: 14px; overflow: hidden;
    background: linear-gradient(168deg, #dcecf9 0%, #c7e0f2 48%, #eef4f2 100%); }
.wx-hero-head { position: relative; z-index: 2; max-width: 60%; }
.wx-hero-head h3 { font: 700 clamp(19px, 2.3vw, 25px)/1.05 var(--serif); margin: 0; color: #1c3a57; letter-spacing: -.01em; }
.wx-loc {
    display: inline-flex; align-items: center; margin-top: 9px; z-index: 3; position: relative;
    font: 700 11.5px/1 var(--mono); letter-spacing: .06em; color: #2f72b0;
    appearance: none; -webkit-appearance: none; cursor: pointer;
    background: rgba(255, 255, 255, .65); border: 1px solid rgba(47, 114, 176, .32);
    border-radius: 40px; padding: 8px 28px 8px 14px; max-width: 100%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='7' viewBox='0 0 10 7'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%232f72b0' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 11px center;
    transition: background-color .15s, border-color .15s;
}
.wx-loc:hover { background-color: rgba(255, 255, 255, .95); border-color: rgba(47, 114, 176, .5); }
.wx-loc:focus-visible { outline: 2px solid #2f72b0; outline-offset: 1px; }
.wx-scene { position: absolute; right: 0; bottom: 0; height: 100%; width: 52%; }
@media (max-width: 460px) { .wx-hero-head { max-width: 68%; } .wx-scene { width: 46%; } }
