:root {
  --color-bg: #f8f6f2;
  --color-surface: #ffffff;
  --color-text: #1a2e1a;
  --color-text-muted: #4a5f4a;
  --color-accent: #2d5a3d;
  --color-accent-light: #3d7a52;
  --color-warm: #c4783a;
  --color-lake: #3a7ca5;
  --color-border: #e0ddd6;
  --font-display: "Playfair Display", Georgia, serif;
  --font-body: "Source Sans 3", system-ui, sans-serif;
  --shadow-sm: 0 1px 3px rgba(26, 46, 26, 0.08);
  --shadow-md: 0 4px 20px rgba(26, 46, 26, 0.12);
  --radius: 12px;
  --max-width: 1120px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--color-accent-light);
}

.container {
  width: min(100% - 2rem, var(--max-width));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248, 246, 242, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
}

.site-header .container {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 1rem clamp(0.5rem, 2vw, 0.75rem) 1rem clamp(1.25rem, 4vw, 2rem);
  width: 100%;
  max-width: none;
}

.logo {
  grid-column: 2;
  justify-self: center;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-text);
  text-decoration: none;
  text-align: center;
}

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

.nav-book {
  grid-column: 3;
  justify-self: end;
  margin-right: 0.25rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.25rem;
  background: var(--color-accent);
  color: #fff;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  transition: background 0.2s;
}

.nav-book:hover {
  background: var(--color-accent-light);
  color: #fff;
}

/* Hero */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: flex-end;
  color: #fff;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(15, 30, 20, 0.85) 0%, rgba(15, 30, 20, 0.3) 50%, rgba(15, 30, 20, 0.15) 100%),
    url("../assets/images/listing/airbnb-52.jpeg") center / cover no-repeat;
}

.hero-content {
  position: relative;
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding: 4rem clamp(1.5rem, 4vw, 2.5rem) 3rem clamp(2.25rem, 7vw, 5rem);
}

.hero-tag {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 1rem;
  max-width: 14ch;
}

.hero-sub {
  font-size: 1.125rem;
  opacity: 0.92;
  max-width: 42ch;
  margin-bottom: 2rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  transition: transform 0.15s, background 0.2s, border-color 0.2s;
  cursor: pointer;
}

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

.btn-primary {
  background: #fff;
  color: var(--color-accent);
}

.btn-primary:hover {
  background: #f0f0f0;
  color: var(--color-accent);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.6);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: #fff;
}

.btn-airbnb {
  background: #ff5a5f;
  color: #fff;
}

.btn-airbnb:hover {
  background: #e04e53;
  color: #fff;
}

.btn-booking {
  background: #003580;
  color: #fff;
}

.btn-booking:hover {
  background: #002a66;
  color: #fff;
}

/* Stats bar */
.stats-bar {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  padding: 1.25rem 0;
}

.stats-bar .stats-grid.container {
  width: fit-content;
  max-width: min(100% - 2rem, var(--max-width));
  margin-inline: auto;
}

.stats-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem 2.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.stats-grid li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--color-text);
}

.stats-grid .stat-icon {
  font-size: 1.25rem;
}

/* Sections */
.section {
  padding: 4.5rem 0;
}

.section-alt {
  background: var(--color-surface);
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  margin: 0 0 0.75rem;
}

.section-header p {
  color: var(--color-text-muted);
  max-width: min(42rem, 92%);
  margin: 0 auto;
}

/* Feature grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
}

.section-alt .feature-card {
  background: var(--color-bg);
}

.feature-card .icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin: 0 0 0.5rem;
}

.feature-card p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.9375rem;
}

/* Gallery */
.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.gallery-filter {
  padding: 0.5rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: var(--color-surface);
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--color-text-muted);
  transition: all 0.2s;
}

.gallery-filter:hover,
.gallery-filter.active {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #fff;
}

.gallery-filter-count {
  opacity: 0.85;
  font-weight: 400;
}

.gallery-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--color-text-muted);
  padding: 2rem;
}

.photo-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.65rem;
}

.gallery-thumb {
  display: block;
  padding: 0;
  border: none;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4/3;
  background: var(--color-border);
  transition: transform 0.2s, box-shadow 0.2s;
}

.gallery-thumb:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-note {
  text-align: center;
  color: var(--color-text-muted);
  font-size: 0.9375rem;
  margin-top: 1.25rem;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(10, 15, 12, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 4rem;
}

.lightbox[hidden] {
  display: none;
}

.lightbox-stage {
  max-width: min(1100px, 92vw);
  max-height: 82vh;
}

.lightbox-stage img {
  max-width: 100%;
  max-height: 82vh;
  object-fit: contain;
  margin: 0 auto;
  border-radius: 6px;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  border: none;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  cursor: pointer;
  border-radius: 999px;
  transition: background 0.2s;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(255, 255, 255, 0.22);
}

.lightbox-close {
  top: 1rem;
  right: 1rem;
  width: 44px;
  height: 44px;
  font-size: 1.75rem;
  line-height: 1;
}

.lightbox-prev,
.lightbox-next {
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  font-size: 2rem;
  line-height: 1;
}

.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }

.lightbox-counter {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
  font-size: 0.875rem;
}

.lightbox-caption {
  position: absolute;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.92);
  margin: 0;
  font-size: 0.9375rem;
  text-align: center;
  max-width: min(90vw, 36rem);
  padding: 0 1rem;
}

.amenities-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.amenities-list li {
  padding: 0.45rem 0.9rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
}

.section-alt .amenities-list li {
  background: var(--color-bg);
}

/* Location */
.location-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(260px, 0.95fr);
  gap: 1.75rem 2rem;
  align-items: stretch;
}

.map-panel {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 0;
}

.distances-panel {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 100%;
}

.map-embed {
  flex: 1;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--color-border);
  min-height: 420px;
  background: var(--color-bg);
}

.map-embed iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 420px;
  border: 0;
}

@media (min-width: 900px) {
  .map-embed,
  .map-embed iframe {
    min-height: 520px;
  }

  .distances-panel {
    min-height: 520px;
  }
}

@media (min-width: 1100px) {
  .map-embed,
  .map-embed iframe {
    min-height: 560px;
  }

  .distances-panel {
    min-height: 560px;
  }
}

@media (max-width: 768px) {
  .location-layout {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .map-embed,
  .map-embed iframe {
    min-height: 340px;
  }

  .distances-panel {
    min-height: auto;
  }
}

.map-route-label {
  margin: 0 0 0.65rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-accent);
}

.distances-hint {
  margin: 0 0 0.75rem;
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.distances-table-wrap {
  flex: 1;
  min-height: 240px;
  max-height: none;
  overflow-y: auto;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
}

.distances-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.distances-table thead th {
  position: sticky;
  top: 0;
  background: var(--color-surface);
  z-index: 1;
  box-shadow: 0 1px 0 var(--color-border);
}

.distances-table th,
.distances-table td {
  padding: 0.65rem 0.85rem;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}

.distances-table tbody tr:last-child td {
  border-bottom: none;
}

.distances-table tbody tr.dest-row {
  cursor: pointer;
  transition: background 0.15s;
}

.distances-table tbody tr.dest-row:hover {
  background: rgba(45, 90, 61, 0.08);
}

.distances-table tbody tr.dest-row.is-active {
  background: rgba(45, 90, 61, 0.12);
}

.distances-table tbody tr.dest-row.is-active .dest-name {
  color: var(--color-accent);
  font-weight: 600;
}

.distances-table tbody tr.dest-row:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: -2px;
}

.distances-table th {
  font-weight: 600;
  color: var(--color-text-muted);
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.directions-box {
  background: var(--color-surface);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
  margin-top: 0;
  border: 1px solid var(--color-border);
}

.directions-box h4 {
  margin: 0 0 0.5rem;
  font-size: 0.9375rem;
}

.directions-box p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.9375rem;
}

/* Booking CTA */
.booking-cta {
  text-align: center;
  padding: 4rem 2rem;
  background: linear-gradient(135deg, var(--color-accent) 0%, #1e3d2a 100%);
  color: #fff;
  border-radius: var(--radius);
}

.booking-cta h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0 0 0.75rem;
}

.booking-cta p {
  opacity: 0.9;
  margin: 0 0 2rem;
}

.booking-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

/* Footer */
.site-footer {
  background: var(--color-text);
  color: rgba(255, 255, 255, 0.75);
  padding: 2.5rem 0;
  font-size: 0.875rem;
}

.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5rem;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.9);
}

.site-footer strong {
  color: #fff;
  display: block;
  margin-bottom: 0.25rem;
}
