/* ============================================
   Zen Vacations — Design System
   Apple-inspired, zen-like aesthetic
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
  /* Zen palette — muted, calming tones */
  --color-ink: #1d1d1f;
  --color-ink-light: #6e6e73;
  --color-ink-muted: #86868b;
  --color-surface: #ffffff;
  --color-surface-warm: #fbfbfd;
  --color-surface-alt: #f5f5f7;
  --color-border: #d2d2d7;
  --color-border-light: #e8e8ed;

  /* Accent — warm sage green (zen garden) */
  --color-primary: #4a7c59;
  --color-primary-hover: #3d6a4b;
  --color-primary-light: #e8f0eb;
  --color-primary-subtle: #f0f6f2;

  /* Secondary — warm sand */
  --color-secondary: #c4a35a;
  --color-secondary-hover: #b5944d;
  --color-secondary-light: #faf5e8;

  /* Semantic */
  --color-error: #de3730;
  --color-success: #4a7c59;
  --color-warning: #c4a35a;
  --color-info: #5b7ea1;

  /* Typography — system-native Apple stack */
  --font-sans: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-serif: 'New York', 'Iowan Old Style', 'Palatino Linotype', 'Book Antiqua', Palatino, Georgia, serif;
  --font-mono: 'SF Mono', 'Fira Code', 'Fira Mono', 'Roboto Mono', Menlo, monospace;

  /* Spacing scale (4px base) */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 96px;
  --space-5xl: 128px;

  /* Border radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-full: 9999px;

  /* Shadows — subtle, layered */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.08);
  --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.1);
  --shadow-card: 0 2px 8px rgba(0, 0, 0, 0.04), 0 0 1px rgba(0, 0, 0, 0.06);
  --shadow-card-hover: 0 8px 30px rgba(0, 0, 0, 0.08), 0 0 1px rgba(0, 0, 0, 0.06);

  /* Transitions */
  --ease-out: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration-fast: 150ms;
  --duration-normal: 250ms;
  --duration-slow: 400ms;

  /* Layout */
  --content-width: 1200px;
  --content-narrow: 800px;
  --header-height: 64px;
}

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  color: var(--color-ink);
  background-color: var(--color-surface);
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: hidden;
}

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

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-out);
}

a:hover {
  color: var(--color-primary-hover);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--color-ink);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); }
h4 { font-size: 1.25rem; }

.text-serif {
  font-family: var(--font-serif);
  letter-spacing: -0.01em;
}

.text-muted { color: var(--color-ink-muted); }
.text-light { color: var(--color-ink-light); }
.text-center { text-align: center; }
.text-small { font-size: 0.875rem; }

/* --- Layout Containers --- */
.container {
  width: 100%;
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.container--narrow {
  max-width: var(--content-narrow);
}

.section {
  padding: var(--space-4xl) 0;
}

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

/* --- Header / Navigation --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--color-border-light);
  z-index: 1000;
  transition: background var(--duration-normal) var(--ease-out);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.header__logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-ink);
  letter-spacing: -0.03em;
}

.header__logo-icon {
  width: 28px;
  height: 28px;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.header__nav-link {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--color-ink-light);
  transition: color var(--duration-fast) var(--ease-out);
  position: relative;
}

.header__nav-link:hover,
.header__nav-link.active {
  color: var(--color-ink);
}

.header__nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--color-primary);
  border-radius: 1px;
}

.header__actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

/* Mobile menu toggle */
.header__menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
}

.header__menu-toggle svg {
  width: 20px;
  height: 20px;
  color: var(--color-ink);
}

@media (max-width: 768px) {
  .header__menu-toggle { display: flex; }
  .header__nav {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--color-surface);
    flex-direction: column;
    padding: var(--space-lg);
    gap: var(--space-md);
    border-bottom: 1px solid var(--color-border-light);
    box-shadow: var(--shadow-lg);
  }
  .header__nav.open { display: flex; }
  .header__actions { display: none; }
  .header__nav.open ~ .header__actions {
    display: flex;
    position: absolute;
    top: calc(var(--header-height) + 200px);
    left: 0;
    right: 0;
    padding: var(--space-lg);
    background: var(--color-surface);
  }
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 10px 20px;
  font-size: 0.9375rem;
  font-weight: 500;
  border-radius: var(--radius-full);
  transition: all var(--duration-normal) var(--ease-out);
  white-space: nowrap;
  line-height: 1.4;
}

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

.btn--primary:hover {
  background: var(--color-primary-hover);
  color: #fff;
  transform: scale(1.02);
}

.btn--secondary {
  background: var(--color-surface-alt);
  color: var(--color-ink);
}

.btn--secondary:hover {
  background: var(--color-border-light);
}

.btn--outline {
  background: transparent;
  color: var(--color-primary);
  border: 1.5px solid var(--color-primary);
}

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

.btn--ghost {
  background: transparent;
  color: var(--color-ink-light);
}

.btn--ghost:hover {
  color: var(--color-ink);
  background: var(--color-surface-alt);
}

.btn--large {
  padding: 14px 28px;
  font-size: 1.0625rem;
}

.btn--small {
  padding: 6px 14px;
  font-size: 0.8125rem;
}

.btn--icon {
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: var(--radius-full);
}

.btn--icon svg {
  width: 20px;
  height: 20px;
}

/* --- Hero Section --- */
.hero {
  padding-top: calc(var(--header-height) + var(--space-4xl));
  padding-bottom: var(--space-4xl);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero--home {
  min-height: 85vh;
  display: flex;
  align-items: center;
  background: linear-gradient(180deg, var(--color-surface-warm) 0%, var(--color-surface) 100%);
}

.hero__eyebrow {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-md);
}

.hero__title {
  max-width: 800px;
  margin: 0 auto var(--space-lg);
  font-weight: 700;
  letter-spacing: -0.04em;
}

.hero__subtitle {
  max-width: 560px;
  margin: 0 auto var(--space-2xl);
  font-size: 1.25rem;
  color: var(--color-ink-light);
  line-height: 1.6;
  font-weight: 400;
}

/* --- Search Bar (Hero) --- */
.search-bar {
  max-width: 680px;
  margin: 0 auto;
  position: relative;
}

.search-bar__wrapper {
  display: flex;
  align-items: center;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 6px 6px 6px 20px;
  gap: var(--space-sm);
  box-shadow: var(--shadow-md);
  transition: box-shadow var(--duration-normal) var(--ease-out),
              border-color var(--duration-normal) var(--ease-out);
}

.search-bar__wrapper:focus-within {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-lg), 0 0 0 3px var(--color-primary-light);
}

.search-bar__icon {
  width: 20px;
  height: 20px;
  color: var(--color-ink-muted);
  flex-shrink: 0;
}

.search-bar__input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 1rem;
  background: transparent;
  color: var(--color-ink);
  min-width: 0;
}

.search-bar__input::placeholder {
  color: var(--color-ink-muted);
}

.search-bar__submit {
  flex-shrink: 0;
}

.search-bar__divider {
  width: 1px;
  height: 24px;
  background: var(--color-border-light);
  flex-shrink: 0;
}

/* --- AI Chat Prompt --- */
.ai-prompt {
  max-width: 680px;
  margin: var(--space-lg) auto 0;
  text-align: center;
}

.ai-prompt__trigger {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 10px 20px;
  background: var(--color-primary-subtle);
  border: 1px solid var(--color-primary-light);
  border-radius: var(--radius-full);
  color: var(--color-primary);
  font-size: 0.9375rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease-out);
}

.ai-prompt__trigger:hover {
  background: var(--color-primary-light);
  transform: translateY(-1px);
}

.ai-prompt__trigger svg {
  width: 18px;
  height: 18px;
}

.ai-prompt__hint {
  display: block;
  margin-top: var(--space-sm);
  font-size: 0.8125rem;
  color: var(--color-ink-muted);
}

/* --- Cards --- */
.card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform var(--duration-normal) var(--ease-out),
              box-shadow var(--duration-normal) var(--ease-out);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

.card__image {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: var(--color-surface-alt);
}

.card__body {
  padding: var(--space-lg);
}

.card__eyebrow {
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-primary);
  margin-bottom: var(--space-sm);
}

.card__title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: var(--space-sm);
  letter-spacing: -0.01em;
}

.card__description {
  font-size: 0.9375rem;
  color: var(--color-ink-light);
  line-height: 1.55;
  margin-bottom: var(--space-md);
}

.card__meta {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  font-size: 0.8125rem;
  color: var(--color-ink-muted);
}

.card__meta-item {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.card__meta-item svg {
  width: 14px;
  height: 14px;
}

.card__price {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-ink);
}

.card__price-unit {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--color-ink-muted);
}

/* --- Card Grid --- */
.card-grid {
  display: grid;
  gap: var(--space-lg);
}

.card-grid--2 { grid-template-columns: repeat(2, 1fr); }
.card-grid--3 { grid-template-columns: repeat(3, 1fr); }
.card-grid--4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1024px) {
  .card-grid--4 { grid-template-columns: repeat(2, 1fr); }
  .card-grid--3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .card-grid--4,
  .card-grid--3,
  .card-grid--2 { grid-template-columns: 1fr; }
}

/* --- Section Headers --- */
.section-header {
  margin-bottom: var(--space-2xl);
}

.section-header--center {
  text-align: center;
}

.section-header__title {
  margin-bottom: var(--space-sm);
}

.section-header__subtitle {
  font-size: 1.125rem;
  color: var(--color-ink-light);
  max-width: 560px;
  line-height: 1.6;
}

.section-header--center .section-header__subtitle {
  margin: 0 auto;
}

/* --- Tags / Chips --- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 4px 12px;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: var(--radius-full);
  background: var(--color-surface-alt);
  color: var(--color-ink-light);
}

.tag--primary {
  background: var(--color-primary-light);
  color: var(--color-primary);
}

.tag--secondary {
  background: var(--color-secondary-light);
  color: var(--color-secondary);
}

/* --- Destination Pill (horizontal scroll) --- */
.destinations-scroll {
  display: flex;
  gap: var(--space-md);
  overflow-x: auto;
  padding: var(--space-sm) 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.destinations-scroll::-webkit-scrollbar { display: none; }

.destination-pill {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md) var(--space-sm) var(--space-sm);
  background: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-full);
  white-space: nowrap;
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease-out);
}

.destination-pill:hover {
  border-color: var(--color-primary);
  background: var(--color-primary-subtle);
}

.destination-pill__image {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--color-surface-alt);
}

.destination-pill__name {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-ink);
}

/* --- Feature Blocks --- */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-2xl);
}

.feature {
  text-align: center;
}

.feature__icon {
  width: 48px;
  height: 48px;
  margin: 0 auto var(--space-md);
  color: var(--color-primary);
}

.feature__title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

.feature__description {
  font-size: 0.9375rem;
  color: var(--color-ink-light);
  line-height: 1.55;
}

@media (max-width: 768px) {
  .features { grid-template-columns: 1fr; gap: var(--space-2xl); }
}

/* --- Chat Widget --- */
.chat-widget {
  position: fixed;
  bottom: var(--space-lg);
  right: var(--space-lg);
  z-index: 900;
}

.chat-widget__toggle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  transition: transform var(--duration-normal) var(--ease-spring),
              background var(--duration-normal) var(--ease-out);
}

.chat-widget__toggle:hover {
  transform: scale(1.08);
  background: var(--color-primary-hover);
}

.chat-widget__toggle svg {
  width: 24px;
  height: 24px;
}

.chat-widget__panel {
  position: absolute;
  bottom: calc(56px + var(--space-md));
  right: 0;
  width: 380px;
  max-height: 560px;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--color-border-light);
  display: none;
  flex-direction: column;
  overflow: hidden;
  animation: chatSlideUp var(--duration-normal) var(--ease-out);
}

.chat-widget__panel.open {
  display: flex;
}

@keyframes chatSlideUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.chat-widget__header {
  padding: var(--space-md) var(--space-lg);
  border-bottom: 1px solid var(--color-border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chat-widget__title {
  font-size: 0.9375rem;
  font-weight: 600;
}

.chat-widget__status {
  font-size: 0.75rem;
  color: var(--color-success);
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.chat-widget__status::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-success);
}

.chat-widget__messages {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-md) var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.chat-message {
  max-width: 85%;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  line-height: 1.5;
}

.chat-message--assistant {
  align-self: flex-start;
  background: var(--color-surface-alt);
  color: var(--color-ink);
}

.chat-message--user {
  align-self: flex-end;
  background: var(--color-primary);
  color: #fff;
}

.chat-widget__input-area {
  padding: var(--space-sm) var(--space-md);
  border-top: 1px solid var(--color-border-light);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.chat-widget__input {
  flex: 1;
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-full);
  padding: 8px 16px;
  font-size: 0.875rem;
  outline: none;
  transition: border-color var(--duration-fast) var(--ease-out);
}

.chat-widget__input:focus {
  border-color: var(--color-primary);
}

.chat-widget__send {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background var(--duration-fast) var(--ease-out);
}

.chat-widget__send:hover {
  background: var(--color-primary-hover);
}

.chat-widget__send svg {
  width: 16px;
  height: 16px;
}

@media (max-width: 480px) {
  .chat-widget__panel {
    width: calc(100vw - var(--space-xl));
    right: calc(-1 * var(--space-sm));
    max-height: 70vh;
  }
}

/* --- Filters Bar --- */
.filters {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
  padding: var(--space-md) 0;
}

.filter-select {
  padding: 8px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  color: var(--color-ink);
  background: var(--color-surface);
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%236e6e73' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
  transition: border-color var(--duration-fast) var(--ease-out);
}

.filter-select:focus {
  outline: none;
  border-color: var(--color-primary);
}

/* --- Listing Detail --- */
.listing-hero {
  position: relative;
  padding-top: var(--header-height);
}

.listing-hero__gallery {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 4px;
  max-height: 480px;
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.listing-hero__gallery img:first-child {
  grid-row: 1 / 3;
}

.listing-detail {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: var(--space-2xl);
  padding: var(--space-2xl) 0;
}

.listing-detail__content {
  min-width: 0;
}

.listing-detail__sidebar {
  position: sticky;
  top: calc(var(--header-height) + var(--space-lg));
  align-self: start;
}

@media (max-width: 900px) {
  .listing-detail {
    grid-template-columns: 1fr;
  }
  .listing-detail__sidebar {
    position: static;
  }
  .listing-hero__gallery {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    max-height: 320px;
  }
  .listing-hero__gallery img:not(:first-child) { display: none; }
}

/* --- Booking Card (Sidebar) --- */
.booking-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-md);
}

.booking-card__price {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: var(--space-md);
}

.booking-card__dates {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: var(--space-md);
}

.booking-card__date {
  padding: var(--space-sm) var(--space-md);
  cursor: pointer;
}

.booking-card__date:first-child {
  border-right: 1px solid var(--color-border);
}

.booking-card__date-label {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-ink);
}

.booking-card__date-value {
  font-size: 0.875rem;
  color: var(--color-ink-light);
  margin-top: 2px;
}

.booking-card__guests {
  padding: var(--space-sm) var(--space-md);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-md);
  cursor: pointer;
}

.booking-card__btn {
  width: 100%;
  padding: 14px;
  font-size: 1rem;
}

/* --- Footer --- */
.footer {
  background: var(--color-surface-alt);
  border-top: 1px solid var(--color-border-light);
  padding: var(--space-3xl) 0 var(--space-2xl);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-2xl);
  margin-bottom: var(--space-2xl);
}

.footer__brand-description {
  font-size: 0.875rem;
  color: var(--color-ink-light);
  line-height: 1.6;
  margin-top: var(--space-md);
  max-width: 280px;
}

.footer__heading {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-ink);
  margin-bottom: var(--space-md);
}

.footer__links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer__link {
  font-size: 0.875rem;
  color: var(--color-ink-light);
}

.footer__link:hover {
  color: var(--color-ink);
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-lg);
  border-top: 1px solid var(--color-border-light);
  font-size: 0.8125rem;
  color: var(--color-ink-muted);
}

@media (max-width: 768px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
  }
}

@media (max-width: 480px) {
  .footer__grid { grid-template-columns: 1fr; }
}

/* --- Toast Notifications --- */
.toast-container {
  position: fixed;
  top: calc(var(--header-height) + var(--space-md));
  right: var(--space-lg);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.toast {
  padding: var(--space-md) var(--space-lg);
  background: var(--color-ink);
  color: #fff;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  box-shadow: var(--shadow-lg);
  animation: toastIn var(--duration-normal) var(--ease-out);
}

.toast--success { background: var(--color-success); }
.toast--error { background: var(--color-error); }

@keyframes toastIn {
  from { opacity: 0; transform: translateX(24px); }
  to { opacity: 1; transform: translateX(0); }
}

/* --- Loading / Skeleton --- */
.skeleton {
  background: linear-gradient(90deg, var(--color-surface-alt) 25%, var(--color-border-light) 50%, var(--color-surface-alt) 75%);
  background-size: 200% 100%;
  animation: skeletonPulse 1.5s ease-in-out infinite;
  border-radius: var(--radius-sm);
}

@keyframes skeletonPulse {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* --- Pagination --- */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: var(--space-2xl) 0;
}

.pagination__btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-ink-light);
  transition: all var(--duration-fast) var(--ease-out);
}

.pagination__btn:hover {
  background: var(--color-surface-alt);
  color: var(--color-ink);
}

.pagination__btn.active {
  background: var(--color-primary);
  color: #fff;
}

/* --- Forms --- */
.form-group {
  margin-bottom: var(--space-lg);
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: var(--space-sm);
  color: var(--color-ink);
}

.form-input {
  width: 100%;
  padding: 10px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: 1rem;
  color: var(--color-ink);
  background: var(--color-surface);
  outline: none;
  transition: border-color var(--duration-fast) var(--ease-out),
              box-shadow var(--duration-fast) var(--ease-out);
}

.form-input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-light);
}

.form-input::placeholder {
  color: var(--color-ink-muted);
}

/* --- Empty State --- */
.empty-state {
  text-align: center;
  padding: var(--space-4xl) var(--space-lg);
}

.empty-state__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--space-lg);
  color: var(--color-ink-muted);
}

.empty-state__title {
  font-size: 1.25rem;
  margin-bottom: var(--space-sm);
}

.empty-state__description {
  color: var(--color-ink-light);
  margin-bottom: var(--space-lg);
}

/* --- Utility Classes --- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }

.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }

/* --- Amenities --- */
.amenities {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  padding: var(--space-md) 0;
}

.amenity {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.9375rem;
  color: var(--color-ink-light);
}

.amenity svg {
  width: 20px;
  height: 20px;
  color: var(--color-ink-muted);
}

/* --- Rating --- */
.rating {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.rating__stars {
  display: flex;
  gap: 2px;
  color: var(--color-secondary);
}

.rating__stars svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.rating__count {
  font-size: 0.8125rem;
  color: var(--color-ink-muted);
}

/* --- Tabs --- */
.tabs {
  display: flex;
  gap: var(--space-xl);
  border-bottom: 1px solid var(--color-border-light);
  margin-bottom: var(--space-xl);
}

.tab {
  padding: var(--space-md) 0;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-ink-muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-out);
}

.tab:hover { color: var(--color-ink); }
.tab.active {
  color: var(--color-ink);
  border-bottom-color: var(--color-primary);
}

/* --- Responsive utilities --- */
@media (max-width: 768px) {
  .hide-mobile { display: none !important; }
  .section { padding: var(--space-3xl) 0; }
}

@media (min-width: 769px) {
  .hide-desktop { display: none !important; }
}

/* Main content offset for fixed header */
.main-content {
  padding-top: var(--header-height);
}

/* --- Theme Toggle --- */
.theme-toggle {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  color: var(--color-ink-light);
  transition: color var(--duration-fast) var(--ease-out),
              background var(--duration-fast) var(--ease-out);
  flex-shrink: 0;
}

.theme-toggle:hover {
  color: var(--color-ink);
  background: var(--color-surface-alt);
}

.theme-toggle svg {
  width: 18px;
  height: 18px;
}

.theme-toggle .icon-moon { display: block; }
.theme-toggle .icon-sun { display: none; }

/* --- Dark Mode --- */
[data-theme="dark"] {
  --color-ink: #f5f5f7;
  --color-ink-light: #a1a1a6;
  --color-ink-muted: #86868b;
  --color-surface: #1a1a1c;
  --color-surface-warm: #1e1e20;
  --color-surface-alt: #2a2a2e;
  --color-border: #3a3a3e;
  --color-border-light: #2e2e32;

  --color-primary: #6aad7b;
  --color-primary-hover: #7bbf8c;
  --color-primary-light: rgba(106, 173, 123, 0.15);
  --color-primary-subtle: rgba(106, 173, 123, 0.08);

  --color-secondary: #d4b76a;
  --color-secondary-hover: #e0c47a;
  --color-secondary-light: rgba(212, 183, 106, 0.15);

  --color-error: #ff6b6b;
  --color-success: #6aad7b;
  --color-warning: #d4b76a;
  --color-info: #7ba3c9;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.35);
  --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.4);
  --shadow-card: 0 2px 8px rgba(0, 0, 0, 0.2), 0 0 1px rgba(0, 0, 0, 0.3);
  --shadow-card-hover: 0 8px 30px rgba(0, 0, 0, 0.3), 0 0 1px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .header {
  background: rgba(26, 26, 28, 0.8);
}

[data-theme="dark"] .hero--home {
  background: linear-gradient(180deg, var(--color-surface-warm) 0%, var(--color-surface) 100%);
}

[data-theme="dark"] .filter-select {
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%23a1a1a6' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
}

[data-theme="dark"] .header__logo-icon circle {
  stroke: var(--color-primary);
}

[data-theme="dark"] .header__logo-icon path {
  fill: var(--color-primary);
}

[data-theme="dark"] .skeleton {
  background: linear-gradient(90deg, var(--color-surface-alt) 25%, var(--color-border) 50%, var(--color-surface-alt) 75%);
  background-size: 200% 100%;
}

[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }

[data-theme="dark"] .theme-toggle:hover {
  background: var(--color-surface-alt);
}

/* Auto dark mode for users without preference set */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]):not([data-theme="dark"]) {
    --color-ink: #f5f5f7;
    --color-ink-light: #a1a1a6;
    --color-ink-muted: #86868b;
    --color-surface: #1a1a1c;
    --color-surface-warm: #1e1e20;
    --color-surface-alt: #2a2a2e;
    --color-border: #3a3a3e;
    --color-border-light: #2e2e32;
    --color-primary: #6aad7b;
    --color-primary-hover: #7bbf8c;
    --color-primary-light: rgba(106, 173, 123, 0.15);
    --color-primary-subtle: rgba(106, 173, 123, 0.08);
    --color-secondary: #d4b76a;
    --color-secondary-hover: #e0c47a;
    --color-secondary-light: rgba(212, 183, 106, 0.15);
    --color-error: #ff6b6b;
    --color-success: #6aad7b;
    --color-warning: #d4b76a;
    --color-info: #7ba3c9;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.35);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.4);
    --shadow-card: 0 2px 8px rgba(0, 0, 0, 0.2), 0 0 1px rgba(0, 0, 0, 0.3);
    --shadow-card-hover: 0 8px 30px rgba(0, 0, 0, 0.3), 0 0 1px rgba(0, 0, 0, 0.3);
  }

  :root:not([data-theme="light"]):not([data-theme="dark"]) .header {
    background: rgba(26, 26, 28, 0.8);
  }

  :root:not([data-theme="light"]):not([data-theme="dark"]) .filter-select {
    background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%23a1a1a6' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  }

  :root:not([data-theme="light"]):not([data-theme="dark"]) .skeleton {
    background: linear-gradient(90deg, var(--color-surface-alt) 25%, var(--color-border) 50%, var(--color-surface-alt) 75%);
    background-size: 200% 100%;
  }

  :root:not([data-theme="light"]):not([data-theme="dark"]) .theme-toggle .icon-moon { display: none; }
  :root:not([data-theme="light"]):not([data-theme="dark"]) .theme-toggle .icon-sun { display: block; }
}
