/* Prestige Luxe — EstateFlow public website template */

:root {
  --primary: #1faa5b;
  --primary-soft: color-mix(in srgb, var(--primary) 14%, white);
  --ink: #0c1222;
  --ink-soft: #1a2336;
  --body: #4a5568;
  --muted: #7a8699;
  --line: #e6ebf2;
  --surface: #f4f6f8;
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(12, 18, 34, 0.1);
  --shadow-sm: 0 8px 24px rgba(12, 18, 34, 0.08);
  --radius: 18px;
  --radius-sm: 12px;
  --font-display: "Cormorant Garamond", "Times New Roman", serif;
  --font-body: "Outfit", system-ui, sans-serif;
  --nav-h: 84px;
  --max: 1160px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

h1,
h2,
h3,
.display {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--ink);
}

.container {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  border: 0;
  border-radius: 999px;
  padding: 0.85rem 1.45rem;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease,
    color 0.18s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 10px 28px color-mix(in srgb, var(--primary) 35%, transparent);
}

.btn-primary:hover {
  filter: brightness(0.95);
  color: var(--white);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(8px);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.2);
}

.btn-dark {
  background: var(--ink);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-whatsapp {
  background: #25d366;
  color: #fff;
}

.btn-block {
  width: 100%;
}

/* Spinner */
.spinner {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  background: var(--white);
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.spinner.hide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.spinner-ring {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 3px solid var(--line);
  border-top-color: var(--primary);
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Nav */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.site-nav.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 8px 24px rgba(12, 18, 34, 0.05);
}

.site-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}

.brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--primary-soft);
  color: var(--primary);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 1.15rem;
}

.brand-logo {
  height: 48px;
  width: auto;
  object-fit: contain;
}

.brand-logo-full {
  height: 52px;
  max-width: 240px;
}

.brand-text {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 1.28rem;
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.site-nav .nav-actions .btn {
  padding: 0.55rem 1.1rem;
  font-size: 0.84rem;
  gap: 0.4rem;
}

.brand-text span {
  font-weight: 500;
  color: var(--muted);
  margin-left: 0.2rem;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 1.6rem;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--body);
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--ink);
}

.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 2px;
  border-radius: 2px;
  background: var(--primary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-toggle {
  display: inline-flex;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.nav-drawer {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: var(--nav-h);
  background: var(--white);
  border-bottom: 1px solid var(--line);
  padding: 1rem 0 1.25rem;
  box-shadow: var(--shadow-sm);
}

.nav-drawer.open {
  display: block;
}

.nav-drawer a {
  display: block;
  padding: 0.75rem 1.25rem;
  font-weight: 500;
  color: var(--body);
}

.nav-drawer a.active,
.nav-drawer a:hover {
  color: var(--primary);
  background: var(--primary-soft);
}

@media (min-width: 900px) {
  .nav-links {
    display: flex;
  }
  .nav-toggle,
  .nav-drawer {
    display: none !important;
  }
}

/* Hero — full bleed */
.hero {
  position: relative;
  min-height: min(92vh, 820px);
  display: flex;
  align-items: flex-end;
  color: var(--white);
  overflow: hidden;
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  animation: heroZoom 18s ease-out forwards;
}

@keyframes heroZoom {
  to {
    transform: scale(1);
  }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(8, 12, 22, 0.35) 0%, rgba(8, 12, 22, 0.72) 55%, rgba(8, 12, 22, 0.88) 100%),
    radial-gradient(ellipse at 20% 30%, color-mix(in srgb, var(--primary) 28%, transparent), transparent 55%);
}

.hero-inner {
  width: min(100% - 2.5rem, var(--max));
  margin: 0 auto 4.5rem;
  padding-top: 6rem;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 1rem;
  opacity: 0;
  animation: rise 0.7s ease 0.1s forwards;
}

.hero h1 {
  max-width: 14ch;
  font-size: clamp(2.8rem, 7vw, 4.8rem);
  color: var(--white);
  margin: 0 0 1rem;
  opacity: 0;
  animation: rise 0.8s ease 0.2s forwards;
}

.hero h1 em {
  font-style: italic;
  color: var(--primary);
  font-weight: 600;
}

.hero-lead {
  max-width: 38rem;
  font-size: 1.08rem;
  color: rgba(255, 255, 255, 0.82);
  margin: 0 0 2rem;
  opacity: 0;
  animation: rise 0.8s ease 0.35s forwards;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Search panel */
.search-panel {
  margin-top: 2.25rem;
  opacity: 0;
  animation: rise 0.85s ease 0.5s forwards;
}

.search-tabs {
  display: inline-flex;
  gap: 0.4rem;
  padding: 0.3rem;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  margin-bottom: 0.85rem;
  backdrop-filter: blur(8px);
}

.search-tabs button {
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.8);
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
}

.search-tabs button.active {
  background: var(--primary);
  color: #fff;
}

.search-card {
  display: grid;
  gap: 0.75rem;
  background: var(--white);
  color: var(--ink);
  border-radius: 22px;
  padding: 0.85rem;
  box-shadow: var(--shadow);
}

@media (min-width: 860px) {
  .search-card {
    grid-template-columns: 1.2fr 1fr 1fr auto;
    align-items: stretch;
    padding: 0.65rem;
  }
}

.search-field {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem 0.9rem;
  border-radius: 16px;
  background: var(--surface);
  min-width: 0;
}

.search-field-body {
  min-width: 0;
  flex: 1;
}

.search-field i {
  color: var(--primary);
  width: 18px;
  text-align: center;
}

.search-field label {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.search-field select,
.search-field input {
  width: 100%;
  border: 0;
  background: transparent;
  padding: 0.15rem 0 0;
  color: var(--ink);
  outline: none;
  font-weight: 600;
}

.search-card .btn {
  border-radius: 16px;
  min-height: 58px;
  padding-inline: 1.6rem;
}

.lead-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 1.45rem 1.5rem;
  box-shadow: var(--shadow);
}

.lead-card-head h3 {
  font-family: var(--font-body);
  font-size: 1.2rem;
  margin: 0 0 0.35rem;
  color: var(--ink);
}

.lead-card-head p {
  margin: 0 0 1.1rem;
  color: var(--body);
  font-size: 0.92rem;
}

.form-stack {
  display: grid;
  gap: 0.75rem;
}

.form-row-2 {
  display: grid;
  gap: 0.75rem;
}

@media (min-width: 520px) {
  .form-row-2 {
    grid-template-columns: 1fr 1fr;
  }
}

.lead-card .form-control {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  background: var(--surface);
  color: var(--ink);
  outline: none;
}

.lead-card .form-control:focus {
  border-color: var(--primary);
  background: #fff;
}

.alert {
  padding: 0.85rem 1rem;
  border-radius: 12px;
  font-size: 0.92rem;
  margin-bottom: 0.25rem;
}

.alert-success {
  background: #e8f8ef;
  color: #147a45;
}

.alert-danger {
  background: #fdecec;
  color: #b42318;
}

.lead-home {
  display: grid;
  gap: 1.75rem;
  align-items: center;
}
@media (min-width: 900px) {
  .lead-home {
    grid-template-columns: 1fr 1.1fr;
    gap: 2.5rem;
  }
}
.lead-home-copy h2 {
  margin: 0 0 0.75rem;
}
.lead-home-copy p {
  margin: 0;
  color: var(--body);
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 2.5rem;
  opacity: 0;
  animation: rise 0.85s ease 0.65s forwards;
}

.hero-stats strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  line-height: 1;
  margin-bottom: 0.25rem;
}

.hero-stats span {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.7);
}

.section-ink {
  background: var(--ink);
  color: #fff;
}

.cta-simple {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
  justify-content: space-between;
}

.cta-simple h2 {
  margin: 0 0 0.5rem;
  color: #fff;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
}

.cta-simple p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  max-width: 36rem;
}

.cta-simple-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Sections */
.section {
  padding: 5rem 0;
}

.section-muted {
  background: var(--surface);
}

.section-head {
  text-align: center;
  max-width: 40rem;
  margin: 0 auto 2.75rem;
}

.section-head h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 0 0 0.75rem;
}

.section-head p {
  margin: 0;
  color: var(--body);
  font-size: 1.05rem;
}

.section-foot {
  text-align: center;
  margin-top: 2.5rem;
}

.link-more {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--primary);
  font-weight: 700;
}

.link-more:hover {
  gap: 0.7rem;
}

/* Property cards */
.prop-grid {
  display: grid;
  gap: 1.4rem;
  grid-template-columns: 1fr;
}

@media (min-width: 700px) {
  .prop-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1000px) {
  .prop-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.prop-card {
  position: relative;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.prop-card-hit {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.prop-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.prop-media {
  position: relative;
  aspect-ratio: 16 / 11;
  overflow: hidden;
  background: #dbe1ea;
}

.prop-media img,
.prop-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.prop-media .ef-lazy-image,
.prop-media .ef-media-thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.prop-card:hover .prop-media img,
.prop-card:hover .prop-media video {
  transform: scale(1.04);
}

.prop-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--primary);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
}

.prop-price {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink);
  font-weight: 800;
  font-size: 0.95rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}

.prop-wa {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-sm);
}

.prop-body {
  padding: 1.15rem 1.2rem 1.3rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  flex: 1;
}

.prop-body h3 {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0;
}

.prop-loc {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.prop-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
  color: var(--body);
  font-size: 0.86rem;
  font-weight: 500;
}

.prop-specs span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.prop-specs i {
  color: var(--primary);
}

/* Types */
.type-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 800px) {
  .type-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.type-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1rem;
  text-align: center;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.type-item:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
}

.type-item img {
  width: 48px;
  height: 48px;
  margin: 0 auto 0.85rem;
  object-fit: contain;
}

.type-item h3 {
  font-family: var(--font-body);
  font-size: 1rem;
  margin: 0 0 0.25rem;
}

.type-item span {
  color: var(--muted);
  font-size: 0.88rem;
}

/* Agents */
.agent-grid {
  display: grid;
  gap: 1.4rem;
  grid-template-columns: 1fr;
}

@media (min-width: 700px) {
  .agent-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1000px) {
  .agent-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.agent-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  padding: 2rem 1.4rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.agent-photo {
  width: 118px;
  height: 118px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  margin: 0 auto 1.1rem;
  border: 4px solid var(--primary-soft);
  display: block;
  background: var(--line);
}

.agent-card h3 {
  font-family: var(--font-body);
  font-size: 1.15rem;
  margin: 0 0 0.25rem;
}

.agent-role {
  color: var(--primary);
  font-weight: 700;
  font-size: 0.92rem;
  margin-bottom: 0.35rem;
}

.agent-meta {
  color: var(--muted);
  font-size: 0.88rem;
  margin-bottom: 1rem;
}

.agent-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
  margin-bottom: 1.2rem;
}

.agent-tags span {
  background: var(--surface);
  color: var(--body);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
}

.agent-actions {
  display: flex;
  justify-content: center;
  gap: 1.4rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
}

.agent-actions a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.9rem;
}

.agent-actions a:hover {
  color: var(--primary);
}

/* CTA band */
.cta-band {
  border-radius: 28px;
  overflow: hidden;
  display: grid;
  background: var(--ink-soft);
  color: var(--white);
}

@media (min-width: 900px) {
  .cta-band {
    grid-template-columns: 1.1fr 1fr;
  }
}

.cta-band-media {
  min-height: 260px;
}

.cta-band-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cta-band-copy {
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.cta-band-copy h2 {
  color: var(--white);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  margin: 0 0 0.75rem;
}

.cta-band-copy p {
  color: rgba(255, 255, 255, 0.75);
  margin: 0 0 1.4rem;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Page hero (inner pages) */
.page-hero {
  position: relative;
  padding: 4.5rem 0 3.5rem;
  background:
    linear-gradient(135deg, rgba(12, 18, 34, 0.92), color-mix(in srgb, var(--primary) 35%, #0c1222)),
    url("../img/header.jpg") center / cover;
  color: var(--white);
}

.page-hero h1 {
  color: var(--white);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  margin: 0 0 0.5rem;
}

.page-hero p {
  margin: 0;
  color: rgba(255, 255, 255, 0.75);
  max-width: 40rem;
}

/* Filters */
.filter-bar {
  display: grid;
  gap: 0.75rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow-sm);
  margin: -2rem auto 2.5rem;
  position: relative;
  z-index: 2;
}

@media (min-width: 900px) {
  .filter-bar {
    grid-template-columns: 1.4fr 1fr 1fr 1fr auto;
    align-items: center;
  }
}

.filter-bar input,
.filter-bar select,
.form-control {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  background: var(--surface);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.filter-bar select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%231b293e' d='M2.1 4.2 6 8.1l3.9-3.9 1.1 1.1L6 10.3 1 5.3z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  background-size: 12px;
  padding-right: 2.25rem;
}

.filter-bar input:focus,
.filter-bar select:focus,
.form-control:focus {
  border-color: var(--primary);
  background-color: var(--white);
}

.filter-bar select:focus {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2300adef' d='M2.1 4.2 6 8.1l3.9-3.9 1.1 1.1L6 10.3 1 5.3z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  background-size: 12px;
}

/* Property detail */
.detail-layout {
  display: grid;
  gap: 2rem;
}

@media (min-width: 960px) {
  .detail-layout {
    grid-template-columns: 1.55fr 0.9fr;
    align-items: start;
  }
}

.detail-gallery {
  border-radius: var(--radius);
  overflow: hidden;
  background: #dbe1ea;
}

.detail-gallery #mainPhoto,
.detail-gallery #mainMediaHost .ef-gallery-main-media,
.detail-gallery #mainMediaHost > img,
.detail-gallery #mainMediaHost > video,
.detail-gallery #mainMediaHost > iframe,
.detail-gallery #mainMediaHost .ef-lazy-image {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
}

.detail-gallery #mainMediaHost .ef-lazy-image {
  min-height: 220px;
}

.detail-gallery #mainMediaHost > video {
  object-fit: contain;
  background: #0b1c33;
}

.detail-gallery #mainMediaHost > iframe {
  min-height: 320px;
  border: 0;
  object-fit: unset;
}

.thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.6rem;
  margin-top: 0.75rem;
}

.thumbs img,
.thumbs .ef-media-thumb,
.thumbs .ef-lazy-image {
  height: 84px;
  width: 100%;
  object-fit: cover;
  border-radius: 12px;
  cursor: pointer;
  border: 2px solid transparent;
  overflow: hidden;
  min-height: 0;
}

.thumbs .ef-media-thumb img,
.thumbs .ef-media-thumb video,
.thumbs .ef-lazy-image img {
  height: 100%;
  width: 100%;
  object-fit: cover;
}

.thumbs img:hover,
.thumbs .ef-media-thumb:hover,
.thumbs .ef-lazy-image:hover {
  border-color: var(--primary);
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.25rem 0;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 700;
}

.chip-dark {
  background: var(--ink);
  color: #fff;
}

.detail-price {
  font-family: var(--font-body);
  font-size: clamp(1.55rem, 2.4vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--primary);
  margin: 0 0 1rem;
}

.detail-specs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.detail-specs div {
  padding: 1rem;
  text-align: center;
  font-weight: 600;
  font-size: 0.92rem;
  background: #fff;
}

.detail-specs i {
  color: var(--primary);
  margin-right: 0.35rem;
}

.amenity-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.55rem 1rem;
}

.amenity-grid li {
  list-style: none;
}

.amenity-grid i {
  color: var(--primary);
  margin-right: 0.4rem;
}

.inquiry-card {
  position: sticky;
  top: calc(var(--nav-h) + 1rem);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.inquiry-card h3 {
  font-family: var(--font-body);
  font-size: 1.2rem;
  margin: 0 0 1rem;
}

.form-stack {
  display: grid;
  gap: 0.75rem;
}

.alert {
  padding: 0.85rem 1rem;
  border-radius: 12px;
  font-size: 0.92rem;
  margin-bottom: 1rem;
}

.alert-success {
  background: #e8f8ef;
  color: #147a45;
}

.alert-danger {
  background: #fdecec;
  color: #b42318;
}

.split-2 {
  display: grid;
  gap: 2rem;
}

@media (min-width: 900px) {
  .split-2 {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }
}

.about-media {
  border-radius: calc(var(--radius) + 6px);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.contact-row {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.contact-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--primary-soft);
  color: var(--primary);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.contact-panel {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.5rem;
  border: 1px solid var(--line);
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  list-style: none;
  padding: 0;
  margin: 2.5rem 0 0;
}

.pagination a,
.pagination span {
  display: inline-flex;
  min-width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid var(--line);
  font-weight: 600;
  font-size: 0.9rem;
}

.pagination .active a,
.pagination a:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.pagination .disabled a {
  opacity: 0.4;
  pointer-events: none;
}

.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--muted);
}

.empty-state i {
  color: var(--primary);
  margin-bottom: 0.75rem;
}

/* Footer */
.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.7);
  padding: 4rem 0 1.5rem;
  margin-top: 0;
}

.footer-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 800px) {
  .footer-grid {
    grid-template-columns: 1.3fr 1fr 1fr;
  }
}

.site-footer h4 {
  color: #fff;
  font-family: var(--font-body);
  font-size: 1rem;
  margin: 0 0 1rem;
}

.site-footer a:hover {
  color: #fff;
}

.footer-links {
  display: grid;
  gap: 0.55rem;
}

.socials {
  display: flex;
  gap: 0.55rem;
  margin-top: 1rem;
}

.socials a {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  display: grid;
  place-items: center;
}

.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  font-size: 0.88rem;
}

.wa-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 1.7rem;
  box-shadow: 0 10px 28px rgba(37, 211, 102, 0.4);
  transition: transform 0.15s ease;
}

.wa-float:hover {
  transform: scale(1.06);
  color: #fff;
}

.back-top {
  position: fixed;
  right: 22px;
  bottom: 92px;
  z-index: 89;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--ink);
  color: #fff;
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.back-top.show {
  opacity: 1;
  pointer-events: auto;
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.in {
  opacity: 1;
  transform: none;
}
