/* ============================================================
   DEEPSEA NATION — shared stylesheet (v2 BRIGHT, 2026-07-13)
   Rule 9: teal primary + white space + daylight photos.
   Navy + gold are ACCENTS ONLY: nav, footer, buttons, badges,
   logo, placeholders, polaroid wall. Dark wallpaper era is over.
   ============================================================ */
* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
    --navy-dark: #0a1628; --navy-medium: #1a2d4a;
    --teal-primary: #0d7377; --teal-light: #14919b;
    --teal-bright: #0fa3ad; /* bright primary for bands/highlights */
    --sea-foam: #eef7f8;    /* light teal tint for section bands */
    --sea-mist: #d9eef0;
    --gold-primary: #d4a742; --gold-light: #f0c14b;
    --wa-green: #25d366; --wa-dark: #03140a;
    --ok-green: #2e8b57;
    --ink: #22313f;         /* body text on bright backgrounds */
    --ink-soft: #4a6070;
    --white: #ffffff; --gray-light: #f6f9fa; --gray-dark: #333333;
}
html { scroll-behavior: smooth; }
body { font-family: 'Roboto', sans-serif; color: var(--gray-dark); line-height: 1.6; background: var(--white); overflow-x: hidden; }
h1,h2,h3,h4,h5,h6 { font-family: 'Oswald', sans-serif; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
a { text-decoration: none; color: inherit; transition: all 0.3s ease; }
button { cursor: pointer; border: none; font-family: 'Oswald', sans-serif; transition: all 0.3s ease; }
img { max-width: 100%; }

/* LANGUAGE TOGGLE — html[lang] driven */
html[lang="en"] .lang-es { display: none !important; }
html[lang="es"] .lang-en { display: none !important; }
.lang-btn { background: none; border: 2px solid rgba(255,255,255,0.35); color: var(--white); border-radius: 25px; padding: 0.35rem 0.8rem; font-size: 0.85rem; font-weight: 600; letter-spacing: 1px; display: inline-flex; align-items: center; gap: 0.4rem; }
.lang-btn:hover { border-color: var(--gold-primary); color: var(--gold-primary); }

/* NAV (same pattern as live homepage) */
.dsn-nav { position: fixed; top: 0; left: 0; width: 100%; background: linear-gradient(135deg, var(--navy-dark), var(--navy-medium)); padding: 0.8rem 2rem; z-index: 1000; box-shadow: 0 4px 15px rgba(0,0,0,0.3); display: flex; justify-content: space-between; align-items: center; }
.dsn-nav .logo { font-size: 1.4rem; font-family: 'Oswald', sans-serif; font-weight: 700; color: var(--gold-primary); letter-spacing: 2px; display: flex; align-items: center; gap: 0.5rem; white-space: nowrap; }
.dsn-nav .logo a { color: var(--gold-primary); }
.nav-menu { display: flex; gap: 1.3rem; align-items: center; list-style: none; }
.nav-menu a { color: var(--white); font-weight: 500; font-size: 0.92rem; padding-bottom: 0.3rem; }
.nav-menu a:hover, .nav-menu a.active { color: var(--gold-primary); }
.live-badge { background: linear-gradient(135deg, var(--gold-primary), var(--gold-light)); color: var(--navy-dark); font-family: 'Oswald', sans-serif; font-size: 0.6rem; font-weight: 700; letter-spacing: 1px; border-radius: 4px; padding: 1px 5px; vertical-align: super; margin-left: 3px; }
.nav-controls { display: flex; gap: 0.8rem; align-items: center; }
.nav-btn { background: var(--teal-primary); color: var(--white); padding: 0.5rem 1.2rem; border-radius: 25px; font-weight: 600; font-size: 0.85rem; letter-spacing: 1px; font-family: 'Oswald', sans-serif; display: inline-flex; align-items: center; gap: 0.4rem; }
.nav-btn:hover { background: var(--gold-primary); color: var(--navy-dark); }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; }
/* v8 H1: AI SEARCH pill — one search brain, every page's nav (label collapses to icon <640px) */
.nav-search { display: inline-flex; align-items: center; background: rgba(255,255,255,.08); color: #fff; border: 1px solid rgba(255,255,255,.28); padding: .42rem .75rem; border-radius: 999px; font-size: .72rem; font-family: 'Oswald', sans-serif; letter-spacing: .6px; text-decoration: none; white-space: nowrap; }
.nav-search:hover { border-color: var(--gold-light); color: var(--gold-light); }
@media (max-width: 640px) { .nav-search span { display: none; } }
.hamburger span { width: 25px; height: 3px; background: var(--white); border-radius: 2px; transition: 0.3s; }
/* v11 M1: drawer-only control items (AI Search / language / BOOK NOW) — hidden on desktop, shown in the mobile drawer */
.nav-mobile-only { display: none; }

/* PAGE SCAFFOLD — BRIGHT: heroes are light teal bands, never dark gradients */
.page-wrap { padding-top: 64px; min-height: 60vh; }
.page-hero { background: linear-gradient(160deg, var(--white) 0%, var(--sea-foam) 45%, var(--sea-mist) 100%); color: var(--ink); padding: 60px 2rem 40px; text-align: center; border-bottom: 3px solid var(--teal-bright); }
.page-hero h1 { font-size: 2.4rem; color: var(--navy-dark); letter-spacing: 2px; }
.page-hero .sub { color: var(--ink-soft); font-weight: 400; max-width: 720px; margin: 0.6rem auto 0; font-size: 1.05rem; }
.section { padding: 50px 2rem; }
.section-inner { max-width: 1200px; margin: 0 auto; }
.section h2 { color: var(--navy-dark); font-size: 1.8rem; margin-bottom: 1rem; }
/* .dark kept for backwards compatibility but now renders as a BRIGHT teal band (rule 9 flip) */
.section.dark { background: var(--sea-foam); color: var(--ink); }
.section.dark h2 { color: var(--teal-primary); }
.section.gray { background: var(--gray-light); }
.section.teal-band { background: linear-gradient(135deg, var(--teal-primary), var(--teal-light)); color: var(--white); }
.section.teal-band h2 { color: var(--white); }

/* CARDS + BUTTONS */
.card { background: var(--white); border-radius: 16px; overflow: hidden; box-shadow: 0 4px 20px rgba(0,0,0,0.08); transition: all 0.3s ease; }
.card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,0.15); }
.btn-gold { background: linear-gradient(135deg, var(--gold-primary), var(--gold-light)); color: var(--navy-dark); padding: 0.75rem 1.8rem; border-radius: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; font-family: 'Oswald', sans-serif; display: inline-flex; align-items: center; gap: 0.5rem; }
.btn-gold:hover { background: var(--white); }
.btn-teal { background: linear-gradient(135deg, var(--teal-primary), var(--teal-light)); color: var(--white); padding: 0.75rem 1.8rem; border-radius: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; font-family: 'Oswald', sans-serif; display: inline-flex; align-items: center; gap: 0.5rem; }
.btn-teal:hover { background: linear-gradient(135deg, var(--gold-primary), var(--gold-light)); color: var(--navy-dark); }
.btn-wa { background: var(--wa-green); color: var(--wa-dark); padding: 0.75rem 1.8rem; border-radius: 10px; font-weight: 800; letter-spacing: 0.5px; font-family: 'Oswald', sans-serif; display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; font-size: 1rem; }
.btn-wa:hover { filter: brightness(1.08); transform: translateY(-2px); }

/* BOAT CARDS (finder + species pages) */
.boat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.5rem; }
.boat-card { background: var(--white); border-radius: 16px; overflow: hidden; box-shadow: 0 4px 20px rgba(0,0,0,0.08); transition: all 0.3s ease; display: flex; flex-direction: column; }
.boat-card:hover { transform: translateY(-5px); box-shadow: 0 12px 40px rgba(0,0,0,0.15); }
.boat-img { height: 200px; position: relative; overflow: hidden; background: linear-gradient(135deg, var(--navy-dark), var(--navy-medium)); }
.boat-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.boat-img .code-badge { position: absolute; top: 12px; left: 12px; background: rgba(10,22,40,0.85); color: var(--gold-light); padding: 4px 10px; border-radius: 6px; font-size: 0.8rem; font-weight: 700; font-family: 'Oswald', sans-serif; letter-spacing: 1px; }
.boat-body { padding: 1.1rem 1.3rem 1.3rem; display: flex; flex-direction: column; flex: 1; gap: 0.5rem; }
.boat-type { font-size: 0.8rem; color: var(--teal-primary); font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.boat-body h3 { font-size: 1.1rem; color: var(--navy-dark); text-transform: none; letter-spacing: 0; }
.boat-specs { display: flex; gap: 0.9rem; flex-wrap: wrap; }
.boat-specs .spec { display: flex; align-items: center; gap: 4px; font-size: 0.8rem; color: #666; }
.boat-specs .spec i { color: var(--teal-primary); font-size: 0.75rem; }
.boat-price-row { display: flex; justify-content: space-between; align-items: flex-end; border-top: 1px solid #f0f0f0; padding-top: 0.7rem; margin-top: auto; }
.boat-price .amount { font-family: 'Oswald', sans-serif; font-size: 1.35rem; font-weight: 700; color: var(--navy-dark); }
.boat-price .unit { font-size: 0.75rem; color: #999; }
.boat-price .allin-note { font-size: 0.72rem; color: var(--ok-green); font-weight: 600; }
.honesty-line { font-size: 0.75rem; color: #888; font-style: italic; }
.cancel-line { font-size: 0.75rem; color: var(--teal-primary); }
.cancel-line a { text-decoration: underline; }

/* ALL-IN TOGGLE */
.allin-bar { display: flex; align-items: center; gap: 0.8rem; flex-wrap: wrap; background: var(--white); border: 2px solid var(--gold-primary); border-radius: 12px; padding: 0.8rem 1.2rem; margin: 1rem 0; }
.switch { position: relative; display: inline-block; width: 52px; height: 28px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch .slider { position: absolute; cursor: pointer; inset: 0; background: #ccc; border-radius: 28px; transition: 0.3s; }
.switch .slider:before { content: ""; position: absolute; height: 22px; width: 22px; left: 3px; bottom: 3px; background: var(--white); border-radius: 50%; transition: 0.3s; }
.switch input:checked + .slider { background: var(--ok-green); }
.switch input:checked + .slider:before { transform: translateX(24px); }

/* STATS BAR — bright teal band (headline weapon), gold numbers as accent */
.stats-bar { background: linear-gradient(135deg, var(--teal-primary), var(--teal-light)); border-top: 3px solid var(--gold-primary); border-bottom: 3px solid var(--gold-primary); color: var(--white); padding: 1.6rem 2rem; text-align: center; }
.stats-bar .headline { font-family: 'Oswald', sans-serif; font-size: 1.35rem; letter-spacing: 1px; color: var(--white); }
.stats-bar .headline strong { color: var(--gold-light); }
.stats-bar .counts { margin-top: 0.5rem; display: flex; gap: 1.4rem; justify-content: center; flex-wrap: wrap; font-size: 0.95rem; color: rgba(255,255,255,0.92); }
.stats-bar .counts b { color: var(--gold-light); font-family: 'Oswald', sans-serif; font-size: 1.15rem; }
.stats-bar .kicker { margin-top: 0.6rem; font-size: 0.95rem; color: var(--gold-light); font-style: italic; }

/* TRUST STRIP */
.trust-strip { background: var(--gray-light); padding: 1.2rem 2rem; }
.trust-inner { max-width: 1200px; margin: 0 auto; display: flex; gap: 1.2rem; justify-content: center; flex-wrap: wrap; }
.trust-item { display: flex; align-items: center; gap: 0.6rem; background: var(--white); border-radius: 12px; padding: 0.7rem 1.1rem; box-shadow: 0 2px 10px rgba(0,0,0,0.06); font-size: 0.85rem; color: var(--navy-dark); max-width: 340px; }
.trust-item i { color: var(--gold-primary); font-size: 1.2rem; flex: none; }

/* PROMISES (yacht-menu checkmarks) */
.menu-list { list-style: none; }
.menu-list li { display: flex; gap: 0.7rem; align-items: baseline; padding: 0.45rem 0; border-bottom: 1px dashed #e4e4e4; font-size: 0.95rem; }
.menu-list li:last-child { border-bottom: none; }
.menu-list li i { color: var(--ok-green); flex: none; }
.menu-list li .muted { color: #888; font-size: 0.85rem; }

/* TABLES (fish calendar etc.) */
.dsn-table-wrap { overflow-x: auto; border-radius: 12px; box-shadow: 0 4px 20px rgba(0,0,0,0.08); }
table.dsn-table { width: 100%; border-collapse: collapse; background: var(--white); min-width: 640px; }
table.dsn-table th { background: var(--navy-dark); color: var(--gold-light); font-family: 'Oswald', sans-serif; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; font-size: 0.8rem; padding: 0.8rem 0.9rem; text-align: left; }
table.dsn-table td { padding: 0.7rem 0.9rem; border-bottom: 1px solid #f0f0f0; font-size: 0.9rem; }
table.dsn-table tr:hover td { background: rgba(13,115,119,0.05); }

/* FOOTER */
.dsn-footer { background: var(--navy-dark); color: var(--white); padding: 50px 2rem 25px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2rem; max-width: 1200px; margin: 0 auto 2rem; }
.footer-col h4 { color: var(--gold-primary); margin-bottom: 1rem; font-size: 1rem; }
.footer-col p, .footer-col a { color: rgba(255,255,255,0.65); font-size: 0.85rem; display: block; margin-bottom: 0.4rem; }
.footer-col a:hover { color: var(--gold-primary); }
.footer-bottom { text-align: center; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.08); color: rgba(255,255,255,0.4); font-size: 0.8rem; }

/* FLOATING WHATSAPP + BOTTOM MOBILE BAR */
.wa-float { position: fixed; bottom: 22px; right: 18px; z-index: 1500; width: 58px; height: 58px; border-radius: 50%; background: var(--wa-green); color: var(--wa-dark); display: flex; align-items: center; justify-content: center; font-size: 1.9rem; box-shadow: 0 8px 25px rgba(0,0,0,0.35); }
.wa-float:hover { transform: scale(1.08); }
.bottom-bar { display: none; position: fixed; bottom: 0; left: 0; width: 100%; background: linear-gradient(0deg, var(--navy-dark), var(--navy-medium)); z-index: 1400; border-top: 2px solid var(--gold-primary); padding: 0.35rem 0 calc(0.35rem + env(safe-area-inset-bottom)); }
/* v11 M-fix: minmax(0,1fr) lets the 4 columns shrink below their label's min-content instead of
   expanding the fixed bar past the viewport (was forcing ~668px of horizontal scroll at 390px). */
.bottom-bar .bb-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.bottom-bar a { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 0; text-align: center; color: rgba(255,255,255,0.85); font-size: 0.62rem; font-family: 'Oswald', sans-serif; letter-spacing: 0.5px; text-transform: uppercase; padding: 4px 2px; }
.bottom-bar a span { max-width: 100%; line-height: 1.15; overflow-wrap: anywhere; }
.bottom-bar a i { font-size: 1.15rem; color: var(--gold-primary); }
.bottom-bar a.bb-wa i { color: var(--wa-green); }

/* NEWSLETTER BOX — teal, bright */
.newsletter-box { background: linear-gradient(135deg, var(--teal-primary), var(--teal-light)); border-radius: 16px; padding: 1.8rem; color: var(--white); text-align: center; }
.newsletter-box h3 { color: var(--gold-light); margin-bottom: 0.4rem; }
.newsletter-box form { display: flex; gap: 0.6rem; max-width: 460px; margin: 1rem auto 0; }
.newsletter-box input[type=email] { flex: 1; padding: 0.7rem 0.9rem; border-radius: 10px; border: none; font-family: 'Roboto', sans-serif; font-size: 0.95rem; min-width: 0; }
.newsletter-box .nl-msg { margin-top: 0.6rem; font-size: 0.85rem; color: var(--gold-light); min-height: 1.2em; }

/* FORMS */
.f-group { margin-bottom: 1rem; }
.f-group label { display: block; font-size: 0.8rem; font-weight: 600; color: var(--navy-dark); margin-bottom: 0.3rem; text-transform: uppercase; font-family: 'Oswald', sans-serif; letter-spacing: 0.5px; }
.f-group input, .f-group select, .f-group textarea { width: 100%; padding: 0.7rem 0.8rem; border: 2px solid #e0e0e0; border-radius: 8px; font-family: 'Roboto', sans-serif; font-size: 0.95rem; background: var(--white); color: var(--gray-dark); }
.f-group input:focus, .f-group select:focus, .f-group textarea:focus { border-color: var(--teal-primary); outline: none; }

/* TOAST */
.toast { position: fixed; bottom: 90px; right: 30px; background: var(--navy-dark); color: var(--white); padding: 1rem 1.5rem; border-radius: 12px; font-size: 0.9rem; z-index: 4000; transform: translateY(100px); opacity: 0; transition: all 0.4s; box-shadow: 0 10px 30px rgba(0,0,0,0.3); }
.toast.show { transform: translateY(0); opacity: 1; }

/* WEATHER CHIP — white card, readable over the bright hero photo */
.weather-chip { display: inline-flex; align-items: center; gap: 0.9rem; background: rgba(255,255,255,0.88); border: 1px solid var(--sea-mist); border-radius: 12px; padding: 0.55rem 1.1rem; font-size: 0.85rem; color: var(--ink); flex-wrap: wrap; justify-content: center; box-shadow: 0 4px 14px rgba(10,22,40,0.12); }
.weather-chip i { color: var(--teal-primary); }
.weather-chip .wx-truth { color: var(--teal-primary); font-style: italic; }

/* WINDY HURRICANE TRACKER BUTTON (section AL) */
.windy-btn { display: inline-flex; align-items: center; gap: 0.5rem; background: var(--white); border: 2px solid var(--teal-primary); color: var(--teal-primary); border-radius: 10px; padding: 0.5rem 1.1rem; font-family: 'Oswald', sans-serif; font-size: 0.85rem; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; }
.windy-btn:hover { background: var(--teal-primary); color: var(--white); }

/* REACH BOX — compact (section AM): must never dominate the page */
.reach-box { max-width: 760px; margin: 0 auto; background: var(--white); border: 2px solid var(--sea-mist); border-radius: 16px; box-shadow: 0 6px 24px rgba(10,22,40,0.08); padding: 0.85rem 1.3rem; }
/* v15 A2: collapse the reach-box status + results slots to ZERO height while empty, so the photo shows
   through. The JS writes into #rbStatus / #rbResults; once populated they are no longer :empty and reappear. */
#rbStatus:empty, #rbResults:empty { display: none; }
.reach-box .rb-title { font-family: 'Oswald', sans-serif; color: var(--navy-dark); font-size: 1.05rem; letter-spacing: 1px; display: flex; align-items: center; gap: 0.5rem; }
.reach-box .rb-title i { color: var(--teal-primary); }
.reach-tabs { display: flex; gap: 0.5rem; margin: 0.5rem 0; }
.reach-tabs button { flex: 1; border: 2px solid var(--sea-mist); background: var(--white); border-radius: 10px; padding: 0.5rem 0.6rem; font-family: 'Oswald', sans-serif; font-size: 0.8rem; letter-spacing: 0.5px; color: var(--ink-soft); }
.reach-tabs button.active { border-color: var(--teal-primary); color: var(--teal-primary); background: var(--sea-foam); }
.reach-drop { border: 2px dashed var(--teal-bright); border-radius: 12px; background: var(--sea-foam); padding: 1rem; text-align: center; cursor: pointer; color: var(--ink-soft); font-size: 0.9rem; transition: all 0.25s; }
.reach-drop:hover, .reach-drop.drag { background: var(--sea-mist); }
.reach-drop i { color: var(--teal-primary); font-size: 1.4rem; display: block; margin-bottom: 0.3rem; }

/* HERO PHOTO (v6): daylight image, FADED with a light overlay so navy text reads */
.hero-photo { position: relative; overflow: hidden; text-align: center; padding: 90px 1.2rem 56px; }
.hero-photo .hp-bg { position: absolute; inset: 0; background-size: cover; background-position: center; z-index: 0; }
.hero-photo .hp-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255,255,255,0.82) 0%, rgba(255,255,255,0.62) 45%, rgba(238,247,248,0.9) 100%); }
.hero-photo .hp-content { position: relative; z-index: 1; max-width: 960px; margin: 0 auto; }

/* RESPONSIVE */
/* v8 fix: nav content (esp. Spanish labels + AI pill) is ~1030px wide — collapse to the
   hamburger BEFORE it overflows, not at 820px (bug found on every page at ~840-1030px in ES) */
@media (max-width: 1080px) {
    .nav-menu { display: none; }
    .nav-menu.open { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; width: 100%; background: var(--navy-dark); padding: 1rem 2rem 1.5rem; gap: 0.8rem; box-shadow: 0 4px 15px rgba(0,0,0,0.3); align-items: flex-start; }
    .hamburger { display: flex; }
}
/* v11 M1 (HIGHEST SEVERITY): below 900px the top bar carries ONLY the wordmark + hamburger.
   AI SEARCH, the language toggle and BOOK NOW collapse into the hamburger drawer, which stops
   the 89px horizontal overflow that pushed the hamburger off-screen at 390px. BOOK NOW is also
   in the fixed .bottom-bar, so nothing is lost. */
/* Scoped to .has-drawer (pages using the shared _nav.php include) so pages still on the
   old inline nav keep their prior mobile behavior instead of losing their controls. */
@media (max-width: 900px) {
    .dsn-nav.has-drawer .nav-controls .nav-search,
    .dsn-nav.has-drawer .nav-controls .lang-btn,
    .dsn-nav.has-drawer .nav-controls .nav-btn { display: none; }
    .has-drawer .nav-menu.open .nav-mobile-only { display: block; width: 100%; }
    .has-drawer .nav-menu.open .nav-mobile-only .nav-search,
    .has-drawer .nav-menu.open .nav-mobile-only .lang-btn,
    .has-drawer .nav-menu.open .nav-mobile-only .nav-btn { display: inline-flex; width: 100%; justify-content: flex-start; }
}
@media (max-width: 820px) {
    .dsn-nav { padding: 0.7rem 1rem; }
    .page-hero h1 { font-size: 1.7rem; }
    .bottom-bar { display: block; }
    body { padding-bottom: 64px; }
    /* v11 M2: hide the floating WhatsApp below the bottom-bar breakpoint — the bottom bar already
       carries a WhatsApp item, and the float was overlapping both the bottom bar and the hero dropzone. */
    .wa-float { display: none; }
    .stats-bar .headline { font-size: 1.05rem; }
    .newsletter-box form { flex-direction: column; }
    .section { padding: 36px 1rem; }
}
