:root {
  --ink: #17201d;
  --muted: #64706b;
  --line: #dfe5e0;
  --paper: #f7f5ef;
  --surface: #ffffff;
  --green: #1e5b45;
  --green-2: #2f7a5e;
  --gold: #b68b48;
  --clay: #bd6d4b;
  --sky: #dfeaf0;
  --shadow: 0 22px 70px rgba(23, 32, 29, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.modal-open {
  overflow: hidden;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(247, 245, 239, 0.86);
  border-bottom: 1px solid rgba(23, 32, 29, 0.08);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 178px;
}

.brand-mark {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  color: #fff;
  background: var(--green);
  border-radius: 8px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.nav-links {
  display: flex;
  gap: 26px;
  color: #34413c;
  font-size: 14px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang-switcher {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.lang-switcher button {
  min-width: 34px;
  height: 32px;
  border: 0;
  border-radius: 6px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
}

.lang-switcher button.active {
  color: #fff;
  background: var(--green);
}

.header-cta,
.reset-btn,
.request-form button {
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: var(--green);
  cursor: pointer;
  font-weight: 700;
}

.header-cta {
  padding: 12px 18px;
}

.hero {
  padding: 18px clamp(14px, 3vw, 32px) 0;
}

.slider {
  position: relative;
  min-height: min(72vh, 760px);
  overflow: hidden;
  border-radius: 10px;
  background: #20302b;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 500ms ease;
}

.slide.active {
  opacity: 1;
}

.slide img {
  width: 100%;
  height: 100%;
  min-height: min(72vh, 760px);
  object-fit: cover;
  filter: saturate(0.96);
}

.slide::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, rgba(14, 24, 21, 0.78), rgba(14, 24, 21, 0.32) 48%, rgba(14, 24, 21, 0.08));
}

.slide-copy {
  position: absolute;
  z-index: 2;
  bottom: clamp(34px, 8vw, 92px);
  left: clamp(24px, 7vw, 110px);
  max-width: 680px;
  color: #fff;
}

.slide-copy p,
.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.slide-copy h1,
.slide-copy h2 {
  margin: 0 0 16px;
  font-size: clamp(42px, 7vw, 92px);
  line-height: 0.94;
  letter-spacing: 0;
}

.slide-copy span {
  display: block;
  max-width: 580px;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.5;
}

.slider-btn {
  position: absolute;
  z-index: 3;
  top: 50%;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 999px;
  color: #fff;
  background: rgba(0, 0, 0, 0.18);
  cursor: pointer;
  font-size: 34px;
  transform: translateY(-50%);
}

.slider-btn.prev {
  left: 22px;
}

.slider-btn.next {
  right: 22px;
}

.slider-dots {
  position: absolute;
  z-index: 3;
  right: clamp(24px, 5vw, 72px);
  bottom: 34px;
  display: flex;
  gap: 10px;
}

.slider-dots button {
  width: 34px;
  height: 4px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.38);
  cursor: pointer;
}

.slider-dots button.active {
  background: #fff;
}

.intro,
.apartments-section,
.contact-strip,
.location-section,
.quick-facts {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

.intro {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 60px;
  padding: 72px 0 34px;
}

.intro h2,
.section-heading h2,
.contact-strip h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 54px);
  line-height: 1.02;
  letter-spacing: 0;
}

.intro > p,
.section-heading > p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.quick-facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  padding: 18px 0 72px;
}

.quick-facts article {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.58);
}

.quick-facts strong {
  display: block;
  color: var(--green);
  font-size: 34px;
}

.quick-facts span {
  color: var(--muted);
}

.apartments-section {
  padding: 70px 0 86px;
  border-top: 1px solid var(--line);
}

.section-heading {
  display: grid;
  grid-template-columns: 1fr 0.72fr;
  gap: 36px;
  align-items: end;
  margin-bottom: 28px;
}

.filters {
  display: grid;
  grid-template-columns: 1fr 1fr 1.25fr 1.4fr auto;
  gap: 12px;
  align-items: end;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 14px 44px rgba(23, 32, 29, 0.07);
}

.filters label,
.request-form label {
  display: grid;
  gap: 7px;
  color: #4d5954;
  font-size: 13px;
  font-weight: 700;
}

.filters select,
.filters input,
.request-form input,
.request-form textarea {
  width: 100%;
  border: 1px solid #d5ddd7;
  border-radius: 8px;
  color: var(--ink);
  background: #fbfcfa;
  outline: 0;
}

.filters select,
.filters input {
  min-height: 46px;
  padding: 0 13px;
}

.filters select:focus,
.filters input:focus,
.request-form input:focus,
.request-form textarea:focus {
  border-color: var(--green-2);
  box-shadow: 0 0 0 3px rgba(47, 122, 94, 0.16);
}

.reset-btn {
  min-height: 46px;
  padding: 0 18px;
  background: #26352f;
}

.catalog-meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin: 18px 0 22px;
  color: var(--muted);
  font-size: 14px;
}

.catalog-meta span:first-child {
  color: var(--ink);
  font-weight: 800;
}

.apartment-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.apartment-card {
  overflow: hidden;
  border: 1px solid rgba(23, 32, 29, 0.1);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 14px 42px rgba(23, 32, 29, 0.08);
}

.apartment-card.is-rented {
  color: #7b8790;
  background: #f0f2f1;
  filter: grayscale(1);
  opacity: 0.74;
}

.apartment-card.is-rented .card-media img {
  opacity: 0.55;
}

.card-media {
  position: relative;
  height: 260px;
  overflow: hidden;
  background: #f7f7f3;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 450ms ease;
}

.apartment-card:hover .card-media img {
  transform: scale(1.045);
}

.status-pill,
.card-badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 10px;
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
}

.status-available {
  background: var(--green-2);
}

.status-reserved {
  background: var(--gold);
}

.status-rented {
  background: #7b8790;
}

.card-body {
  padding: 18px;
}

.card-body h3 {
  margin: 0 0 6px;
  font-size: 22px;
}

.card-body p {
  margin: 0 0 16px;
  color: var(--muted);
  line-height: 1.5;
}

.card-specs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 18px;
}

.card-specs span {
  padding: 9px;
  border-radius: 8px;
  background: #f1f5f1;
  font-size: 13px;
  font-weight: 750;
  text-align: center;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.card-price strong {
  display: block;
  color: var(--green);
  font-size: 23px;
}

.card-price small {
  color: var(--muted);
}

.details-btn {
  flex: 0 0 auto;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--green);
  border-radius: 8px;
  color: var(--green);
  background: #fff;
  cursor: pointer;
  font-weight: 800;
}

.details-btn:hover {
  color: #fff;
  background: var(--green);
}

.details-btn:disabled,
.details-btn:disabled:hover {
  color: #8a9490;
  border-color: #c7d0ca;
  background: #eef1ef;
  cursor: not-allowed;
}

.contact-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 64px;
  padding: 38px;
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(135deg, var(--green), #26352f 70%, var(--clay));
}

.contact-strip .eyebrow {
  color: #f1c77f;
}

.contact-strip h2 {
  max-width: 760px;
}

.contact-strip a {
  flex: 0 0 auto;
  padding: 14px 18px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 8px;
  font-weight: 800;
}

.location-section {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 22px;
  align-items: stretch;
  margin-bottom: 72px;
}

.location-copy {
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: 0 14px 42px rgba(23, 32, 29, 0.08);
}

.location-copy h2 {
  margin: 0 0 22px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.04;
}

.location-copy address {
  margin: 0 0 24px;
  color: #34413c;
  font-style: normal;
  font-size: 19px;
  line-height: 1.7;
}

.map-link {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 16px;
  border: 1px solid var(--green);
  border-radius: 8px;
  color: var(--green);
  font-weight: 800;
}

.map-link:hover {
  color: #fff;
  background: var(--green);
}

.map-frame {
  min-height: 420px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #e5e3df;
  box-shadow: 0 14px 42px rgba(23, 32, 29, 0.08);
}

.map-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 420px;
  border: 0;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
}

.modal[aria-hidden="false"] {
  display: block;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 17, 15, 0.64);
}

.modal-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(320px, 0.82fr);
  width: min(1120px, calc(100% - 32px));
  max-height: calc(100vh - 34px);
  margin: 17px auto;
  overflow: auto;
  border-radius: 10px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: #fff;
  cursor: pointer;
  font-size: 28px;
}

.modal-gallery {
  padding: 18px;
  background: #eef3ef;
}

.modal-gallery > img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
}

.thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 10px;
}

.thumbs button {
  padding: 0;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
}

.thumbs button.active {
  border-color: var(--green);
}

.thumbs img {
  display: block;
  width: 100%;
  aspect-ratio: 1.25;
  object-fit: contain;
  background: #fff;
}

.modal-content {
  padding: 36px;
}

.modal-content h2 {
  margin: 14px 0 12px;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.02;
}

.modal-content p {
  color: var(--muted);
  line-height: 1.65;
}

.spec-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 22px 0;
}

.spec-list div,
.price-block > div {
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfa;
}

.spec-list dt,
.price-block span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.spec-list dd {
  margin: 5px 0 0;
  font-size: 18px;
  font-weight: 800;
}

.price-block {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.price-block strong {
  display: block;
  margin-top: 5px;
  color: var(--green);
  font-size: 20px;
}

.request-form {
  display: grid;
  gap: 13px;
  margin-top: 24px;
  padding: 18px;
  border-radius: 8px;
  background: #f2f5f1;
}

.request-form h3 {
  margin: 0;
  font-size: 22px;
}

.request-form input,
.request-form textarea {
  padding: 12px;
}

.request-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.request-form button {
  min-height: 48px;
}

.request-form .whatsapp-btn {
  color: var(--green);
  border: 1px solid var(--green);
  background: #fff;
}

.request-form .whatsapp-btn:hover {
  color: #fff;
  background: #1f7a4f;
}

.empty-state {
  grid-column: 1 / -1;
  padding: 44px;
  border: 1px dashed #c7d0ca;
  border-radius: 8px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.62);
  text-align: center;
}

@media (max-width: 980px) {
  .nav-links {
    display: none;
  }

  .intro,
  .section-heading,
  .location-section,
  .modal-panel {
    grid-template-columns: 1fr;
  }

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

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

  .reset-btn {
    grid-column: span 2;
  }
}

@media (max-width: 640px) {
  .site-header {
    padding: 12px 14px;
  }

  .brand small,
  .header-cta {
    display: none;
  }

  .hero {
    padding: 8px;
  }

  .slider,
  .slide img {
    min-height: 620px;
  }

  .slide::after {
    background: linear-gradient(0deg, rgba(14, 24, 21, 0.82), rgba(14, 24, 21, 0.16));
  }

  .slide-copy {
    right: 20px;
    bottom: 72px;
    left: 20px;
  }

  .slider-btn {
    top: auto;
    bottom: 18px;
    transform: none;
  }

  .slider-dots {
    right: 22px;
    bottom: 40px;
  }

  .intro,
  .apartments-section,
  .contact-strip,
  .location-section,
  .quick-facts {
    width: min(100% - 24px, 1180px);
  }

  .intro {
    gap: 22px;
    padding-top: 48px;
  }

  .quick-facts,
  .filters,
  .apartment-grid,
  .spec-list,
  .price-block {
    grid-template-columns: 1fr;
  }

  .reset-btn {
    grid-column: auto;
  }

  .catalog-meta,
  .contact-strip {
    flex-direction: column;
    align-items: flex-start;
  }

  .location-copy {
    padding: 24px;
  }

  .map-frame,
  .map-frame iframe {
    min-height: 340px;
  }

  .request-actions {
    grid-template-columns: 1fr;
  }

  .card-media {
    height: 230px;
  }

  .modal-panel {
    width: 100%;
    max-height: 100vh;
    margin: 0;
    border-radius: 0;
  }

  .modal-content {
    padding: 24px 18px 32px;
  }
}
