@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@400;600;700;800&family=Open+Sans:wght@400;500;600&display=swap');

:root {
  --navy:      #1a3a5c;
  --navy-dark: #112540;
  --sky:       #4a90c4;
  --sky-light: #d6eaf8;
  --sky-pale:  #f0f7fc;
  --teal:      #2e86ab;
  --grass:     #3a9b6e;
  --amber:     #e8a623;
  --amber-pale:#fff8e6;
  --white:     #ffffff;
  --offwhite:  #f7fafd;
  --text:      #2c3e50;
  --text-mid:  #546e7a;
  --text-light:#7f99ae;
  --border:    #cde1f0;
  --shadow:    0 2px 12px rgba(26,58,92,0.10);
  --shadow-lg: 0 6px 30px rgba(26,58,92,0.15);
  --radius:    6px;
  --radius-lg: 12px;
}

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

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

body {
  font-family: 'Open Sans', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--sky); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--navy); text-decoration: underline; }
ul { padding-left: 1.4rem; }
li { margin-bottom: 0.35rem; }

h1, h2, h3, h4, h5 {
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.25;
}
h1 { font-size: clamp(1.9rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); }
h3 { font-size: clamp(1.15rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.1rem; }

p { margin-bottom: 0.9rem; }
p:last-child { margin-bottom: 0; }

/* ─── NAVIGATION ─── */
.site-nav {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 66px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-brand-icon {
  font-size: 1.8rem;
  line-height: 1;
}
.nav-brand-logo {
  height: 44px;
  width: 44px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.25);
  flex-shrink: 0;
}
.nav-brand-text {
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: #ffffff;
  line-height: 1.2;
}
.nav-brand-text small {
  display: block;
  font-weight: 400;
  font-size: 0.7rem;
  color: #9bbdd8;
  letter-spacing: 0.03em;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 0.1rem;
  padding: 0;
}
.nav-links a {
  display: block;
  padding: 0.45rem 0.85rem;
  color: #b8d4ec;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius);
  text-decoration: none;
  transition: background 0.18s, color 0.18s;
  white-space: nowrap;
}
.nav-links a:hover,
.nav-links a.active {
  background: rgba(255,255,255,0.14);
  color: #ffffff;
  text-decoration: none;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
  color: white;
  font-size: 1.6rem;
  line-height: 1;
}

/* ─── HERO ─── */
.hero {
  position: relative;
  min-height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--navy-dark) url('/images/hero-airfield.jpg') center/cover no-repeat;
  color: white;
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(10,30,55,0.55) 0%, rgba(10,30,55,0.70) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  padding: 3rem 1.5rem;
  max-width: 760px;
}
.hero-badge {
  display: inline-block;
  background: var(--amber);
  color: var(--navy-dark);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}
.hero h1 {
  color: white;
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
  margin-bottom: 0.6rem;
}
.hero-tagline {
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  color: #d0e8f8;
  font-style: italic;
  margin-bottom: 1.5rem;
}
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--amber);
  color: var(--navy-dark);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.75rem 1.75rem;
  border-radius: 999px;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}
.hero-cta:hover {
  background: #f0b52a;
  color: var(--navy-dark);
  text-decoration: none;
  transform: translateY(-2px);
}

/* Page hero (non-home) */
.page-hero {
  position: relative;
  min-height: 260px;
  display: flex;
  align-items: center;
  background: var(--navy-dark) center/cover no-repeat;
  color: white;
  overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10,30,55,0.72) 0%, rgba(26,58,92,0.55) 100%);
}
.page-hero-content {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
}
.page-hero h1 { color: white; text-shadow: 0 2px 6px rgba(0,0,0,0.35); }
.page-hero p { color: #c8dff0; margin-top: 0.5rem; font-size: 1.05rem; }

/* ─── SECTIONS ─── */
.section {
  padding: 4rem 1.5rem;
}
.section-alt {
  background: var(--sky-pale);
}
.section-dark {
  background: var(--navy);
  color: white;
}
.section-dark h2, .section-dark h3, .section-dark h4 { color: white; }
.section-dark p { color: #c0d8ef; }

.container {
  max-width: 1100px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}
.section-header h2 { margin-bottom: 0.5rem; }
.section-header p { color: var(--text-mid); font-size: 1.05rem; max-width: 600px; margin: 0 auto; }
.section-divider {
  width: 60px;
  height: 3px;
  background: var(--amber);
  margin: 0.8rem auto 0;
  border-radius: 2px;
}

/* ─── FEATURE BOXES ─── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.feature-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow);
  transition: box-shadow 0.25s, transform 0.2s;
  text-decoration: none;
  color: inherit;
  display: block;
}
.feature-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  text-decoration: none;
  color: inherit;
}
.feature-card .icon {
  font-size: 2.8rem;
  margin-bottom: 0.9rem;
  display: block;
}
.feature-card h3 { color: var(--navy); margin-bottom: 0.5rem; }
.feature-card p { color: var(--text-mid); font-size: 0.95rem; margin-bottom: 1rem; }
.feature-card .card-link {
  display: inline-block;
  color: var(--sky);
  font-weight: 600;
  font-size: 0.875rem;
}

/* ─── INFO PANELS ─── */
.info-panel {
  background: var(--sky-pale);
  border: 1px solid var(--border);
  border-left: 4px solid var(--sky);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.25rem;
}
.info-panel.warning {
  border-left-color: var(--amber);
  background: var(--amber-pale);
}
.info-panel.success {
  border-left-color: var(--grass);
  background: #edfaf3;
}

/* ─── PILOT INFO SECTIONS ─── */
.pilot-section {
  border-bottom: 1px solid var(--border);
  padding: 2.5rem 0;
}
.pilot-section:first-child { padding-top: 0; }
.pilot-section:last-child { border-bottom: none; }

.pilot-section h2 {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--sky-light);
}
.pilot-section h2 .section-icon { font-size: 1.4rem; }

.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.95rem;
}
.data-table th {
  background: var(--navy);
  color: white;
  padding: 0.65rem 1rem;
  text-align: left;
  font-family: 'Raleway', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}
.data-table td {
  padding: 0.6rem 1rem;
  border-bottom: 1px solid var(--border);
}
.data-table tr:nth-child(even) td { background: var(--sky-pale); }
.data-table tr:last-child td { border-bottom: none; }

/* ─── THUMBNAILS ─── */
.thumb-container {
  display: inline-block;
  text-align: center;
  cursor: pointer;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s, transform 0.2s;
  border: 3px solid var(--border);
  max-width: 320px;
  text-decoration: none;
  color: inherit;
}
.thumb-container:hover {
  box-shadow: var(--shadow-lg);
  transform: scale(1.02);
  border-color: var(--sky);
  text-decoration: none;
  color: inherit;
}
.thumb-container img {
  width: 100%;
  max-height: 200px;
  object-fit: cover;
}
.thumb-label {
  display: block;
  background: var(--navy);
  color: #b8d4ec;
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.thumb-label::before { content: '🔍 '; }

.thumbs-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin: 1.25rem 0;
}

/* ─── VIDEO EMBEDS ─── */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin: 1.25rem 0;
}
.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #000;
}
.video-wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}
.video-label {
  font-size: 0.9rem;
  color: var(--text-mid);
  margin-top: 0.5rem;
  text-align: center;
}

/* ─── WEATHER WIDGET ─── */
.weather-widget {
  background: linear-gradient(135deg, var(--navy) 0%, #1e4d7a 100%);
  color: white;
  border-radius: var(--radius-lg);
  padding: 1.5rem 2rem;
  box-shadow: var(--shadow-lg);
  max-width: 560px;
  margin: 0 auto;
}
.weather-widget.compact {
  padding: 1.25rem 1.5rem;
  max-width: 100%;
}
.weather-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.15);
  padding-bottom: 0.75rem;
}
.weather-location {
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.03em;
}
.weather-location small {
  display: block;
  font-weight: 400;
  font-size: 0.75rem;
  color: #9bbdd8;
}
.weather-status {
  font-size: 0.75rem;
  color: #7aadcc;
}
.weather-main {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1rem;
}
.weather-icon-large {
  font-size: 3.5rem;
  line-height: 1;
}
.weather-temp {
  font-family: 'Raleway', sans-serif;
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
}
.weather-temp sup { font-size: 1.2rem; font-weight: 600; }
.weather-desc {
  font-size: 0.95rem;
  color: #b8d4ec;
  margin-top: 0.25rem;
}
.weather-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}
.weather-item {
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 0.55rem 0.85rem;
}
.weather-item .label {
  font-size: 0.7rem;
  color: #7aadcc;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.15rem;
}
.weather-item .value {
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: white;
}
.weather-item .value.wind {
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.wind-arrow {
  display: inline-block;
  font-size: 1.1rem;
  transition: transform 0.5s ease;
}
.weather-loading {
  text-align: center;
  color: #9bbdd8;
  padding: 1rem;
}
.weather-error {
  color: #f08080;
  font-size: 0.85rem;
  text-align: center;
  padding: 0.5rem;
}

/* Compact widget */
.compact .weather-main { margin-bottom: 0.75rem; }
.compact .weather-icon-large { font-size: 2.5rem; }
.compact .weather-temp { font-size: 2.2rem; }
.compact .weather-grid { grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }
.compact .weather-item .value { font-size: 0.95rem; }

/* ─── GALLERY ─── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}
.gallery-item {
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: var(--radius);
  cursor: pointer;
  position: relative;
  background: var(--sky-light);
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}
.gallery-item:hover { transform: scale(1.03); box-shadow: var(--shadow-lg); }
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item .overlay {
  position: absolute;
  inset: 0;
  background: rgba(26,58,92,0.0);
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gallery-item:hover .overlay { background: rgba(26,58,92,0.3); }
.gallery-item .overlay-icon {
  color: white;
  font-size: 2rem;
  opacity: 0;
  transition: opacity 0.2s;
}
.gallery-item:hover .overlay-icon { opacity: 1; }

.gallery-empty {
  text-align: center;
  padding: 2rem;
  color: var(--text-mid);
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  margin-top: 1.5rem;
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(5,15,30,0.92);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
.lightbox.open { display: flex; }
.lightbox-img-wrap {
  position: relative;
  max-width: 90vw;
  max-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-img-wrap img {
  max-width: 90vw;
  max-height: 80vh;
  border-radius: var(--radius);
  box-shadow: 0 8px 40px rgba(0,0,0,0.6);
  object-fit: contain;
}
.lightbox-close {
  position: fixed;
  top: 1.25rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
  padding: 0.25rem 0.5rem;
  opacity: 0.8;
  transition: opacity 0.2s;
}
.lightbox-close:hover { opacity: 1; }
.lightbox-nav {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}
.lightbox-btn {
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  color: white;
  font-size: 1.5rem;
  border-radius: 50%;
  width: 3rem;
  height: 3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.lightbox-btn:hover { background: rgba(255,255,255,0.25); }
.lightbox-counter {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  align-self: center;
}

/* ─── CONTACT / INFO ─── */
.contact-block {
  background: var(--sky-pale);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
}
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.contact-item:last-child { margin-bottom: 0; }
.contact-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}
.contact-detail { flex: 1; }
.contact-detail strong { display: block; color: var(--navy); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 0.2rem; }
.contact-detail a { font-size: 1.05rem; font-weight: 600; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.6rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  cursor: pointer;
  border: none;
}
.btn:hover { transform: translateY(-2px); text-decoration: none; }
.btn-primary { background: var(--sky); color: white; box-shadow: 0 2px 8px rgba(74,144,196,0.35); }
.btn-primary:hover { background: #3a7fb0; color: white; box-shadow: 0 4px 16px rgba(74,144,196,0.4); }
.btn-amber { background: var(--amber); color: var(--navy); box-shadow: 0 2px 8px rgba(232,166,35,0.3); }
.btn-amber:hover { background: #d9981a; color: var(--navy); box-shadow: 0 4px 16px rgba(232,166,35,0.4); }
.btn-grass { background: var(--grass); color: white; box-shadow: 0 2px 8px rgba(58,155,110,0.35); }
.btn-grass:hover { background: #2d8259; color: white; }
.btn-outline {
  background: transparent;
  border: 2px solid var(--sky);
  color: var(--sky);
}
.btn-outline:hover { background: var(--sky); color: white; }

/* ─── MAP ─── */
.map-container {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.map-container iframe { display: block; }

/* ─── EVENTS FLYER ─── */
.events-flyer {
  text-align: center;
}
.events-flyer a {
  display: inline-block;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: transform 0.2s, box-shadow 0.2s;
  border: 3px solid var(--border);
}
.events-flyer a:hover {
  transform: scale(1.02);
  box-shadow: 0 12px 40px rgba(26,58,92,0.2);
  border-color: var(--sky);
}
.events-flyer img {
  max-width: 480px;
  width: 100%;
}
.events-flyer .flyer-note {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: var(--text-light);
}

/* ─── EVENTS LIST (public) ─── */
.events-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}
.event-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}
.event-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}
.event-card-photo {
  display: block;
  line-height: 0;
  background: var(--sky-pale);
}
.event-card-photo img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  transition: opacity 0.2s;
}
.event-card-photo:hover img { opacity: 0.93; }
.event-card-body {
  padding: 1.25rem 1.5rem 1.5rem;
}
.event-card-title {
  margin: 0 0 0.5rem;
  color: var(--navy);
  font-size: 1.3rem;
}
.event-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--sky-deep, #2e6096);
}
.event-card-desc {
  margin: 0;
  color: var(--text-mid);
  line-height: 1.6;
}

/* ─── EVENTS ADMIN ─── */
.ev-date-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.ev-optional {
  font-weight: 400;
  color: var(--text-light);
  font-size: 0.8rem;
}
.ev-photo-box {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  text-align: center;
}
.ev-photo-preview {
  max-width: 100%;
  max-height: 220px;
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  box-shadow: var(--shadow);
}
.ev-photo-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  align-items: center;
}
.ev-upload-btn {
  display: inline-block;
  background: var(--sky);
  color: #fff;
  padding: 0.6rem 1.1rem;
  border-radius: var(--radius);
  font-weight: 600;
  cursor: pointer;
  font-size: 0.9rem;
}
.ev-upload-btn:hover { filter: brightness(0.95); }
.ev-remove-photo {
  background: none;
  border: 1px solid var(--border);
  color: #c0392b;
  padding: 0.55rem 0.9rem;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 0.85rem;
}
.ev-photo-hint {
  margin: 0.75rem 0 0;
  font-size: 0.78rem;
  color: var(--text-light);
}
.ev-upload-status {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-mid);
}
.ev-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--border);
}
.ev-row:last-child { border-bottom: none; }
.ev-row-thumb {
  width: 54px;
  height: 54px;
  object-fit: cover;
  border-radius: var(--radius);
  flex-shrink: 0;
  background: var(--sky-pale);
}
.ev-row-noimg {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}
.ev-row-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}
.ev-row-info strong {
  color: var(--navy);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ev-row-date {
  font-size: 0.8rem;
  color: var(--text-light);
}
.ev-row-actions {
  display: flex;
  gap: 0.4rem;
  flex-shrink: 0;
}
.ev-edit-btn, .ev-del-btn {
  border: 1px solid var(--border);
  background: #fff;
  border-radius: var(--radius);
  padding: 0.45rem 0.7rem;
  font-size: 0.82rem;
  cursor: pointer;
  font-weight: 600;
}
.ev-edit-btn { color: var(--sky-deep, #2e6096); }
.ev-edit-btn:hover { background: var(--sky-pale); }
.ev-del-btn { color: #c0392b; }
.ev-del-btn:hover { background: #fdf2f0; }

@media (max-width: 520px) {
  .ev-date-row { grid-template-columns: 1fr; gap: 0; }
}

/* ─── WEATHER LINKS ─── */
.weather-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}
.weather-link-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  text-decoration: none;
  transition: box-shadow 0.2s, border-color 0.2s, transform 0.2s;
  display: block;
  color: inherit;
}
.weather-link-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--sky);
  transform: translateY(-3px);
  text-decoration: none;
  color: inherit;
}
.weather-link-card .wl-icon { font-size: 1.8rem; margin-bottom: 0.5rem; }
.weather-link-card h4 { color: var(--navy); margin-bottom: 0.25rem; font-size: 1rem; }
.weather-link-card p { color: var(--text-mid); font-size: 0.85rem; }

/* ─── FOOTER ─── */
.site-footer {
  background: var(--navy-dark);
  color: #b8d4ec;
  padding: 2rem 1.5rem;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem 2rem;
  align-items: center;
}
.footer-club {
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: white;
  margin-bottom: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.footer-club-logo {
  height: 32px;
  width: 32px;
  object-fit: cover;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.3);
  flex-shrink: 0;
}
.footer-address {
  font-size: 0.85rem;
  color: #7aadcc;
  margin-bottom: 0.5rem;
}
.footer-contacts {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.footer-contacts a {
  color: #b8d4ec;
  font-size: 0.875rem;
  transition: color 0.2s;
  text-decoration: none;
}
.footer-contacts a:hover { color: white; }
.footer-right {
  text-align: right;
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  align-items: flex-end;
  margin-bottom: 0.75rem;
}
.footer-links a {
  color: #b8d4ec;
  font-size: 0.875rem;
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover { color: white; text-decoration: underline; }
.footer-copy {
  font-size: 0.78rem;
  color: #456a89;
  margin-top: 0.5rem;
}

/* ─── CONDITIONS REPORT ─── */
.conditions-card {
  border: 1.5px solid var(--border);
  border-left-width: 5px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.conditions-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.conditions-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: white;
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.07em;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
}
.conditions-meta {
  font-size: 0.8rem;
  color: var(--text-light);
}
.conditions-body {
  padding: 1rem 1.25rem;
}
.conditions-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.65rem;
}
.conditions-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-mid);
  min-width: 90px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.conditions-value {
  font-weight: 600;
  color: var(--navy);
}
.conditions-report {
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.6;
  padding: 0.5rem 0 0.25rem;
}
.conditions-notes {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-mid);
  font-style: italic;
}
.conditions-footer {
  padding: 0.65rem 1.25rem;
  background: rgba(0,0,0,0.03);
  border-top: 1px solid rgba(0,0,0,0.06);
  font-size: 0.8rem;
}
.conditions-footer a { color: var(--sky); font-weight: 600; }

/* ─── UTILITIES ─── */
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.flex-gap { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 860px) {
  .nav-links { display: none; flex-direction: column; position: absolute; top: 66px; left: 0; right: 0; background: var(--navy-dark); padding: 1rem; gap: 0.1rem; border-top: 1px solid rgba(255,255,255,0.1); }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .site-nav { position: relative; }
  .two-col { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-right { text-align: left; }
  .footer-links { align-items: flex-start; }
  .compact .weather-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 540px) {
  .section { padding: 2.5rem 1rem; }
  .hero { min-height: 360px; }
  .weather-grid { grid-template-columns: 1fr 1fr; }
  .weather-main { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
  .data-table { font-size: 0.85rem; }
  .data-table th, .data-table td { padding: 0.5rem 0.6rem; }
}

/* ─── ADMIN PAGE ─── */
.admin-body {
  background: #f4f8fc;
  min-height: 100vh;
}
.admin-header {
  background: var(--navy);
  color: white;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  position: sticky;
  top: 0;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}
.admin-header-icon { font-size: 1.5rem; }
.admin-header h1 { font-family: 'Raleway', sans-serif; font-size: 1.05rem; font-weight: 700; }
.admin-header p { font-size: 0.75rem; color: #9bbdd8; }
.admin-back-link {
  margin-left: auto;
  color: #9bbdd8;
  font-size: 0.8rem;
  text-decoration: none;
  padding: 0.35rem 0.7rem;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 4px;
}
.admin-back-link:hover { color: white; border-color: rgba(255,255,255,0.4); }

.admin-screen { display: none; }
.admin-screen.active { display: block; }

.admin-login-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 64px);
  padding: 2rem 1rem;
}
.admin-login-card {
  background: white;
  border-radius: 12px;
  padding: 2rem 1.5rem;
  width: 100%;
  max-width: 360px;
  box-shadow: 0 4px 20px rgba(26,58,92,0.12);
  text-align: center;
}
.admin-login-icon { font-size: 2.5rem; margin-bottom: 0.75rem; }
.admin-login-card h2 { font-family: 'Raleway', sans-serif; color: var(--navy); margin-bottom: 0.25rem; font-size: 1.3rem; }
.admin-login-card p { color: var(--text-mid); font-size: 0.875rem; margin-bottom: 1.5rem; }
.admin-pw-input {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 1.1rem;
  text-align: center;
  letter-spacing: 0.15em;
  outline: none;
  transition: border-color 0.2s;
}
.admin-pw-input:focus { border-color: var(--sky); }
.admin-login-error {
  color: #c0392b;
  font-size: 0.85rem;
  margin-top: 0.6rem;
  min-height: 1.2em;
}

.admin-form-wrap { padding: 1rem 1rem 4rem; max-width: 560px; margin: 0 auto; }

.admin-current-card {
  background: white;
  border-radius: 12px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 2px 8px rgba(26,58,92,0.08);
  font-size: 0.875rem;
}
.admin-current-card h3 { font-family: 'Raleway', sans-serif; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.07em; color: var(--text-mid); margin-bottom: 0.6rem; }
.admin-status-row { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.3rem; }
.admin-status-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.admin-status-dot.open    { background: var(--grass); }
.admin-status-dot.caution { background: var(--amber); }
.admin-status-dot.closed  { background: #c0392b; }

.admin-form-card {
  background: white;
  border-radius: 12px;
  padding: 1.25rem;
  margin-bottom: 1rem;
  box-shadow: 0 2px 8px rgba(26,58,92,0.08);
}
.admin-form-card h3 {
  font-family: 'Raleway', sans-serif;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-mid);
  margin-bottom: 1rem;
}

.admin-status-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.5rem;
}
.admin-status-option input[type="radio"] { display: none; }
.admin-status-option label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  padding: 0.85rem 0.5rem;
  border: 2px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-mid);
  text-align: center;
  transition: all 0.15s;
}
.admin-status-option label .s-icon { font-size: 1.5rem; }
.admin-status-option input[value="open"]:checked    + label { border-color: var(--grass); background: #edfaf3; color: var(--grass); }
.admin-status-option input[value="caution"]:checked + label { border-color: var(--amber); background: #fff8e6; color: #b87200; }
.admin-status-option input[value="closed"]:checked  + label { border-color: #c0392b; background: #fdf2f0; color: #c0392b; }

label.admin-field-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-mid);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.35rem;
}
.admin-field { margin-bottom: 1rem; }
.admin-field:last-child { margin-bottom: 0; }

.admin-field input[type="text"],
.admin-field textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-family: 'Open Sans', sans-serif;
  font-size: 0.95rem;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s;
  background: white;
}
.admin-field input[type="text"]:focus,
.admin-field textarea:focus { border-color: var(--sky); }
.admin-field textarea { resize: vertical; min-height: 90px; line-height: 1.5; }

.admin-btn-submit {
  width: 100%;
  padding: 1rem;
  background: var(--navy);
  color: white;
  border: none;
  border-radius: 10px;
  font-family: 'Raleway', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.admin-btn-submit:active { transform: scale(0.98); }
.admin-btn-submit:disabled { background: #7a9ab8; cursor: not-allowed; }
.admin-btn-submit.saving { background: var(--sky); }

.admin-btn-login {
  width: 100%;
  padding: 0.9rem;
  background: var(--navy);
  color: white;
  border: none;
  border-radius: 8px;
  font-family: 'Raleway', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  margin-top: 1rem;
  transition: background 0.2s;
}
.admin-btn-login:active { background: #112540; }

.admin-toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--navy);
  color: white;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  transition: transform 0.3s ease;
  white-space: nowrap;
  z-index: 100;
}
.admin-toast.show { transform: translateX(-50%) translateY(0); }
.admin-toast.success { background: var(--grass); }
.admin-toast.error { background: #c0392b; }

.admin-logout-row {
  text-align: center;
  margin-top: 1rem;
}
.admin-btn-logout {
  background: none;
  border: none;
  color: var(--text-mid);
  font-size: 0.85rem;
  cursor: pointer;
  text-decoration: underline;
}

/* ─── WIND COMPONENTS PANEL (pilot-info.html) ─── */
.wind-comp-panel {
  margin: 1rem 0;
}
.wind-comp-loading {
  text-align: center;
  color: var(--text-mid);
  padding: 1.25rem;
  background: var(--sky-pale);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  font-style: italic;
}
.wind-comp-error {
  text-align: center;
  color: #c0392b;
  padding: 1rem 1.25rem;
  background: #fdf2f0;
  border: 1px solid #f5c6c0;
  border-radius: var(--radius);
}
.wind-comp-summary {
  background: var(--navy);
  color: white;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius);
  margin-bottom: 1rem;
  font-size: 0.95rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.wind-comp-summary strong { color: var(--amber); margin-right: 0.4rem; }
.wind-comp-updated {
  font-size: 0.75rem;
  color: #9bbdd8;
  font-weight: 400;
}
.wind-comp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}
.wind-comp-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-left: 5px solid var(--grass);
  border-radius: var(--radius-lg);
  padding: 1rem 1.25rem;
  box-shadow: var(--shadow);
  position: relative;
}
.wind-comp-card.caution { border-left-color: var(--amber); background: #fffbf0; }
.wind-comp-card.severe  { border-left-color: #c0392b;     background: #fdf2f0; }
.wind-comp-card.recommended {
  outline: 2px solid var(--amber);
  outline-offset: -1px;
  box-shadow: 0 4px 16px rgba(232,166,35,0.25);
}
.wind-comp-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}
.wind-comp-rwy {
  font-family: 'Raleway', sans-serif;
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--navy);
  letter-spacing: 0.04em;
}
.wind-comp-badge {
  background: var(--amber);
  color: var(--navy-dark);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
}
.wind-comp-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.3rem 0;
  font-size: 0.95rem;
}
.wind-comp-label {
  color: var(--text-mid);
  font-weight: 600;
}
.wind-comp-value {
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  color: var(--navy);
  font-size: 1rem;
}
.wind-comp-warn {
  margin-top: 0.6rem;
  padding: 0.45rem 0.75rem;
  border-radius: var(--radius);
  font-size: 0.82rem;
  font-weight: 600;
}
.wind-comp-warn.caution { background: var(--amber-pale); color: #8a5a00; border: 1px solid #f0d68a; }
.wind-comp-warn.severe  { background: #fdf2f0;         color: #8b1e10; border: 1px solid #f5c6c0; }
.wind-comp-disclaimer {
  margin-top: 0.9rem;
  font-size: 0.8rem;
  color: var(--text-light);
  font-style: italic;
}
