:root {
  color-scheme: light;
  --bg: #f5f7fb;
  --surface: #ffffff;
  --surface-2: #f1f5f9;
  --text: #0f172a;
  --muted: #475569;
  --line: #dbe4ee;
  --accent: #0f766e;
  --accent-strong: #115e59;
  --accent-soft: rgba(15, 118, 110, 0.1);
  --shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
  --radius: 8px;
  --container: 1180px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(15, 118, 110, 0.08), transparent 34%),
    linear-gradient(180deg, #ffffff 0%, var(--bg) 100%);
}

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

button,
input,
select {
  font: inherit;
}

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

.container {
  width: min(calc(100% - 2rem), var(--container));
  margin: 0 auto;
}

.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;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: 1rem;
  transform: translateY(-180%);
  background: var(--text);
  color: #fff;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  z-index: 1000;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(219, 228, 238, 0.85);
}

.header-bar {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto auto auto;
  align-items: center;
  gap: 0rem;
  padding: 0rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
}

.brand-logo {
  max-width:150px;
  display: block;
  object-fit: contain;
}

.brand-copy {
  display: grid;
  gap: 0.1rem;
  min-width: 0;
}

.brand-copy strong {
  font-size: 0.98rem;
  letter-spacing: 0;
}

.brand-copy span {
  color: var(--muted);
  font-size: 0.85rem;
}

.primary-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  min-width: 0;
}

.primary-nav a {
  color: var(--muted);
  font-weight: 600;
  padding: 0.45rem 0;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.primary-nav a:hover,
.primary-nav a:focus-visible {
  color: var(--text);
  border-color: var(--accent);
}

.code-search-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0px;
  margin:10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--muted);
  cursor: pointer;
}

.code-search-toggle svg {
  width: 1.15rem;
  height: 1.15rem;
  fill: currentColor;
  flex: 0 0 auto;
}

.code-search-toggle:hover,
.code-search-toggle:focus-visible {
  color: var(--text);
  border-color: rgba(15, 118, 110, 0.35);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.code-search-toggle[aria-expanded="true"] {
  color: var(--text);
  border-color: rgba(15, 118, 110, 0.45);
}

.header-code-search {
  position: absolute;
  right: 0;
  top: calc(100% + 0.15rem);
  display: none;
  width: min(100%, 25rem);
  z-index: 45;
}

body.code-search-open .header-code-search {
  display: block;
}

.header-code-search-form {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.7rem;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.header-code-search-form input {
  flex: 1 1 auto;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) - 2px);
  background: #fff;
  color: var(--text);
  padding: 0.7rem 0.8rem;
}

.header-code-search-form input::placeholder {
  color: var(--muted);
}

.header-code-search-form input:focus {
  outline: none;
  border-color: rgba(15, 118, 110, 0.45);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.header-code-search-form button {
  flex: 0 0 auto;
  border: 0;
  border-radius: calc(var(--radius) - 2px);
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  padding: 0.75rem 1rem;
  cursor: pointer;
}

.header-code-search-form button:hover,
.header-code-search-form button:focus-visible {
  background: var(--accent-strong);
}

.whatsapp-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  justify-self: end;
  color: var(--text);
  font-weight: 700;
  white-space: nowrap;
}

.whatsapp-link svg {
  width: 1.2rem;
  height: 1.2rem;
  flex: 0 0 auto;
  fill: #16a34a;
}

.floating-whatsapp {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: 60;
  width: 3.5rem;
  height: 3.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #25d366;
  color: #fff;
  box-shadow: 0 18px 30px rgba(37, 211, 102, 0.3);
  border: 0;
}

.floating-whatsapp svg {
  width: 1.65rem;
  height: 1.65rem;
  fill: #fff;
}

.floating-whatsapp:hover,
.floating-whatsapp:focus-visible {
  transform: translateY(-1px);
  background: #1fb85a;
}

.menu-toggle {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--text);
  cursor: pointer;
}

.menu-toggle svg {
  width: 1.25rem;
  height: 1.25rem;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  fill: none;
}

.menu-toggle:hover,
.menu-toggle:focus-visible {
  border-color: rgba(15, 118, 110, 0.35);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.hero {
  position: relative;
  min-height: calc(100svh - 86px);
  display: flex;
  align-items: stretch;
  overflow: clip;
  background: #08111f;
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media {
  background:
    linear-gradient(145deg, rgba(15, 23, 42, 0.22), rgba(15, 23, 42, 0.48)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
    url("assets/images/banners/home-hero.png") center center / cover no-repeat,
    linear-gradient(145deg, rgba(15, 23, 42, 0.15), rgba(15, 23, 42, 0.4)),
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.08), transparent 30%),
    linear-gradient(135deg, #27415f 0%, #1f3650 38%, #101827 100%);
}

.hero-overlay {
  background:
    linear-gradient(180deg, rgba(8, 17, 31, 0.24) 0%, rgba(8, 17, 31, 0.7) 100%),
    linear-gradient(90deg, rgba(8, 17, 31, 0.42) 0%, rgba(8, 17, 31, 0.2) 100%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 1.25rem;
  padding: 4rem 0 3rem;
  text-align: center;
}

.hero-copy {
  width: min(100%, 54rem);
  color: #fff;
}

.eyebrow,
.section-kicker {
  margin: 0 0 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0;
  font-size: 0.82rem;
  font-weight: 700;
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(2.2rem, 4vw, 4.2rem);
  line-height: 1.02;
  max-width: 18ch;
  margin-inline: auto;
}

.hero-text {
  margin: 1rem 0 0;
  max-width: 60ch;
  margin-inline: auto;
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.03rem;
  line-height: 1.65;
}

.search-panel {
  width: min(100%, 64rem);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
  padding: 1rem;
  border-radius: calc(var(--radius) + 2px);
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(219, 228, 238, 0.95);
  box-shadow: var(--shadow);
}

.field {
  display: grid;
  gap: 0.45rem;
}

.field label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--muted);
}

.field input,
.field select {
  width: 100%;
  min-height: 3rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  padding: 0.7rem 0.85rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field input:focus,
.field select:focus {
  border-color: rgba(15, 118, 110, 0.45);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.search-actions {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: stretch;
}

.search-button,
.reset-button {
  min-height: 3rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  padding: 0.75rem 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.search-button {
  width: 100%;
  background: var(--accent);
  color: #fff;
}

.search-button:hover,
.search-button:focus-visible {
  background: var(--accent-strong);
}

.reset-button {
  background: #fff;
  color: var(--muted);
  border-color: var(--line);
  white-space: nowrap;
}

.search-button:active,
.reset-button:active {
  transform: translateY(1px);
}

.catalog-section,
.about-section {
  padding: 4.5rem 0;
}

.catalog-section,
.about-section,
.collection-section,
.property-facts,
.property-details,
.map-section {
  content-visibility: auto;
  contain-intrinsic-size: 1px 900px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: end;
  margin-bottom: 1.5rem;
}

.section-head h2,
.about-copy h2 {
  margin: 0;
  font-size: clamp(1.65rem, 2vw, 2.4rem);
  line-height: 1.15;
}

.section-note {
  margin: 0;
  max-width: 32rem;
  color: var(--muted);
  line-height: 1.6;
}

.listing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.listing-grid--collection {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.listing-card {
  display: grid;
  gap: 0.85rem;
  padding: 0.75rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.listing-card:hover,
.listing-card:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.09);
  border-color: rgba(15, 118, 110, 0.25);
}

.listing-card--skeleton {
  pointer-events: none;
}

.listing-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: clip;
  border-radius: calc(var(--radius) - 2px);
  background:
    linear-gradient(135deg, rgba(17, 94, 89, 0.18), rgba(15, 23, 42, 0.1)),
    linear-gradient(180deg, #eff6ff, #dbeafe);
}

.listing-media--skeleton {
  overflow: hidden;
}

.listing-media--image {
  background-size: cover;
  background-position: center;
}

.listing-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 1rem;
  text-align: center;
  color: #0f172a;
}

.listing-placeholder span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 18ch;
  padding: 0.65rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(219, 228, 238, 0.95);
  font-weight: 700;
  line-height: 1.35;
}

.listing-placeholder--skeleton span,
.badge--ghost {
  background: rgba(255, 255, 255, 0.72);
  color: transparent;
  border-color: transparent;
}

.listing-placeholder--skeleton span {
  width: 10.5rem;
  min-height: 3.25rem;
}

.skeleton-line {
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(226, 232, 240, 0.9), rgba(203, 213, 225, 0.65), rgba(226, 232, 240, 0.9));
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.25s linear infinite;
}

.skeleton-line--title {
  height: 1.1rem;
  width: 92%;
}

.skeleton-line--meta {
  height: 0.92rem;
  width: 74%;
}

.skeleton-line--price {
  height: 1.15rem;
  width: 52%;
}

@keyframes skeleton-shimmer {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

.listing-badges {
  position: absolute;
  inset: 0.75rem 0.75rem auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.badge {
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  background: rgba(8, 17, 31, 0.74);
  color: #fff;
  font-size: 0.74rem;
  font-weight: 700;
}

.listing-body {
  display: grid;
  gap: 0.45rem;
  padding: 0 0.2rem 0.2rem;
}

.listing-body h3 {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.35;
}

.listing-meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.listing-price {
  margin: 0;
  font-size: 1.18rem;
  font-weight: 800;
  color: var(--accent-strong);
}

.empty-state {
  margin: 1.25rem 0 0;
  padding: 1rem 1.1rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px dashed var(--line);
  color: var(--muted);
}

.collection-shell {
  padding: 2rem 0 4.5rem;
}

.collection-hero {
  padding: 1.5rem 0 0.5rem;
}

.collection-hero-inner {
  display: grid;
  gap: 0.75rem;
}

.collection-hero h1 {
  margin: 0;
  font-size: clamp(2rem, 3vw, 3.2rem);
  line-height: 1.05;
  max-width: 18ch;
}

.collection-hero-text {
  margin: 0.75rem 0 0;
  max-width: 60ch;
  color: var(--muted);
  line-height: 1.65;
}

.collection-layout {
  display: grid;
  grid-template-columns: minmax(300px, 360px) minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
}

.collection-filters {
  position: sticky;
  top: 6.25rem;
}

.search-panel--collection {
  width: 100%;
  grid-template-columns: 1fr;
}

.collection-results {
  min-width: 0;
}

.collection-results-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: end;
  margin-bottom: 1rem;
}

.collection-results-head h2 {
  margin: 0.1rem 0 0;
  font-size: clamp(1.45rem, 2vw, 2rem);
  line-height: 1.15;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  gap: 1.5rem;
  align-items: start;
}

.about-heading {
  grid-column: 1 / -1;
  margin-bottom: 0.25rem;
}

.about-copy p {
  margin: 1rem 0 0;
  color: var(--muted);
  line-height: 1.75;
  max-width: 68ch;
}

.about-meta {
  display: grid;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  gap: 0.35rem;
}

.about-meta span {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
}

.about-meta a {
  color: var(--accent);
  font-weight: 700;
  word-break: break-word;
}

.about-copy,
.about-carousel {
  min-width: 0;
}

.about-copy {
  display: grid;
  align-content: start;
  gap: 1rem;
}

.about-carousel {
  display: grid;
  gap: 0.85rem;
}

.carousel-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  background: #dbeafe;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.carousel-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.6s ease;
  will-change: transform;
}

.carousel-slide {
  flex: 0 0 100%;
  height: 100%;
  margin: 0;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.45rem;
}

.carousel-dot {
  width: 0.7rem;
  height: 0.7rem;
  border: 0;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.2);
}

.carousel-dot.is-active {
  background: var(--accent);
}

.site-footer {
  padding: 2rem 0 2.25rem;
  background: #2b2f36;
}

.footer-inner {
  display: grid;
  justify-items: center;
  gap: 0.65rem;
  color: rgba(255, 255, 255, 0.78);
  text-align: center;
}

.footer-brand {
  display: grid;
  justify-items: center;
  gap: 0.45rem;
}

.footer-brand-logo {
  width: auto;
  height: 2.6rem;
  object-fit: contain;
}

.footer-brand-logo--footer {
  height: 4.2rem;
  max-width: min(100%, 28rem);
}

.footer-tagline {
  font-size: 0.92rem;
  line-height: 1.4;
}

.footer-meta {
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}

.placeholder-page {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 2rem 0;
}

.placeholder-card {
  width: min(100%, 42rem);
  padding: 1.5rem;
  border-radius: calc(var(--radius) + 2px);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.placeholder-card h1 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}

.placeholder-card p {
  margin: 0.9rem 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.placeholder-card a {
  display: inline-flex;
  margin-top: 1.25rem;
  padding: 0.8rem 1rem;
  border-radius: var(--radius);
  background: var(--accent);
  color: #fff;
  font-weight: 700;
}

.property-page {
  background:
    radial-gradient(circle at top left, rgba(15, 118, 110, 0.08), transparent 30%),
    linear-gradient(180deg, #ffffff 0%, var(--bg) 100%);
}

.property-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(219, 228, 238, 0.85);
}

.property-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}

.property-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text);
  font-weight: 700;
  white-space: nowrap;
}

.property-whatsapp svg {
  width: 1.2rem;
  height: 1.2rem;
  fill: #16a34a;
  flex: 0 0 auto;
}

.property-shell {
  padding-bottom: 4rem;
}

.property-hero {
  padding: 2rem 0 1.5rem;
}

.property-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 1.5rem;
  align-items: stretch;
}

.property-summary {
  display: grid;
  align-content: start;
  gap: 1.25rem;
  padding: 2rem;
  border-radius: calc(var(--radius) + 2px);
  background: #f7f8fb;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.property-summary h1 {
  margin: 0;
  font-size: clamp(2.1rem, 3.8vw, 3.7rem);
  line-height: 1.03;
  letter-spacing: -0.02em;
}

.property-location {
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
}

.property-price-block {
  display: grid;
  gap: 0.2rem;
}

.property-price-block span {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.property-price-block strong {
  font-size: clamp(1.9rem, 3vw, 2.8rem);
  line-height: 1;
}

.property-price-block p {
  margin: 0;
  color: var(--muted);
  font-size: 1.1rem;
  font-weight: 700;
}

.property-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.property-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.85rem 1.2rem;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.property-button:active {
  transform: translateY(1px);
}

.property-button-primary {
  background: #4057c6;
  color: #fff;
}

.property-button-primary:hover,
.property-button-primary:focus-visible {
  background: #3347ad;
}

.property-button-secondary {
  background: #fff;
  color: var(--text);
  border: 1px solid var(--line);
}

.property-gallery {
  position: relative;
  display: grid;
  gap: 0.85rem;
  align-content: start;
}

.gallery-stage-wrap {
  position: relative;
}

.gallery-stage {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: calc(var(--radius) + 2px);
  background:
    linear-gradient(135deg, rgba(17, 94, 89, 0.14), rgba(15, 23, 42, 0.08)),
    linear-gradient(180deg, #eff6ff, #dbeafe);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.gallery-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.45s ease;
  will-change: transform;
}

.gallery-slide {
  position: relative;
  flex: 0 0 100%;
  height: 100%;
  margin: 0;
}

.gallery-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 1rem;
  background:
    linear-gradient(145deg, rgba(8, 17, 31, 0.38), rgba(8, 17, 31, 0.18)),
    linear-gradient(135deg, #cbd5e1, #94a3b8);
}

.gallery-placeholder span {
  max-width: 22ch;
  padding: 0.8rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  text-align: center;
  font-weight: 700;
  line-height: 1.35;
}

.gallery-nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 2.9rem;
  height: 2.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  color: var(--text);
  cursor: pointer;
  transform: translateY(-50%);
  box-shadow: var(--shadow);
}

.gallery-nav span {
  font-size: 1.9rem;
  line-height: 1;
  margin-top: -0.1rem;
}

.gallery-nav-prev {
  left: 0.9rem;
}

.gallery-nav-next {
  right: 0.9rem;
}

.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
}

.thumb {
  position: relative;
  aspect-ratio: 4 / 3;
  padding: 0;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #fff;
  overflow: hidden;
  cursor: pointer;
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumb.is-active {
  border-color: rgba(15, 118, 110, 0.55);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.facts-grid,
.details-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 1.5rem;
}

.facts-card,
.pricing-card,
.content-card,
.map-card {
  padding: 1.4rem;
  border-radius: calc(var(--radius) + 2px);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.facts-card h2,
.pricing-card h2,
.content-card h2,
.map-head h2 {
  margin: 0 0 1rem;
  font-size: 1.18rem;
}

.facts-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.fact-item {
  padding: 0.95rem 1rem;
  border-radius: var(--radius);
  background: var(--surface-2);
  border: 1px solid rgba(219, 228, 238, 0.85);
  display: grid;
  gap: 0.2rem;
}

.fact-item span {
  color: var(--muted);
  font-size: 0.82rem;
  text-transform: uppercase;
}

.fact-item strong {
  font-size: 1rem;
}

.pricing-card {
  position: sticky;
  top: 6rem;
  align-self: start;
}

.pricing-table {
  display: grid;
  gap: 0.85rem;
}

.pricing-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--line);
}

.pricing-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.pricing-row span {
  color: var(--muted);
}

.pricing-row strong {
  color: var(--text);
}

.content-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
  font-size: 1.02rem;
}

.map-section {
  padding: 1.5rem 0 4rem;
}

.map-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: end;
  margin-bottom: 1rem;
}

.map-head p {
  margin: 0;
  color: var(--muted);
}

.map-frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 16 / 7;
  border: 1px solid var(--line);
  background: #e2e8f0;
}

.map-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

@media (max-width: 980px) {
  .header-bar {
    grid-template-columns: auto 1fr auto auto auto;
    grid-template-areas:
      "brand . code whatsapp menu"
      "nav nav nav nav nav";
  }

  .brand {
    grid-area: brand;
  }

  .menu-toggle {
    grid-area: menu;
    justify-self: end;
    display: inline-flex;
  }

  .code-search-toggle {
    grid-area: code;
    justify-self: end;
  }

  .whatsapp-link {
    grid-area: whatsapp;
    justify-self: end;
  }

  .primary-nav {
    grid-area: nav;
    justify-content: center;
    display: none;
    flex-wrap: wrap;
    padding: 0.35rem 0 0.2rem;
  }

  .code-search-toggle {
    padding: 0.45rem 0;
  }

  body.nav-open .primary-nav {
    display: flex;
  }

  .header-code-search {
    width: 100%;
    right: 0;
    left: 0;
  }

  .header-code-search-form {
    width: 100%;
  }

  .whatsapp-link {
    display: none;
  }

  .search-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .about-grid,
  .listing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .listing-grid--collection {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .collection-layout {
    grid-template-columns: 1fr;
  }

  .collection-filters {
    position: static;
  }

  .property-hero-grid,
  .facts-grid,
  .details-grid {
    grid-template-columns: 1fr;
  }

  .pricing-card {
    position: static;
  }
}

@media (max-width: 720px) {
  .container {
    width: min(calc(100% - 1.2rem), var(--container));
  }

  .header-bar {
    padding: 0rem 0;
  }

  .brand-copy span {
    display: none;
  }

  .brand-logo {
    height: 100px;
  }

  .whatsapp-link span {
    display: none;
  }

  .whatsapp-link {
    padding: 0;
  }

  .property-whatsapp span {
    display: none;
  }

  .property-whatsapp {
    gap: 0;
  }

  .hero {
    min-height: calc(60svh - 77px);
  }

  .hero-inner {
    gap: 0.95rem;
    padding: 1.25rem 0 1rem;
  }

  .hero-copy h1 {
    max-width: 16ch;
  }

  .hero-text {
    font-size: 0.98rem;
  }

  .search-panel {
    grid-template-columns: 1fr;
    padding: 0.9rem;
    width: min(100%, 34rem);
  }

  .search-panel--collection {
    width: 100%;
    max-width: none;
  }

  .header-code-search-form {
    flex-wrap: wrap;
  }

  .header-code-search-form input {
    flex: 1 1 100%;
    width: 100%;
  }

  .header-code-search-form button {
    width: 100%;
  }

  .header-code-search {
    top: calc(100% + 0.35rem);
  }

  .search-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .section-head,
  .footer-inner,
  .about-grid,
  .listing-grid {
    grid-template-columns: 1fr;
    display: grid;
  }

  .listing-grid--collection {
    grid-template-columns: 1fr;
  }

  .collection-layout {
    grid-template-columns: 1fr;
  }

  .collection-filters {
    position: static;
  }

  .collection-results-head {
    flex-direction: column;
    align-items: start;
  }

  .section-head {
    gap: 0.65rem;
    align-items: start;
  }

  .listing-grid {
    gap: 0.85rem;
  }

  .about-grid {
    gap: 1rem;
  }

  .about-heading {
    margin-bottom: 1rem;
  }

  .about-copy {
    order: 2;
  }

  .about-carousel {
    order: 1;
  }

  .catalog-section,
  .about-section {
    padding-top: 2rem;
    padding-bottom: 3.5rem;
  }

  .property-hero {
    padding-top: 1.25rem;
  }

  .property-hero-grid {
    gap: 1rem;
  }

  .property-summary {
    order: 2;
    padding: 1.35rem;
  }

  .property-gallery {
    order: 1;
  }

  .facts-list {
    grid-template-columns: 1fr;
  }

  .map-frame {
    aspect-ratio: 16 / 10;
  }
}

@media (max-width: 520px) {
  .menu-toggle {
    width: 2.55rem;
    height: 2.55rem;
  }

  .hero-copy h1 {
    font-size: clamp(2rem, 10vw, 2.6rem);
  }

  .section-head h2,
  .about-copy h2 {
    font-size: 1.45rem;
  }

  .property-summary h1 {
    font-size: 1.9rem;
  }

  .property-actions {
    flex-direction: column;
  }

  .property-button {
    width: 100%;
  }

  .gallery-thumbs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .floating-whatsapp {
    width: 3.25rem;
    height: 3.25rem;
    right: 0.85rem;
    bottom: 0.85rem;
  }

  .floating-whatsapp svg {
    width: 1.45rem;
    height: 1.45rem;
  }
}
