/* ═══ Golden Palm — Luxury Properties UI ═══ */

:root {
  --navy: #0a1628;
  --navy-deep: #060e1a;
  --emerald: #0e2a20;
  --emerald-glow: rgba(16, 72, 55, 0.45);
}

.page-content--lux {
  background: linear-gradient(180deg, var(--navy-deep) 0%, var(--bg) 24%, var(--bg) 100%);
}

.lux-preview-banner {
  max-width: var(--max-w, 1280px);
  margin: 0 auto;
  padding: 12px 20px;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 500;
  color: #5c3d00;
  background: #fff3cd;
  border-bottom: 1px solid rgba(154, 123, 79, 0.35);
}

.page-hero--lux {
  padding-bottom: 24px;
}

/* Category pages hero — full-bleed video/image + glass text panel (off-plan, ready, rent) */
.page-hero.page-hero--category,
.page-hero.page-hero--off-plan {
  position: relative;
  max-width: none;
  margin: 0;
  padding: 0;
  min-height: clamp(420px, 68vh, 720px);
  border-bottom: 1px solid rgba(212, 175, 75, 0.2);
  background: var(--navy-deep);
  overflow: hidden;
  isolation: isolate;
}

.page-hero.page-hero--category::before,
.page-hero.page-hero--off-plan::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background: center center / cover no-repeat;
  background-image: var(--category-hero-image, url('../images/offplan/off-plan-hero.png'));
  pointer-events: none;
}

.page-hero.page-hero--category--ready::before {
  background-image: var(--category-hero-image, url('../images/offplan/ready-hero.png'));
}

.page-hero.page-hero--category--rent::before {
  background-image: var(--category-hero-image, url('../images/categories/rent.png'));
}

.page-hero.page-hero--category--off_plan::before {
  background-image: var(--category-hero-image, url('../images/offplan/off-plan-hero.png'));
}

.page-hero.page-hero--category--video::before,
.page-hero.page-hero--off-plan.page-hero--off-plan--video::before {
  z-index: 0;
}

.page-hero.page-hero--category .category-hero-video,
.page-hero.page-hero--off-plan .off-plan-hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 1;
  pointer-events: none;
}

.page-hero.page-hero--category::after,
.page-hero.page-hero--off-plan::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(4, 18, 12, 0.18) 0%, rgba(4, 18, 12, 0.42) 58%, rgba(4, 18, 12, 0.72) 100%);
}

.page-hero.page-hero--category--video::after,
.page-hero.page-hero--off-plan.page-hero--off-plan--video::after {
  background:
    linear-gradient(90deg, rgba(4, 18, 12, 0.28) 0%, rgba(4, 18, 12, 0.08) 42%, transparent 72%),
    linear-gradient(180deg, rgba(4, 18, 12, 0.08) 0%, rgba(4, 18, 12, 0.45) 100%);
}

.page-hero.page-hero--category .category-hero__content,
.page-hero.page-hero--off-plan .off-plan-hero__content {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding:
    calc(var(--nav-h) + clamp(20px, 3vw, 32px))
    clamp(24px, 5vw, 48px)
    clamp(40px, 6vw, 72px);
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
  pointer-events: none;
}

.category-hero__panel,
.off-plan-hero__panel {
  max-width: min(640px, 100%);
  pointer-events: auto;
}

.category-hero__panel--glass,
.off-plan-hero__panel--glass {
  position: relative;
  padding: clamp(24px, 3.5vw, 36px) clamp(28px, 3.5vw, 40px);
  background: rgba(8, 28, 22, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-inline-start: 3px solid rgba(212, 175, 75, 0.8);
  border-radius: 8px;
  backdrop-filter: blur(26px) saturate(1.45);
  -webkit-backdrop-filter: blur(26px) saturate(1.45);
  box-shadow:
    0 24px 64px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.category-hero__panel--glass::before,
.off-plan-hero__panel--glass::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.1) 0%, transparent 55%);
  pointer-events: none;
}

.category-hero__panel--glass > *,
.off-plan-hero__panel--glass > * {
  position: relative;
  z-index: 1;
}

.category-hero__title,
.off-plan-hero__title {
  margin-top: 10px;
}

.category-hero__desc,
.off-plan-hero__desc {
  margin-top: 14px;
  max-width: 52ch;
  line-height: 1.7;
}

.page-hero.page-hero--category .category-hero__content .eyebrow,
.page-hero.page-hero--category .category-hero__content .section-title,
.page-hero.page-hero--category .category-hero__content .section-desc,
.page-hero.page-hero--off-plan .off-plan-hero__content .eyebrow,
.page-hero.page-hero--off-plan .off-plan-hero__content .section-title,
.page-hero.page-hero--off-plan .off-plan-hero__content .section-desc {
  opacity: 1 !important;
  transform: none !important;
  visibility: visible !important;
}

.page-hero.page-hero--category .category-hero__content .section-title,
.page-hero.page-hero--category .category-hero__content .section-desc,
.page-hero.page-hero--off-plan .off-plan-hero__content .section-title,
.page-hero.page-hero--off-plan .off-plan-hero__content .section-desc {
  color: #fff;
  text-shadow: none;
}

.page-hero.page-hero--category .category-hero__content .section-desc,
.page-hero.page-hero--off-plan .off-plan-hero__content .section-desc {
  color: rgba(255, 255, 255, 0.94);
}

.page-hero.page-hero--category .category-hero__content .eyebrow--gold,
.page-hero.page-hero--off-plan .off-plan-hero__content .eyebrow--gold {
  color: var(--gold-mid);
}

@media (max-width: 768px) {
  .page-hero.page-hero--category,
  .page-hero.page-hero--off-plan {
    min-height: clamp(380px, 72vh, 560px);
  }

  .page-hero.page-hero--category .category-hero__content,
  .page-hero.page-hero--off-plan .off-plan-hero__content {
    align-items: flex-end;
  }

  .category-hero__panel--glass,
  .off-plan-hero__panel--glass {
    max-width: 100%;
  }
}

/* Ready category hero */
.page-hero--ready {
  position: relative;
  max-width: none;
  margin: 0;
  min-height: clamp(300px, 42vh, 440px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-top: var(--nav-h);
  padding-bottom: clamp(40px, 6vw, 64px);
  border-bottom-color: rgba(212, 175, 75, 0.2);
  background: var(--navy-deep);
  overflow: hidden;
  isolation: isolate;
}

.page-hero--ready::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../images/offplan/ready-hero.png') center center / cover no-repeat;
  opacity: 0.45;
  pointer-events: none;
  z-index: 0;
}

.page-hero--ready::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(6, 14, 26, 0.92) 0%, rgba(6, 14, 26, 0.78) 42%, rgba(14, 42, 32, 0.55) 100%),
    linear-gradient(180deg, rgba(6, 14, 26, 0.35) 0%, rgba(6, 14, 26, 0.88) 100%);
  pointer-events: none;
  z-index: 1;
}

.page-hero--ready > * {
  position: relative;
  z-index: 2;
  max-width: var(--max-w);
  margin-inline: auto;
  width: 100%;
  padding-inline: clamp(24px, 5vw, 48px);
}

.page-hero--ready .section-title,
.page-hero--ready .section-desc {
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.45);
}

.eyebrow--gold {
  color: var(--gold-mid);
}

.section--lux {
  padding-top: 0;
}

/* Category listing strip — always above hero video, never hidden by reveal */
.section--category-listing {
  position: relative;
  z-index: 5;
  max-width: none;
  margin-top: 0;
  padding-top: clamp(24px, 4vw, 40px);
  background: linear-gradient(180deg, var(--navy-deep) 0%, var(--bg) 18%);
  border-top: 1px solid rgba(212, 175, 75, 0.12);
  box-shadow: 0 -16px 48px rgba(4, 10, 8, 0.45);
}

.section--category-listing > * {
  max-width: var(--max-w);
  margin-inline: auto;
}

.lux-back-nav,
.lux-cat-nav {
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
}

.lux-back-nav .property-back {
  color: rgba(255, 255, 255, 0.72);
}

.lux-back-nav .property-back:hover {
  color: var(--gold-light);
}

/* ── Category gateway cards (reference: 2-up portfolio tiles) ── */
.lux-categories {
  margin-bottom: 56px;
}

.lux-categories__grid {
  display: grid;
  gap: clamp(20px, 3vw, 32px);
}

.lux-categories__grid--duo {
  grid-template-columns: repeat(2, 1fr);
}

.lux-categories__grid--trio {
  grid-template-columns: repeat(3, 1fr);
}

.lux-cat-card {
  position: relative;
  display: block;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  aspect-ratio: 4 / 5;
  min-height: clamp(380px, 52vh, 520px);
  border: 1px solid rgba(212, 175, 75, 0.22);
  border-radius: 0;
  overflow: hidden;
  background: var(--navy-deep);
  transition: border-color 0.4s ease, box-shadow 0.5s var(--ease);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
}

.lux-cat-card:hover {
  border-color: rgba(212, 175, 75, 0.55);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.55);
}

.lux-cat-card.is-active {
  border-color: var(--gold-mid);
  box-shadow: 0 0 0 1px var(--gold-mid), 0 28px 72px rgba(0, 0, 0, 0.5);
}

.lux-cat-card__media {
  position: absolute;
  inset: 0;
}

.lux-cat-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 1.4s var(--ease);
}

.lux-cat-card:hover .lux-cat-card__media img {
  transform: scale(1.05);
}

.lux-cat-card__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(6, 14, 26, 0.15) 0%, rgba(6, 14, 26, 0.42) 55%, rgba(6, 14, 26, 0.72) 100%),
    rgba(6, 14, 26, 0.28);
}

.lux-cat-card__body {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 12px;
  padding: clamp(28px, 5vw, 44px);
  padding-bottom: clamp(88px, 14vw, 120px);
  pointer-events: none;
}

.lux-cat-card__label {
  margin: 0;
  max-width: 11em;
  white-space: pre-line;
  font-family: var(--fDis), 'Playfair Display', Georgia, serif;
  font-size: clamp(1.75rem, 3.2vw, 2.65rem);
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  line-height: 1.08;
  text-shadow: 0 2px 28px rgba(0, 0, 0, 0.55);
}

.lux-cat-card__count {
  margin: 0;
  font-family: var(--fBody), 'Neue Haas Grotesk', system-ui, sans-serif;
  font-size: clamp(0.8rem, 1.1vw, 0.9rem);
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: none;
  color: rgba(255, 255, 255, 0.88);
}

.lux-cat-card__arrow {
  position: absolute;
  z-index: 3;
  inset-block-end: clamp(28px, 5vw, 44px);
  inset-inline-start: clamp(28px, 5vw, 44px);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(212, 175, 75, 0.65);
  color: var(--gold-light);
  background: transparent;
  transition: background 0.35s ease, border-color 0.35s ease;
  pointer-events: none;
}

.lux-cat-card:hover .lux-cat-card__arrow {
  background: rgba(212, 175, 75, 0.15);
  border-color: var(--gold-light);
}

html[lang="ar"] .lux-cat-card__arrow svg {
  transform: scaleX(-1);
}

/* ── Category tabs (listing pages) ── */
.lux-cat-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 36px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.lux-cat-nav__link {
  padding: 12px 22px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(212, 175, 75, 0.22);
  background: rgba(6, 16, 28, 0.88);
  transition: color 0.25s, border-color 0.25s, background 0.25s;
}

.lux-cat-nav__link:hover {
  color: var(--gold-light);
  border-color: rgba(212, 175, 75, 0.35);
}

.lux-cat-nav__link.is-active {
  color: var(--text-inverse);
  background: linear-gradient(135deg, var(--gold-dark), var(--gold-mid));
  border-color: var(--gold-mid);
}

/* ── Category listing search ── */
.lux-listing-search {
  margin-top: 28px;
  max-width: 520px;
}

.lux-listing-search__label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 10px;
}

.lux-listing-search__field {
  position: relative;
  display: flex;
  align-items: center;
}

.lux-listing-search__icon {
  position: absolute;
  left: 16px;
  color: var(--text-soft);
  pointer-events: none;
}

[dir="rtl"] .lux-listing-search__icon {
  left: auto;
  right: 16px;
}

.lux-listing-search__input {
  width: 100%;
  padding: 14px 44px 14px 46px;
  font-family: var(--fBody);
  font-size: 15px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 2px;
  outline: none;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

[dir="rtl"] .lux-listing-search__input {
  padding: 14px 46px 14px 44px;
}

.lux-listing-search__input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.lux-listing-search__input:focus {
  border-color: var(--gold-mid);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 0 3px rgba(201, 169, 110, 0.12);
}

.lux-listing-search__input::-webkit-search-cancel-button {
  display: none;
}

.lux-listing-search__clear {
  position: absolute;
  right: 10px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  line-height: 1;
  color: var(--text-soft);
  background: transparent;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
}

[dir="rtl"] .lux-listing-search__clear {
  right: auto;
  left: 10px;
}

.lux-listing-search__clear:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}

.lux-listing-search__no-results {
  margin-top: 12px;
  font-size: 14px;
  color: var(--text-soft);
}

.lux-listing-card[hidden] {
  display: none !important;
}

.lux-listings-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.lux-listings-head__title {
  font-family: var(--fDis);
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 400;
  letter-spacing: -0.02em;
}

.lux-listings-head__count {
  font-size: 13px;
  color: var(--text-soft);
}

.lux-cat-card:hover .lux-cat-card__shine { opacity: 1; }

/* ── Listing grid ── */
.lux-listings-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 32px);
  margin-top: 48px;
}

.lux-listing-card {
  background: rgba(10, 22, 40, 0.65);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(212, 175, 75, 0.12);
  overflow: hidden;
  transition: border-color 0.35s, box-shadow 0.45s var(--ease), transform 0.45s var(--ease);
}

.lux-listing-card:hover {
  border-color: rgba(212, 175, 75, 0.32);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
  transform: translateY(-4px);
}

.lux-listing-card__media {
  display: block;
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.lux-listing-card__media-placeholder {
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, #0f1f35 0%, #1a2d4a 50%, #0a1628 100%);
}

.lux-listing-card__media .prop-bg,
.lux-listing-card__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease);
}

.lux-listing-card:hover .lux-listing-card__media .prop-bg,
.lux-listing-card:hover .lux-listing-card__media img {
  transform: scale(1.06);
}

.lux-listing-card__title a > span.ar,
.lux-listing-card__title a > span.en {
  display: none;
}

html[data-lang="ar"] .lux-listing-card__title a > span.ar {
  display: inline;
}

html[data-lang="en"] .lux-listing-card__title a > span.en {
  display: inline;
}

.lux-listing-card__badge {
  position: absolute;
  top: 14px;
  inset-inline-start: 14px;
  z-index: 2;
  padding: 6px 12px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: rgba(5, 24, 16, 0.75);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(212, 175, 75, 0.3);
  color: var(--gold-light);
}

.lux-badge--rent { color: #b8e0d0; border-color: rgba(100, 180, 150, 0.4); }
.lux-badge--off-plan { color: var(--gold-light); }

.lux-listing-card__body {
  padding: 22px 24px 26px;
}

.lux-listing-card__type {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-mid);
  display: block;
  margin-bottom: 8px;
}

.lux-listing-card__title {
  font-family: var(--fDis);
  font-size: 1.35rem;
  font-weight: 400;
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}

.lux-listing-card__title a {
  color: var(--text);
  transition: color 0.25s;
}

.lux-listing-card__title a:hover { color: var(--gold-light); }

.lux-listing-card__loc {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.lux-listing-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 12px;
  color: var(--text-soft);
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
}

.lux-listing-card__meta strong {
  color: var(--gold-light);
  font-weight: 600;
}

.lux-listing-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.lux-listing-card__price {
  font-family: var(--fDis);
  font-size: 1.1rem;
  color: var(--gold-light);
}

.lux-listing-card__cta {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-mid);
  padding: 8px 0;
  border-bottom: 1px solid transparent;
  transition: color 0.25s, border-color 0.25s;
}

.lux-listing-card__cta:hover {
  color: var(--gold-light);
  border-bottom-color: var(--gold-mid);
}

.lux-back-nav { margin-bottom: 28px; }

.lux-cta-strip {
  margin-top: 72px;
  padding: 40px clamp(24px, 5vw, 48px);
  text-align: center;
  background: linear-gradient(135deg, var(--navy) 0%, var(--emerald) 100%);
  border: 1px solid var(--border);
}

.lux-cta-strip__text {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 24px;
  max-width: 520px;
  margin-inline: auto;
}

.btn-gold--lg {
  padding: 16px 36px;
  font-size: 12px;
}

/* ── Property detail ── */
.lux-detail-hero {
  padding: calc(var(--nav-h) + 12px) 0 0;
  max-width: none;
  margin: 0;
}

.lux-detail-hero > .property-back,
.lux-detail-hero__grid {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: clamp(24px, 5vw, 48px);
}

.lux-detail-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: clamp(32px, 5vw, 56px);
  align-items: start;
}

.lux-detail-hero > .property-back {
  display: inline-block;
  margin-bottom: 16px;
}

.lux-gallery {
  margin-bottom: 32px;
  width: 100%;
}

.lux-gallery__main {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-block: 1px solid var(--border);
  background: var(--navy-deep);
}

.lux-gallery__slide {
  display: none;
  width: 100%;
  line-height: 0;
}

.lux-gallery__slide.is-active {
  display: block;
}

.lux-gallery__slide .prop-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
}

.lux-gallery__slide .lux-gallery__img {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(72vh, 760px);
  margin-inline: auto;
  object-fit: contain;
  object-position: center;
  background: var(--navy-deep);
}

.lux-gallery__thumb .lux-gallery__img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: contain;
  object-position: center;
  background: var(--navy-deep);
}

.lux-gallery__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(to top, rgba(6, 14, 26, 0.5), transparent 50%);
  pointer-events: none;
}

.lux-gallery__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(212, 175, 75, 0.4);
  background: rgba(6, 14, 26, 0.6);
  backdrop-filter: blur(8px);
  color: var(--gold-light);
  font-size: 28px;
  cursor: pointer;
  transition: background 0.25s;
}

.lux-gallery__nav:hover { background: rgba(212, 175, 75, 0.2); }
.lux-gallery__nav--prev { inset-inline-start: 16px; }
.lux-gallery__nav--next { inset-inline-end: 16px; }

.lux-gallery__thumbs {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.lux-gallery__thumb {
  flex: 0 0 72px;
  width: 72px;
  height: 72px;
  aspect-ratio: 1 / 1;
  border: 2px solid transparent;
  overflow: hidden;
  cursor: pointer;
  opacity: 0.65;
  transition: opacity 0.25s, border-color 0.25s;
  padding: 0;
  background: none;
}

.lux-gallery__thumb.is-active,
.lux-gallery__thumb:hover {
  opacity: 1;
  border-color: var(--gold-mid);
}

.lux-gallery__thumb .prop-bg {
  width: 100%;
  height: 100%;
}

.lux-detail-hero__info {
  grid-column: 1;
  min-width: 0;
}

.lux-detail-loc {
  font-size: 15px;
  color: var(--text-muted);
  margin: 8px 0 16px;
}

.lux-detail-price {
  font-family: var(--fDis);
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--gold-light);
  margin-bottom: 8px;
}

.lux-detail-handover {
  font-size: 14px;
  color: var(--text-soft);
}

.lux-detail-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: clamp(32px, 5vw, 56px);
  align-items: start;
  max-width: var(--max-w);
  margin: 0 auto;
  padding-inline: clamp(24px, 5vw, 48px);
}

.lux-specs {
  margin-bottom: 28px;
}

.property-specs.lux-specs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 132px), 1fr));
  gap: 16px;
}

.property-specs.lux-specs .property-spec {
  box-sizing: border-box;
  min-width: 0;
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  overflow: hidden;
}

.property-specs.lux-specs .property-spec__value {
  display: block;
  max-width: 100%;
  font-family: var(--fDis);
  font-size: clamp(1.25rem, 2.6vw, 1.85rem);
  font-weight: 600;
  color: var(--gold-mid);
  line-height: 1.15;
  margin: 0 0 6px;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.property-specs.lux-specs .property-spec--text .property-spec__value {
  font-size: clamp(0.95rem, 2vw, 1.2rem);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: 0;
  margin-bottom: 0;
}

.property-specs.lux-specs .property-spec--permit {
  grid-column: 1 / -1;
  overflow: visible;
}

.property-specs.lux-specs .property-spec--permit .property-spec__value--permit {
  font-family: var(--fBodyLux, var(--fEn));
  font-size: clamp(0.8rem, 1.8vw, 0.95rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.3;
  white-space: nowrap;
  word-break: normal;
  overflow-wrap: normal;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  font-variant-numeric: tabular-nums;
}

.property-specs.lux-specs .property-spec--permit .property-spec__value--permit::-webkit-scrollbar {
  display: none;
}

.property-specs.lux-specs .property-spec__label {
  display: block;
  margin-top: auto;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-soft);
  line-height: 1.35;
  overflow-wrap: anywhere;
  word-break: break-word;
}

html[lang="ar"] .property-specs.lux-specs .property-spec__label {
  text-transform: none;
  letter-spacing: 0;
}

@media (max-width: 640px) {
  .property-specs.lux-specs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.lux-detail-heading {
  font-family: var(--fDis);
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.lux-amenities {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.lux-amenities li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
  font-size: 14px;
  line-height: 1.45;
  color: var(--text-muted);
  padding: 12px 16px;
  background: rgba(10, 22, 40, 0.5);
  border: 1px solid var(--border);
}

.lux-amenity-icon {
  flex-shrink: 0;
  margin-top: 0.35em;
  color: var(--gold-mid);
  font-size: 8px;
}

.lux-map-wrap {
  aspect-ratio: 16/9;
  border: 1px solid var(--border);
  overflow: hidden;
  background: var(--navy);
}

.lux-map-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(20%) contrast(1.05);
}

.lux-inquiry-panel {
  position: sticky;
  top: calc(var(--nav-h) + 24px);
}

.lux-inquiry-panel__inner {
  padding: 32px;
  background: rgba(10, 22, 40, 0.75);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(212, 175, 75, 0.22);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
}

.lux-inquiry-title {
  font-family: var(--fDis);
  font-size: 1.5rem;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.lux-inquiry-sub {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 24px;
}

.lux-input {
  background: rgba(5, 24, 16, 0.5);
  border-color: rgba(212, 175, 75, 0.15);
}

.lux-input:focus {
  border-color: var(--gold-mid);
  box-shadow: 0 0 0 3px var(--gold-glow);
}

/* ── Legal pages (privacy, terms) ── */
.lux-legal-intro {
  margin-top: 12px;
  color: var(--text-muted);
}

.lux-legal-doc {
  max-width: 720px;
  margin: 0 auto;
}

.lux-legal-lead {
  font-size: 15px;
  line-height: 1.85;
  color: var(--text-muted);
  margin-bottom: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(212, 175, 75, 0.15);
}

.lux-legal-section {
  margin-bottom: 36px;
}

.lux-legal-heading {
  font-family: var(--fDis);
  font-size: 1.25rem;
  font-weight: 400;
  margin-bottom: 14px;
  letter-spacing: -0.02em;
  color: var(--text);
}

.lux-legal-text {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.lux-legal-list {
  margin: 0;
  padding-inline-start: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.lux-legal-list li {
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-muted);
}

.lux-legal-contact-card {
  margin-top: 16px;
  padding: 24px;
  background: rgba(10, 22, 40, 0.5);
  border: 1px solid rgba(212, 175, 75, 0.18);
}

.lux-legal-contact-card p {
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-muted);
  margin: 0 0 8px;
}

.lux-legal-contact-card a {
  color: var(--gold-light);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.lux-legal-contact-card a:hover {
  color: var(--gold-mid);
}

.lux-legal-contact-name {
  margin-bottom: 12px !important;
  color: var(--text) !important;
}

.btn-outline--sm {
  font-size: 10px;
  padding: 10px 22px;
}

.lux-consent {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 4px 0 18px;
}

.lux-consent__check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 13px;
  line-height: 1.65;
  color: var(--text-muted);
}

html[data-lang="ar"] .lux-consent__check {
  flex-direction: row-reverse;
  text-align: right;
}

.lux-consent__check input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin-top: 3px;
  flex-shrink: 0;
  accent-color: var(--gold-mid);
  cursor: pointer;
}

.lux-consent__text a {
  color: var(--gold-light);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.lux-consent__text a:hover {
  color: var(--gold-mid);
}

.lux-submit {
  width: 100%;
  margin-top: 8px;
  letter-spacing: 0.12em;
  font-size: 11px;
}

.lux-detail-prose {
  line-height: 1.85;
  color: var(--text-muted);
  white-space: pre-line;
}

.lux-amenity-card__text {
  min-width: 0;
  flex: 1;
}

.lux-project-facts {
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(212, 175, 75, 0.2);
}

.lux-project-facts__title {
  font-family: var(--fDis);
  font-size: 1.15rem;
  font-weight: 400;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.lux-project-facts__list {
  margin: 0;
  padding: 0;
}

.lux-project-facts__row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}

.lux-project-facts__row:last-child {
  border-bottom: none;
}

.lux-project-facts__row dt {
  color: var(--text-soft);
  font-weight: 400;
}

.lux-project-facts__row dd {
  margin: 0;
  margin-inline-start: auto;
  text-align: end;
  color: var(--gold-light);
  font-weight: 600;
}

.lux-travel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.lux-travel-card {
  padding: 16px 18px;
  background: rgba(10, 22, 40, 0.55);
  border: 1px solid rgba(212, 175, 75, 0.2);
}

.lux-travel-card__time {
  display: block;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--gold-light);
  margin-bottom: 6px;
}

.lux-travel-card__place {
  display: block;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-muted);
}

.lux-payment-plan {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(212, 175, 75, 0.2);
}

.lux-payment-plan__title {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-mid);
  margin-bottom: 12px;
}

.lux-payment-plan__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.lux-payment-plan__step {
  padding: 12px 8px;
  text-align: center;
  background: rgba(5, 24, 16, 0.45);
  border: 1px solid var(--border);
}

.lux-payment-plan__pct {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: var(--gold-light);
  margin-bottom: 4px;
}

.lux-payment-plan__label {
  display: block;
  font-size: 10px;
  line-height: 1.35;
  color: var(--text-soft);
}

@media (max-width: 480px) {
  .lux-payment-plan__grid {
    grid-template-columns: 1fr;
  }
}

.lux-maps-link {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--gold-mid);
  transition: color 0.25s;
}

.lux-maps-link:hover {
  color: var(--gold-light);
}

.lux-project-facts__payment {
  margin-top: 14px;
  padding: 12px 14px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--gold-light);
  background: rgba(212, 175, 75, 0.08);
  border: 1px solid rgba(212, 175, 75, 0.22);
}

/* Home luxury section */
.lux-home-categories {
  background: linear-gradient(180deg, var(--bg) 0%, var(--navy-deep) 50%, var(--bg) 100%);
}

.lux-home-categories .section-header {
  max-width: var(--max-w);
  margin: 0 auto 40px;
  padding-inline: clamp(24px, 5vw, 48px);
}

.lux-home-categories .lux-categories {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: clamp(24px, 5vw, 48px);
}

@media (max-width: 1100px) {
  .lux-categories__grid--duo,
  .lux-categories__grid--trio {
    grid-template-columns: 1fr;
  }

  .lux-cat-card {
    aspect-ratio: auto;
    min-height: 360px;
  }
  .lux-listings-grid { grid-template-columns: repeat(2, 1fr); }
  .lux-detail-layout { grid-template-columns: 1fr; }
  .lux-detail-hero__grid { grid-template-columns: 1fr; }
  .lux-inquiry-panel { position: static; }
}

@media (max-width: 640px) {
  .lux-listings-grid { grid-template-columns: 1fr; }
  .lux-amenities { grid-template-columns: 1fr; }
  .lux-gallery__slide .lux-gallery__img { max-height: min(56vh, 520px); }
}

/* Floor plans */
.lux-floor-plans__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.lux-floor-plan-card {
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(201, 162, 77, 0.18);
}

.lux-floor-plan-card__media img {
  display: block;
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.lux-floor-plan-card__body {
  padding: 16px;
}

.lux-floor-plan-card__title {
  margin: 0 0 8px;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.2rem;
  color: #fff;
}

.lux-floor-plan-card__meta {
  display: flex;
  gap: 12px;
  font-size: 13px;
  color: rgba(244, 241, 234, 0.65);
  margin-bottom: 8px;
}

.lux-floor-plan-card__price {
  margin: 0;
  color: var(--gold, #c9a24d);
  font-weight: 600;
}

/* FAQ accordion */
.lux-faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
}

.lux-faq-item {
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(201, 162, 77, 0.18);
  overflow: hidden;
}

.lux-faq-item__question {
  padding: 16px 18px;
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}

.lux-faq-item__question::-webkit-details-marker {
  display: none;
}

.lux-faq-item__answer {
  padding: 0 18px 16px;
  color: rgba(244, 241, 234, 0.78);
  line-height: 1.6;
}
