/* ==========================================================================
   FlagBaseCamp — shared styles
   ========================================================================== */

:root {
  --pine: #2c4a36;
  --pine-dark: #1f3526;
  --charcoal: #262420;
  --cream: #f7f3ec;
  --cream-deep: #efe8da;
  --wood: #8c5e3c;
  --amber: #c9893b;
  --amber-dark: #b3762e;
  --text-muted: #5a564f;
  --radius: 14px;
  --shadow: 0 8px 24px rgba(38, 36, 32, 0.12);
  --max-width: 1140px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--cream);
  color: var(--charcoal);
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--pine-dark);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1em; color: var(--text-muted); }

a { color: var(--pine); text-decoration: none; }
a:hover { color: var(--amber-dark); }

img { max-width: 100%; display: block; border-radius: var(--radius); }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header / nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 243, 236, 0.95);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(38, 36, 32, 0.08);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--pine-dark);
  letter-spacing: 0.01em;
}

.logo span { color: var(--amber); }

.logo img {
  height: 124px;
  width: auto;
  display: block;
  border-radius: 0;
}

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}

.nav-links a {
  color: var(--charcoal);
  font-weight: 500;
  font-size: 0.95rem;
}

.nav-cta {
  background: var(--pine);
  color: #fff !important;
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 600;
}

.nav-cta:hover { background: var(--pine-dark); color: #fff !important; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--pine-dark);
}

@media (max-width: 760px) {
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--cream);
    flex-direction: column;
    gap: 0;
    border-bottom: 1px solid rgba(38,36,32,0.08);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a {
    display: block;
    padding: 16px 24px;
    border-top: 1px solid rgba(38,36,32,0.06);
  }
  .nav-cta { margin: 16px 24px; text-align: center; }
  .nav-toggle { display: block; }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary { background: var(--amber); color: #fff; }
.btn-primary:hover { background: var(--amber-dark); color: #fff; }

.btn-outline {
  background: transparent;
  border-color: var(--cream);
  color: #fff;
}
.btn-outline:hover { background: rgba(255,255,255,0.12); color: #fff; }

.btn-outline-dark {
  background: transparent;
  border-color: var(--pine);
  color: var(--pine);
}
.btn-outline-dark:hover { background: rgba(44,74,54,0.08); color: var(--pine); }

.btn-secondary {
  background: var(--pine);
  color: #fff;
}
.btn-secondary:hover { background: var(--pine-dark); color: #fff; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 8px;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 76vh;
  display: flex;
  align-items: center;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(31,53,38,0.55) 0%, rgba(31,53,38,0.78) 100%),
    var(--pine-dark);
  overflow: hidden;
}

.hero-bg-note {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.55;
  z-index: 0;
}

.hero .container { position: relative; z-index: 1; }

.hero h1 { color: #fff; }

.hero .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--amber);
  margin-bottom: 14px;
}

.hero .lede {
  font-size: 1.2rem;
  color: rgba(255,255,255,0.92);
  max-width: 640px;
}

/* ---------- Sections ---------- */

.section {
  padding: 80px 0;
}

.section-alt { background: var(--cream-deep); }

.section-flex {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

@media (max-width: 800px) {
  .section-flex { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
}

.section-flex.reverse .copy { order: 2; }
.section-flex.reverse .media { order: 1; }

@media (max-width: 800px) {
  .section-flex.reverse .copy,
  .section-flex.reverse .media { order: initial; }
}

.media-placeholder {
  background: var(--cream-deep);
  border: 1px dashed var(--wood);
  border-radius: var(--radius);
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.media-placeholder strong {
  display: block;
  color: var(--pine-dark);
  margin-bottom: 6px;
  font-family: 'Fraunces', Georgia, serif;
}

.media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.media-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.media-grid img.full {
  grid-column: 1 / -1;
}

.photo-card {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #fff;
}

.photo-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 0;
  display: block;
}

.photo-card figcaption {
  padding: 10px 14px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
}

/* ---------- Cards / grids ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.card {
  background: #fff;
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.card h3 { margin-bottom: 8px; }

.attraction-list {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
}

.attraction-list li {
  margin-bottom: 10px;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.attraction-list li strong { color: var(--charcoal); }

.feature-card {
  background: var(--pine-dark);
  color: #fff;
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}

.feature-card h3 { color: #fff; }
.feature-card .tag { background: rgba(255,255,255,0.18); color: #fff; }
.feature-card p { color: rgba(255,255,255,0.85); max-width: 680px; margin-bottom: 0; }

.tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--pine);
  background: rgba(44, 74, 54, 0.1);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}

/* ---------- CTA band ---------- */

.cta-band {
  background: var(--pine-dark);
  color: #fff;
  padding: 64px 0;
  text-align: center;
}

.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,0.85); max-width: 560px; margin: 0 auto 24px; }
.cta-band .btn-row { justify-content: center; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--charcoal);
  color: rgba(255,255,255,0.75);
  padding: 48px 0 28px;
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}

@media (max-width: 700px) {
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
}

.site-footer h4 {
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: 12px;
}

.site-footer a { color: rgba(255,255,255,0.75); }
.site-footer a:hover { color: var(--amber); }

.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
}

/* ---------- Page header (non-home pages) ---------- */

.page-header {
  background: var(--pine-dark);
  color: #fff;
  padding: 64px 0 48px;
  text-align: center;
}

.page-header h1 { color: #fff; margin-bottom: 8px; }
.page-header p { color: rgba(255,255,255,0.85); max-width: 560px; margin: 0 auto; }

/* ---------- Interactive map ---------- */

#map {
  width: 100%;
  height: 560px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-top: 24px;
}

#map-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.map-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1.5px solid rgba(38,36,32,0.15);
  background: #fff;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--text-muted);
  transition: all 0.15s ease;
}

.map-filter-btn::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--dot, #999);
  flex-shrink: 0;
}

.map-filter-btn.active {
  border-color: var(--dot, var(--pine));
  color: var(--charcoal);
  background: var(--cream-deep);
}

.poi-marker span {
  display: block;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

/* ---------- Review carousel ---------- */

.review-carousel {
  position: relative;
  max-width: 640px;
  margin: 28px auto 0;
}

.review-viewport {
  overflow: hidden;
  border-radius: var(--radius);
}

.review-track {
  display: flex;
  transition: transform 0.5s ease;
}

.review-slide {
  flex: 0 0 100%;
  box-sizing: border-box;
  padding: 8px 60px;
  min-height: 140px;
}

.review-quote {
  color: var(--charcoal);
  font-style: italic;
  font-size: 1.05rem;
  margin: 0;
}

.review-author {
  margin-top: 16px;
  font-size: 1rem;
}

.review-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid #d8d3c6;
  background: #fff;
  color: var(--pine);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.review-arrow:hover { background: var(--cream-deep); }
.review-arrow-prev { left: -4px; }
.review-arrow-next { right: -4px; }

.review-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
}

.review-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d8d3c6;
  border: none;
  padding: 0;
  cursor: pointer;
}

.review-dot.active { background: var(--pine); }

@media (max-width: 600px) {
  .review-slide { padding: 8px 40px; }
  .review-arrow { width: 30px; height: 30px; font-size: 1.1rem; }
}

/* ---------- Utility ---------- */

.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.note {
  font-size: 0.85rem;
  color: var(--text-muted);
  background: var(--cream-deep);
  border-left: 3px solid var(--amber);
  padding: 12px 16px;
  border-radius: 8px;
}
