/* Visit Pembrokeshire — Styles */
/* Google Fonts loaded via <link> in index.html (Playfair Display + Inter) */
/* Pembrokeshire coast-inspired palette */

:root {
  --sea: #1a6b8a;
  --sea-dark: #0d4d66;
  --sea-light: #3a9bc0;
  --sand: #f5e6c8;
  --sand-dark: #d4c4a0;
  --cliff: #6b5b3e;
  --grass: #4a7c59;
  --sky: #87ceeb;
  --white: #ffffff;
  --off-white: #f4f7fa;
  --text: #1a1a2e;
  --text-muted: #5a6478;
  --border: #dce3ec;
  --card-bg: #ffffff;
  --shadow: 0 2px 12px rgba(13, 77, 102, 0.1);
  --shadow-hover: 0 8px 28px rgba(13, 77, 102, 0.18);
  --shadow-lg: 0 16px 48px rgba(0,0,0,0.15);
  --radius: 16px;
  --radius-sm: 8px;
  --font: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --transition: 0.2s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--off-white);
  line-height: 1.6;
  min-height: 100vh;
}

a { color: var(--sea); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* ─── Header ──────────────────────────────────────────────────────────────── */
.site-header {
  background: linear-gradient(135deg, var(--sea-dark) 0%, var(--sea) 60%, var(--sea-light) 100%);
  color: var(--white);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 16px rgba(0,0,0,0.25);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 24px 12px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.site-logo {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}

.site-logo h1 {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -0.3px;
  line-height: 1;
  color: #fff;
}

.site-logo .tagline {
  font-size: 0.76rem;
  opacity: 0.8;
  font-weight: 400;
  letter-spacing: 0.5px;
  margin-top: 3px;
  text-transform: uppercase;
}

.header-weather-pill {
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 24px;
  padding: 6px 14px;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: background var(--transition);
}
.header-weather-pill:hover { background: rgba(255,255,255,0.25); }

.header-nav {
  margin-left: auto;
  display: flex;
  gap: 4px;
}

.tab-btn {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--white);
  padding: 7px 16px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: var(--font);
  transition: all var(--transition);
}
.tab-btn:hover, .tab-btn.active {
  background: var(--white);
  color: var(--sea-dark);
  border-color: var(--white);
}

/* ─── Hero ────────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 28px;
  min-height: 400px;
  display: flex;
  align-items: flex-end;
  background: linear-gradient(135deg, #07212d 0%, var(--sea-dark) 50%, var(--sea) 100%);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('https://images.unsplash.com/photo-1506905925346-21bda4d32df4?w=1400&h=700&fit=crop&q=80&auto=format');
  background-size: cover;
  background-position: center 35%;
  z-index: 0;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(7, 33, 45, 0.9) 0%,
    rgba(7, 33, 45, 0.55) 45%,
    rgba(7, 33, 45, 0.2) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 52px 44px 44px;
  color: #fff;
  max-width: 720px;
  width: 100%;
}

.hero-eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: rgba(255,255,255,0.75);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero-eyebrow::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 2px;
  background: rgba(255,255,255,0.6);
  border-radius: 1px;
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5.5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.05;
  margin-bottom: 18px;
  color: #fff;
  text-shadow: 0 2px 24px rgba(0,0,0,0.35);
}

.hero-headline em {
  font-style: italic;
  color: #93dcf8;
}

.hero-sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 36px;
  max-width: 520px;
  line-height: 1.65;
}

.hero-stats {
  display: flex;
  gap: 0;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255,255,255,0.2);
  padding-top: 24px;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  padding-right: 32px;
  margin-right: 32px;
  border-right: 1px solid rgba(255,255,255,0.2);
}
.hero-stat:last-child { border-right: none; padding-right: 0; margin-right: 0; }

.hero-stat-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}

.hero-stat-label {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.65);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-top: 4px;
}

/* ─── Category Pills ──────────────────────────────────────────────────────── */
.category-pills {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 4px 2px 16px;
  margin-bottom: 8px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-snap-type: x mandatory;
}
.category-pills::-webkit-scrollbar { display: none; }

.category-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 14px 18px 12px;
  background: var(--card-bg);
  border: 2px solid var(--border);
  border-radius: 14px;
  cursor: pointer;
  white-space: nowrap;
  scroll-snap-align: start;
  transition: all var(--transition);
  flex-shrink: 0;
  min-width: 78px;
  box-shadow: var(--shadow);
  font-family: var(--font);
}

.pill-icon {
  font-size: 1.5rem;
  line-height: 1;
}

.pill-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  text-align: center;
}

.category-pill:hover {
  border-color: var(--sea-light);
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}
.category-pill:hover .pill-label { color: var(--sea); }

.category-pill.active {
  background: var(--sea-dark);
  border-color: var(--sea-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(13, 77, 102, 0.3);
}
.category-pill.active .pill-label { color: rgba(255,255,255,0.9); }

/* ─── Main Layout ─────────────────────────────────────────────────────────── */
.main-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px 24px 80px;
}

.tab-pane { display: none; }
.tab-pane.active { display: block; }

/* ─── Filter Bar ──────────────────────────────────────────────────────────── */
.filter-bar {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 28px;
  box-shadow: var(--shadow);
}

.filter-bar-top {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.filter-search {
  flex: 1;
  min-width: 200px;
  padding: 10px 16px;
  border: 1.5px solid var(--border);
  border-radius: 28px;
  font-size: 0.9rem;
  font-family: var(--font);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  background: var(--white);
}
.filter-search:focus {
  border-color: var(--sea);
  box-shadow: 0 0 0 3px rgba(26, 107, 138, 0.1);
}

.filter-select {
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: 0.88rem;
  font-family: var(--font);
  background: var(--white);
  cursor: pointer;
  outline: none;
  transition: border-color var(--transition);
}
.filter-select:focus { border-color: var(--sea); }

.filter-count {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
  white-space: nowrap;
}

.filter-toggles {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
}

.filter-toggle {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border: 1.5px solid var(--border);
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--white);
  transition: all var(--transition);
  user-select: none;
  font-family: var(--font);
}

.filter-toggle input { display: none; }

.filter-toggle:has(input:checked),
.filter-toggle.active {
  background: var(--sea);
  color: var(--white);
  border-color: var(--sea);
}

.filter-toggle:hover { border-color: var(--sea); color: var(--sea); }
.filter-toggle:has(input:checked):hover { background: var(--sea-dark); }

.btn-clear {
  background: none;
  border: none;
  color: var(--sea);
  cursor: pointer;
  font-size: 0.82rem;
  font-family: var(--font);
  text-decoration: underline;
  padding: 4px 8px;
}

/* ─── Cards Grid ──────────────────────────────────────────────────────────── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 20px;
  margin-bottom: 8px;
}

.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

/* ─── Card ────────────────────────────────────────────────────────────────── */
.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--transition), transform var(--transition);
  overflow: hidden;
}

.card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}

.card-event { border-top: 3px solid var(--grass); }
.card-food { border-top: none; }
.card-fsa-only .card-desc { font-style: italic; color: var(--text-muted); }

/* ─── Card Image ──────────────────────────────────────────────────────────── */
.card-img {
  height: 185px;
  position: relative;
  overflow: hidden;
  background-color: var(--sea-dark);
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
  transition: transform 0.4s ease;
}

.card:hover .card-img {
  transform: scale(1.03);
}

.card-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.45) 0%,
    rgba(0,0,0,0.15) 50%,
    rgba(0,0,0,0) 100%
  );
  pointer-events: none;
  z-index: 1;
}

.card-img-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(255,255,255,0.93);
  color: var(--sea-dark);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 11px;
  border-radius: 20px;
  z-index: 2;
  backdrop-filter: blur(6px);
  letter-spacing: 0.2px;
  font-family: var(--font);
  box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}

/* Type-specific gradient fallbacks (shown when image fails or for FSA-only) */
.card-img-beach    { background-color: #0077b6; background-image: linear-gradient(135deg, #0077b6, #00b4d8, #48cae4) !important; }
.card-img-historic { background-color: #6b4226; background-image: linear-gradient(135deg, #5c3317, #8b5e3c, #c8956c) !important; }
.card-img-food     { background-color: #c0392b; background-image: linear-gradient(135deg, #922b21, #e74c3c, #f0b27a) !important; }
.card-img-drink    { background-color: #2c3e50; background-image: linear-gradient(135deg, #1a1a2e, #4a2c6b, #8e44ad) !important; }
.card-img-wildlife { background-color: #27ae60; background-image: linear-gradient(135deg, #1e6b40, #27ae60, #a9dfbf) !important; }
.card-img-outdoors { background-color: #1e8449; background-image: linear-gradient(135deg, #145a32, #1e8449, #76d7a8) !important; }
.card-img-culture  { background-color: #7d3c98; background-image: linear-gradient(135deg, #6c3483, #9b59b6, #d2b4de) !important; }
.card-img-surf     { background-color: #0d4d66; background-image: linear-gradient(135deg, #07212d, #1a6b8a, #48c9b0) !important; }
.card-img-boat     { background-color: #1a5276; background-image: linear-gradient(135deg, #0d2d45, #2980b9, #7fb3d3) !important; }

/* When background image is set, it overrides the gradient fallback */
.card-img[style*="background-image"] { background-image: unset !important; }
.card-img[style*="url"] { background-color: var(--sea-dark); }

.card-header {
  padding: 16px 18px 10px;
  border-bottom: 1px solid var(--border);
}

.card-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.card-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--sea-dark);
  line-height: 1.3;
  letter-spacing: -0.1px;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.card-area, .card-type {
  display: flex;
  align-items: center;
  gap: 2px;
}

.card-type::before { content: "·"; margin-right: 4px; }

.card-body {
  padding: 14px 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.card-desc {
  font-size: 0.88rem;
  color: var(--text);
  line-height: 1.65;
}

.card-highlights {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 0;
}
.card-highlights li {
  background: var(--sand);
  border-radius: 5px;
  padding: 2px 8px;
  font-size: 0.78rem;
  color: var(--cliff);
  font-weight: 600;
}

.card-hours-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  background: var(--off-white);
  border-left: 3px solid var(--sea-light);
  padding: 6px 10px;
  border-radius: 0 5px 5px 0;
}

.card-admission {
  font-size: 0.82rem;
  color: var(--text-muted);
}
.card-admission strong { color: var(--text); }

.card-warnings {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.card-warnings span {
  font-size: 0.8rem;
  color: #c0392b;
  background: #fdf2f2;
  border-radius: 5px;
  padding: 4px 8px;
  font-weight: 600;
}

.card-address-row {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--off-white);
  border-radius: var(--radius-sm);
  padding: 6px 10px;
}
.card-address {
  font-size: 0.8rem;
  color: var(--text-muted);
  flex: 1;
}
.btn-copy {
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 3px 10px;
  font-size: 0.76rem;
  font-family: var(--font);
  cursor: pointer;
  white-space: nowrap;
  color: var(--sea);
  transition: all var(--transition);
}
.btn-copy:hover { background: var(--sea); color: var(--white); border-color: var(--sea); }
.btn-copy.copied { background: var(--grass); color: var(--white); border-color: var(--grass); }

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.tag {
  padding: 2px 9px;
  border-radius: 12px;
  font-size: 0.72rem;
  font-weight: 600;
  background: var(--off-white);
  color: var(--text-muted);
  border: 1px solid var(--border);
}
.tag-family  { background: #fff3e0; color: #e65100; border-color: #ffcc02; }
.tag-dog     { background: #e8f5e9; color: #2e7d32; border-color: #a5d6a7; }
.tag-access  { background: #e3f2fd; color: #1565c0; border-color: #90caf9; }
.tag-env     { background: #f3e5f5; color: #6a1b9a; border-color: #ce93d8; }
.tag-surf    { background: #e0f7fa; color: #006064; border-color: #80deea; }
.tag-free    { background: #e8f5e9; color: #1b5e20; border-color: #c8e6c9; }
.tag-weather { background: #fce4ec; color: #880e4f; border-color: #f48fb1; }

/* ─── Ratings ─────────────────────────────────────────────────────────────── */
.card-ratings {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  padding: 8px 10px;
  background: var(--off-white);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.rating-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 20px;
  font-size: 0.74rem;
  font-weight: 500;
  border: 1px solid var(--border);
  background: var(--white);
  white-space: nowrap;
  text-decoration: none;
  color: inherit;
}
.rating-item-link:hover { text-decoration: underline; opacity: 0.9; }

.rating-label { color: var(--text-muted); font-size: 0.7rem; }
.rating-value { color: var(--text); font-weight: 700; }
.rating-reviews { font-weight: 400; color: var(--text-muted); font-size: 0.69rem; }

/* FSA Hygiene score colours */
.hygiene-5 { background: #e8f5e9; border-color: #a5d6a7; }
.hygiene-5 .rating-value { color: #2e7d32; }
.hygiene-4 { background: #f1f8e9; border-color: #c5e1a5; }
.hygiene-4 .rating-value { color: #558b2f; }
.hygiene-3 { background: #fff8e1; border-color: #ffe082; }
.hygiene-3 .rating-value { color: #e65100; }
.hygiene-low { background: #ffebee; border-color: #ef9a9a; }
.hygiene-low .rating-value { color: #c62828; }

.rating-note { font-size: 0.67rem; color: var(--text-muted); width: 100%; margin-top: 2px; }

.card-source {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  font-size: 0.74rem;
  margin-top: auto;
  padding-top: 6px;
}
.source-text { color: var(--text-muted); }

.badge {
  padding: 2px 7px;
  border-radius: 10px;
  font-size: 0.7rem;
  font-weight: 700;
}
.badge-official  { background: #e3f2fd; color: #1565c0; border: 1px solid #90caf9; }
.badge-reviewed  { background: #fff8e1; color: #e65100; border: 1px solid #ffcc02; }
.badge-community { background: var(--off-white); color: var(--text-muted); border: 1px solid var(--border); }

.card-footer {
  padding: 12px 18px 16px;
  border-top: 1px solid var(--border);
  background: var(--off-white);
}
.card-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.card-link {
  padding: 6px 14px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  font-family: var(--font);
  color: var(--sea);
  transition: all var(--transition);
  text-decoration: none;
}
.card-link:hover { background: var(--sea); color: var(--white); border-color: var(--sea); text-decoration: none; }
.card-link-book { background: var(--grass); color: var(--white); border-color: var(--grass); }
.card-link-book:hover { background: #3a6347; border-color: #3a6347; }

/* ─── Open Status ─────────────────────────────────────────────────────────── */
.open-status {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
  white-space: nowrap;
  flex-shrink: 0;
}
.open-now   { background: #e8f5e9; color: #1b5e20; }
.closed-now { background: #fce4ec; color: #880e4f; }

.event-timing {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
  white-space: nowrap;
  flex-shrink: 0;
}
.event-now    { background: #e8f5e9; color: #1b5e20; }
.event-soon   { background: #fff3e0; color: #e65100; }
.event-coming { background: #e3f2fd; color: #1565c0; }

/* ─── Section Headers ─────────────────────────────────────────────────────── */
.section-header {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 20px;
}
.section-header h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--sea-dark);
}
.section-count {
  font-size: 0.85rem;
  color: var(--text-muted);
  background: var(--off-white);
  border: 1px solid var(--border);
  padding: 2px 10px;
  border-radius: 12px;
}

.area-group { margin-bottom: 40px; }
.area-heading {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--sea-dark);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--sea-light);
  display: inline-block;
}

.results-count {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.no-results {
  color: var(--text-muted);
  text-align: center;
  padding: 56px 20px;
  font-size: 1rem;
}
.btn-text { background: none; border: none; color: var(--sea); cursor: pointer; text-decoration: underline; font-size: inherit; font-family: var(--font); }

/* ─── Weather Panel ───────────────────────────────────────────────────────── */
.weather-loading, .weather-error, .surf-loading, .surf-error {
  padding: 32px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

#weather-panel {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.weather-header {
  background: linear-gradient(135deg, var(--sea-dark), var(--sea));
  color: var(--white);
  padding: 20px 24px 16px;
}

.weather-current {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 12px;
}

.weather-icon-large { font-size: 3rem; line-height: 1; }

.weather-temp {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1;
}
.weather-desc  { font-size: 1rem; opacity: 0.9; margin-top: 4px; }
.weather-wind,
.weather-humid { font-size: 0.82rem; opacity: 0.8; margin-top: 3px; }

.weather-source-note { font-size: 0.75rem; opacity: 0.7; }
.weather-source-note a { color: rgba(255,255,255,0.85); }

.weather-forecast {
  display: flex;
  overflow-x: auto;
  gap: 1px;
  background: var(--border);
  scroll-snap-type: x mandatory;
}

.forecast-day {
  flex: 0 0 120px;
  background: var(--card-bg);
  padding: 12px 10px;
  text-align: center;
  scroll-snap-align: start;
}

.forecast-date  { font-size: 0.72rem; font-weight: 700; color: var(--sea-dark); margin-bottom: 6px; }
.forecast-icon  { font-size: 1.6rem; margin-bottom: 4px; }
.forecast-label { font-size: 0.72rem; color: var(--text-muted); margin-bottom: 4px; line-height: 1.3; }
.forecast-temps { font-size: 0.85rem; font-weight: 600; margin-bottom: 2px; }
.temp-max { color: var(--sea-dark); }
.temp-min { color: var(--text-muted); margin-left: 4px; }
.forecast-rain  { font-size: 0.72rem; color: var(--text-muted); }

/* ─── Surf Panel ──────────────────────────────────────────────────────────── */
#surf-panel {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.surf-tabs {
  display: flex;
  gap: 1px;
  background: var(--border);
  overflow-x: auto;
}
.surf-tab {
  flex: 1;
  min-width: 120px;
  padding: 10px 16px;
  background: var(--off-white);
  border: none;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: var(--font);
  color: var(--text-muted);
  white-space: nowrap;
  transition: all var(--transition);
}
.surf-tab:hover  { background: var(--sand); color: var(--sea-dark); }
.surf-tab.active { background: var(--sea); color: var(--white); }

.surf-content { padding: 20px 24px; }

.surf-current {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 20px;
}

.surf-rating-badge {
  color: var(--white);
  font-weight: 800;
  font-size: 1rem;
  padding: 8px 18px;
  border-radius: 24px;
  align-self: center;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
  font-family: var(--font);
}

.surf-stats { display: flex; gap: 16px; flex-wrap: wrap; }
.surf-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.surf-stat-label { font-size: 0.68rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }
.surf-stat-val   { font-size: 1.1rem; font-weight: 700; color: var(--sea-dark); }

.surf-notes      { font-size: 0.82rem; color: var(--text-muted); }
.surf-spot-notes { margin-bottom: 4px; }
.surf-best       { font-weight: 600; color: var(--sea); }

.surf-forecast {
  display: flex;
  gap: 1px;
  background: var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  overflow-x: auto;
  margin-bottom: 14px;
}
.surf-forecast-day {
  flex: 0 0 90px;
  background: var(--card-bg);
  padding: 10px 8px;
  text-align: center;
}
.surf-day-date   { font-size: 0.7rem; font-weight: 700; color: var(--sea-dark); margin-bottom: 4px; }
.surf-day-height { font-size: 1rem; font-weight: 700; color: var(--text); margin-bottom: 2px; }
.surf-day-rating { font-size: 0.72rem; font-weight: 600; }

.surf-source-note   { font-size: 0.74rem; color: var(--text-muted); }
.surf-source-note a { color: var(--sea); }

/* ─── Weather & Surf page ─────────────────────────────────────────────────── */
.wx-page-header { margin-bottom: 28px; }
.wx-page-header h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--sea-dark);
  margin-bottom: 4px;
}
.wx-page-header p { font-size: 0.85rem; color: var(--text-muted); }
.wx-grid { display: grid; gap: 24px; }
.wx-section-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--sea-dark);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ─── About Tab ───────────────────────────────────────────────────────────── */
.about-content { max-width: 700px; }
.about-content h2 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--sea-dark);
  margin-bottom: 16px;
}
.about-content p {
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 14px;
}
.about-content h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--sea-dark);
  margin-top: 24px;
  margin-bottom: 10px;
}
.about-content ul {
  padding-left: 20px;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.8;
}
.about-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}
.about-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--sea);
  color: var(--white);
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: background var(--transition);
}
.about-link:hover { background: var(--sea-dark); text-decoration: none; }

/* ─── Footer ──────────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--sea-dark);
  color: rgba(255,255,255,0.7);
  text-align: center;
  padding: 24px 20px;
  font-size: 0.78rem;
  margin-top: 48px;
}
.site-footer a { color: rgba(255,255,255,0.85); }

/* ─── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero-content { padding: 40px 32px 36px; }
  .hero-stats { gap: 20px; }
  .hero-stat { padding-right: 20px; margin-right: 20px; }
}

@media (max-width: 768px) {
  .header-inner { padding: 12px 16px; gap: 12px; }
  .site-logo h1 { font-size: 1.55rem; }
  .header-nav { margin-left: 0; width: 100%; justify-content: flex-start; }
  .tab-btn { padding: 6px 12px; font-size: 0.8rem; }

  .main-content { padding: 16px 16px 60px; }
  .cards-grid { grid-template-columns: 1fr; gap: 16px; }
  .events-grid { grid-template-columns: 1fr; }

  .hero { min-height: 320px; }
  .hero-content { padding: 28px 24px 28px; }
  .hero-headline { font-size: 2rem; }
  .hero-sub { font-size: 0.9rem; margin-bottom: 24px; }
  .hero-stats { gap: 16px; }
  .hero-stat { padding-right: 16px; margin-right: 16px; }
  .hero-stat-num { font-size: 1.5rem; }

  .filter-bar-top { gap: 8px; }
  .filter-search { min-width: 100%; }
  .filter-toggles { gap: 6px; }

  .weather-current  { gap: 12px; }
  .weather-icon-large { font-size: 2.2rem; }
  .weather-temp     { font-size: 1.8rem; }

  .surf-stats { gap: 10px; }
  .header-weather-pill { display: none; }
}

@media (max-width: 480px) {
  .card-title-row { flex-direction: column; gap: 4px; }
  .forecast-day  { flex: 0 0 100px; }
  .hero-stats    { gap: 12px; }
  .hero-stat     { padding-right: 12px; margin-right: 12px; }
  .hero-stat-num { font-size: 1.3rem; }
  .hero-stat-label { font-size: 0.65rem; }
  .category-pill { min-width: 70px; padding: 12px 14px 10px; }
  .pill-icon     { font-size: 1.3rem; }
}

/* ─── Scrollbar ───────────────────────────────────────────────────────────── */
::-webkit-scrollbar         { height: 6px; width: 6px; }
::-webkit-scrollbar-track   { background: var(--off-white); }
::-webkit-scrollbar-thumb   { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--sea-light); }

/* ─── Print ───────────────────────────────────────────────────────────────── */
@media print {
  .site-header, .filter-bar, .tab-btn, .hero, .category-pills { display: none; }
  .tab-pane  { display: block !important; }
  .card      { break-inside: avoid; box-shadow: none; border: 1px solid #ccc; }
  .card-img  { display: none; }
}
