:root {
  --ink: #171614;
  --soft-ink: #55504a;
  --ivory: #f7f2e9;
  --paper: #fffaf2;
  --sand: #dcc9aa;
  --terracotta: #a9573b;
  --garden: #16483d;
  --jade: #4f7f73;
  --gold: #c6a15b;
  --line: rgba(23, 22, 20, 0.14);
  --shadow: 0 28px 80px rgba(23, 22, 20, 0.18);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--ivory);
}

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

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

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

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 98px;
  padding: 0 clamp(18px, 4vw, 56px);
  color: var(--paper);
  border-bottom: 1px solid rgba(255, 250, 242, 0.08);
  background: linear-gradient(to bottom, rgba(10, 9, 8, 0.9), rgba(10, 9, 8, 0.62));
  backdrop-filter: blur(6px);
}

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

.brand-logo {
  display: block;
  width: auto;
  object-fit: contain;
}

.brand-logo-icon {
  width: 76px;
  height: 76px;
  border: 1px solid rgba(255, 250, 242, 0.35);
  border-radius: 50%;
  object-fit: cover;
}

.brand-copy {
  display: block;
  line-height: 1.12;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-family: Georgia, serif;
  font-size: 0.82rem;
  letter-spacing: 0;
}

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

.brand small {
  color: currentColor;
  font-size: 0.78rem;
  opacity: 0.68;
}

.brand em {
  margin-top: 3px;
  color: var(--gold);
  font-size: 0.64rem;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 32px);
  font-size: 0.92rem;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 24px);
}

.preference-switchers {
  display: flex;
  align-items: center;
  gap: 8px;
}

.language-switcher,
.currency-switcher {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px;
  border: 1px solid rgba(255, 250, 242, 0.28);
  border-radius: 999px;
}

.language-switcher a,
.currency-switcher a {
  display: grid;
  place-items: center;
  min-width: 34px;
  min-height: 34px;
  padding-inline: 8px;
  border-radius: 999px;
  color: rgba(255, 250, 242, 0.72);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  transition: color 160ms ease, background-color 160ms ease;
}

.language-switcher a:hover,
.language-switcher a:focus-visible,
.currency-switcher a:hover,
.currency-switcher a:focus-visible {
  color: var(--paper);
  background: rgba(255, 250, 242, 0.12);
  outline: none;
}

.language-switcher a:focus-visible,
.currency-switcher a:focus-visible {
  box-shadow: 0 0 0 2px var(--gold);
}

.language-switcher a.is-active,
.currency-switcher a.is-active {
  color: #17120d;
  background: var(--gold);
}

.currency-switcher a {
  min-width: 42px;
  letter-spacing: 0.03em;
}

.currency-notice,
.currency-disclaimer {
  color: currentColor;
  font-size: 0.76rem;
  opacity: 0.68;
}

.currency-notice {
  margin-top: 12px;
  text-align: center;
}

.currency-disclaimer {
  margin-top: 8px;
}

.hero {
  position: relative;
  min-height: 76vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--paper);
}

.property-hero {
  position: relative;
  min-height: 82vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--paper);
}

.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.property-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 8, 7, 0.76), rgba(8, 8, 7, 0.18) 58%, rgba(8, 8, 7, 0.4)),
    linear-gradient(0deg, rgba(8, 8, 7, 0.76), transparent 42%);
}

.hero-content {
  position: relative;
  width: min(820px, calc(100% - 36px));
  margin: 0 auto;
  padding: 120px 0 112px;
}

.property-hero-content {
  position: relative;
  width: min(980px, calc(100% - 36px));
  margin: 0 auto;
  padding: 130px 0 112px;
}

.home-hero .hero-content {
  display: grid;
  grid-template-columns: minmax(420px, 0.9fr) minmax(360px, 0.72fr);
  gap: clamp(48px, 7vw, 120px);
  align-items: center;
  width: min(1500px, calc(100% - 72px));
  padding: 145px 0 110px;
}

.home-hero-copy {
  grid-column: 1;
  max-width: 680px;
}

.home-hero-brand {
  position: static;
  grid-column: 2;
  width: min(100%, 460px);
  z-index: 1;
  justify-self: end;
  align-self: center;
}

.home-hero-brand img {
  position: static;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.home-hero-brand-fallback {
  display: grid;
  gap: 4px;
  color: var(--paper);
}

.home-hero-brand-fallback strong {
  font-size: 1.6rem;
}

.home-hero-brand-fallback span {
  color: var(--gold);
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

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

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

h1,
h2 {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 750;
  letter-spacing: 0;
}

h1 {
  margin-bottom: 20px;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.05;
}

.home-hero h1 {
  max-width: 520px;
  font-size: clamp(1.65rem, 2.3vw, 2.3rem);
  line-height: 1.08;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(1.3rem, 2vw, 2rem);
  line-height: 1.08;
}

h3 {
  font-size: 1.08rem;
}

.hero-content p:not(.eyebrow) {
  max-width: 680px;
  color: rgba(255, 250, 242, 0.86);
  font-size: clamp(1rem, 2vw, 1.28rem);
  line-height: 1.7;
}

.property-hero-content p:not(.eyebrow) {
  max-width: 680px;
  color: rgba(255, 250, 242, 0.86);
  font-size: clamp(1rem, 2vw, 1.28rem);
  line-height: 1.7;
}

.property-hero-content h1 {
  max-width: 780px;
  font-size: clamp(2rem, 4vw, 3.8rem);
  line-height: 1.05;
}

.back-link {
  display: inline-flex;
  margin-bottom: 22px;
  color: rgba(255, 250, 242, 0.8);
  font-weight: 700;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 700;
}

.button.primary {
  background: var(--gold);
  color: #17120b;
}

.button.secondary {
  border-color: rgba(255, 250, 242, 0.5);
  color: var(--paper);
  background: rgba(255, 250, 242, 0.08);
}

.button.dark {
  background: var(--garden);
  color: var(--paper);
}

.search-band {
  width: min(1120px, calc(100% - 36px));
  margin: -46px auto 0;
  position: relative;
  z-index: 2;
  background: var(--paper);
  border: 1px solid rgba(198, 161, 91, 0.38);
  box-shadow: var(--shadow);
}

.search-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
}

.search-summary > div {
  padding: 18px;
  background: var(--paper);
}

.search-summary span {
  display: block;
  margin-bottom: 8px;
  color: var(--soft-ink);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.search-summary strong {
  font-size: 1rem;
}

.public-search-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
}

.public-search-form label,
.search-actions {
  display: grid;
  gap: 8px;
  padding: 18px;
  background: var(--paper);
}

.public-search-form label {
  color: var(--soft-ink);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.public-search-form input,
.public-search-form select {
  width: 100%;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: #fffdfa;
  color: var(--ink);
  padding: 12px;
  outline-color: var(--gold);
}

.search-actions {
  grid-template-columns: 1fr;
  align-content: center;
  gap: 10px;
}

.search-actions .button {
  min-height: 44px;
}

.button.ghost {
  border-color: var(--line);
  color: var(--ink);
  background: transparent;
}

.section,
.site-footer {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 64px 0;
}

.property-section-tight {
  padding-top: 44px;
  padding-bottom: 44px;
}

.section-heading {
  display: grid;
  gap: 12px;
  max-width: 1040px;
  align-items: start;
}

.section-heading > div {
  max-width: 960px;
}

.section-heading h2 {
  max-width: 960px;
  margin-bottom: 0;
}

.section-heading p:not(.eyebrow) {
  max-width: 920px;
  color: var(--soft-ink);
  line-height: 1.65;
}

.home-section-action {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

.home-professional-access {
  display: flex;
  justify-content: center;
  padding: 0 18px 28px;
}

.home-professional-access a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--soft-ink);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  opacity: 0.62;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 4px;
  transition: color 160ms ease, opacity 160ms ease, text-decoration-color 160ms ease;
}

.home-professional-access a:hover,
.home-professional-access a:focus-visible {
  color: var(--ink);
  opacity: 1;
  text-decoration-color: currentColor;
}

.home-professional-access a:focus-visible {
  border-radius: 3px;
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
}

.service-card,
.agency-panel {
  background: var(--paper);
  border: 1px solid var(--line);
}

.service-card {
  padding: clamp(24px, 4vw, 42px);
}

.service-card span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-bottom: 28px;
  border: 1px solid rgba(198, 161, 91, 0.48);
  border-radius: 50%;
  color: var(--gold);
  background:
    linear-gradient(145deg, rgba(255, 250, 242, 0.92), rgba(220, 201, 170, 0.18)),
    var(--paper);
  box-shadow: inset 0 0 0 6px rgba(198, 161, 91, 0.08);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.service-card h3 {
  margin-bottom: 14px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.2rem;
  font-weight: 750;
}

.service-card p,
.agency-panel p {
  color: var(--soft-ink);
  line-height: 1.75;
}

.service-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.service-detail-card,
.service-process-step {
  border: 1px solid var(--line);
  background: var(--paper);
  padding: clamp(22px, 3vw, 34px);
}

.service-detail-card-wide {
  grid-column: span 3;
}

.service-detail-card span,
.service-process-step span {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--gold);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.service-detail-card h3,
.service-process-step h3 {
  margin-bottom: 12px;
}

.service-detail-card p,
.service-process-step p {
  color: var(--soft-ink);
  line-height: 1.72;
}

.service-process {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: 28px;
  background: var(--line);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 28px);
  margin-top: 34px;
}

.team-card {
  display: grid;
  gap: 18px;
  align-content: start;
  border: 1px solid rgba(198, 161, 91, 0.28);
  background: linear-gradient(135deg, #fffdfa 0%, #f8f0df 100%);
  padding: clamp(18px, 3vw, 26px);
}

.team-card-media {
  display: flex;
}

.team-card-photo,
.team-card-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
}

.team-card-photo {
  object-fit: cover;
  border: 2px solid rgba(198, 161, 91, 0.42);
}

.team-card-avatar {
  display: grid;
  place-items: center;
  color: var(--paper);
  background: var(--garden);
  font-size: 1.2rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.team-card-body {
  display: grid;
  gap: 10px;
}

.team-card-body h3 {
  margin: 0;
  color: var(--ink);
  font-size: 1.25rem;
}

.team-card-title {
  margin: -4px 0 0;
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.team-card-bio {
  margin: 0;
  color: var(--soft-ink);
  font-size: 0.95rem;
  line-height: 1.7;
}

.team-card-methods {
  display: grid;
  gap: 8px;
  margin-top: 4px;
}

.team-card-method {
  display: grid;
  gap: 2px;
  padding: 10px 12px;
  border: 1px solid rgba(27, 48, 43, 0.12);
  background: rgba(255, 253, 250, 0.78);
}

.team-card-method:hover {
  border-color: rgba(198, 161, 91, 0.55);
}

.team-card-method span {
  color: var(--gold);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.team-card-method strong {
  color: var(--ink);
  font-size: 0.92rem;
  overflow-wrap: anywhere;
}

.agency-panel {
  padding: clamp(28px, 5vw, 56px);
}

.agency-panel h2 {
  max-width: 980px;
}

.agency-panel p {
  max-width: 1000px;
}

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

.property-card {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  overflow: hidden;
}

.property-card img,
.property-fallback {
  width: 100%;
  aspect-ratio: 1.25;
  object-fit: cover;
}

.property-card-carousel {
  position: relative;
  aspect-ratio: 1.25;
  overflow: hidden;
  background: var(--garden);
}

.property-card-carousel img,
.property-card-carousel video {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
}

.property-card-slide {
  display: none;
}

.property-card-slide.is-active {
  display: block;
}

.property-card-video-slide.is-active {
  display: grid;
}

.property-card-video-slide {
  width: 100%;
  height: 100%;
  place-items: center;
  padding: 24px;
  text-align: center;
  background:
    linear-gradient(rgba(23, 22, 20, 0.66), rgba(23, 22, 20, 0.66)),
    url("../images/marrakech-villa-hero.png") center / cover;
}

.property-card-video-slide a {
  display: grid;
  gap: 8px;
  color: var(--paper);
  text-decoration: none;
}

.property-card-video-slide span {
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.property-card-video-slide strong {
  font-size: 1rem;
}

.carousel-button {
  position: absolute;
  top: 50%;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 250, 242, 0.38);
  border-radius: 50%;
  color: var(--paper);
  background: rgba(23, 22, 20, 0.54);
  cursor: pointer;
  font-size: 1.5rem;
  line-height: 1;
  transform: translateY(-50%);
}

.carousel-button:hover {
  background: rgba(23, 22, 20, 0.76);
}

.carousel-button-prev {
  left: 12px;
}

.carousel-button-next {
  right: 12px;
}

.carousel-count {
  position: absolute;
  inset-inline-end: 12px;
  bottom: 12px;
  border-radius: 999px;
  padding: 5px 9px;
  color: var(--paper);
  background: rgba(23, 22, 20, 0.62);
  font-size: 0.74rem;
  font-weight: 800;
}

.property-fallback {
  display: grid;
  place-items: center;
  padding: 24px;
  color: var(--paper);
  text-align: center;
  background:
    linear-gradient(135deg, rgba(22, 72, 61, 0.94), rgba(169, 87, 59, 0.82)),
    var(--garden);
}

.property-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 20px;
}

.property-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.pill {
  padding: 6px 10px;
  border: 1px solid rgba(22, 72, 61, 0.22);
  border-radius: 999px;
  color: var(--garden);
  font-size: 0.76rem;
  font-weight: 800;
}

.property-card h3 {
  margin-bottom: 10px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.16rem;
  font-weight: 750;
}

.property-card p {
  color: var(--soft-ink);
  line-height: 1.58;
}

.property-features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin-top: auto;
  padding-top: 14px;
  color: var(--soft-ink);
}

.property-feature {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 26px;
  border: 1px solid rgba(22, 72, 61, 0.12);
  border-radius: 999px;
  padding: 5px 8px;
  background: rgba(255, 250, 242, 0.7);
  font-size: 0.74rem;
  font-weight: 800;
  line-height: 1;
}

.property-feature svg {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.price-list {
  display: grid;
  gap: 8px;
  margin-top: auto;
  padding-top: 18px;
}

.property-footer {
  margin-top: auto;
  padding-top: 18px;
}

.price {
  color: var(--terracotta);
  font-weight: 800;
}

.price-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.property-action {
  width: 100%;
  margin-top: 16px;
}

.property-offer-panel .price-list {
  margin-top: 18px;
  padding-top: 0;
}

.property-offer-panel .price-row {
  align-items: baseline;
}

.property-offer-panel .price-row:first-child {
  border-top: 0;
  padding-top: 0;
}

.empty-state {
  padding: 42px;
  border: 1px dashed var(--line);
  background: var(--paper);
  text-align: center;
}

.pagination {
  margin-top: 32px;
}

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--soft-ink);
}

.property-summary-band {
  margin-top: -54px;
}

.property-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: start;
}

.property-detail-main,
.property-offer-panel,
.contact-callout {
  background: var(--paper);
  border: 1px solid var(--line);
}

.property-detail-main {
  padding: clamp(24px, 4vw, 42px);
}

.property-offer-panel {
  position: sticky;
  top: 118px;
  padding: 24px;
}

.property-description {
  color: var(--soft-ink);
  font-size: 1.02rem;
  line-height: 1.8;
}

.property-detail-sections {
  display: grid;
  gap: 0;
  margin-top: 34px;
}

.property-details-public .property-detail-sections {
  margin-top: 0;
}

.property-detail-section {
  display: grid;
  grid-template-columns: minmax(170px, 0.28fr) minmax(0, 1fr);
  gap: clamp(22px, 4vw, 58px);
  border-top: 1px solid rgba(194, 151, 73, 0.22);
  padding: 26px 0;
}

.property-detail-section:first-child {
  border-top: 0;
  padding-top: 8px;
}

.property-detail-section-heading {
  display: grid;
  align-content: start;
  gap: 8px;
}

.property-detail-section-heading span {
  color: var(--gold);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.property-detail-section h3 {
  margin: 0;
  color: var(--ink);
  font-size: 0.98rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.detail-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 22px 42px;
  background: transparent;
}

.detail-list div {
  min-width: 0;
  padding: 0;
  background: transparent;
}

.detail-list dt {
  margin-bottom: 8px;
  color: var(--soft-ink);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.detail-list dd {
  margin: 0;
  color: var(--ink);
  font-size: 1.02rem;
  font-weight: 800;
}

.detail-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
}

.detail-badge {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  align-self: flex-start;
  justify-content: center;
  height: 34px;
  border: 1px solid rgba(194, 151, 73, 0.34);
  border-radius: 999px;
  background: #fffdfa;
  color: var(--garden);
  padding: 0 14px;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.01em;
  line-height: 1;
  box-shadow: 0 12px 26px rgba(35, 32, 28, 0.04);
  white-space: nowrap;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 32px;
  background: var(--line);
}

.feature-item {
  padding: 18px;
  background: #fffdfa;
}

.feature-item span {
  display: block;
  margin-bottom: 8px;
  color: var(--soft-ink);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.feature-item strong {
  color: var(--ink);
  font-size: 1.1rem;
}

.property-gallery-compact {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(320px, 0.92fr);
  gap: 16px;
  margin-top: 24px;
}

.gallery-main-image,
.gallery-thumbnail,
.gallery-all-button {
  position: relative;
  border: 0;
  padding: 0;
  overflow: hidden;
  background: var(--garden);
  cursor: pointer;
}

.gallery-main-image {
  aspect-ratio: 1.32;
  min-height: 560px;
}

.gallery-main-image img,
.gallery-main-image video,
.gallery-thumbnail img,
.gallery-thumbnail video,
.gallery-video-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-video-placeholder {
  display: grid;
  place-items: center;
  gap: 8px;
  padding: 18px;
  color: var(--paper);
  text-align: center;
  background:
    linear-gradient(rgba(23, 22, 20, 0.68), rgba(23, 22, 20, 0.68)),
    url("../images/marrakech-villa-hero.png") center / cover;
}

.gallery-video-placeholder span,
.gallery-media-badge {
  color: var(--gold);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.gallery-video-placeholder strong {
  max-width: 90%;
  color: var(--paper);
  font-size: 0.95rem;
}

.gallery-media-badge {
  position: absolute;
  inset-inline-end: 10px;
  bottom: 10px;
  padding: 5px 8px;
  background: rgba(23, 22, 20, 0.72);
}

.gallery-thumbnails {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(3, 1fr);
  gap: 16px;
}

.gallery-thumbnail {
  aspect-ratio: 1.14;
  min-height: 0;
}

.gallery-all-button {
  display: grid;
  aspect-ratio: 1.14;
  min-height: 0;
  place-items: center;
  border: 1px solid rgba(194, 151, 73, 0.4);
  color: var(--paper);
  background:
    linear-gradient(rgba(23, 22, 20, 0.72), rgba(23, 22, 20, 0.72)),
    var(--garden);
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.gallery-all-button span {
  display: block;
  margin-top: 6px;
  color: var(--gold);
  font-size: 0.9rem;
}

.gallery-video-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
  align-items: center;
}

.gallery-video-links .eyebrow {
  width: 100%;
  margin-bottom: 0;
}

.media-lightbox-open {
  overflow: hidden;
}

.media-lightbox[hidden] {
  display: none;
}

.media-lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: clamp(16px, 3vw, 36px);
}

.media-lightbox-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(8, 8, 7, 0.88);
  cursor: pointer;
}

.media-lightbox-panel {
  position: relative;
  z-index: 1;
  display: grid;
  width: min(1180px, 100%);
  max-height: 92vh;
  grid-template-rows: minmax(0, 1fr) auto;
  background: #090907;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.5);
}

.media-lightbox-viewport {
  position: relative;
  display: grid;
  min-height: 0;
  place-items: center;
  background: #090907;
}

.media-lightbox-panel img,
.media-lightbox-panel video {
  grid-area: 1 / 1;
  width: 100%;
  max-height: calc(92vh - 86px);
  object-fit: contain;
  background: #090907;
}

.media-lightbox-viewport > [hidden] {
  display: none !important;
}

.media-lightbox-external {
  grid-area: 1 / 1;
  display: grid;
  width: 100%;
  min-height: min(58vh, 520px);
  place-items: center;
  gap: 18px;
  padding: 32px;
  color: var(--paper);
  text-align: center;
  background:
    linear-gradient(rgba(23, 22, 20, 0.7), rgba(23, 22, 20, 0.7)),
    url("../images/marrakech-villa-hero.png") center / cover;
}

.media-lightbox-external[hidden] {
  display: none;
}

.media-lightbox-external span {
  color: var(--gold);
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.media-lightbox-close,
.media-lightbox-nav {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 250, 242, 0.34);
  color: var(--paper);
  background: rgba(23, 22, 20, 0.66);
  cursor: pointer;
}

.media-lightbox-close {
  top: 18px;
  inset-inline-end: 18px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 1.8rem;
  line-height: 1;
}

.media-lightbox-nav {
  top: 50%;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 2rem;
  transform: translateY(-50%);
}

.media-lightbox-prev {
  inset-inline-start: 18px;
}

.media-lightbox-next {
  inset-inline-end: 18px;
}

.media-lightbox-close:hover,
.media-lightbox-nav:hover {
  background: rgba(23, 22, 20, 0.86);
}

.media-lightbox-caption {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 22px;
  color: var(--paper);
  background: #11100e;
}

.media-lightbox-caption span {
  color: var(--gold);
  font-weight: 900;
}

.contact-callout {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  align-items: center;
  padding: clamp(24px, 4vw, 42px);
}

.property-inquiry-block {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: start;
}

.property-inquiry-intro {
  max-width: 820px;
}

.property-inquiry-intro h2 {
  margin-bottom: 10px;
}

.property-inquiry-intro p:not(.eyebrow) {
  max-width: 720px;
  color: var(--soft-ink);
  line-height: 1.65;
}

.property-inquiry-content {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(24px, 4vw, 42px);
  align-items: start;
}

.property-inquiry-form {
  min-width: 0;
}

.contact-panel {
  display: grid;
  gap: 16px;
  align-content: start;
}

.contact-methods {
  display: grid;
  gap: 12px;
  margin-top: 10px;
}

.contact-method {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  border: 1px solid var(--line);
  background: #fffdfa;
  padding: 14px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.contact-method:hover {
  border-color: rgba(198, 161, 91, 0.6);
  transform: translateY(-1px);
}

.contact-method-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  color: var(--paper);
  background: var(--garden);
  font-size: 0.95rem;
  font-weight: 900;
}

.contact-method-icon svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.whatsapp-icon {
  background: #1f7a53;
}

.contact-method small {
  display: block;
  color: var(--gold);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.contact-method strong {
  display: block;
  margin-top: 4px;
  overflow-wrap: anywhere;
}

.property-contact-stack {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}

.property-advisor-card {
  display: grid;
  gap: 14px;
  margin-top: 18px;
  padding: 18px;
  border: 1px solid rgba(198, 161, 91, 0.28);
  background: linear-gradient(135deg, #fffdfa 0%, #f8f0df 100%);
}

.property-agency-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(198, 161, 91, 0.28);
  background: linear-gradient(135deg, #fffdfa 0%, #f8f0df 100%);
}

.property-contact-stack .property-advisor-card {
  margin-top: 0;
}

.property-advisor-header,
.property-agency-header {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.property-advisor-photo,
.property-advisor-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
}

.property-advisor-photo {
  object-fit: cover;
  border: 2px solid rgba(198, 161, 91, 0.4);
}

.property-agency-logo {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(198, 161, 91, 0.4);
  background: var(--paper);
}

.property-advisor-avatar {
  display: grid;
  place-items: center;
  color: var(--paper);
  background: var(--garden);
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.property-advisor-body h3,
.property-agency-body h3 {
  margin: 0;
  color: var(--ink);
  font-size: 1.05rem;
}

.property-advisor-body p,
.property-agency-body p {
  margin: 4px 0 0;
  color: var(--soft-ink);
  font-size: 0.9rem;
}

.property-advisor-bio {
  margin: 0;
  color: var(--soft-ink);
  font-size: 0.92rem;
  line-height: 1.6;
}

.property-advisor-methods,
.property-agency-methods {
  display: grid;
  gap: 8px;
}

.property-contact-method {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid rgba(27, 48, 43, 0.12);
  background: rgba(255, 253, 250, 0.78);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.property-contact-method:hover {
  border-color: rgba(198, 161, 91, 0.55);
  transform: translateY(-1px);
}

.property-contact-method svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: var(--garden);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.property-contact-method svg.property-contact-icon-fill {
  fill: var(--garden);
  stroke: none;
}

.property-contact-method span {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.property-contact-method small {
  color: var(--gold);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.property-contact-method strong {
  color: var(--ink);
  font-size: 0.92rem;
  overflow-wrap: anywhere;
}

.property-advisor-method {
  display: grid;
  gap: 2px;
  padding: 10px 12px;
  border: 1px solid rgba(27, 48, 43, 0.12);
  background: rgba(255, 253, 250, 0.78);
}

.property-advisor-method:hover {
  border-color: rgba(198, 161, 91, 0.55);
}

.property-advisor-method span {
  color: var(--gold);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.property-advisor-method strong {
  color: var(--ink);
  font-size: 0.92rem;
  overflow-wrap: anywhere;
}

.property-advisor-mini {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  margin-top: 14px;
  padding: 12px;
  border: 1px solid rgba(198, 161, 91, 0.26);
  background: rgba(255, 253, 250, 0.86);
}

.property-advisor-mini-photo,
.property-advisor-mini-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
}

.property-advisor-mini-photo {
  object-fit: cover;
  border: 2px solid rgba(198, 161, 91, 0.38);
}

.property-advisor-mini-avatar {
  display: grid;
  place-items: center;
  color: var(--paper);
  background: var(--garden);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.property-advisor-mini-body {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.property-advisor-mini-body span {
  color: var(--gold);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.property-advisor-mini-body strong {
  color: var(--ink);
  font-size: 0.95rem;
}

.property-advisor-mini-body small {
  color: var(--soft-ink);
  font-size: 0.82rem;
  line-height: 1.35;
}

.public-form {
  display: grid;
  gap: 16px;
}

.public-form label {
  display: grid;
  gap: 8px;
  color: var(--soft-ink);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.public-form input,
.public-form select,
.public-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 0;
  background: #fffdfa;
  color: var(--ink);
  padding: 12px;
  outline-color: var(--gold);
}

.public-form textarea {
  min-height: 130px;
  resize: vertical;
}

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

.form-error {
  color: var(--terracotta);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: none;
}

.form-error-box {
  border: 1px solid rgba(169, 87, 59, 0.28);
  background: rgba(169, 87, 59, 0.08);
  color: var(--terracotta);
  padding: 12px 14px;
  font-weight: 800;
}

.form-success {
  grid-column: 1 / -1;
  border: 1px solid rgba(22, 72, 61, 0.22);
  background: rgba(22, 72, 61, 0.08);
  color: var(--garden);
  padding: 14px 16px;
  font-weight: 800;
}

.form-help {
  color: var(--soft-ink);
  font-size: 0.9rem;
  line-height: 1.6;
}

.honeypot {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

input[type="email"],
input[type="tel"],
a[href^="mailto:"],
a[href^="tel:"] {
  direction: ltr;
  unicode-bidi: isolate;
}

.price bdi,
.bidi-isolate {
  unicode-bidi: isolate;
}

@media (max-width: 1500px) and (min-width: 1181px) {
  .home-hero .hero-content {
    grid-template-columns: minmax(420px, 0.95fr) minmax(300px, 0.6fr);
    gap: clamp(34px, 4.5vw, 72px);
    width: min(1400px, calc(100% - 64px));
    padding: 132px 0 116px;
  }

  .home-hero-copy {
    max-width: 640px;
  }

  .home-hero-brand {
    width: min(100%, 380px);
  }

  .home-hero h1 {
    max-width: 500px;
    font-size: clamp(1.6rem, 2.2vw, 2.18rem);
  }
}

@media (max-width: 1180px) {
  .header-actions {
    gap: 12px;
  }

  .main-nav {
    gap: 14px;
  }

  .home-hero .hero-content {
    grid-template-columns: 1fr;
    gap: 30px;
    width: min(900px, calc(100% - 36px));
    padding: 124px 0 88px;
  }

  .home-hero-copy {
    grid-column: 1;
    order: 2;
    max-width: 700px;
  }

  .home-hero-brand {
    grid-column: 1;
    order: 1;
    width: min(420px, 82vw);
    margin-top: 16px;
    margin-inline: auto;
    justify-self: center;
  }

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

@media (max-width: 900px) {
  .site-header {
    position: absolute;
    height: auto;
    min-height: 96px;
  }

  .main-nav {
    gap: 14px;
    font-size: 0.84rem;
  }

  .header-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .preference-switchers {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .hero {
    min-height: 72vh;
  }

  .hero-content {
    padding-bottom: 84px;
  }

  .home-hero .hero-content {
    width: min(820px, calc(100% - 36px));
    padding: 118px 0 84px;
  }

  .home-hero-brand {
    width: min(380px, 86vw);
    margin-bottom: 22px;
  }

  .search-summary,
  .public-search-form,
  .property-grid,
  .service-grid,
  .service-detail-grid,
  .service-process,
  .team-grid,
  .property-detail-layout,
  .property-inquiry-content,
  .property-detail-section,
  .feature-grid,
  .detail-list,
  .property-gallery-compact {
    grid-template-columns: 1fr;
  }

  .service-detail-card-wide {
    grid-column: auto;
  }

  .property-detail-section {
    gap: 16px;
    padding: 24px 0;
  }

  .gallery-main-image {
    min-height: 420px;
  }

  .property-offer-panel {
    position: static;
  }

}

@media (max-width: 560px) {
  .section,
  .site-footer {
    padding: 52px 0;
  }

  .property-section-tight {
    padding-top: 40px;
    padding-bottom: 40px;
  }

  .site-header {
    position: relative;
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .site-header .brand-logo-icon {
    width: 64px;
    height: 64px;
  }

  .main-nav {
    width: 100%;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 0.78rem;
  }

  .header-actions {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

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

  .preference-switchers {
    width: 100%;
    justify-content: flex-start;
  }

  .hero-content,
  .property-hero-content {
    padding-top: 64px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .home-hero-brand {
    position: static;
    width: min(300px, 86vw);
    margin-inline: auto;
    margin-bottom: 22px;
  }

  .home-hero .hero-content {
    width: min(820px, calc(100% - 36px));
    padding: 72px 0 84px;
  }

  .contact-callout {
    align-items: stretch;
    flex-direction: column;
  }

  .property-inquiry-block,
  .property-inquiry-content,
  .form-two-columns {
    grid-template-columns: 1fr;
  }

  .gallery-main-image,
  .gallery-thumbnail,
  .gallery-all-button {
    min-height: 220px;
    aspect-ratio: 1.25;
  }

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

  .media-lightbox {
    padding: 10px;
  }

  .media-lightbox-nav {
    width: 42px;
    height: 42px;
  }

  .media-lightbox-prev {
    inset-inline-start: 10px;
  }

  .media-lightbox-next {
    inset-inline-end: 10px;
  }

  .media-lightbox-caption {
    align-items: flex-start;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }
}
