/* ==========================================================================
   KIFARU GROUP PROPERTIES — DESIGN SYSTEM
   Palette:  ink #142620 · paper #FBFAF6 · stone #EAE5D6
             brass #A9823D · brass-light #D8B876 · forest #2F4A3B
   Type:     Fraunces (display) / Inter (body) / IBM Plex Mono (data)
   ========================================================================== */

:root {
  /* Palette */
  --ink: #142620;
  --ink-soft: #1d3229;
  --ink-fade: rgba(20, 38, 32, 0.62);
  --paper: #fbfaf6;
  --paper-dim: #f3f1e8;
  --stone: #eae5d6;
  --stone-line: #ddd6c1;
  --brass: #a9823d;
  --brass-light: #d8b876;
  --brass-dim: rgba(169, 130, 61, 0.16);
  --forest: #2f4a3b;
  --white: #ffffff;
  --status-occupied: #6b6459;

  /* Type */
  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;

  /* Rhythm */
  --radius-sm: 6px;
  --radius-md: 14px;
  --radius-lg: 26px;
  --shadow-card: 0 1px 2px rgba(20, 38, 32, 0.06), 0 12px 32px -12px rgba(20, 38, 32, 0.18);
  --shadow-lift: 0 24px 48px -16px rgba(20, 38, 32, 0.32);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 84px;
}

/* ---------- Reset ---------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

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

button {
  cursor: pointer;
}

ul {
  list-style: none;
}

:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
}

/* ---------- Type scale ---------- */
h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--ink);
}

h1 {
  font-size: clamp(2.6rem, 5.4vw, 4.6rem);
  font-weight: 500;
}

h2 {
  font-size: clamp(2rem, 3.6vw, 2.9rem);
}

h3 {
  font-size: 1.35rem;
}

p {
  color: var(--ink-fade);
}

.mono {
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 1rem;
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--brass);
}

/* ---------- Layout helpers ---------- */
.container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
}

.section {
  padding: clamp(4rem, 8vw, 6.5rem) 0;
}

.section--stone {
  background: var(--stone);
}

.section--ink {
  background: var(--ink);
  color: var(--paper);
}

.section--ink p {
  color: rgba(251, 250, 246, 0.68);
}

.section--ink h2,
.section--ink h3 {
  color: var(--paper);
}

.section-head {
  max-width: 640px;
  margin-bottom: clamp(2.25rem, 4vw, 3.5rem);
}

.section-head--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-head p {
  font-size: 1.05rem;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.95rem 1.9rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.92rem;
  border: 1px solid transparent;
  transition: transform 0.35s var(--ease), background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
  white-space: nowrap;
}

.btn svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}

.btn--brass {
  background: var(--brass);
  color: var(--white);
}

.btn--brass:hover {
  background: var(--ink);
  transform: translateY(-2px);
}

.btn--outline {
  background: transparent;
  border-color: rgba(251, 250, 246, 0.4);
  color: inherit;
}

.btn--outline:hover {
  border-color: var(--brass-light);
  color: var(--brass-light);
  transform: translateY(-2px);
}

.btn--dark {
  background: var(--ink);
  color: var(--paper);
}

.btn--dark:hover {
  background: var(--brass);
  transform: translateY(-2px);
}

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

.btn--ghost:hover {
  background: var(--brass-dim);
}

.btn--sm {
  padding: 0.65rem 1.2rem;
  font-size: 0.82rem;
}

.btn--block {
  width: 100%;
}

.btn--danger {
  background: transparent;
  color: #8a3b2f;
  border-color: #8a3b2f33;
}

.btn--danger:hover {
  background: #8a3b2f;
  color: var(--white);
}

.btn[disabled] {
  opacity: 0.55;
  pointer-events: none;
}

/* =========================================================================
   HEADER
   ========================================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(251, 250, 246, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--stone-line);
  transition: box-shadow 0.3s ease;
}

.site-header--scrolled {
  box-shadow: 0 4px 20px rgba(20, 38, 32, 0.08);
}

.nav {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.brand__mark {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
}

.brand__mark svg {
  width: 100%;
  height: 100%;
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand__name {
  font-family: var(--font-display);
  font-size: 1.28rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--ink);
}

.brand__sub {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  color: var(--brass);
  text-transform: uppercase;
  margin-top: 0.2rem;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 2.1rem;
}

.nav__links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-fade);
  position: relative;
  padding: 0.3rem 0;
}

.nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1.5px;
  background: var(--brass);
  transition: width 0.3s var(--ease);
}

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

.nav__links a:hover::after {
  width: 100%;
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.nav__toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--stone);
  align-items: center;
  justify-content: center;
  border: none;
}

.nav__toggle svg {
  width: 20px;
  height: 20px;
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: var(--ink);
  color: var(--paper);
  display: flex;
  flex-direction: column;
  padding: 1.5rem clamp(1.25rem, 6vw, 2.5rem) 2.5rem;
  transform: translateX(100%);
  transition: transform 0.45s var(--ease);
}

.mobile-menu.is-open {
  transform: translateX(0);
}

.mobile-menu__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3rem;
}

.mobile-menu__close {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(251, 250, 246, 0.1);
  border: none;
  color: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-menu__close svg {
  width: 18px;
  height: 18px;
}

.mobile-menu nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mobile-menu nav a {
  font-family: var(--font-display);
  font-size: 1.9rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid rgba(251, 250, 246, 0.12);
  color: var(--paper);
}

.mobile-menu__foot {
  margin-top: auto;
  padding-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mobile-menu__foot a {
  font-size: 0.95rem;
  color: rgba(251, 250, 246, 0.7);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

/* =========================================================================
   HERO — sliding marquee background
   ========================================================================= */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--ink);
  color: var(--paper);
}

.hero__marquee {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero__track {
  display: flex;
  height: 100%;
  width: max-content;
  animation: heroSlide 60s linear infinite;
  will-change: transform;
}

@keyframes heroSlide {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-100%);
  }
}

.hero__slide {
  height: 100%;
  width: 34vw;
  min-width: 420px;
  flex-shrink: 0;
  background-size: cover;
  background-position: center;
  position: relative;
  border-right: 1px solid rgba(251, 250, 246, 0.06);
}

.hero__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(20, 38, 32, 0.55) 0%, rgba(20, 38, 32, 0.35) 45%, rgba(20, 38, 32, 0.92) 100%),
    linear-gradient(90deg, rgba(20, 38, 32, 0.85) 0%, rgba(20, 38, 32, 0.15) 18%, rgba(20, 38, 32, 0.15) 82%, rgba(20, 38, 32, 0.85) 100%);
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: calc(var(--header-h) + 3rem) 0 4.5rem;
}

.hero__title {
  max-width: 820px;
  color: var(--paper);
  margin-bottom: 1.4rem;
}

.hero__title em {
  font-style: italic;
  color: var(--brass-light);
}

.hero__lead {
  max-width: 560px;
  font-size: 1.12rem;
  color: rgba(251, 250, 246, 0.78);
  margin-bottom: 2.4rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.75rem;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 2.2rem;
  padding-top: 1.9rem;
  border-top: 1px solid rgba(251, 250, 246, 0.18);
}

.hero__meta-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: rgba(251, 250, 246, 0.75);
}

.hero__meta-item svg {
  width: 17px;
  height: 17px;
  color: var(--brass-light);
  flex-shrink: 0;
}

.hero__meta-item strong {
  color: var(--paper);
  font-weight: 600;
}

/* Empty-state fallback slides (no images uploaded yet) */
.hero__slide--pattern {
  background-image:
    repeating-linear-gradient(115deg, rgba(216, 184, 118, 0.08) 0px, rgba(216, 184, 118, 0.08) 1px, transparent 1px, transparent 42px),
    linear-gradient(160deg, #1d3229, #142620 70%);
}

/* =========================================================================
   SEARCH PANEL
   ========================================================================= */
.search-wrap {
  position: relative;
  z-index: 20;
  margin-top: -64px;
}

.search-panel {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lift);
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid var(--stone-line);
}

.search-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr auto;
  gap: 0.85rem;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.field-group label {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-fade);
  padding-left: 0.15rem;
}

.field-shell {
  position: relative;
  display: flex;
  align-items: center;
  border: 1.5px solid var(--stone-line);
  border-radius: var(--radius-sm);
  background: var(--paper);
  transition: border-color 0.25s ease;
}

.field-shell:focus-within {
  border-color: var(--brass);
}

.field-shell svg {
  width: 17px;
  height: 17px;
  margin-left: 0.85rem;
  color: var(--ink-fade);
  flex-shrink: 0;
}

.field-shell input,
.field-shell select {
  width: 100%;
  border: none;
  background: transparent;
  padding: 0.8rem 0.85rem;
  font-size: 0.92rem;
  color: var(--ink);
  appearance: none;
}

.field-shell select {
  cursor: pointer;
  padding-right: 2rem;
}

.field-shell.has-icon select,
.field-shell.has-icon input {
  padding-left: 0.6rem;
}

.field-shell--select::after {
  content: "";
  position: absolute;
  right: 0.9rem;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 1.5px solid var(--ink-fade);
  border-bottom: 1.5px solid var(--ink-fade);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}

optgroup {
  font-family: var(--font-body);
  font-weight: 700;
}

.search-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.1rem;
  padding-top: 1.1rem;
  border-top: 1px dashed var(--stone-line);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: var(--stone);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--ink);
  border: none;
  transition: background 0.25s ease, color 0.25s ease;
}

.chip:hover {
  background: var(--brass);
  color: var(--white);
}

.chip.is-active {
  background: var(--ink);
  color: var(--brass-light);
}

.chip--clear {
  background: transparent;
  color: var(--ink-fade);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* =========================================================================
   RATING STRIP
   ========================================================================= */
.rating-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(2rem, 6vw, 5rem);
  text-align: center;
  padding: 3rem 0;
}

.rating-strip__block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
}

.rating-strip__score {
  font-family: var(--font-display);
  font-size: 3rem;
  color: var(--ink);
  line-height: 1;
}

.rating-strip__label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-fade);
  margin-top: 0.4rem;
}

.rating-strip__divider {
  width: 1px;
  height: 46px;
  background: var(--stone-line);
}

.rating-strip__stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--ink);
}

.rating-strip__stat span {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-fade);
}

/* ---------- Star rating (two-layer gold fill) ---------- */
.stars {
  position: relative;
  display: inline-block;
  font-size: 1rem;
  line-height: 1;
  white-space: nowrap;
}

.stars__bg,
.stars__fill {
  letter-spacing: 3px;
}

.stars__bg {
  color: var(--stone-line);
}

.stars__fill {
  position: absolute;
  top: 0;
  left: 0;
  overflow: hidden;
  color: var(--brass);
  white-space: nowrap;
}

/* =========================================================================
   PROPERTIES GRID
   ========================================================================= */
.properties-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2.25rem;
}

.results-count {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--ink-fade);
}

.results-count strong {
  color: var(--ink);
}

.sort-shell {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.sort-shell label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-fade);
}

.sort-shell select {
  border: 1.5px solid var(--stone-line);
  border-radius: var(--radius-sm);
  padding: 0.55rem 2rem 0.55rem 0.85rem;
  background: var(--white);
  font-size: 0.85rem;
}

.properties-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.9rem;
}

.property-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--stone-line);
  box-shadow: var(--shadow-card);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

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

.property-card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--stone);
}

.property-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: none;
  transform: scale(1.02);
  transition: filter 0.6s var(--ease), transform 0.6s var(--ease);
}

.property-card:hover .property-card__media img {
  filter: none;
  transform: scale(1.08);
}

.property-card__media--empty {
  display: flex;
  align-items: center;
  justify-content: center;
}

.property-card__media--empty svg {
  width: 52px;
  height: 52px;
  color: var(--stone-line);
}

.zone-stamp {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.75rem 0.4rem 0.6rem;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  font-weight: 600;
  backdrop-filter: blur(6px);
}

.zone-stamp--sez {
  background: rgba(169, 130, 61, 0.92);
  color: var(--white);
}

.zone-stamp--nonsez {
  background: rgba(47, 74, 59, 0.92);
  color: var(--white);
}

.zone-stamp svg {
  width: 12px;
  height: 12px;
}

.listing-tag {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  font-weight: 600;
  background: rgba(251, 250, 246, 0.92);
  color: var(--ink);
}

.status-stamp {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(20, 38, 32, 0.42);
  opacity: 0;
  pointer-events: none;
}

.property-card--occupied .status-stamp {
  opacity: 1;
}

.property-card--occupied .property-card__media img {
  filter: grayscale(1);
}

.status-stamp span {
  border: 2.5px solid var(--paper);
  color: var(--paper);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.5rem 1.1rem;
  transform: rotate(-8deg);
  border-radius: 4px;
}

.property-card__body {
  padding: 1.4rem 1.4rem 1.6rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.property-card__location {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 0.4rem;
}

.property-card__title {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.property-card__rating {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.1rem;
}

.property-card__rating .rating-value {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ink-fade);
}

.blueprint {
  position: relative;
  border: 1px dashed var(--stone-line);
  border-radius: var(--radius-sm);
  padding: 0.9rem 1rem;
  margin-bottom: 1.2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem 1rem;
}

.blueprint::before,
.blueprint::after,
.blueprint .bp-tl,
.blueprint .bp-br {
  display: none;
}

.blueprint-row {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.blueprint-row .bp-label {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-fade);
}

.blueprint-row .bp-value {
  font-family: var(--font-mono);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink);
}

.property-card__price {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--stone-line);
}

.price-main {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--ink);
}

.price-sub {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--ink-fade);
}

.property-card__cta {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--brass);
}

.property-card__cta svg {
  width: 15px;
  height: 15px;
  transition: transform 0.3s var(--ease);
}

.property-card:hover .property-card__cta svg {
  transform: translateX(4px);
}

.no-results,
.empty-state {
  text-align: center;
  padding: 4.5rem 1.5rem;
  color: var(--ink-fade);
}

.no-results svg,
.empty-state svg {
  width: 46px;
  height: 46px;
  color: var(--stone-line);
  margin-bottom: 1.2rem;
}

.no-results h3,
.empty-state h3 {
  margin-bottom: 0.5rem;
  color: var(--ink);
}

.load-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 2.75rem;
}

/* =========================================================================
   PROPERTY DETAIL MODAL
   ========================================================================= */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(20, 38, 32, 0.6);
  backdrop-filter: blur(4px);
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(0px, 4vw, 4rem) 1rem;
  overflow-y: auto;
}

.modal-overlay.is-open {
  display: flex;
}

.modal-panel {
  background: var(--paper);
  width: 100%;
  max-width: 980px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin: auto 0;
  animation: modalIn 0.4s var(--ease);
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-close {
  position: absolute;
  top: 1.1rem;
  right: 1.1rem;
  z-index: 5;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(20, 38, 32, 0.55);
  color: var(--paper);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(6px);
}

.modal-close svg {
  width: 18px;
  height: 18px;
}

.modal-gallery {
  position: relative;
  background: var(--ink);
}

.modal-gallery__stage {
  position: relative;
}

.modal-gallery__main {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
}

.modal-gallery__main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: none;
}

.modal-gallery__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(251, 250, 246, 0.85);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
}

.modal-gallery__nav svg {
  width: 18px;
  height: 18px;
  color: var(--ink);
}

.modal-gallery__nav--prev {
  left: 1rem;
}

.modal-gallery__nav--next {
  right: 1rem;
}

.modal-gallery__thumbs {
  display: flex;
  gap: 0.5rem;
  padding: 0.75rem;
  overflow-x: auto;
  background: var(--ink);
}

.modal-gallery__thumbs img {
  width: 74px;
  height: 56px;
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
  opacity: 0.5;
  border: 2px solid transparent;
  flex-shrink: 0;
  filter: none;
}

.modal-gallery__thumbs img.is-active {
  opacity: 1;
  border-color: var(--brass-light);
}

.modal-body {
  padding: clamp(1.5rem, 4vw, 2.75rem);
}

.modal-heading {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.6rem;
}

.modal-heading__tags {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
}

.modal-heading h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
}

.modal-heading__rating {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.modal-price-block {
  text-align: right;
}

.modal-price-block .price-main {
  font-size: 2rem;
}

.modal-section {
  margin-bottom: 2.25rem;
}

.modal-section h4 {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--stone-line);
}

.modal-description {
  white-space: pre-line;
}

.spec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1px;
  background: var(--stone-line);
  border: 1px solid var(--stone-line);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.spec-cell {
  background: var(--white);
  padding: 1rem;
}

.spec-cell .bp-label {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-fade);
  display: block;
  margin-bottom: 0.35rem;
}

.spec-cell .bp-value {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 600;
}

.video-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--ink);
}

.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--stone-line);
}

.modal-actions .btn {
  flex: 1;
  min-width: 200px;
}

/* ---------- Enquiry form ---------- */
.enquiry-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.enquiry-form .field-full {
  grid-column: 1 / -1;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.field label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-fade);
}

.field input,
.field textarea,
.field select {
  border: 1.5px solid var(--stone-line);
  border-radius: var(--radius-sm);
  padding: 0.8rem 0.9rem;
  background: var(--white);
  font-size: 0.92rem;
  width: 100%;
  transition: border-color 0.25s ease;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--brass);
}

.field textarea {
  resize: vertical;
  min-height: 100px;
}

.form-note {
  font-size: 0.78rem;
  color: var(--ink-fade);
  margin-top: 0.5rem;
}

.form-status {
  font-size: 0.88rem;
  margin-top: 0.75rem;
  display: none;
  padding: 0.7rem 0.9rem;
  border-radius: var(--radius-sm);
}

.form-status.is-success {
  display: block;
  background: rgba(47, 74, 59, 0.1);
  color: var(--forest);
}

.form-status.is-error {
  display: block;
  background: rgba(138, 59, 47, 0.1);
  color: #8a3b2f;
}

/* =========================================================================
   ABOUT / SEZ COMPARISON
   ========================================================================= */
.comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.75rem;
  margin-top: 2.5rem;
}

.comparison-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: clamp(1.75rem, 3vw, 2.5rem);
  border-top: 3px solid var(--brass);
  box-shadow: var(--shadow-card);
}

.comparison-card--nonsez {
  border-top-color: var(--forest);
}

.comparison-card__head {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1.6rem;
}

.comparison-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--brass-dim);
  color: var(--brass);
  flex-shrink: 0;
}

.comparison-card--nonsez .comparison-card__icon {
  background: rgba(47, 74, 59, 0.12);
  color: var(--forest);
}

.comparison-card__icon svg {
  width: 22px;
  height: 22px;
}

.comparison-card__head h3 {
  font-size: 1.2rem;
  margin-bottom: 0.2rem;
}

.comparison-card__head span {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--ink-fade);
}

.comparison-list li {
  display: flex;
  gap: 0.75rem;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--stone-line);
  font-size: 0.92rem;
}

.comparison-list li:last-child {
  border-bottom: none;
}

.comparison-list svg {
  width: 17px;
  height: 17px;
  color: var(--brass);
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.comparison-card--nonsez .comparison-list svg {
  color: var(--forest);
}

.comparison-list strong {
  color: var(--ink);
}

/* =========================================================================
   WHY US
   ========================================================================= */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(251, 250, 246, 0.12);
  border: 1px solid rgba(251, 250, 246, 0.12);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.why-card {
  background: var(--ink);
  padding: clamp(1.75rem, 3vw, 2.4rem);
}

.why-card__icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 1px solid rgba(216, 184, 118, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brass-light);
  margin-bottom: 1.4rem;
}

.why-card__icon svg {
  width: 22px;
  height: 22px;
}

.why-card h3 {
  margin-bottom: 0.6rem;
}

.why-card p {
  font-size: 0.92rem;
}

/* =========================================================================
   TESTIMONIALS
   ========================================================================= */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
}

.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 2rem;
  border: 1px solid var(--stone-line);
  display: flex;
  flex-direction: column;
}

.testimonial-card__mark {
  font-family: var(--font-display);
  font-size: 2.6rem;
  color: var(--brass-light);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.testimonial-card .stars {
  margin-bottom: 0.9rem;
}

.testimonial-card blockquote {
  font-size: 0.96rem;
  color: var(--ink);
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--stone-line);
}

.avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--brass-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  flex-shrink: 0;
}

.testimonial-card__author strong {
  display: block;
  font-size: 0.92rem;
}

.testimonial-card__author span {
  font-size: 0.78rem;
  color: var(--ink-fade);
}

/* =========================================================================
   FLOATING CONTACT
   ========================================================================= */
.floating-contact {
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  z-index: 250;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.9rem;
}

.float-btn {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  color: var(--white);
  box-shadow: 0 10px 26px -6px rgba(20, 38, 32, 0.4);
  transition: transform 0.3s var(--ease);
}

.float-btn svg {
  width: 26px;
  height: 26px;
}

.float-btn:hover {
  transform: scale(1.08);
}

.float-btn--whatsapp {
  background: #25d366;
}

.float-btn--call {
  background: var(--ink);
}

.float-menu {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lift);
  padding: 0.6rem;
  min-width: 230px;
  display: none;
  flex-direction: column;
  gap: 0.2rem;
}

.float-menu.is-open {
  display: flex;
}

.float-menu a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 500;
}

.float-menu a:hover {
  background: var(--stone);
}

.float-menu a svg {
  width: 18px;
  height: 18px;
  color: var(--brass);
  flex-shrink: 0;
}

/* =========================================================================
   FOOTER
   ========================================================================= */
.site-footer {
  background: var(--ink);
  color: rgba(251, 250, 246, 0.7);
  padding: clamp(3.5rem, 6vw, 5rem) 0 0;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
}

.footer-brand .brand__name,
.footer-brand .brand__sub {
  color: var(--paper);
}

.footer-brand p {
  margin-top: 1.1rem;
  font-size: 0.9rem;
  max-width: 300px;
}

.footer-badges {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1.3rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: rgba(251, 250, 246, 0.5);
}

.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brass-light);
  margin-bottom: 1.2rem;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-col a {
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.footer-col a:hover {
  color: var(--paper);
}

.footer-col a svg {
  width: 15px;
  height: 15px;
  color: var(--brass);
  flex-shrink: 0;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  padding: 1.6rem 0;
  border-top: 1px solid rgba(251, 250, 246, 0.12);
  font-size: 0.8rem;
}

.footer-bottom a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* =========================================================================
   TOAST
   ========================================================================= */
.toast {
  position: fixed;
  bottom: 1.75rem;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--ink);
  color: var(--paper);
  padding: 0.9rem 1.4rem;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  box-shadow: var(--shadow-lift);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.toast svg {
  width: 17px;
  height: 17px;
  color: var(--brass-light);
}

/* =========================================================================
   RESPONSIVE
   ========================================================================= */
@media (max-width: 1080px) {
  .search-row {
    grid-template-columns: 1fr 1fr;
  }

  .search-row .btn-search {
    grid-column: 1 / -1;
  }

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

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

  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 860px) {

  .nav__links,
  .nav__actions .btn--outline-desktop {
    display: none;
  }

  .nav__toggle {
    display: flex;
  }

  .comparison {
    grid-template-columns: 1fr;
  }

  .enquiry-form {
    grid-template-columns: 1fr;
  }

  .modal-heading {
    flex-direction: column;
  }

  .modal-price-block {
    text-align: left;
  }
}

@media (max-width: 720px) {
  :root {
    --header-h: 72px;
  }

  .hero {
    min-height: 100vh;
    align-items: flex-end;
  }

  .hero__content {
    padding-top: calc(var(--header-h) + 2rem);
    padding-bottom: 3rem;
  }

  .hero__actions .btn {
    flex: 1;
  }

  .search-row {
    grid-template-columns: 1fr;
  }

  .rating-strip {
    gap: 1.75rem;
  }

  .rating-strip__divider {
    display: none;
  }

  .why-grid {
    grid-template-columns: 1fr;
  }

  .testimonial-grid {
    grid-template-columns: 1fr;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 2.25rem;
  }

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

  .properties-toolbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .modal-overlay {
    padding: 0;
  }

  .modal-panel {
    border-radius: 0;
    min-height: 100vh;
  }

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

@media (max-width: 420px) {
  .float-btn {
    width: 52px;
    height: 52px;
  }

  .float-btn svg {
    width: 22px;
    height: 22px;
  }
}