:root {
  --teal: #0b2c2f;
  --teal-deep: #071c1f;
  --teal-mid: #123a3e;
  --gold: #c9a45c;
  --gold-soft: #d4b06a;
  --gold-dark: #a8843f;
  --white: #ffffff;
  --off-white: #f5f6f7;
  --text: #1a2e30;
  --muted: #5f7275;
  --radius: 10px;
  --shadow: 0 12px 40px rgba(7, 28, 31, 0.12);
  --header-h: 88px;
  --container-max: 1440px;
  --site-gutter: clamp(1.25rem, 2.5vw, 3.5rem);
  --font: "Manrope", "Segoe UI", Tahoma, Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem; /* fixed header clearance for #properties / #contact */
  overflow-x: hidden;
  max-width: 100%;
}

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--off-white);
  line-height: 1.55;
  overflow-x: hidden;
  max-width: 100%;
  width: 100%;
}

body.nav-open {
  overflow: hidden;
}

main {
  width: 100%;
}

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

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

ul {
  list-style: none;
}

button,
select {
  font: inherit;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  padding-left: var(--site-gutter);
  padding-right: var(--site-gutter);
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

/* Header */
.header {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--teal);
  height: var(--header-h);
  border-bottom: 1px solid rgba(201, 164, 92, 0.15);
  width: 100%;
}

@media (min-width: 901px) {
  .header {
    overflow-x: clip;
  }
}

.header__inner {
  height: 100%;
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  align-items: center;
  -webkit-box-pack: justify;
  -webkit-justify-content: space-between;
  justify-content: space-between;
  gap: 1rem;
  box-sizing: border-box;
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
}

/* Force inset on Mac Safari */
.header .container.header__inner {
  padding-left: 2.25rem !important;
  padding-right: 2.25rem !important;
}

.lang-switch {
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  flex-shrink: 0;
  -webkit-box-ordinal-group: 1;
  order: 1;
  margin-left: 0;
}

.lang-switch .lang-btn + .lang-btn {
  margin-left: 0.4rem;
}

.nav {
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
  justify-content: center;
  -webkit-box-align: center;
  -webkit-align-items: center;
  align-items: center;
  -webkit-box-flex: 1;
  -webkit-flex: 1 1 auto;
  flex: 1 1 auto;
  -webkit-box-ordinal-group: 2;
  order: 2;
  min-width: 0;
  max-width: 100%;
  gap: 0;
  margin-left: 0.5rem;
  margin-right: 0.5rem;
}

.lang-btn {
  border: 1px solid var(--gold);
  background: transparent;
  color: var(--gold);
  padding: 0.45rem 0.85rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 600;
  transition: 0.2s ease;
}

.lang-btn.is-active,
.lang-btn:hover {
  background: var(--gold);
  color: var(--teal);
}

.nav > * + * {
  margin-left: 1.6rem;
}

.nav__link {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
  padding: 0.35rem 0.25rem;
  border-bottom: 2px solid transparent;
  letter-spacing: 0.02em;
}

.nav__dropdown {
  position: relative;
  flex-shrink: 0;
}

.nav__link:hover,
.nav__link.is-active {
  color: var(--gold);
}

.nav__link.is-active {
  border-bottom-color: var(--gold);
}

.chevron {
  display: inline-block;
  width: 0;
  height: 0;
  margin-left: 0.4rem;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  vertical-align: middle;
  font-size: 0;
  line-height: 0;
  opacity: 0.85;
}

.nav__menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 180px;
  /* Top padding bridges the visual gap so hover never drops */
  padding: 0.75rem 0 0;
  background: transparent;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  z-index: 20;
}

.nav__menu::before {
  content: "";
  position: absolute;
  inset: 0.75rem 0 0;
  background: var(--white);
  border-radius: 8px;
  box-shadow: var(--shadow);
  z-index: -1;
}

.nav__dropdown:hover .nav__menu,
.nav__dropdown:focus-within .nav__menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.nav__menu a {
  display: block;
  position: relative;
  padding: 0.55rem 0.75rem;
  margin: 0 0.5rem;
  border-radius: 6px;
  color: var(--text);
  font-size: 0.88rem;
}

.nav__menu a:first-child {
  margin-top: 0.5rem;
}

.nav__menu a:last-child {
  margin-bottom: 0.5rem;
}

.nav__menu a:hover {
  background: var(--off-white);
  color: var(--teal);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--gold);
  flex-shrink: 0;
}

.logo--brand {
  -webkit-box-ordinal-group: 3;
  order: 3;
  flex-shrink: 0;
  margin-left: 0;
  margin-right: 0;
}

.logo--brand .logo__icon {
  width: 58px;
  height: auto;
}

.logo--brand .logo__text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
  gap: 0.05rem;
}

.logo__line {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  white-space: nowrap;
}

.logo__line--sub {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
}

.logo__icon {
  width: 52px;
  height: auto;
  flex-shrink: 0;
  display: block;
  object-fit: contain;
}

.logo--footer .logo__icon {
  width: 56px;
}

.logo--footer .logo__text {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1.15;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
}

.menu-toggle span {
  width: 22px;
  height: 2px;
  background: var(--gold);
  display: block;
  transition: 0.2s;
}

/* Hero */
.hero {
  position: relative;
  width: 100%;
  min-height: 85vh;
  max-height: 900px;
  height: 85vh;
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-align: stretch;
  -webkit-align-items: stretch;
  align-items: stretch;
  color: var(--white);
  overflow: hidden;
  background: #050d0f;
}

@supports (height: 100svh) {
  .hero {
    min-height: 85svh;
    height: 85svh;
  }
}

.hero__picture {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.hero__photo {
  width: 100%;
  height: 100%;
  min-width: 100%;
  min-height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center center;
}

.hero__overlay {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background:
    linear-gradient(180deg, rgba(7, 28, 31, 0.35) 0%, transparent 42%),
    linear-gradient(90deg, rgba(7, 28, 31, 0.72) 0%, rgba(7, 28, 31, 0.28) 42%, transparent 68%);
  pointer-events: none;
}

.hero__content {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  width: 100%;
  max-width: var(--container-max);
  height: 100%;
  margin: 0 auto;
  padding: 0;
  box-sizing: border-box;
}

.hero__main {
  position: absolute;
  left: 2.25rem;
  right: auto;
  bottom: 4.25rem; /* closer to search bar */
  max-width: 640px;
  margin: 0;
  animation: fadeUp 0.9s ease both;
}

.hero__brand {
  font-size: clamp(2.5rem, 4.5vw, 3.75rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--white);
  margin-bottom: 0.35rem;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}

.hero__tagline {
  font-size: clamp(1.15rem, 1.8vw, 1.45rem);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.94);
  max-width: 540px;
  margin-inline: 0;
  line-height: 1.55;
  text-shadow: 0 1px 16px rgba(0, 0, 0, 0.3);
}

@media (max-width: 700px) {
  :root {
    --header-h: 76px;
    --site-gutter: 1rem;
  }

  [dir="rtl"] body {
    font-family: Tahoma, "Segoe UI", "Manrope", Arial, sans-serif;
  }

  .hero {
    display: grid;
    grid-template-areas: "stack";
    align-items: stretch;
    justify-items: stretch;
    height: auto;
    min-height: 0;
    max-height: none;
    width: 100%;
    overflow: hidden;
    background: #050d0f;
  }

  .hero > .hero__picture,
  .hero > .hero__overlay,
  .hero > .hero__content {
    grid-area: stack;
  }

  .hero__picture {
    position: relative;
    inset: auto;
    width: 100%;
    height: auto;
    z-index: 0;
  }

  .hero__photo {
    position: relative;
    inset: auto;
    width: 100%;
    height: auto;
    min-width: 0;
    min-height: 0;
    max-width: 100%;
    display: block;
    object-fit: fill;
    object-position: center top;
  }

  .hero__overlay {
    align-self: stretch;
    justify-self: stretch;
    z-index: 1;
    background:
      linear-gradient(180deg, rgba(7, 28, 31, 0.42) 0%, transparent 38%),
      linear-gradient(0deg, rgba(7, 28, 31, 0.2) 0%, transparent 22%);
  }

  .hero__content {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    align-self: stretch;
    z-index: 2;
    width: 100%;
    max-width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
  }

  .hero__main {
    left: 1.25rem;
    right: 1.25rem;
    bottom: 3rem;
    max-width: none;
  }

  [dir="rtl"] .hero__content {
    text-align: right;
  }

  [dir="rtl"] .hero__main {
    left: 1.25rem;
    right: 1.25rem;
  }

  .hero__brand {
    font-size: clamp(1.75rem, 7.5vw, 2.2rem);
    line-height: 1.15;
  }

  .hero__tagline {
    font-size: 1.02rem;
    max-width: 100%;
  }

  .search-wrap {
    margin-top: 0;
  }

  .header__inner {
    gap: 0.5rem;
  }

  .logo--brand {
    gap: 0.2rem;
    transform: translateX(-8px);
  }

  .logo--brand .logo__icon {
    width: 42px;
  }

  .logo__line {
    font-size: 0.72rem;
    letter-spacing: 0.04em;
  }

  .logo__line--sub {
    font-size: 0.54rem;
    letter-spacing: 0.06em;
  }

  .lang-btn {
    padding: 0.3rem 0.5rem;
    font-size: 0.72rem;
  }

  .page-section {
    padding-block: 2.5rem;
    min-height: auto;
  }

  .prose .section__subtitle {
    font-size: 1.05rem;
  }

  .prose p {
    font-size: 0.98rem;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.85rem 1.4rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.92rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: 0.2s ease;
}

.btn--primary {
  background: var(--gold);
  color: var(--teal);
}

.btn--primary:hover {
  background: var(--gold-soft);
  transform: translateY(-1px);
}

.btn--outline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.85);
  color: var(--white);
}

.btn--outline:hover {
  background: rgba(255, 255, 255, 0.1);
}

.btn--search {
  background: var(--gold);
  color: var(--teal);
  border: none;
  border-radius: 8px;
  padding: 0.85rem 1.5rem;
  min-height: 58px;
  font-size: 1rem;
  align-self: end;
}

.btn--search:hover {
  background: var(--gold-soft);
}

/* Search */
.search-wrap {
  margin-top: -2.5rem;
  position: relative;
  z-index: 5;
  padding-bottom: 1rem;
  width: 100%;
}

.search-bar {
  background: var(--white);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 1.25rem 1.35rem;
  display: grid;
  grid-template-columns: repeat(5, 1fr) auto;
  gap: 1rem;
  align-items: end;
  animation: fadeUp 0.7s 0.25s ease both;
}

.search-bar.has-district {
  grid-template-columns: repeat(6, 1fr) auto;
}

.search-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}

.search-field span {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.search-field select,
.search-field input[type="text"] {
  width: 100%;
  border: 1px solid #e2e8e9;
  border-radius: 8px;
  padding: 0.85rem 0.9rem;
  font-size: 0.95rem;
  background: var(--off-white);
  color: var(--text);
  outline: none;
}

.search-field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%235f7275' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 10px;
  padding-right: 1.8rem;
}

.search-field select:focus,
.search-field input[type="text"]:focus {
  border-color: var(--gold);
}

.search-field input[type="text"]::placeholder {
  color: #9aabaf;
}

.search-field--district[hidden] {
  display: none !important;
}

/* Sections */
.section {
  padding: clamp(3.5rem, 5vw, 5rem) 0;
}

.section__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 1.75rem;
}

.section__head h2,
.section__title {
  font-size: clamp(1.85rem, 2.5vw, 2.5rem);
  color: var(--teal);
  font-weight: 800;
}

.section__title {
  text-align: center;
  margin-bottom: 2rem;
}

.link-all {
  color: var(--gold-dark);
  font-weight: 700;
  font-size: 1rem;
}

.link-all:hover {
  color: var(--teal);
}

/* Properties */
.property-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
  align-items: stretch;
}

.property-card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 24px rgba(7, 28, 31, 0.08);
  display: flex;
  flex-direction: column;
  height: 100%;
  min-width: 0;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  animation: fadeUp 0.6s ease both;
  position: relative;
}

.property-card__hit {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.property-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(7, 28, 31, 0.14);
}

/* Fixed image box so Safari/Mac cards stay equal height */
.property-card__media {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 75%; /* 4:3 — works in Safari */
  overflow: hidden;
  background: #dfe5e6;
  flex-shrink: 0;
}

.property-card__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
  transition: transform 0.45s ease;
}

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

.badge {
  position: absolute;
  top: 0.7rem;
  left: 0.7rem;
  background: var(--gold);
  color: var(--teal);
  font-size: 0.68rem;
  font-weight: 800;
  padding: 0.28rem 0.55rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.badge--new {
  left: auto;
  right: 0.7rem;
  background: var(--teal);
  color: var(--gold);
}

.badge--video {
  top: auto;
  bottom: 0.7rem;
  left: 0.7rem;
  background: rgba(7, 28, 31, 0.85);
  color: var(--white);
}

.property-card__body {
  padding: 0.95rem 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.4rem;
}

.property-card__body h3 {
  font-size: 1.08rem;
  color: var(--teal);
  font-weight: 800;
}

.property-card__loc {
  font-size: 0.8rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.property-card__specs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  font-size: 0.75rem;
  color: var(--muted);
  margin: 0.2rem 0;
}

.property-card__specs span {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.property-card__specs svg {
  width: 13px;
  height: 13px;
  color: var(--gold-dark);
}

.property-card__price {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--teal);
  margin-top: auto;
}

.property-card__link {
  position: relative;
  z-index: 2;
  color: var(--gold-dark);
  font-size: 0.82rem;
  font-weight: 700;
  margin-top: 0.25rem;
}

.property-card__link:hover {
  color: var(--teal);
}

.empty-state {
  text-align: center;
  color: var(--muted);
  padding: 2rem;
}

/* Property detail page */
.property-detail {
  background: var(--off-white);
  padding-top: clamp(1.5rem, 3vw, 2.5rem);
}

.property-detail__back {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--teal);
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.property-detail__back:hover {
  color: var(--gold-dark);
}

.property-detail__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(1.5rem, 3vw, 2.75rem);
  align-items: start;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

.detail-gallery__main {
  position: relative;
  width: 100%;
  height: 340px;
  max-height: 340px;
  border-radius: 14px;
  overflow: hidden;
  background: #071c1f;
}

.detail-gallery__main img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
  display: block;
}

.detail-gallery__thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.65rem;
  margin-top: 0.85rem;
}

.detail-thumb {
  position: relative;
  border: 2px solid transparent;
  border-radius: 10px;
  overflow: hidden;
  padding: 0;
  cursor: pointer;
  background: var(--white);
  height: 72px;
}

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

.detail-thumb.is-active {
  border-color: var(--gold);
}

.detail-video {
  margin-top: 1.35rem;
}

.detail-video h2 {
  font-size: 1.05rem;
  color: var(--teal);
  margin-bottom: 0.7rem;
}

.detail-video video {
  width: 100%;
  height: 280px;
  max-height: 280px;
  border-radius: 14px;
  background: #071c1f;
  display: block;
  object-fit: cover;
}

.detail-info {
  background: var(--white);
  border-radius: 14px;
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
  box-shadow: 0 8px 28px rgba(7, 28, 31, 0.08);
}

.detail-info__top {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}

.detail-info .badge {
  position: static;
}

.badge--inline {
  background: var(--teal);
  color: var(--gold);
}

.detail-info h1 {
  font-size: clamp(1.55rem, 2.4vw, 2rem);
  color: var(--teal);
  margin-bottom: 0.45rem;
  line-height: 1.25;
}

.detail-price {
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--gold-dark);
  margin: 0.9rem 0 1.25rem;
}

.detail-info h2 {
  font-size: 1.05rem;
  color: var(--teal);
  margin-bottom: 0.55rem;
}

.detail-desc {
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 1.25rem;
}

.detail-specs {
  display: grid;
  gap: 0.7rem;
  margin-bottom: 1.5rem;
}

.detail-specs li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid rgba(11, 44, 47, 0.08);
  font-size: 0.95rem;
}

.detail-specs strong {
  color: var(--muted);
  font-weight: 600;
}

.detail-specs span {
  color: var(--teal);
  font-weight: 700;
  text-align: end;
}

@media (max-width: 900px) {
  .property-detail__layout {
    grid-template-columns: 1fr;
  }

  .detail-gallery__main {
    height: 260px;
    max-height: 260px;
  }

  .detail-gallery__thumbs {
    grid-template-columns: repeat(3, 1fr);
  }

  .detail-video video {
    height: 220px;
    max-height: 220px;
  }
}

/* Services */
.services {
  background: var(--white);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(1.25rem, 1.8vw, 1.75rem);
}

.service-card {
  background: var(--teal);
  color: var(--white);
  border-radius: 12px;
  padding: clamp(1.35rem, 1.6vw, 1.75rem) clamp(1.1rem, 1.4vw, 1.5rem);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  min-height: 260px;
  min-width: 0;
  transition: transform 0.25s ease, background 0.25s ease;
}

.service-card:hover {
  transform: translateY(-3px);
  background: var(--teal-mid);
}

.service-card__icon {
  width: 52px;
  height: 52px;
  color: var(--gold);
  margin-bottom: 0.35rem;
  flex-shrink: 0;
}

.service-card__icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.service-card h3 {
  font-size: clamp(1.02rem, 1.05vw, 1.2rem);
  font-weight: 800;
  line-height: 1.25;
  overflow-wrap: break-word;
  hyphens: auto;
}

.service-card p {
  font-size: clamp(0.88rem, 0.95vw, 0.98rem);
  color: rgba(255, 255, 255, 0.75);
  flex: 1;
  line-height: 1.55;
}

.service-card a {
  color: var(--gold);
  font-size: 0.92rem;
  font-weight: 700;
  margin-top: 0.4rem;
}

.service-card a:hover {
  color: var(--gold-soft);
}

/* Investments & About prose */
.invest {
  background: var(--teal);
  color: var(--white);
}

.invest .section__title {
  color: var(--white);
}

.about {
  background: var(--teal);
  color: var(--white);
}

.about .section__title {
  color: var(--white);
}

.prose {
  max-width: 760px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
  box-sizing: border-box;
}

.prose .section__title {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 0.65rem;
  width: 100%;
}

.prose .section__subtitle {
  text-align: center;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--gold);
  margin: 0 0 1.5rem;
  line-height: 1.4;
}

.prose p {
  font-size: 1.02rem;
  line-height: 1.75;
  margin-bottom: 1.1rem;
  color: inherit;
}

.page-section {
  min-height: calc(100vh - var(--header-h) - 120px);
  padding-block: 4rem;
}

.invest .prose p {
  color: rgba(255, 255, 255, 0.86);
}

.invest .prose .section__subtitle {
  color: var(--gold);
}

.about .prose p {
  color: rgba(255, 255, 255, 0.86);
}

[dir="rtl"] .prose {
  text-align: right;
}

/* Why */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
}

.why-item {
  text-align: center;
  padding: 0.5rem;
}

.why-item__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.15rem;
  border: 1.5px solid var(--gold);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--gold-dark);
}

.why-item__icon svg {
  width: 30px;
  height: 30px;
}

.why-item h3 {
  font-size: 1.12rem;
  color: var(--teal);
  margin-bottom: 0.5rem;
  font-weight: 800;
}

.why-item p {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.5;
}

.section.why .section__title {
  margin-bottom: 2.75rem;
}

/* Stats */
.stats {
  background: var(--teal);
  color: var(--white);
  padding: clamp(2.75rem, 4.5vw, 3.75rem) 0;
  width: 100%;
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1rem, 2.5vw, 2rem);
  align-items: center;
  justify-items: stretch;
}

.stat {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  justify-content: center;
  width: 100%;
  max-width: none;
  min-width: 0;
}

.stat__icon {
  width: clamp(36px, 3vw, 48px);
  height: clamp(36px, 3vw, 48px);
  color: var(--gold);
  flex-shrink: 0;
}

.stat__icon svg {
  width: 100%;
  height: 100%;
}

.stat strong {
  display: block;
  font-size: clamp(1.35rem, 1.8vw, 1.75rem);
  color: var(--gold);
  font-weight: 800;
  line-height: 1.2;
}

.stat span {
  font-size: clamp(0.85rem, 1vw, 1rem);
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.35;
}

/* Footer — no contact form (per annotation) */
.footer {
  background: var(--teal-deep);
  color: rgba(255, 255, 255, 0.85);
  padding: clamp(3rem, 5vw, 4rem) 0 0;
}

.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.15fr) minmax(0, 1.2fr);
  gap: clamp(2rem, 4vw, 4rem);
  padding-bottom: clamp(2.75rem, 4.5vw, 3.75rem);
  align-items: start;
  justify-items: stretch;
}

.footer .container {
  padding-left: clamp(1.75rem, 5vw, 4.5rem);
  padding-right: clamp(1.75rem, 5vw, 4.5rem);
}

.stats .container {
  padding-left: clamp(1.75rem, 5vw, 4.5rem);
  padding-right: clamp(1.75rem, 5vw, 4.5rem);
}

.footer__col {
  min-width: 0;
}

.footer__col:nth-child(1),
.footer__col:nth-child(2),
.footer__col:nth-child(3),
.footer__brand {
  justify-self: stretch;
  text-align: start;
}

[dir="rtl"] .footer__col:nth-child(1),
[dir="rtl"] .footer__col:nth-child(2),
[dir="rtl"] .footer__col:nth-child(3),
[dir="rtl"] .footer__brand {
  justify-self: stretch;
  text-align: start;
}

[dir="rtl"] .footer__brand .logo {
  justify-content: flex-start;
}

[dir="rtl"] .footer__brand p {
  margin-inline-start: 0;
  margin-inline-end: auto;
}

[dir="rtl"] .socials {
  justify-content: flex-start;
}

.footer__col h3 {
  color: var(--gold);
  font-size: 1.05rem;
  margin-bottom: 1.1rem;
  font-weight: 800;
}

.footer__links li + li,
.footer__contact li + li {
  margin-top: 0.65rem;
}

.footer__links a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer__links a span:first-child {
  color: var(--gold);
  font-size: 1.15rem;
  line-height: 1;
  font-weight: 700;
}

.footer__links a:hover {
  color: var(--gold);
}

.footer__contact li {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  font-size: 0.9rem;
}

.footer__contact svg {
  width: 18px;
  height: 18px;
  color: var(--gold);
  flex-shrink: 0;
  margin-top: 2px;
}

.footer__contact a:hover {
  color: var(--gold);
}

.footer__contact a[href^="tel:"],
.footer__contact a[href*="wa.me"] {
  direction: ltr;
  unicode-bidi: isolate;
}

.footer__brand .logo {
  margin-bottom: 0.9rem;
  justify-content: flex-start;
}

.footer__brand p {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 1.2rem;
  max-width: 320px;
  margin-inline-start: 0;
}

.socials {
  display: flex;
  gap: 0.7rem;
  justify-content: flex-start;
}

.socials a {
  width: 38px;
  height: 38px;
  border: 1.5px solid var(--gold);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--gold);
  transition: 0.2s;
}

.socials a:hover {
  background: var(--gold);
  color: var(--teal);
}

.socials svg {
  width: 16px;
  height: 16px;
}

.socials .icon-tiktok {
  width: 18px;
  height: 18px;
  overflow: visible;
}

.footer__bottom {
  border-top: 1px solid rgba(201, 164, 92, 0.2);
  padding: 1.25rem 0;
  text-align: center;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.55);
}

/* Modal */
.modal[hidden] {
  display: none;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 1.5rem;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 28, 31, 0.7);
  backdrop-filter: blur(3px);
}

.modal__panel {
  position: relative;
  background: var(--white);
  border-radius: 14px;
  width: min(560px, 100%);
  max-height: 90vh;
  overflow: auto;
  box-shadow: var(--shadow);
  animation: fadeUp 0.3s ease;
}

.modal__close {
  position: absolute;
  top: 0.6rem;
  right: 0.75rem;
  z-index: 2;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: rgba(7, 28, 31, 0.55);
  color: white;
  font-size: 1.4rem;
  cursor: pointer;
  line-height: 1;
}

.modal__media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  background: #071c1f;
  overflow: hidden;
}

.modal__media img,
.modal__media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: #071c1f;
}

.modal__media img {
  object-fit: cover;
}

.modal__media video {
  object-fit: contain;
}

.modal__media img[hidden],
.modal__media video[hidden],
.modal__media-tabs[hidden],
.modal__thumbs[hidden] {
  display: none !important;
}

.modal__media-tabs {
  display: flex;
  gap: 0.5rem;
  padding: 0.75rem 0.85rem 0;
}

.modal__tab {
  border: 1px solid rgba(11, 44, 47, 0.15);
  background: var(--off-white);
  color: var(--text);
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}

.modal__tab.is-active {
  background: var(--teal);
  border-color: var(--teal);
  color: var(--white);
}

.modal__thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.45rem;
  padding: 0.65rem 0.85rem 0;
}

.modal__thumb {
  border: 2px solid transparent;
  border-radius: 8px;
  padding: 0;
  overflow: hidden;
  cursor: pointer;
  background: var(--off-white);
  aspect-ratio: 4 / 3;
}

.modal__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.modal__thumb.is-active {
  border-color: var(--gold);
}

.modal__body {
  padding: 1.25rem 1.4rem 1.6rem;
}

.modal__body .badge {
  position: static;
  display: inline-block;
  margin-bottom: 0.5rem;
}

.modal__body h3 {
  font-size: 1.35rem;
  color: var(--teal);
  margin-bottom: 0.3rem;
}

.modal__meta {
  font-size: 0.88rem;
  color: var(--muted);
  margin: 0.4rem 0;
}

.modal__body #modal-desc {
  margin: 0.75rem 0 1.2rem;
  font-size: 0.92rem;
  color: var(--text);
}

/* RTL — keep header layout same as English (lang | nav | logo) */
[dir="rtl"] .header__inner {
  direction: ltr;
}

[dir="rtl"] .nav {
  direction: ltr;
}

[dir="rtl"] .hero__content {
  direction: rtl;
  text-align: right;
}

[dir="rtl"] .hero__main {
  left: auto;
  right: 2.25rem;
}

[dir="rtl"] .hero__tagline {
  margin-inline-start: auto;
  margin-inline-end: 0;
}

[dir="rtl"] .nav__menu {
  left: 50%;
  right: auto;
  transform: translateX(-50%);
}

[dir="rtl"] .footer__links span:first-child {
  display: inline-block;
  transform: scaleX(-1);
}

[dir="rtl"] .search-field {
  text-align: right;
}

[dir="rtl"] .property-card__loc,
[dir="rtl"] .property-card__body,
[dir="rtl"] .modal__body {
  text-align: right;
}

[dir="rtl"] .property-card__specs {
  direction: rtl;
}

[dir="rtl"] .logo__text {
  direction: ltr;
  unicode-bidi: isolate;
}

[dir="rtl"] .search-field select {
  background-position: left 0.75rem center;
  padding-left: 1.8rem;
  padding-right: 0.75rem;
}

/* Responsive */
@media (min-width: 1400px) {
  :root {
    --container-max: 1520px;
    --header-h: 92px;
  }

  .hero__brand {
    font-size: 3.85rem;
  }

  .hero__tagline {
    font-size: 1.5rem;
    max-width: 580px;
  }

  .logo--brand .logo__icon {
    width: 64px;
  }

  .logo__line {
    font-size: 1.12rem;
  }

  .logo__line--sub {
    font-size: 0.84rem;
  }

  .services-grid {
    gap: 1.5rem;
  }

  .service-card {
    min-height: 280px;
  }
}

@media (max-width: 1280px) {
  .header__inner {
    gap: 0.75rem;
  }

  .nav > * + * {
    margin-left: 1.25rem;
  }

  .nav__link {
    font-size: 0.88rem;
  }

  .logo--brand .logo__icon {
    width: 46px;
  }

  .logo__line {
    font-size: 0.86rem;
  }

  .logo__line--sub {
    font-size: 0.62rem;
  }

  .lang-btn {
    padding: 0.38rem 0.65rem;
    font-size: 0.8rem;
  }

  .search-bar,
  .search-bar.has-district {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.85rem;
  }

  .btn--search {
    grid-column: 1 / -1;
  }
}

@media (max-width: 1024px) and (min-width: 901px) {
  .nav > * + * {
    margin-left: 1rem;
  }

  .nav__link {
    font-size: 0.8rem;
  }

  .logo--brand .logo__icon {
    width: 40px;
  }

  .logo__line {
    font-size: 0.76rem;
  }

  .logo__line--sub {
    font-size: 0.54rem;
  }
}

@media (max-width: 1100px) {
  .property-grid,
  .services-grid,
  .why-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  :root {
    --site-gutter: 1rem;
  }

  body.menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
    left: 0;
    right: 0;
    overscroll-behavior: none;
    touch-action: none;
  }

  body.menu-open::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(7, 28, 31, 0.55);
    z-index: 90;
  }

  body.menu-open .header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
  }

  body.menu-open .nav.is-open {
    touch-action: pan-y;
  }

  .menu-toggle {
    display: flex;
    flex-shrink: 0;
    z-index: 110;
    position: relative;
    margin-left: auto;
    -webkit-box-ordinal-group: 4;
    order: 4;
  }

  .header {
    width: 100%;
    max-width: 100%;
    z-index: 110;
  }

  .header__inner {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 0.5rem;
    width: 100%;
    max-width: 100%;
    overflow: visible;
  }

  .header .container.header__inner {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  .lang-switch {
    z-index: 110;
    position: relative;
    order: 1;
  }

  .logo--brand {
    justify-self: center;
    margin-left: 0;
    margin-right: 0.75rem;
    min-width: 0;
    max-width: 100%;
    z-index: 110;
    position: relative;
    gap: 0.22rem;
    transform: translateX(-10px);
    order: 2;
  }

  .logo--brand .logo__icon {
    width: 42px;
  }

  .logo--brand .logo__text {
    min-width: 0;
  }

  .logo__line {
    font-size: 0.78rem;
    letter-spacing: 0.04em;
  }

  .logo__line--sub {
    font-size: 0.58rem;
    letter-spacing: 0.06em;
  }

  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: 100vw;
    flex: none;
    justify-self: auto;
    background: var(--teal-deep);
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem 0 2rem;
    gap: 0;
    transform: translateY(-105%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.28s ease, opacity 0.28s ease, visibility 0.28s ease;
    border-bottom: 1px solid rgba(201, 164, 92, 0.2);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    z-index: 100;
  }

  .nav.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .nav__link {
    display: block;
    width: 100%;
    padding: 1.1rem 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.92) !important;
    font-size: 1.15rem;
    white-space: normal;
  }

  .nav__link.is-active {
    border-bottom-color: rgba(255, 255, 255, 0.08);
  }

  .nav__link.is-active,
  .nav__link:hover {
    color: var(--gold) !important;
  }

  .nav__dropdown {
    display: flex;
    flex-direction: column;
    width: 100%;
  }

  .nav__dropdown > .nav__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    cursor: pointer;
    padding-right: 1.5rem;
    box-sizing: border-box;
  }

  .nav__dropdown .chevron {
    display: inline-block;
    width: 0;
    height: 0;
    margin: 0 0.15rem 0 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 7px solid currentColor;
    border-bottom: none;
    flex-shrink: 0;
    font-size: 0;
    line-height: 0;
    opacity: 0.95;
    transition: transform 0.2s ease;
  }

  .nav__dropdown.is-open .chevron {
    transform: rotate(180deg);
  }

  .nav__menu,
  [dir="rtl"] .nav__menu {
    position: static !important;
    inset: auto !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    transform: none !important;
    display: none;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    background: rgba(0, 0, 0, 0.15) !important;
    box-shadow: none !important;
    min-width: 0 !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    z-index: auto !important;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .nav__dropdown.is-open .nav__menu {
    display: block !important;
    pointer-events: auto !important;
  }

  .nav__menu::before {
    display: none !important;
    content: none !important;
  }

  .nav__menu a,
  [dir="rtl"] .nav__menu a {
    display: block !important;
    position: relative;
    z-index: 2;
    pointer-events: auto !important;
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(201, 164, 92, 0.25);
    width: 100%;
    box-sizing: border-box;
    color: rgba(255, 255, 255, 0.95) !important;
    margin: 0 !important;
    padding: 1rem 1.25rem 1rem 2.25rem !important;
    border-radius: 0 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    text-align: start !important;
    font-size: 1.05rem !important;
    line-height: 1.4 !important;
    background: transparent;
  }

  [dir="rtl"] .nav__menu a {
    padding: 1rem 2.25rem 1rem 1.25rem !important;
  }

  .hero,
  .hero__picture,
  .hero__photo,
  main {
    width: 100%;
    max-width: 100%;
  }

  .hero__content {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .search-wrap {
    padding-left: 1rem;
    padding-right: 1rem;
    width: 100%;
  }

  .search-bar {
    width: 100%;
    max-width: 100%;
  }

  .container {
    max-width: 100%;
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .hero__content.container {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .nav__menu a:hover,
  .nav__menu a:active {
    background: rgba(201, 164, 92, 0.12) !important;
    color: var(--gold) !important;
  }

  .stats__grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem 1rem;
  }

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

  .footer__col:nth-child(1),
  .footer__col:nth-child(2),
  .footer__col:nth-child(3),
  .footer__brand {
    justify-self: stretch;
    text-align: start;
  }

  .footer__brand .logo {
    justify-content: flex-start;
  }

  .footer__brand p {
    margin-inline-start: 0;
  }

  .socials {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  :root {
    --site-gutter: 1rem;
  }

  .hero__content {
    width: 100%;
    max-width: 100%;
  }

  .search-bar,
  .search-bar.has-district {
    grid-template-columns: 1fr;
  }

  .property-grid,
  .services-grid,
  .why-grid {
    grid-template-columns: 1fr;
  }

  .property-card__media {
    padding-bottom: 68.75%; /* 16:11 */
  }

  .modal__media {
    aspect-ratio: 4 / 3;
  }

  .stats__grid,
  .footer__grid {
    grid-template-columns: 1fr;
  }

  .stat {
    justify-content: flex-start;
  }

  .section__head {
    flex-direction: column;
    gap: 0.5rem;
  }
}

@media (min-width: 641px) and (max-width: 900px) {
  .property-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

/* ===== Safari / macOS layout fixes ===== */
.container,
.prose,
.property-detail__layout {
  margin-left: auto;
  margin-right: auto;
}

.invest .prose,
.about .prose {
  display: block;
  width: 100%;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

.invest .prose .section__title,
.about .prose .section__title,
.section__title {
  text-align: center;
}

.menu-toggle {
  -webkit-box-ordinal-group: 4;
  order: 4;
}
