:root {
  --font-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --background: 42 35% 97%;
  --foreground: 220 18% 14%;
  --card: 0 0% 100%;
  --card-foreground: 220 18% 14%;
  --popover: 0 0% 100%;
  --popover-foreground: 220 18% 14%;
  --primary: 32 68% 36%;
  --primary-foreground: 40 42% 96%;
  --secondary: 220 18% 14%;
  --secondary-foreground: 40 42% 96%;
  --muted: 40 28% 91%;
  --muted-foreground: 220 9% 40%;
  --accent: 42 65% 86%;
  --accent-foreground: 220 18% 14%;
  --destructive: 0 72% 45%;
  --destructive-foreground: 0 0% 98%;
  --success: 145 55% 32%;
  --success-foreground: 0 0% 98%;
  --warning: 38 88% 42%;
  --warning-foreground: 220 18% 14%;
  --info: 210 72% 42%;
  --info-foreground: 0 0% 98%;
  --border: 38 22% 82%;
  --input: 38 22% 82%;
  --ring: 32 68% 36%;
  --radius: 0.625rem;
  --shadow-sm: 0 1px 2px hsl(var(--foreground) / 0.05);
  --shadow-md: 0 4px 12px hsl(var(--foreground) / 0.08);
  --shadow-lg: 0 12px 32px hsl(var(--foreground) / 0.12);
  --shadow-elegant: 0 18px 48px hsl(var(--primary) / 0.22);
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition: 200ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

html.dark {
  --background: 220 22% 10%;
  --foreground: 38 28% 94%;
  --card: 220 20% 14%;
  --card-foreground: 38 28% 94%;
  --popover: 220 20% 14%;
  --popover-foreground: 38 28% 94%;
  --primary: 36 74% 58%;
  --primary-foreground: 220 22% 10%;
  --secondary: 38 28% 92%;
  --secondary-foreground: 220 22% 10%;
  --muted: 220 16% 20%;
  --muted-foreground: 38 15% 74%;
  --accent: 220 16% 22%;
  --accent-foreground: 38 28% 94%;
  --destructive: 0 70% 58%;
  --destructive-foreground: 0 0% 98%;
  --success: 145 54% 46%;
  --success-foreground: 220 22% 10%;
  --warning: 42 90% 58%;
  --warning-foreground: 220 22% 10%;
  --info: 210 84% 62%;
  --info-foreground: 220 22% 10%;
  --border: 220 14% 26%;
  --input: 220 14% 26%;
  --ring: 36 74% 58%;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  font-size: 16px;
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; }
input, select, textarea { font-size: max(16px, 1rem); }
button { cursor: pointer; }
.container { width: min(100% - 2rem, 80rem); margin: 0 auto; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: hsl(var(--background) / 0.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid hsl(var(--border));
}
.nav {
  position: relative;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: env(safe-area-inset-top);
}
.brand { display: inline-flex; align-items: center; gap: 0.75rem; font-weight: 700; letter-spacing: -0.02em; }
.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  box-shadow: var(--shadow-elegant);
}
.nav-links {
  position: absolute;
  top: calc(100% + 0.75rem);
  left: 0;
  right: 0;
  display: none;
  grid-template-columns: 1fr;
  gap: 0.25rem;
  padding: 0.75rem;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: calc(var(--radius) + 4px);
  box-shadow: var(--shadow-lg);
  color: hsl(var(--muted-foreground));
  font-size: 0.875rem;
}
.nav-links.is-open { display: grid; }
.nav-links a { min-height: 44px; display: inline-flex; align-items: center; font-weight: 500; padding: 0.35rem 0.5rem; border-radius: calc(var(--radius) - 2px); }
.nav-links a:hover { color: hsl(var(--foreground)); background: hsl(var(--muted)); }
.nav-actions { display: inline-flex; align-items: center; gap: 0.5rem; }
.theme-toggle, .btn {
  min-height: 44px;
  border-radius: calc(var(--radius) - 2px);
  border: 1px solid hsl(var(--border));
  padding: 0.75rem 1rem;
  font-weight: 500;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
}
.theme-toggle { display: inline-flex; align-items: center; justify-content: center; gap: 0.45rem; background: hsl(var(--card)); color: hsl(var(--foreground)); }
.theme-toggle::before { content: "☾"; font-size: 1.05rem; line-height: 1; }
html.dark .theme-toggle::before { content: "☀"; }
.nav-menu-toggle {
  width: 44px;
  min-height: 44px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid hsl(var(--border));
  border-radius: calc(var(--radius) - 2px);
  background: hsl(var(--card));
  color: hsl(var(--foreground));
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
}
.nav-menu-toggle span { width: 18px; height: 2px; border-radius: 999px; background: currentColor; transition: transform var(--transition-fast), opacity var(--transition-fast); }
.nav-menu-toggle.is-active span:first-child { transform: translateY(7px) rotate(45deg); }
.nav-menu-toggle.is-active span:nth-child(2) { opacity: 0; }
.nav-menu-toggle.is-active span:last-child { transform: translateY(-7px) rotate(-45deg); }
.theme-toggle:hover, .nav-menu-toggle:hover, .btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.theme-toggle:focus-visible, .nav-menu-toggle:focus-visible, .btn:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, a:focus-visible {
  outline: 2px solid hsl(var(--ring));
  outline-offset: 2px;
}
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; border: 1px solid transparent; }
.btn-primary { background: hsl(var(--primary)); color: hsl(var(--primary-foreground)); box-shadow: var(--shadow-elegant); }
.btn-secondary { background: hsl(var(--card)); color: hsl(var(--foreground)); border-color: hsl(var(--border)); }
.full-btn { width: 100%; }
.hero { padding: 3rem 0; }
.hero-grid { display: grid; gap: 2rem; align-items: center; }
.hero-copy { display: grid; gap: 1.5rem; }
.eyebrow { margin: 0; color: hsl(var(--muted-foreground)); font-size: 0.875rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.08em; }
h1, h2, h3 { margin: 0; letter-spacing: -0.035em; line-height: 1.12; }
h1 { font-size: clamp(2.25rem, 8vw, 4.75rem); font-weight: 700; }
h2 { font-size: clamp(1.875rem, 5vw, 3rem); font-weight: 600; }
h3 { font-size: 1.25rem; font-weight: 600; }
p { margin: 0; }
.hero-lead, .section-heading p, .booking-copy p, .contact-layout p, .dashboard-head p { color: hsl(var(--muted-foreground)); font-size: 1.125rem; max-width: 42rem; }
.hero-search { background: hsl(var(--card)); border: 1px solid hsl(var(--border)); border-radius: calc(var(--radius) + 4px); padding: 1rem; box-shadow: var(--shadow-sm); display: grid; gap: 0.75rem; max-width: 42rem; }
.hero-search label, .field-group label { font-size: 0.875rem; font-weight: 500; color: hsl(var(--foreground)); }
.search-row { display: grid; gap: 0.75rem; }
input, select, textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid hsl(var(--input));
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  border-radius: calc(var(--radius) - 2px);
  padding: 0.75rem 1rem;
}
textarea { resize: vertical; min-height: 132px; }
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; max-width: 42rem; }
.hero-stats div { padding: 1rem; border-radius: var(--radius); background: hsl(var(--card)); border: 1px solid hsl(var(--border)); box-shadow: var(--shadow-sm); }
.hero-stats strong { display: block; font-size: 1.5rem; letter-spacing: -0.03em; }
.hero-stats span { display: block; color: hsl(var(--muted-foreground)); font-size: 0.875rem; }
.hero-card { position: relative; border-radius: calc(var(--radius) + 4px); overflow: hidden; box-shadow: var(--shadow-lg); background: hsl(var(--muted)); }
.hero-card img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.floating-card { position: absolute; left: 1rem; right: 1rem; bottom: 1rem; padding: 1rem; border-radius: var(--radius); background: hsl(var(--popover) / 0.94); color: hsl(var(--popover-foreground)); box-shadow: var(--shadow-md); }
.floating-card span, .floating-card p { color: hsl(var(--muted-foreground)); font-size: 0.875rem; }
.floating-card strong { display: block; margin: 0.25rem 0; }
.section { padding: 3rem 0; }
.section-heading { display: grid; gap: 0.75rem; margin-bottom: 2rem; }
.property-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
.property-card { background: hsl(var(--card)); color: hsl(var(--card-foreground)); border: 1px solid hsl(var(--border)); border-radius: calc(var(--radius) + 4px); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform var(--transition), box-shadow var(--transition); }
.property-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.property-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: hsl(var(--muted)); }
.card-body { padding: 1rem; display: grid; gap: 0.75rem; }
.card-top { display: flex; align-items: start; justify-content: space-between; gap: 1rem; }
.card-title { font-weight: 600; font-size: 1.125rem; letter-spacing: -0.02em; }
.card-location, .card-meta { color: hsl(var(--muted-foreground)); font-size: 0.875rem; }
.price { color: hsl(var(--primary)); font-weight: 700; white-space: nowrap; }
.badge { display: inline-flex; align-items: center; min-height: 32px; border-radius: 999px; padding: 0.25rem 0.75rem; background: hsl(var(--primary) / 0.12); color: hsl(var(--primary)); font-size: 0.875rem; font-weight: 500; width: fit-content; }
.card-actions { display: grid; grid-template-columns: 1fr; gap: 0.75rem; }
.center-actions { display: flex; justify-content: center; margin-top: 2rem; }
.muted-section { background: hsl(var(--muted)); }
.value-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.value-card { background: hsl(var(--card)); border: 1px solid hsl(var(--border)); border-radius: calc(var(--radius) + 4px); padding: 1.5rem; box-shadow: var(--shadow-sm); display: grid; gap: 0.75rem; }
.value-card p { color: hsl(var(--muted-foreground)); }
.site-footer { border-top: 1px solid hsl(var(--border)); padding: 2rem 0 calc(2rem + env(safe-area-inset-bottom)); color: hsl(var(--muted-foreground)); }
.footer-grid { display: grid; gap: 1rem; }
.footer-grid strong { color: hsl(var(--foreground)); }
.page-shell { padding: 2rem 0 3rem; }
.field-group { display: grid; gap: 0.5rem; }
.form-message { min-height: 1.5rem; color: hsl(var(--destructive)); font-weight: 500; }
.form-message.success { color: hsl(var(--success)); }
.empty-state { background: hsl(var(--card)); border: 1px solid hsl(var(--border)); border-radius: calc(var(--radius) + 4px); padding: 2rem; text-align: center; color: hsl(var(--muted-foreground)); box-shadow: var(--shadow-sm); }
@media (min-width: 640px) {
  .container { width: min(100% - 3rem, 80rem); }
  .nav-links { position: static; display: flex; align-items: center; gap: 1rem; padding: 0; background: transparent; border: 0; border-radius: 0; box-shadow: none; }
  .nav-links a { padding: 0; }
  .nav-links a:hover { background: transparent; }
  .nav-menu-toggle { display: none; }
  .search-row { grid-template-columns: 1fr auto; }
  .card-actions { grid-template-columns: 1fr 1fr; }
  .property-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr auto auto; align-items: center; }
}
@media (min-width: 900px) {
  .hero { padding: 5rem 0; }
  .hero-grid { grid-template-columns: 1.05fr 0.95fr; gap: 4rem; }
  .section { padding: 5rem 0; }
  .property-grid { grid-template-columns: repeat(3, 1fr); }
  .value-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1200px) {
  .property-grid { grid-template-columns: repeat(4, 1fr); }
}