:root {
  --navy: #071827;
  --gold: #c9a45c;
  --white: #f8f5ef;
  --charcoal: #111111;
  --beige: #e8ddcc;
  --muted: #746f68;
  --line: rgba(7, 24, 39, 0.12);
  --shadow: 0 24px 70px rgba(7, 24, 39, 0.18);
  --radius: 8px;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--charcoal);
  background: var(--white);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(232, 221, 204, 0.44), rgba(248, 245, 239, 0.8) 38%),
    var(--white);
}

body.sheet-open,
body.modal-open {
  overflow: hidden;
}

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

button {
  cursor: pointer;
}

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

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-shell {
  min-height: 100vh;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 76px;
  padding: 14px clamp(18px, 5vw, 72px);
  background: rgba(248, 245, 239, 0.88);
  border-bottom: 1px solid rgba(7, 24, 39, 0.08);
  backdrop-filter: blur(18px);
}

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  color: var(--gold);
  background: var(--navy);
  border: 1px solid rgba(201, 164, 92, 0.42);
  border-radius: 50%;
  font-family: Georgia, serif;
  font-size: 15px;
  letter-spacing: 0;
}

.brand strong,
.brand small {
  display: block;
  white-space: nowrap;
}

.brand strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  font-weight: 500;
  color: var(--navy);
}

.brand small {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  color: rgba(7, 24, 39, 0.74);
  font-size: 14px;
}

.desktop-nav a {
  transition: color 180ms ease;
}

.desktop-nav a:hover {
  color: var(--navy);
}

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

.language-control select,
.filter-grid select,
.filter-grid input,
.inquiry-form input,
.inquiry-form select,
.inquiry-form textarea {
  width: 100%;
  color: var(--navy);
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(7, 24, 39, 0.14);
  border-radius: var(--radius);
  outline: none;
}

.language-control select {
  min-height: 38px;
  padding: 0 12px;
}

.header-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 16px;
  color: var(--white);
  background: var(--navy);
  border-radius: 999px;
  font-size: 13px;
}

.app-screen {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(34px, 7vw, 86px) 0;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.98fr) minmax(360px, 0.72fr);
  align-items: center;
  gap: clamp(34px, 6vw, 78px);
  min-height: calc(100vh - 94px);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--navy);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: 0;
}

h1 {
  max-width: 680px;
  font-size: clamp(46px, 8vw, 92px);
  line-height: 0.96;
}

h2 {
  font-size: clamp(32px, 4vw, 54px);
  line-height: 1;
}

h3 {
  font-size: 24px;
}

.hero-subtitle {
  max-width: 650px;
  margin: 22px 0 0;
  color: var(--navy);
  font-size: clamp(20px, 2vw, 27px);
  line-height: 1.28;
}

.hero-text,
.inquiry-copy p,
.property-description,
.city-card p {
  color: var(--muted);
  line-height: 1.7;
}

.hero-text {
  max-width: 660px;
  margin: 20px 0 0;
  font-size: 16px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button,
.text-button,
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  min-height: 46px;
  padding: 0 20px;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.button:hover,
.property-card:hover,
.city-card:hover {
  transform: translateY(-2px);
}

.button.primary {
  color: var(--white);
  background: var(--navy);
  box-shadow: 0 18px 34px rgba(7, 24, 39, 0.18);
}

.button.ghost {
  color: var(--navy);
  background: rgba(201, 164, 92, 0.18);
  border: 1px solid rgba(201, 164, 92, 0.36);
}

.button.quiet {
  color: var(--navy);
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(7, 24, 39, 0.12);
}

.hero-panel {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: var(--navy);
}

.hero-panel::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, transparent 44%, rgba(7, 24, 39, 0.82));
}

.hero-panel img {
  width: 100%;
  height: 100%;
  min-height: 620px;
  object-fit: cover;
}

.hero-property {
  position: absolute;
  right: 28px;
  bottom: 28px;
  left: 28px;
  z-index: 1;
  display: grid;
  gap: 7px;
  color: var(--white);
}

.hero-property span,
.property-tag,
.city-chip {
  width: max-content;
  color: var(--navy);
  background: var(--gold);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero-property strong {
  font-family: Georgia, serif;
  font-size: 28px;
  font-weight: 500;
}

.hero-property small {
  color: rgba(248, 245, 239, 0.78);
}

.mobile-preview {
  display: none;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.filter-trigger {
  display: none;
}

.city-tabs {
  position: sticky;
  top: 76px;
  z-index: 30;
  display: flex;
  gap: 8px;
  padding: 12px 0;
  overflow-x: auto;
  scrollbar-width: none;
  background: rgba(248, 245, 239, 0.94);
  backdrop-filter: blur(18px);
}

.city-tabs::-webkit-scrollbar,
.property-layout::-webkit-scrollbar,
.city-card-track::-webkit-scrollbar,
.modal-gallery::-webkit-scrollbar {
  display: none;
}

.city-tab {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 0 18px;
  color: rgba(7, 24, 39, 0.74);
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(7, 24, 39, 0.12);
  border-radius: 999px;
}

.city-tab.is-active {
  color: var(--white);
  background: var(--navy);
  border-color: var(--navy);
}

.desktop-filter-panel {
  margin: 16px 0 18px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.48);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.filter-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.filter-grid label,
.inquiry-form label {
  display: grid;
  gap: 7px;
  color: rgba(7, 24, 39, 0.7);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.filter-grid select,
.filter-grid input,
.inquiry-form input,
.inquiry-form select,
.inquiry-form textarea {
  min-height: 44px;
  padding: 0 12px;
  font-size: 14px;
  letter-spacing: 0;
  text-transform: none;
}

.inquiry-form textarea {
  min-height: 102px;
  padding-top: 12px;
  resize: vertical;
}

.results-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 14px 0 18px;
  color: var(--muted);
  font-size: 14px;
}

.text-button {
  min-height: 36px;
  padding: 0;
  color: var(--navy);
  background: transparent;
}

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

.property-card,
.city-card,
.cta-card,
.inquiry-form,
.detail-section {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(7, 24, 39, 0.1);
  border-radius: var(--radius);
  box-shadow: 0 18px 48px rgba(7, 24, 39, 0.08);
}

.property-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.property-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--beige);
}

.property-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease;
}

.property-card:hover img {
  transform: scale(1.035);
}

.property-badges {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.property-tag.sale {
  color: var(--white);
  background: rgba(7, 24, 39, 0.88);
}

.property-body {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.property-title-row {
  display: grid;
  gap: 6px;
}

.property-title-row h3 {
  font-size: 22px;
  line-height: 1.16;
}

.property-location {
  color: var(--muted);
  font-size: 14px;
}

.property-price {
  color: var(--navy);
  font-size: 20px;
  font-weight: 700;
}

.property-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.property-facts span,
.detail-facts span {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 9px;
  color: var(--navy);
  background: rgba(232, 221, 204, 0.5);
  border-radius: var(--radius);
  font-size: 12px;
}

.property-facts strong,
.detail-facts strong {
  font-size: 14px;
}

.property-description {
  min-height: 76px;
  margin: 0;
  font-size: 14px;
}

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

.card-actions .button {
  min-height: 42px;
  padding: 0 12px;
  font-size: 13px;
}

.city-card-track {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.city-card {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  isolation: isolate;
  transition: transform 180ms ease;
}

.city-card img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.city-card::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background: linear-gradient(180deg, rgba(7, 24, 39, 0.04), rgba(7, 24, 39, 0.84));
}

.city-card-content {
  position: absolute;
  right: 20px;
  bottom: 20px;
  left: 20px;
  display: grid;
  gap: 12px;
  color: var(--white);
}

.city-card h3 {
  color: var(--white);
}

.city-card p {
  margin: 0;
  color: rgba(248, 245, 239, 0.82);
  font-size: 14px;
}

.city-card .button {
  width: max-content;
  min-height: 40px;
  color: var(--navy);
  background: var(--white);
}

.inquiry-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(360px, 1fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: start;
}

.inquiry-copy {
  position: sticky;
  top: 112px;
  display: grid;
  gap: 20px;
}

.inquiry-copy p {
  max-width: 540px;
  margin: 0;
}

.cta-card {
  display: grid;
  gap: 12px;
  max-width: 480px;
  padding: 22px;
}

.cta-card span {
  color: var(--muted);
  line-height: 1.55;
}

.cta-card .button {
  width: max-content;
}

.inquiry-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 22px;
}

.wide {
  grid-column: 1 / -1;
}

.floating-whatsapp {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 38;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 20px;
  color: var(--white);
  background: #164f3b;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  box-shadow: 0 16px 34px rgba(22, 79, 59, 0.28);
  font-weight: 700;
}

.bottom-tabs {
  display: none;
}

.sheet,
.modal {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: none;
}

.sheet.is-open,
.modal.is-open {
  display: block;
}

.sheet-backdrop,
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 24, 39, 0.56);
}

.sheet-panel {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  max-height: 86vh;
  padding: 10px 18px 22px;
  overflow-y: auto;
  background: var(--white);
  border-radius: 22px 22px 0 0;
  box-shadow: var(--shadow);
}

.sheet-handle {
  width: 44px;
  height: 4px;
  margin: 0 auto 14px;
  background: rgba(7, 24, 39, 0.2);
  border-radius: 999px;
}

.sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.icon-button,
.modal-close {
  min-height: 36px;
  padding: 0 12px;
  color: var(--navy);
  background: rgba(232, 221, 204, 0.56);
  border: 1px solid rgba(7, 24, 39, 0.1);
}

.modal-panel {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(1060px, calc(100vw - 36px));
  max-height: min(88vh, 920px);
  overflow-y: auto;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transform: translate(-50%, -50%);
}

.modal-close {
  position: sticky;
  top: 12px;
  left: calc(100% - 84px);
  z-index: 2;
  margin: 12px 12px 0 auto;
  border-radius: 999px;
}

.modal-detail {
  padding: 0 24px 28px;
}

.modal-gallery {
  display: grid;
  grid-auto-columns: minmax(260px, 1fr);
  grid-auto-flow: column;
  gap: 10px;
  overflow-x: auto;
  margin: 0 -4px 22px;
}

.modal-gallery img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--radius);
}

.detail-title {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: start;
  margin-bottom: 18px;
}

.detail-title h2 {
  font-size: clamp(30px, 4vw, 48px);
}

.detail-title p {
  margin: 10px 0 0;
  color: var(--muted);
}

.detail-price {
  color: var(--navy);
  font-size: 24px;
  font-weight: 800;
  white-space: nowrap;
}

.detail-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.detail-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin: 18px 0;
}

.detail-tabs button {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 0 14px;
  color: var(--navy);
  background: rgba(232, 221, 204, 0.54);
  border: 1px solid rgba(7, 24, 39, 0.1);
  border-radius: 999px;
}

.detail-tabs button.is-active {
  color: var(--white);
  background: var(--navy);
}

.detail-section {
  display: none;
  padding: 18px;
}

.detail-section.is-active {
  display: block;
}

.detail-section p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.feature-list,
.landmark-list,
.similar-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.feature-list li,
.landmark-list li,
.similar-list li,
.video-map {
  padding: 12px;
  color: var(--navy);
  background: rgba(232, 221, 204, 0.46);
  border-radius: var(--radius);
}

.video-map {
  display: grid;
  gap: 8px;
}

[dir="rtl"] .brand,
[dir="rtl"] .header-actions,
[dir="rtl"] .desktop-nav,
[dir="rtl"] .hero-actions,
[dir="rtl"] .section-heading,
[dir="rtl"] .results-meta,
[dir="rtl"] .sheet-header,
[dir="rtl"] .detail-title {
  direction: rtl;
}

@media (max-width: 980px) {
  .property-layout,
  .city-card-track,
  .filter-grid,
  .detail-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    min-height: 420px;
  }

  .hero-panel img {
    min-height: 420px;
  }

  .desktop-nav {
    display: none;
  }
}

@media (max-width: 720px) {
  body {
    min-height: 100dvh;
    overflow: hidden;
    background: var(--white);
  }

  .site-shell {
    height: 100dvh;
    overflow: hidden;
  }

  .topbar {
    min-height: 64px;
    padding: 10px 14px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .brand strong {
    font-size: 16px;
  }

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

  .language-control select {
    max-width: 124px;
    min-height: 36px;
    padding: 0 8px;
    font-size: 12px;
  }

  main {
    height: calc(100dvh - 64px);
    overflow: hidden;
  }

  .app-screen {
    display: none;
    width: 100%;
    height: calc(100dvh - 64px);
    margin: 0;
    padding: 18px 14px 104px;
    overflow-y: auto;
    animation: screenIn 220ms ease;
  }

  .app-screen.is-active {
    display: block;
  }

  @keyframes screenIn {
    from {
      opacity: 0;
      transform: translateY(8px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .hero {
    display: flex;
    min-height: auto;
    gap: 16px;
    flex-direction: column;
  }

  h1 {
    font-size: clamp(42px, 15vw, 62px);
    line-height: 0.98;
  }

  h2 {
    font-size: 32px;
  }

  .hero-subtitle {
    margin-top: 16px;
    font-size: 19px;
  }

  .hero-text {
    display: -webkit-box;
    margin-top: 12px;
    overflow: hidden;
    font-size: 14px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 9px;
    margin-top: 20px;
  }

  .button {
    width: 100%;
    min-height: 46px;
  }

  .hero-panel {
    min-height: 230px;
    width: 100%;
  }

  .hero-panel img {
    min-height: 230px;
  }

  .hero-property {
    right: 16px;
    bottom: 16px;
    left: 16px;
  }

  .hero-property strong {
    font-size: 22px;
  }

  .mobile-preview {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-top: 12px;
  }

  .mini-stat {
    min-width: 0;
    margin: 0;
    padding: 12px 8px;
    background: rgba(232, 221, 204, 0.44);
    border: 1px solid rgba(7, 24, 39, 0.08);
    border-radius: var(--radius);
  }

  .mini-stat span {
    color: var(--navy);
    font-weight: 800;
  }

  .mini-stat p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.25;
  }

  .section-heading {
    align-items: center;
    margin-bottom: 12px;
  }

  .filter-trigger {
    display: inline-flex;
    width: auto;
    min-height: 40px;
    padding: 0 16px;
  }

  .city-tabs {
    top: 0;
    margin: 0 -14px;
    padding: 10px 14px;
  }

  .city-tab {
    min-height: 38px;
    padding: 0 15px;
    font-size: 13px;
  }

  .desktop-filter-panel {
    display: none;
  }

  .results-meta {
    margin: 8px 0 12px;
  }

  .property-layout {
    display: grid;
    grid-auto-columns: minmax(296px, 84vw);
    grid-auto-flow: column;
    grid-template-columns: none;
    gap: 12px;
    margin: 0 -14px;
    padding: 0 14px 10px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .property-card {
    scroll-snap-align: start;
  }

  .property-media {
    aspect-ratio: 1.12 / 1;
  }

  .property-body {
    gap: 10px;
    padding: 14px;
  }

  .property-title-row h3 {
    font-size: 20px;
  }

  .property-description {
    min-height: 62px;
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }

  .card-actions {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .city-card-track {
    display: grid;
    grid-auto-columns: minmax(286px, 82vw);
    grid-auto-flow: column;
    grid-template-columns: none;
    gap: 12px;
    margin: 12px -14px 0;
    padding: 0 14px 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .city-card {
    min-height: 64vh;
    scroll-snap-align: start;
  }

  .inquiry-layout {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .inquiry-copy {
    position: static;
    gap: 12px;
  }

  .inquiry-copy p {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }

  .cta-card {
    max-width: none;
    padding: 16px;
  }

  .cta-card .button {
    width: 100%;
  }

  .inquiry-form {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 16px;
  }

  .inquiry-form input,
  .inquiry-form select {
    min-height: 42px;
  }

  .floating-whatsapp {
    right: 14px;
    bottom: 82px;
    z-index: 45;
    min-height: 44px;
    padding: 0 16px;
    font-size: 13px;
  }

  .bottom-tabs {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 44;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 4px;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
    background: rgba(248, 245, 239, 0.96);
    border-top: 1px solid rgba(7, 24, 39, 0.1);
    backdrop-filter: blur(18px);
  }

  .bottom-tabs button {
    display: grid;
    place-items: center;
    min-width: 0;
    min-height: 50px;
    color: rgba(7, 24, 39, 0.64);
    background: transparent;
    border: 0;
    border-radius: var(--radius);
    font-size: 12px;
    font-weight: 700;
  }

  .bottom-tabs button.is-active {
    color: var(--white);
    background: var(--navy);
  }

  .sheet-panel {
    max-height: 82dvh;
  }

  .sheet-panel .filter-grid {
    grid-template-columns: 1fr 1fr;
    margin-bottom: 18px;
  }

  .modal-panel {
    top: auto;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    max-height: 88dvh;
    border-radius: 22px 22px 0 0;
    transform: none;
  }

  .modal-detail {
    padding: 0 14px 24px;
  }

  .modal-close {
    top: 10px;
    margin-right: 12px;
  }

  .modal-gallery {
    grid-auto-columns: 84%;
    margin-bottom: 16px;
  }

  .detail-title {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .detail-price {
    font-size: 21px;
  }

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

  .feature-list,
  .landmark-list,
  .similar-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 390px) {
  .brand strong {
    max-width: 128px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .language-control select {
    max-width: 104px;
  }

  .property-layout {
    grid-auto-columns: minmax(278px, 86vw);
  }

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

  .sheet-panel .filter-grid {
    grid-template-columns: 1fr;
  }
}
