/* ============================================
   moelfamau.com — Main Stylesheet
   ============================================ */

:root {
  color-scheme: light;
  --green-dark:   #1a3d22;
  --green-mid:    #2e6b3e;
  --green-light:  #c8e6c9;
  --heather:      #8b5e9e;
  --amber:        #d97706;
  --stone:        #f4f1eb;
  --stone-mid:    #ede8de;
  --stone-dark:   #d9d2c0;
  --text:         #2a3428;
  --text-muted:   #5a6e58;
  --white:        #ffffff;
  --shadow-sm:    0 1px 4px rgba(0,0,0,0.09);
  --shadow-md:    0 4px 16px rgba(0,0,0,0.13);
  --shadow-lg:    0 8px 32px rgba(0,0,0,0.18);
  --radius:       8px;
  --radius-lg:    12px;
  --nav-h:        64px;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; background: var(--stone); overflow-x: hidden; }
body { font-family: Georgia, 'Times New Roman', serif; background: var(--stone); color: var(--text); line-height: 1.78; max-width: 1440px; margin: 0 auto; overflow-x: hidden; overflow-wrap: break-word; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-mid); text-decoration: none; }
a:hover { text-decoration: underline; }

h1 { font-size: clamp(1.9rem, 5vw, 3.2rem); line-height: 1.15; }
h2 { font-size: clamp(1.4rem, 3vw, 2.1rem); color: var(--green-dark); line-height: 1.25; margin-bottom: 0.75rem; }
h3 { font-size: 1.2rem; color: var(--green-mid); margin-bottom: 0.5rem; }
h4 { font-size: 1rem; color: var(--green-dark); margin-bottom: 0.4rem; }
p  { margin-bottom: 1rem; }
ul { padding-left: 1.5rem; margin-bottom: 1rem; }
li { margin-bottom: 0.35rem; }

/* ── Navigation ─────────────────────────── */
nav {
  position: sticky; top: 0; z-index: 1000;
  background: var(--green-dark);
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
  height: var(--nav-h);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 1.5rem;
  height: 100%; display: flex; align-items: center; justify-content: space-between;
}
.nav-brand {
  display: flex; align-items: center; gap: 0.5rem;
  color: #fff; font-family: Georgia, serif; font-size: 1.4rem; font-weight: bold;
  text-decoration: none;
}
.nav-brand .accent { color: var(--green-light); font-style: italic; }
.nav-links { display: flex; list-style: none; gap: 0.15rem; }
.nav-links a {
  display: block; padding: 0.45rem 1rem;
  color: rgba(255,255,255,0.82); border-radius: 4px;
  font-family: system-ui, sans-serif; font-size: 0.88rem; letter-spacing: 0.3px;
  transition: background 0.15s, color 0.15s;
}
.nav-links a:hover, .nav-links a.active {
  background: rgba(255,255,255,0.14); color: #fff; text-decoration: none;
}
.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: #fff; border-radius: 2px; transition: 0.25s; }

/* ── Hero ────────────────────────────────── */
.hero {
  position: relative; overflow: hidden; height: 540px;
  background: var(--green-dark) center/cover no-repeat;
  display: flex; align-items: center; justify-content: center; text-align: center;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(0,0,0,0.10) 0%, rgba(0,0,0,0.55) 100%);
}
.hero-content { position: relative; z-index: 1; color: #fff; padding: 1.5rem; max-width: 820px; }
.hero-eyebrow {
  font-family: system-ui, sans-serif; text-transform: uppercase;
  letter-spacing: 3px; font-size: 0.74rem; opacity: 0.78; margin-bottom: 0.8rem;
}
.hero-content h1 { text-shadow: 0 2px 16px rgba(0,0,0,0.75), 0 1px 4px rgba(0,0,0,0.5); margin-bottom: 0.8rem; }
.hero-content > p {
  font-size: 1.08rem; font-weight: bold; opacity: 0.96; max-width: 620px; margin: 0 auto 1.75rem;
  text-shadow: 0 1px 8px rgba(0,0,0,0.7), 0 1px 3px rgba(0,0,0,0.5);
}
.hero-badge {
  display: inline-block; background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.28); border-radius: 40px;
  padding: 0.38rem 1.25rem; font-family: system-ui, sans-serif; font-size: 0.85rem;
}
.page-hero { height: clamp(260px, 28vw, 440px); }
.page-hero .hero-overlay { background: linear-gradient(160deg, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.52) 100%); }
.page-hero .hero-content h1 { font-size: clamp(1.6rem, 4vw, 2.6rem); }

/* ── Layout ──────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 3rem 0; }
.section + .section { border-top: 1px solid var(--stone-dark); }
.section-header { margin-bottom: 2rem; }
.section-header > p { color: var(--text-muted); max-width: 700px; font-size: 1.02rem; margin-bottom: 0; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: start; }
.two-col > *, .three-col > * { min-width: 0; }
.three-col { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }

/* ── Stats bar ───────────────────────────── */
.stats-bar { background: var(--green-dark); padding: 1.4rem 0; }
.stats-inner {
  max-width: 1000px; margin: 0 auto; padding: 0 1.5rem;
  display: flex; justify-content: space-around; flex-wrap: wrap; gap: 1rem;
}
.stat-item { text-align: center; }
.stat-value { font-size: 1.8rem; font-weight: bold; color: var(--green-light); line-height: 1; }
.stat-label { font-family: system-ui, sans-serif; font-size: 0.72rem; color: rgba(255,255,255,0.65); text-transform: uppercase; letter-spacing: 1px; }

/* ── Weather Widget ──────────────────────── */
.weather-widget {
  background: linear-gradient(135deg, #1a3d22 0%, #1e5c30 100%);
  border-radius: var(--radius-lg); color: #fff; padding: 1.5rem 1.75rem;
  box-shadow: var(--shadow-md); min-height: 180px;
}
.weather-title { font-family: system-ui, sans-serif; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 2px; opacity: 0.72; margin-bottom: 0.25rem; }
.weather-location { font-size: 1rem; font-weight: bold; margin-bottom: 1rem; }
.weather-main { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.weather-icon { font-size: 2.8rem; line-height: 1; }
.weather-temp { font-size: 2.6rem; font-weight: bold; line-height: 1; }
.weather-temp sup { font-size: 1.2rem; font-weight: normal; vertical-align: top; margin-top: 0.3rem; }
.weather-desc { font-size: 0.95rem; opacity: 0.85; margin-top: 0.2rem; }
.weather-feels { font-size: 0.76rem; opacity: 0.65; font-family: system-ui, sans-serif; }
.weather-details { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }
.wd-item { background: rgba(255,255,255,0.12); border-radius: 6px; padding: 0.4rem 0.65rem; }
.wd-label { font-family: system-ui, sans-serif; font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.5px; opacity: 0.68; }
.wd-value { font-family: system-ui, sans-serif; font-size: 0.88rem; font-weight: bold; }
.weather-note { font-family: system-ui, sans-serif; font-size: 0.67rem; opacity: 0.5; margin-top: 0.8rem; }
.weather-loading, .weather-error { font-family: system-ui, sans-serif; font-size: 0.9rem; opacity: 0.75; padding: 1rem 0; }

/* ── Cards ───────────────────────────────── */
.card {
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); overflow: hidden;
  transition: transform 0.18s, box-shadow 0.18s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.card-photo { height: 210px; background: var(--green-mid) center/cover no-repeat; }
.card-body { padding: 1.3rem; }
.card-body p { font-size: 0.92rem; color: var(--text-muted); margin-bottom: 1rem; }

/* ── Buttons ─────────────────────────────── */
.btn {
  display: inline-block; padding: 0.5rem 1.25rem;
  background: var(--green-mid); color: #fff; border-radius: 4px;
  font-family: system-ui, sans-serif; font-size: 0.88rem;
  transition: background 0.15s; text-decoration: none;
}
.btn:hover { background: var(--green-dark); text-decoration: none; color: #fff; }
.btn-amber { background: var(--amber); }
.btn-amber:hover { background: #b45309; }
.btn-locate {
  display: inline-block; padding: 0.4rem 0.9rem;
  background: transparent; color: var(--green-mid);
  border: 1.5px solid var(--green-mid); border-radius: 4px;
  font-family: system-ui, sans-serif; font-size: 0.82rem; font-weight: 600;
  cursor: pointer; transition: background 0.15s, color 0.15s;
  margin-top: 0.5rem;
}
.btn-locate:hover { background: var(--green-mid); color: #fff; }

/* ── Info panel ──────────────────────────── */
.info-panel {
  background: var(--green-dark); color: rgba(255,255,255,0.88);
  border-radius: var(--radius); padding: 1.5rem 1.75rem;
}
.info-panel h3 { color: var(--green-light); font-size: 1.05rem; margin-bottom: 0.6rem; }
.info-panel p { color: rgba(255,255,255,0.78); margin-bottom: 0.5rem; font-size: 0.92rem; }
.info-panel p:last-child { margin-bottom: 0; }
.info-panel a { color: var(--green-light); }

/* ── Seasonal strip ──────────────────────── */
.seasonal-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.season-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; }
.season-photo { height: 140px; background: var(--green-mid) center/cover no-repeat; }
.season-body { padding: 0.9rem 1rem; }
.season-body h4 { color: var(--green-dark); }
.season-body p { font-size: 0.83rem; color: var(--text-muted); margin: 0; }

/* ── Gallery ─────────────────────────────── */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 0.9rem; margin-top: 1.5rem; }
.gallery-item {
  border-radius: var(--radius); aspect-ratio: 4/3;
  background: var(--stone-mid) center/cover no-repeat;
  box-shadow: var(--shadow-sm); transition: transform 0.2s, box-shadow 0.2s;
}
.gallery-item:hover { transform: scale(1.03); box-shadow: var(--shadow-md); }
.gallery-item[data-src] { cursor: zoom-in; }

/* ── Lightbox ────────────────────────────── */
.lb-overlay {
  display: none; position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,0.92);
  align-items: center; justify-content: center; cursor: zoom-out;
}
.lb-overlay.open { display: flex; }
.lb-img {
  max-width: 92vw; max-height: 88vh; object-fit: contain;
  border-radius: 4px; box-shadow: 0 8px 40px rgba(0,0,0,0.6); cursor: default;
}
.lb-close {
  position: absolute; top: 1.25rem; right: 1.5rem;
  background: none; border: none; color: #fff;
  font-size: 2.5rem; line-height: 1; cursor: pointer;
  opacity: 0.75; transition: opacity 0.15s; padding: 0.25rem;
}
.lb-close:hover { opacity: 1; }

/* ── Route cards (walks) ─────────────────── */
.route-card { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); overflow: hidden; margin-bottom: 2rem; }
.route-header {
  padding: 1.3rem 1.5rem; display: flex; align-items: center; gap: 1rem;
  border-bottom: 3px solid var(--green-mid);
}
.route-badge {
  flex-shrink: 0; width: 58px; height: 58px; border-radius: 50%;
  background: var(--green-mid); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: system-ui, sans-serif; font-size: 0.88rem; font-weight: bold; text-align: center; line-height: 1.2;
}
.route-body { padding: 1.4rem 1.5rem; display: grid; grid-template-columns: 3fr 2fr; gap: 1.5rem; }
.route-stats { display: flex; flex-wrap: wrap; gap: 0.55rem; margin: 0.8rem 0 1.1rem; }
.route-stat {
  display: inline-flex; align-items: center; gap: 0.3rem;
  background: var(--stone); padding: 0.28rem 0.75rem; border-radius: 20px;
  font-family: system-ui, sans-serif; font-size: 0.82rem; color: var(--text-muted);
}
.route-img { width: 100%; height: 200px; object-fit: cover; border-radius: var(--radius); }

/* ── Map ─────────────────────────────────── */
#map, #eatMap { height: 500px; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
#eatMap { height: 600px; }
#map:fullscreen, #eatMap:fullscreen,
#map:-webkit-full-screen, #eatMap:-webkit-full-screen { width: 100% !important; height: 100% !important; border-radius: 0; }
.leaflet-control-fullscreen a { display: flex !important; align-items: center; justify-content: center; }
.map-note { font-family: system-ui, sans-serif; font-size: 0.78rem; color: var(--text-muted); margin-top: 0.5rem; }
.map-legend { display: flex; gap: 1.5rem; flex-wrap: wrap; margin: 0.75rem 0 2rem; font-family: system-ui, sans-serif; font-size: 0.82rem; color: var(--text-muted); align-items: center; }
.map-legend span[data-route] { cursor: pointer; border-radius: 4px; padding: 0.15rem 0.4rem; margin: -0.15rem -0.4rem; transition: opacity 0.2s, background 0.15s; }
.map-legend span[data-route]:hover { background: rgba(0,0,0,0.07); }
.map-legend span[data-route].legend-active { background: rgba(0,0,0,0.1); font-weight: 600; color: var(--text); }

/* ── Wildlife page ───────────────────────── */
.species-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.25rem; }
.species-card {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-sm);
  overflow: hidden; display: block;
}
.species-icon { display: block; width: 100%; background: #eef2ee; }
.species-icon img { display: block; width: 100% !important; height: 240px !important; border-radius: 0; object-fit: contain; }
.species-card > div:last-child { padding: 1.25rem; }
.species-name { font-size: 1.02rem; color: var(--green-dark); margin-bottom: 0.1rem; }
.species-latin { font-size: 0.78rem; color: var(--text-muted); font-style: italic; display: block; margin-bottom: 0.35rem; }
.species-card p { font-size: 0.88rem; color: var(--text-muted); margin: 0; }
.conservation-badge {
  display: inline-block; font-family: system-ui, sans-serif; font-size: 0.67rem;
  font-weight: bold; text-transform: uppercase; letter-spacing: 0.5px;
  padding: 0.16rem 0.5rem; border-radius: 3px; margin-bottom: 0.35rem;
}
.badge-red { background: #fee2e2; color: #b91c1c; }
.badge-amber { background: #fef3c7; color: #92400e; }
.badge-green { background: #dcfce7; color: #15803d; }
.flora-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 1rem; }
.flora-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; }
.flora-card-img { background: #eef2ee; }
.flora-card-img img { width: 100%; height: 180px; object-fit: contain; display: block; }
.flora-card-body { padding: 1.1rem; }
.flora-card h4 { color: var(--green-dark); }
.flora-card .latin { font-style: italic; font-size: 0.78rem; color: var(--text-muted); display: block; margin-bottom: 0.4rem; }
.flora-card p { font-size: 0.85rem; color: var(--text-muted); margin: 0; }

/* ── Pub / Eat page ──────────────────────── */
.pub-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 1.75rem; }
.pub-card {
  background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
  overflow: hidden; transition: transform 0.18s, box-shadow 0.18s;
}
.pub-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.pub-card.featured { border: 2px solid var(--amber); }
.pub-photo { height: 220px; background: center/cover no-repeat; }
.pub-body { padding: 1.5rem; }
.pub-name { font-size: 1.25rem; color: var(--green-dark); margin-bottom: 0.2rem; }
.pub-location { font-family: system-ui, sans-serif; font-size: 0.82rem; color: var(--text-muted); margin-bottom: 0.75rem; display: flex; align-items: center; gap: 0.3rem; }
.pub-description { font-size: 0.93rem; color: var(--text-muted); margin-bottom: 1rem; }
.pub-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1rem; }
.pub-tag {
  background: var(--stone); color: var(--text-muted); border-radius: 20px;
  padding: 0.2rem 0.65rem; font-family: system-ui, sans-serif; font-size: 0.76rem;
}
.featured-banner {
  background: var(--amber); color: #fff;
  font-family: system-ui, sans-serif; font-size: 0.72rem; font-weight: bold;
  text-transform: uppercase; letter-spacing: 1px;
  padding: 0.3rem 1rem; text-align: center;
}
.pub-info { font-family: system-ui, sans-serif; font-size: 0.82rem; color: var(--text-muted); margin-top: 0.5rem; }
.pub-info span { display: block; margin-bottom: 0.2rem; }

/* ── About page ──────────────────────────── */
.about-content { max-width: 760px; }
.contact-box {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-sm);
  padding: 1.75rem 2rem; margin-top: 2rem; border-left: 4px solid var(--green-mid);
}

/* ── Ad slots ────────────────────────────── */
.ad-slot {
  text-align: center; color: #9ca3af; font-family: system-ui, sans-serif; font-size: 0.78rem;
  padding: 0.75rem; background: #f9fafb; border: 1px dashed #d1d5db; border-radius: 4px; margin: 1.5rem 0;
}
.ad-leaderboard { min-height: 90px; line-height: 88px; }
.ad-rectangle { width: 300px; min-height: 250px; display: flex; align-items: center; justify-content: center; margin: 0 auto; }

/* ── Traffic widget ──────────────────────── */
.traffic-widget {
  background: #1f2e24;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-top: 1rem;
}
.traffic-widget-title {
  background: var(--amber);
  color: #fff;
  padding: 0.55rem 1rem;
  font-family: system-ui, sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.traffic-widget-title a { color: rgba(255,255,255,0.72); font-weight: normal; font-size: 0.7rem; }
.traffic-widget-title a:hover { color: #fff; text-decoration: none; }
.traffic-scroll { max-height: 230px; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.traffic-item {
  display: block;
  padding: 0.65rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.15);
  text-decoration: none;
  transition: background 0.15s;
}
.traffic-item:last-child { border-bottom: none; }
.traffic-item:hover { background: rgba(255,255,255,0.05); text-decoration: none; }
.traffic-stamp {
  display: block;
  font-family: system-ui, sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--amber);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-bottom: 0.18rem;
}
.traffic-text {
  display: block;
  font-family: system-ui, sans-serif;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.82);
  line-height: 1.5;
}
.traffic-note {
  font-family: system-ui, sans-serif;
  font-size: 0.67rem;
  color: rgba(255,255,255,0.32);
  padding: 0.45rem 1rem;
  border-top: 1px solid rgba(255,255,255,0.07);
  text-align: right;
}
.traffic-empty, .traffic-loading {
  padding: 1.25rem 1rem;
  text-align: center;
  font-family: system-ui, sans-serif;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
}
.traffic-empty a { color: var(--amber); }

/* ── Jump pills (News page) ──────────────── */
.jump-pills { display: flex; gap: 0.75rem; margin-bottom: 2.5rem; flex-wrap: wrap; }
.jump-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 1.2rem;
  border-radius: 2rem;
  font-family: system-ui, sans-serif;
  font-size: 0.84rem;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.15s;
}
.jump-pill:hover { opacity: 0.82; text-decoration: none; }
.jump-pill-news    { background: var(--green-dark); color: #fff; }
.jump-pill-traffic { background: var(--amber);      color: #fff; }
#news, #traffic { scroll-margin-top: calc(var(--nav-h) + 0.5rem); }

/* ── Footer ──────────────────────────────── */
footer { background: var(--green-dark); color: rgba(255,255,255,0.68); font-family: system-ui, sans-serif; font-size: 0.85rem; }
.footer-inner { max-width: 1200px; margin: 0 auto; padding: 2.5rem 1.5rem 2rem; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; }
.footer-col h4 { color: #fff; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 0.9rem; }
.footer-col p { font-size: 0.85rem; line-height: 1.6; margin-bottom: 0; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 0.4rem; }
.footer-col a { color: rgba(255,255,255,0.68); transition: color 0.15s; }
.footer-col a:hover { color: var(--green-light); text-decoration: none; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding: 1.25rem 1.5rem; text-align: center; }

/* ── Responsive ──────────────────────────── */
@media (max-width: 900px) {
  .three-col { grid-template-columns: repeat(2, 1fr); }
  .seasonal-strip { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .route-body { grid-template-columns: 1fr; }
  .pub-grid { grid-template-columns: 1fr; }
}
@media (max-width: 660px) {
  .hero { height: 400px; }
  .page-hero { height: auto; min-height: 220px; padding: 3rem 0 2rem; }
  .two-col { grid-template-columns: 1fr; }
  .three-col { grid-template-columns: 1fr; }
  .seasonal-strip { grid-template-columns: repeat(2, 1fr); }
  .weather-details { grid-template-columns: repeat(2, 1fr); }
  .nav-links {
    display: none; flex-direction: column; position: absolute;
    top: var(--nav-h); left: 0; right: 0;
    background: var(--green-dark); padding: 0.5rem;
    box-shadow: 0 6px 16px rgba(0,0,0,0.25);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 0.7rem 1.2rem; }
  .nav-toggle { display: flex; }
  .footer-inner { grid-template-columns: 1fr; }
  .traffic-scroll { max-height: none; overflow-y: visible; }
}

/* ── Nav right & theme toggle ─────────────────── */
.nav-right { display: flex; align-items: center; gap: 0.4rem; }
.theme-toggle {
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.10); border: 1px solid rgba(255,255,255,0.18);
  border-radius: 6px; width: 34px; height: 34px;
  cursor: pointer; color: rgba(255,255,255,0.85); flex-shrink: 0;
  transition: background 0.15s;
  touch-action: manipulation;
}
.theme-toggle:hover { background: rgba(255,255,255,0.22); color: #fff; }
.theme-toggle svg { width: 16px; height: 16px; pointer-events: none; }
.icon-sun { display: none; }
.icon-moon { display: block; }
[data-theme="dark"] .icon-sun { display: block; }
[data-theme="dark"] .icon-moon { display: none; }

/* ── Dark mode ───────────────────────────────── */
[data-theme="dark"] {
  color-scheme: dark;
  --stone:      #131c12;
  --stone-mid:  #192318;
  --stone-dark: #22301f;
  --text:       #dde8db;
  --text-muted: #8aaa87;
  --shadow-sm:  0 1px 4px rgba(0,0,0,0.4);
  --shadow-md:  0 4px 16px rgba(0,0,0,0.55);
  --shadow-lg:  0 8px 32px rgba(0,0,0,0.7);
}
[data-theme="dark"] a { color: var(--green-light); }
[data-theme="dark"] a:hover { color: #fff; }
[data-theme="dark"] .btn,
[data-theme="dark"] .btn:hover { color: #fff; }
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] h4 { color: var(--green-light); }
[data-theme="dark"] .footer-col h4 { color: #fff; }
[data-theme="dark"] .footer-col a { color: rgba(255,255,255,0.68); }
[data-theme="dark"] .species-name,
[data-theme="dark"] .pub-name,
[data-theme="dark"] .news-title { color: var(--green-light); }
[data-theme="dark"] .card,
[data-theme="dark"] .season-card,
[data-theme="dark"] .route-card,
[data-theme="dark"] .species-card,
[data-theme="dark"] .flora-card,
[data-theme="dark"] .pub-card,
[data-theme="dark"] .contact-box { background: #1a2518; }
[data-theme="dark"] .species-icon,
[data-theme="dark"] .flora-card-img { background: #131c12; }
[data-theme="dark"] .route-stat { background: #131c12; }
[data-theme="dark"] .pub-tag { background: #131c12; }
[data-theme="dark"] .ad-slot { background: #1a2518; border-color: #22301f; color: #5a6e58; }
[data-theme="dark"] .news-card { background: #1a2518; }
[data-theme="dark"] .news-empty { background: #131c12; }
