/* ============================================================
   The Teak Ratchada 19 — Vanilla rebuild
   Design system ported from the original Tailwind v4 theme
   ============================================================ */

/* ---- Fonts (Geist + Playfair Display, self-hosted) ---- */
@import url('fonts.css');

/* ---- Design tokens ---- */
:root {
  --radius: 0.625rem;

  /* Luxury Gold/Champagne theme */
  --gold: oklch(0.75 0.12 85);
  --gold-dark: oklch(0.60 0.14 75);
  --gold-light: oklch(0.85 0.08 85);
  --gold-muted: oklch(0.95 0.03 85);

  --luxury-black: oklch(0.12 0.01 0);
  --luxury-charcoal: oklch(0.22 0.01 0);
  --luxury-cream: oklch(0.97 0.02 85);

  /* Semantic colors — light mode */
  --background: oklch(0.99 0.01 85);
  --foreground: oklch(0.12 0.01 0);
  --card: oklch(1 0 0);
  --card-foreground: oklch(0.22 0.01 0);
  --primary: oklch(0.60 0.14 75);
  --primary-foreground: oklch(0.99 0.01 85);
  --secondary: oklch(0.97 0.02 85);
  --muted: oklch(0.95 0.03 85);
  --muted-foreground: oklch(0.45 0.01 0);
  --accent: oklch(0.75 0.12 85);
  --destructive: oklch(0.577 0.245 27.325);
  --border: oklch(0.90 0.03 85);
  --input: oklch(0.90 0.03 85);
  --ring: oklch(0.75 0.12 85);

  --font-sans: 'Geist', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-heading: 'Playfair Display', serif;
}

/* ---- Reset ---- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border-color: var(--border);
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

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

ul {
  list-style: none;
}

::selection {
  background-color: oklch(0.75 0.12 85 / 0.3);
  color: oklch(0.12 0.01 0);
}

.font-heading {
  font-family: var(--font-heading);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---- Layout helpers ---- */
.container {
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: 1rem;
}

.section {
  padding-block: 5rem;
}
@media (min-width: 1024px) {
  .section { padding-block: 7rem; }
}

.bg-background { background-color: var(--background); }
.bg-muted-30 { background-color: oklch(0.95 0.03 85 / 0.3); }
.bg-card-50 { background-color: oklch(1 0 0 / 0.5); }

/* ---- Section title ---- */
.section-title {
  margin-bottom: 2rem;
  text-align: center;
}
@media (min-width: 1024px) {
  .section-title { margin-bottom: 3rem; }
}
.section-title h2 {
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--foreground);
  font-size: clamp(1.875rem, 4vw, 3rem);
  line-height: 1.1;
}
.section-title p {
  margin-top: 1rem;
  color: var(--muted-foreground);
  font-size: clamp(1rem, 2vw, 1.125rem);
  max-width: 42rem;
  margin-inline: auto;
}
.section-title .rule {
  margin-top: 1.5rem;
  height: 2px;
  width: 4rem;
  background: linear-gradient(to right, var(--gold), var(--gold-dark));
  margin-inline: auto;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  border-radius: calc(var(--radius) - 2px);
  transition: all 0.3s ease;
  padding: 0.5rem 1.5rem;
  font-size: 0.875rem;
  white-space: nowrap;
}
.btn-gold {
  background-color: var(--gold);
  color: var(--background);
}
.btn-gold:hover { background-color: var(--gold-dark); }
.btn-lg {
  padding: 1rem 2rem;
  font-size: 1rem;
}
.btn-outline {
  border: 1px solid var(--border);
  background: transparent;
}
.btn-outline:hover { background-color: var(--muted); }
.btn-ghost { background: transparent; color: var(--muted-foreground); }
.btn-ghost:hover { color: var(--foreground); }
.btn-block { width: 100%; }

/* ---- Header ---- */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  transition: all 0.3s ease;
  background: transparent;
}
.header.scrolled {
  background-color: oklch(0.99 0.01 85 / 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1);
  border-bottom: 1px solid oklch(0.75 0.12 85 / 0.1);
}
.header .container { padding-inline: 0.5rem; }
@media (min-width: 640px) { .header .container { padding-inline: 1rem; } }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}
@media (min-width: 640px) { .header-inner { height: 5rem; } }

.logo { display: flex; flex-direction: column; align-items: flex-start; flex-shrink: 0; }
.logo .logo-main {
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--gold);
  font-size: 1.125rem;
}
@media (min-width: 640px) { .logo .logo-main { font-size: 1.25rem; } }
@media (min-width: 768px) { .logo .logo-main { font-size: 1.5rem; } }
.logo .logo-sub {
  font-size: 9px;
  letter-spacing: 0.2em;
  color: var(--muted-foreground);
  margin-top: -0.25rem;
}
@media (min-width: 640px) { .logo .logo-sub { font-size: 10px; letter-spacing: 0.3em; } }
@media (min-width: 768px) { .logo .logo-sub { font-size: 0.75rem; } }

.nav-desktop { display: none; align-items: center; gap: 1.5rem; }
@media (min-width: 1280px) { .nav-desktop { display: flex; gap: 2rem; } }
.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s;
  position: relative;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,0.8);
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1px;
  background-color: var(--gold);
  transition: width 0.3s;
}
.nav-link:hover { color: var(--gold); }
.nav-link:hover::after { width: 100%; }
.header.scrolled .nav-link {
  color: oklch(0.12 0.01 0 / 0.8);
  text-shadow: none;
}
.header.scrolled .nav-link:hover { color: var(--gold); }

.header-actions { display: flex; align-items: center; gap: 0.375rem; }
@media (min-width: 640px) { .header-actions { gap: 0.75rem; } }

.lang-switch {
  display: none;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 0.375rem;
  transition: all 0.2s;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.3);
  text-shadow: 0 1px 2px rgba(0,0,0,0.8);
}
@media (min-width: 640px) { .lang-switch { display: flex; } }
.lang-switch:hover { color: var(--gold); border-color: oklch(0.75 0.12 85 / 0.5); }
.header.scrolled .lang-switch {
  color: oklch(0.12 0.01 0 / 0.7);
  border-color: oklch(0.90 0.03 85 / 0.5);
  text-shadow: none;
}
.lang-switch .sep { color: rgba(255,255,255,0.6); }
.header.scrolled .lang-switch .sep { color: var(--border); }
.lang-switch .active { color: var(--gold); }

.header-cta {
  background-color: var(--gold);
  color: var(--background);
  font-weight: 500;
  font-size: 0.75rem;
  padding: 0.5rem 0.75rem;
  border-radius: calc(var(--radius) - 2px);
  white-space: nowrap;
  transition: background-color 0.2s;
}
@media (min-width: 640px) { .header-cta { font-size: 0.875rem; padding: 0.5rem 1rem; } }
@media (min-width: 1024px) { .header-cta { padding: 0.5rem 1.5rem; } }
.header-cta:hover { background-color: var(--gold-dark); }

.menu-toggle {
  display: inline-flex;
  padding: 0.5rem;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,0.8);
  transition: color 0.2s;
}
@media (min-width: 1280px) { .menu-toggle { display: none; } }
.header.scrolled .menu-toggle { color: var(--foreground); text-shadow: none; }

/* ---- Mobile menu ---- */
.mobile-overlay {
  position: fixed;
  inset: 0;
  z-index: 40;
  background-color: oklch(0.99 0.01 85 / 0.8);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.mobile-overlay.open { opacity: 1; pointer-events: auto; }
@media (min-width: 1280px) { .mobile-overlay, .mobile-panel { display: none; } }

.mobile-panel {
  position: fixed;
  top: 0; right: 0;
  z-index: 50;
  height: 100%;
  width: 280px;
  background-color: var(--background);
  border-left: 1px solid oklch(0.75 0.12 85 / 0.1);
  box-shadow: -10px 0 40px rgb(0 0 0 / 0.2);
  transform: translateX(100%);
  transition: transform 0.3s ease-out;
  display: flex;
  flex-direction: column;
}
.mobile-panel.open { transform: translateX(0); }
.mobile-panel-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem;
  border-bottom: 1px solid oklch(0.90 0.03 85 / 0.5);
}
.mobile-panel-head span {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--gold);
}
.mobile-panel nav { flex: 1; overflow-y: auto; padding-block: 1rem; }
.mobile-panel nav a {
  display: block;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 500;
  color: oklch(0.12 0.01 0 / 0.8);
  transition: all 0.2s;
}
.mobile-panel nav a:hover { color: var(--gold); background-color: oklch(0.75 0.12 85 / 0.05); }
.mobile-panel-foot {
  padding: 1rem;
  border-top: 1px solid oklch(0.90 0.03 85 / 0.5);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.mobile-lang {
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.5rem;
  font-size: 0.875rem; font-weight: 500;
  color: oklch(0.12 0.01 0 / 0.7);
  border: 1px solid oklch(0.90 0.03 85 / 0.5);
  border-radius: 0.375rem;
  transition: all 0.2s;
}
.mobile-lang:hover { color: var(--gold); }
.mobile-lang .active { color: var(--gold); }
.mobile-lang .sep { color: var(--border); }

.icon { display: inline-block; vertical-align: middle; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---- Hero ---- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-bg .overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.5), rgba(0,0,0,0.3), rgba(0,0,0,0.6));
}
.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  color: #fff;
  padding-inline: 1rem;
}
.hero-tagline {
  color: var(--gold);
  font-size: 0.875rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  font-weight: 500;
}
@media (min-width: 768px) { .hero-tagline { font-size: 1rem; } }
.hero-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(2.25rem, 7vw, 4.5rem);
  line-height: 1.05;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}
.hero-subtitle {
  font-size: clamp(1.125rem, 2.5vw, 1.5rem);
  color: rgba(255,255,255,0.9);
  max-width: 42rem;
  margin: 0 auto 2.5rem;
  font-weight: 300;
}
.scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.7);
  transition: color 0.2s;
  animation: bounce 1s infinite;
}
.scroll-hint:hover { color: var(--gold); }
.scroll-hint span { font-size: 0.75rem; letter-spacing: 0.05em; text-transform: uppercase; }
@keyframes bounce {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-25%); }
}

/* ---- Animations ---- */
@keyframes reveal-up {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-reveal-up { animation: reveal-up 0.8s ease-out forwards; }
.js .reveal { opacity: 0; }
.reveal.in { animation: reveal-up 0.8s ease-out forwards; opacity: 1; }

/* ---- Grid utilities ---- */
.grid { display: grid; }
.gap-6 { gap: 1.5rem; }
.items-center { align-items: center; }
.text-center { text-align: center; }

/* ---- Overview ---- */
.overview-split {
  display: grid;
  gap: 3rem;
  align-items: center;
  margin-bottom: 4rem;
}
@media (min-width: 1024px) { .overview-split { grid-template-columns: 1fr 1fr; } }
.overview-img {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
}
.overview-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.overview-desc { color: var(--muted-foreground); font-size: 1.0625rem; line-height: 1.7; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 4rem;
}
@media (min-width: 1024px) { .stats-grid { grid-template-columns: repeat(4, 1fr); } }
.stat-card {
  text-align: center;
  padding: 1.5rem;
  background-color: oklch(1 0 0 / 0.5);
  backdrop-filter: blur(4px);
  border: 1px solid oklch(0.75 0.12 85 / 0.1);
  border-radius: var(--radius);
}
.stat-card .value {
  font-family: var(--font-heading);
  font-size: clamp(1.875rem, 4vw, 2.25rem);
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 0.5rem;
}
.stat-card .label { color: var(--muted-foreground); font-size: 0.875rem; }

.feature-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .feature-grid { grid-template-columns: repeat(4, 1fr); } }

/* ---- Cards ---- */
.card {
  background-color: var(--card);
  color: var(--card-foreground);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.luxury-card { transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); }
.luxury-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px -15px oklch(0.60 0.14 75 / 0.15);
}

.feature-card .card-body { padding: 1.5rem; }
@media (min-width: 1024px) { .feature-card .card-body { padding: 2rem; } }
.feature-icon {
  margin-bottom: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem; height: 3rem;
  border-radius: var(--radius);
  background-color: oklch(0.75 0.12 85 / 0.1);
  color: var(--gold);
  transition: background-color 0.2s;
}
.feature-card:hover .feature-icon { background-color: oklch(0.75 0.12 85 / 0.2); }
.feature-card h3 {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 0.5rem;
}
.feature-card p { color: var(--muted-foreground); font-size: 0.875rem; line-height: 1.6; }

/* ---- Gallery ---- */
.gallery { position: relative; }
.gallery-viewport { position: relative; overflow: hidden; border-radius: var(--radius); }
.gallery-track { display: flex; transition: transform 0.4s ease; }
.gallery-slide {
  position: relative;
  flex: 0 0 100%;
  min-width: 0;
}
.gallery-slide.ar-video { aspect-ratio: 16 / 9; }
.gallery-slide.ar-square { aspect-ratio: 1 / 1; }
.gallery-slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.gallery-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 1rem;
  background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
  color: #fff;
  font-weight: 500;
}
.gallery-expand {
  position: absolute;
  top: 1rem; right: 1rem;
  padding: 0.5rem;
  background-color: rgba(0,0,0,0.5);
  color: #fff;
  border-radius: 9999px;
  transition: background-color 0.2s;
  display: inline-flex;
}
.gallery-expand:hover { background-color: rgba(0,0,0,0.7); }
.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  padding: 0.5rem;
  background-color: rgba(0,0,0,0.5);
  color: #fff;
  border-radius: 9999px;
  transition: background-color 0.2s;
  display: inline-flex;
}
.gallery-nav:hover { background-color: rgba(0,0,0,0.7); }
.gallery-nav.prev { left: 1rem; }
.gallery-nav.next { right: 1rem; }
.gallery-dots {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
}
.gallery-dots button {
  width: 0.5rem; height: 0.5rem;
  border-radius: 9999px;
  background-color: rgba(255,255,255,0.5);
  transition: all 0.3s;
}
.gallery-dots button:hover { background-color: rgba(255,255,255,0.8); }
.gallery-dots button.active { background-color: var(--gold); width: 1.5rem; }
.gallery-thumbs {
  margin-top: 1rem;
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  scrollbar-width: thin;
  padding-bottom: 4px;
}
.gallery-thumb {
  position: relative;
  flex: 0 0 80px;
  height: 4rem;
  border-radius: 0.375rem;
  overflow: hidden;
  transition: all 0.2s;
  opacity: 0.6;
}
.gallery-thumb:hover { opacity: 1; }
.gallery-thumb.active {
  opacity: 1;
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
.gallery-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ---- Facilities ---- */
.facilities-layout { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 1024px) { .facilities-layout { grid-template-columns: 2fr 1fr; } }
.amenities {
  background-color: var(--background);
  border: 1px solid oklch(0.75 0.12 85 / 0.1);
  border-radius: var(--radius);
  padding: 1.5rem;
}
@media (min-width: 1024px) { .amenities { padding: 2rem; } }
.amenities h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}
.amenities ul { display: flex; flex-direction: column; gap: 1rem; }
.amenities li { display: flex; align-items: center; gap: 0.75rem; }
.dot { width: 0.5rem; height: 0.5rem; background-color: var(--gold); border-radius: 9999px; flex-shrink: 0; }
.dot-sm { width: 0.375rem; height: 0.375rem; }

/* ---- Master plan ---- */
.masterplan-layout { display: grid; gap: 1.5rem; }
@media (min-width: 1024px) { .masterplan-layout { grid-template-columns: 1fr 3fr; gap: 2rem; } }
.floor-selector {
  background-color: var(--background);
  border: 1px solid oklch(0.75 0.12 85 / 0.1);
  border-radius: var(--radius);
  padding: 1rem;
  order: 2;
}
@media (min-width: 1024px) { .floor-selector { padding: 1.5rem; order: 1; } }
.floor-selector h3 {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1rem;
  text-align: center;
}
@media (min-width: 1024px) { .floor-selector h3 { text-align: left; } }
.floor-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
}
@media (min-width: 1024px) { .floor-grid { grid-template-columns: repeat(2, 1fr); } }
.floor-btn {
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  font-weight: 500;
  transition: all 0.2s;
  background-color: oklch(0.95 0.03 85 / 0.5);
  color: var(--foreground);
  border: 1px solid transparent;
  text-align: center;
}
.floor-btn:hover { background-color: oklch(0.75 0.12 85 / 0.1); color: var(--gold); border-color: oklch(0.75 0.12 85 / 0.2); }
.floor-btn.active { background-color: var(--gold); color: var(--background); }
.floor-btn .sm { display: block; font-size: 0.75rem; opacity: 0.7; }
.floor-btn .lg { display: block; font-size: 1.125rem; font-weight: 600; }

.floor-display {
  background-color: var(--background);
  border: 1px solid oklch(0.75 0.12 85 / 0.1);
  border-radius: var(--radius);
  overflow: hidden;
  order: 1;
}
@media (min-width: 1024px) { .floor-display { order: 2; } }
.floor-display-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem;
  border-bottom: 1px solid oklch(0.75 0.12 85 / 0.1);
}
.floor-display-head h4 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
}
.floor-zoom {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.5rem 1rem;
  font-size: 0.875rem; font-weight: 500;
  color: var(--gold);
  border-radius: var(--radius);
  transition: background-color 0.2s;
}
.floor-zoom:hover { background-color: oklch(0.75 0.12 85 / 0.1); }
.floor-zoom .label { display: none; }
@media (min-width: 640px) { .floor-zoom .label { display: inline; } }
.floor-image {
  position: relative;
  aspect-ratio: 4 / 3;
  cursor: pointer;
}
.floor-image img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: contain;
  padding: 1rem;
}

/* ---- Room types ---- */
.roomtype-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .roomtype-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .roomtype-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1280px) { .roomtype-grid { grid-template-columns: repeat(4, 1fr); } }
.roomtype-img {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.roomtype-img img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.roomtype-card:hover .roomtype-img img { transform: scale(1.05); }
.badge {
  position: absolute;
  top: 1rem; left: 1rem;
  background-color: var(--gold);
  color: var(--background);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.625rem;
  border-radius: 0.375rem;
}
.roomtype-expand {
  position: absolute;
  bottom: 1rem; right: 1rem;
  padding: 0.5rem;
  background-color: rgba(0,0,0,0.5);
  color: #fff;
  border-radius: 9999px;
  transition: background-color 0.2s;
  display: inline-flex;
}
.roomtype-expand:hover { background-color: rgba(0,0,0,0.7); }
.roomtype-body { padding: 1.5rem; }
.roomtype-body-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1rem;
}
.roomtype-body-head h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
}
.roomtype-body-head span { color: var(--muted-foreground); }

/* ---- Pricing ---- */
.pricing-wrap { max-width: 64rem; margin-inline: auto; }
.price-card {
  background: linear-gradient(to bottom right, oklch(0.75 0.12 85 / 0.1), var(--background), oklch(0.60 0.14 75 / 0.1));
  border-radius: 1rem;
  padding: 2rem;
  border: 1px solid oklch(0.75 0.12 85 / 0.2);
}
@media (min-width: 1024px) { .price-card { padding: 3rem; } }
.price-head { text-align: center; margin-bottom: 2.5rem; }
.price-head .label { color: var(--muted-foreground); font-size: 1.125rem; margin-bottom: 0.5rem; }
.price-amount { display: flex; align-items: baseline; justify-content: center; gap: 0.5rem; }
.price-amount .value {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 8vw, 4.5rem);
  font-weight: 700;
  color: var(--gold);
}
.price-amount .unit { font-size: clamp(1.5rem, 4vw, 1.875rem); color: var(--muted-foreground); }
.price-block {
  background-color: oklch(0.99 0.01 85 / 0.8);
  backdrop-filter: blur(4px);
  border-radius: 0.75rem;
  padding: 1.5rem;
  margin-bottom: 2rem;
}
@media (min-width: 1024px) { .price-block { padding: 2rem; } }
.price-block-head { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem; }
.price-block-head .ico {
  padding: 0.5rem;
  border-radius: var(--radius);
  background-color: oklch(0.75 0.12 85 / 0.1);
  color: var(--gold);
  display: inline-flex;
}
.price-block-head h3 { font-size: 1.125rem; font-weight: 600; }
.price-block-head p { font-size: 0.875rem; color: var(--muted-foreground); }
.price-features { display: grid; gap: 0.75rem; }
@media (min-width: 640px) { .price-features { grid-template-columns: repeat(2, 1fr); } }
.price-features div { display: flex; align-items: center; gap: 0.5rem; }
.price-features .check { color: var(--gold); flex-shrink: 0; }
.cost-grid { display: grid; gap: 1rem; margin-bottom: 2rem; }
@media (min-width: 640px) { .cost-grid { grid-template-columns: repeat(3, 1fr); } }
.cost-item {
  background-color: oklch(0.99 0.01 85 / 0.6);
  backdrop-filter: blur(4px);
  border-radius: var(--radius);
  padding: 1rem;
  text-align: center;
}
.cost-item .top { display: flex; align-items: center; justify-content: center; gap: 0.5rem; margin-bottom: 0.5rem; }
.cost-item .top span { font-size: 0.875rem; color: var(--muted-foreground); }
.cost-item .top .ico { color: var(--gold); display: inline-flex; }
.cost-item .amt { font-weight: 600; font-size: 1.125rem; }
.price-cta-wrap { text-align: center; }
.price-cta {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 1rem 2rem;
  font-size: 1.125rem; font-weight: 500;
  color: #fff;
  background-color: var(--gold);
  border-radius: var(--radius);
  box-shadow: 0 10px 15px -3px oklch(0.75 0.12 85 / 0.2);
  transition: background-color 0.2s;
}
.price-cta:hover { background-color: var(--gold-dark); }
.price-note { margin-top: 1rem; font-size: 0.875rem; color: var(--muted-foreground); }

/* ---- Location ---- */
.location-split { display: grid; gap: 3rem; align-items: start; margin-bottom: 4rem; }
@media (min-width: 1024px) { .location-split { grid-template-columns: 1fr 1fr; } }
.location-map {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid oklch(0.75 0.12 85 / 0.1);
  background-color: #fff;
}
@media (min-width: 1024px) { .location-map { aspect-ratio: 4 / 3; } }
.location-map img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.location-head { display: flex; align-items: flex-start; gap: 0.75rem; margin-bottom: 1.5rem; }
.location-head .ico { color: var(--gold); flex-shrink: 0; margin-top: 0.25rem; }
.location-head h3 { font-family: var(--font-heading); font-size: 1.25rem; font-weight: 600; margin-bottom: 0.5rem; }
.location-head p { color: var(--muted-foreground); }
.location-desc { color: var(--muted-foreground); line-height: 1.7; margin-bottom: 2rem; }
.info-box {
  background-color: var(--background);
  border: 1px solid oklch(0.75 0.12 85 / 0.1);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.info-box h4 { font-weight: 600; margin-bottom: 1rem; display: flex; align-items: center; gap: 0.5rem; }
.info-box h4 .ico { color: var(--gold); }
.info-box ul { display: grid; gap: 0.75rem; }
.info-box li { display: flex; align-items: center; gap: 0.75rem; color: var(--muted-foreground); }

/* ---- Foreign buyers ---- */
.intro-text { max-width: 48rem; margin: 0 auto 4rem; text-align: center; }
.intro-text p { color: var(--muted-foreground); font-size: 1.125rem; line-height: 1.7; }
.two-col { display: grid; gap: 3rem; margin-bottom: 4rem; }
@media (min-width: 1024px) { .two-col { grid-template-columns: repeat(2, 1fr); } }
.fb-card .card-body { padding: 2rem; }
.fb-card h3 { font-family: var(--font-heading); font-size: 1.5rem; font-weight: 600; margin-bottom: 1.5rem; }
.fb-card.ownership h3 { margin-bottom: 1rem; }
.fb-card.ownership p { color: var(--muted-foreground); margin-bottom: 1.5rem; }
.fb-list { display: flex; flex-direction: column; gap: 1rem; }
.fb-list li { display: flex; align-items: flex-start; gap: 0.75rem; }
.fb-list .check { color: var(--gold); flex-shrink: 0; margin-top: 0.125rem; }
.fb-points { display: flex; flex-direction: column; gap: 0.75rem; }
.fb-points li { display: flex; align-items: flex-start; gap: 0.75rem; color: var(--muted-foreground); }
.fb-points .dot { margin-top: 0.5rem; }
.process { margin-bottom: 4rem; }
.process h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem; font-weight: 600;
  text-align: center; margin-bottom: 2.5rem;
}
.process-grid { display: grid; gap: 1.5rem; }
@media (min-width: 640px) { .process-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .process-grid { grid-template-columns: repeat(4, 1fr); } }
.process-step { position: relative; text-align: center; }
.process-step .circle {
  margin: 0 auto 1rem;
  width: 4rem; height: 4rem;
  border-radius: 9999px;
  background-color: oklch(0.75 0.12 85 / 0.1);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold);
}
.process-step .num {
  display: inline-block;
  width: 2rem; height: 2rem;
  border-radius: 9999px;
  background-color: var(--gold);
  color: var(--background);
  font-size: 0.875rem; font-weight: 700;
  line-height: 2rem;
  margin-bottom: 0.75rem;
}
.process-step h4 { font-weight: 600; margin-bottom: 0.5rem; }
.process-step p { font-size: 0.875rem; color: var(--muted-foreground); }

/* ---- Contact ---- */
.benefits-showcase { margin-bottom: 2.5rem; }
@media (min-width: 1024px) { .benefits-showcase { margin-bottom: 3.5rem; } }
.benefits-showcase .head { text-align: center; margin-bottom: 1.5rem; }
.benefits-showcase h4 { font-family: var(--font-heading); font-size: 1.25rem; font-weight: 600; }
.benefits-showcase .rule { width: 4rem; height: 2px; background-color: var(--gold); margin: 0.75rem auto 0; }
.benefits-pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; }
.pill {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.625rem 1rem;
  background-color: oklch(0.75 0.12 85 / 0.05);
  border: 1px solid oklch(0.75 0.12 85 / 0.2);
  border-radius: 9999px;
  transition: background-color 0.2s;
}
.pill:hover { background-color: oklch(0.75 0.12 85 / 0.1); }
.pill .check { color: var(--gold); flex-shrink: 0; }
.pill span { font-size: 0.875rem; font-weight: 500; }

.contact-layout { display: grid; gap: 2rem; }
@media (min-width: 1024px) { .contact-layout { grid-template-columns: 2fr 3fr; gap: 3rem; } }
.contact-info { display: flex; flex-direction: column; gap: 1.5rem; order: 2; }
@media (min-width: 1024px) { .contact-info { order: 1; } }
.contact-card .card-body { padding: 1.5rem; }
.contact-card .row { display: flex; align-items: flex-start; gap: 1rem; }
.contact-card .ico-box {
  width: 2.5rem; height: 2.5rem;
  border-radius: var(--radius);
  background-color: oklch(0.75 0.12 85 / 0.1);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: var(--gold);
}
.contact-card h4 { font-weight: 500; margin-bottom: 0.25rem; }
.contact-card a { color: var(--gold); transition: color 0.2s; }
.contact-card a:hover { color: var(--gold-dark); }
.contact-card p { color: var(--muted-foreground); font-size: 0.875rem; }
.contact-form-wrap { order: 1; }
@media (min-width: 1024px) { .contact-form-wrap { order: 2; } }
.contact-form-wrap .card-body { padding: 1.5rem; }
@media (min-width: 1024px) { .contact-form-wrap .card-body { padding: 2rem; } }

/* ---- Form ---- */
.form { display: flex; flex-direction: column; gap: 1.25rem; }
.field { display: flex; flex-direction: column; gap: 0.5rem; }
.field label { font-size: 0.875rem; font-weight: 500; }
.input, .textarea, .select-trigger {
  width: 100%;
  height: 2.5rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  font-family: inherit;
  color: var(--foreground);
  background-color: transparent;
  border: 1px solid var(--input);
  border-radius: calc(var(--radius) - 2px);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.input:focus, .textarea:focus, .select-trigger:focus {
  outline: none;
  border-color: var(--ring);
  box-shadow: 0 0 0 3px oklch(0.75 0.12 85 / 0.3);
}
.textarea { height: auto; resize: none; }
.phone-row { display: flex; gap: 0.5rem; }
.phone-row .select-wrap { width: 120px; flex-shrink: 0; }
.phone-row .input { flex: 1; }
.select-trigger {
  display: flex; align-items: center; justify-content: space-between;
  text-align: left;
  cursor: pointer;
}
.select-wrap { position: relative; }
.select-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  z-index: 30;
  width: max-content;
  min-width: 100%;
  max-height: 300px;
  overflow-y: auto;
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) - 2px);
  box-shadow: 0 10px 25px rgb(0 0 0 / 0.15);
  display: none;
}
.select-wrap.open .select-menu { display: block; }
.select-option {
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  cursor: pointer;
  white-space: nowrap;
}
.select-option:hover, .select-option.active { background-color: var(--muted); }
.consent { font-size: 0.75rem; color: var(--muted-foreground); text-align: center; }
.consent a { color: var(--gold); }
.consent a:hover { text-decoration: underline; }
.form-submit {
  width: 100%;
  background-color: var(--gold);
  color: var(--background);
  font-weight: 500;
  padding: 1rem;
  border-radius: calc(var(--radius) - 2px);
  transition: background-color 0.2s;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
}
.form-submit:hover { background-color: var(--gold-dark); }
.form-success { display: flex; flex-direction: column; align-items: center; justify-content: center; padding-block: 2rem; text-align: center; }
.form-success .check { color: #22c55e; margin-bottom: 1rem; }
.form-success h3 { font-family: var(--font-heading); font-size: 1.5rem; font-weight: 600; margin-bottom: 0.5rem; }
.form-success p { color: var(--muted-foreground); }

/* ---- Footer ---- */
.footer {
  background-color: var(--card);
  border-top: 1px solid oklch(0.75 0.12 85 / 0.1);
}
.footer-main { padding-block: 3rem; }
@media (min-width: 1024px) { .footer-main { padding-block: 4rem; } }
.footer-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: repeat(4, 1fr); gap: 3rem; } }
.footer .logo-main { font-family: var(--font-heading); font-size: 1.5rem; font-weight: 600; letter-spacing: 0.05em; color: var(--gold); }
.footer .logo-sub { display: block; font-size: 0.75rem; letter-spacing: 0.3em; color: var(--muted-foreground); margin-top: -0.25rem; }
.footer-brand p { color: var(--muted-foreground); font-size: 0.875rem; line-height: 1.6; max-width: 20rem; margin-top: 1rem; }
.footer h4 {
  font-weight: 600; margin-bottom: 1rem;
  font-size: 0.875rem; text-transform: uppercase; letter-spacing: 0.05em;
}
.footer nav { display: flex; flex-direction: column; gap: 0.5rem; }
.footer nav a, .footer-contact a, .footer-contact div {
  color: var(--muted-foreground);
  font-size: 0.875rem;
  transition: color 0.2s;
}
.footer nav a:hover, .footer-contact a:hover { color: var(--gold); }
.footer-contact { display: flex; flex-direction: column; gap: 0.75rem; }
.footer-contact a, .footer-contact div { display: flex; align-items: flex-start; gap: 0.75rem; }
.footer-contact .ico { margin-top: 0.125rem; flex-shrink: 0; }
.footer-bottom { border-top: 1px solid oklch(0.90 0.03 85 / 0.5); }
.footer-bottom p { text-align: center; color: var(--muted-foreground); font-size: 0.75rem; padding-block: 1rem; }

/* ---- Sticky chat ---- */
.sticky-chat {
  position: fixed;
  bottom: 1.5rem; right: 1.5rem;
  z-index: 50;
  display: flex; align-items: center; justify-content: center;
  width: 5rem; height: 5rem;
  border-radius: 9999px;
  background-color: var(--gold);
  color: var(--background);
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.2);
  transition: all 0.3s ease-in-out;
}
.sticky-chat:hover { background-color: var(--gold-dark); box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.25); transform: scale(1.1); }
.sticky-chat.hidden { opacity: 0; pointer-events: none; }

/* ---- Modal / Dialog ---- */
.dialog-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  background-color: rgba(0,0,0,0.8);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  animation: fade-in 0.2s ease;
}
.dialog-overlay.open { display: flex; }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
.dialog {
  position: relative;
  background-color: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  width: 100%;
  max-width: 32rem;
  max-height: 90vh;
  overflow-y: auto;
  padding: 1.5rem;
  box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.4);
}
.dialog-close {
  position: absolute;
  top: 1rem; right: 1rem;
  opacity: 0.7;
  transition: opacity 0.2s;
  display: inline-flex;
}
.dialog-close:hover { opacity: 1; }
.dialog h2 { font-family: var(--font-heading); font-size: 1.5rem; font-weight: 600; padding-right: 1.5rem; }
.dialog-sub { font-size: 0.875rem; color: var(--muted-foreground); margin-top: 0.5rem; }
.modal-benefits { padding-top: 0.75rem; padding-bottom: 0.25rem; }
.modal-benefits .label { font-size: 0.75rem; font-weight: 500; color: var(--gold); margin-bottom: 0.5rem; }
.modal-benefits .items { display: flex; flex-wrap: wrap; column-gap: 1rem; row-gap: 0.25rem; }
.modal-benefits .item { display: flex; align-items: center; gap: 0.375rem; }
.modal-benefits .item .check { color: var(--gold); flex-shrink: 0; }
.modal-benefits .item span { font-size: 0.75rem; color: var(--muted-foreground); }
.dialog .form { margin-top: 1rem; }

/* Lightbox dialog (image) */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 70;
  background-color: rgba(0,0,0,0.92);
  display: none;
  align-items: center;
  justify-content: center;
  animation: fade-in 0.2s ease;
}
.lightbox-overlay.open { display: flex; }
.lightbox-overlay.white-bg { background-color: rgba(255,255,255,0.98); }
.lightbox-img {
  max-width: 95vw;
  max-height: 90vh;
  object-fit: contain;
}
.lightbox-close {
  position: absolute;
  top: 1rem; right: 1rem;
  z-index: 80;
  padding: 0.5rem;
  background-color: rgba(255,255,255,0.1);
  color: #fff;
  border-radius: 9999px;
  transition: background-color 0.2s;
  display: inline-flex;
}
.lightbox-overlay.white-bg .lightbox-close { background-color: rgba(0,0,0,0.5); }
.lightbox-close:hover { background-color: rgba(255,255,255,0.2); }
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 80;
  padding: 0.75rem;
  background-color: rgba(255,255,255,0.1);
  color: #fff;
  border-radius: 9999px;
  transition: background-color 0.2s;
  display: inline-flex;
}
.lightbox-nav:hover { background-color: rgba(255,255,255,0.2); }
.lightbox-nav.prev { left: 1rem; }
.lightbox-nav.next { right: 1rem; }
.lightbox-caption {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.5rem 1.5rem;
  background-color: rgba(0,0,0,0.7);
  color: #fff;
  border-radius: var(--radius);
  font-weight: 500;
}

/* ---- Cookie consent ---- */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 55;
  padding: 1rem;
  transform: translateY(120%);
  transition: transform 0.5s ease;
}
.cookie-banner.show { transform: translateY(0); }
.cookie-inner { max-width: 56rem; margin-inline: auto; }
.cookie-box {
  background-color: var(--card);
  border: 1px solid oklch(0.75 0.12 85 / 0.2);
  border-radius: var(--radius);
  box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.4);
  overflow: hidden;
  padding: 1.5rem;
}
.cookie-row { display: flex; align-items: flex-start; gap: 1rem; }
.cookie-ico {
  display: none;
  align-items: center; justify-content: center;
  width: 2.5rem; height: 2.5rem;
  border-radius: 9999px;
  background-color: oklch(0.75 0.12 85 / 0.1);
  color: var(--gold);
  flex-shrink: 0;
}
@media (min-width: 640px) { .cookie-ico { display: flex; } }
.cookie-body { flex: 1; }
.cookie-body h3 { font-weight: 600; margin-bottom: 0.5rem; }
.cookie-body > p { font-size: 0.875rem; color: var(--muted-foreground); margin-bottom: 1rem; }
.cookie-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; }
.cookie-customize { display: none; flex-direction: column; gap: 1rem; margin-bottom: 1.5rem; padding-bottom: 1.5rem; border-bottom: 1px solid oklch(0.90 0.03 85 / 0.5); }
.cookie-customize.show { display: flex; }
.cookie-pref { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.cookie-pref .info { flex: 1; }
.cookie-pref .info p:first-child { font-weight: 500; font-size: 0.875rem; }
.cookie-pref .info p:last-child { font-size: 0.75rem; color: var(--muted-foreground); margin-top: 0.25rem; }
.toggle {
  width: 3rem; height: 1.5rem;
  border-radius: 9999px;
  background-color: var(--muted);
  display: flex; align-items: center;
  padding: 0.25rem;
  transition: background-color 0.2s;
  flex-shrink: 0;
}
.toggle.on { background-color: var(--gold); }
.toggle.locked { background-color: oklch(0.75 0.12 85 / 0.5); cursor: not-allowed; }
.toggle .knob { width: 1rem; height: 1rem; border-radius: 9999px; background-color: #fff; transition: margin 0.2s; }
.toggle.on .knob { margin-left: auto; }
.toggle.locked .knob { margin-left: auto; background-color: var(--gold); }
.cookie-close { color: var(--muted-foreground); transition: color 0.2s; display: inline-flex; }
.cookie-close:hover { color: var(--foreground); }

/* ---- Legal pages ---- */
.legal-main { min-height: 100vh; background-color: var(--background); padding-top: 6rem; padding-bottom: 4rem; }
.legal-wrap { max-width: 56rem; margin-inline: auto; padding-inline: 1rem; }
.back-link {
  display: inline-flex; align-items: center; gap: 0.5rem;
  color: var(--gold);
  transition: color 0.2s;
  margin-bottom: 2rem;
}
.back-link:hover { color: var(--gold-dark); }
.legal-wrap h1 { font-family: var(--font-heading); font-size: 2.25rem; font-weight: 600; margin-bottom: 0.5rem; }
.legal-updated { color: var(--muted-foreground); margin-bottom: 2rem; }
.prose { max-width: none; color: var(--foreground); }
.prose h2 { font-family: var(--font-heading); font-size: 1.5rem; font-weight: 600; margin-top: 2rem; margin-bottom: 0.75rem; }
.prose h3 { font-size: 1.25rem; font-weight: 600; margin-top: 1.5rem; margin-bottom: 0.5rem; }
.prose p { margin-bottom: 1rem; color: var(--muted-foreground); line-height: 1.7; }
.prose ul { list-style: disc; padding-left: 1.5rem; margin-bottom: 1rem; }
.prose li { margin-bottom: 0.5rem; color: var(--muted-foreground); line-height: 1.7; }

/* ---- Utilities ---- */
.hidden { display: none !important; }
.gallery-narrow { max-width: 64rem; margin-inline: auto; }
