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

:root {
  --navy: #005398;
  --navy-dark: #193C53;
  --navy-deeper: #0a2334;
  --navy-card: #00295e;
  --yellow: #FFC810;
  --orange: #EC6625;
  --orange-hover: #c35500;
  --brown-section: #864E2E;
  --brown-card: #6E4125;
  --white: #ffffff;
  --cream: #F1E5E2;
  --font-display: 'Baloo 2', cursive;
  --font-body: 'Nunito', sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--navy);
  color: var(--white);
  overflow-x: hidden;
}

/* NAV */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 32px;
  background: var(--navy-dark);
  border-bottom: 2px solid rgba(245, 197, 24, 0.15);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--yellow);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
}

.nav-logo .logo-placeholder {
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-logo .logo-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--cream);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  position: relative;
  transition: color 0.2s ease;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--yellow);
  transition: width 0.25s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--yellow);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

/* HERO */
.sightings-page-hero {
  max-width: 850px;
  margin: 0 auto;
  padding: 150px 32px 50px;
  text-align: center;
}

.sightings-eyebrow {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  margin-bottom: 10px;
}

.sightings-page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4rem);
  color: var(--yellow);
  line-height: 1;
  margin-bottom: 16px;
}

.sightings-page-intro {
  max-width: 620px;
  margin: 0 auto;
  font-size: 1rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.84);
}

/* FEATURED */
.featured-sighting {
  max-width: 1000px;
  margin: 0 auto;
  padding: 10px 32px 60px;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 28px;
  align-items: center;
}

.featured-sighting-text {
  background: var(--brown-card);
  border-radius: 20px;
  padding: 30px;
  border: 1px solid rgba(245, 197, 24, 0.08);
}

.sighting-label {
  display: inline-block;
  margin-bottom: 12px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 200, 16, 0.15);
  color: var(--yellow);
  font-size: 0.78rem;
  font-weight: 700;
}

.featured-sighting-text h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--yellow);
  margin-bottom: 12px;
}

.featured-sighting-text p {
  font-size: 0.95rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.84);
  margin-bottom: 20px;
}

.btn-primary {
  display: inline-block;
  padding: 12px 32px;
  background: var(--orange);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.15s ease;
}

.btn-primary:hover {
  background: var(--orange-hover);
  transform: translateY(-1px);
}

.featured-sighting-thumb,
.sightings-library-card {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 18px;
  text-decoration: none;
  color: var(--white);
  background: rgba(0, 0, 0, 0.18);
  border: 2px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  appearance: none;
  padding: 0;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.featured-sighting-thumb:hover,
.sightings-library-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.24);
  border-color: rgba(255, 255, 255, 0.2);
}

.featured-sighting-thumb img,
.sightings-library-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.map-pin-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(10, 35, 52, 0.78);
  color: var(--yellow);
  font-size: 0.78rem;
  font-weight: 700;
}

/* GRID */
.sightings-library {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 32px 90px;
}

.sightings-library-header {
  text-align: center;
  margin-bottom: 28px;
}

.sightings-library-header h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--yellow);
  margin-bottom: 8px;
}

.sightings-library-header p {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.95rem;
}

.sightings-library-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.sightings-library-info {
  padding: 16px 16px 18px;
  background: var(--brown-card);
}

.sightings-library-info h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--yellow);
  margin-bottom: 4px;
}

.sightings-library-info p {
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.8);
}

/* MODAL */
.map-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: none;
}

.map-modal.open {
  display: block;
}

.map-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 35, 52, 0.76);
  backdrop-filter: blur(4px);
}

.map-modal-content {
  position: relative;
  width: min(92vw, 900px);
  margin: 6vh auto 0;
  background: var(--cream);
  border-radius: 20px;
  overflow: hidden;
  z-index: 1;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
}

.map-modal-header {
  padding: 18px 22px 14px;
}

.map-modal-header h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--navy);
  margin-bottom: 4px;
}

.map-modal-header p {
  color: rgba(10, 35, 52, 0.7);
  font-size: 0.95rem;
}

.map-frame-wrap {
  width: 100%;
  height: 460px;
  background: #ddd;
}

.map-frame-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.map-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 50%;
  background: var(--orange);
  color: var(--white);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
  transition: background 0.2s ease, transform 0.2s ease;
}

.map-modal-close:hover {
  background: var(--orange-hover);
  transform: scale(1.05);
}

.map-modal-close:focus-visible,
.sighting-card:focus-visible,
.map-launch-btn:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 4px;
}

/* FOOTER */
.site-footer {
  background: var(--navy-deeper);
  border-top: 2px solid rgba(245, 197, 24, 0.12);
  padding: 48px 32px 24px;
}

.footer-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 36px;
}

.footer-brand h3,
.footer-links h4,
.footer-note h4 {
  font-family: var(--font-display);
  color: var(--yellow);
}

.footer-brand h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.footer-links h4,
.footer-note h4 {
  font-size: 1.1rem;
  margin-bottom: 12px;
}

.footer-logo {
  width: 54px;
  height: 54px;
  object-fit: contain;
  margin-bottom: 12px;
}

.footer-brand p,
.footer-note p,
.footer-links a,
.footer-bottom p {
  font-size: 0.9rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.8);
}

.footer-links ul {
  list-style: none;
}

.footer-links li + li {
  margin-top: 8px;
}

.footer-links a {
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--yellow);
}

.footer-source {
  margin-top: 10px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.58);
}

.footer-bottom {
  max-width: 1000px;
  margin: 28px auto 0;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.footer-bottom p {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.58);
}

/* RESPONSIVE */
@media (max-width: 800px) {
  .featured-sighting {
    grid-template-columns: 1fr;
  }

  .sightings-library-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-logo {
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 640px) {
  .nav-links {
    gap: 16px;
  }

  .nav-links a {
    font-size: 0.75rem;
  }

  .sightings-page-hero {
    padding-top: 130px;
  }

  .map-modal-content {
    width: min(94vw, 900px);
    margin-top: 8vh;
  }

  .map-modal-header h3 {
    font-size: 1.25rem;
  }

  .map-frame-wrap {
    height: 320px;
  }
}