/* ==========================================================================
   POLRUAN REGATTA & CHILDREN'S SPORTS - DESIGN SYSTEM
   Modern, responsive, coastal theme with subtle yellow accents & solid text
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
  /* Color Palette - Cornish Coastal Theme */
  --color-brand-blue: #91c2d5; /* Baked-in GIF background light blue */
  --color-navy-dark: #071e3d;
  --color-navy-primary: #0d2b45;
  --color-navy-light: #183e65;
  --color-blue-accent: #1d4ed8;
  --color-sky-blue: #38bdf8;
  --color-cyan-light: #e0f2fe;
  
  /* Subdued Warm Nautical Yellows */
  --color-yellow-light: #fef9c3;
  --color-yellow-subtle: #f3d37a;
  --color-yellow-primary: #eec662;
  --color-yellow-hover: #e2b74c;
  --color-yellow-dark: #854d0e;
  --color-yellow-border: #e6be57;
  
  --color-bg-light: #f8fafc;
  --color-bg-alt: #f1f5f9;
  --color-bg-card: #ffffff;
  --color-border: #cbd5e1;
  --color-border-light: #e2e8f0;
  
  /* 100% Solid Opaque Typography */
  --color-text-main: #0f172a;      /* Solid dark navy/slate */
  --color-text-body: #1e293b;      /* Solid rich slate */
  --color-text-muted: #334155;     /* Solid readable dark neutral */
  --color-text-light: #ffffff;     /* Solid pure white */
  
  /* Typography */
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 12px rgba(13, 43, 69, 0.1), 0 2px 4px rgba(13, 43, 69, 0.06);
  --shadow-lg: 0 10px 25px rgba(13, 43, 69, 0.14), 0 4px 10px rgba(13, 43, 69, 0.08);
  --shadow-xl: 0 20px 35px rgba(13, 43, 69, 0.2);
  
  /* Radius */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s ease;
  --transition-slow: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  
  /* Layout */
  --container-max: 1200px;
  --header-height: 84px;
}

/* ==========================================================================
   CSS Reset & Base Elements
   ========================================================================== */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--color-text-main);
  background-color: var(--color-bg-light);
  line-height: 1.65;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-blue-accent);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-navy-dark);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-navy-primary);
  line-height: 1.25;
  font-weight: 700;
}

p {
  margin-bottom: 1rem;
  color: var(--color-text-body);
}

p:last-child {
  margin-bottom: 0;
}

ul, ol {
  padding-left: 1.25rem;
  margin-bottom: 1rem;
  color: var(--color-text-body);
}

/* ==========================================================================
   Layout Containers & Utilities
   ========================================================================== */

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.section {
  padding: 4.5rem 0;
}

.section-sm {
  padding: 2.5rem 0;
}

.section-alt {
  background-color: var(--color-bg-alt);
}

.section-dark {
  background-color: var(--color-navy-primary);
  color: #ffffff;
}

.section-dark h1,
.section-dark h2,
.section-dark h3,
.section-dark h4 {
  color: #ffffff;
}

.section-dark p {
  color: #ffffff;
}

.text-center {
  text-align: center;
}

.section-header {
  margin-bottom: 3rem;
}

.section-header.text-center {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

/* Solid Subtle Yellow Section Tag */
.section-tag {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #854d0e;
  background-color: var(--color-yellow-light);
  border: 1px solid var(--color-yellow-subtle);
  padding: 0.35rem 1rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.75rem;
}

.section-dark .section-tag {
  color: #071e3d;
  background-color: var(--color-yellow-subtle);
  border-color: #ffffff;
}

.section-title {
  font-size: 2.25rem;
  margin-bottom: 1rem;
  color: var(--color-navy-primary);
}

@media (min-width: 768px) {
  .section-title {
    font-size: 2.75rem;
  }
}

.section-subtitle {
  font-size: 1.15rem;
  color: #1e293b;
  font-weight: 500;
}

.section-dark .section-subtitle {
  color: #ffffff;
}

/* ==========================================================================
   Header & Navigation (Light Blue #91c2d5 with Subtle Yellow Buttons)
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--color-brand-blue);
  border-bottom: 1px solid rgba(7, 30, 61, 0.18);
  box-shadow: 0 2px 10px rgba(7, 30, 61, 0.1);
  transition: all var(--transition-normal);
}

.site-header.scrolled {
  box-shadow: 0 4px 16px rgba(7, 30, 61, 0.18);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  color: var(--color-navy-dark);
  text-decoration: none;
  font-family: var(--font-heading);
}

.brand-badge {
  width: 58px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  transition: transform var(--transition-normal);
}

.brand-link:hover .brand-badge {
  transform: scale(1.06);
}

.brand-badge img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--color-navy-dark);
  line-height: 1.15;
}

.brand-subtitle {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--color-navy-dark);
  letter-spacing: 0.5px;
}

.nav-menu {
  display: none;
  align-items: center;
  gap: 0.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (min-width: 992px) {
  .nav-menu {
    display: flex;
  }
}

.nav-item {
  position: relative;
}

.nav-link {
  display: inline-block;
  padding: 0.5rem 0.9rem;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-navy-dark);
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
}

.nav-link:hover {
  color: #ffffff;
  background-color: var(--color-navy-primary);
}

.nav-link.active {
  color: #ffffff;
  background-color: var(--color-navy-primary);
  box-shadow: 0 2px 6px rgba(13, 43, 69, 0.25);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Subtle Yellow Donate Button in Header */
.btn-header-donate {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.5rem 1.15rem;
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--color-navy-dark);
  background: var(--color-yellow-primary);
  border: 1px solid var(--color-yellow-border);
  border-radius: var(--radius-full);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  white-space: nowrap;
  flex-shrink: 0;
  line-height: 1;
  transition: all var(--transition-normal);
}

.btn-header-donate:hover {
  color: var(--color-navy-dark);
  background-color: var(--color-yellow-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.facebook-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: var(--color-navy-primary);
  color: #ffffff;
  transition: all var(--transition-fast);
}

.facebook-icon-btn:hover {
  background-color: #1877f2;
  color: #ffffff;
  transform: translateY(-2px);
}

.mobile-nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: space-around;
  width: 40px;
  height: 40px;
  background: rgba(7, 30, 61, 0.12);
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 10px 8px;
  z-index: 1001;
}

@media (min-width: 992px) {
  .mobile-nav-toggle {
    display: none;
  }
}

.mobile-nav-toggle span {
  display: block;
  width: 100%;
  height: 2.5px;
  background-color: var(--color-navy-dark);
  border-radius: 2px;
  transition: all var(--transition-fast);
}

.mobile-nav-toggle.active span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.mobile-nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-nav-toggle.active span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* Mobile Drawer */
.mobile-nav-drawer {
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--color-brand-blue);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform var(--transition-normal);
  z-index: 999;
  border-top: 1px solid rgba(7, 30, 61, 0.15);
  visibility: hidden;
  pointer-events: none;
}

.mobile-nav-drawer.open {
  transform: translateX(0);
  visibility: visible;
  pointer-events: auto;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.25rem;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-navy-dark);
  background-color: #ffffff;
  border-radius: var(--radius-md);
  border-left: 4px solid transparent;
}

.mobile-nav-link.active {
  border-left-color: var(--color-yellow-primary);
  background-color: var(--color-navy-primary);
  color: #ffffff;
}

.mobile-nav-footer {
  margin-top: auto;
  padding-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* ==========================================================================
   Hero Section with Vibrant Aerial Visibility & Solid Text
   ========================================================================== */

.hero {
  position: relative;
  background-color: var(--color-navy-primary);
  color: #ffffff;
  padding: 4.5rem 0 5.5rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.78;
  filter: saturate(1.15) contrast(1.05);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(7, 30, 61, 0.85) 0%, rgba(13, 43, 69, 0.6) 55%, rgba(7, 30, 61, 0.78) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 840px;
}

.hero-badge-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--color-navy-dark);
  border: 1px solid var(--color-yellow-primary);
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-full);
  margin-bottom: 1.75rem;
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
}

.hero-badge-title {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--color-yellow-subtle);
  letter-spacing: 0.5px;
}

.hero-title {
  font-size: 2.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin-bottom: 1.25rem;
  line-height: 1.15;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 3.85rem;
  }
}

.hero-highlight {
  color: var(--color-yellow-subtle);
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.hero-description {
  font-size: 1.2rem;
  line-height: 1.7;
  color: #ffffff;
  font-weight: 500;
  margin-bottom: 2.25rem;
  max-width: 720px;
  text-shadow: 0 1px 6px rgba(0,0,0,0.6);
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.hero-banner-bar {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  background: var(--color-navy-dark);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
}

@media (min-width: 768px) {
  .hero-banner-bar {
    grid-template-columns: repeat(3, 1fr);
  }
}

.hero-banner-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.hero-banner-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background-color: var(--color-yellow-primary);
  color: var(--color-navy-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.hero-banner-info h4 {
  font-size: 0.95rem;
  color: #ffffff;
  margin-bottom: 0.1rem;
}

.hero-banner-info p {
  font-size: 0.85rem;
  color: #ffffff;
  margin: 0;
  font-weight: 500;
}

/* ==========================================================================
   Aerial Harbour Panoramic Showcase
   ========================================================================== */

.aerial-showcase {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  border: 4px solid #ffffff;
  background-color: var(--color-navy-dark);
  margin-bottom: 3.5rem;
}

@media (max-width: 767px) {
  .aerial-showcase {
    display: flex;
    flex-direction: column;
  }
  .aerial-showcase-img {
    width: 100%;
    height: 230px;
    min-height: 230px;
    object-fit: cover;
    display: block;
  }
  .aerial-showcase-overlay {
    position: static;
    background: var(--color-navy-dark);
    padding: 1.5rem 1.25rem 1.75rem;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
  }
  .aerial-showcase-info h3 {
    font-size: 1.35rem;
  }
  .aerial-showcase-info p {
    font-size: 0.95rem;
    line-height: 1.55;
    color: #cbd5e1;
  }
}

@media (min-width: 768px) {
  .aerial-showcase {
    position: relative;
    display: block;
  }
  .aerial-showcase-img {
    width: 100%;
    height: auto;
    min-height: 420px;
    max-height: 540px;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .aerial-showcase:hover .aerial-showcase-img {
    transform: scale(1.03);
  }
  .aerial-showcase-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(0deg, rgba(7, 30, 61, 0.95) 0%, rgba(7, 30, 61, 0.8) 50%, rgba(7, 30, 61, 0) 100%);
    padding: 2.5rem 2rem 1.75rem;
    color: #ffffff;
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
  }
  .aerial-showcase-info h3 {
    font-size: 1.65rem;
  }
  .aerial-showcase-info p {
    font-size: 0.98rem;
    color: #ffffff;
  }
}

.aerial-showcase-info h3 {
  color: #ffffff;
  margin-bottom: 0.35rem;
  font-weight: 800;
}

.aerial-showcase-info p {
  margin: 0;
  font-weight: 500;
}

.aerial-hotspots-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.hotspot-tag {
  background: rgba(7, 30, 61, 0.85);
  border: 1px solid var(--color-yellow-primary);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

/* Page Hero for Subpages */
.page-hero {
  position: relative;
  background-color: var(--color-navy-primary);
  color: #ffffff;
  padding: 3.5rem 0 4rem;
  text-align: center;
  overflow: hidden;
}

.page-hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
  filter: saturate(1.1);
}

.page-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(7, 30, 61, 0.85) 0%, rgba(13, 43, 69, 0.92) 100%);
}

.page-hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
  margin: 0 auto;
}

.page-hero-title {
  font-size: 2.5rem;
  color: #ffffff;
  margin-bottom: 0.75rem;
}

@media (min-width: 768px) {
  .page-hero-title {
    font-size: 3.25rem;
  }
}

.page-hero-desc {
  font-size: 1.15rem;
  color: #ffffff;
  font-weight: 500;
}

/* ==========================================================================
   Buttons & CTAs (Subtle Yellow & Solid Navy)
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.6rem;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 800;
  border-radius: var(--radius-full);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition-normal);
  text-decoration: none;
  line-height: 1.2;
}

/* Subtle Yellow Primary Button with Navy Text */
.btn-primary {
  background: var(--color-yellow-primary);
  color: var(--color-navy-dark);
  border: 1px solid var(--color-yellow-border);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
  color: var(--color-navy-dark);
  background-color: var(--color-yellow-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.28);
}

.btn-secondary {
  background-color: #ffffff;
  color: var(--color-navy-dark);
  border-color: #ffffff;
}

.btn-secondary:hover {
  background-color: var(--color-yellow-primary);
  color: var(--color-navy-dark);
  border-color: var(--color-yellow-primary);
  transform: translateY(-2px);
}

.btn-navy {
  background-color: var(--color-navy-primary);
  color: #ffffff;
  box-shadow: var(--shadow-md);
}

.btn-navy:hover {
  background-color: var(--color-navy-dark);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-outline-navy {
  background-color: transparent;
  color: var(--color-navy-primary);
  border-color: var(--color-navy-primary);
}

.btn-outline-navy:hover {
  background-color: var(--color-navy-primary);
  color: #ffffff;
}

.btn-lg {
  padding: 1rem 2.2rem;
  font-size: 1.1rem;
}

.btn-block {
  display: flex;
  width: 100%;
}

/* ==========================================================================
   Cards & Grids
   ========================================================================== */

.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.grid-4 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Card Component */
.card {
  background-color: var(--color-bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-navy-primary);
}

.card-img-wrap {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
  background-color: var(--color-bg-alt);
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.card:hover .card-img {
  transform: scale(1.05);
}

.card-body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-tag {
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #854d0e;
  background-color: var(--color-yellow-light);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  display: inline-block;
  width: fit-content;
  margin-bottom: 0.5rem;
  letter-spacing: 0.5px;
}

.card-title {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
  color: var(--color-navy-primary);
}

.card-text {
  color: var(--color-text-body);
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.card-link {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--color-blue-accent);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: auto;
}

.card-link:hover {
  color: var(--color-navy-dark);
  gap: 0.6rem;
}

/* Feature Box */
.feature-box {
  background-color: var(--color-bg-card);
  padding: 2.25rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

.feature-box:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--color-navy-primary);
}

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background-color: var(--color-cyan-light);
  color: var(--color-navy-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}

.feature-title {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--color-navy-primary);
}

.feature-desc {
  color: var(--color-text-body);
}

/* Info Notice Banner */
.info-banner {
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: var(--radius-lg);
  padding: 1.75rem 2rem;
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.info-banner-icon {
  font-size: 1.75rem;
  color: var(--color-navy-primary);
  flex-shrink: 0;
}

.info-banner-content h4 {
  font-size: 1.15rem;
  color: var(--color-navy-primary);
  margin-bottom: 0.35rem;
}

.info-banner-content p {
  color: var(--color-text-main);
  margin: 0;
}

/* ==========================================================================
   Events & Timeline
   ========================================================================== */

.timeline {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
  padding: 1.5rem 0;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 20px;
  width: 3px;
  background-color: var(--color-border);
}

@media (min-width: 768px) {
  .timeline::before {
    left: 50%;
    transform: translateX(-50%);
  }
}

.timeline-item {
  position: relative;
  margin-bottom: 2.5rem;
  padding-left: 55px;
}

@media (min-width: 768px) {
  .timeline-item {
    width: 50%;
    padding-left: 0;
    padding-right: 3rem;
  }
  
  .timeline-item:nth-child(even) {
    margin-left: 50%;
    padding-right: 0;
    padding-left: 3rem;
  }
}

.timeline-marker {
  position: absolute;
  left: 8px;
  top: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background-color: var(--color-yellow-primary);
  border: 4px solid #ffffff;
  box-shadow: 0 0 0 2px var(--color-navy-primary);
  z-index: 2;
}

@media (min-width: 768px) {
  .timeline-item:nth-child(odd) .timeline-marker {
    left: auto;
    right: -13px;
  }
  
  .timeline-item:nth-child(even) .timeline-marker {
    left: -13px;
  }
}

.timeline-card {
  background-color: var(--color-bg-card);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

.timeline-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--color-navy-primary);
}

.timeline-date {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 800;
  color: #854d0e;
  background-color: var(--color-yellow-light);
  padding: 0.2rem 0.75rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.6rem;
}

.timeline-title {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--color-navy-primary);
}

.timeline-desc {
  color: var(--color-text-body);
  font-size: 0.95rem;
  margin: 0;
}

/* Regatta Weekend 3-Day Card */
.regatta-weekend-box {
  background: var(--color-navy-primary);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  margin-bottom: 3.5rem;
  box-shadow: var(--shadow-xl);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.regatta-weekend-box h3 {
  color: #ffffff;
}

.weekend-days-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 1.75rem;
}

@media (min-width: 768px) {
  .weekend-days-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.weekend-day-card {
  background: var(--color-navy-dark);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  text-align: center;
}

.weekend-day-card .day-badge {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-yellow-subtle);
  margin-bottom: 0.5rem;
}

.weekend-day-card h4 {
  font-size: 1.4rem;
  color: #ffffff;
  margin-bottom: 0.75rem;
}

.weekend-day-card p {
  font-size: 0.95rem;
  color: #ffffff;
  margin: 0;
}

/* ==========================================================================
   Results Table & Sailing
   ========================================================================== */

.results-table-wrap {
  overflow-x: auto;
  background-color: var(--color-bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  margin-bottom: 2rem;
}

.results-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.95rem;
}

.results-table th,
.results-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--color-border-light);
  color: var(--color-text-main);
}

.results-table th {
  background-color: var(--color-bg-alt);
  font-family: var(--font-heading);
  font-weight: 800;
  color: var(--color-navy-primary);
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
}

.results-table tr:last-child td {
  border-bottom: none;
}

.results-table tr:hover td {
  background-color: #f1f5f9;
}

.position-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  font-weight: 800;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  white-space: nowrap;
}

.pos-gold, .pos-1 {
  background: linear-gradient(135deg, #fef08a 0%, #eab308 100%);
  color: #713f12;
  border: 1px solid #ca8a04;
  box-shadow: 0 2px 5px rgba(202, 138, 4, 0.25);
}

.pos-silver, .pos-2 {
  background: linear-gradient(135deg, #f8fafc 0%, #cbd5e1 100%);
  color: #1e293b;
  border: 1px solid #94a3b8;
  box-shadow: 0 2px 5px rgba(148, 163, 184, 0.25);
}

.pos-bronze, .pos-3 {
  background: linear-gradient(135deg, #ffedd5 0%, #fdba74 100%);
  color: #7c2d12;
  border: 1px solid #ea580c;
  box-shadow: 0 2px 5px rgba(234, 88, 12, 0.25);
}

/* ========================================================================== 
   Gallery Grid & Lightbox
   ========================================================================== */

.gallery-video-feature {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(300px, 0.7fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
  overflow: hidden;
  margin-bottom: clamp(2.5rem, 6vw, 4.5rem);
  padding: clamp(1.5rem, 5vw, 4rem);
  color: #ffffff;
  background: linear-gradient(135deg, var(--color-navy-dark) 0%, #0c3c63 100%);
  border: 1px solid rgba(145, 194, 213, 0.35);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.gallery-video-feature::before {
  content: "";
  position: absolute;
  top: 0.4rem;
  left: 1.75rem;
  width: clamp(128px, 13.6vw, 187px);
  aspect-ratio: 1;
  pointer-events: none;
  background: url("../images/polruan-regatta-tennis-ball.png") center / contain no-repeat;
  filter: drop-shadow(0 18px 24px rgba(0, 0, 0, 0.28));
  opacity: 0.82;
  transform: rotate(-17deg);
}

.gallery-video-copy {
  position: relative;
  z-index: 2;
}

.gallery-video-kicker {
  display: inline-flex;
  margin-bottom: 1rem;
  padding: 0.5rem 0.9rem;
  color: var(--color-navy-dark);
  background: var(--color-yellow-primary);
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.gallery-video-copy h2 {
  max-width: 680px;
  margin-bottom: 1rem;
  color: #ffffff;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 0.98;
}

.gallery-video-copy > p:not(.gallery-video-credit) {
  max-width: 610px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1rem, 2vw, 1.18rem);
}

.gallery-video-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 1.4rem 0;
}

.gallery-video-meta span {
  padding: 0.45rem 0.75rem;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 700;
}

.gallery-video-credit {
  margin: 0;
  color: var(--color-blue-light);
  font-size: 0.82rem;
}

.gallery-video-stage {
  position: relative;
  z-index: 1;
  justify-self: center;
  width: min(100%, 370px);
  padding: 0.65rem;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 1.5rem;
  box-shadow: 0 28px 55px rgba(0, 0, 0, 0.34);
  transform: rotate(1.5deg);
}

.gallery-video-stage video {
  display: block;
  width: 100%;
  max-height: 620px;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  background: #000000;
  border-radius: 1rem;
}

.gallery-ball {
  position: absolute;
  z-index: 2;
  width: 54px;
  aspect-ratio: 1;
  pointer-events: none;
  background: url("../images/polruan-regatta-tennis-ball.png") center / contain no-repeat;
  filter: drop-shadow(0 10px 12px rgba(0, 0, 0, 0.34));
}

.gallery-ball::before,
.gallery-ball::after {
  content: none;
}

.gallery-ball-one {
  top: -18px;
  right: -20px;
  transform: rotate(19deg);
}

.gallery-ball-two {
  bottom: 12%;
  left: -28px;
  width: 38px;
  transform: rotate(-28deg);
}

.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
}

.filter-btn {
  padding: 0.55rem 1.25rem;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  background-color: var(--color-bg-card);
  color: var(--color-text-main);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-btn:hover {
  border-color: var(--color-navy-primary);
  color: var(--color-navy-primary);
}

.filter-btn.active {
  background-color: var(--color-navy-primary);
  color: #ffffff;
  border-color: var(--color-navy-primary);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.gallery-collection-heading {
  grid-column: 1 / -1;
  max-width: 760px;
  margin-bottom: 0.5rem;
}

.gallery-collection-heading h2 {
  margin: 0.65rem 0 0.45rem;
}

.gallery-collection-heading p {
  margin: 0;
  color: var(--color-text-muted);
}

.gallery-collection-heading-archive {
  margin-top: clamp(2rem, 5vw, 4rem);
  padding-top: clamp(2rem, 5vw, 4rem);
  border-top: 1px solid var(--color-border);
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background-color: var(--color-bg-card);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  aspect-ratio: 4 / 3;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.gallery-item:hover img {
  transform: scale(1.06);
}

.gallery-new-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 2;
  padding: 0.35rem 0.65rem;
  color: var(--color-navy-dark);
  background: var(--color-yellow-primary);
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-sm);
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.05em;
}

@media (max-width: 767px) {
  .gallery-video-feature {
    grid-template-columns: 1fr;
    padding: 1.35rem;
  }

  .gallery-video-stage {
    width: min(88%, 350px);
    transform: none;
  }

  .gallery-video-feature::before {
    top: 0.9rem;
    right: 0.85rem;
    left: auto;
    width: 68px;
    opacity: 0.9;
    transform: rotate(14deg);
  }

  .gallery-ball-one {
    right: -14px;
  }

  .gallery-ball-two {
    left: -18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gallery-video-stage {
    transform: none;
  }
}

.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(7, 30, 61, 0.92) 0%, rgba(7, 30, 61, 0) 60%);
  display: flex;
  align-items: flex-end;
  padding: 1.25rem;
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.gallery-item:hover .gallery-item-overlay {
  opacity: 1;
}

.gallery-item-caption {
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
}

/* Lightbox Modal */
.lightbox {
  position: fixed;
  inset: 0;
  background-color: rgba(7, 30, 61, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 1.5rem;
}

.lightbox.active {
  display: flex;
}

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-img {
  max-width: 100%;
  max-height: 75vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-xl);
}

.lightbox-caption {
  margin-top: 1rem;
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  text-align: center;
  font-weight: 600;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: #ffffff;
  color: var(--color-navy-dark);
  border: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 800;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background-color: var(--color-yellow-primary);
  color: var(--color-navy-dark);
}

.lightbox-close {
  top: 1.5rem;
  right: 1.5rem;
}

.lightbox-prev {
  left: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-next {
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
}

/* ==========================================================================
   Donation & Support Forms
   ========================================================================== */

.donation-box {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
}

.paypal-form-wrap {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.btn-paypal-donate {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--color-yellow-primary);
  color: var(--color-navy-dark);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.15rem;
  padding: 1rem 2.5rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-yellow-border);
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
  transition: all var(--transition-normal);
}

.btn-paypal-donate:hover {
  background: var(--color-yellow-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* ==========================================================================
   Custom Leaflet Interactive Map & Filter Bar
   ========================================================================== */

.custom-map-wrap {
  position: relative;
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  margin-bottom: 3.5rem;
}

.map-filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  padding: 1.25rem 1.5rem;
  background-color: var(--color-bg-alt);
  border-bottom: 1px solid var(--color-border);
}

.map-filter-label {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--color-navy-primary);
  margin-right: 0.5rem;
}

.map-filter-btn {
  padding: 0.45rem 1rem;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  background-color: #ffffff;
  color: var(--color-text-main);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.map-filter-btn:hover {
  border-color: var(--color-navy-primary);
  color: var(--color-navy-primary);
}

.map-filter-btn.active {
  background-color: var(--color-navy-primary);
  color: #ffffff;
  border-color: var(--color-navy-primary);
}

#interactive-map {
  width: 100%;
  height: 540px;
  background-color: #dbeafe;
  z-index: 1;
  scroll-margin-top: calc(var(--header-height) + 1rem);
}

/* Drag & Drop Map Calibration Mode */
.calibration-banner {
  background: #fef9c3;
  border: 1px solid #f3d37a;
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  margin-bottom: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

@media (min-width: 768px) {
  .calibration-banner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.calibration-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-weight: 800;
  color: #854d0e;
  font-size: 0.95rem;
}

.calibration-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.btn-copy-coords {
  padding: 0.45rem 1.1rem;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 800;
  background-color: var(--color-navy-primary);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-copy-coords:hover {
  background-color: var(--color-navy-dark);
}

.btn-reset-coords {
  padding: 0.45rem 0.9rem;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  background-color: #ffffff;
  color: var(--color-navy-dark);
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-reset-coords:hover {
  background-color: #f1f5f9;
}

.calibration-readout {
  padding: 0.85rem 1.25rem;
  background: var(--color-bg-alt);
  border-top: 1px solid var(--color-border);
  font-size: 0.85rem;
  color: var(--color-text-main);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

/* Custom Marker Styling */
.custom-map-pin {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #ffffff;
  font-size: 1.1rem;
  box-shadow: 0 3px 10px rgba(0,0,0,0.4);
  border: 2px solid #ffffff;
  transition: transform 0.2s ease;
}

.custom-map-pin:hover {
  transform: scale(1.15);
}

.pin-parking { background: #2563eb; }
.pin-ferry { background: #0891b2; }
.pin-beach { background: #d97706; }
.pin-events { background: #059669; }
.pin-food { background: #ca8a04; }
.pin-amenities { background: #4f46e5; }
.pin-water { background: #0284c7; }

/* Water Map Embed Container (Option 1) */
.water-map-embed-wrap {
  background: var(--color-navy-dark);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-top: 2rem;
  margin-bottom: 1.5rem;
}

.water-map-tabs {
  display: flex;
  flex-wrap: wrap;
  background: rgba(7, 30, 61, 0.85);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  padding: 0.5rem 0.75rem;
  gap: 0.5rem;
}

.water-map-tab-btn {
  padding: 0.55rem 1.1rem;
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 700;
  background: transparent;
  color: #ffffff;
  border: 1px solid transparent;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.water-map-tab-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-yellow-subtle);
}

.water-map-tab-btn.active {
  background: var(--color-yellow-primary);
  color: var(--color-navy-dark);
  font-weight: 800;
}

.water-legend-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
  padding: 0.85rem 1.25rem;
  background: rgba(7, 30, 61, 0.6);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.85rem;
  color: #ffffff;
}

.water-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
}

.legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}

.dot-green { background: #22c55e; box-shadow: 0 0 6px #22c55e; }
.dot-amber { background: #f59e0b; box-shadow: 0 0 6px #f59e0b; }
.dot-red { background: #ef4444; box-shadow: 0 0 6px #ef4444; }

.water-embed-frame-container {
  position: relative;
  width: 100%;
  height: 480px;
  background: #0f172a;
}

#live-sewage-map {
  width: 100%;
  height: 100%;
  background-color: #0c4a6e;
  z-index: 1;
}

.pulse-pin-green {
  background: #16a34a !important;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.4), 0 3px 10px rgba(0,0,0,0.5) !important;
}

.pulse-pin-amber {
  background: #d97706 !important;
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.4), 0 3px 10px rgba(0,0,0,0.5) !important;
}

.pulse-pin-red {
  background: #dc2626 !important;
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.4), 0 3px 10px rgba(0,0,0,0.5) !important;
}

.water-embed-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: rgba(7, 30, 61, 0.9);
}

/* Leaflet Popup Styling */
.leaflet-popup-content-wrapper {
  border-radius: var(--radius-md) !important;
  box-shadow: var(--shadow-xl) !important;
  padding: 0.25rem !important;
}

.leaflet-popup-content {
  font-family: var(--font-body) !important;
  line-height: 1.5 !important;
  margin: 0.85rem 1rem !important;
  max-width: 260px;
}

.popup-tag {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #854d0e;
  background-color: var(--color-yellow-light);
  padding: 0.15rem 0.6rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.35rem;
}

.popup-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--color-navy-primary);
  margin-bottom: 0.3rem;
}

.popup-desc {
  font-size: 0.88rem;
  color: var(--color-text-body);
  margin-bottom: 0.5rem;
}

.popup-link {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--color-blue-accent);
}

/* ==========================================================================
   Live Sewage & Bathing Water Quality Tracker
   ========================================================================== */

.water-tracker-card {
  background: var(--color-navy-primary);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: var(--shadow-xl);
  margin-bottom: 3.5rem;
}

.water-tracker-header {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .water-tracker-header {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.water-tracker-title h3 {
  color: #ffffff;
  font-size: 1.85rem;
  margin-bottom: 0.35rem;
}

.water-tracker-title p {
  color: #ffffff;
  font-size: 1rem;
  font-weight: 500;
  margin: 0;
}

/* Option 2: Live Status Dashboard & Metrics */
.water-status-dashboard {
  background: var(--color-navy-dark);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.dashboard-top-bar {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  margin-bottom: 1.25rem;
}

@media (min-width: 768px) {
  .dashboard-top-bar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.dashboard-live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 800;
  color: #ffffff;
}

.dashboard-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.btn-refresh-status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.9rem;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-refresh-status:hover {
  background: var(--color-yellow-primary);
  color: var(--color-navy-dark);
  border-color: var(--color-yellow-primary);
}

.dashboard-metrics-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 640px) {
  .dashboard-metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .dashboard-metrics-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.metric-card {
  background: rgba(13, 43, 69, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  padding: 1rem;
  display: flex;
  flex-direction: column;
}

.metric-card-header {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--color-yellow-subtle);
  margin-bottom: 0.4rem;
}

.metric-value {
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.25rem;
  line-height: 1.25;
}

.metric-sub {
  font-size: 0.8rem;
  color: #cbd5e1;
  margin-top: auto;
}

.water-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: #15803d;
  color: #ffffff;
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 800;
}

.pulse-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #86efac;
}

.water-services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .water-services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.water-service-box {
  background: var(--color-navy-dark);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
}

.water-service-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.water-service-box h4 {
  color: #ffffff;
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.water-service-box p {
  color: #ffffff;
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.water-tracker-advisory {
  background: var(--color-navy-dark);
  border-left: 4px solid var(--color-yellow-primary);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  font-size: 0.95rem;
  color: #ffffff;
}

/* ==========================================================================
   Visitor Info Cards & Grid
   ========================================================================== */

.info-cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
}

@media (min-width: 768px) {
  .info-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.info-card {
  background: var(--color-bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  padding: 1.75rem;
  display: flex;
  gap: 1.25rem;
  transition: all var(--transition-normal);
}

.info-card:hover {
  border-color: var(--color-navy-primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.info-card-icon {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-md);
  background-color: var(--color-cyan-light);
  color: var(--color-navy-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.info-card-body h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: var(--color-navy-primary);
}

.info-card-body p {
  color: var(--color-text-body);
  font-size: 0.95rem;
  margin: 0;
}

.info-card-body a {
  font-weight: 700;
  color: var(--color-blue-accent);
}

/* ==========================================================================
   Committee & Contact
   ========================================================================== */

.committee-structure {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .committee-structure {
    grid-template-columns: repeat(2, 1fr);
  }
}

.officers-card,
.members-card {
  background-color: var(--color-bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}

.officers-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.officer-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--color-border-light);
}

.officer-item:last-child {
  border-bottom: none;
}

.officer-role {
  font-weight: 800;
  color: var(--color-navy-primary);
  font-size: 0.95rem;
}

.officer-name {
  color: var(--color-text-body);
  font-size: 0.95rem;
  font-weight: 600;
}

.members-pill-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.member-pill {
  background-color: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-text-main);
}

.local-directory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}

.directory-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  transition: all var(--transition-fast);
}

.directory-card:hover {
  border-color: var(--color-navy-primary);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.directory-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background-color: var(--color-cyan-light);
  color: var(--color-navy-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.directory-info h4 {
  font-size: 0.95rem;
  margin-bottom: 0.15rem;
  color: var(--color-navy-primary);
}

.directory-info a {
  font-size: 0.85rem;
  font-weight: 700;
}

/* ==========================================================================
   Footer (Matching light blue #91c2d5 with solid dark text)
   ========================================================================== */

.site-footer {
  background-color: var(--color-brand-blue);
  color: var(--color-navy-dark);
  padding: 4.5rem 0 2rem;
  margin-top: auto;
  border-top: 1px solid rgba(7, 30, 61, 0.15);
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  padding-bottom: 3.5rem;
  border-bottom: 1px solid rgba(7, 30, 61, 0.15);
}

@media (min-width: 768px) {
  .footer-top {
    grid-template-columns: 1fr 1fr 2fr;
  }
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .footer-brand {
    align-items: flex-end;
    text-align: right;
  }
}

.footer-brand-header {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .footer-brand-header {
    justify-content: flex-end;
  }
}

.footer-badge {
  width: 128px;
  height: 128px;
  background: transparent;
  flex-shrink: 0;
}

.footer-brand h3 {
  color: var(--color-navy-dark);
  font-size: 1.3rem;
  font-weight: 800;
  margin: 0;
}

.footer-brand p {
  font-size: 0.95rem;
  line-height: 1.6;
  max-width: 440px;
  color: var(--color-navy-dark);
  font-weight: 600;
}

.footer-col h4 {
  color: var(--color-navy-dark);
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 1.25rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 36px;
  height: 2.5px;
  background-color: var(--color-navy-dark);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-links a {
  color: var(--color-navy-dark);
  font-size: 0.95rem;
  font-weight: 700;
  transition: all var(--transition-fast);
}

.footer-links a:hover {
  color: #1d4ed8;
  padding-left: 4px;
}

.footer-bottom {
  padding-top: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--color-navy-dark);
  font-weight: 700;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    text-align: left;
  }
}

.footer-bottom p {
  margin: 0;
}

/* Mobile Header & Donate Button Single-Line Optimizations */
@media (max-width: 576px) {
  .header-container {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
  }
  .brand-badge img {
    width: 44px;
    height: 44px;
  }
  .brand-title {
    font-size: 1.02rem;
    letter-spacing: 0.3px;
  }
  .brand-subtitle {
    font-size: 0.68rem;
  }
  .header-actions {
    gap: 0.45rem;
    flex-shrink: 0;
  }
  .btn-header-donate {
    padding: 0.42rem 0.85rem;
    font-size: 0.85rem;
    gap: 0.35rem;
    white-space: nowrap;
    flex-shrink: 0;
  }
  .facebook-icon-btn {
    width: 35px;
    height: 35px;
    flex-shrink: 0;
  }
  .mobile-nav-toggle {
    width: 36px;
    height: 36px;
    padding: 8px 6px;
    flex-shrink: 0;
  }
}

@media (max-width: 380px) {
  .brand-title {
    font-size: 0.92rem;
  }
  .brand-subtitle {
    font-size: 0.62rem;
  }
  .btn-header-donate {
    padding: 0.38rem 0.68rem;
    font-size: 0.8rem;
    gap: 0.25rem;
  }
}


/* Top Site Alert Bar */
.top-site-alert-bar {
  width: 100%;
  background-color: #fff1f2;
  border-bottom: 2px solid #e11d48;
  position: relative;
  z-index: 999;
}

.top-site-alert-bar .water-alert-banner {
  margin-bottom: 0;
  border-radius: 0;
  border: none;
  box-shadow: none;
  max-width: 1200px;
  margin: 0 auto;
}

.water-alert-banner {
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  font-family: var(--font-body);
}

.water-alert-banner.alert-warning {
  background-color: #fff1f2 !important;
  border: 2px solid #e11d48 !important;
  color: #9f1239 !important;
}

.water-alert-banner.alert-normal {
  background-color: #f0fdf4 !important;
  border: 1.5px solid #22c55e !important;
  color: #166534 !important;
}

.water-alert-banner.alert-recent {
  background-color: #fffbeb !important;
  border: 2px solid #f59e0b !important;
  color: #78350f !important;
}

.water-alert-banner.alert-unavailable,
.water-alert-banner.alert-loading {
  background-color: #f8fafc !important;
  border: 2px solid #64748b !important;
  color: #1e293b !important;
}

.water-alert-content {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex: 1;
}

.water-alert-icon {
  font-size: 1.6rem;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.water-alert-text h4 {
  font-size: 1rem;
  font-weight: 800;
  margin: 0 0 0.15rem 0;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.water-alert-banner.alert-warning .water-alert-text h4 {
  color: #be123c !important;
}

.water-alert-banner.alert-normal .water-alert-text h4 {
  color: #15803d !important;
}

.water-alert-banner.alert-recent .water-alert-text h4 {
  color: #92400e !important;
}

.water-alert-banner.alert-unavailable .water-alert-text h4,
.water-alert-banner.alert-loading .water-alert-text h4 {
  color: #0f172a !important;
}

.water-alert-text p {
  font-size: 0.88rem;
  margin: 0;
  line-height: 1.4;
  font-weight: 500;
}

.water-alert-activity {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem;
  margin: 0.45rem 0 0.55rem;
  max-width: 440px;
}

.water-alert-activity > div {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  padding: 0.38rem 0.55rem;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid currentColor;
  border-radius: 0.55rem;
}

.water-alert-activity strong {
  flex-shrink: 0;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  line-height: 1;
}

.water-alert-activity span {
  font-size: 0.72rem;
  font-weight: 750;
  line-height: 1.2;
}

.water-alert-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1.1rem;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 800;
  white-space: nowrap;
  flex-shrink: 0;
  text-decoration: none;
}

.water-alert-banner.alert-warning .water-alert-btn {
  background-color: #e11d48 !important;
  color: #ffffff !important;
  border: 1px solid #be123c !important;
  box-shadow: 0 2px 8px rgba(225, 29, 72, 0.35);
}

.water-alert-banner.alert-normal .water-alert-btn {
  background-color: #16a34a !important;
  color: #ffffff !important;
  border: 1px solid #15803d !important;
}

.water-alert-banner.alert-recent .water-alert-btn {
  background-color: #d97706 !important;
  color: #ffffff !important;
  border: 1px solid #b45309 !important;
}

.water-alert-banner.alert-unavailable .water-alert-btn,
.water-alert-banner.alert-loading .water-alert-btn {
  background-color: #334155 !important;
  color: #ffffff !important;
  border: 1px solid #1e293b !important;
}

.pulse-dot {
  display: inline-block;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background-color: #e11d48;
  box-shadow: 0 0 0 0 rgba(225, 29, 72, 0.7);
  animation: alertPulse 1.6s infinite;
}

.pulse-dot-green {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background-color: #16a34a;
}

@keyframes alertPulse {
  0% { box-shadow: 0 0 0 0 rgba(225, 29, 72, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(225, 29, 72, 0); }
  100% { box-shadow: 0 0 0 0 rgba(225, 29, 72, 0); }
}

@media (max-width: 767px) {
  .water-alert-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
  }
  .water-alert-btn {
    width: 100%;
    justify-content: center;
  }

  .water-alert-activity {
    width: 100%;
  }
}

/* Live local overflow markers and water-safety content */
.overflow-map-pin {
  width: 38px;
  height: 38px;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.pin-overflow-active {
  background: #dc2626;
  animation: overflowMarkerPulse 1.6s infinite;
}

.pin-overflow-recent {
  background: #d97706;
}

.pin-overflow-offline {
  background: #64748b;
}

.pin-overflow-inactive {
  background: #15803d;
}

@keyframes overflowMarkerPulse {
  0% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.65), 0 3px 10px rgba(0, 0, 0, 0.4); }
  70% { box-shadow: 0 0 0 12px rgba(220, 38, 38, 0), 0 3px 10px rgba(0, 0, 0, 0.4); }
  100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0), 0 3px 10px rgba(0, 0, 0, 0.4); }
}

.overflow-popup .popup-caution {
  margin: 0.7rem 0;
  padding: 0.55rem 0.65rem;
  border-left: 3px solid #d97706;
  background: #fffbeb;
  color: #78350f;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.35;
}

.overflow-popup a {
  color: #1d4ed8;
  font-size: 0.82rem;
  font-weight: 800;
}

.water-safety-callout,
.water-map-summary {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  border-radius: var(--radius-md);
  padding: 1.35rem 1.5rem;
  margin-bottom: 1.5rem;
}

.water-safety-callout {
  background: #fff7ed;
  border: 2px solid #fb923c;
  color: #7c2d12;
}

.water-safety-callout-icon {
  flex-shrink: 0;
  font-size: 1.6rem;
  line-height: 1;
}

.water-safety-callout h3,
.water-map-summary h3 {
  margin-bottom: 0.35rem;
}

.water-safety-callout h3 {
  color: #9a3412;
  font-size: 1.2rem;
}

.water-safety-callout p,
.water-map-summary p {
  margin: 0;
  line-height: 1.6;
}

.water-map-summary p {
  color: #cbd5e1;
}

.water-map-summary {
  align-items: center;
  justify-content: space-between;
  background: rgba(14, 46, 88, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #cbd5e1;
}

.water-map-summary h3 {
  color: #ffffff;
}

.water-map-summary .btn {
  flex-shrink: 0;
}

.water-summary-kicker {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--color-yellow-subtle);
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@media (max-width: 767px) {
  .water-map-summary {
    align-items: stretch;
    flex-direction: column;
  }
}
