/*
Theme Name: CasaLuxe Paradise Theme
Theme URI: https://casaluxe.ma/
Author: CasaLuxe Residences
Author URI: https://casaluxe.ma/
Description: Thème WordPress premium avec slider photos réelles, 10 propositions, filtres Studio Suite Appartement Garçonnière Maison, tarifs 400 à 2000 DH, réservation WhatsApp privée, SEO et animations.
Version: 1.1.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: casaluxe-paradise
Tags: real-estate, landing-page, custom-homepage, responsive, rtl-language-support
*/

:root {
  --bg: #07080d;
  --bg-2: #0d1019;
  --panel: rgba(255, 255, 255, 0.075);
  --panel-strong: rgba(255, 255, 255, 0.12);
  --text: #fffaf0;
  --muted: rgba(255, 250, 240, 0.68);
  --line: rgba(255, 255, 255, 0.14);
  --gold: #d7b56d;
  --gold-2: #f8e4a7;
  --rose: #d78b7c;
  --emerald: #2fddbc;
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.55);
  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 20% 15%, rgba(215, 181, 109, 0.2), transparent 28%),
    radial-gradient(circle at 85% 5%, rgba(215, 139, 124, 0.15), transparent 30%),
    linear-gradient(145deg, #05060a 0%, #0a0d15 45%, #0f1118 100%);
  color: var(--text);
  font-family: var(--font-body);
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at center, black, transparent 78%);
  z-index: -2;
}

#luxCanvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -3;
}

.cursor-orb {
  position: fixed;
  width: 340px;
  height: 340px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(215, 181, 109, 0.14), transparent 68%);
  transform: translate3d(-50%, -50%, 0);
  pointer-events: none;
  z-index: -1;
  transition: opacity 0.3s ease;
}

img,
svg {
  max-width: 100%;
}

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

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

.section-shell {
  width: min(1180px, calc(100% - 36px));
  margin-inline: auto;
}

.site-header {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  width: min(1180px, calc(100% - 36px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px 14px 12px 18px;
  background: rgba(8, 10, 16, 0.58);
  border: 1px solid var(--line);
  border-radius: 999px;
  backdrop-filter: blur(22px);
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.35);
  transition: 0.3s ease;
}

.site-header.scrolled {
  top: 10px;
  background: rgba(8, 10, 16, 0.84);
}

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  border-radius: 50%;
  color: #15110a;
  font-weight: 900;
  letter-spacing: -0.08em;
  background: linear-gradient(135deg, var(--gold-2), var(--gold));
  box-shadow: 0 0 26px rgba(215, 181, 109, 0.38);
}

.brand strong,
.brand small {
  display: block;
  line-height: 1;
}

.brand strong {
  font-size: 1rem;
  letter-spacing: 0.02em;
}

.brand small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav a {
  color: rgba(255, 250, 240, 0.78);
  padding: 11px 14px;
  border-radius: 999px;
  font-size: 0.92rem;
  transition: 0.25s ease;
}

.nav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}

.nav .nav-cta {
  color: #15110a;
  background: linear-gradient(135deg, var(--gold-2), var(--gold));
  font-weight: 800;
  box-shadow: 0 8px 24px rgba(215, 181, 109, 0.26);
}

.nav-toggle {
  display: none;
  border: 0;
  background: transparent;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.nav-toggle span {
  width: 20px;
  height: 2px;
  border-radius: 99px;
  background: var(--text);
  transition: 0.25s ease;
}

.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  align-items: center;
  gap: 56px;
  padding: 128px 0 72px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--gold-2);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.17em;
  font-size: 0.76rem;
}

.eyebrow.muted {
  color: rgba(248, 228, 167, 0.82);
}

.pulse-dot {
  position: relative;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 0 0 rgba(47, 221, 188, 0.8);
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  70% { box-shadow: 0 0 0 14px rgba(47, 221, 188, 0); }
  100% { box-shadow: 0 0 0 0 rgba(47, 221, 188, 0); }
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  line-height: 0.96;
  letter-spacing: -0.055em;
}

h1,
h2 {
  font-family: var(--font-display);
}

h1 {
  margin: 18px 0 22px;
  font-size: clamp(3.25rem, 7vw, 7.9rem);
  max-width: 900px;
}

h2 {
  font-size: clamp(2.2rem, 4.3vw, 4.8rem);
}

h3 {
  font-size: 1.4rem;
}

.hero-copy p {
  max-width: 680px;
  color: var(--muted);
  font-size: clamp(1.02rem, 1.6vw, 1.22rem);
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 32px 0;
}

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 800;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: #17120a;
  background: linear-gradient(135deg, var(--gold-2), var(--gold));
  box-shadow: 0 18px 46px rgba(215, 181, 109, 0.25);
}

.btn-ghost {
  color: var(--text);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(14px);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-width: 650px;
}

.hero-stats div {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.055);
  backdrop-filter: blur(18px);
}

.hero-stats strong,
.hero-stats span {
  display: block;
}

.hero-stats strong {
  font-size: 1.55rem;
}

.hero-stats span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.84rem;
}

.hero-visual {
  position: relative;
  min-height: 590px;
  perspective: 1200px;
}

.orbit-ring {
  position: absolute;
  left: 50%;
  top: 50%;
  border: 1px solid rgba(215, 181, 109, 0.16);
  border-radius: 50%;
  transform: translate(-50%, -50%) rotateX(68deg);
  pointer-events: none;
}

.ring-one {
  width: 480px;
  height: 480px;
  animation: spin 18s linear infinite;
}

.ring-two {
  width: 360px;
  height: 360px;
  animation: spin 28s linear infinite reverse;
}

@keyframes spin {
  to { transform: translate(-50%, -50%) rotateX(68deg) rotateZ(360deg); }
}

.scene-3d {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  animation: floatScene 7s ease-in-out infinite;
}

@keyframes floatScene {
  0%, 100% { transform: rotateX(0deg) rotateY(-14deg) translateY(0); }
  50% { transform: rotateX(2deg) rotateY(-8deg) translateY(-18px); }
}

.building-3d {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 230px;
  height: 440px;
  transform: translate(-50%, -50%) rotateY(-18deg) rotateX(5deg);
  transform-style: preserve-3d;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 34px 34px 18px 18px;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.04)),
    linear-gradient(180deg, rgba(215, 181, 109, 0.15), rgba(255, 255, 255, 0.04));
  box-shadow:
    var(--shadow),
    inset 0 1px 0 rgba(255, 255, 255, 0.24);
  overflow: hidden;
}

.building-3d::before,
.building-3d::after {
  content: '';
  position: absolute;
  inset: auto 22px 22px;
  height: 60px;
  border-radius: 24px 24px 10px 10px;
  background: linear-gradient(135deg, rgba(248, 228, 167, 0.45), rgba(215, 181, 109, 0.18));
  filter: blur(0.1px);
}

.building-3d::after {
  inset: 0 auto 0 100%;
  width: 88px;
  height: 100%;
  transform-origin: left;
  transform: rotateY(82deg);
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.12), rgba(0, 0, 0, 0.28));
  border-radius: 0 28px 28px 0;
}

.floor {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 22px 22px 0;
  height: 30px;
}

.floor::before,
.floor::after,
.floor span {
  content: '';
}

.floor::before,
.floor::after {
  display: block;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(248, 228, 167, 0.62), rgba(248, 228, 167, 0.12));
  box-shadow: 0 0 22px rgba(248, 228, 167, 0.22);
}

.floor::before { grid-column: 1 / 2; }
.floor::after { grid-column: 3 / 4; }

.floating-card {
  position: absolute;
  width: 270px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 26px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.055));
  backdrop-filter: blur(24px);
  box-shadow: var(--shadow);
  transform-style: preserve-3d;
}

.card-front {
  left: 4%;
  top: 20%;
  transform: translateZ(95px) rotateY(14deg);
}

.card-back {
  right: 2%;
  bottom: 18%;
  transform: translateZ(45px) rotateY(-18deg);
}

.card-back small,
.card-back strong,
.card-back span {
  display: block;
}

.card-back small {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.card-back strong {
  margin: 8px 0;
  font-size: 3rem;
  line-height: 1;
  color: var(--gold-2);
}

.card-back span {
  color: var(--muted);
  font-size: 0.86rem;
}

.card-topline,
.card-bottomline {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.84rem;
}

.card-topline strong {
  color: var(--gold-2);
}

.card-bottomline {
  flex-wrap: wrap;
  color: var(--muted);
}

.card-bottomline span {
  padding: 7px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.075);
}

.mini-plan {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  grid-template-rows: 70px 48px;
  gap: 8px;
  margin: 18px 0;
}

.mini-plan span {
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(215, 181, 109, 0.44), rgba(255, 255, 255, 0.08));
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.mini-plan span:nth-child(1) { grid-row: span 2; }

.search-panel,
.properties,
.districts,
.experience,
.invest,
.contact {
  padding-block: 74px;
}

.search-panel {
  margin-top: -38px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.05));
  backdrop-filter: blur(26px);
  box-shadow: var(--shadow);
}

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

.panel-header h2 {
  margin: 10px 0 0;
  font-size: clamp(1.8rem, 3vw, 3.2rem);
}

.mode-tabs {
  display: flex;
  gap: 8px;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.22);
}

.mode-tab {
  min-height: 42px;
  border: 0;
  color: rgba(255, 250, 240, 0.72);
  border-radius: 999px;
  background: transparent;
  padding: 0 16px;
  cursor: pointer;
  font-weight: 800;
  transition: 0.25s ease;
}

.mode-tab.active {
  color: #15110a;
  background: linear-gradient(135deg, var(--gold-2), var(--gold));
}

.filters {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1.4fr auto;
  gap: 14px;
  align-items: end;
}

.filters label,
.contact-form label {
  display: grid;
  gap: 9px;
}

.filters span,
.contact-form span {
  color: rgba(255, 250, 240, 0.75);
  font-size: 0.82rem;
  font-weight: 800;
}

.filters input,
.filters select,
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  min-height: 52px;
  border: 1px solid var(--line);
  border-radius: 18px;
  outline: none;
  color: var(--text);
  background: rgba(0, 0, 0, 0.25);
  padding: 0 16px;
  transition: 0.25s ease;
}

.filters input:focus,
.filters select:focus,
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: rgba(248, 228, 167, 0.7);
  box-shadow: 0 0 0 4px rgba(215, 181, 109, 0.1);
}

.filters select,
.contact-form select {
  color-scheme: dark;
}

.filters input[type='range'] {
  accent-color: var(--gold);
  padding: 0;
  min-height: auto;
  margin-top: 12px;
}

.filter-submit {
  min-width: 140px;
}

.section-title {
  display: grid;
  gap: 14px;
  margin-bottom: 34px;
}

.section-title h2 {
  max-width: 900px;
  margin-bottom: 0;
}

.section-title p {
  max-width: 740px;
  color: var(--muted);
  line-height: 1.7;
}

.results-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
  color: var(--muted);
}

.results-meta p {
  margin: 0;
}

.text-button {
  border: 0;
  color: var(--gold-2);
  background: transparent;
  cursor: pointer;
  font-weight: 800;
}

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

.property-card {
  position: relative;
  min-height: 510px;
  border: 1px solid var(--line);
  border-radius: 30px;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.045));
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
  transform-style: preserve-3d;
  transition: transform 0.18s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.property-card:hover {
  border-color: rgba(248, 228, 167, 0.45);
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.43);
}

.property-image {
  position: relative;
  height: 238px;
  overflow: hidden;
  background:
    radial-gradient(circle at 70% 25%, rgba(248, 228, 167, 0.36), transparent 26%),
    linear-gradient(135deg, rgba(215, 181, 109, 0.16), rgba(215, 139, 124, 0.16)),
    linear-gradient(135deg, #1a1b24, #080a10);
}

.property-image::before {
  content: '';
  position: absolute;
  inset: 28px 24px;
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background:
    linear-gradient(90deg, transparent 32%, rgba(255, 255, 255, 0.08) 33%, transparent 34%),
    linear-gradient(0deg, transparent 52%, rgba(255, 255, 255, 0.08) 53%, transparent 54%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.03));
  transform: translateZ(38px);
}

.property-image::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 90px;
  background: linear-gradient(0deg, rgba(7, 8, 13, 0.94), transparent);
}

.property-badges {
  position: absolute;
  inset: 16px 16px auto;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: var(--text);
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(18px);
  font-size: 0.76rem;
  font-weight: 900;
}

.badge.gold {
  color: #15110a;
  background: linear-gradient(135deg, var(--gold-2), var(--gold));
}

.favorite {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  color: var(--text);
  background: rgba(0, 0, 0, 0.26);
  cursor: pointer;
  backdrop-filter: blur(18px);
  transition: 0.25s ease;
}

.favorite.active {
  color: #15110a;
  background: linear-gradient(135deg, var(--gold-2), var(--gold));
}

.property-content {
  padding: 22px;
  transform: translateZ(30px);
}

.property-kicker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 0.82rem;
}

.property-card h3 {
  margin-bottom: 12px;
  line-height: 1.1;
}

.property-desc {
  min-height: 74px;
  color: var(--muted);
  line-height: 1.58;
  font-size: 0.94rem;
}

.property-features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0;
}

.property-features span {
  padding: 8px 10px;
  border-radius: 999px;
  color: rgba(255, 250, 240, 0.78);
  background: rgba(255, 255, 255, 0.07);
  font-size: 0.78rem;
}

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

.price {
  display: grid;
  gap: 3px;
}

.price strong {
  color: var(--gold-2);
  font-size: 1.22rem;
}

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

.details-btn {
  min-height: 42px;
  padding-inline: 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
  cursor: pointer;
  font-weight: 800;
}

.empty-state {
  grid-column: 1 / -1;
  padding: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  text-align: center;
  background: rgba(255, 255, 255, 0.06);
}

.empty-state p {
  color: var(--muted);
}

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

.district-card {
  min-height: 270px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at top right, rgba(215, 181, 109, 0.14), transparent 38%),
    rgba(255, 255, 255, 0.055);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.22);
}

.district-card span {
  color: var(--gold-2);
  font-weight: 900;
}

.district-card h3 {
  margin: 56px 0 16px;
}

.district-card p {
  color: var(--muted);
  line-height: 1.65;
}

.experience {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  align-items: center;
  gap: 60px;
}

.experience-copy p,
.invest-card p {
  color: var(--muted);
  line-height: 1.75;
  font-size: 1.02rem;
}

.feature-list {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.feature-list div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.055);
}

.feature-list strong {
  color: var(--gold-2);
}

.feature-list span {
  color: var(--muted);
  text-align: right;
}

.lux-device {
  position: relative;
  width: min(100%, 420px);
  min-height: 570px;
  margin-inline: auto;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 48px;
  background: linear-gradient(145deg, rgba(255,255,255,0.15), rgba(255,255,255,0.04));
  box-shadow: var(--shadow);
  transform: perspective(900px) rotateY(-10deg) rotateX(3deg);
  animation: deviceFloat 6s ease-in-out infinite;
}

@keyframes deviceFloat {
  0%, 100% { transform: perspective(900px) rotateY(-10deg) rotateX(3deg) translateY(0); }
  50% { transform: perspective(900px) rotateY(-4deg) rotateX(1deg) translateY(-12px); }
}

.device-top {
  position: absolute;
  top: 22px;
  left: 50%;
  width: 110px;
  height: 26px;
  border-radius: 999px;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.5);
  z-index: 2;
}

.device-screen {
  position: relative;
  min-height: 540px;
  border-radius: 38px;
  overflow: hidden;
  background:
    radial-gradient(circle at top, rgba(215, 181, 109, 0.18), transparent 38%),
    linear-gradient(180deg, rgba(255,255,255,0.08), rgba(0,0,0,0.2));
}

.screen-map {
  position: absolute;
  inset: 58px 24px auto;
  height: 210px;
  border-radius: 30px;
  background:
    linear-gradient(90deg, transparent 48%, rgba(248, 228, 167, 0.25) 49%, transparent 50%),
    linear-gradient(0deg, transparent 44%, rgba(248, 228, 167, 0.18) 45%, transparent 46%),
    rgba(255, 255, 255, 0.08);
}

.screen-map::after {
  content: '';
  position: absolute;
  right: 44px;
  top: 72px;
  width: 18px;
  height: 18px;
  border-radius: 50% 50% 50% 0;
  background: var(--gold-2);
  transform: rotate(-45deg);
  box-shadow: 0 0 0 8px rgba(248, 228, 167, 0.14);
}

.screen-listing,
.screen-cta {
  position: absolute;
  left: 24px;
  right: 24px;
  height: 86px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.11);
}

.screen-listing { bottom: 138px; }
.screen-listing.small { bottom: 42px; height: 72px; opacity: 0.75; }
.screen-cta { display: none; }

.invest-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 42px;
  align-items: center;
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 95% 10%, rgba(215, 181, 109, 0.16), transparent 32%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.115), rgba(255, 255, 255, 0.048));
  box-shadow: var(--shadow);
}

.investment-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.investment-metrics div {
  min-height: 150px;
  display: grid;
  align-content: end;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(0, 0, 0, 0.18);
}

.investment-metrics strong {
  color: var(--gold-2);
  font-size: 1.35rem;
}

.investment-metrics span {
  color: var(--muted);
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.055);
  backdrop-filter: blur(18px);
}

.contact-form label:nth-child(4) {
  grid-column: 1 / -1;
}

.contact-form textarea {
  padding-top: 14px;
  resize: vertical;
}

.contact-form button,
.form-status {
  grid-column: 1 / -1;
}

.form-status {
  min-height: 24px;
  color: var(--gold-2);
  font-weight: 800;
  margin: 0;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-block: 44px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

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

.footer p {
  margin: 7px 0 0;
}

.footer a {
  color: var(--gold-2);
  font-weight: 800;
}

.property-modal {
  width: min(760px, calc(100% - 30px));
  border: 1px solid var(--line);
  border-radius: 32px;
  color: var(--text);
  background: rgba(9, 11, 17, 0.92);
  backdrop-filter: blur(26px);
  box-shadow: var(--shadow);
  padding: 0;
}

.property-modal::backdrop {
  background: rgba(0, 0, 0, 0.68);
  backdrop-filter: blur(6px);
}

.modal-close {
  position: absolute;
  right: 18px;
  top: 16px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--text);
  background: rgba(0, 0, 0, 0.26);
  cursor: pointer;
  font-size: 1.5rem;
}

.modal-layout {
  display: grid;
  gap: 0;
}

.modal-hero {
  min-height: 250px;
  border-radius: 32px 32px 0 0;
  background:
    radial-gradient(circle at 70% 30%, rgba(248, 228, 167, 0.32), transparent 28%),
    linear-gradient(135deg, rgba(215, 181, 109, 0.14), rgba(215, 139, 124, 0.15)),
    #121520;
}

.modal-body {
  padding: 28px;
}

.modal-body p {
  color: var(--muted);
  line-height: 1.7;
}

.modal-specs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 22px 0;
}

.modal-specs div {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.055);
}

.modal-specs strong,
.modal-specs span {
  display: block;
}

.modal-specs strong {
  color: var(--gold-2);
}

.modal-specs span {
  color: var(--muted);
  margin-top: 4px;
  font-size: 0.82rem;
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.72s ease, transform 0.72s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1080px) {
  .hero,
  .experience,
  .invest-card {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 140px;
  }

  .hero-visual {
    min-height: 560px;
  }

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

  .filter-submit {
    grid-column: 1 / -1;
  }
}

@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    display: grid;
    width: min(340px, 100%);
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 26px;
    background: rgba(8, 10, 16, 0.92);
    box-shadow: var(--shadow);
    backdrop-filter: blur(24px);
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: 0.25s ease;
  }

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

  .nav a {
    padding: 14px 16px;
  }

  .panel-header {
    display: grid;
  }

  .mode-tabs {
    overflow-x: auto;
  }

  .contact-form,
  .modal-specs,
  .investment-metrics {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .section-shell {
    width: min(100% - 24px, 1180px);
  }

  .site-header {
    width: min(100% - 24px, 1180px);
  }

  h1 {
    font-size: clamp(3.1rem, 16vw, 5.6rem);
  }

  .hero {
    gap: 28px;
    padding-bottom: 40px;
  }

  .hero-stats,
  .filters,
  .property-grid,
  .district-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 460px;
  }

  .building-3d {
    width: 190px;
    height: 350px;
  }

  .floating-card {
    width: 230px;
  }

  .card-front {
    left: 0;
  }

  .card-back {
    right: 0;
    bottom: 6%;
  }

  .search-panel {
    padding: 18px;
  }

  .property-card {
    min-height: auto;
  }

  .property-footer,
  .feature-list div,
  .footer {
    display: grid;
  }

  .feature-list span {
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}


/* ===== Enhanced media, real photos & richer motion ===== */
.hero-showcase {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(100%, 390px);
  transform: translate(-50%, -50%) rotateY(-10deg) translateZ(45px);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 34px;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(255,255,255,0.14), rgba(255,255,255,0.05));
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-showcase.switching {
  opacity: 0.92;
}

.hero-showcase-media {
  position: relative;
  height: 430px;
  overflow: hidden;
}

.hero-showcase-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.55s ease, opacity 0.35s ease;
}

.hero-showcase:hover .hero-showcase-media img {
  transform: scale(1.06);
}

.hero-showcase-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 8, 13, 0.08), rgba(7, 8, 13, 0.22) 55%, rgba(7, 8, 13, 0.82)),
    radial-gradient(circle at 75% 18%, rgba(248, 228, 167, 0.26), transparent 32%);
}

.showcase-pill {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 2;
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 900;
  color: #15110a;
  background: linear-gradient(135deg, var(--gold-2), var(--gold));
  box-shadow: 0 12px 28px rgba(215, 181, 109, 0.28);
}

.hero-showcase-copy {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 22px 22px 24px;
}

.hero-showcase-copy span,
.hero-showcase-copy strong,
.hero-showcase-copy small {
  display: block;
}

.hero-showcase-copy span {
  color: rgba(248, 228, 167, 0.96);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  font-weight: 900;
}

.hero-showcase-copy strong {
  margin-top: 8px;
  font-size: 1.72rem;
  line-height: 1.08;
}

.hero-showcase-copy small {
  margin-top: 8px;
  color: rgba(255, 250, 240, 0.72);
  line-height: 1.55;
}

.photo-strip-mini span {
  border-radius: 10px;
  background-size: cover;
  background-position: center;
}

.card-front {
  left: -2%;
  top: 15%;
}

.card-back {
  right: -1%;
  bottom: 13%;
}

.property-image {
  background: #111;
}

.property-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.55s ease;
}

.property-card:hover .property-photo {
  transform: scale(1.06);
}

.property-image::before {
  inset: auto 0 0;
  border-radius: 0;
  border: 0;
  background: linear-gradient(180deg, transparent, rgba(7, 8, 13, 0.25) 38%, rgba(7, 8, 13, 0.85));
  transform: none;
}

.property-image::after {
  display: none;
}

.property-mode-chip {
  position: absolute;
  left: 18px;
  bottom: 18px;
  z-index: 2;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(0,0,0,0.38);
  backdrop-filter: blur(16px);
  font-size: 0.72rem;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 800;
}

.property-features {
  gap: 8px;
}

.property-features span {
  padding: 8px 11px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.11);
  background: rgba(255,255,255,0.045);
  font-size: 0.76rem;
  color: rgba(255,250,240,0.84);
}

.immersive-gallery {
  margin-top: 38px;
}

.gallery-band {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr 1.3fr 1fr;
  gap: 16px;
}

.gallery-item {
  position: relative;
  min-height: 260px;
  border-radius: 30px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 20px 50px rgba(0,0,0,0.25);
  transform: translateZ(0);
}

.gallery-item.wide { min-height: 260px; }
.gallery-item.tall { min-height: 260px; }

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(7,8,13,0.14) 55%, rgba(7,8,13,0.36));
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.district-card {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(7,8,13,0.12), rgba(7,8,13,0.65)),
    var(--district-image) center/cover no-repeat;
}

.district-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7,8,13,0.1), rgba(7,8,13,0.72));
}

.district-card > * {
  position: relative;
  z-index: 1;
}

.screen-map {
  background:
    linear-gradient(180deg, rgba(0,0,0,0.16), rgba(0,0,0,0.35)),
    url('https://images.unsplash.com/photo-1477959858617-67f85cf4f1df?auto=format&fit=crop&w=1200&q=80') center/cover no-repeat;
  overflow: hidden;
}

.screen-map::before {
  content: 'Casablanca • recherche live';
  position: absolute;
  left: 18px;
  top: 18px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(0,0,0,0.45);
  color: var(--text);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 800;
}

.screen-listing,
.screen-cta {
  overflow: hidden;
}

.screen-listing::before,
.screen-listing.small::before {
  content: '';
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.screen-listing::before {
  background-image: linear-gradient(180deg, rgba(0,0,0,0.08), rgba(0,0,0,0.48)), url('https://images.unsplash.com/photo-1512917774080-9991f1c4c750?auto=format&fit=crop&w=1200&q=80');
}

.screen-listing.small::before {
  background-image: linear-gradient(180deg, rgba(0,0,0,0.08), rgba(0,0,0,0.48)), url('https://images.unsplash.com/photo-1507525428034-b723cf961d3e?auto=format&fit=crop&w=1200&q=80');
}

.screen-listing::after,
.screen-listing.small::after {
  content: '';
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(248,228,167,0.95), rgba(248,228,167,0.25));
}

.modal-gallery {
  padding: 12px 12px 0;
}

.modal-hero {
  overflow: hidden;
  background: #111827;
}

.modal-main-photo {
  width: 100%;
  min-height: 250px;
  max-height: 380px;
  object-fit: cover;
  display: block;
}

.modal-thumbs {
  display: flex;
  gap: 10px;
  padding: 12px 0 0;
}

.modal-thumb {
  width: 84px;
  height: 64px;
  padding: 0;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.05);
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
}

.modal-thumb.active {
  outline: 2px solid rgba(248, 228, 167, 0.72);
  box-shadow: 0 0 0 4px rgba(248, 228, 167, 0.12);
}

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

.modal-cta {
  margin-top: 18px;
}

@media (max-width: 1024px) {
  .gallery-band {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-showcase {
    width: min(100%, 330px);
  }

  .hero-showcase-media {
    height: 360px;
  }
}

@media (max-width: 700px) {
  .hero-showcase {
    position: relative;
    left: auto;
    top: auto;
    transform: none;
    width: 100%;
    margin-inline: auto;
  }

  .orbit-ring {
    display: none;
  }

  .gallery-band {
    grid-template-columns: 1fr;
  }

  .modal-thumbs {
    flex-wrap: wrap;
  }

  .card-front,
  .card-back {
    display: none;
  }
}


/* ===== CasaLuxe premium WhatsApp + luxury motion upgrade ===== */

:root {
  --whatsapp: #24d366;
  --whatsapp-dark: #0f7f45;
  --luxury-glow: rgba(248, 228, 167, 0.34);
}

.btn,
.details-btn,
.whatsapp-card-btn,
.nav-cta {
  will-change: transform, box-shadow;
}

.hero-copy h1 {
  text-wrap: balance;
}

.hero-visual {
  filter: drop-shadow(0 30px 80px rgba(0, 0, 0, 0.38));
}

.hero-showcase {
  animation: luxuryShowcaseFloat 7.5s ease-in-out infinite;
}

.hero-showcase-media img {
  animation: slowResidenceZoom 13s ease-in-out infinite alternate;
}

.hero-showcase::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  pointer-events: none;
  background:
    linear-gradient(115deg, transparent 0%, rgba(255,255,255,0.2) 35%, transparent 58%),
    radial-gradient(circle at 18% 20%, rgba(248,228,167,0.22), transparent 28%);
  mix-blend-mode: screen;
  opacity: 0.58;
  z-index: 3;
  transform: translateX(-120%);
  animation: luxuryShine 6s ease-in-out infinite;
}

.property-card {
  position: relative;
  isolation: isolate;
  transform-style: preserve-3d;
  animation: cardSoftRise 0.7s ease both;
}

.property-card::after {
  content: '';
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 20%), rgba(248, 228, 167, 0.22), transparent 32%);
  transition: opacity 0.35s ease;
  z-index: 1;
}

.property-card:hover::after {
  opacity: 1;
}

.property-image {
  min-height: 250px;
}

.property-image .property-photo {
  filter: saturate(1.06) contrast(1.02);
}

.property-card:hover {
  box-shadow:
    0 32px 90px rgba(0,0,0,0.46),
    0 0 0 1px rgba(248,228,167,0.14),
    0 0 55px rgba(215,181,109,0.12);
}

.property-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.whatsapp-card-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 11px 15px;
  border-radius: 999px;
  color: #07130d;
  font-weight: 900;
  background: linear-gradient(135deg, #c4ffd9, var(--whatsapp));
  box-shadow: 0 14px 30px rgba(36, 211, 102, 0.22);
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

.whatsapp-card-btn:hover {
  transform: translateY(-3px);
  filter: brightness(1.04);
  box-shadow: 0 18px 42px rgba(36, 211, 102, 0.32);
}

.whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 80;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  padding: 14px 18px 14px 52px;
  border-radius: 999px;
  color: #06110a;
  background: linear-gradient(135deg, #ddffe9, var(--whatsapp));
  box-shadow:
    0 18px 44px rgba(36, 211, 102, 0.34),
    0 0 0 7px rgba(36, 211, 102, 0.11);
  font-weight: 900;
  overflow: hidden;
  transform: translateZ(0);
  animation: whatsappPulseLuxury 2.8s ease-in-out infinite;
}

.whatsapp-float::before {
  content: '☎';
  position: absolute;
  left: 15px;
  top: 50%;
  width: 28px;
  height: 28px;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.78);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.08);
}

.whatsapp-float span {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.whatsapp-float strong {
  font-size: 0.92rem;
  line-height: 1;
}

.whatsapp-reservation {
  margin-top: 64px;
  margin-bottom: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: clamp(24px, 4vw, 42px);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(248, 228, 167, 0.18);
  background:
    linear-gradient(135deg, rgba(248, 228, 167, 0.13), rgba(255,255,255,0.05)),
    radial-gradient(circle at 8% 10%, rgba(36, 211, 102, 0.16), transparent 34%),
    rgba(255,255,255,0.06);
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
}

.whatsapp-reservation::after {
  content: '';
  position: absolute;
  width: 260px;
  height: 260px;
  right: -110px;
  top: -120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(36,211,102,0.25), transparent 68%);
  animation: softOrb 8s ease-in-out infinite alternate;
}

.whatsapp-reservation h2 {
  margin: 10px 0 12px;
  max-width: 780px;
}

.whatsapp-reservation p {
  margin: 0;
  max-width: 720px;
  color: var(--muted);
}

.gallery-item {
  transform-style: preserve-3d;
}

.gallery-item::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.18), transparent);
  transform: translateX(-135%);
  transition: transform 0.7s ease;
}

.gallery-item:hover::before {
  transform: translateX(135%);
}

.gallery-item img {
  animation: galleryBreath 12s ease-in-out infinite alternate;
}

.district-card {
  min-height: 310px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.district-card:hover {
  transform: translateY(-8px) scale(1.015);
  border-color: rgba(248, 228, 167, 0.32);
  box-shadow: 0 26px 70px rgba(0,0,0,0.42);
}

.contact-form {
  position: relative;
  overflow: hidden;
}

.contact-form::after {
  content: '';
  position: absolute;
  inset: auto -20% -30% 40%;
  height: 160px;
  background: radial-gradient(circle, rgba(248,228,167,0.16), transparent 65%);
  pointer-events: none;
}

.form-status {
  color: rgba(196, 255, 217, 0.94);
  font-weight: 700;
}

.modal-cta {
  width: fit-content;
}

.reveal {
  will-change: opacity, transform;
}

.reveal.visible {
  animation: revealPremium 0.8s cubic-bezier(.2,.8,.2,1) both;
}

@keyframes luxuryShowcaseFloat {
  0%, 100% { transform: translate(-50%, -50%) rotateY(-10deg) translateZ(45px) translateY(0); }
  50% { transform: translate(-50%, -50%) rotateY(-6deg) translateZ(55px) translateY(-12px); }
}

@keyframes slowResidenceZoom {
  0% { transform: scale(1); }
  100% { transform: scale(1.075); }
}

@keyframes luxuryShine {
  0%, 42% { transform: translateX(-120%); opacity: 0; }
  48% { opacity: 0.65; }
  68%, 100% { transform: translateX(120%); opacity: 0; }
}

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

@keyframes whatsappPulseLuxury {
  0%, 100% { transform: translateY(0); box-shadow: 0 18px 44px rgba(36, 211, 102, 0.34), 0 0 0 7px rgba(36, 211, 102, 0.11); }
  50% { transform: translateY(-4px); box-shadow: 0 24px 54px rgba(36, 211, 102, 0.42), 0 0 0 12px rgba(36, 211, 102, 0.08); }
}

@keyframes softOrb {
  from { transform: translate3d(0,0,0) scale(1); }
  to { transform: translate3d(-30px,42px,0) scale(1.18); }
}

@keyframes galleryBreath {
  from { transform: scale(1); }
  to { transform: scale(1.045); }
}

@keyframes revealPremium {
  from { opacity: 0; transform: translateY(34px) scale(0.985); filter: blur(8px); }
  to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

@media (max-width: 760px) {
  .whatsapp-float {
    right: 14px;
    left: 14px;
    bottom: 14px;
    align-items: center;
    padding: 13px 18px 13px 52px;
  }

  .whatsapp-reservation {
    display: grid;
  }

  .whatsapp-reservation .btn {
    width: 100%;
  }

  .property-actions {
    justify-content: flex-start;
    width: 100%;
  }

  .property-actions > * {
    flex: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-showcase,
  .hero-showcase-media img,
  .gallery-item img,
  .whatsapp-float,
  .whatsapp-reservation::after {
    animation: none !important;
  }
}


/* ===== Ultra 3D / Motion Expansion ===== */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  z-index: 120;
  background: rgba(255,255,255,0.06);
  pointer-events: none;
}

.scroll-progress span {
  display: block;
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--gold-2), var(--gold), #ffffff);
  box-shadow: 0 0 22px rgba(248,228,167,0.55);
  transform-origin: left center;
}

.lux-marquee {
  overflow: hidden;
  padding: 0 0 10px;
}

.lux-marquee-track {
  width: max-content;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  animation: marqueeFlow 26s linear infinite;
}

.lux-marquee-track span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.11);
  background: rgba(255,255,255,0.05);
  color: rgba(255,250,240,0.88);
  box-shadow: 0 10px 28px rgba(0,0,0,0.18);
  white-space: nowrap;
}

.lux-marquee-track span::before {
  content: '◆';
  color: var(--gold-2);
  font-size: 0.7rem;
}

.residence-stage {
  margin-top: 78px;
}

.stage-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 38px;
  align-items: center;
}

.stage-copy {
  min-width: 0;
}

.stage-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.stage-tab {
  padding: 11px 16px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  color: var(--text);
  cursor: pointer;
  transition: 0.28s ease;
}

.stage-tab.active,
.stage-tab:hover {
  background: linear-gradient(135deg, rgba(248,228,167,0.18), rgba(255,255,255,0.08));
  border-color: rgba(248,228,167,0.28);
  box-shadow: 0 10px 28px rgba(215,181,109,0.16);
  transform: translateY(-2px);
}

.stage-detail-card {
  position: relative;
  overflow: hidden;
  padding: 28px;
  border-radius: 30px;
  border: 1px solid rgba(255,255,255,0.1);
  background:
    radial-gradient(circle at 0% 0%, rgba(248,228,167,0.16), transparent 28%),
    linear-gradient(180deg, rgba(255,255,255,0.07), rgba(255,255,255,0.04));
  box-shadow: var(--shadow);
}

.stage-detail-card::after {
  content: '';
  position: absolute;
  right: -80px;
  bottom: -90px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(248,228,167,0.16), transparent 68%);
}

.stage-detail-card h3 {
  font-size: clamp(1.8rem, 3vw, 3rem);
  margin: 8px 0 12px;
}

.stage-detail-card p {
  color: var(--muted);
  line-height: 1.7;
}

.stage-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 24px;
}

.stage-points span {
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,250,240,0.84);
}

.stage-visual {
  position: relative;
  min-height: 610px;
  perspective: 1600px;
}

.stage-stack {
  position: relative;
  width: min(100%, 540px);
  margin-inline: auto;
  min-height: 610px;
  transform-style: preserve-3d;
  transition: transform 0.35s ease;
}

.stage-panel {
  position: absolute;
  inset: 0;
  border-radius: 36px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.12);
  background: #111;
  box-shadow: 0 28px 70px rgba(0,0,0,0.42);
  opacity: 0.55;
  transition: transform 0.75s cubic-bezier(.2,.8,.2,1), opacity 0.55s ease, filter 0.55s ease;
  transform-style: preserve-3d;
}

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

.stage-panel::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7,8,13,0.05), rgba(7,8,13,0.14) 35%, rgba(7,8,13,0.55));
}

.stage-panel[data-depth="0"] { transform: translate3d(0,0,140px) rotateY(0deg) scale(1); opacity: 1; filter: blur(0); z-index: 4; }
.stage-panel[data-depth="1"] { transform: translate3d(-30px,32px,70px) rotateY(14deg) scale(0.92); opacity: 0.78; filter: blur(0.5px); z-index: 3; }
.stage-panel[data-depth="2"] { transform: translate3d(26px,62px,10px) rotateY(-16deg) scale(0.87); opacity: 0.6; filter: blur(1px); z-index: 2; }
.stage-panel[data-depth="3"] { transform: translate3d(0,92px,-50px) rotateY(10deg) scale(0.82); opacity: 0.42; filter: blur(1.2px); z-index: 1; }

.stage-orbit {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(248,228,167,0.18);
  pointer-events: none;
}

.orbit-a {
  width: 620px;
  height: 620px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: spinOrbit 26s linear infinite;
}

.orbit-b {
  width: 480px;
  height: 480px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: spinOrbitReverse 22s linear infinite;
}

.service-ribbon {
  margin-top: 42px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.service-ribbon > div {
  padding: 22px 20px;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.05);
  box-shadow: 0 18px 42px rgba(0,0,0,0.22);
  transform: translateY(var(--scroll-depth, 0));
}

.service-ribbon strong,
.service-ribbon span {
  display: block;
}

.service-ribbon strong {
  font-size: 1.04rem;
  margin-bottom: 8px;
}

.service-ribbon span {
  color: var(--muted);
  line-height: 1.55;
}

.property-card,
.gallery-item,
.district-card,
.service-ribbon > div,
.stage-detail-card,
.lux-device {
  transform: translateY(var(--scroll-depth, 0));
}

.clicked-whatsapp {
  animation: clickWhatsappPulse 0.7s ease;
}

@keyframes marqueeFlow {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes spinOrbit {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes spinOrbitReverse {
  from { transform: translate(-50%, -50%) rotate(360deg); }
  to { transform: translate(-50%, -50%) rotate(0deg); }
}

@keyframes clickWhatsappPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.06); }
  100% { transform: scale(1); }
}

@media (max-width: 1024px) {
  .stage-grid {
    grid-template-columns: 1fr;
  }

  .stage-visual {
    min-height: 530px;
  }

  .stage-stack {
    min-height: 530px;
  }

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

@media (max-width: 720px) {
  .stage-visual {
    min-height: 410px;
  }

  .stage-stack {
    min-height: 410px;
    width: 100%;
  }

  .orbit-a,
  .orbit-b {
    display: none;
  }

  .service-ribbon {
    grid-template-columns: 1fr;
  }

  .stage-panel[data-depth="0"] { transform: translate3d(0,0,0) scale(1); }
  .stage-panel[data-depth="1"] { transform: translate3d(-12px,18px,0) rotateY(8deg) scale(0.94); }
  .stage-panel[data-depth="2"] { transform: translate3d(12px,34px,0) rotateY(-8deg) scale(0.9); }
  .stage-panel[data-depth="3"] { transform: translate3d(0,48px,0) scale(0.86); }
}


/* ===== CasaLuxe Paradise Pro: tarifs, langues, SEO, vitesse & sécurité ===== */

:root {
  --secure-green: #23d160;
  --deep-glass: rgba(255, 255, 255, 0.065);
}

html[dir="rtl"] body {
  text-align: right;
}

html[dir="rtl"] .nav,
html[dir="rtl"] .hero-actions,
html[dir="rtl"] .property-footer,
html[dir="rtl"] .stage-tabs,
html[dir="rtl"] .tariff-grid,
html[dir="rtl"] .booking-engine {
  direction: rtl;
}

.language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.055);
}

.lang-btn {
  width: 38px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(255,250,240,0.72);
  font-weight: 900;
  font-size: 0.75rem;
  cursor: pointer;
  transition: 0.24s ease;
}

.lang-btn.active,
.lang-btn:hover {
  color: #12100b;
  background: linear-gradient(135deg, var(--gold-2), var(--gold));
  box-shadow: 0 8px 18px rgba(215,181,109,0.24);
}

.tariffs {
  margin-top: 52px;
  position: relative;
}

.tariffs::before {
  content: '';
  position: absolute;
  width: 420px;
  height: 420px;
  right: -180px;
  top: 90px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(36, 211, 102, 0.13), transparent 65%);
  pointer-events: none;
  animation: softOrb 8s ease-in-out infinite alternate;
}

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

.tariff-card {
  position: relative;
  overflow: hidden;
  padding: clamp(22px, 4vw, 34px);
  min-height: 260px;
  border-radius: 32px;
  border: 1px solid rgba(255,255,255,0.12);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.088), rgba(255,255,255,0.045)),
    radial-gradient(circle at 15% 10%, rgba(248,228,167,0.18), transparent 34%);
  box-shadow: 0 28px 70px rgba(0,0,0,0.32);
  transform-style: preserve-3d;
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.tariff-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 20%, rgba(255,255,255,0.16), transparent 60%);
  transform: translateX(-130%);
  transition: transform 0.75s ease;
}

.tariff-card:hover::before {
  transform: translateX(130%);
}

.tariff-card:hover {
  transform: perspective(1000px) rotateX(3deg) rotateY(-4deg) translateY(-8px);
  border-color: rgba(248,228,167,0.3);
  box-shadow: 0 36px 90px rgba(0,0,0,0.44), 0 0 48px rgba(215,181,109,0.12);
}

.tariff-card.featured {
  background:
    linear-gradient(145deg, rgba(248,228,167,0.2), rgba(255,255,255,0.055)),
    radial-gradient(circle at 90% 5%, rgba(36,211,102,0.18), transparent 34%);
}

.tariff-card span,
.tariff-card strong,
.tariff-card small,
.tariff-card p {
  position: relative;
  z-index: 1;
  display: block;
}

.tariff-card span {
  color: rgba(248,228,167,0.92);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 900;
  font-size: 0.78rem;
}

.tariff-card strong {
  margin: 18px 0 8px;
  font-family: var(--font-display);
  font-size: clamp(3rem, 5vw, 5.4rem);
  line-height: 0.85;
  letter-spacing: -0.08em;
}

.tariff-card small {
  color: rgba(255,250,240,0.7);
  font-weight: 800;
}

.tariff-card p {
  margin: 22px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.booking-engine {
  margin-top: 22px;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 18px;
  padding: clamp(22px, 4vw, 38px);
  border-radius: 34px;
  border: 1px solid rgba(255,255,255,0.12);
  background:
    linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0.04)),
    radial-gradient(circle at 0% 100%, rgba(248,228,167,0.14), transparent 34%);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.booking-copy h3 {
  font-size: clamp(1.9rem, 3.2vw, 3.2rem);
  margin: 10px 0 12px;
}

.booking-copy p {
  color: var(--muted);
  line-height: 1.7;
}

.hashtag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 20px;
}

.hashtag-cloud span,
.seo-tags span {
  padding: 8px 11px;
  border-radius: 999px;
  color: rgba(255,250,240,0.76);
  background: rgba(255,255,255,0.055);
  border: 1px solid rgba(255,255,255,0.1);
  font-size: 0.74rem;
}

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

.quick-booking-form label,
.quick-booking-form .booking-total {
  display: grid;
  gap: 8px;
}

.quick-booking-form label span,
.quick-booking-form .booking-total span {
  color: rgba(248,228,167,0.86);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.quick-booking-form input,
.quick-booking-form select {
  min-height: 54px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(0,0,0,0.22);
  color: var(--text);
  padding: 0 16px;
  outline: none;
  transition: 0.22s ease;
}

.quick-booking-form input:focus,
.quick-booking-form select:focus,
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: rgba(248,228,167,0.48);
  box-shadow: 0 0 0 4px rgba(248,228,167,0.1);
}

.booking-total {
  padding: 14px 16px;
  border-radius: 20px;
  background: rgba(255,255,255,0.065);
  border: 1px solid rgba(255,255,255,0.11);
}

.booking-total strong {
  font-family: var(--font-display);
  font-size: 2.1rem;
  line-height: 1;
}

.quick-booking-form button {
  min-height: 58px;
  align-self: end;
}

.quick-booking-form .form-status {
  grid-column: 1 / -1;
  margin: 0;
}

.hp-field {
  position: absolute !important;
  left: -9999px !important;
  opacity: 0 !important;
  width: 1px !important;
  height: 1px !important;
  pointer-events: none !important;
}

.trust-security {
  margin-top: 76px;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 22px;
  align-items: start;
  padding: clamp(24px, 4vw, 42px);
  border-radius: 34px;
  border: 1px solid rgba(255,255,255,0.12);
  background:
    radial-gradient(circle at 8% 10%, rgba(36,211,102,0.14), transparent 32%),
    linear-gradient(145deg, rgba(255,255,255,0.072), rgba(255,255,255,0.038));
  box-shadow: var(--shadow);
}

.trust-security h2 {
  margin: 10px 0 12px;
}

.trust-security p {
  color: var(--muted);
  line-height: 1.75;
}

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

.trust-grid article {
  min-height: 150px;
  padding: 20px;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.05);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.trust-grid article:hover {
  transform: translateY(-5px);
  border-color: rgba(36,211,102,0.28);
}

.trust-grid strong,
.trust-grid span {
  display: block;
}

.trust-grid strong {
  margin-bottom: 10px;
  color: rgba(248,228,167,0.94);
}

.trust-grid span {
  color: var(--muted);
  line-height: 1.6;
}

.security-toast {
  position: fixed;
  left: 50%;
  bottom: 96px;
  transform: translate(-50%, 22px);
  z-index: 200;
  max-width: min(420px, calc(100% - 36px));
  padding: 14px 18px;
  border-radius: 999px;
  border: 1px solid rgba(248,228,167,0.2);
  background: rgba(8,10,16,0.9);
  color: var(--text);
  box-shadow: 0 18px 48px rgba(0,0,0,0.42);
  backdrop-filter: blur(18px);
  opacity: 0;
  pointer-events: none;
  transition: 0.28s ease;
  text-align: center;
  font-weight: 800;
}

.security-toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.whatsapp-float {
  min-width: 168px;
  justify-content: center;
}

.whatsapp-float strong {
  font-size: 0.82rem;
}

.whatsapp-float span {
  font-size: 0.72rem;
}

.seo-tags {
  width: min(1180px, calc(100% - 36px));
  margin: 36px auto 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  opacity: 0.72;
}

img {
  content-visibility: auto;
}

.properties,
.immersive-gallery,
.districts,
.experience,
.residence-stage,
.trust-security,
.contact {
  content-visibility: auto;
  contain-intrinsic-size: 1px 900px;
}

@media (max-width: 1100px) {
  .site-header {
    display: grid;
    grid-template-columns: auto auto auto;
  }

  .language-switcher {
    justify-self: end;
  }
}

@media (max-width: 900px) {
  .booking-engine,
  .trust-security {
    grid-template-columns: 1fr;
  }

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

  .quick-booking-form {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 760px) {
  .language-switcher {
    position: fixed;
    right: 22px;
    top: 82px;
    z-index: 65;
    background: rgba(8,10,16,0.82);
    backdrop-filter: blur(18px);
  }

  .tariff-card {
    min-height: auto;
  }

  .seo-tags {
    padding-bottom: 66px;
  }
}


/* ===== WordPress Compact Professional Layout ===== */
/* Objectif : bannière propre, curseur discret, sections serrées, aucune carte vide, images/titres/descriptions visibles. */

html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  line-height: 1.48;
}

body.admin-bar .site-header {
  top: 42px;
}

.section-shell {
  width: min(1200px, calc(100% - 24px));
}

.site-header {
  top: 10px;
  width: min(1200px, calc(100% - 24px));
  gap: 10px;
  padding: 9px 10px 9px 14px;
}

.site-header.scrolled {
  top: 6px;
}

.nav {
  gap: 2px;
}

.nav a {
  padding: 9px 10px;
  white-space: nowrap;
}

.language-switcher {
  flex-shrink: 0;
}

.cursor-orb {
  width: 118px;
  height: 118px;
  opacity: 0.55;
  background:
    radial-gradient(circle at center, rgba(248,228,167,0.22), rgba(215,181,109,0.08) 36%, transparent 70%);
  filter: blur(1px);
  z-index: -1;
}

.hero {
  min-height: auto;
  grid-template-columns: minmax(0, 1.05fr) minmax(390px, 0.95fr);
  gap: clamp(18px, 3vw, 34px);
  padding: clamp(92px, 9vw, 116px) 0 34px;
  align-items: stretch;
}

.hero-copy {
  align-self: center;
}

.hero-copy h1 {
  max-width: 850px;
  margin-bottom: 16px;
  font-size: clamp(2.65rem, 7vw, 6.5rem);
}

.hero-copy p {
  max-width: 740px;
  margin-bottom: 20px;
}

.hero-actions {
  margin-top: 0;
  gap: 10px;
}

.hero-stats {
  margin-top: 18px;
  gap: 10px;
}

.hero-stats div {
  min-height: 76px;
  padding: 14px 16px;
}

.hero-visual {
  min-height: 548px;
  overflow: hidden;
  border-radius: 38px;
  border: 1px solid rgba(255,255,255,0.12);
  background:
    radial-gradient(circle at 70% 10%, rgba(248,228,167,0.16), transparent 34%),
    linear-gradient(145deg, rgba(255,255,255,0.08), rgba(255,255,255,0.035));
  box-shadow: var(--shadow);
}

.scene-3d {
  position: relative;
  inset: auto;
  min-height: 548px;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.hero-showcase {
  position: relative;
  left: auto;
  top: auto;
  width: min(88%, 430px);
  min-height: 470px;
  transform: rotateY(-7deg) translateZ(42px);
  z-index: 4;
  margin: 0 auto;
}

.hero-showcase-media {
  height: 470px;
}

.hero-showcase-copy {
  padding: 20px 20px 22px;
}

.hero-showcase-copy strong {
  font-size: clamp(1.25rem, 2.6vw, 1.72rem);
}

.building-3d {
  left: 52%;
  top: 52%;
  width: 190px;
  height: 380px;
  opacity: 0.34;
  z-index: 1;
  pointer-events: none;
}

.orbit-ring {
  z-index: 0;
  opacity: 0.72;
}

.card-front,
.card-back {
  z-index: 5;
  width: min(46%, 230px);
  box-shadow: 0 18px 42px rgba(0,0,0,0.32);
}

.card-front {
  left: 14px;
  top: 18px;
}

.card-back {
  right: 14px;
  bottom: 18px;
}

.search-panel,
.properties,
.districts,
.experience,
.invest,
.contact,
.tariffs,
.residence-stage,
.trust-security {
  padding-block: clamp(34px, 5vw, 54px);
}

.search-panel {
  margin-top: 0;
  padding: clamp(18px, 3vw, 24px);
}

.panel-header {
  gap: 16px;
  margin-bottom: 18px;
}

.filters {
  gap: 12px;
}

.lux-marquee {
  margin-top: 0;
  padding: 4px 0 0;
}

.section-title {
  margin-bottom: 20px;
}

.section-title h2 {
  margin-bottom: 10px;
}

.results-meta {
  margin-bottom: 16px;
}

.property-grid {
  gap: 16px;
  align-items: stretch;
}

.property-card {
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.property-image {
  height: 225px;
  min-height: 225px;
  flex: 0 0 225px;
}

.property-photo {
  object-fit: cover;
  object-position: center;
}

.property-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px;
}

.property-content h3 {
  margin: 0;
  font-size: clamp(1.34rem, 2vw, 1.72rem);
  line-height: 1.05;
}

.property-desc {
  display: block;
  min-height: 0;
  margin: 0;
  color: rgba(255,250,240,0.7);
  line-height: 1.55;
}

.property-features {
  margin-top: 0;
}

.property-footer {
  margin-top: auto;
  gap: 12px;
}

.property-actions {
  gap: 8px;
}

.tariffs {
  margin-top: 0;
}

.tariff-grid {
  gap: 14px;
}

.tariff-card {
  min-height: 0;
  padding: clamp(20px, 3vw, 28px);
}

.booking-engine {
  margin-top: 16px;
  gap: 16px;
  padding: clamp(18px, 3vw, 30px);
}

.immersive-gallery {
  margin-top: 0;
}

.gallery-band {
  gap: 12px;
}

.gallery-item,
.gallery-item.wide,
.gallery-item.tall {
  min-height: 220px;
}

.district-grid {
  gap: 14px;
}

.district-card {
  min-height: 250px;
}

.experience {
  gap: 24px;
}

.stage-grid {
  gap: 20px;
}

.stage-visual,
.stage-stack {
  min-height: 520px;
}

.service-ribbon {
  margin-top: 28px;
  gap: 12px;
}

.trust-security {
  margin-top: 34px;
  gap: 18px;
}

.contact-form {
  gap: 14px;
}

.whatsapp-reservation {
  margin-top: 34px;
  margin-bottom: 28px;
}

.footer {
  padding-block: 24px;
}

.seo-tags {
  margin-top: 20px;
}

img {
  display: block;
}

@media (pointer: coarse) {
  .cursor-orb {
    display: none;
  }
}

@media (max-width: 1120px) {
  .site-header {
    display: flex;
    flex-wrap: wrap;
    border-radius: 28px;
  }

  .nav {
    order: 3;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }

  .language-switcher {
    margin-left: auto;
  }

  .hero {
    grid-template-columns: 1fr;
    padding-top: 150px;
  }

  .hero-visual,
  .scene-3d {
    min-height: 520px;
  }

  .hero-showcase {
    width: min(92%, 520px);
  }
}

@media (max-width: 760px) {
  .section-shell {
    width: min(100% - 18px, 680px);
  }

  .site-header {
    width: min(100% - 18px, 680px);
    top: 8px;
    padding: 8px 10px;
  }

  .brand small {
    display: none;
  }

  .nav {
    display: none;
  }

  .nav.open {
    display: grid;
    grid-template-columns: 1fr;
    padding: 10px 0 4px;
  }

  .nav-toggle {
    display: flex;
  }

  .language-switcher {
    position: static;
    margin-left: 0;
  }

  .hero {
    padding-top: 108px;
    padding-bottom: 24px;
    gap: 14px;
  }

  .hero-copy h1 {
    font-size: clamp(2.35rem, 12vw, 4rem);
  }

  .hero-actions,
  .mode-tabs,
  .filters,
  .property-footer,
  .whatsapp-reservation {
    display: grid;
  }

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

  .hero-visual,
  .scene-3d {
    min-height: 420px;
    border-radius: 28px;
  }

  .hero-showcase {
    width: calc(100% - 22px);
    min-height: 380px;
    transform: none;
  }

  .hero-showcase-media {
    height: 380px;
  }

  .card-front,
  .card-back,
  .building-3d {
    display: none;
  }

  .property-grid,
  .tariff-grid,
  .gallery-band,
  .district-grid,
  .trust-grid {
    grid-template-columns: 1fr;
  }

  .property-image {
    height: 210px;
    min-height: 210px;
    flex-basis: 210px;
  }

  .stage-visual,
  .stage-stack {
    min-height: 380px;
  }

  .whatsapp-float {
    left: 10px;
    right: 10px;
    bottom: 10px;
  }
}

@media (max-width: 420px) {
  .hero-showcase,
  .hero-showcase-media {
    min-height: 340px;
    height: 340px;
  }

  .property-content,
  .stage-detail-card,
  .booking-engine,
  .trust-security {
    padding: 16px;
  }
}


/* ===== CasaLuxe update: real slider, 10 propositions, filters 400–2000 DH ===== */

.real-slider {
  isolation: isolate;
}

.hero-slider-price {
  position: absolute;
  right: 16px;
  top: 16px;
  z-index: 3;
  padding: 10px 14px;
  border-radius: 999px;
  color: #141008;
  font-weight: 950;
  background: linear-gradient(135deg, var(--gold-2), var(--gold));
  box-shadow: 0 14px 32px rgba(215,181,109,0.28);
  backdrop-filter: blur(12px);
}

.hero-slider-controls {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  pointer-events: none;
}

.hero-slider-btn,
.hero-dot {
  pointer-events: auto;
  border: 0;
  cursor: pointer;
}

.hero-slider-btn {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--text);
  font-size: 1.55rem;
  line-height: 1;
  background: rgba(0,0,0,0.42);
  border: 1px solid rgba(255,255,255,0.18);
  backdrop-filter: blur(14px);
  transition: transform 0.22s ease, background 0.22s ease, border-color 0.22s ease;
}

.hero-slider-btn:hover {
  transform: translateY(-2px) scale(1.04);
  background: rgba(0,0,0,0.58);
  border-color: rgba(248,228,167,0.42);
}

.hero-slider-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(0,0,0,0.34);
  border: 1px solid rgba(255,255,255,0.14);
  backdrop-filter: blur(14px);
}

.hero-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border-radius: 999px;
  background: rgba(255,255,255,0.46);
  transition: width 0.22s ease, background 0.22s ease, transform 0.22s ease;
}

.hero-dot.active {
  width: 28px;
  background: linear-gradient(135deg, var(--gold-2), var(--gold));
  transform: translateY(-1px);
}

.filters {
  grid-template-columns: minmax(180px, 1.2fr) minmax(150px, 0.85fr) minmax(170px, 1fr) minmax(190px, 1.15fr) auto;
}

.filters select#districtSelect {
  min-width: 0;
}

.property-mode-chip {
  text-transform: none;
}

.property-badges .badge.gold,
.badge.gold {
  font-weight: 950;
  letter-spacing: 0.02em;
}

.recommendation-state {
  padding: 24px;
  margin-bottom: 0;
  text-align: left;
  background:
    radial-gradient(circle at 0 0, rgba(248,228,167,0.16), transparent 34%),
    linear-gradient(145deg, rgba(255,255,255,0.075), rgba(255,255,255,0.035));
}

.recommendation-state h3 {
  margin-bottom: 8px;
}

.recommendation-state p {
  margin-bottom: 0;
  line-height: 1.7;
}

.tariff-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.tariff-card.compact-rate strong {
  font-size: clamp(2.4rem, 3.6vw, 4.1rem);
}

.tariff-card.compact-rate p {
  font-size: 0.94rem;
}

.property-grid {
  grid-auto-flow: row;
}

.property-card {
  min-height: 0;
}

.property-image {
  background: #111;
}

.property-photo {
  object-fit: cover;
  object-position: center;
}

.property-content h3,
.property-desc,
.hero-showcase-copy strong,
.hero-showcase-copy small {
  overflow-wrap: anywhere;
}

@media (max-width: 1180px) {
  .filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .filter-submit {
    min-height: 52px;
  }

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

  .tariff-card.featured {
    grid-column: auto;
  }
}

@media (max-width: 760px) {
  .filters {
    grid-template-columns: 1fr;
  }

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

  .hero-slider-price {
    left: 14px;
    right: auto;
    top: 14px;
    font-size: 0.78rem;
  }

  .hero-slider-controls {
    left: 12px;
    right: 12px;
    bottom: 12px;
  }

  .hero-slider-btn {
    width: 38px;
    height: 38px;
  }
}
