/* ============================================================
   Tellico Lake Virtual Tour — Site Styles
   ============================================================ */

/* ── Variables ─────────────────────────────────────────────── */
:root {
  --navy:        #0a2342;
  --navy-light:  #13345e;
  --lake-blue:   #1a6fa8;
  --lake-mid:    #2a8fc7;
  --lake-light:  #e8f4fb;
  --teal:        #0d8a7f;
  --white:       #ffffff;
  --off-white:   #f7fafc;
  --text:        #1e293b;
  --text-light:  #4a5568;
  --border:      #d1dde8;
  --hazard-red:  #c0001a;
  --hazard-bg:   #fff0f0;
  --submerged-bg:#fff8e8;
  --poi-green:   #1a6b3a;
  --poi-bg:      #f0faf4;
  --coming-soon-bg: #f1f5f9;
  --coming-soon-border: #cbd5e1;
  --shadow:      0 2px 8px rgba(10,35,66,0.10);
  --shadow-md:   0 4px 16px rgba(10,35,66,0.14);
  --radius:      8px;
  --radius-lg:   12px;
}

/* ── Reset & Base ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--off-white);
}

a { color: var(--lake-blue); text-decoration: none; }
a:hover { text-decoration: underline; color: var(--navy); }

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

/* ── Layout Helpers ─────────────────────────────────────────── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section { padding: 2.5rem 0; }
.section + .section { border-top: 1px solid var(--border); }

/* ── Site Header ────────────────────────────────────────────── */
.site-header {
  background: var(--navy);
  color: var(--white);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 900;
  box-shadow: var(--shadow-md);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.site-logo .logo-icon {
  font-size: 1.5rem;
}

.site-logo .logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.site-logo .logo-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.01em;
}

.site-logo .logo-tagline {
  font-size: 0.68rem;
  color: #a8c4e0;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.site-nav a {
  color: #c8ddf0;
  font-size: 0.85rem;
  padding: 0.35rem 0.65rem;
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}

.site-nav a:hover,
.site-nav a.active {
  background: var(--navy-light);
  color: var(--white);
}

.audio-btn {
  background: none;
  border: 1px solid #4a7ca8;
  color: #c8ddf0;
  border-radius: 4px;
  padding: 0.3rem 0.6rem;
  font-size: 0.82rem;
  cursor: pointer;
  transition: all 0.15s;
  margin-left: 0.5rem;
}

.audio-btn:hover { background: var(--navy-light); color: var(--white); }

/* ── Disclaimer Banner (Home Page) ─────────────────────────── */
.disclaimer-banner {
  background: #7a1a00;
  color: #ffeedd;
  padding: 0.65rem 0;
  font-size: 0.82rem;
  text-align: center;
  line-height: 1.4;
}

.disclaimer-banner strong { color: #ffcaaa; }
.disclaimer-banner a { color: #ffcaaa; text-decoration: underline; }
.disclaimer-banner a:hover { color: #ffffff; }

/* ── Hero / Page Title ──────────────────────────────────────── */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 60%, #1a4a7a 100%);
  color: var(--white);
  padding: 2.5rem 0 2rem;
}

.page-hero h1 {
  font-size: 1.9rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 0.3rem;
}

.page-hero .subtitle {
  color: #a8c4e0;
  font-size: 1rem;
}

.page-hero .breadcrumb {
  font-size: 0.8rem;
  color: #7bafd0;
  margin-bottom: 0.6rem;
}

.page-hero .breadcrumb a { color: #7bafd0; }
.page-hero .breadcrumb a:hover { color: var(--white); }

/* ── Segment Navigation Bar ─────────────────────────────────── */
.segment-nav {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 0;
}

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

.seg-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 1rem;
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.15s;
}

.seg-nav-btn:hover { background: var(--lake-blue); color: var(--white); text-decoration: none; }
.seg-nav-btn.disabled {
  background: var(--coming-soon-bg);
  color: var(--text-light);
  pointer-events: none;
}

.seg-nav-label {
  font-size: 0.78rem;
  color: var(--text-light);
  text-align: center;
}

/* ── Leaflet Map ────────────────────────────────────────────── */
#lake-map {
  height: 500px;
  width: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  z-index: 1;
}

.map-section {
  padding: 2rem 0;
  background: var(--white);
}

.map-section h2 {
  font-size: 1.3rem;
  color: var(--navy);
  margin-bottom: 1rem;
}

.map-legend {
  display: flex;
  gap: 1.5rem;
  margin-top: 0.75rem;
  font-size: 0.82rem;
  color: var(--text-light);
  flex-wrap: wrap;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.legend-swatch {
  width: 24px;
  height: 4px;
  border-radius: 2px;
}

.legend-swatch.active { background: var(--lake-blue); }
.legend-swatch.coming-soon { background: #94a3b8; }

/* ── Video Embed ─────────────────────────────────────────────── */
.video-container {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  background: #000;
}

.video-container iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: none;
}

.video-label {
  font-size: 0.78rem;
  color: var(--text-light);
  margin-top: 0.5rem;
  font-style: italic;
}

.temp-note {
  background: #fffbea;
  border: 1px solid #f0c040;
  border-radius: var(--radius);
  padding: 0.6rem 0.9rem;
  font-size: 0.82rem;
  color: #7a5c00;
  margin-top: 0.6rem;
}

/* ── Coming Soon Card ───────────────────────────────────────── */
.coming-soon-card {
  background: var(--coming-soon-bg);
  border: 2px dashed var(--coming-soon-border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  color: var(--text-light);
}

.coming-soon-card .cs-icon { font-size: 2rem; margin-bottom: 0.5rem; }
.coming-soon-card .cs-title { font-size: 1rem; font-weight: 600; color: var(--text); margin-bottom: 0.25rem; }
.coming-soon-card .cs-note { font-size: 0.82rem; }

/* ── Section Headers ────────────────────────────────────────── */
.section-header {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.section-header h2 {
  font-size: 1.35rem;
  color: var(--navy);
  font-weight: 700;
}

.section-header .count-badge {
  background: var(--lake-light);
  color: var(--lake-blue);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: 99px;
}

/* ── POI Cards ──────────────────────────────────────────────── */
.poi-list { display: flex; flex-direction: column; gap: 1.25rem; }

.poi-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 4px solid var(--poi-green);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow);
}

.poi-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.poi-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
}

.mile-badge {
  background: var(--lake-light);
  color: var(--lake-blue);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 99px;
  white-space: nowrap;
  flex-shrink: 0;
}

.poi-card p {
  font-size: 0.92rem;
  color: var(--text);
  line-height: 1.65;
  margin-bottom: 0.75rem;
}

.poi-card p:last-child { margin-bottom: 0; }

.gps-link {
  font-size: 0.78rem;
  color: var(--text-light);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: 0.5rem;
}

.external-link-tag {
  font-size: 0.78rem;
  background: var(--lake-light);
  color: var(--lake-blue);
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  margin-top: 0.5rem;
  display: inline-block;
}

/* ── Hazard Cards ───────────────────────────────────────────── */
.hazard-list { display: flex; flex-direction: column; gap: 1.25rem; }

.hazard-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 4px solid var(--hazard-red);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow);
}

.hazard-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.4rem;
}

.hazard-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--hazard-red);
}

.hazard-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.hazard-type-badge {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border-radius: 99px;
}

.hazard-type-badge.submerged {
  background: #fff3cd;
  color: #856404;
  border: 1px solid #ffc107;
}

.hazard-type-badge.navigation {
  background: #fde8e8;
  color: #9b1c1c;
  border: 1px solid #f87171;
}

.hazard-card p {
  font-size: 0.92rem;
  color: var(--text);
  line-height: 1.65;
  margin-bottom: 0.75rem;
}

.hazard-disclaimer-note {
  background: var(--hazard-bg);
  border: 1px solid #f5a0a0;
  border-radius: 6px;
  padding: 0.5rem 0.75rem;
  font-size: 0.78rem;
  color: #7a2020;
  margin-top: 0.75rem;
}

.pool-media-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 0.75rem;
}

.pool-media-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.4rem;
}

/* ── Community / About Strip ────────────────────────────────── */
.community-strip {
  background: var(--lake-light);
  border-top: 1px solid #b8d8ef;
  padding: 1.5rem 0;
  text-align: center;
}

.community-strip p {
  font-size: 0.9rem;
  color: var(--navy);
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.6;
}

.community-strip a { color: var(--lake-blue); font-weight: 500; }

/* ── Segment List (home page) ───────────────────────────────── */
.segments-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.segment-tile {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow);
  transition: box-shadow 0.15s, border-color 0.15s;
  text-decoration: none;
  color: var(--text);
}

.segment-tile:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--lake-blue);
  text-decoration: none;
}

.segment-tile.built { cursor: pointer; }

.segment-tile.coming-soon {
  opacity: 0.6;
  cursor: default;
  pointer-events: none;
}

.segment-tile .tile-miles {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
}

.segment-tile .tile-name {
  font-size: 0.8rem;
  color: var(--text-light);
}

.segment-tile .tile-status {
  font-size: 0.72rem;
  padding: 0.2rem 0.6rem;
  border-radius: 99px;
  font-weight: 600;
}

.tile-status.built { background: #d1fae5; color: #065f46; }
.tile-status.coming-soon { background: var(--coming-soon-bg); color: var(--text-light); }

/* ── Generic Page Sections ──────────────────────────────────── */
.content-page {
  max-width: 780px;
  margin: 2rem auto;
  padding: 0 1.25rem 3rem;
}

.content-page h2 {
  font-size: 1.3rem;
  color: var(--navy);
  margin: 1.75rem 0 0.5rem;
}

.content-page h3 {
  font-size: 1.05rem;
  color: var(--navy);
  margin: 1.25rem 0 0.4rem;
}

.content-page p {
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 0.75rem;
}

.content-page ul {
  padding-left: 1.4rem;
  margin-bottom: 0.75rem;
}

.content-page ul li {
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.6;
  margin-bottom: 0.3rem;
}

/* ── Disclaimer Page ─────────────────────────────────────────── */
.disclaimer-box {
  background: #fff7f7;
  border: 2px solid var(--hazard-red);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin: 1.5rem 0;
}

.disclaimer-box h2 {
  color: var(--hazard-red);
  font-size: 1.1rem;
  margin-top: 0;
}

/* ── Footer ──────────────────────────────────────────────────── */
.site-footer {
  background: var(--navy);
  color: #8ab0cc;
  padding: 1.5rem 0;
  font-size: 0.82rem;
  margin-top: auto;
}

.site-footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.site-footer a { color: #a8c4de; text-decoration: underline; }
.site-footer a:hover { color: var(--white); }

/* ── Book a Tour / Coming Soon Page ─────────────────────────── */
.placeholder-page {
  text-align: center;
  padding: 4rem 1rem;
}

.placeholder-page .ph-icon { font-size: 3rem; margin-bottom: 1rem; }
.placeholder-page h2 { color: var(--navy); margin-bottom: 0.75rem; }
.placeholder-page p { color: var(--text-light); max-width: 520px; margin: 0 auto 1rem; }

/* ── Utilities ──────────────────────────────────────────────── */
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-2 { margin-bottom: 1rem; }

.btn {
  display: inline-block;
  padding: 0.55rem 1.25rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s;
  cursor: pointer;
  border: none;
}

.btn-primary { background: var(--lake-blue); color: var(--white); }
.btn-primary:hover { background: var(--navy); color: var(--white); text-decoration: none; }

.btn-outline {
  background: transparent;
  color: var(--lake-blue);
  border: 1.5px solid var(--lake-blue);
}

.btn-outline:hover { background: var(--lake-light); text-decoration: none; }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 768px) {
  .site-header .container { height: auto; padding: 0.6rem 1rem; flex-wrap: wrap; gap: 0.5rem; }
  .site-nav { flex-wrap: wrap; gap: 0.1rem; }
  .site-nav a { font-size: 0.78rem; padding: 0.25rem 0.45rem; }
  #lake-map { height: 340px; }
  .pool-media-grid { grid-template-columns: 1fr; }
  .page-hero h1 { font-size: 1.4rem; }
  .segments-grid { grid-template-columns: 1fr; }
  .segment-nav .container { flex-wrap: wrap; justify-content: center; }
}
