/* =========================================================
   Kentucky Exploration — Main Stylesheet
   Theme: Bluegrass Blue #1a3a5c + Kentucky Gold #c8972a
   ========================================================= */

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

:root {
  --blue:       #1a3a5c;
  --blue-dark:  #0f2540;
  --blue-mid:   #244e7a;
  --gold:       #c8972a;
  --gold-light: #e2b04a;
  --gold-pale:  #f5e7c6;
  --cream:      #faf7f2;
  --text:       #2d2d2d;
  --text-light: #6b6b6b;
  --white:      #ffffff;
  --radius:     10px;
  --shadow:     0 4px 20px rgba(0,0,0,.12);
  --shadow-lg:  0 8px 40px rgba(0,0,0,.18);

  /* Category colors */
  --cat-historical:    #5b3f1e;
  --cat-memorial:      #1a3a5c;
  --cat-oddity:        #6b2d6b;
  --cat-attraction:    #c8972a;
  --cat-nature:        #2d6b2d;
  --cat-landmark:      #1a5c5c;
  --cat-archaeological:#7a4a1a;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: var(--cream);
  line-height: 1.65;
  overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: 'Playfair Display', serif; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* ---- Utility ---- */
.gold { color: var(--gold); }
.section-eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .5rem;
}
.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 2.5rem;
  padding: 0 1rem;
}
.section-header h2 { font-size: 2.2rem; color: var(--blue); margin-bottom: .6rem; }
.section-sub { color: var(--text-light); font-size: .95rem; }
.hidden { display: none !important; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .75rem 1.75rem;
  border-radius: var(--radius);
  font-family: 'Inter', sans-serif;
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s ease;
  border: 2px solid transparent;
}
.btn-primary {
  background: var(--gold);
  color: var(--blue-dark);
  border-color: var(--gold);
}
.btn-primary:hover { background: var(--gold-light); border-color: var(--gold-light); transform: translateY(-1px); box-shadow: 0 4px 14px rgba(200,151,42,.4); }
.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.6);
}
.btn-outline:hover { background: rgba(255,255,255,.15); border-color: var(--white); }

/* =========================================================
   HEADER
   ========================================================= */
#site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(15,37,64,.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(200,151,42,.2);
  transition: box-shadow .3s;
}
#site-header.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,.3); }

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

.site-logo {
  display: flex;
  align-items: center;
  gap: .6rem;
  color: var(--white);
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
}
.logo-icon { color: var(--gold); font-size: 1.4rem; }
.logo-text strong { color: var(--gold); }

.main-nav { display: flex; gap: 2rem; }
.main-nav a {
  color: rgba(255,255,255,.8);
  font-size: .88rem;
  font-weight: 500;
  letter-spacing: .02em;
  transition: color .2s;
  position: relative;
  padding-bottom: 2px;
}
.main-nav a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 2px;
  background: var(--gold);
  transition: width .2s;
}
.main-nav a:hover { color: var(--gold); }
.main-nav a:hover::after { width: 100%; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span { display: block; width: 24px; height: 2px; background: var(--white); transition: all .3s; border-radius: 2px; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =========================================================
   HERO
   ========================================================= */
#hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue-mid) 60%, #1a5c3a 100%);
  overflow: hidden;
  padding-top: 64px;
}

#hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(200,151,42,.08) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 30%, rgba(26,92,58,.12) 0%, transparent 50%),
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23c8972a' fill-opacity='0.04'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10,25,40,.35);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2rem 1.5rem;
  max-width: 800px;
}

.hero-eyebrow {
  color: var(--gold);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
}

.hero-content h1 {
  font-size: clamp(2.5rem, 7vw, 5rem);
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 1.25rem;
  text-shadow: 0 2px 20px rgba(0,0,0,.3);
}

.hero-sub {
  color: rgba(255,255,255,.82);
  font-size: clamp(.95rem, 2vw, 1.15rem);
  max-width: 580px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}

.hero-cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-bottom: 3rem; }

.hero-stats {
  display: flex;
  gap: 3rem;
  justify-content: center;
  border-top: 1px solid rgba(255,255,255,.15);
  padding-top: 2rem;
}
.stat { display: flex; flex-direction: column; align-items: center; gap: .2rem; }
.stat-num { font-family: 'Playfair Display', serif; font-size: 2rem; color: var(--gold); font-weight: 700; }
.stat-label { font-size: .75rem; color: rgba(255,255,255,.6); text-transform: uppercase; letter-spacing: .08em; }

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  animation: bounce 2s infinite;
}
.hero-scroll a { color: rgba(255,255,255,.5); font-size: 1.2rem; transition: color .2s; }
.hero-scroll a:hover { color: var(--gold); }

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* =========================================================
   MAP SECTION
   ========================================================= */
#map-section {
  padding: 5rem 0 0;
  background: var(--cream);
}

/* Filter Bar */
#filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  justify-content: center;
  padding: 0 1rem 1.25rem;
  max-width: 1000px;
  margin: 0 auto;
}

.filter-btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .5rem 1.1rem;
  border: 2px solid rgba(26,58,92,.2);
  border-radius: 50px;
  background: var(--white);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: .82rem;
  font-weight: 500;
  cursor: pointer;
  transition: all .2s ease;
}
.filter-btn:hover { border-color: var(--gold); color: var(--gold); }
.filter-btn.active {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--white);
}
.filter-btn i { font-size: .8rem; }

/* Search Bar */
#search-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: 700px;
  margin: 0 auto 1.25rem;
  padding: 0 1rem;
}
.search-wrap {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
}
.search-icon { position: absolute; left: 1rem; color: var(--text-light); font-size: .9rem; pointer-events: none; }
#search-input {
  width: 100%;
  padding: .7rem 2.8rem .7rem 2.6rem;
  border: 2px solid rgba(26,58,92,.2);
  border-radius: 50px;
  font-family: 'Inter', sans-serif;
  font-size: .9rem;
  background: var(--white);
  transition: border-color .2s;
  outline: none;
  color: var(--text);
}
#search-input:focus { border-color: var(--gold); }
#search-clear {
  position: absolute;
  right: .75rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-light);
  font-size: .85rem;
  padding: .3rem;
  display: none;
}
#search-input:not(:placeholder-shown) ~ #search-clear { display: block; }
#result-count {
  white-space: nowrap;
  font-size: .82rem;
  color: var(--text-light);
  font-weight: 500;
}

/* Map Container */
#map-container {
  position: relative;
  width: 100%;
}
#google-map {
  width: 100%;
  height: 640px;
  background: #e8e4dc;
}

/* Location Detail Panel */
#location-panel {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 320px;
  max-height: calc(100% - 2rem);
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 1.5rem;
  overflow-y: auto;
  z-index: 500;
  animation: slideIn .25s ease;
}
@keyframes slideIn {
  from { transform: translateX(20px); opacity: 0; }
  to   { transform: translateX(0);    opacity: 1; }
}
#panel-close {
  position: absolute;
  top: .75rem; right: .75rem;
  background: rgba(0,0,0,.06);
  border: none;
  border-radius: 50%;
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  color: var(--text-light);
  transition: background .2s;
}
#panel-close:hover { background: rgba(0,0,0,.12); color: var(--text); }

#panel-category-badge {
  display: inline-block;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .3rem .75rem;
  border-radius: 50px;
  margin-bottom: .75rem;
  color: var(--white);
}
#panel-name {
  font-size: 1.25rem;
  color: var(--blue);
  margin-bottom: .5rem;
  line-height: 1.3;
}
#panel-county {
  font-size: .82rem;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: .35rem;
  margin-bottom: .85rem;
}
#panel-county i { color: var(--gold); }
#panel-description {
  font-size: .88rem;
  color: var(--text);
  line-height: 1.65;
  margin-bottom: 1rem;
}
#panel-tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1rem; }
.panel-tag {
  font-size: .72rem;
  padding: .25rem .6rem;
  border-radius: 50px;
  background: var(--gold-pale);
  color: var(--blue);
  font-weight: 500;
}
#panel-links a {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .82rem;
  font-weight: 600;
  color: var(--blue);
  border-bottom: 1px solid var(--gold);
  transition: color .2s;
}
#panel-links a:hover { color: var(--gold); }

/* =========================================================
   ABOUT SECTION
   ========================================================= */
#about-section {
  padding: 6rem 1.5rem;
  background: var(--white);
}
.about-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.about-text .section-header { text-align: left; margin-bottom: 1.5rem; padding: 0; }
.about-text h2 { font-size: 2.2rem; color: var(--blue); margin-bottom: 1rem; }
.about-text p { color: var(--text-light); margin-bottom: 1rem; font-size: .95rem; }
.about-features { margin-top: 1.5rem; display: flex; flex-direction: column; gap: .85rem; }
.af-item { display: flex; align-items: flex-start; gap: .75rem; }
.af-item i { color: var(--gold); font-size: 1rem; margin-top: 3px; flex-shrink: 0; }
.af-item span { font-size: .88rem; color: var(--text); }

.about-image { display: flex; justify-content: center; }
.about-img-card {
  background: linear-gradient(135deg, var(--blue-dark), var(--blue-mid));
  border-radius: 16px;
  padding: 2.5rem 2rem;
  text-align: center;
  color: var(--white);
  box-shadow: var(--shadow-lg);
  max-width: 320px;
  width: 100%;
}
.about-map-icon {
  font-size: 4rem;
  color: var(--gold);
  margin-bottom: 1rem;
  display: block;
}
.about-img-text strong { display: block; font-family: 'Playfair Display', serif; font-size: 1.6rem; color: var(--gold); }
.about-img-text span { font-size: .85rem; color: rgba(255,255,255,.7); }
.about-counties {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
  justify-content: center;
  border-top: 1px solid rgba(255,255,255,.15);
  padding-top: 1.25rem;
}
.county-stat { display: flex; flex-direction: column; align-items: center; gap: .15rem; }
.county-stat span { font-family: 'Playfair Display', serif; font-size: 1.4rem; color: var(--gold); font-weight: 700; }
.county-stat { font-size: .7rem; color: rgba(255,255,255,.6); }

/* =========================================================
   FEATURED SECTION
   ========================================================= */
#featured-section {
  padding: 5rem 1.5rem;
  background: var(--cream);
}
#featured-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}
.feat-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .25s ease, box-shadow .25s ease;
  cursor: pointer;
}
.feat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.feat-card-header {
  padding: 1.5rem 1.5rem .75rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.feat-card-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  color: var(--white);
  flex-shrink: 0;
}
.feat-card-meta { flex: 1; }
.feat-card-badge {
  display: inline-block;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .2rem .55rem;
  border-radius: 50px;
  margin-bottom: .35rem;
  color: var(--white);
}
.feat-card-meta h3 { font-size: 1.05rem; color: var(--blue); line-height: 1.3; }
.feat-card-body { padding: 0 1.5rem 1.5rem; }
.feat-card-county {
  font-size: .78rem;
  color: var(--text-light);
  display: flex; align-items: center; gap: .3rem;
  margin-bottom: .5rem;
}
.feat-card-county i { color: var(--gold); }
.feat-card-desc { font-size: .84rem; color: var(--text-light); line-height: 1.6; }
.feat-card-action {
  display: inline-flex; align-items: center; gap: .35rem;
  font-size: .8rem; font-weight: 600; color: var(--blue);
  margin-top: .75rem;
  border-bottom: 1px solid var(--gold);
  transition: color .2s;
}
.feat-card:hover .feat-card-action { color: var(--gold); }

/* =========================================================
   CONTACT SECTION
   ========================================================= */
#contact-section {
  padding: 6rem 1.5rem;
  background: linear-gradient(135deg, var(--blue-dark), var(--blue-mid));
  text-align: center;
  color: var(--white);
}
.contact-inner { max-width: 600px; margin: 0 auto; }
.contact-inner .section-eyebrow { color: var(--gold-light); }
.contact-inner h2 { font-size: 2.2rem; color: var(--white); margin-bottom: 1rem; }
.contact-inner p { color: rgba(255,255,255,.75); margin-bottom: 2rem; font-size: .95rem; }

/* =========================================================
   FOOTER
   ========================================================= */
#site-footer {
  background: var(--blue-dark);
  padding: 2.5rem 1.5rem;
  text-align: center;
  color: rgba(255,255,255,.5);
  border-top: 1px solid rgba(200,151,42,.2);
}
.footer-inner { max-width: 600px; margin: 0 auto; }
.footer-brand {
  display: flex; align-items: center; justify-content: center; gap: .6rem;
  color: var(--gold);
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  margin-bottom: .5rem;
}
.footer-tagline { font-size: .85rem; margin-bottom: .5rem; }
.footer-copy { font-size: .78rem; }

/* =========================================================
   GOOGLE MAPS CUSTOM STYLES
   ========================================================= */
/* Custom info window styling */
.gm-style .gm-style-iw-c {
  border-radius: 10px !important;
  padding: 0 !important;
  box-shadow: 0 4px 20px rgba(0,0,0,.2) !important;
}
.gm-style .gm-style-iw-d { overflow: hidden !important; padding: 0 !important; }
.gm-style .gm-style-iw-t::after { display: none !important; }
.gm-ui-hover-effect { top: 6px !important; right: 6px !important; }

.map-popup {
  font-family: 'Inter', sans-serif;
  padding: 1rem 1.25rem 1rem;
  max-width: 240px;
}
.map-popup-cat {
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .2rem .55rem;
  border-radius: 50px;
  color: var(--white);
  display: inline-block;
  margin-bottom: .5rem;
}
.map-popup h4 {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  color: var(--blue);
  margin-bottom: .3rem;
  line-height: 1.3;
}
.map-popup-county { font-size: .75rem; color: var(--text-light); margin-bottom: .4rem; }
.map-popup p { font-size: .8rem; color: var(--text-light); line-height: 1.55; margin-bottom: .6rem; }
.map-popup-more {
  font-size: .78rem;
  font-weight: 600;
  color: var(--blue);
  border-bottom: 1px solid var(--gold);
  cursor: pointer;
  transition: color .2s;
}
.map-popup-more:hover { color: var(--gold); }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 900px) {
  .about-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .about-image { order: -1; }
  .about-img-card { max-width: 100%; }
}

@media (max-width: 768px) {
  .main-nav {
    display: none;
    position: fixed;
    top: 64px; left: 0; right: 0;
    background: var(--blue-dark);
    flex-direction: column;
    gap: 0;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(200,151,42,.2);
    z-index: 999;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: .85rem 2rem; border-bottom: 1px solid rgba(255,255,255,.06); }
  .main-nav a::after { display: none; }
  .hamburger { display: flex; }

  #google-map { height: 420px; }
  #location-panel { width: calc(100% - 2rem); right: 1rem; top: auto; bottom: 1rem; max-height: 55%; }
  .hero-stats { gap: 1.5rem; }
  #filter-bar { gap: .4rem; }
  .filter-btn { font-size: .75rem; padding: .4rem .85rem; }
}

@media (max-width: 480px) {
  .hero-content h1 { font-size: 2.4rem; }
  .hero-cta { flex-direction: column; align-items: center; }
  .hero-stats { flex-direction: row; gap: 1rem; }
  .stat-num { font-size: 1.5rem; }
  #featured-grid { grid-template-columns: 1fr; }
}
