﻿/* RFF v3 — Apple-style base */
body {
    margin: 0;
    background:#0f172a;
    color:white;
    font-family: 'Inter', sans-serif;
}

.rff-header {
    height: 20px;
    background:#0f172a;
}

.rff-nav {
    height: 60px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:0 1rem;
    background:#0f172a;
    border-bottom:1px solid rgba(255,255,255,0.08);
}

.rff-logo img {
    height:32px;
    display:block;
}

.rff-burger {
    width:32px;
    height:32px;
    background:none;
    border:none;
    padding:0;
    cursor:pointer;
}

.rff-burger span {
    display:block;
    width:100%;
    height:3px;
    background:white;
    margin:5px 0;
    transition:0.3s ease;
}

.rff-mobile-menu {
    background:#111827;
    padding:1rem;
    display:none;
    flex-direction:column;
}

.rff-mobile-menu a {
    color:white;
    text-decoration:none;
    padding:.75rem 0;
    font-size:1.1rem;
    border-bottom:1px solid rgba(255,255,255,0.1);
}

.rff-footer {
    margin-top:3rem;
    padding:2rem 1rem;
    text-align:center;
    opacity:0.7;
}
/* WEATHER GRID */
.weather-grid {
    display:grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap:1.5rem;
}

/* WEATHER CARD */
.weather-card {
    background:#111827;
    padding:1.5rem;
    border-radius:1rem;
    border:1px solid rgba(255,255,255,0.08);
    box-shadow:0 0 8px rgba(0,0,0,0.25);
    transition:0.2s ease;
}

.weather-card:hover {
    transform: translateY(-4px);
    box-shadow:0 4px 14px rgba(0,0,0,0.35);
}

.weather-card h2 {
    margin:0 0 1rem 0;
    font-size:1.2rem;
    font-weight:600;
}

.weather-icon {
    font-size:2.5rem;
    margin-bottom:.5rem;
}

.temp-main {
    font-size:2rem;
    font-weight:700;
    margin-bottom:1rem;
}

.sub-info {
    opacity:0.9;
    margin-bottom:0.4rem;
}

.timestamp {
    margin-top:1rem;
    opacity:0.6;
    font-size:0.85rem;
}
/* RADAR CONTAINER */
.radar-frame-wrapper {
    width:100%;
    background:#111827;
    padding:1rem;
    border-radius:1rem;
    border:1px solid rgba(255,255,255,0.08);
    box-shadow:0 0 8px rgba(0,0,0,0.25);
    display:flex;
    justify-content:center;
    align-items:center;
}

/* RESPONSIVE RADAR */
.radar-frame {
    width:100%;
    height:600px;
    max-height:75vh;
    border-radius:0.75rem;
    object-fit:contain;
}
/* RFF v3 — RainViewer Radar Styling */
.radar-frame-wrapper {
    width:100%;
    background:#111827;
    padding:1rem;
    border-radius:1rem;
    border:1px solid rgba(255,255,255,0.08);
    box-shadow:0 0 8px rgba(0,0,0,0.25);
    overflow:hidden;
}

.radar-frame {
    width:100%;
    height:75vh;
    border-radius:0.75rem;
    background:#000;
}
/* ================
   GEAR PICKER v3
   ================ */

.gear-category-bar {
    display:flex;
    gap:1rem;
    margin-bottom:2rem;
    flex-wrap:wrap;
    justify-content:center;
}

.gear-cat-btn {
    background:#1f2937;
    color:white;
    border:none;
    padding:.7rem 1.4rem;
    border-radius:2rem;
    cursor:pointer;
    transition:0.2s ease;
}

.gear-cat-btn:hover {
    background:#374151;
}

.gear-cat-btn.active {
    background:#10b981;
    color:black;
    font-weight:600;
}

.gear-grid {
    display:grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap:1.5rem;
}

.gear-card {
    background:#111827;
    padding:1.2rem;
    border-radius:1rem;
    border:1px solid rgba(255,255,255,0.08);
    box-shadow:0 0 8px rgba(0,0,0,0.25);
    text-align:center;
}

.gear-card img.gear-img {
    width:100%;
    height:180px;
    object-fit:contain;
    margin-bottom:1rem;
}

.gear-card h3 {
    margin:0 0 .5rem 0;
}

.gear-desc {
    opacity:0.8;
    margin-bottom:.5rem;
    font-size:0.95rem;
}

.gear-price {
    font-weight:600;
    margin-bottom:1rem;
    font-size:1.1rem;
}

.gear-btn {
    display:inline-block;
    padding:.6rem 1.2rem;
    background:#10b981;
    color:#000;
    border-radius:.5rem;
    text-decoration:none;
    font-weight:600;
}
/* REPORTS GRID */
.reports-grid {
    display:grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap:1.5rem;
}

/* REPORT CARD */
.report-card {
    background:#111827;
    padding:1.2rem;
    border-radius:1rem;
    border:1px solid rgba(255,255,255,0.08);
    box-shadow:0 0 8px rgba(0,0,0,0.25);
}

.report-img {
    width:100%;
    height:160px;
    object-fit:cover;
    border-radius:0.75rem;
    margin-bottom:1rem;
}

.report-img.placeholder {
    background:#1f2937;
}

.report-card h2 {
    font-size:1.2rem;
    margin:0 0 .5rem 0;
}

.report-summary {
    opacity:.8;
    margin-bottom:1rem;
}

.small-info {
    opacity:.6;
    font-size:.9rem;
    margin-bottom:1rem;
}

.report-btn {
    display:inline-block;
    padding:.6rem 1.2rem;
    background:#10b981;
    color:black;
    border-radius:.5rem;
    font-weight:600;
    text-decoration:none;
}
/* VIDEO GRID */
.video-grid {
    display:grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap:1.5rem;
}

/* VIDEO CARD */
.video-card {
    background:#111827;
    padding:1rem;
    border-radius:1rem;
    border:1px solid rgba(255,255,255,0.08);
    box-shadow:0 0 8px rgba(0,0,0,0.25);
    text-align:center;
}

.video-thumb {
    width:100%;
    height:160px;
    object-fit:cover;
    border-radius:0.75rem;
    margin-bottom:1rem;
}

.video-card h2 {
    font-size:1.15rem;
    margin:0 0 .5rem;
}

.video-summary {
    opacity:.8;
    margin-bottom:1rem;
    font-size:.95rem;
}

.video-date {
    opacity:.6;
    font-size:.85rem;
    margin-bottom:1rem;
}

.video-btn {
    display:inline-block;
    padding:.6rem 1.2rem;
    background:#10b981;
    color:black;
    border-radius:.5rem;
    text-decoration:none;
    font-weight:600;
}

/* EMBEDDED VIDEO */
.video-embed iframe {
    width:100%;
    height:420px;
    border-radius:.75rem;
}
/* ======================
   REVIEWS GRID
   ====================== */

.reviews-grid {
    display:grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap:1.5rem;
}

.review-card {
    background:#111827;
    padding:1rem;
    border-radius:1rem;
    border:1px solid rgba(255,255,255,0.08);
    box-shadow:0 0 8px rgba(0,0,0,0.25);
    text-align:center;
}

.review-card img.review-img {
    width:100%;
    height:160px;
    object-fit:cover;
    border-radius:.75rem;
    margin-bottom:1rem;
}

.review-card h2 {
    font-size:1.15rem;
    margin:0 0 .5rem;
}

.review-excerpt {
    opacity:.8;
    margin-bottom:1rem;
    font-size:.95rem;
}

.review-meta {
    opacity:.6;
    font-size:.85rem;
    margin-bottom:1rem;
}

.review-stars {
    color:#f59e0b;
    font-size:1rem;
}

/* Review Button */
.review-btn {
    display:inline-block;
    padding:.6rem 1.2rem;
    background:#10b981;
    color:#000;
    border-radius:.5rem;
    text-decoration:none;
    font-weight:600;
}

/* ======================
   REVIEW DETAIL
   ====================== */

.review-hero {
    width:100%;
    border-radius:1rem;
    margin-bottom:1.5rem;
}

.review-stars-big {
    font-size:1.6rem;
    color:#f59e0b;
    margin-bottom:1rem;
}

.review-stars-big .score {
    font-size:1rem;
    opacity:.7;
}

.review-body p {
    font-size:1.1rem;
    line-height:1.7;
    margin:1rem 0;
}

.review-proscons {
    display:grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap:1rem;
    margin:2rem 0;
}

.review-proscons h3 {
    margin:.1rem 0 .5rem;
    font-size:1rem;
    color:#10b981;
}

.review-verdict {
    background:#ecfdf5;
    border:1px solid #d1fae5;
    border-left:4px solid #10b981;
    padding:1rem 1.1rem;
    border-radius:12px;
    margin-top:1.5rem;
}

.review-buy {
    display:inline-block;
    padding:.75rem 1.3rem;
    background:#10b981;
    color:#000;
    border-radius:.5rem;
    font-weight:600;
    text-decoration:none;
}

.review-back {
    opacity:.7;
    text-decoration:none;
}
/* ======================
   FISH COUNTS
   ====================== */

.counts-grid {
    display:grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap:1.5rem;
}

.fish-card {
    background:#111827;
    padding:1.5rem;
    border-radius:1rem;
    border:1px solid rgba(255,255,255,0.08);
    box-shadow:0 0 8px rgba(0,0,0,0.25);
    text-align:center;
}

.fish-card h2 {
    margin:0 0 1rem 0;
    font-size:1.2rem;
}

.fish-value {
    font-size:2rem;
    font-weight:700;
    margin-bottom:0rem;
}

/* Fun Fact */
.fact-card {
    margin-top:2.5rem;
    padding:1.5rem;
    background:#1f2937;
    border-radius:1rem;
    border:1px solid rgba(255,255,255,0.08);
    box-shadow:0 0 8px rgba(0,0,0,0.25);
}

.fact-card h3 {
    margin-top:0;
    margin-bottom:1rem;
    font-size:1.2rem;
}

.fact-card p {
    opacity:0.85;
    font-size:1.05rem;
}
/* ===========================
   SOLUNAR V3 STYLES
   =========================== */

.sol-location-bar {
    display:flex;
    gap:1rem;
    flex-wrap:wrap;
    justify-content:center;
    margin-bottom:2rem;
}

.sol-loc-btn {
    background:#1f2937;
    color:white;
    border:none;
    padding:.7rem 1.4rem;
    border-radius:2rem;
    cursor:pointer;
    transition:0.2s ease;
}

.sol-loc-btn:hover {
    background:#374151;
}

/* Map */
.sol-map {
    display:flex;
    justify-content:center;
    margin-bottom:2rem;
    position:relative;
}

.sol-map-img {
    width:100%;
    max-width:600px;
    border-radius:1rem;
    box-shadow:0 0 8px rgba(0,0,0,0.35);
}

.sol-map-label {
    position:absolute;
    bottom:10px;
    left:15px;
    background:rgba(0,0,0,0.7);
    padding:.4rem .8rem;
    border-radius:.5rem;
    font-size:.9rem;
}

/* Cards */
.sol-card-grid {
    display:grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap:1.5rem;
    margin-bottom:2.5rem;
}

.sol-card {
    background:#111827;
    padding:1.2rem;
    border-radius:1rem;
    border:1px solid rgba(255,255,255,0.08);
    box-shadow:0 0 8px rgba(0,0,0,0.25);
    text-align:center;
}

.sol-card h3 {
    margin-bottom:.5rem;
    font-size:1.1rem;
}

.sol-value {
    font-size:1.6rem;
    font-weight:700;
}

/* Table */
.sol-table-inner {
    width:100%;
    border-collapse:collapse;
    margin-top:1rem;
}

.sol-table-inner th,
.sol-table-inner td {
    border:1px solid rgba(255,255,255,0.15);
    padding:.6rem;
}

.sol-table-inner th {
    background:#1f2937;
}
/* ======================
   SOLUNAR WIDGET (HOME)
   ====================== */

.sol-widget {
    margin:2rem auto;
    max-width:600px;
}

.sol-widget-inner {
    background:#0b1120;
    border-radius:1rem;
    border:1px solid rgba(148,163,184,0.4);
    padding:1.25rem 1.5rem;
    box-shadow:0 10px 30px rgba(15,23,42,0.6);
}

.sol-widget-header {
    font-weight:600;
    margin-bottom:.75rem;
}

.sol-widget-body {
    font-size:.95rem;
    margin-bottom:.75rem;
}

.sol-widget-row {
    display:flex;
    justify-content:space-between;
    gap:.5rem;
    margin-bottom:.35rem;
}

.sol-widget-label {
    opacity:.7;
}

.sol-widget-value {
    font-weight:600;
}

.sol-widget-link {
    display:inline-block;
    font-size:.9rem;
    color:#22c55e;
    text-decoration:none;
    margin-top:.4rem;
}
/* ===========================
   HOME HERO
=========================== */
.hero-section {
    text-align:center;
    padding:4rem 1rem 3rem;
    background:linear-gradient(180deg, #0f172a 0%, #111827 100%);
}

.hero-section h1 {
    font-size:2.8rem;
    margin-bottom:.5rem;
}

.hero-tag {
    color:#22c55e;
    font-size:1.1rem;
    margin-bottom:.5rem;
}

.hero-sub {
    opacity:.7;
    max-width:450px;
    margin:0 auto;
    line-height:1.5;
}

/* ===========================
   HOME CARDS
=========================== */
.home-card {
    background:#111827;
    padding:1.5rem;
    border-radius:1rem;
    border:1px solid rgba(255,255,255,0.08);
    box-shadow:0 0 8px rgba(0,0,0,0.3);
    margin-bottom:2rem;
}

.home-card h2 {
    display:flex;
    align-items:center;
    gap:.6rem;
    font-size:1.3rem;
    margin-bottom:1rem;
}

.home-link {
    display:inline-block;
    margin-top:1rem;
    color:#22c55e;
    text-decoration:none;
    font-size:.95rem;
}

/* ===========================
   TOOL GRID
=========================== */
.tool-grid {
    display:grid;
    grid-template-columns:repeat(auto-fill, minmax(140px, 1fr));
    gap:1rem;
    margin-top:2rem;
}

.tool-item {
    background:#0f172a;
    padding:1.3rem;
    border-radius:.75rem;
    border:1px solid rgba(255,255,255,0.08);
    box-shadow:0 0 6px rgba(0,0,0,0.25);
    text-align:center;
    text-decoration:none;
    color:white;
}

.tool-item:hover {
    background:#1e293b;
}

.tool-item i {
    width:32px;
    height:32px;
    margin-bottom:.5rem;
}
/* ======================
   HOMEPAGE SNAPSHOT STYLES
====================== */

.home-wx-row {
    display:flex;
    align-items:center;
    gap:1rem;
}

.home-wx-temp {
    font-size:2rem;
    font-weight:700;
}

.home-wx-meta {
    opacity:.7;
    margin-top:.3rem;
    font-size:.9rem;
}

.home-flow-row,
.home-fish-row {
    display:flex;
    justify-content:space-between;
    padding:.3rem 0;
    border-bottom:1px solid rgba(255,255,255,0.08);
    font-size:.95rem;
}

.home-flow-row:last-child,
.home-fish-row:last-child {
    border-bottom:none;
}
/* ============================
   ARTICLES v3
============================ */
.articles-grid {
    display:grid;
    grid-template-columns:repeat(auto-fill, minmax(260px, 1fr));
    gap:1.5rem;
}

.article-card {
    background:#111827;
    padding:1rem;
    border-radius:1rem;
    border:1px solid rgba(255,255,255,0.08);
    box-shadow:0 0 8px rgba(0,0,0,0.25);
    text-align:center;
}

.article-img {
    width:100%;
    height:160px;
    object-fit:cover;
    border-radius:.75rem;
    margin-bottom:1rem;
}

.article-card h2 {
    font-size:1.15rem;
    margin-bottom:.5rem;
}

.article-excerpt {
    opacity:.8;
    margin-bottom:1rem;
    font-size:.95rem;
}

.article-date {
    opacity:.6;
    font-size:.85rem;
    margin-bottom:1rem;
}

.article-btn {
    display:inline-block;
    padding:.6rem 1.2rem;
    background:#10b981;
    color:#000;
    border-radius:.5rem;
    text-decoration:none;
    font-weight:600;
}

/* Detail Page */
.article-hero {
    width:100%;
    border-radius:1rem;
    margin-bottom:1.5rem;
}

.article-body p {
    font-size:1.1rem;
    line-height:1.7;
    margin:1rem 0;
}

.article-back {
    opacity:.7;
    text-decoration:none;
    font-size:.95rem;
}
/* =======================
   ABOUT PAGE — V3 STYLE
======================= */
.about-hero {
    text-align:center;
    padding:4rem 1rem 2rem;
    background:linear-gradient(180deg, #0f172a, #111827);
}

.about-hero h1 {
    font-size:2.4rem;
    margin-bottom:.5rem;
}

.about-tag {
    max-width:520px;
    margin:0 auto;
    opacity:.75;
    line-height:1.5;
    font-size:1.05rem;
}

.about-section {
    margin:2.5rem 0;
}

.about-section h2 {
    font-size:1.6rem;
    margin-bottom:.75rem;
}

/* GRID */
.about-grid {
    display:grid;
    grid-template-columns:repeat(auto-fill, minmax(220px, 1fr));
    gap:1.5rem;
}

.about-card {
    background:#111827;
    padding:1.5rem;
    border-radius:1rem;
    border:1px solid rgba(255,255,255,0.08);
    box-shadow:0 0 8px rgba(0,0,0,0.3);
    text-align:center;
}

.about-card i {
    width:32px;
    height:32px;
    margin-bottom:.75rem;
}

.about-card h3 {
    margin-bottom:.4rem;
}

.about-btn {
    display:inline-block;
    padding:0.75rem 1.5rem;
    background:#10b981;
    color:#000;
    border-radius:0.5rem;
    text-decoration:none;
    font-weight:600;
}
/* ======================
   CONTACT PAGE
====================== */

.contact-hero {
    text-align:center;
    padding:3rem 1rem 2rem;
    background:linear-gradient(180deg, #0f172a, #111827);
}

.contact-hero h1 {
    font-size:2rem;
    margin-bottom:.5rem;
}

.contact-sub {
    max-width:480px;
    margin:0 auto;
    opacity:.75;
}

.contact-form {
    display:flex;
    flex-direction:column;
    gap:1rem;
    margin-top:2rem;
}

.contact-form label {
    opacity:.75;
    font-size:.95rem;
}

.contact-form input,
.contact-form textarea {
    background:#111827;
    color:white;
    border:1px solid rgba(255,255,255,0.08);
    padding:.75rem 1rem;
    border-radius:.5rem;
    font-size:1rem;
}

.contact-btn {
    padding:.8rem 1.3rem;
    background:#10b981;
    color:#000;
    font-weight:600;
    border:none;
    border-radius:.5rem;
    font-size:1rem;
    cursor:pointer;
}

.contact-success {
    background:#064e3b;
    padding:1.5rem;
    border-radius:.75rem;
    border:1px solid #10b981;
    text-align:center;
    margin-top:2rem;
}
/* =======================
   LOGBOOK PAGE
======================= */
.logbook-hero {
  text-align:center;
  padding:3rem 1rem 2rem;
  background:linear-gradient(180deg,#0f172a,#111827);
}

.logbook-hero h1 {
  font-size:2rem;
  margin-bottom:.5rem;
}

.logbook-sub {
  max-width:520px;
  margin:0 auto;
  opacity:.75;
}

.logbook-auth {
  display:flex;
  flex-wrap:wrap;
  gap:.75rem;
  align-items:center;
  justify-content:space-between;
  margin-bottom:1rem;
}

.logbook-status {
  opacity:.75;
  font-size:.9rem;
}

.logbook-actions {
  margin-bottom:1.5rem;
}

.logbook-list {
  display:flex;
  flex-direction:column;
  gap:1rem;
}

.log-entry-card {
  display:flex;
  gap:1rem;
  background:#111827;
  border-radius:1rem;
  border:1px solid rgba(255,255,255,0.08);
  padding:1rem;
}

.log-entry-thumb {
  width:110px;
  height:110px;
  object-fit:cover;
  border-radius:.75rem;
}

.log-entry-body h3 {
  margin:0 0 .3rem;
}

.log-entry-meta {
  opacity:.7;
  font-size:.9rem;
  margin-bottom:.4rem;
}

.log-entry-fly {
  opacity:.9;
  font-size:.95rem;
  margin-bottom:.6rem;
}

.log-entry-actions button {
  margin-right:.5rem;
  padding:.4rem .8rem;
  border-radius:.4rem;
  border:none;
  cursor:pointer;
  font-size:.85rem;
}

.log-entry-actions .log-edit {
  background:#10b981;
  color:#000;
}

.log-entry-actions .log-delete {
  background:#7f1d1d;
  color:#fff;
}

@media (max-width:640px) {
  .log-entry-card {
    flex-direction:column;
  }
  .log-entry-thumb {
    width:100%;
    height:180px;
  }
}
/* Hide mobile nav by default */
.nav-mobile {
    display: none;
}

/* On desktop – show desktop nav and hide mobile nav */
@media (min-width: 768px) {
    .nav-desktop {
        display: flex;
    }
    .nav-mobile {
        display: none;
    }
}

/* On mobile – hide desktop nav, show mobile */
@media (max-width: 767px) {
    .nav-desktop {
        display: none;
    }
    .nav-mobile {
        display: flex;
        flex-direction: column;
    }
}
/* ===========================
   NEW HEADER — MODERN + RESPONSIVE
=========================== */

.site-header {
    background:#0f172a;
    border-bottom:1px solid rgba(255,255,255,0.08);
    padding:0.75rem 1.5rem;
    position:sticky;
    top:0;
    z-index:999;
}

.site-header-inner {
    max-width:1100px;
    margin:0 auto;
    display:flex;
    align-items:center;
    justify-content:space-between;
}

.site-logo img {
    height:38px;
}

.nav-desktop {
    display:flex;
    gap:1.25rem;
}

.nav-desktop a {
    color:white;
    opacity:0.85;
    text-decoration:none;
    font-size:0.95rem;
    transition:0.2s;
}

.nav-desktop a:hover {
    opacity:1;
}

/* Mobile Toggle */
.nav-toggle {
    display:none;
    flex-direction:column;
    gap:5px;
    background:none;
    border:none;
    cursor:pointer;
}

.nav-toggle span {
    display:block;
    width:28px;
    height:3px;
    background:white;
    border-radius:4px;
}

/* MOBILE MENU */
.nav-mobile {
    display:none;
    flex-direction:column;
    background:#0f172a;
    border-top:1px solid rgba(255,255,255,0.08);
    padding:0.75rem 1.5rem;
}

.nav-mobile a {
    padding:0.75rem 0;
    color:white;
    opacity:0.85;
    text-decoration:none;
    border-bottom:1px solid rgba(255,255,255,0.08);
}

.nav-mobile a:last-child {
    border-bottom:none;
}

/* MOBILE BREAKPOINT */
@media (max-width: 860px) {

    .nav-desktop {
        display:none;
    }

    .nav-toggle {
        display:flex;
    }

    .nav-mobile.open {
        display:flex;
    }
}
/* ===========================
   HOMEPAGE SPACING FIXES
=========================== */

/* Add space between homepage sections */
.home-card,
.sol-widget,
.tool-grid {
    margin-top: 2.5rem !important;
}

/* Ensure solunar widget has spacing below */
.sol-widget {
    margin-bottom: 2.5rem !important;
}

/* Ensure hero section has breathing room below */
.hero-section {
    margin-bottom: 2.5rem;
}
/* Increase padding inside home cards */
.home-card {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
}
/* Spacing inside weather snapshot card */
#home-weather {
    margin-bottom: 1.5rem;
}
/* Solunar page spacing fixes */
.sol-location-bar {
    margin-top: 2rem;
}

.sol-map {
    margin-top: 2rem !important;
}

.sol-card-grid {
    margin-top: 1.5rem !important;
}

#sol-table {
    margin-top: 2rem !important;
}
/* Clean up date input underline on Solunar page */
.solunar-date-input {
    background: #111827;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.12);
    padding: .6rem 1rem;
    border-radius: .5rem;
    font-size: 1rem;
    width: 220px;
}

.solunar-date-input:focus {
    outline: none;
    border-color: #22c55e;
}
.solunar-section h2 {
    margin-bottom: .75rem;
}
.sol-map-label img {
    display: none !important;
}

.sol-map-label {
    background: rgba(0,0,0,0.55);
    padding: .35rem .6rem;
    border-radius: .5rem;
    font-size: .85rem;
    text-decoration: none !important;
    border: none !important;
}
.sol-map {
    position: relative;
}
.sol-map-img {
    border-radius: 1rem;
    box-shadow: 0 0 20px rgba(0,0,0,0.4);
}
function makeMapURL(lat, lon) {
    return `https://maps.geoapify.com/v1/staticmap?style=osm-carto&width=600&height=300&center=lonlat:${lon},${lat}&zoom=11&apiKey=31bb32b2d4154c4787b03f3aab8cec8c`;
}
/* Fix Solunar map height collapse */
.sol-map-img {
    width: 100% !important;
    height: 300px !important;
    object-fit: cover;
    border-radius: 1rem;
    box-shadow: 0 0 8px rgba(0,0,0,0.35);
}
.sol-map-img {
    border-radius: 1rem;
    overflow: hidden;
    object-fit: cover;
    box-shadow: 0 0 20px rgba(0,0,0,0.35);
}
.sol-map {
    position: relative;
}

.sol-map::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    height: 40%;
    width: 100%;
    background: linear-gradient(to top, rgba(15,23,42,0.85), rgba(15,23,42,0));
    border-radius: 1rem;
    pointer-events: none;
}
.sol-map-label {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    background: rgba(0,0,0,0.55);
    padding: .45rem .85rem;
    font-size: .9rem;
    border-radius: .5rem;
    color: #fff;
    font-weight: 500;
    z-index: 3;
}
.sol-card {
    background:#111827;
    padding:1.4rem;
    text-align:center;
    border-radius:1rem;
    border:1px solid rgba(255,255,255,0.08);
    box-shadow:0 4px 12px rgba(0,0,0,0.25);
    transition:0.2s ease;
}

.sol-card:hover {
    transform:translateY(-4px);
    box-shadow:0 8px 20px rgba(0,0,0,0.35);
}
.sol-rating {
    font-weight:700;
    font-size:1.4rem;
}
/* =====================================
   PREMIUM SOLUNAR CARD POLISH (PHASE 4)
====================================== */

.sol-card {
    background: #111827;
    padding: 1.4rem;
    border-radius: 1rem;
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.25s ease;
    position: relative;
}

.sol-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 22px rgba(0,0,0,0.35);
}

.sol-card h3 {
    font-size: 1rem;
    opacity: 0.85;
    margin-bottom: .4rem;
}

.sol-card .sol-value {
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: .3rem;
    line-height: 1.3;
}

.moon-icon {
    width: 38px;
    height: 38px;
    margin-top: 0.3rem;
    opacity: 0.9;
}

/* Rating color system (from earlier) */
.sol-rating {
    font-weight: 700;
    font-size: 1.4rem;
}

.sol-rating-5 { color:#22c55e; }
.sol-rating-4 { color:#65a30d; }
.sol-rating-3 { color:#eab308; }
.sol-rating-2 { color:#f97316; }
.sol-rating-1 { color:#ef4444; }
.sol-rating-0 { color:#991b1b; }
/* ===============================
   PREMIUM MAP POLISH (PHASE 6)
================================*/

.sol-map {
    position: relative;
    margin-top: 2rem;
    border-radius: 1rem;
    overflow: hidden;
}

/* Soft gradient over bottom of map to help label readability */
.sol-map::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 35%;
    background: linear-gradient(to top, rgba(15,23,42,0.85), rgba(15,23,42,0));
    pointer-events: none;
}

/* Map image styling */
.sol-map-img {
    width: 100% !important;
    height: 300px !important;
    object-fit: cover;
    border-radius: 1rem;
    display: block;
}

/* Premium location tag styling */
.sol-map-label {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    padding: .4rem .8rem;
    background: rgba(0,0,0,0.6);
    border-radius: .5rem;
    color: #fff;
    font-size: .9rem;
    font-weight: 500;
    z-index: 10;
}
/* ================================
   SOLUNAR TIMELINE BAR (PHASE 7)
================================*/

.sol-timeline {
    margin-top: 1rem;
    background: #0b1120;
    border-radius: 1rem;
    padding: 1rem;
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.timeline-row {
    display: flex;
    align-items: center;
    margin-bottom: .75rem;
}

.timeline-label {
    width: 120px;
    font-size: .9rem;
    opacity: .8;
}

.timeline-bar {
    flex: 1;
    height: 12px;
    background: #1e293b;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

.timeline-segment {
    position: absolute;
    top: 0;
    height: 100%;
    background: #22c55e;
    border-radius: 8px;
    opacity: 0.85;
}
/* ====================================
   LOCATION BUTTON POLISH (PHASE 8)
=====================================*/

.sol-loc-btn {
    background: #1e293b;
    color: #fff;
    padding: .6rem 1.2rem;
    border-radius: 2rem;
    font-size: .9rem;
    border: 1px solid rgba(255,255,255,0.08);
    cursor: pointer;
    transition: all 0.2s ease;
    margin-right: .5rem;
    margin-bottom: .5rem;
}

.sol-loc-btn:hover {
    background: #334155;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.35);
}

.sol-loc-btn.active {
    background: #22c55e !important;
    color: #0f172a !important;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(34,197,94,0.35);
    border-color: #22c55e;
    transform: translateY(-2px);
}
.timeline-segment-label {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: .75rem;
    font-weight: 600;
    color: white;
    text-shadow: 0 1px 3px rgba(0,0,0,0.8);
    pointer-events: none;
    white-space: nowrap;
}
/* =======================================
   PAGE LAYOUT POLISH — PHASE 9
=======================================*/

.page-container > section {
    margin-top: 2.5rem;
}
.hero-section {
    margin-top: 2rem;
    margin-bottom: 3rem;
}
#sol-map {
    margin-top: 2rem !important;
    margin-bottom: 2rem !important;
}
#sol-timeline {
    margin-top: 1.5rem !important;
    margin-bottom: 3rem !important;
}
#sol-cards {
    margin-top: 2.5rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}
#sol-table {
    margin-top: 3rem !important;
    margin-bottom: 3rem !important;
}
@media (max-width: 768px) {
    .page-container {
        padding: 1.25rem;
    }

    #sol-cards {
        grid-template-columns: 1fr !important;
        gap: 1.25rem;
    }

    .timeline-label {
        width: 90px;
        font-size: .8rem;
    }
}
.sol-icon {
    width: 22px;
    height: 22px;
    opacity: 0.9;
    vertical-align: middle;
    margin-right: .4rem;
}
.sol-icon-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.sol-icon {
    width: 34px;
    height: 34px;
    margin-bottom: .4rem;
}

.sol-time {
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.3;
}
/* ===========================
   PHASE 11 — HERO IMPROVEMENT
=========================== */

.about-hero, .hero-section, .solunar-hero {
    margin-top: 3rem;
    margin-bottom: 2.5rem;
    text-align: center;
}

.about-hero h1,
.solunar-hero h1 {
    font-size: 2.4rem;
    font-weight: 700;
    margin-bottom: .5rem;
}

.about-hero p,
.solunar-hero p {
    font-size: 1.1rem;
    opacity: .85;
    max-width: 650px;
    margin: 0 auto;
}
/* Section headings polish */
.page-container h2 {
    font-size: 1.4rem;
    margin-bottom: .9rem;
    margin-top: 2rem;
    font-weight: 600;
}
#sol-locations {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}
#solunar-date {
    display: block;
    margin: 0 auto;
    padding: .6rem 1rem;
    background: #111827;
    border: 1px solid rgba(255,255,255,0.08);
    color: #fff;
    border-radius: .5rem;
    font-size: 1rem;
    margin-top: .3rem;
    margin-bottom: .25rem;
}

.sol-date-hint {
    text-align: center;
    opacity: .65;
    font-size: .85rem;
}
@media (max-width: 768px) {

    .solunar-hero h1 {
        font-size: 2rem;
    }

    #sol-locations {
        gap: .5rem;
        padding: 0 .5rem;
    }

    .sol-loc-btn {
        font-size: .85rem;
        padding: .5rem 1rem;
    }

    #solunar-date {
        width: 90%;
    }
}
/* ===========================================
   PHASE 12 — ACTIVITY RATING CARD UPGRADE
=========================================== */

.sol-activity-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.sol-rating-score {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: .2rem;
}

.sol-rating-stars {
    display: flex;
    gap: .15rem;
    margin-bottom: .5rem;
}

.sol-rating-stars span {
    font-size: 1.2rem;
    color: #22c55e;
}

.sol-rating-label {
    font-size: .85rem;
    opacity: .8;
}

/* Dynamic rating glow by level */
.sol-rating-glow-5 { text-shadow: 0 0 12px rgba(34,197,94,0.8); }
.sol-rating-glow-4 { text-shadow: 0 0 10px rgba(101,163,13,0.7); }
.sol-rating-glow-3 { text-shadow: 0 0 8px rgba(234,179,8,0.6); }
.sol-rating-glow-2 { text-shadow: 0 0 6px rgba(249,115,22,0.5); }
.sol-rating-glow-1 { text-shadow: 0 0 4px rgba(239,68,68,0.4); }
.sol-rating-glow-0 { text-shadow: 0 0 4px rgba(153,27,27,0.4); }

/* MOBILE NAV — HIDDEN BY DEFAULT */
#nav-mobile {
    display: none;
    flex-direction: column;
    background: #0f172a;
    padding: 1rem 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.08);
}

/* WHEN OPENED */
#nav-mobile.open {
    display: flex;
}

/* MOBILE BREAKPOINT */
@media (max-width: 860px) {
    .nav-desktop {
        display: none;
    }

    .nav-toggle {
        display: flex;
        flex-direction: column;
        gap: 5px;
        background: none;
        border: none;
        cursor: pointer;
    }

    .nav-toggle span {
        width: 28px;
        height: 3px;
        background: #fff;
        border-radius: 4px;
    }
}
#nav-mobile {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}

#nav-mobile.open {
    max-height: 500px;
}
/* Hide mobile nav by default */
#nav-mobile {
    display: none;
    flex-direction: column;
    background: #0f172a;
    padding: 1rem 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* Show when open */
#nav-mobile.open {
    display: flex;
}

/* Hamburger button for mobile */
@media (max-width: 860px) {
    .nav-desktop {
        display: none;
    }

    .nav-toggle {
        display: flex;
        flex-direction: column;
        gap: 5px;
        background: none;
        border: none;
        cursor: pointer;
    }

    .nav-toggle span {
        width: 28px;
        height: 3px;
        background: white;
        border-radius: 2px;
    }
}
/* ====================================
   MOBILE NAV + HAMBURGER ANIMATION
==================================== */

/* Hide mobile nav by default */
#nav-mobile {
    display: none;
    flex-direction: column;
    background: #0f172a;
    padding: 1rem 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* Show when open */
#nav-mobile.open {
    display: flex;
}

/* Base hamburger styles */
.nav-toggle {
    display: none; /* shown only on smaller screens */
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.nav-toggle span {
    width: 24px;
    height: 3px;
    background: #ffffff;
    border-radius: 999px;
    transition: transform 0.25s ease, opacity 0.25s ease, background 0.25s ease;
}

/* Desktop vs mobile visibility */
@media (max-width: 860px) {
    .nav-desktop {
        display: none;
    }
    .nav-toggle {
        display: flex;
    }
}

/* X animation */
.nav-toggle.open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}
/* Make mobile nav scrollable on small screens */
#nav-mobile {
    max-height: 100vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 2rem;
}
#nav-mobile {
    margin-top: 60px; /* equal to your header height */
}
body.menu-open {
    overflow: hidden;
}

#nav-overlay {
    display: none;
}

#nav-overlay.active {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(3px);
    z-index: 90;
}
/* ================================
   WEATHER PAGE — PREMIUM STYLING
================================*/

.weather-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    margin-top: 1.5rem;
}

.weather-card {
    background: #111827;
    border-radius: 1rem;
    padding: 1.5rem;
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    text-align: center;
    transition: .25s ease;
}

.weather-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.35);
}

.weather-card h2 {
    margin-bottom: .5rem;
    font-size: 1.1rem;
}

.weather-icon {
    font-size: 2.4rem;
    margin: .5rem 0;
}

.temp-main {
    font-size: 2.6rem;
    font-weight: 700;
    margin-bottom: .5rem;
}

.sub-info {
    opacity: .85;
    margin: .25rem 0;
}

.timestamp {
    opacity: .6;
    font-size: .75rem;
    margin-top: .75rem;
}
.weather-daily-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px,1fr));
    gap: 1rem;
}

.weather-daily-card {
    background: #111827;
    border-radius: 1rem;
    padding: 1rem;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

.weather-daily-card .wday {
    font-weight: 600;
    margin-bottom: .3rem;
}

.weather-daily-card .wicon {
    font-size: 1.8rem;
    margin: .2rem 0;
}

.weather-daily-card .whigh {
    font-size: 1.2rem;
    font-weight: 700;
}

.weather-daily-card .wlow {
    opacity: .6;
    margin-top: .1rem;
}
.weather-hourly {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(90px,1fr));
    gap: .75rem;
}

.weather-hour {
    background: #111827;
    border-radius: .75rem;
    padding: .75rem;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

.wicon-sm {
    font-size: 1.4rem;
    margin: .25rem 0;
}
.wicon, .wicon-sm {
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
}
/* ===============================
   RFF — FINAL HEADER + NAV SYSTEM
================================*/

/* Header wrapper */
.site-header {
    background:#0f172a;
    border-bottom:1px solid rgba(255,255,255,0.08);
    padding:.6rem 1rem;
    position:sticky;
    top:0;
    z-index:1000;
}

/* Main layout */
.nav-container {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:1rem;
}

/* Logo fixed left */
.site-logo {
    flex-shrink:0;
}
.site-logo-img {
    height:46px;
    width:auto;
    display:block;
}

/* Desktop scroll-nav wrapper sits between logo & edge */
.nav-desktop-wrapper {
    flex:1;
    display:flex;
    align-items:center;
    min-width:0;
    margin-left:1.25rem;
}

/* Scroll area */
.nav-desktop-scroll {
    flex: 1;
    overflow-x: auto;
    white-space: nowrap;
    scroll-behavior: smooth;
    min-width: 0;
}

.nav-desktop-scroll::-webkit-scrollbar {
    display:none;
}

/* Desktop nav links */
.nav-desktop {
    display:flex;
    gap:1.75rem;
}
.nav-desktop a {
    color:white;
    opacity:.85;
    text-decoration:none;
    font-size:1rem;
    white-space:nowrap;
    transition:opacity .2s;
}
.nav-desktop a:hover { opacity:1; }

/* Scroll arrows */
.nav-arrow {
    flex-shrink:0;
    background:rgba(255,255,255,0.1);
    border:1px solid rgba(255,255,255,0.15);
    width:32px;
    height:32px;
    border-radius:50%;
    color:white;
    display:flex;
    align-items:center;
    justify-content:center;
    cursor:pointer;
    margin:0 .35rem;
}

/* Mobile nav hidden by default */
#nav-mobile {
    display:none;
    flex-direction:column;
    background:#0f172a;
    padding:1rem 1.5rem;
}
#nav-mobile a {
    padding:.75rem 0;
    border-bottom:1px solid rgba(255,255,255,0.1);
}

/* Hamburger hidden on desktop */
.nav-toggle {
    display:none;
    flex-direction:column;
    gap:5px;
    background:none;
    border:none;
    cursor:pointer;
}
.nav-toggle span {
    width:28px;
    height:3px;
    background:white;
    border-radius:4px;
    transition:all .25s ease;
}

/* Hamburger "X" animation */
.nav-toggle.open span:nth-child(1) {
    transform:translateY(8px) rotate(45deg);
}
.nav-toggle.open span:nth-child(2) {
    opacity:0;
}
.nav-toggle.open span:nth-child(3) {
    transform:translateY(-8px) rotate(-45deg);
}

/* MOBILE ONLY */
@media (max-width:860px) {
    .nav-desktop-wrapper { display:none; }
    .nav-toggle { display:flex; }
    #nav-mobile.open { display:flex; }
}

/* DESKTOP ONLY */
@media (min-width:861px) {
    #nav-toggle { display:none; }
    #nav-mobile { display:none !important; }
}
.weather-icon i,
.wicon i,
.wicon-sm i {
    width: 36px;
    height: 36px;
    stroke-width: 1.8;
    color: white;
}

.weather-icon i {
    width: 48px;
    height: 48px;
}

.wicon-sm i {
    width: 28px;
    height: 28px;
}
.home-wx-top {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.home-wx-temp {
    font-size: 2rem;
    font-weight: 700;
}

.home-wx-icon i {
    width: 32px;
    height: 32px;
    stroke-width: 1.8;
}
/* ===============================
   Homepage Flow Snapshot
================================*/

#home-flows {
    background: #111827;
    padding: 1rem;
    border-radius: 1rem;
    margin-top: 1.2rem;
    border: 1px solid rgba(255,255,255,0.08);
}

.home-flow-card {
    background: #1f2937;
    padding: 1rem;
    border-radius: .75rem;
    margin-bottom: .75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.home-flow-card h3 {
    margin: 0;
    font-size: 1rem;
}

.flow-number {
    font-size: 1.4rem;
    font-weight: 700;
}

.flow-trend {
    font-size: 1.4rem;
    font-weight: 700;
    width: 35px;
    text-align: right;
}

.home-flow-footer {
    text-align: center;
    margin-top: .75rem;
}

.home-flow-link {
    color: #38bdf8;
    font-weight: 600;
    text-decoration: none;
}
.home-flow-link:hover {
    text-decoration: underline;
}
.flow-section-title {
    margin-top: 2rem;
    font-size: 1.4rem;
    opacity: .9;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: .4rem;
    margin-bottom: .8rem;
}

.flow-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.flow-card {
    background: #1f2937;
    padding: 1rem;
    border-radius: .75rem;
    text-decoration: none;
    color: white;
    border: 1px solid rgba(255,255,255,0.06);
    transition: 0.2s;
}

.flow-card:hover {
    transform: translateY(-4px);
    background: #273247;
}

.flow-title {
    font-size: 1rem;
    margin-bottom: .25rem;
}

.flow-cfs {
    font-size: 1.4rem;
    font-weight: 700;
}

.flow-trend {
    font-size: 1.4rem;
    font-weight: 700;
    opacity: .9;
    margin-top: .25rem;
}

.river-summary-card {
    background: #1f2937;
    padding: 1.2rem;
    border-radius: .75rem;
    border: 1px solid rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.river-flow-number {
    font-size: 2rem;
    font-weight: 700;
}

.river-flow-trend {
    font-size: 2rem;
    font-weight: 700;
    opacity: .9;
}

.chart-title {
    font-size: 1.3rem;
    margin-top: 2rem;
    margin-bottom: .5rem;
}

