:root {
  --white: #ffffff;
  --ivory: #faf9f6;
  --navy: #0c1f3f;
  --royal: #1e3f8f;
  --royal-soft: #eef1f9;
  --line: #dfe3ea;
  --text-muted: #5c6478;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--white);
  color: var(--navy);
  font-family: 'Inter', -apple-system, Arial, sans-serif;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

h1, h2, h3 { margin: 0; font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 500; }

p { margin: 0; }

.layout { display: flex; align-items: flex-start; min-height: 100vh; }

/* ---------- SIDEBAR ---------- */

.sidebar {
  width: 220px;
  flex-shrink: 0;
  background: var(--navy);
  min-height: 100vh;
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.sidebar-top { padding: 32px 24px; }

.brand-mark { width: 84px; margin-bottom: 14px; }
.cat-mark-img { width: 100%; height: auto; display: block; }

.wordmark {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: 15px;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  line-height: 1.5;
}

.sidebar-nav { padding: 8px 24px; flex: 1; }

.nav-item {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 10px 0;
  color: rgba(255, 255, 255, 0.6);
  border-left: 2px solid transparent;
  padding-left: 14px;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: none;
  border-top: none;
  border-right: none;
  border-bottom: none;
  width: 100%;
  text-align: left;
}

.nav-item .num { font-family: 'Cormorant Garamond', serif; color: var(--royal); font-size: 13px; text-transform: none; letter-spacing: normal; }

.nav-item:hover { color: #ffffff; }

.nav-item.active {
  color: #ffffff;
  border-left-color: var(--royal);
  font-weight: 500;
}

.sidebar-bottom {
  padding: 24px 24px 32px;
  font-family: 'Inter', sans-serif;
  font-style: italic;
  font-weight: 300;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.7;
}

/* mobile top bar: cat mark + pill nav */
.mobile-topbar {
  display: none;
  flex-direction: column;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--navy);
  padding-top: 10px;
}

.mobile-topbar-cat { width: 46px; margin-bottom: 6px; }

.pill-nav {
  overflow-x: auto;
  white-space: nowrap;
  padding: 0 16px 12px;
  gap: 10px;
  width: 100%;
}

.pill-nav::-webkit-scrollbar { display: none; }

.pill-nav button {
  display: inline-block;
  font-family: 'Cormorant Garamond', serif;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  padding: 6px 14px;
  margin-right: 8px;
  cursor: pointer;
}

.pill-nav button.active { color: #fff; border-color: var(--royal); background: rgba(30, 63, 143, 0.35); }

/* ---------- MAIN ---------- */

.main { flex: 1; min-width: 0; }

/* ---------- HERO ---------- */

.hero {
  position: relative;
  min-height: 52vh;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center;
  padding: 36px 48px 40px;
  color: #ffffff;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(12, 31, 63, 0.15) 0%, rgba(12, 31, 63, 0.75) 100%);
}

.hero-sun {
  position: absolute;
  top: 40px;
  right: 48px;
  width: 44px;
  height: 44px;
  color: rgba(255, 255, 255, 0.85);
  z-index: 1;
}

.hero-content { position: relative; z-index: 1; max-width: 780px; }

.hero-wordmark {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin-bottom: 20px;
  opacity: 0.95;
}

.hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-style: italic;
  font-size: clamp(38px, 5.6vw, 66px);
  line-height: 1.08;
  margin-bottom: 18px;
}

.hero-title-year {
  display: inline-block;
  font-size: 0.5em;
  margin-top: 0.2em;
}

.hero-subtitle {
  font-family: 'Inter', sans-serif;
  font-style: italic;
  font-weight: 400;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 28px;
}

.hero-pills { display: flex; flex-wrap: wrap; gap: 12px; }

.pill {
  display: inline-block;
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #ffffff;
  background: transparent;
}

/* ---------- QUICK GLANCE ---------- */

.quick-glance { background: var(--ivory); padding: 40px 0; }

.quick-glance-caption {
  text-align: center;
  font-family: 'Inter', sans-serif;
  font-style: italic;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 24px;
  padding: 0 24px;
}

.quick-glance-row {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  padding: 4px 40px 12px;
}

.quick-glance-row::-webkit-scrollbar { height: 6px; }
.quick-glance-row::-webkit-scrollbar-thumb { background: var(--line); border-radius: 3px; }

.qg-item {
  flex: 0 0 auto;
  width: 140px;
  text-align: center;
  cursor: pointer;
  background: none;
  border: none;
  font: inherit;
  padding: 0;
}

.qg-thumb {
  width: 96px;
  height: 96px;
  border-radius: 8px;
  object-fit: cover;
  margin: 0 auto 12px;
  filter: saturate(0.92);
  transition: filter 0.3s, transform 0.2s;
}

.qg-item:hover .qg-thumb { filter: saturate(1); transform: translateY(-2px); }

.qg-name { font-family: 'Inter', sans-serif; font-size: 11px; color: var(--text-muted); margin-bottom: 4px; }

.qg-price { font-family: 'Cormorant Garamond', serif; font-size: 16px; color: var(--navy); }

/* ---------- DESTINATION SECTION ---------- */

.destination { padding: 96px 24px; }
.destination.bg-white { background: var(--white); }
.destination.bg-ivory { background: var(--ivory); }

.destination-inner { max-width: 1080px; margin: 0 auto; }

.destination-number {
  font-family: 'Cormorant Garamond', serif;
  font-size: 15px;
  color: var(--royal);
  margin-bottom: 6px;
}

.destination-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: 34px;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 48px;
}

.destination-title .country { color: var(--text-muted); font-size: 22px; text-transform: uppercase; }

/* divider */

.divider { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 64px; }
.divider-line { flex: 1; max-width: 260px; height: 1px; background: var(--line); }
.divider-icon { width: 64px; opacity: 0.5; color: var(--navy); }

/* ---------- CARDS ---------- */

.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.5s ease-out, transform 0.5s ease-out; }
.reveal.in-view { opacity: 1; transform: translateY(0); }

.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: default;
}
.badge.available { background: var(--royal-soft); color: var(--royal); }
.badge.on-request { background: var(--ivory); color: var(--navy); border: 1px solid var(--navy); }
.badge.unavailable { background: #fbeceb; color: #9b3b34; border: 1px solid #e3a9a4; }
.badge.warning { background: #fdf3e3; color: #8a5a12; border: 1px solid #ecc98a; }

.property-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  transition: transform 0.25s, border-color 0.25s;
  overflow: hidden;
}

.property-card:hover { transform: translateY(-3px); border-color: var(--royal); }

.property-card .card-image-wrap { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }

.property-card .card-image-wrap img {
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(0.92); transition: filter 0.3s;
}
.property-card:hover .card-image-wrap img { filter: saturate(1); }

.card-badge-float {
  position: absolute;
  top: 14px;
  right: 14px;
  backdrop-filter: blur(6px);
}
.card-badge-float .badge { background-color: rgba(255,255,255,0.85); }
.card-badge-float .badge.available { background-color: rgba(238,241,249,0.9); }

.card-body { padding: 22px; }

.card-location {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.card-title { font-family: 'Cormorant Garamond', serif; font-weight: 500; font-size: 20px; color: var(--navy); margin-bottom: 10px; }

.card-desc { font-family: 'Inter', sans-serif; font-weight: 300; font-size: 14.5px; line-height: 1.75; color: var(--navy); margin-bottom: 16px; }

.card-meta { font-family: 'Inter', sans-serif; font-size: 12.5px; color: var(--text-muted); margin-bottom: 16px; }

.card-price-row { margin-bottom: 18px; }
.card-price { font-family: 'Cormorant Garamond', serif; font-weight: 500; font-size: 30px; color: var(--navy); }
.card-price-pp { font-family: 'Inter', sans-serif; font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.card-price-note { font-family: 'Inter', sans-serif; font-style: italic; font-size: 14px; color: var(--text-muted); }

.card-link {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--royal);
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: border-color 0.2s;
}
.card-link:hover { border-bottom-color: var(--royal); }

.img-fallback {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: var(--ivory);
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  color: var(--text-muted);
  text-align: center;
  padding: 16px;
  font-size: 14px;
}

/* single feature layout */

.feature-card {
  display: flex;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.25s, border-color 0.25s;
}
.feature-card:hover { transform: translateY(-3px); border-color: var(--royal); }

.feature-image { position: relative; width: 55%; flex-shrink: 0; aspect-ratio: 4 / 5; }
.feature-image img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.92); transition: filter 0.3s; }
.feature-card:hover .feature-image img { filter: saturate(1); }

.feature-content { width: 45%; padding: 40px; display: flex; flex-direction: column; justify-content: center; }
.feature-content .card-title { font-size: 24px; }

/* ---------- CARD STACK ---------- */

.stack-wrap { padding-top: 12px; }

.stack-container {
  position: relative;
  height: 620px;
  max-width: 620px;
}

.stack-card {
  position: absolute;
  inset: 0;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.stack-controls {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 24px;
}

.stack-link {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--royal);
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}

.stack-arrows { display: flex; gap: 10px; margin-left: auto; }

.arrow-btn {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--navy);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  font-size: 14px;
  transition: border-color 0.2s, color 0.2s;
}
.arrow-btn:hover { border-color: var(--royal); color: var(--royal); }

.stack-dots { display: flex; gap: 8px; margin-top: 18px; }
.stack-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--line);
  border: none; padding: 0; cursor: pointer;
}
.stack-dot.active { background: var(--royal); }


/* ---------- TOOLTIP ---------- */

.badge-wrap { position: relative; display: inline-block; }
.badge-tooltip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--navy);
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  line-height: 1.5;
  padding: 8px 12px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  z-index: 10;
}
.badge-wrap:hover .badge-tooltip,
.badge-wrap:focus-within .badge-tooltip { opacity: 1; }

/* ---------- FOOTER ---------- */

.site-footer {
  background: var(--navy);
  padding: 48px 24px;
  text-align: center;
  color: #fff;
}
.footer-mark { width: 100px; margin: 0 auto 18px; }
.footer-brand { font-family: 'Cormorant Garamond', serif; font-weight: 500; font-size: 15px; text-transform: uppercase; letter-spacing: 0.16em; margin-bottom: 10px; }
.footer-line { font-family: 'Inter', sans-serif; font-weight: 300; font-style: italic; font-size: 12px; color: rgba(255,255,255,0.7); line-height: 1.8; }

/* ---------- RESPONSIVE ---------- */

@media (max-width: 880px) {
  .layout { flex-direction: column; align-items: stretch; }
  .sidebar { display: none; }
  .mobile-topbar { display: flex; }

  .hero { padding: 24px 20px 32px; min-height: 42vh; }
  .hero-sun { right: 20px; top: 24px; width: 34px; height: 34px; }

  .destination { padding: 64px 20px; }
  .destination-title { font-size: 26px; }

  .feature-card { flex-direction: column; }
  .feature-image, .feature-content { width: 100%; }
  .feature-image { aspect-ratio: 4 / 3; }
  .feature-content { padding: 26px; }

  .stack-container {
    height: auto;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 16px;
    padding-bottom: 4px;
  }
  .stack-container .stack-card {
    position: relative;
    inset: auto;
    flex: 0 0 85%;
    min-width: 0;
    scroll-snap-align: center;
    opacity: 1 !important;
    transform: none !important;
  }
  .stack-arrows { display: none; }
  .stack-link { display: none; }

  .quick-glance-row { padding: 4px 20px 12px; }
}
