/* ==========================================================================
   PremierHome — shared styles
   ========================================================================== */

:root {
  --cream: #eaf6fc;
  --cream-dark: #d9edf9;
  --ink: #182430;
  --ink-soft: #57697a;
  --green: #2f8dcb;
  --green-dark: #1d6da5;
  --gold: #3fa855;
  --line: #cfe4f2;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(24, 65, 97, 0.08);
  --shadow-lg: 0 20px 50px rgba(24, 65, 97, 0.14);
  --nav-h: 68px;
  --header-h: 76px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: system-ui, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.55;
  padding-bottom: calc(var(--nav-h) + 12px);
}
body[data-page="apply"] { padding-bottom: 0; }

h1, h2, h3, h4 {
  font-family: system-ui, sans-serif;
  font-weight: 600;
  line-height: 1.15;
  color: var(--ink);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
ul { list-style: none; }

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 10px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 600;
  border: 1px solid transparent;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--green); color: var(--white); }
.btn-primary:hover { background: var(--green-dark); }
.btn-outline { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--white); }
.btn-light { background: var(--white); color: var(--ink); border-color: #2f8dcb; }
.btn-light:hover { background: var(--cream-dark); }
.btn-block { width: 100%; }
.btn-sm { padding: 10px 18px; font-size: 0.50rem; }

/* ---------- Top header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(234, 246, 252, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  font-family: system-ui, sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: var(--ink);
}
.logo-mark { height: 32px; width: auto; border-radius: 6px; }
.site-footer .logo { color: var(--white); }
.site-footer .logo-mark { background: var(--white); padding: 4px; }
.header-nav {
  display: flex;
  align-items: center;
  gap: 34px;
}
.header-nav a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color 0.2s;
}
.header-nav a:hover, .header-nav a.active { color: var(--ink); }
.header-actions { display: flex; align-items: center; gap: 6px; }
.header-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: none;
  background: none;
  border-radius: 8px;
  cursor: pointer;
  flex-shrink: 0;
}
.nav-toggle:hover { background: var(--cream-dark); }
.nav-toggle svg { width: 24px; height: 24px; stroke: var(--ink); fill: none; }
.nav-toggle .icon-close { display: none; }
.nav-toggle.open .icon-menu { display: none; }
.nav-toggle.open .icon-close { display: block; }

@media (max-width: 860px) {
  .header-nav { display: none; }
  .header-phone span { display: none; }
  .nav-toggle { display: flex; }

  .header-nav.mobile-open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 8px 24px 20px;
    box-shadow: var(--shadow-lg);
    border-bottom: 1px solid var(--line);
  }
  .header-nav.mobile-open a {
    padding: 13px 0;
    border-bottom: 1px solid var(--line);
    font-size: 1rem;
  }
  .header-nav.mobile-open a:last-child { border-bottom: none; }
}

/* ---------- Hero (full-bleed, Zillow-style) ---------- */
.hero {
  position: relative;
  height: clamp(420px, calc(100vh - var(--header-h) - var(--nav-h)), 640px);
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--white);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: url('../images/hero1.jpg') center/cover no-repeat;
  z-index: -2;
}
.hero-bg::after { content: none; }
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13, 33, 48, 0.15) 0%, rgba(13, 33, 48, 0.70) 100%);
  z-index: -1;
}
.hero-grid { max-width: 620px; }
.hero .eyebrow { color: #cfe7f7; }
.hero p {
  color: var(--white);
  margin-bottom: 16px;
  font-size: 35px;
  font-weight: 600;
}
.hero p.lead {
  font-size: 1.08rem;
  color: rgba(255, 255, 255, 0.88);
  max-width: 480px;
  margin-bottom: 30px;
}

.hero-toggle {
  display: inline-flex;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(6px);
  border-radius: 999px;
  padding: 4px;
  margin-bottom: 16px;
}
.hero-toggle button {
  border: none;
  background: transparent;
  color: var(--white);
  font-weight: 600;
  font-size: 0.88rem;
  padding: 9px 22px;
  border-radius: 999px;
  transition: all 0.2s ease;
}
.hero-toggle button.active { background: var(--white); color: var(--ink); }

.hero-search-pill {
  display: flex;
  align-items: center;
  background: var(--white);
  border-radius: 999px;
  box-shadow: var(--shadow-lg);
  padding: 6px;
  max-width: 560px;
}
.hero-search-pill input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  padding: 0 20px;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--ink);
  outline: none;
}
.hero-search-pill button {
  flex-shrink: 0;
  border: none;
  background: var(--green);
  color: var(--white);
  height: 46px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background 0.2s;
}
.hero-search-pill button:hover { background: var(--green-dark); }
.hero-search-pill button svg { width: 17px; height: 17px; stroke: currentColor; fill: none; }

.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 36px;
}
.hero-stats div strong {
  display: block;
  font-family: system-ui, sans-serif;
  font-size: 1.8rem;
  color: var(--white);
}
.hero-stats div span { font-size: 0.8rem; color: rgba(255, 255, 255, 0.75); }

@media (max-width: 640px) {
  .hero-search-pill { flex-direction: column; align-items: stretch; border-radius: 20px; gap: 8px; }
  .hero-search-pill input { padding: 10px 14px; }
  .hero-search-pill button { justify-content: center; }
}

.search-field { display: flex; flex-direction: column; gap: 6px; }
.search-field label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  font-weight: 600;
}
.search-field select, .search-field input {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 0.9rem;
  background: var(--cream);
  color: var(--ink);
}
/* ---------- Sections ---------- */
section { padding: 78px 0; }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 40px;
  gap: 20px;
  flex-wrap: wrap;
}
.section-head h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); }
.section-head p { color: var(--ink-soft); max-width: 460px; margin-top: 8px; }

.bg-alt { background: var(--white); }

/* ---------- Property cards ---------- */
.listing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
@media (max-width: 980px) { .listing-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 660px) { .listing-grid { grid-template-columns: 1fr; } }

.card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.card-media { position: relative; aspect-ratio: 4/3; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.card:hover .card-media img { transform: scale(1.06); }
.card-media-row {
  display: flex;
  width: 100%;
  height: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.card-media-row::-webkit-scrollbar { display: none; }
.card-media-row a { flex: 0 0 100%; height: 100%; scroll-snap-align: start; display: block; }
.card-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(24, 36, 48, 0.55);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 4;
  transition: background 0.15s;
}
.card-arrow:hover { background: rgba(24, 36, 48, 0.8); }
.card-arrow svg { width: 18px; height: 18px; }
.card-arrow-left { left: 8px; }
.card-arrow-right { right: 8px; }
.card-media.has-carousel::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 46px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.45), transparent);
  pointer-events: none;
  z-index: 3;
}
.card-dots {
  position: absolute;
  bottom: 12px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  z-index: 4;
}
.card-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: rgba(255, 255, 255, 0.75);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
  cursor: pointer;
  transition: all 0.2s;
}
.card-dot.active { background: var(--white); width: 20px; border-radius: 999px; }
.card-tags {
  position: absolute;
  top: 14px;
  left: 14px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  z-index: 4;
}
.card-tag {
  background: var(--green);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 999px;
  letter-spacing: 0.03em;
}
.card-media-empty {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cream-dark);
}
.card-media-empty svg { width: 40px; height: 40px; stroke: var(--ink-soft); fill: none; opacity: 0.5; }
.fav-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.12);
}
.fav-btn svg { width: 18px; height: 18px; stroke: var(--ink); fill: none; transition: all 0.15s; }
.fav-btn.active svg { fill: #c14b3d; stroke: #c14b3d; }

.detail-fav-btn svg { width: 18px; height: 18px; stroke: var(--ink); fill: none; flex-shrink: 0; transition: all 0.15s; }
#d-fav-btn.active svg { fill: #c14b3d; stroke: #c14b3d; }

.card-body { padding: 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-price { font-family: system-ui, sans-serif; font-size: 1.5rem; color: var(--green); font-weight: 700; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.card-price small { font-family: system-ui, sans-serif; font-size: 0.75rem; color: var(--ink-soft); font-weight: 500; }
.card-type-label { font-size: 0.72rem; font-weight: 600; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.03em; }
.card-title { font-size: 1.02rem; font-weight: 600; }
.card-loc { font-size: 0.85rem; color: var(--ink-soft); display: flex; align-items: center; gap: 6px; }
.card-loc svg { width: 14px; height: 14px; stroke: currentColor; fill: none; flex-shrink: 0; }
.card-specs {
  display: flex;
  gap: 16px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
  color: var(--ink-soft);
}
.card-specs span { display: flex; align-items: center; gap: 6px; }
.card-specs svg { width: 15px; height: 15px; stroke: var(--ink-soft); fill: none; }

/* ---------- Filter bar (listings page) ---------- */
.filter-bar {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px 20px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: end;
  margin-bottom: 36px;
}
.filter-bar .search-field { min-width: 150px; flex: 1; }
.filter-bar input, .filter-bar select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 0.9rem;
  background: var(--cream);
}
.results-meta { color: var(--ink-soft); font-size: 0.9rem; margin-bottom: 20px; }
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--ink-soft);
}
.empty-state h3 { color: var(--ink); margin-bottom: 8px; }

/* ---------- How it works / features ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
@media (max-width: 780px) { .feature-grid { grid-template-columns: 1fr; } }
.feature {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 26px;
  box-shadow: var(--shadow);
}
.feature .icon-wrap {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--cream-dark);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.feature .icon-wrap svg { width: 26px; height: 26px; stroke: var(--green); fill: none; }
.feature h3 { font-size: 1.15rem; margin-bottom: 8px; }
.feature p { color: var(--ink-soft); font-size: 0.92rem; }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: var(--green);
  color: var(--white);
  border-radius: 24px;
  padding: 56px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.cta-banner h2 { color: var(--white); font-size: clamp(1.6rem, 3vw, 2.2rem); }
.cta-banner p { color: rgba(255,255,255,0.78); margin-top: 8px; max-width: 420px; }
.cta-banner .btn-primary { background: var(--white); color: var(--green); }
.cta-banner .btn-primary:hover { background: var(--cream-dark); }

/* ---------- Forms (contact / inquiry) ---------- */
.form-shell {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 40px;
  max-width: 680px;
  margin: 0 auto;
}
@media (max-width: 620px) {
  .form-shell { padding: 24px 18px; }
}
.form-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 620px) { .form-grid { grid-template-columns: minmax(0, 1fr); } }

/* Keeps a field pair side-by-side 50/50 at every breakpoint, including mobile */
.field-row {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
  margin-bottom: 18px;
}
.field-row .field { margin-bottom: 0; }
@media (max-width: 400px) {
  .field-row { gap: 10px; }
}
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 18px; min-width: 0; }
.field label { font-size: 0.85rem; font-weight: 600; }
.field-highlight { background: #fff3c4; color: var(--ink); padding: 1px 6px; border-radius: 4px; font-weight: 700; }
.field input, .field select, .field textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 0.92rem;
  font-family: inherit;
  line-height: 1.3;
  background: var(--cream);
  color: var(--ink);
}
.field textarea { resize: vertical; min-height: 110px; }
/* Mobile browsers (especially iOS Safari) apply their own intrinsic height/
   padding to native date inputs that our padding alone can't override,
   making them render taller/shorter than the text input or select next to
   them in the same row. Resetting the native appearance lets our own
   padding/line-height fully control the box so all three line up. */
.field input[type="date"] {
  -webkit-appearance: none;
  appearance: none;
  /* iOS Safari renders the date value through its own internal element that
     doesn't inherit our line-height, so it can sit off-center inside the
     now custom-height box. Making the input a flex container centers it
     regardless of that internal WebKit sizing. */
  display: flex;
  align-items: center;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--green);
}
.form-note { font-size: 0.8rem; color: var(--ink-soft); margin-top: 4px; }
.form-success {
  display: none;
  text-align: center;
  padding: 30px 10px;
}
.form-success .icon-wrap {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--cream-dark);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 18px;
}
.form-success svg { width: 30px; height: 30px; stroke: var(--green); fill: none; }

/* ---------- Multi-step application wizard ---------- */
.wizard-shell { max-width: 720px; margin: 0 auto; }
.apply-progress {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  margin-bottom: 30px;
}
.apply-progress .step-tab {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid var(--line);
  background: var(--white);
  color: var(--ink-soft);
  transition: all 0.2s;
}
.apply-progress .step-tab svg { width: 18px; height: 18px; stroke: currentColor; fill: none; }
.apply-progress .step-tab.active { border-color: var(--green); color: var(--green); background: var(--cream); }
.apply-progress .step-tab.done { border-color: var(--gold); color: var(--white); background: var(--gold); }

@media (max-width: 400px) {
  .apply-progress .step-tab { width: 32px; height: 32px; }
  .apply-progress .step-tab svg { width: 15px; height: 15px; }
}

.form-step { display: none; }
.form-step.active { display: block; }

.step-eyebrow { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gold); margin-bottom: 8px; }
.step-heading { margin-bottom: 4px; }
.step-sub { color: var(--ink-soft); font-size: 0.9rem; margin-bottom: 26px; }

.step-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 8px; }
.step-nav .btn { flex: 1; }

.field-hidden { display: none !important; }

.checkbox-field { display: flex; align-items: flex-start; gap: 10px; font-weight: 500; font-size: 0.88rem; margin-bottom: 16px; }
.checkbox-field input { margin-top: 3px; width: auto; }

.field-search { position: relative; }
.autocomplete-list {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 20;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  max-height: 240px;
  overflow-y: auto;
}
.autocomplete-list.open { display: block; }
.autocomplete-item {
  padding: 12px 16px;
  cursor: pointer;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--line);
}
.autocomplete-item:last-child { border-bottom: none; }
.autocomplete-item:hover, .autocomplete-item.highlighted { background: var(--cream); }
.autocomplete-item strong { display: block; font-size: 0.92rem; }
.autocomplete-item span { display: block; font-size: 0.78rem; color: var(--ink-soft); }
.autocomplete-empty { padding: 14px 16px; font-size: 0.86rem; color: var(--ink-soft); }

.fee-notice {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: #fff6ea;
  border: 1px solid #f0c987;
  border-left: 4px solid #d98324;
  border-radius: 12px;
  padding: 18px 20px;
  margin-bottom: 20px;
}
.fee-notice .icon-wrap {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #fbe3bb;
  display: flex;
  align-items: center;
  justify-content: center;
}
.fee-notice .icon-wrap svg { width: 17px; height: 17px; stroke: #b5691a; fill: none; }
.fee-notice h4 { font-size: 1rem; margin-bottom: 6px; color: #8a4b0f; font-weight: 700; }
.fee-notice p { font-size: 0.88rem; color: #7a5a2e; line-height: 1.55; }
.fee-notice strong { color: #8a4b0f; }

.sign-block { margin-bottom: 20px; }
.sign-block > label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 8px; }
.signature-pad-wrap {
  position: relative;
  border: 1px dashed var(--line);
  border-radius: 12px;
  background: var(--cream);
  overflow: hidden;
}
#signature-pad {
  display: block;
  width: 100%;
  height: 160px;
  touch-action: none;
  cursor: crosshair;
}
.signature-pad-hint {
  position: absolute;
  bottom: 8px;
  right: 14px;
  font-size: 0.72rem;
  color: var(--ink-soft);
  pointer-events: none;
}
.sign-status {
  font-size: 0.86rem;
  padding: 0;
  margin-top: 10px;
  color: var(--ink-soft);
}
.sign-status.is-error { color: #c14b3d; }
.sign-status.is-success { color: var(--green); font-weight: 600; }

.review-group { border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; margin-bottom: 16px; }
.review-group h4 { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--green); margin-bottom: 10px; }
.review-row { display: flex; justify-content: space-between; gap: 16px; padding: 6px 0; font-size: 0.86rem; border-bottom: 1px dashed var(--line); }
.review-row:last-child { border-bottom: none; }
.review-row span:first-child { color: var(--ink-soft); flex-shrink: 0; max-width: 45%; }
.review-row span:last-child {
  font-weight: 600;
  text-align: right;
  flex: 1;
  min-width: 0;
  overflow-wrap: break-word;
  word-break: break-word;
}

/* ---------- Property detail page ---------- */
.detail-header { padding: 32px 0 0; }
.breadcrumbs { font-size: 0.82rem; color: var(--ink-soft); margin-bottom: 14px; }
.breadcrumbs a:hover { color: var(--ink); }
.detail-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.detail-title-row h1 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); margin-bottom: 6px; }
.detail-loc { color: var(--ink-soft); display: flex; align-items: center; gap: 6px; font-size: 0.95rem; }
.detail-loc svg { width: 16px; height: 16px; stroke: currentColor; fill: none; flex-shrink: 0; }
.detail-price-wrap { display: flex; align-items: center; gap: 14px; position: relative; }
.share-toast {
  position: absolute;
  top: -36px;
  right: 0;
  background: var(--ink);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  white-space: nowrap;
  pointer-events: none;
  animation: shareToastFade 2s ease forwards;
}
@keyframes shareToastFade {
  0% { opacity: 0; transform: translateY(4px); }
  15% { opacity: 1; transform: translateY(0); }
  80% { opacity: 1; }
  100% { opacity: 0; }
}
.detail-price { display: flex; align-items: center; gap: 10px; }
.detail-price strong { font-family: system-ui, sans-serif; font-size: 2rem; color: var(--green); }
.detail-price .price-tag {
  background: var(--green);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 999px;
  letter-spacing: 0.03em;
  white-space: nowrap;
}
.detail-fav-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.15s;
}
.detail-fav-btn:hover { border-color: var(--green); }

.gallery-wrap { position: relative; }

.gallery-row {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}
.gallery-row::-webkit-scrollbar { display: none; }
.gallery-row img {
  height: 420px;
  width: auto;
  max-width: 90vw;
  flex-shrink: 0;
  border-radius: var(--radius);
  object-fit: cover;
  scroll-snap-align: start;
}
@media (max-width: 780px) {
  .gallery-row img { height: 260px; }
}

.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(24, 36, 48, 0.55);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  transition: background 0.15s;
  backdrop-filter: blur(2px);
}
.gallery-arrow:hover { background: rgba(24, 36, 48, 0.8); }
.gallery-arrow svg { width: 20px; height: 20px; }
.gallery-arrow-left { left: 16px; }
.gallery-arrow-right { right: 16px; }
@media (max-width: 780px) {
  .gallery-arrow { width: 34px; height: 34px; }
  .gallery-arrow svg { width: 16px; height: 16px; }
}

.gallery-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  margin-bottom: 44px;
}
.gallery-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: var(--line);
  cursor: pointer;
  transition: all 0.2s;
}
.gallery-dot.active { background: var(--green); width: 22px; border-radius: 999px; }

.detail-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 50px;
  align-items: start;
}
@media (max-width: 940px) { .detail-layout { grid-template-columns: 1fr; } }

.spec-strip {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 30px;
}
.spec-strip div { display: flex; align-items: center; gap: 10px; }
.spec-strip svg { width: 22px; height: 22px; stroke: var(--green); fill: none; }
.spec-strip strong { display: block; font-size: 1.05rem; }
.spec-strip span { font-size: 0.78rem; color: var(--ink-soft); }

.detail-section { margin-bottom: 38px; }
.detail-section h3 { font-size: 1.3rem; margin-bottom: 14px; }
.detail-section p { color: var(--ink-soft); }
.amenity-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 20px;
}
.amenity-grid div { display: flex; align-items: center; gap: 10px; font-size: 0.9rem; color: var(--ink-soft); }
.amenity-grid svg { width: 17px; height: 17px; stroke: var(--green); fill: none; flex-shrink: 0; }
.map-embed {
  height: 260px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--cream-dark);
}
.map-embed iframe { width: 100%; height: 100%; border: 0; }
.video-embed {
  aspect-ratio: 16/9;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--cream-dark);
}
.video-embed iframe, .video-embed video { width: 100%; height: 100%; border: 0; display: block; }

.agent-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px;
  position: sticky;
  top: calc(var(--header-h) + 20px);
}
.agent-card .agent-top { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.agent-card img { width: 58px; height: 58px; border-radius: 50%; object-fit: cover; }
.agent-card strong { display: block; font-size: 1.02rem; }
.agent-card span { font-size: 0.82rem; color: var(--ink-soft); }
.agent-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }

.similar-strip { margin-top: 60px; }

/* ---------- Bottom nav (mobile-app style, persistent) ---------- */
.bottom-nav {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  height: var(--nav-h);
  background: var(--white);
  border-top: 1px solid var(--line);
  display: flex;
  z-index: 50;
  box-shadow: 0 -6px 20px rgba(0,0,0,0.06);
}
.bottom-nav a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--ink-soft);
}
.bottom-nav a svg { width: 22px; height: 22px; stroke: var(--ink-soft); fill: none; transition: all 0.15s; }
.bottom-nav a.active { color: var(--green); }
.bottom-nav a.active svg { stroke: var(--green); }
.bottom-nav a .fav-count {
  position: absolute;
  transform: translate(10px, -10px);
  background: #c14b3d;
  color: #fff;
  font-size: 0.62rem;
  min-width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
}

/* Floating "Apply" button on the listing detail page — sticky to the
   viewport like a WhatsApp chat widget, offset above the bottom-nav
   (which is shown at every screen size) so it never overlaps it. */
.floating-apply-btn {
  position: fixed;
  right: 16px;
  bottom: calc(var(--nav-h) + 20px);
  z-index: 55;
  background: var(--green);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 13px 22px;
  border-radius: 999px;
  box-shadow: var(--shadow-lg);
  text-decoration: none;
  transition: transform 0.15s ease;
}
.floating-apply-btn:hover { transform: scale(1.06); }

/* ---------- Footer (informational, above bottom nav) ---------- */
.site-footer {
  background: var(--green-dark);
  color: rgba(255,255,255,0.75);
  padding: 60px 0 40px;
  margin-top: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr; } }
.standalone-footer .footer-grid { grid-template-columns: 1.4fr 1fr; }
.footer-grid h4 { color: var(--white); font-family: system-ui, sans-serif; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 16px; }
.footer-grid .logo { color: var(--white); margin-bottom: 12px; }
.footer-grid p { font-size: 0.88rem; }
.footer-grid ul li { margin-bottom: 10px; font-size: 0.88rem; }
.footer-grid ul li a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-bottom-text { display: flex; flex-wrap: wrap; gap: 10px; }
.footer-admin-link { color: rgba(255,255,255,0.55); text-decoration: underline; }
.footer-admin-link:hover { color: var(--white); }

/* ---------- Page header (interior pages) ---------- */
.page-head {
  padding: 50px 0 10px;
}
.page-head h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 10px; }
.page-head p { color: var(--ink-soft); max-width: 520px; }

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-40 { margin-top: 40px; }
