/* ==========================================================================
   Dylan Homes — front-end styles
   Palette: black / gold / white. Flat fills only, no gradients anywhere.
   ========================================================================== */

/* --------------------------------------------------------------- Tokens */
:root {
  --black:      #0a0a0a;
  --ink:        #121212;
  --ink-2:      #181818;
  --line:       #262626;
  --line-soft:  #e6e2d9;
  --gold:       #c9a227;
  --gold-light: #e0b64a;
  --gold-dark:  #a8871d;
  --white:      #ffffff;
  --bone:       #f6f4ef;
  --grey:       #8a8a8a;
  --grey-dark:  #555555;
  --danger:     #c0392b;
  --success:    #1e7a4b;

  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --container: 1280px;
  --header-h:  86px;
  --radius:    0px;
  --shadow:    0 18px 40px rgba(0, 0, 0, .12);
  --shadow-lg: 0 30px 70px rgba(0, 0, 0, .22);
  --ease:      cubic-bezier(.22, .61, .36, 1);
}

/* ---------------------------------------------------------------- Reset */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--white);
  overflow-x: hidden;
}

img, svg, video { max-width: 100%; height: auto; display: block; }
a   { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
table { border-collapse: collapse; width: 100%; }

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.18;
  margin: 0 0 .5em;
  letter-spacing: -.01em;
}
h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); }
h3 { font-size: clamp(1.35rem, 2.2vw, 1.85rem); }
h4 { font-size: 1.2rem; }
p  { margin: 0 0 1.1em; }

::selection { background: var(--gold); color: var(--black); }

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

/* ------------------------------------------------------------- Utilities */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 880px; }

.section { padding: 104px 0; }
.section-sm { padding: 64px 0; }
.section-dark { background: var(--black); color: var(--white); }
.section-bone { background: var(--bone); }

.text-center { text-align: center; }
.text-gold   { color: var(--gold); }
.hidden      { display: none !important; }
.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;
}

/* The skip link is visually hidden until a keyboard user tabs to it. */
a.sr-only:focus {
  position: fixed;
  top: 12px; left: 12px;
  width: auto; height: auto;
  padding: 14px 24px;
  margin: 0;
  overflow: visible;
  clip: auto;
  background: var(--gold);
  color: var(--black);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  z-index: 400;
}

.eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 28px; height: 1px;
  background: var(--gold);
  vertical-align: middle;
  margin-right: 12px;
}

.section-head { margin-bottom: 48px; }
.section-head h2 { margin-bottom: .25em; }
.section-head p { color: var(--grey-dark); max-width: 620px; margin: 0; }
.section-dark .section-head p { color: #a9a9a9; }

.section-head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.divider { height: 1px; background: var(--line-soft); border: 0; margin: 0; }
.section-dark .divider { background: var(--line); }

/* -------------------------------------------------------------- Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 32px;
  border: 1px solid transparent;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  background: var(--gold);
  color: var(--black);
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
  white-space: nowrap;
}
.btn:hover { background: var(--black); color: var(--white); }

.btn-outline { background: transparent; color: var(--black); border-color: var(--black); }
.btn-outline:hover { background: var(--black); color: var(--white); }

.btn-light { background: transparent; color: var(--white); border-color: rgba(255,255,255,.5); }
.btn-light:hover { background: var(--white); color: var(--black); border-color: var(--white); }

.btn-dark { background: var(--black); color: var(--white); }
.btn-dark:hover { background: var(--gold); color: var(--black); }

.btn-sm  { padding: 11px 22px; font-size: 11px; }
.btn-block { width: 100%; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
  border-bottom: 1px solid transparent;
  padding-bottom: 4px;
  transition: border-color .25s var(--ease), gap .25s var(--ease);
}
.link-arrow:hover { border-color: var(--gold); gap: 16px; }

/* --------------------------------------------------------------- Header */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 200;
  height: var(--header-h);
  background: var(--black);
  border-bottom: 1px solid var(--line);
  transition: height .3s var(--ease);
}
.site-header.is-stuck { height: 70px; }

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: .01em;
  line-height: 1;
}
.logo span { color: var(--gold); }
.logo img { max-height: 46px; width: auto; }
.logo-mark {
  width: 38px; height: 38px;
  border: 1px solid var(--gold);
  display: grid; place-items: center;
  color: var(--gold);
  font-size: 17px;
  font-weight: 700;
  font-family: var(--font-body);
  letter-spacing: 0;
  flex: none;
}

.main-nav ul { display: flex; align-items: center; gap: 34px; list-style: none; }
.main-nav a {
  position: relative;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #d7d7d7;
  padding: 10px 0;
  transition: color .25s var(--ease);
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 2px;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width .3s var(--ease);
}
.main-nav a:hover { color: var(--white); }
.main-nav a:hover::after,
.main-nav li.is-active a::after { width: 100%; }
.main-nav li.is-active a { color: var(--gold); }

.header-actions { display: flex; align-items: center; gap: 20px; }
.header-phone {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 600; color: var(--white);
  letter-spacing: .04em;
}
.header-phone svg { color: var(--gold); flex: none; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--white);
  position: relative;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  position: absolute;
  left: 12px;
  width: 20px; height: 2px;
  background: var(--gold);
  transition: transform .3s var(--ease), opacity .2s linear;
}
.nav-toggle span { top: 21px; }
.nav-toggle span::before { content: ""; left: 0; top: -7px; }
.nav-toggle span::after  { content: ""; left: 0; top: 7px; }
.nav-toggle.is-open span { background: transparent; }
.nav-toggle.is-open span::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span::after  { transform: translateY(-7px) rotate(-45deg); }

body { padding-top: var(--header-h); }

/* --------------------------------------------------------- Hero carousel */
.hero {
  position: relative;
  height: calc(100vh - var(--header-h));
  /* svh keeps the hero stable while mobile browser chrome shows and hides;
     the vh line above remains the fallback for older engines. */
  height: calc(100svh - var(--header-h));
  min-height: 580px;
  max-height: 900px;
  background: var(--black);
  overflow: hidden;
}
.hero-track { position: absolute; inset: 0; }

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity .9s var(--ease), visibility .9s;
}
.hero-slide.is-active { opacity: 1; visibility: visible; }

.hero-media { position: absolute; inset: 0; }
.hero-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  transition: transform 7s linear;
}
.hero-slide.is-active .hero-media img { transform: scale(1); }
.hero-overlay { position: absolute; inset: 0; background: var(--black); }

.hero-content {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  z-index: 2;
}
.hero-inner { max-width: 700px; color: var(--white); }
.hero-slide[data-align="center"] .hero-inner { max-width: 820px; margin: 0 auto; text-align: center; }
.hero-slide[data-align="center"] .hero-inner .eyebrow::before { display: none; }
.hero-slide[data-align="right"] .hero-inner { margin-left: auto; text-align: right; }
.hero-slide[data-align="right"] .hero-inner .eyebrow::before { display: none; }

.hero-inner .eyebrow,
.hero-inner .hero-title,
.hero-inner .hero-sub,
.hero-inner .hero-desc,
.hero-inner .hero-buttons {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.hero-slide.is-active .hero-inner > * { opacity: 1; transform: none; }
.hero-slide.is-active .eyebrow      { transition-delay: .20s; }
.hero-slide.is-active .hero-title   { transition-delay: .32s; }
.hero-slide.is-active .hero-sub     { transition-delay: .44s; }
.hero-slide.is-active .hero-desc    { transition-delay: .54s; }
.hero-slide.is-active .hero-buttons { transition-delay: .64s; }

/* Styled by class, not tag: only the first slide is an <h1>, the rest are
   <p> so the page keeps a single top-level heading. */
.hero .hero-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1.18;
  letter-spacing: -.01em;
  color: var(--white);
  margin: 0 0 .3em;
}
.hero-sub {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2vw, 1.6rem);
  color: var(--gold);
  margin: 0 0 .7em;
}
.hero-desc { color: #cfcfcf; font-size: 1.03rem; max-width: 560px; margin-bottom: 2.2em; }
.hero-slide[data-align="center"] .hero-desc { margin-left: auto; margin-right: auto; }
.hero-slide[data-align="right"] .hero-desc { margin-left: auto; }
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-slide[data-align="center"] .hero-buttons { justify-content: center; }
.hero-slide[data-align="right"] .hero-buttons { justify-content: flex-end; }

/* Hero controls */
.hero-arrows {
  position: absolute;
  right: 40px; bottom: 130px;
  z-index: 5;
  display: flex;
  gap: 1px;
}
.hero-arrow {
  width: 56px; height: 56px;
  background: rgba(10,10,10,.55);
  border: 1px solid rgba(255,255,255,.25);
  color: var(--white);
  display: grid; place-items: center;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.hero-arrow:hover { background: var(--gold); color: var(--black); border-color: var(--gold); }

.hero-dots {
  position: absolute;
  left: 0; right: 0; bottom: 25px; /* 46px minus the dot's 21px bottom padding */
  z-index: 5;
  display: flex;
  justify-content: center;
  gap: 14px;
}
/* 3px bar visually, but padding grows the hit area to ~44px for touch.
   background-clip keeps the paint inside the 3px content box. */
.hero-dot {
  width: 44px; height: 3px;
  box-sizing: content-box;
  background: rgba(255,255,255,.3);
  background-clip: content-box;
  border: 0;
  padding: 21px 0;
  position: relative;
  cursor: pointer;
}
.hero-dot::after {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 21px; height: 3px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
}
.hero-dot.is-active::after { transform: scaleX(1); transition: transform .4s var(--ease); }
.hero-dot.is-active.is-timing::after { animation: heroProgress linear forwards; }
@keyframes heroProgress { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.hero-counter {
  position: absolute;
  left: 40px; bottom: 46px;
  z-index: 5;
  color: var(--white);
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: .1em;
}
.hero-counter b { color: var(--gold); font-size: 30px; font-weight: 600; }

/* ----------------------------------------------------------- Search bar */
.search-bar {
  position: relative;
  z-index: 20;
  margin-top: -58px;
}
.search-panel {
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-top: 3px solid var(--gold);
  box-shadow: var(--shadow-lg);
  padding: 26px 28px;
}
.search-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
  gap: 16px;
  align-items: end;
}
.search-field label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: 8px;
}
.search-field select,
.search-field input {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--line-soft);
  background: var(--white);
  font-size: 14px;
  appearance: none;
}
.search-field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23c9a227' stroke-width='1.6' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 34px;
}
.search-field select:focus,
.search-field input:focus { outline: none; border-color: var(--gold); }

/* ----------------------------------------------------------- Stats strip */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat {
  padding: 46px 24px;
  text-align: center;
  border-right: 1px solid var(--line);
}
.stat:last-child { border-right: 0; }
.stat-value {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  font-weight: 600;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 10px;
}
.stat-label {
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: #a2a2a2;
}

/* -------------------------------------------------- Property card + grid */
.property-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 30px;
}

.property-card {
  background: var(--white);
  border: 1px solid var(--line-soft);
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease), transform .3s var(--ease);
}
.property-card:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}
.section-dark .property-card { background: var(--ink); border-color: var(--line); color: var(--white); }

.property-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--ink);
}
.property-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .7s var(--ease);
}
.property-card:hover .property-media img { transform: scale(1.07); }

.property-tags {
  position: absolute;
  top: 14px; left: 14px;
  display: flex; gap: 8px; flex-wrap: wrap;
  z-index: 2;
}
.tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  padding: 7px 12px;
  background: var(--black);
  color: var(--white);
}
.tag-gold    { background: var(--gold); color: var(--black); }
.tag-white   { background: var(--white); color: var(--black); }
.badge-sold, .badge-rented  { background: var(--danger); color: var(--white); }
.badge-pending { background: var(--white); color: var(--black); }
.badge-available { background: var(--gold); color: var(--black); }

.property-price {
  position: absolute;
  left: 0; bottom: 0;
  background: var(--black);
  color: var(--gold);
  padding: 12px 18px;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: .01em;
  z-index: 2;
}
.property-price .price-period {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: .1em;
  color: #b9b9b9;
  margin-left: 4px;
}

.property-body { padding: 24px 24px 0; flex: 1; }
.property-type {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
  display: block;
}
.property-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  line-height: 1.25;
  margin: 0 0 10px;
}
.property-card:hover .property-title { color: var(--gold-dark); }
.section-dark .property-card:hover .property-title { color: var(--gold); }

.property-location {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--grey-dark);
  margin-bottom: 18px;
}
.section-dark .property-location { color: #9a9a9a; }
.property-location svg { color: var(--gold); flex: none; }

.property-meta {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  padding: 16px 24px;
  margin-top: 18px;
  border-top: 1px solid var(--line-soft);
  font-size: 13px;
  color: var(--grey-dark);
}
.section-dark .property-meta { border-color: var(--line); color: #9a9a9a; }
.property-meta span { display: inline-flex; align-items: center; gap: 7px; }
.property-meta svg { color: var(--gold); flex: none; }

/* ------------------------------------------------------ Property carousel */
.carousel { position: relative; }

.carousel-viewport {
  overflow: hidden;
  margin: 0 -15px;
  padding: 6px 0 10px;
}
.carousel-track {
  display: flex;
  gap: 0;
  transition: transform .6s var(--ease);
  will-change: transform;
}
.carousel-track.is-dragging { transition: none; cursor: grabbing; }

.carousel-slide {
  flex: 0 0 auto;
  padding: 0 15px;
  min-width: 0;
}

.carousel-nav {
  display: flex;
  gap: 1px;
}
.carousel-btn {
  width: 52px; height: 52px;
  border: 1px solid var(--line-soft);
  background: var(--white);
  color: var(--black);
  display: grid; place-items: center;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.carousel-btn:hover:not(:disabled) { background: var(--gold); border-color: var(--gold); color: var(--black); }
.carousel-btn:disabled { opacity: .35; cursor: not-allowed; }
.section-dark .carousel-btn { background: transparent; border-color: var(--line); color: var(--white); }
.section-dark .carousel-btn:hover:not(:disabled) { background: var(--gold); color: var(--black); border-color: var(--gold); }

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 13px; /* 34px minus the dot's 21px top padding */
}
.carousel-dot {
  width: 32px; height: 3px;
  box-sizing: content-box;
  background: var(--line-soft);
  background-clip: content-box;
  border: 0;
  padding: 21px 0; /* hit area 45px tall; the bar itself stays 3px */
  cursor: pointer;
  transition: background .25s var(--ease), width .25s var(--ease);
}
.carousel-dot.is-active { background: var(--gold); width: 48px; }
.section-dark .carousel-dot { background: var(--line); }
.section-dark .carousel-dot.is-active { background: var(--gold); }

.carousel-empty {
  border: 1px dashed var(--line-soft);
  padding: 56px 24px;
  text-align: center;
  color: var(--grey);
}
.section-dark .carousel-empty { border-color: var(--line); }

/* ----------------------------------------------------------- Feature row */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
}
.feature {
  background: var(--white);
  padding: 44px 34px;
  transition: background .3s var(--ease), color .3s var(--ease);
}
.feature:hover { background: var(--black); color: var(--white); }
.feature-icon {
  width: 54px; height: 54px;
  border: 1px solid var(--gold);
  color: var(--gold);
  display: grid; place-items: center;
  margin-bottom: 22px;
}
.feature h3 { font-size: 1.3rem; margin-bottom: .4em; }
.feature p { margin: 0; color: var(--grey-dark); font-size: 15px; }
.feature:hover p { color: #b9b9b9; }

/* --------------------------------------------------------- Location grid */
.location-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.location-card {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--ink);
  display: block;
}
.location-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.location-card:hover img { transform: scale(1.08); }
.location-card::after {
  content: "";
  position: absolute; inset: 0;
  background: var(--black);
  opacity: .45;
  transition: opacity .4s var(--ease);
}
.location-card:hover::after { opacity: .65; }
.location-body {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 2;
  padding: 26px;
  color: var(--white);
}
.location-body h3 { margin: 0 0 4px; font-size: 1.5rem; }
.location-body span { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }

/* -------------------------------------------------------------- Agents */
.agent-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 28px;
}
.agent-card { background: var(--white); border: 1px solid var(--line-soft); transition: border-color .3s var(--ease); }
.agent-card:hover { border-color: var(--gold); }
.section-dark .agent-card { background: var(--ink); border-color: var(--line); }
.agent-photo { aspect-ratio: 6 / 7; overflow: hidden; background: var(--ink); }
.agent-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.agent-card:hover .agent-photo img { transform: scale(1.05); }
.agent-body { padding: 24px; text-align: center; }
.agent-body h2,
.agent-body h3 { font-size: 1.3rem; margin-bottom: 2px; }
.agent-role { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }
.agent-links { display: flex; justify-content: center; gap: 14px; margin-top: 18px; }
.agent-links a {
  width: 36px; height: 36px;
  border: 1px solid var(--line-soft);
  display: grid; place-items: center;
  color: var(--grey-dark);
  transition: all .25s var(--ease);
}
.agent-links a:hover { background: var(--gold); border-color: var(--gold); color: var(--black); }
.section-dark .agent-links a { border-color: var(--line); color: #9a9a9a; }

/* -------------------------------------------------------- Testimonials */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}
.testimonial {
  background: var(--ink);
  border: 1px solid var(--line);
  padding: 36px 32px;
  position: relative;
}
.testimonial::before {
  content: "\201C";
  position: absolute;
  top: 6px; right: 26px;
  font-family: var(--font-display);
  font-size: 90px;
  line-height: 1;
  color: var(--gold);
  opacity: .28;
}
.testimonial-stars { color: var(--gold); letter-spacing: 3px; margin-bottom: 16px; font-size: 14px; }
.testimonial p { color: #d2d2d2; font-size: 15.5px; margin-bottom: 22px; position: relative; z-index: 1; }
.testimonial-author { display: flex; align-items: center; gap: 14px; }
.testimonial-author img { width: 48px; height: 48px; object-fit: cover; border-radius: 50%; flex: none; }
.testimonial-avatar {
  width: 48px; height: 48px;
  background: var(--gold);
  color: var(--black);
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  flex: none;
}
.testimonial-author strong { display: block; color: var(--white); font-size: 15px; font-weight: 600; }
.testimonial-author span { font-size: 12px; color: var(--gold); letter-spacing: .1em; text-transform: uppercase; }

/* ------------------------------------------------------------ CTA band */
.cta-band {
  background: var(--gold);
  color: var(--black);
  padding: 72px 0;
}
.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.cta-inner h2 { margin: 0 0 .3em; }
.cta-inner p { margin: 0; max-width: 620px; font-size: 16px; }
.cta-band .btn { background: var(--black); color: var(--white); }
.cta-band .btn:hover { background: var(--white); color: var(--black); }

/* ----------------------------------------------------------- Page header */
.page-header {
  background: var(--black);
  color: var(--white);
  padding: 76px 0 68px;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.page-header h1 { color: var(--white); margin-bottom: .2em; }
.page-header p { color: #a9a9a9; margin: 0; max-width: 640px; }
.breadcrumb {
  display: flex;
  gap: 10px;
  align-items: center;
  list-style: none;
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--grey);
  margin-top: 20px;
}
.breadcrumb a { color: var(--gold); }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb li::after { content: "/"; margin-left: 10px; color: var(--line); }
.breadcrumb li:last-child::after { display: none; }

/* -------------------------------------------------------- Listing layout */
.listing-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 46px;
  align-items: start;
}
.sidebar { position: sticky; top: calc(var(--header-h) + 24px); }
.sidebar-block {
  border: 1px solid var(--line-soft);
  padding: 26px 24px;
  margin-bottom: 26px;
}
.sidebar-block h2,
.sidebar-block h3 {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--black);
  padding-bottom: 14px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--line-soft);
}
.filter-group { margin-bottom: 20px; }
.filter-group label,
.filter-group .filter-label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: 8px;
}
.filter-group input,
.filter-group select {
  width: 100%;
  padding: 12px 13px;
  border: 1px solid var(--line-soft);
  background: var(--white);
  font-size: 14px;
}
.filter-group input:focus,
.filter-group select:focus { outline: none; border-color: var(--gold); }
.filter-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.checklist { list-style: none; max-height: 300px; overflow-y: auto; }
.checklist li { margin-bottom: 2px; }
/* The label is the tap target, so it carries the 44px minimum height
   rather than the checkbox itself. */
.checklist label {
  display: flex; align-items: center; gap: 10px;
  min-height: 44px; padding: 4px 0;
  font-size: 14px; letter-spacing: 0; text-transform: none;
  color: var(--ink); font-weight: 400; cursor: pointer; margin: 0;
}
.checklist input {
  width: 18px; height: 18px;
  flex: none;
  accent-color: var(--gold);
}

.listing-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding-bottom: 22px;
  margin-bottom: 30px;
  border-bottom: 1px solid var(--line-soft);
}
.listing-count { font-size: 14px; color: var(--grey-dark); }
.listing-count b { color: var(--black); }
.listing-sort { display: flex; align-items: center; gap: 10px; }
.listing-sort select { padding: 10px 13px; border: 1px solid var(--line-soft); background: var(--white); font-size: 14px; }

.active-filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 24px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 12px;
  border: 1px solid var(--line-soft);
  font-size: 12px;
  background: var(--bone);
}
.chip a { color: var(--gold-dark); font-weight: 700; }

.empty-state {
  border: 1px dashed var(--line-soft);
  padding: 70px 30px;
  text-align: center;
}
.empty-state h3 { margin-bottom: .3em; }
.empty-state p { color: var(--grey-dark); }

/* ----------------------------------------------------------- Pagination */
.pagination { display: flex; gap: 8px; justify-content: center; align-items: center; margin-top: 50px; flex-wrap: wrap; }
.page-link {
  min-width: 46px; height: 46px;
  padding: 0 14px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line-soft);
  font-size: 13px; font-weight: 600;
  transition: all .25s var(--ease);
}
.page-link:hover { border-color: var(--gold); color: var(--gold-dark); }
.page-link.is-active { background: var(--black); border-color: var(--black); color: var(--white); }
.page-gap { color: var(--grey); padding: 0 4px; }

/* ------------------------------------------------------ Property detail */
.detail-gallery { position: relative; background: var(--black); }
.gallery-main {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--ink);
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-main .hero-arrow { position: absolute; top: 50%; transform: translateY(-50%); }
.gallery-main .gallery-prev { left: 20px; }
.gallery-main .gallery-next { right: 20px; }
.gallery-counter {
  position: absolute;
  right: 20px; bottom: 20px;
  background: rgba(10,10,10,.75);
  color: var(--white);
  padding: 8px 16px;
  font-size: 13px;
  letter-spacing: .1em;
}
.gallery-thumbs {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(110px, 1fr);
  gap: 10px;
  overflow-x: auto;
  padding: 10px 0 2px;
}
.gallery-thumb {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 2px solid transparent;
  background: var(--ink);
  padding: 0;
}
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; opacity: .55; transition: opacity .3s var(--ease); }
.gallery-thumb.is-active { border-color: var(--gold); }
.gallery-thumb.is-active img, .gallery-thumb:hover img { opacity: 1; }

.detail-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 50px;
  align-items: start;
}

.detail-head {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line-soft);
  margin-bottom: 32px;
}
.detail-head h1 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); margin-bottom: .25em; }
.detail-price {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 600;
  color: var(--gold-dark);
  white-space: nowrap;
}
.detail-ref { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--grey); }

.fact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  margin-bottom: 44px;
}
.fact { background: var(--white); padding: 24px 20px; text-align: center; }
.fact svg { color: var(--gold); margin: 0 auto 10px; }
.fact-value { font-family: var(--font-display); font-size: 1.6rem; font-weight: 600; line-height: 1; }
.fact-label { font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--grey); margin-top: 6px; }

.detail-block { margin-bottom: 46px; }
.detail-block > h2 {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line-soft);
  margin-bottom: 24px;
}
.rich-text { font-size: 16px; color: #333; }
.rich-text h3 { font-size: 1.4rem; margin: 1.4em 0 .5em; }
.rich-text ul, .rich-text ol { margin: 0 0 1.2em; padding-left: 22px; }
.rich-text li { margin-bottom: .5em; }
.rich-text a { color: var(--gold-dark); border-bottom: 1px solid var(--gold); }

.amenity-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 14px;
  list-style: none;
}
.amenity-list li { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.amenity-list svg { color: var(--gold); flex: none; }

.detail-map iframe, .detail-video iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line-soft);
  display: block;
}

/* Detail sidebar */
.detail-sidebar { position: sticky; top: calc(var(--header-h) + 24px); }
.agent-box {
  border: 1px solid var(--line-soft);
  border-top: 3px solid var(--gold);
  padding: 30px 26px;
  margin-bottom: 26px;
  text-align: center;
}
.agent-box img { width: 96px; height: 96px; object-fit: cover; border-radius: 50%; margin: 0 auto 16px; }
.agent-box h3 { font-size: 1.3rem; margin-bottom: 2px; }
.agent-box .agent-role { display: block; margin-bottom: 18px; }
.agent-contact { list-style: none; text-align: left; font-size: 14px; }
.agent-contact li { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line-soft); }
.agent-contact svg { color: var(--gold); flex: none; }

.inquiry-box { border: 1px solid var(--line-soft); padding: 30px 26px; background: var(--bone); }
.inquiry-box h3 {
  font-family: var(--font-body);
  font-size: 12px; font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase;
  margin-bottom: 20px;
}

/* --------------------------------------------------------------- Forms */
.form-field { margin-bottom: 16px; }
.form-field label {
  display: block;
  font-size: 10px; font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--grey); margin-bottom: 7px;
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--line-soft);
  background: var(--white);
  font-size: 14px;
}
.form-field textarea { min-height: 120px; resize: vertical; }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus { outline: none; border-color: var(--gold); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-note { font-size: 12px; color: var(--grey); margin-top: 12px; }

.alert {
  padding: 16px 20px;
  border-left: 3px solid var(--gold);
  background: var(--bone);
  margin-bottom: 24px;
  font-size: 15px;
}
.alert-success { border-color: var(--success); }
.alert-error   { border-color: var(--danger); }

/* -------------------------------------------------------------- Contact */
.contact-layout { display: grid; grid-template-columns: 1fr 1.15fr; gap: 54px; align-items: start; }
.contact-info { list-style: none; }
.contact-info li { display: flex; gap: 18px; padding: 22px 0; border-bottom: 1px solid var(--line-soft); }
.contact-info .ci-icon {
  width: 46px; height: 46px; flex: none;
  border: 1px solid var(--gold);
  color: var(--gold);
  display: grid; place-items: center;
}
.contact-info h3 { margin: 0 0 3px; font-family: var(--font-body); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--grey); font-weight: 700; }
.contact-info p { margin: 0; font-size: 15.5px; }

/* ----------------------------------------------------------------- Blog */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 30px; }
.post-card { border: 1px solid var(--line-soft); background: var(--white); transition: border-color .3s var(--ease); display: flex; flex-direction: column; }
.post-card:hover { border-color: var(--gold); }
.post-media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--ink); }
.post-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.post-card:hover .post-media img { transform: scale(1.06); }
.post-body { padding: 26px; flex: 1; }
.post-cat { font-size: 10px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); }
.post-card h2,
.post-card h3 { font-size: 1.4rem; margin: 10px 0; }
.post-card p { font-size: 14.5px; color: var(--grey-dark); margin: 0; }
.post-foot { padding: 0 26px 24px; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--grey); }

/* --------------------------------------------------------------- Footer */
.site-footer { background: var(--black); color: #a9a9a9; padding-top: 84px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.4fr;
  gap: 48px;
  padding-bottom: 60px;
}
.footer-grid h3 {
  font-family: var(--font-body);
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  margin-bottom: 24px;
  position: relative;
  padding-bottom: 14px;
}
.footer-grid h3::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 34px; height: 2px;
  background: var(--gold);
}
.footer-grid p { font-size: 14.5px; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { font-size: 14.5px; transition: color .25s var(--ease), padding-left .25s var(--ease); }
.footer-links a:hover { color: var(--gold); padding-left: 6px; }

.footer-contact { list-style: none; }
.footer-contact li { display: flex; gap: 12px; margin-bottom: 16px; font-size: 14.5px; }
.footer-contact svg { color: var(--gold); flex: none; margin-top: 4px; }

.newsletter { display: flex; margin-top: 20px; }
.newsletter input {
  flex: 1; min-width: 0;
  padding: 14px;
  background: var(--ink);
  border: 1px solid var(--line);
  color: var(--white);
  font-size: 14px;
}
.newsletter input:focus { outline: none; border-color: var(--gold); }
.newsletter button {
  padding: 0 22px;
  background: var(--gold);
  border: 1px solid var(--gold);
  color: var(--black);
  font-size: 11px; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase;
  transition: background .25s var(--ease), color .25s var(--ease);
}
.newsletter button:hover { background: var(--white); border-color: var(--white); }

.social-links { display: flex; gap: 12px; margin-top: 26px; }
.social-links a {
  width: 40px; height: 40px;
  border: 1px solid var(--line);
  display: grid; place-items: center;
  color: #a9a9a9;
  transition: all .25s var(--ease);
}
.social-links a:hover { background: var(--gold); border-color: var(--gold); color: var(--black); }

.footer-bottom {
  border-top: 1px solid var(--line);
  padding: 26px 0;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 13px;
}
.footer-bottom a:hover { color: var(--gold); }
.footer-bottom nav { display: flex; gap: 24px; }

/* ------------------------------------------------------------ Floating */
.to-top {
  position: fixed;
  right: 26px; bottom: 26px;
  width: 48px; height: 48px;
  background: var(--gold);
  color: var(--black);
  border: 0;
  display: grid; place-items: center;
  z-index: 150;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all .3s var(--ease);
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--black); color: var(--gold); }

/* Stacked above .to-top on the right. Previously bottom-left, where it sat
   on top of the hero slide counter and the property card meta row. */
.whatsapp-float {
  position: fixed;
  right: 26px; bottom: 88px;
  width: 52px; height: 52px;
  background: var(--black);
  border: 1px solid var(--gold);
  color: var(--gold);
  display: grid; place-items: center;
  z-index: 150;
  transition: all .3s var(--ease);
}
.whatsapp-float:hover { background: var(--gold); color: var(--black); }

/* ------------------------------------------------------------ Reveal-in */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
[data-reveal].is-revealed { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
}

/* ---------------------------------------------------------- Responsive */
@media (max-width: 1100px) {
  .listing-layout { grid-template-columns: 260px 1fr; gap: 32px; }
  .detail-layout  { grid-template-columns: 1fr; }
  .detail-sidebar { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}

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

  .nav-toggle { display: block; }
  .header-phone { display: none; }

  .main-nav {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    background: var(--black);
    border-bottom: 1px solid var(--line);
    max-height: 0;
    overflow: hidden;
    transition: max-height .4s var(--ease);
  }
  .main-nav.is-open { max-height: 80vh; overflow-y: auto; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 10px 24px 26px; }
  .main-nav li { border-bottom: 1px solid var(--line); }
  .main-nav li:last-child { border-bottom: 0; }
  .main-nav a { display: block; padding: 16px 0; font-size: 13px; }
  .main-nav a::after { display: none; }

  .section { padding: 72px 0; }
  .hero { min-height: 520px; }
  .hero-arrows { right: 20px; bottom: 110px; }
  .hero-arrow { width: 46px; height: 46px; }
  .hero-counter { left: 24px; bottom: 38px; font-size: 16px; }
  .hero-counter b { font-size: 24px; }
  .hero-dots { bottom: 17px; } /* 38px minus the dot's 21px bottom padding */

  .search-bar { margin-top: 0; }
  .search-panel { border-top-width: 3px; }
  .search-form { grid-template-columns: 1fr 1fr; }
  .search-form .btn { width: 100%; }

  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2n) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }

  .listing-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }

  .contact-layout { grid-template-columns: 1fr; gap: 40px; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 640px) {
  body { font-size: 15px; }
  .container { padding: 0 18px; }
  .section { padding: 58px 0; }
  .search-form { grid-template-columns: 1fr; }
  .property-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 34px; }
  .form-grid { grid-template-columns: 1fr; }
  .detail-head { flex-direction: column; gap: 14px; }
  .hero-arrows { display: none; }
  .fact-grid { grid-template-columns: 1fr 1fr; }
  .section-head-row { flex-direction: column; align-items: flex-start; }
  .whatsapp-float { right: 16px; bottom: 78px; }
  .to-top { right: 16px; bottom: 16px; }
}

/* ----------------------------------------------------------------- Print */
@media print {
  .site-header, .site-footer, .to-top, .whatsapp-float,
  .hero-arrows, .hero-dots, .detail-sidebar { display: none !important; }
  body { padding-top: 0; color: #000; }
}
