:root {
  --bg: #f7f5f1;
  --surface: #ffffff;
  --text: #1c1c1c;
  --text-muted: #5c5c5c;
  --primary: #1f4d3a;
  --primary-hover: #16372a;
  --accent: #b87333;
  --border: #e8e4dc;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.04);
  --shadow: 0 8px 30px rgba(0,0,0,0.06);
  --shadow-hover: 0 12px 40px rgba(0,0,0,0.09);
  --radius: 12px;
  --radius-sm: 8px;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;
  --header-height: 72px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--primary-hover); }

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ========== HEADER ========== */
.site-header {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 200;
  height: var(--header-height);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
  text-decoration: none;
}
.logo span {
  color: var(--primary);
}

.main-nav {
  display: flex;
  gap: 2rem;
  align-items: center;
}
.main-nav a {
  font-size: 0.925rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  position: relative;
  padding: 0.25rem 0;
}
.main-nav a:hover,
.main-nav a.active {
  color: var(--primary);
}
.main-nav a.active::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  background: var(--primary);
  border-radius: 1px;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text);
  padding: 0.25rem;
}

/* ========== HERO ========== */
.hero {
  position: relative;
  background: linear-gradient(160deg, #16372a 0%, #1f4d3a 45%, #2a634c 100%);
  color: #fff;
  padding: 6.5rem 1.5rem 7rem;
  text-align: center;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 20%, rgba(255,255,255,0.08) 0%, transparent 60%);
  pointer-events: none;
}
.hero-content {
  position: relative;
  max-width: 680px;
  margin: 0 auto;
}
.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.75rem, 6vw, 3.75rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}
.hero-sub {
  font-size: 1.15rem;
  font-weight: 400;
  opacity: 0.9;
  margin-bottom: 2.25rem;
  line-height: 1.55;
}
.hero-buttons {
  display: flex;
  gap: 0.875rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.65rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.925rem;
  text-decoration: none;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
}
.btn-primary {
  background: #fff;
  color: var(--primary);
  box-shadow: 0 4px 14px rgba(0,0,0,0.12);
}
.btn-primary:hover {
  background: #f5f5f5;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
  color: var(--primary);
  text-decoration: none;
}
.btn-outline {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.55);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: #fff;
  color: #fff;
  text-decoration: none;
}

/* ========== INTRO ========== */
.intro {
  padding: 4.5rem 1.5rem 3rem;
  text-align: center;
  max-width: 720px;
}
.intro h2 {
  font-family: var(--font-serif);
  font-size: 2.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}
.intro p {
  color: var(--text-muted);
  font-size: 1.075rem;
}

/* ========== CATEGORY CARDS (HOME) ========== */
.categories {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  padding-bottom: 5rem;
}
.category-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  position: relative;
  cursor: pointer;
}
.category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: transparent;
}
.category-card:hover .card-link {
  gap: 0.55rem;
}
.category-card h3 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.6rem;
  letter-spacing: -0.01em;
}
.category-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}
.card-link {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: gap 0.2s ease;
}
.stretched-link {
  position: absolute;
  inset: 0;
  z-index: 1;
  text-decoration: none;
  border-radius: var(--radius);
}
.stretched-link:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* ========== HIGHLIGHT SECTION ========== */
.highlight {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 4.5rem 1.5rem 5rem;
}
.highlight h2 {
  font-family: var(--font-serif);
  font-size: 1.9rem;
  text-align: center;
  margin-bottom: 2.75rem;
  letter-spacing: -0.02em;
}
.highlight-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}
.highlight-grid h4 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.5rem;
}
.highlight-grid p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ========== PAGE HEADER ========== */
.page-header {
  background: linear-gradient(160deg, #16372a 0%, #1f4d3a 100%);
  color: #fff;
  padding: 3.25rem 1.5rem 3.5rem;
  text-align: center;
}
.page-header h1 {
  font-family: var(--font-serif);
  font-size: 2.4rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.4rem;
}
.page-header p {
  opacity: 0.88;
  font-size: 1.05rem;
}

/* ========== CONTENT SECTIONS ========== */
.content-section {
  padding: 3rem 1.5rem 5rem;
}

.content-intro {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 2.5rem;
  max-width: 680px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin: 3rem 0 1.5rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--primary);
  color: var(--text);
}
.section-title:first-of-type {
  margin-top: 0;
}

/* ========== LISTING CARDS ========== */
.listing {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 1.85rem;
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease, border-color 0.2s;
}
.listing:hover {
  box-shadow: var(--shadow);
  border-color: #ddd8ce;
}
.listing h3 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.3rem;
  letter-spacing: -0.01em;
}
.listing .meta {
  font-size: 0.84rem;
  color: var(--text-muted);
  margin-bottom: 0.85rem;
  font-weight: 500;
}
.listing p {
  color: var(--text);
  font-size: 0.97rem;
  line-height: 1.65;
}

.note {
  margin-top: 3rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  padding: 1.1rem 1.25rem;
  background: #f0ece4;
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--accent);
}

/* ========== FOOTER ========== */
.site-footer {
  background: #141414;
  color: #a0a0a0;
  padding: 2.5rem 1.5rem;
  margin-top: auto;
  text-align: center;
  font-size: 0.875rem;
}
.site-footer p + p {
  margin-top: 0.4rem;
}
.footer-note {
  font-size: 0.8rem;
  opacity: 0.7;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 900px) {
  .highlight-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .categories {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 64px;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--surface);
    flex-direction: column;
    padding: 1.25rem 1.5rem 1.5rem;
    border-bottom: 1px solid var(--border);
    gap: 0.25rem;
    box-shadow: var(--shadow);
  }
  .main-nav.open {
    display: flex;
  }
  .main-nav a {
    padding: 0.7rem 0;
    font-size: 1rem;
  }
  .main-nav a.active::after {
    display: none;
  }
  .nav-toggle {
    display: block;
  }

  .hero {
    padding: 4.5rem 1.5rem 5rem;
  }
  .hero h1 {
    font-size: 2.4rem;
  }
  .page-header h1 {
    font-size: 2rem;
  }
  .intro {
    padding: 3.5rem 1.5rem 2rem;
  }
  .categories {
    padding-bottom: 3.5rem;
  }
  .highlight {
    padding: 3.5rem 1.5rem 4rem;
  }
  .content-section {
    padding: 2.25rem 1.5rem 4rem;
  }
  .listing {
    padding: 1.4rem 1.35rem;
  }
}

/* ========== IMAGE ENHANCEMENTS ========== */
.hero-with-image {
  position: relative;
  background: none;
  padding: 0;
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-with-image .hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-with-image .hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(22,55,42,0.78) 0%, rgba(31,77,58,0.72) 50%, rgba(22,55,42,0.82) 100%);
}
.hero-with-image .hero-content {
  position: relative;
  z-index: 2;
  padding: 5rem 1.5rem;
}

.category-card.has-image {
  padding: 0;
  overflow: hidden;
}
.category-card .card-img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}
.category-card .card-body {
  padding: 1.5rem 1.5rem 1.75rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.listing.has-image {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 0;
  padding: 0;
  overflow: hidden;
}
.listing.has-image .listing-img {
  width: 100%;
  height: 100%;
  min-height: 180px;
  object-fit: cover;
}
.listing.has-image .listing-body {
  padding: 1.5rem 1.6rem;
}

.photo-credit {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 2.5rem;
  text-align: center;
  opacity: 0.8;
}

@media (max-width: 700px) {
  .listing.has-image {
    grid-template-columns: 1fr;
  }
  .listing.has-image .listing-img {
    height: 180px;
  }
  .hero-with-image {
    min-height: 420px;
  }
}

/* ========== MAP EMBED ========== */
.map-section {
  margin: 2.5rem 0 3.5rem;
}
.map-caption {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}
.map-container {
  position: relative;
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  background: #e8e4dc;
  aspect-ratio: 16 / 10;
  min-height: 360px;
}
.map-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

@media (max-width: 700px) {
  .map-container {
    aspect-ratio: 4 / 3;
    min-height: 280px;
  }
}
