/* 5R Kénitra — warm Moroccan / coastal hospitality */
:root {
  --ink: #1a2428;
  --ink-soft: #3d4a50;
  --muted: #6b787e;
  --sand: #f7f1e8;
  --sand-deep: #efe6d8;
  --cream: #fffbf5;
  --clay: #c45c38;
  --clay-deep: #a3482a;
  --terracotta: #d4784a;
  --line: #e8dfd0;
  --line-soft: #f0e9dc;
  --wa: #25d366;
  --wa-deep: #1da851;
  --shadow: 0 4px 24px rgba(26, 36, 40, 0.07);
  --shadow-hover: 0 12px 40px rgba(26, 36, 40, 0.12);
  --radius: 14px;
  --radius-sm: 10px;
  --font: "DM Sans", system-ui, -apple-system, sans-serif;
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --max: 1080px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font: 17px/1.65 var(--font);
  color: var(--ink);
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(196, 92, 56, 0.08), transparent 50%),
    radial-gradient(ellipse 60% 40% at 90% 0%, rgba(212, 120, 74, 0.06), transparent 45%),
    var(--sand);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--clay); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--clay-deep); }

/* —— Header —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(247, 241, 232, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-soft);
}
.site-header__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.brand {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  color: var(--ink);
  text-decoration: none;
}
.brand span { color: var(--clay); font-weight: 500; }
.nav-right { display: flex; align-items: center; gap: 14px; font-size: 0.9rem; }
.lang a {
  color: var(--ink-soft);
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid transparent;
}
.lang a:hover {
  border-color: var(--line);
  background: var(--cream);
  color: var(--ink);
}

/* —— Layout —— */
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}
main { padding-bottom: 48px; }

/* —— Typography —— */
h1, h2, h3 {
  font-family: var(--display);
  font-weight: 550;
  line-height: 1.2;
  color: var(--ink);
}
h1 { font-size: clamp(1.85rem, 4.5vw, 2.75rem); margin: 0 0 12px; }
h2 { font-size: clamp(1.35rem, 3vw, 1.75rem); margin: 0 0 16px; }
h3 { font-size: 1.2rem; margin: 0 0 6px; }
.lead {
  font-size: 1.08rem;
  color: var(--ink-soft);
  max-width: 36em;
  margin: 0 0 22px;
}
.section-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--clay);
  margin: 0 0 8px;
}

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 600 0.95rem var(--font);
  background: var(--wa);
  color: #fff !important;
  text-decoration: none !important;
  padding: 13px 22px;
  border-radius: 999px;
  border: none;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.28);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  cursor: pointer;
}
.btn:hover {
  background: var(--wa-deep);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.35);
  color: #fff !important;
}
.btn--ghost {
  background: transparent;
  color: var(--ink) !important;
  border: 1.5px solid var(--line);
  box-shadow: none;
}
.btn--ghost:hover {
  background: var(--cream);
  border-color: var(--clay);
  color: var(--clay) !important;
  box-shadow: none;
  transform: none;
}
.btn--clay {
  background: var(--clay);
  box-shadow: 0 4px 14px rgba(196, 92, 56, 0.25);
}
.btn--clay:hover {
  background: var(--clay-deep);
  box-shadow: 0 6px 20px rgba(196, 92, 56, 0.32);
}
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* —— Hero (home) —— */
.hero {
  position: relative;
  margin: 20px 0 36px;
  border-radius: calc(var(--radius) + 4px);
  overflow: hidden;
  min-height: clamp(340px, 52vw, 480px);
  display: flex;
  align-items: flex-end;
  box-shadow: var(--shadow);
}
.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(26, 36, 40, 0.25) 0%,
    rgba(26, 36, 40, 0.55) 45%,
    rgba(26, 36, 40, 0.78) 100%
  );
}
.hero__content {
  position: relative;
  z-index: 1;
  padding: clamp(28px, 5vw, 48px);
  color: #fff;
  max-width: 640px;
}
.hero__content h1 { color: #fff; }
.hero__content .lead { color: rgba(255, 255, 255, 0.88); }
.hero__eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 245, 230, 0.9);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}

/* —— Trust strip —— */
.trust {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 0 0 48px;
}
@media (min-width: 700px) {
  .trust { grid-template-columns: repeat(4, 1fr); gap: 16px; }
}
.trust__item {
  background: var(--cream);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  padding: 18px 16px;
  text-align: center;
  transition: border-color 0.2s ease;
}
.trust__item:hover { border-color: var(--line); }
.trust__icon {
  font-size: 1.5rem;
  line-height: 1;
  margin-bottom: 8px;
}
.trust__item strong {
  display: block;
  font-size: 0.92rem;
  font-weight: 650;
  color: var(--ink);
  margin-bottom: 4px;
}
.trust__item span {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.4;
}

/* —— Property cards —— */
.section { margin: 0 0 52px; }
.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 640px) {
  .grid { grid-template-columns: 1fr 1fr; gap: 22px; }
}
.card {
  background: var(--cream);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}
a.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  color: inherit;
}
.card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--sand-deep);
}
.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}
a.card:hover .card__media img { transform: scale(1.04); }
.card__badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(255, 251, 245, 0.95);
  color: var(--ink);
  font: 650 0.82rem var(--font);
  padding: 6px 12px;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
.card__body { padding: 18px 18px 20px; flex: 1; display: flex; flex-direction: column; }
.card__body h3 { margin: 0 0 6px; font-size: 1.15rem; }
.card__hook {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 0 0 14px;
  flex: 1;
}
.card__cta {
  font: 600 0.88rem var(--font);
  color: var(--clay);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* —— Monthly band —— */
.monthly {
  background: linear-gradient(135deg, #2a353a 0%, #1a2428 100%);
  color: #fff;
  border-radius: var(--radius);
  padding: clamp(28px, 5vw, 44px);
  display: grid;
  gap: 20px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.monthly::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -10%;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(196, 92, 56, 0.35), transparent 70%);
  pointer-events: none;
}
.monthly > * { position: relative; }
.monthly h2 { color: #fff; margin-bottom: 8px; }
.monthly p { color: rgba(255, 255, 255, 0.82); margin: 0 0 4px; max-width: 38em; }
@media (min-width: 700px) {
  .monthly {
    grid-template-columns: 1fr auto;
    align-items: center;
  }
}

/* —— Property page hero —— */
.prop-hero {
  margin: 18px 0 28px;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  aspect-ratio: 16 / 9;
  max-height: 420px;
  box-shadow: var(--shadow);
  background: var(--sand-deep);
}
.prop-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.prop-hero__meta {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 28px 24px 22px;
  background: linear-gradient(transparent, rgba(26, 36, 40, 0.82));
  color: #fff;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}
.prop-hero__meta h1 {
  color: #fff;
  font-size: clamp(1.4rem, 3.5vw, 2rem);
  margin: 0;
}
.price-pill {
  background: rgba(255, 251, 245, 0.95);
  color: var(--ink);
  font: 650 0.95rem var(--font);
  padding: 8px 16px;
  border-radius: 999px;
  white-space: nowrap;
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  color: var(--ink-soft);
  text-decoration: none;
  margin: 8px 0 0;
}
.back-link:hover { color: var(--clay); }

/* —— Chips / facts —— */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 0.88rem;
  color: var(--ink-soft);
}
.chip .ico { font-size: 1rem; line-height: 1; }

/* —— Two-col property body —— */
.prop-grid {
  display: grid;
  gap: 28px;
  margin-bottom: 36px;
}
@media (min-width: 800px) {
  .prop-grid {
    grid-template-columns: 1.4fr 1fr;
    align-items: start;
  }
}
.panel {
  background: var(--cream);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 22px 22px 20px;
  box-shadow: var(--shadow);
}
.panel h2 {
  font-size: 1.15rem;
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line-soft);
}
.facts {
  margin: 0;
  padding: 0;
  list-style: none;
}
.facts li {
  padding: 9px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 0.95rem;
  color: var(--ink-soft);
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.facts li:last-child { border-bottom: none; }
.facts li::before {
  content: "·";
  color: var(--clay);
  font-weight: 700;
  font-size: 1.2rem;
  line-height: 1.1;
  flex-shrink: 0;
}
.rules li::before { content: "✓"; color: var(--wa-deep); font-size: 0.85rem; margin-top: 2px; }

/* —— Gallery —— */
.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin: 0 0 36px;
}
@media (min-width: 640px) {
  .gallery { grid-template-columns: repeat(4, 1fr); gap: 10px; }
}
.gallery button {
  appearance: none;
  border: none;
  padding: 0;
  margin: 0;
  cursor: zoom-in;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--sand-deep);
  aspect-ratio: 1;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.gallery button:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow);
}
.gallery button:focus-visible {
  outline: 2px solid var(--clay);
  outline-offset: 2px;
}
.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gallery button:first-child {
  grid-column: span 2;
  aspect-ratio: 16 / 10;
}
@media (min-width: 640px) {
  .gallery button:first-child {
    grid-column: span 2;
    grid-row: span 2;
    aspect-ratio: auto;
    height: 100%;
  }
}

/* —— Map —— */
.map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  margin: 0 0 12px;
  background: var(--sand-deep);
}
.map-wrap iframe {
  display: block;
  width: 100%;
  height: 280px;
  border: 0;
}
.address {
  font-size: 0.95rem;
  color: var(--ink-soft);
  margin: 0 0 28px;
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

/* —— CTA block —— */
.cta-block {
  background: linear-gradient(135deg, rgba(37, 211, 102, 0.1), rgba(196, 92, 56, 0.08));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  margin: 0 0 40px;
}
.cta-block p {
  margin: 0 0 14px;
  color: var(--ink-soft);
}

/* —— Floating WhatsApp —— */
.fab-wa {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 50;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--wa);
  color: #fff !important;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.45);
  text-decoration: none !important;
  transition: transform 0.18s ease, background 0.18s ease;
}
.fab-wa:hover {
  background: var(--wa-deep);
  transform: scale(1.06);
  color: #fff !important;
}
.fab-wa svg { width: 28px; height: 28px; fill: currentColor; }
.fab-wa span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

/* —— Footer —— */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--sand-deep);
  padding: 32px 20px 100px;
  margin-top: 20px;
}
.site-footer__inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  color: var(--muted);
}
.site-footer a {
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 500;
}
.site-footer a:hover { color: var(--clay); }
.footer-links { display: flex; flex-wrap: wrap; gap: 16px; }

/* —— Lightbox —— */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(20, 24, 26, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.lightbox.is-open { display: flex; }
.lightbox img {
  max-width: min(960px, 100%);
  max-height: 88vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
.lightbox__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
}
.lightbox__close:hover { background: rgba(255, 255, 255, 0.28); }
.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
}
.lightbox__nav:hover { background: rgba(255, 255, 255, 0.28); }
.lightbox__prev { left: 12px; }
.lightbox__next { right: 12px; }

/* —— Root redirect page —— */
.redirect-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  font-family: var(--font);
}
.redirect-page a {
  font-size: 1.1rem;
  padding: 12px 24px;
  border-radius: 999px;
  background: var(--cream);
  border: 1px solid var(--line);
  text-decoration: none;
  color: var(--ink);
}
.redirect-page a:hover { border-color: var(--clay); color: var(--clay); }

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

.btn--on-dark {
  background: transparent;
  color: #fff !important;
  border: 1.5px solid rgba(255,255,255,0.5);
  box-shadow: none;
}
.btn--on-dark:hover {
  background: rgba(255,255,255,0.12);
  border-color: #fff;
  color: #fff !important;
  box-shadow: none;
  transform: none;
}

.lang { display: flex; gap: 12px; flex-wrap: wrap; }
