/* style.css — GeoTurystyka Hajduczek, Górzno */

/* ============ DESIGN TOKENS ============ */
:root {
  /* Fluid type scale */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.2rem + 2.5vw, 3.25rem);
  --text-3xl: clamp(2.5rem, 1rem + 4vw, 4.75rem);
  --text-hero: clamp(2.75rem, 0.5rem + 6.5vw, 6.5rem);

  /* 4px spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  --radius-sm: 0.375rem;
  --radius-md: 0.625rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-full: 9999px;

  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);

  --content-narrow: 640px;
  --content-default: 980px;
  --content-wide: 1220px;
  --content-full: 100%;

  --font-display: 'Erode', Georgia, serif;
  --font-body: 'Work Sans', 'Helvetica Neue', sans-serif;
}

/* ============ COLOR — LIGHT (default) ============ */
:root,
[data-theme='light'] {
  --color-bg: #f6f1e5;
  --color-surface: #fbf8f0;
  --color-surface-2: #fdfcf9;
  --color-surface-offset: #ede4cd;
  --color-surface-offset-2: #e3d7b8;
  --color-surface-dynamic: #d9caa1;
  --color-divider: #ddd0ab;
  --color-border: #cbb98c;

  --color-text: #23301e;
  --color-text-muted: #5d6350;
  --color-text-faint: #a3a487;
  --color-text-inverse: #fbf6e8;

  /* Primary accent — terracotta (warmth, campfire, wood) */
  --color-primary: #b05a26;
  --color-primary-hover: #8a441a;
  --color-primary-active: #663213;
  --color-primary-highlight: #ecd4bd;

  /* Forest green — used for nature/park badges */
  --color-success: #3c6b3c;
  --color-success-hover: #2b4f2b;
  --color-success-active: #1d371d;
  --color-success-highlight: #cfdcc7;

  --color-warning: #96631f;
  --color-warning-hover: #714a17;
  --color-warning-active: #4c3210;
  --color-warning-highlight: #e2d3b8;

  --color-error: #9c3b30;
  --color-error-hover: #782d24;
  --color-error-active: #521f19;
  --color-error-highlight: #ddc7c2;

  --color-gold: #b98418;
  --color-gold-hover: #946711;
  --color-gold-active: #6d4b0c;
  --color-gold-highlight: #e6d7b3;

  --shadow-sm: 0 1px 2px oklch(0.22 0.03 90 / 0.08);
  --shadow-md: 0 4px 14px oklch(0.22 0.03 90 / 0.1);
  --shadow-lg: 0 16px 40px oklch(0.22 0.03 90 / 0.16);
}

/* ============ COLOR — DARK ============ */
[data-theme='dark'] {
  --color-bg: #171a10;
  --color-surface: #1c2015;
  --color-surface-2: #212518;
  --color-surface-offset: #232719;
  --color-surface-offset-2: #2a2e1d;
  --color-surface-dynamic: #363b25;
  --color-divider: #2c3020;
  --color-border: #3d422b;

  --color-text: #e7e2cd;
  --color-text-muted: #a4a488;
  --color-text-faint: #6c6f57;
  --color-text-inverse: #23301e;

  --color-primary: #e08a4f;
  --color-primary-hover: #eba370;
  --color-primary-active: #f2b78e;
  --color-primary-highlight: #3d2e21;

  --color-success: #7ea86e;
  --color-success-hover: #97bd88;
  --color-success-active: #aecda1;
  --color-success-highlight: #2a3524;

  --color-warning: #c99a53;
  --color-warning-hover: #d6ad70;
  --color-warning-active: #e2c090;
  --color-warning-highlight: #3a3020;

  --color-error: #cc7a6c;
  --color-error-hover: #d99589;
  --color-error-active: #e4aca2;
  --color-error-highlight: #3a2622;

  --color-gold: #d9ab4c;
  --color-gold-hover: #e3bd6d;
  --color-gold-active: #ecce90;
  --color-gold-highlight: #3a3018;

  --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.3);
  --shadow-md: 0 6px 18px oklch(0 0 0 / 0.35);
  --shadow-lg: 0 20px 48px oklch(0 0 0 / 0.5);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --color-bg: #171a10;
    --color-surface: #1c2015;
    --color-surface-2: #212518;
    --color-surface-offset: #232719;
    --color-surface-offset-2: #2a2e1d;
    --color-surface-dynamic: #363b25;
    --color-divider: #2c3020;
    --color-border: #3d422b;
    --color-text: #e7e2cd;
    --color-text-muted: #a4a488;
    --color-text-faint: #6c6f57;
    --color-text-inverse: #23301e;
    --color-primary: #e08a4f;
    --color-primary-hover: #eba370;
    --color-primary-active: #f2b78e;
    --color-primary-highlight: #3d2e21;
    --color-success: #7ea86e;
    --color-success-highlight: #2a3524;
    --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.3);
    --shadow-md: 0 6px 18px oklch(0 0 0 / 0.35);
    --shadow-lg: 0 20px 48px oklch(0 0 0 / 0.5);
  }
}

/* ============ LAYOUT PRIMITIVES ============ */
.container {
  max-width: var(--content-default);
  margin-inline: auto;
  padding-inline: var(--space-5);
}
.container--wide {
  max-width: var(--content-wide);
}
.container--narrow {
  max-width: var(--content-narrow);
}

.section {
  padding-block: clamp(var(--space-16), 8vw, var(--space-32));
}
.section--tight {
  padding-block: clamp(var(--space-10), 5vw, var(--space-16));
}
.section--offset {
  background: var(--color-surface-offset);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--space-4);
}
.eyebrow::before {
  content: '';
  width: 1.5rem;
  height: 1px;
  background: var(--color-primary);
}

h1,
.h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--text-hero);
  letter-spacing: -0.01em;
}
h2,
.h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--text-2xl);
  letter-spacing: -0.005em;
}
h3,
.h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--text-xl);
}
h4,
.h4 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--text-lg);
}
p {
  max-width: 62ch;
}
.lede {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: 58ch;
}
.prose p + p {
  margin-top: var(--space-4);
}
.text-muted {
  color: var(--color-text-muted);
}
.text-center {
  text-align: center;
}
.text-center p {
  margin-inline: auto;
}

/* ============ HEADER / NAV ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: oklch(from var(--color-bg) l c h / 0.86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid oklch(from var(--color-text) l c h / 0.08);
  transition:
    transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.site-header--hidden {
  transform: translateY(-100%);
}
.site-header--scrolled {
  box-shadow: var(--shadow-sm);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  padding-block: var(--space-4);
}
.brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--color-text);
  text-decoration: none;
  flex-shrink: 0;
}
.brand svg {
  width: 40px;
  height: 40px;
  color: var(--color-primary);
  flex-shrink: 0;
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.brand-text strong {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
}
.brand-text span {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}
.nav-links a {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  text-decoration: none;
  padding: var(--space-2) 0;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -2px;
  height: 2px;
  background: var(--color-primary);
  transition: right var(--transition-interactive);
}
.nav-links a:hover {
  color: var(--color-text);
}
.nav-links a:hover::after,
.nav-links a[aria-current='page']::after {
  right: 0;
}
.nav-links a[aria-current='page'] {
  color: var(--color-text);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  color: var(--color-text-muted);
  border: 1px solid oklch(from var(--color-text) l c h / 0.12);
}
.theme-toggle:hover {
  color: var(--color-text);
  border-color: oklch(from var(--color-text) l c h / 0.25);
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  color: var(--color-text);
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 600;
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-full);
  text-decoration: none;
  white-space: nowrap;
  min-height: 44px;
}
.btn-primary {
  background: var(--color-primary);
  color: var(--color-text-inverse);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
  background: var(--color-primary-hover);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}
.btn-primary:active {
  background: var(--color-primary-active);
  transform: translateY(0);
}
.btn-secondary {
  background: transparent;
  color: var(--color-text);
  border: 1px solid oklch(from var(--color-text) l c h / 0.22);
}
.btn-secondary:hover {
  background: var(--color-surface-offset);
  border-color: oklch(from var(--color-text) l c h / 0.35);
}

/* Secondary buttons placed over dark photo overlays (hero, page-header, image-band) need light text/border */
.hero .btn-secondary,
.page-header .btn-secondary,
.image-band .btn-secondary {
  color: #fdf9ee;
  border-color: oklch(0.96 0.01 90 / 0.45);
}
.hero .btn-secondary:hover,
.page-header .btn-secondary:hover,
.image-band .btn-secondary:hover {
  background: oklch(0.96 0.01 90 / 0.14);
  border-color: oklch(0.96 0.01 90 / 0.7);
}
.btn-ghost {
  background: transparent;
  color: var(--color-primary);
  padding-inline: var(--space-2);
}
.btn-ghost:hover {
  color: var(--color-primary-hover);
}
.btn-lg {
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-base);
}

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: var(--color-text-inverse);
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    oklch(0.18 0.03 130 / 0.35) 0%,
    oklch(0.15 0.03 130 / 0.35) 40%,
    oklch(0.1 0.02 130 / 0.85) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  padding-block: var(--space-20) var(--space-16);
}
.hero .eyebrow {
  color: #f1dfc8;
}
.hero .eyebrow::before {
  background: #f1dfc8;
}
.hero h1 {
  color: #fdf9ee;
  max-width: 16ch;
}
.hero .lede {
  color: oklch(0.96 0.01 90 / 0.88);
  margin-top: var(--space-5);
}
.hero-actions {
  display: flex;
  gap: var(--space-4);
  margin-top: var(--space-8);
  flex-wrap: wrap;
}
.hero-scroll-cue {
  position: absolute;
  bottom: var(--space-8);
  right: var(--space-5);
  z-index: 1;
  color: oklch(0.96 0.01 90 / 0.7);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.hero-scroll-cue svg {
  width: 18px;
  height: 18px;
  animation: bob 2.2s ease-in-out infinite;
}
@keyframes bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(6px);
  }
}

/* Page header (non-home hero) */
.page-header {
  position: relative;
  padding-block: clamp(var(--space-24), 16vw, var(--space-32)) var(--space-16);
  overflow: hidden;
  color: var(--color-text-inverse);
}
.page-header-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.page-header-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.page-header-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    oklch(0.15 0.03 130 / 0.55) 0%,
    oklch(0.12 0.02 130 / 0.72) 100%
  );
}
.page-header-content {
  position: relative;
  z-index: 1;
}
.page-header h1 {
  font-size: var(--text-3xl);
  color: #fdf9ee;
}
.page-header .lede {
  color: oklch(0.96 0.01 90 / 0.88);
  margin-top: var(--space-4);
}
.breadcrumb {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: oklch(0.96 0.01 90 / 0.7);
  margin-bottom: var(--space-4);
  display: flex;
  gap: var(--space-2);
}
.breadcrumb a {
  color: inherit;
  text-decoration: none;
}
.breadcrumb a:hover {
  color: #fff;
}

/* ============ CARDS ============ */
.card {
  background: var(--color-surface);
  border: 1px solid oklch(from var(--color-text) l c h / 0.08);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
}
.card:hover {
  box-shadow: var(--shadow-md);
}
.icon-tile {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--color-primary-highlight);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-4);
}
.icon-tile svg {
  width: 26px;
  height: 26px;
}

.grid {
  display: grid;
  gap: var(--space-6);
}
.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}
.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}
.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}
.grid-auto {
  grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr));
}

/* Feature split (image + text) */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(var(--space-8), 6vw, var(--space-16));
  align-items: center;
}
.split--reverse .split-media {
  order: 2;
}
.split-media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/5;
}
.split-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.split-media--wide {
  aspect-ratio: 16/11;
}

/* Full-bleed image band */
.image-band {
  position: relative;
  height: clamp(280px, 44vw, 560px);
  overflow: hidden;
}
.image-band img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.image-band-caption {
  position: absolute;
  bottom: var(--space-6);
  left: var(--space-6);
  color: #fdf9ee;
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: oklch(0.15 0.02 130 / 0.5);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  backdrop-filter: blur(6px);
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--text-xs);
  font-weight: 600;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  background: var(--color-success-highlight);
  color: var(--color-success);
}
.badge--primary {
  background: var(--color-primary-highlight);
  color: var(--color-primary-hover);
}

/* Testimonial / quote */
.quote {
  position: relative;
  padding: var(--space-8) var(--space-8) var(--space-8) var(--space-10);
  background: var(--color-surface-offset);
  border-radius: var(--radius-lg);
  border-left: 3px solid var(--color-primary);
}
.quote p {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 500;
  max-width: 60ch;
}
.quote-author {
  margin-top: var(--space-4);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  font-family: var(--font-body);
}

/* Stats row */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
}
.stat-num {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  color: var(--color-primary);
}
.stat-label {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: var(--space-1);
}

/* Attraction cards */
.attraction-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-surface);
  border: 1px solid oklch(from var(--color-text) l c h / 0.08);
  box-shadow: var(--shadow-sm);
  height: 100%;
}
.attraction-card:hover {
  box-shadow: var(--shadow-md);
}
.attraction-card-media {
  aspect-ratio: 4/3;
  overflow: hidden;
}
.attraction-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.attraction-card:hover .attraction-card-media img {
  transform: scale(1.05);
}
.attraction-card-body {
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  flex: 1;
}
.attraction-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-top: auto;
  padding-top: var(--space-3);
}
.attraction-card-meta span {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
}
.attraction-card-meta svg {
  width: 14px;
  height: 14px;
}

/* Simple no-image info card for attraction list */
.attraction-card-nomedia .attraction-card-body {
  padding: var(--space-6);
}

/* Tag filter */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-10);
}
.filter-chip {
  font-size: var(--text-sm);
  font-weight: 500;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  border: 1px solid oklch(from var(--color-text) l c h / 0.16);
  color: var(--color-text-muted);
  background: var(--color-surface);
}
.filter-chip:hover {
  border-color: var(--color-primary);
  color: var(--color-text);
}
.filter-chip.is-active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-text-inverse);
}

/* Pricing table */
.table-scroll {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.pricing-table {
  width: 100%;
  min-width: 480px;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: none;
}
.pricing-table th,
.pricing-table td {
  text-align: left;
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--color-divider);
  font-size: var(--text-sm);
}
.pricing-table thead th {
  background: var(--color-surface-offset);
  font-family: var(--font-body);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}
.pricing-table tbody tr:last-child td {
  border-bottom: none;
}
.pricing-table td strong {
  color: var(--color-primary);
  font-family: var(--font-display);
  font-size: var(--text-lg);
}
.pricing-note {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-top: var(--space-3);
}

/* Amenities list */
.amenities {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3) var(--space-6);
}
.amenities li {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-sm);
}
.amenities svg {
  width: 18px;
  height: 18px;
  color: var(--color-primary);
  flex-shrink: 0;
}

/* Timeline (o nas) */
.timeline {
  position: relative;
  padding-left: var(--space-8);
  border-left: 2px solid var(--color-border);
}
.timeline-item {
  position: relative;
  padding-bottom: var(--space-10);
}
.timeline-item:last-child {
  padding-bottom: 0;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: calc(-1 * var(--space-8) - 6px);
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: var(--radius-full);
  background: var(--color-primary);
  border: 3px solid var(--color-bg);
}
.timeline-year {
  font-family: var(--font-display);
  color: var(--color-primary);
  font-size: var(--text-lg);
  margin-bottom: var(--space-1);
}

/* Gallery masonry */
.masonry {
  columns: 3 280px;
  column-gap: var(--space-5);
}
.masonry-item {
  break-inside: avoid;
  margin-bottom: var(--space-5);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  position: relative;
}
.masonry-item img {
  width: 100%;
  display: block;
}
.masonry-item figcaption {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  padding: var(--space-2) var(--space-1) 0;
  max-width: none;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  background: oklch(0.05 0.01 130 / 0.92);
  padding: var(--space-6);
}
.lightbox.is-open {
  display: flex;
}
.lightbox img {
  max-width: min(1100px, 92vw);
  max-height: 86vh;
  object-fit: contain;
  border-radius: var(--radius-md);
}
.lightbox-close {
  position: absolute;
  top: var(--space-6);
  right: var(--space-6);
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: oklch(1 0 0 / 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-close:hover {
  background: oklch(1 0 0 / 0.2);
}
.lightbox-caption {
  position: absolute;
  bottom: var(--space-8);
  left: 50%;
  transform: translateX(-50%);
  color: oklch(0.96 0.01 90 / 0.85);
  font-size: var(--text-sm);
  text-align: center;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-10);
}
.contact-info-item {
  display: flex;
  gap: var(--space-4);
  padding-block: var(--space-4);
  border-bottom: 1px solid var(--color-divider);
}
.contact-info-item:first-child {
  padding-top: 0;
}
.contact-info-item svg {
  width: 22px;
  height: 22px;
  color: var(--color-primary);
  flex-shrink: 0;
  margin-top: 2px;
}
.contact-info-item a {
  color: var(--color-text);
  text-decoration: none;
  font-weight: 600;
}
.contact-info-item a:hover {
  color: var(--color-primary);
}
.contact-info-item p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-top: var(--space-1);
}

.form-field {
  margin-bottom: var(--space-5);
}
.form-field label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  margin-bottom: var(--space-2);
}
.form-field input,
.form-field textarea {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  font-size: var(--text-base);
  min-height: 44px;
}
.form-field textarea {
  min-height: 140px;
  resize: vertical;
}
.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--color-primary);
  outline: none;
  box-shadow: 0 0 0 3px var(--color-primary-highlight);
}
.form-note {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-top: var(--space-3);
}

.map-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 4/3;
}
.map-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* Sources / attributions block */
.sources {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  line-height: 1.8;
}
.sources a {
  color: var(--color-text-muted);
}

/* ============ FOOTER ============ */
.site-footer {
  background: #1b2313;
  color: #d9d5bf;
  padding-block: var(--space-16) var(--space-8);
}
.site-footer a {
  color: #d9d5bf;
  text-decoration: none;
}
.site-footer a:hover {
  color: #fff;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: var(--space-8);
  padding-bottom: var(--space-12);
  border-bottom: 1px solid oklch(1 0 0 / 0.1);
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}
.footer-brand svg {
  width: 34px;
  height: 34px;
  color: #e08a4f;
}
.footer-brand strong {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: #fdf9ee;
}
.footer-col h5 {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #9aa084;
  margin-bottom: var(--space-4);
}
.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  font-size: var(--text-sm);
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-6);
  font-size: var(--text-xs);
  color: #7d8368;
  flex-wrap: wrap;
  gap: var(--space-3);
}

/* ============ MOTION ============ */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}
[data-reveal-delay='1'] {
  transition-delay: 0.08s;
}
[data-reveal-delay='2'] {
  transition-delay: 0.16s;
}
[data-reveal-delay='3'] {
  transition-delay: 0.24s;
}

/* ============ MOBILE ============ */
@media (max-width: 900px) {
  .nav-links {
    position: fixed;
    inset: 72px var(--space-4) auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--color-surface);
    border: 1px solid var(--color-divider);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: var(--space-2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all var(--transition-interactive);
  }
  .nav-links.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  .nav-links a {
    padding: var(--space-4);
    border-radius: var(--radius-md);
  }
  .nav-links a:hover {
    background: var(--color-surface-offset);
  }
  .nav-links a::after {
    display: none;
  }
  .nav-toggle {
    display: flex;
  }
  .split,
  .grid-2 {
    grid-template-columns: 1fr;
  }
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .split--reverse .split-media {
    order: 0;
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .amenities {
    grid-template-columns: 1fr;
  }
  .masonry {
    columns: 2 200px;
  }
  .hero {
    min-height: 100svh;
  }
}

@media (max-width: 600px) {
  .nav-actions .btn-primary {
    display: none;
  }
  .brand-text span:last-child {
    display: none;
  }
}

@media (max-width: 560px) {
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .masonry {
    columns: 1;
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
  }
}
