/*
Theme Name:  Slightly Off Path
Theme URI:   https://www.slightlyoffpath.com
Description: Adventure travel theme for off-the-beaten-path destinations. Features Google Maps integration, location posts, photo galleries, and user photo comments.
Version:     1.0.0
Author:      Dustin Harper
Author URI:  https://www.slightlyoffpath.com
Text Domain: sop
*/

/* =====================================================================
   DESIGN SYSTEM
   Earthy adventure palette — deep forest, weathered leather, warm sun,
   parchment. Fonts: Playfair Display (headings) + Source Serif 4 (body)
   ===================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,600;0,700;0,900;1,600&family=Source+Serif+4:ital,opsz,wght@0,8..60,300;0,8..60,400;0,8..60,600;1,8..60,300;1,8..60,400&family=Barlow+Condensed:wght@400;600;700&display=swap');

:root {
  /* Earthy palette */
  --forest:      #2C3E2D;   /* deep forest green — primary dark */
  --moss:        #4A6741;   /* mid green */
  --sage:        #7D9B76;   /* light sage */
  --parchment:   #F5F0E8;   /* warm off-white background */
  --cream:       #FAF7F2;   /* lightest bg */
  --leather:     #8B5E3C;   /* warm brown accent */
  --sand:        #C4A882;   /* mid tan */
  --sun:         #D4860A;   /* amber accent — CTAs */
  --sunlight:    #F2B84B;   /* highlight */
  --charcoal:    #1E1E1A;   /* near-black text */
  --slate:       #4A4A42;   /* secondary text */
  --mist:        #E8E4DC;   /* borders, dividers */
  --pin:         #C0392B;   /* map pin red */

  /* Typography */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Source Serif 4', Georgia, serif;
  --font-ui:      'Barlow Condensed', sans-serif;

  /* Spacing */
  --gap:    clamp(1rem, 3vw, 2rem);
  --radius: 6px;
  --radius-lg: 12px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(30,30,26,0.10);
  --shadow-md: 0 4px 20px rgba(30,30,26,0.14);
  --shadow-lg: 0 8px 40px rgba(30,30,26,0.18);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
  color: var(--charcoal);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--leather); text-decoration: none; transition: color .2s; }
a:hover { color: var(--sun); }

/* ── Layout containers ────────────────────────────────────────────────── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2.5rem);
}
.container--narrow { max-width: 820px; }
.container--wide   { max-width: 1440px; }

/* =====================================================================
   HEADER
   ===================================================================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(44, 62, 45, 0.97);
  backdrop-filter: blur(8px);
  border-bottom: 2px solid var(--moss);
  transition: box-shadow .3s;
}
.site-header.scrolled { box-shadow: var(--shadow-md); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 1.5rem;
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}
.site-logo__img {
  height: 54px;
  width: auto;
  display: block;
}

/* Nav — strip ALL list styles WordPress injects */
/* Nav — full nuclear reset so no theme/WP styles can stack items vertically */
.site-nav,
.site-nav ul,
.site-nav ol {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
  gap: .25rem !important;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
.site-nav li,
.site-nav li.menu-item {
  display: flex !important;
  align-items: center !important;
  float: none !important;
  list-style: none !important;
  list-style-type: none !important;
  padding: 0 !important;
  margin: 0 !important;
}
.site-nav li::before,
.site-nav li::marker { display: none !important; content: none !important; }
.site-nav a {
  font-family: var(--font-ui);
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.82);
  padding: .45rem .85rem;
  border-radius: var(--radius);
  transition: background .2s, color .2s;
}
.site-nav a:hover { background: rgba(255,255,255,.1); color: #fff; }



/* Explore button */
.btn-explore {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-ui);
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--charcoal) !important;
  background: var(--sunlight);
  padding: .55rem 1.2rem;
  border-radius: 100px;
  transition: background .2s, transform .15s, box-shadow .2s;
  white-space: nowrap;
}
.btn-explore:hover {
  background: var(--sun);
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(212,134,10,.4);
}
.btn-explore svg { width: 16px; height: 16px; }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =====================================================================
   HERO (homepage)
   ===================================================================== */
.hero {
  position: relative;
  height: 92vh;
  min-height: 560px;
  display: flex;
  align-items: center;
  overflow: hidden;
  margin-top: 76px;
}
.hero__bg {
  position: absolute;
  inset: 0;
  background: var(--forest);
  background-image: url('images/hero-bg.jpg');
  background-size: cover;
  background-position: center;
}
.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(44,62,45,.78) 0%,
    rgba(44,62,45,.45) 50%,
    rgba(44,62,45,.20) 100%
  );
}
.hero__content {
  position: relative;
  z-index: 1;
  max-width: 680px;
}
.hero__eyebrow {
  font-family: var(--font-ui);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--sunlight);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: .6rem;
}
.hero__eyebrow::before {
  content: '';
  display: block;
  width: 32px; height: 2px;
  background: var(--sunlight);
}
.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6vw, 4.5rem);
  font-weight: 900;
  line-height: 1.08;
  color: #fff;
  margin-bottom: 1.25rem;
}
.hero__title em {
  font-style: italic;
  color: var(--sunlight);
}
.hero__subtitle {
  font-size: 1.1rem;
  color: rgba(255,255,255,.88);
  margin-bottom: 2rem;
  max-width: 520px;
  line-height: 1.65;
}
.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-ui);
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  background: var(--sun);
  color: #fff;
  padding: .75rem 1.75rem;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  transition: background .2s, transform .15s, box-shadow .2s;
}
.btn-primary:hover {
  background: #b8740a;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212,134,10,.45);
}
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-ui);
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  background: rgba(255,255,255,.15);
  color: #fff;
  padding: .75rem 1.75rem;
  border-radius: 100px;
  border: 2px solid rgba(255,255,255,.4);
  cursor: pointer;
  transition: background .2s, border-color .2s;
}
.btn-secondary:hover {
  background: rgba(255,255,255,.25);
  border-color: rgba(255,255,255,.7);
  color: #fff;
}

/* Scroll indicator */
.hero__scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .4rem;
  color: rgba(255,255,255,.6);
  font-family: var(--font-ui);
  font-size: .72rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  animation: bounce 2s ease-in-out infinite;
}
.hero__scroll svg { width: 20px; opacity: .7; }
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(6px); }
}

/* =====================================================================
   HOMEPAGE MAP PREVIEW
   ===================================================================== */
.map-preview-section {
  background: var(--forest);
  padding: 4rem 0;
}
.map-preview-section .section-header {
  text-align: center;
  margin-bottom: 2rem;
}
.map-preview-section .section-title {
  font-family: var(--font-display);
  font-size: 2rem;
  color: #fff;
  margin-bottom: .5rem;
}
.map-preview-section .section-subtitle {
  color: var(--sage);
  font-size: .95rem;
}
.map-preview-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 3px solid var(--moss);
  position: relative;
}
#map-preview { height: 420px; width: 100%; }

.map-preview-cta {
  text-align: center;
  margin-top: 1.75rem;
}

/* =====================================================================
   SECTION HEADERS
   ===================================================================== */
.section-header { margin-bottom: clamp(1.5rem, 4vw, 2.5rem); }
.section-eyebrow {
  font-family: var(--font-ui);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--leather);
  margin-bottom: .5rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.section-eyebrow::before {
  content: '';
  display: block;
  width: 24px; height: 2px;
  background: var(--leather);
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  color: var(--forest);
  line-height: 1.2;
}
.section-title em { font-style: italic; color: var(--leather); }

/* =====================================================================
   LOCATION CARDS — grid
   ===================================================================== */
.locations-section { padding: clamp(3rem, 6vw, 5rem) 0; }

.locations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.75rem;
}

.location-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .25s, box-shadow .25s;
  display: flex;
  flex-direction: column;
}
.location-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.location-card__thumb {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
}
.location-card__thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.location-card:hover .location-card__thumb img { transform: scale(1.05); }

.location-card__category {
  position: absolute;
  top: .75rem;
  left: .75rem;
  font-family: var(--font-ui);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  background: var(--sun);
  color: #fff;
  padding: .25rem .65rem;
  border-radius: 100px;
}
.location-card__body {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.location-card__location {
  font-family: var(--font-ui);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: .4rem;
  display: flex;
  align-items: center;
  gap: .3rem;
}
.location-card__location svg { width: 12px; opacity: .7; }
.location-card__title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--forest);
  line-height: 1.3;
  margin-bottom: .6rem;
}
.location-card__excerpt {
  font-size: .88rem;
  color: var(--slate);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.location-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--mist);
  padding-top: .85rem;
  margin-top: auto;
}
.location-card__stars { color: var(--sun); font-size: .85rem; letter-spacing: .05em; }
.location-card__read-more {
  font-family: var(--font-ui);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--leather);
  display: flex;
  align-items: center;
  gap: .3rem;
  transition: gap .2s;
}
.location-card:hover .location-card__read-more { gap: .55rem; }

/* =====================================================================
   FULL MAP PAGE
   ===================================================================== */
.map-page { margin-top: 76px; }
.map-full-wrapper {
  display: grid;
  grid-template-columns: 360px 1fr;
  height: calc(100vh - 68px);
}
#map-full { height: 100%; width: 100%; }

/* Sidebar */
.map-sidebar {
  background: var(--cream);
  border-right: 2px solid var(--mist);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.map-sidebar__header {
  background: var(--forest);
  padding: 1.25rem 1.5rem;
  flex-shrink: 0;
}
.map-sidebar__title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: #fff;
  margin-bottom: .25rem;
}
.map-sidebar__count {
  font-family: var(--font-ui);
  font-size: .75rem;
  color: var(--sage);
  letter-spacing: .1em;
  text-transform: uppercase;
}
.map-sidebar__search {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--mist);
  flex-shrink: 0;
}
.map-sidebar__search input {
  width: 100%;
  padding: .6rem 1rem;
  border: 1.5px solid var(--mist);
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: .88rem;
  background: #fff;
  outline: none;
  transition: border-color .2s;
}
.map-sidebar__search input:focus { border-color: var(--moss); }

.map-sidebar__list {
  flex: 1;
  overflow-y: auto;
  padding: .75rem;
}
.map-sidebar__list::-webkit-scrollbar { width: 4px; }
.map-sidebar__list::-webkit-scrollbar-track { background: transparent; }
.map-sidebar__list::-webkit-scrollbar-thumb { background: var(--mist); border-radius: 4px; }

.map-list-item {
  display: flex;
  gap: .85rem;
  padding: .85rem;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background .2s;
  border: 1.5px solid transparent;
}
.map-list-item:hover { background: #fff; border-color: var(--mist); }
.map-list-item.active { background: #fff; border-color: var(--moss); }

.map-list-item__thumb {
  width: 64px; height: 52px;
  border-radius: 5px;
  overflow: hidden;
  flex-shrink: 0;
}
.map-list-item__thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.map-list-item__info { min-width: 0; }
.map-list-item__title {
  font-family: var(--font-display);
  font-size: .95rem;
  font-weight: 700;
  color: var(--forest);
  line-height: 1.3;
  margin-bottom: .2rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.map-list-item__location {
  font-family: var(--font-ui);
  font-size: .72rem;
  color: var(--slate);
  letter-spacing: .06em;
}

/* Google Maps info window */
.sop-infowindow {
  font-family: var(--font-body);
  max-width: 220px;
}
.sop-infowindow img {
  width: 100%;
  height: 130px;
  object-fit: cover;
  border-radius: 5px;
  margin-bottom: .6rem;
}
.sop-infowindow__title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--forest);
  margin-bottom: .3rem;
  line-height: 1.3;
}
.sop-infowindow__loc {
  font-family: var(--font-ui);
  font-size: .72rem;
  color: var(--slate);
  margin-bottom: .6rem;
  letter-spacing: .06em;
}
.sop-infowindow a {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  background: var(--sun);
  color: #fff;
  padding: .35rem .85rem;
  border-radius: 100px;
  transition: background .2s;
}
.sop-infowindow a:hover { background: var(--leather); }

/* =====================================================================
   SINGLE LOCATION POST
   ===================================================================== */
.single-location { margin-top: 76px; }

/* Hero */
.location-hero {
  position: relative;
  height: 65vh;
  min-height: 420px;
  overflow: hidden;
}
.location-hero__img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.location-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(30,30,26,.85) 0%, transparent 60%);
}
.location-hero__content {
  position: absolute;
  bottom: 0;
  left: 0; right: 0;
  padding: 2.5rem clamp(1rem, 4vw, 2.5rem);
}
.location-hero__category {
  font-family: var(--font-ui);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--sunlight);
  margin-bottom: .6rem;
}
.location-hero__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.1;
  margin-bottom: .75rem;
  max-width: 800px;
}
.location-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  align-items: center;
  color: rgba(255,255,255,.8);
  font-family: var(--font-ui);
  font-size: .82rem;
  letter-spacing: .06em;
}
.location-hero__meta span { display: flex; align-items: center; gap: .35rem; }
.location-hero__meta svg { width: 14px; opacity: .8; }

/* Location post layout */
.location-body {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2.5rem;
  padding: 3rem 0 4rem;
  align-items: start;
}
.location-content { min-width: 0; }

/* Quick info card (sidebar) */
.location-sidebar { position: sticky; top: 88px; }
.info-card {
  background: #fff;
  border: 2px solid var(--mist);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 1.5rem;
}
.info-card__header {
  background: var(--forest);
  padding: .85rem 1.25rem;
  font-family: var(--font-ui);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--sage);
}
.info-card__body { padding: 1.25rem; }
.info-row {
  display: flex;
  gap: .75rem;
  align-items: flex-start;
  padding: .6rem 0;
  border-bottom: 1px solid var(--mist);
  font-size: .9rem;
}
.info-row:last-child { border-bottom: none; }
.info-row__icon { color: var(--leather); flex-shrink: 0; margin-top: 2px; }
.info-row__label {
  font-family: var(--font-ui);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: .15rem;
}
.info-row__value { color: var(--charcoal); line-height: 1.5; }

/* Post map */
#map-post { height: 280px; border-radius: var(--radius); overflow: hidden; }

/* Body content typography */
.location-content h2 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--forest);
  margin: 2rem 0 .75rem;
}
.location-content h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--forest);
  margin: 1.5rem 0 .5rem;
}
.location-content p { margin-bottom: 1.25rem; }
.location-content p:last-child { margin-bottom: 0; }
.location-content strong { color: var(--forest); font-weight: 600; }
.location-content blockquote {
  border-left: 4px solid var(--sunlight);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  background: var(--parchment);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--slate);
}

/* Rating display */
.rating-display {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  background: var(--parchment);
  border-radius: var(--radius);
  border: 1px solid var(--mist);
}
.rating-display__stars { font-size: 1.4rem; letter-spacing: .05em; }
.rating-display__score {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--forest);
}
.rating-display__label {
  font-family: var(--font-ui);
  font-size: .75rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--slate);
}

/* =====================================================================
   PHOTO GALLERY
   ===================================================================== */
.gallery-section { margin: 2rem 0; }
.gallery-section h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--forest);
  margin-bottom: 1rem;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: .5rem;
}
.gallery-grid__item {
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: var(--radius);
  cursor: pointer;
  position: relative;
}
.gallery-grid__item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.gallery-grid__item:hover img { transform: scale(1.06); }
.gallery-grid__item--wide {
  grid-column: span 2;
  aspect-ratio: 16/9;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.92);
  z-index: 9000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.lightbox.open { display: flex; }
.lightbox__img {
  max-width: 90vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: var(--radius);
}
.lightbox__close {
  position: absolute;
  top: 1rem; right: 1.25rem;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
  opacity: .7;
  transition: opacity .2s;
}
.lightbox__close:hover { opacity: 1; }
.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,.15);
  border: none;
  color: #fff;
  font-size: 1.5rem;
  width: 48px; height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
}
.lightbox__nav:hover { background: rgba(255,255,255,.28); }
.lightbox__prev { left: 1rem; }
.lightbox__next { right: 1rem; }

/* =====================================================================
   COMMENTS — with photo upload
   ===================================================================== */
.comments-section {
  border-top: 2px solid var(--mist);
  padding-top: 2.5rem;
  margin-top: 3rem;
}
.comments-section h2 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--forest);
  margin-bottom: 1.5rem;
}

/* Individual comments */
.comment-list { list-style: none; }
.comment-item {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 1rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--mist);
}
.comment-avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--mist);
  flex-shrink: 0;
}
.comment-avatar img { width: 100%; height: 100%; object-fit: cover; }
.comment-meta {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-wrap: wrap;
  margin-bottom: .4rem;
}
.comment-author {
  font-family: var(--font-ui);
  font-size: .88rem;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--forest);
}
.comment-date {
  font-family: var(--font-ui);
  font-size: .75rem;
  color: var(--slate);
}
.comment-text { font-size: .92rem; color: var(--charcoal); line-height: 1.7; }

/* User-uploaded comment photos */
.comment-photos {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: .75rem;
}
.comment-photo {
  width: 90px; height: 72px;
  border-radius: 5px;
  overflow: hidden;
  cursor: pointer;
}
.comment-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .3s;
}
.comment-photo:hover img { transform: scale(1.08); }

/* Comment form */
.comment-form-wrapper {
  margin-top: 2.5rem;
  background: var(--parchment);
  border: 2px solid var(--mist);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
}
.comment-form-wrapper h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--forest);
  margin-bottom: 1.25rem;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}
.form-group { display: flex; flex-direction: column; gap: .35rem; }
.form-group label {
  font-family: var(--font-ui);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--slate);
}
.form-group input,
.form-group textarea {
  padding: .65rem 1rem;
  border: 1.5px solid var(--mist);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: .92rem;
  background: #fff;
  outline: none;
  transition: border-color .2s;
}
.form-group input:focus,
.form-group textarea:focus { border-color: var(--moss); }
.form-group textarea { resize: vertical; min-height: 110px; }

/* Photo upload zone */
.photo-upload-zone {
  border: 2px dashed var(--sand);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: border-color .2s, background .2s;
  background: #fff;
  margin-bottom: 1rem;
}
.photo-upload-zone:hover,
.photo-upload-zone.drag-over {
  border-color: var(--moss);
  background: rgba(74,103,65,.04);
}
.photo-upload-zone input[type="file"] {
  display: none;
}
.photo-upload-zone__icon { font-size: 2rem; margin-bottom: .5rem; }
.photo-upload-zone__text {
  font-family: var(--font-ui);
  font-size: .82rem;
  color: var(--slate);
  letter-spacing: .04em;
}
.photo-upload-zone__text span { color: var(--leather); text-decoration: underline; cursor: pointer; }
.photo-upload-previews {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: .75rem;
}
.upload-preview {
  width: 72px; height: 58px;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}
.upload-preview img { width: 100%; height: 100%; object-fit: cover; }
.upload-preview__remove {
  position: absolute;
  top: 2px; right: 2px;
  background: rgba(0,0,0,.6);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 18px; height: 18px;
  font-size: .65rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.btn-submit {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-ui);
  font-size: .88rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  background: var(--forest);
  color: #fff;
  padding: .75rem 2rem;
  border: none;
  border-radius: 100px;
  cursor: pointer;
  transition: background .2s, transform .15s;
}
.btn-submit:hover { background: var(--moss); transform: translateY(-1px); }

/* =====================================================================
   FOOTER
   ===================================================================== */
.site-footer {
  background: var(--charcoal);
  color: rgba(255,255,255,.7);
  padding: 3.5rem 0 1.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2.5rem;
}
.footer-brand__name {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--sunlight);
  margin-bottom: .5rem;
}
.footer-brand__desc {
  font-size: .88rem;
  line-height: 1.65;
  max-width: 280px;
}
.footer-col h4 {
  font-family: var(--font-ui);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: .85rem;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: .4rem; }
.footer-col ul a { color: rgba(255,255,255,.6); font-size: .88rem; transition: color .2s; }
.footer-col ul a:hover { color: var(--sunlight); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: .75rem;
  font-family: var(--font-ui);
  font-size: .75rem;
  letter-spacing: .06em;
}

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 1024px) {
  .location-body { grid-template-columns: 1fr; }
  .location-sidebar { position: static; }
  .map-full-wrapper { grid-template-columns: 300px 1fr; }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .site-nav {
    display: none !important;
    position: fixed;
    top: 76px; left: 0; right: 0;
    background: var(--forest);
    flex-direction: column !important;
    align-items: stretch !important;
    padding: 1rem;
    gap: .25rem !important;
    border-bottom: 2px solid var(--moss);
    z-index: 999;
  }
  .site-nav.open { display: flex !important; }
  .site-nav.open,
  .site-nav.open ul,
  .site-nav.open li {
    flex-direction: column !important;
    align-items: stretch !important;
    width: 100%;
  }
  .site-nav a { padding: .75rem 1rem; }
  .btn-explore { display: none; }

  .map-full-wrapper { grid-template-columns: 1fr; grid-template-rows: 1fr 320px; }
  .map-full-wrapper { grid-template-rows: 320px 1fr; }
  #map-full { height: 320px; }
  .map-sidebar { border-right: none; border-top: 2px solid var(--mist); }
  .map-sidebar__list { max-height: 280px; }

  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: span 2; }

  .form-row { grid-template-columns: 1fr; }
  .gallery-grid__item--wide { grid-column: span 1; aspect-ratio: 4/3; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: 1; }
  .hero__title { font-size: 2.2rem; }
}

/* =====================================================================
   UTILITY CLASSES
   ===================================================================== */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}
.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
