/* Bin El-Ouidane sub-site — LEM charter + light mosaic background */

body.binel-page {
  --binel-mosaic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Crect fill='%23f7f2ea' width='120' height='120'/%3E%3Cg fill='none' stroke='%23c4a574' stroke-opacity='0.28' stroke-width='1'%3E%3Cpath d='M60 8 L112 60 L60 112 L8 60 Z'/%3E%3Cpath d='M60 28 L92 60 L60 92 L28 60 Z'/%3E%3Ccircle cx='60' cy='60' r='10'/%3E%3C/g%3E%3Cg fill='%23d4b896' fill-opacity='0.18'%3E%3Ccircle cx='8' cy='8' r='3'/%3E%3Ccircle cx='112' cy='8' r='3'/%3E%3Ccircle cx='8' cy='112' r='3'/%3E%3Ccircle cx='112' cy='112' r='3'/%3E%3Ccircle cx='60' cy='8' r='2.5'/%3E%3Ccircle cx='60' cy='112' r='2.5'/%3E%3Ccircle cx='8' cy='60' r='2.5'/%3E%3Ccircle cx='112' cy='60' r='2.5'/%3E%3C/g%3E%3Cpath fill='%23e8dcc8' fill-opacity='0.35' d='M60 48 L72 60 L60 72 L48 60 Z'/%3E%3C/svg%3E");
  background-color: #f7f2ea;
  background-image: var(--binel-mosaic);
  background-size: 120px 120px;
  background-attachment: fixed;
}

/* Soft translucent bands so the light mosaic shows through */
body.binel-page .binel-tone--map,
body.binel-page #map {
  background: rgba(232, 238, 244, 0.88);
}

body.binel-page .binel-tone--acts,
body.binel-page #activites-preview {
  background: rgba(227, 235, 227, 0.88);
}

body.binel-page .binel-tone--more,
body.binel-page #more-than-a-name {
  background: rgba(246, 241, 232, 0.9);
}

body.binel-page .binel-tone--gallery,
body.binel-page #gallery {
  background: rgba(235, 228, 214, 0.9);
}

body.binel-page .binel-tone--barrage,
body.binel-page #barrage {
  background: rgba(221, 233, 234, 0.88);
}

body.binel-page .binel-tone--cta,
body.binel-page .cta-band.binel-tone--cta {
  background: rgba(246, 241, 232, 0.92);
}

body.binel-page .binel-subnav {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
}

body.binel-page .how-sec.binel-tone,
body.binel-page .intro.binel-tone,
body.binel-page .activities-sec.binel-tone {
  background-image: none;
}

/* Don't leave content invisible if scroll-reveal misses cards */
body.binel-page .binel-act-card.reveal,
body.binel-page .binel-map-frame.reveal,
body.binel-page .binel-barrage.reveal,
body.binel-page .section-title.reveal,
body.binel-page .section-sub.reveal {
  opacity: 1;
  transform: none;
}

.binel-subnav {
  background: #fff;
  border-bottom: 1px solid var(--border, #ddd4c4);
  position: sticky;
  top: var(--nav-h, 72px);
  z-index: 40;
}

.binel-subnav-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: center;
}

.binel-subnav a {
  font-family: Outfit, sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--navy, #243447);
  padding: 12px 22px;
  border: 1px solid var(--border, #ddd4c4);
  background: #fff;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.binel-subnav a:hover,
.binel-subnav a[aria-current="page"] {
  color: #fff;
  background: var(--navy, #243447);
  border-color: var(--navy, #243447);
}

/* CTA — light theme over mosaic */
body.binel-page .binel-tone--cta,
body.binel-page .cta-band.binel-tone--cta {
  color: var(--text, #1a2332);
  border-top: 1px solid var(--border, #ddd4c4);
}

body.binel-page .cta-band.binel-tone--cta h2 {
  color: var(--navy, #243447);
  font-weight: 600;
}

body.binel-page .cta-band.binel-tone--cta p {
  color: var(--muted, #5c5348);
  opacity: 1;
}

body.binel-page footer {
  background: var(--navy, #243447);
}

/* Typography on light bands */
.binel-tone .section-title,
.binel-tone h2,
.binel-tone .binel-map-frame h2,
.binel-tone .binel-barrage-copy h2,
.binel-tone .how-copy h2,
.binel-tone .intro-grid h2 {
  color: var(--navy, #243447);
}

.binel-tone .section-sub,
.binel-tone .binel-map-note,
.binel-tone .binel-barrage-copy p,
.binel-tone .how-copy p,
.binel-tone .intro-copy p {
  color: var(--text, #1a2332);
}

.binel-tone .eyebrow,
.binel-tone .binel-barrage-copy .eyebrow {
  color: var(--accent, #9a6230);
}

.binel-tone .section-divider {
  background: var(--accent, #9a6230);
}

.binel-tone .binel-amenity-list li {
  color: var(--text, #1a2332);
  border-bottom-color: var(--border, #ddd4c4);
}

.binel-tone .binel-barrage-photo {
  border-color: var(--border, #ddd4c4);
}

.binel-tone--map .binel-map-frame picture {
  background: transparent;
}

/* Hero video */
.binel-hero {
  position: relative;
  min-height: min(78vh, 720px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: #1a1208;
}

.binel-hero video,
.binel-hero .binel-hero-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.binel-hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(26, 18, 8, 0.72) 0%,
    rgba(26, 18, 8, 0.25) 45%,
    rgba(26, 18, 8, 0.35) 100%
  );
  z-index: 1;
}

.binel-hero-inner {
  position: relative;
  z-index: 2;
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  padding: 48px 0 56px;
  color: #fffcf7;
}

.binel-hero-inner .hero-eyebrow {
  color: rgba(255, 252, 247, 0.75);
  margin-bottom: 10px;
}

.binel-hero-inner h1 {
  font-family: "Bodoni Moda", ivypresto-display, serif;
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 600;
  line-height: 1.1;
  margin: 0 0 12px;
  color: #fff;
}

.binel-hero-inner p {
  font-family: Outfit, sans-serif;
  font-size: 1.05rem;
  max-width: 36rem;
  color: rgba(255, 252, 247, 0.88);
  margin: 0;
}

/* Map — full-bleed illustration, no box */
.binel-map-sec {
  padding: 56px 0 48px;
}

.binel-map-sec > .container {
  max-width: min(1400px, 100%);
  padding-left: clamp(12px, 2vw, 24px);
  padding-right: clamp(12px, 2vw, 24px);
}

.binel-map-frame {
  background: transparent;
  border: 0;
  padding: 0;
  max-width: none;
  margin: 0 auto;
}

.binel-map-frame h2 {
  font-family: "Bodoni Moda", serif;
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  margin: 0 0 8px;
  text-align: center;
}

.binel-map-frame .binel-map-note {
  text-align: center;
  font-family: Outfit, sans-serif;
  font-size: 13px;
  margin: 0 0 16px;
}

.binel-map-frame picture {
  display: block;
  width: 100%;
}

.binel-map-img {
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  background: transparent;
}

/* Sections */
.binel-sec {
  padding: 56px 0 64px;
}

.binel-sec .section-title {
  text-align: center;
}

.binel-sec .section-divider {
  margin-left: auto;
  margin-right: auto;
}

.binel-cards-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px 24px;
  margin-top: 28px;
}

.binel-act-card {
  background: #fff;
  border: 1px solid var(--border, #ddd4c4);
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.binel-act-card .card-img-wrap {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #efe6d8;
}

.binel-act-card .card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.binel-act-card .card-body {
  padding: 18px 18px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.binel-act-card .card-title {
  font-family: "Bodoni Moda", serif;
  font-size: 1.25rem;
  margin: 0;
  color: var(--navy, #243447);
}

.binel-act-card .card-desc {
  font-family: Outfit, sans-serif;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--muted, #5c5348);
  margin: 0;
  flex: 1;
}

.binel-act-card .btn {
  align-self: flex-start;
  margin-top: 6px;
}

/* Gallery carousel */
.binel-gallery {
  position: relative;
  margin-top: 28px;
}

.binel-gallery-track-wrap {
  overflow: hidden;
}

.binel-gallery-track {
  display: flex;
  gap: 20px;
  transition: transform 0.4s ease;
}

.binel-gallery-track .binel-act-card {
  flex: 0 0 calc((100% - 40px) / 3);
}

.binel-gallery-track .binel-act-card .card-img-wrap {
  aspect-ratio: 3 / 4;
}

.binel-gallery-nav {
  position: absolute;
  top: 28%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border: 1px solid var(--border, #ddd4c4);
  background: #fff;
  color: var(--navy, #243447);
  cursor: pointer;
  display: grid;
  place-items: center;
  z-index: 2;
  font-size: 22px;
  line-height: 1;
}

.binel-gallery-nav:hover {
  border-color: var(--accent, #9a6230);
  color: var(--accent, #9a6230);
}

.binel-gallery-nav--prev {
  left: -8px;
}

.binel-gallery-nav--next {
  right: -8px;
}

.binel-gallery-cta {
  text-align: center;
  margin-top: 28px;
}

/* Barrage / More-than-a-name split — photo stays in its column */
.binel-barrage {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 4vw, 52px);
  align-items: stretch;
  margin-top: 28px;
}

.binel-barrage-photo {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--border, #ddd4c4);
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 420px;
  height: 100%;
  background: #efe6d8;
}

.binel-barrage-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.binel-barrage-copy {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
  min-width: 0;
  max-width: 100%;
  padding: 8px 0;
}

.binel-barrage-copy .eyebrow {
  margin-bottom: 10px;
}

.binel-barrage-copy h2 {
  font-family: "Bodoni Moda", serif;
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  margin: 0 0 20px;
  line-height: 1.15;
}

.binel-barrage-copy p {
  font-family: Outfit, sans-serif;
  font-size: clamp(1.12rem, 1.45vw, 1.28rem);
  line-height: 1.85;
  margin: 0 0 18px;
}

.binel-barrage-copy p:last-child {
  margin-bottom: 0;
}

.binel-barrage-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 8px;
}

.binel-amenity-list {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
}

.binel-amenity-list li {
  font-family: Outfit, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text, #1a1208);
  padding: 10px 0;
  border-bottom: 1px solid var(--border, #ddd4c4);
}

.binel-amenity-list li:last-child {
  border-bottom: none;
}

@media (max-width: 900px) {
  .binel-cards-3 {
    grid-template-columns: 1fr;
  }

  .binel-gallery-track .binel-act-card {
    flex: 0 0 85%;
  }

  .binel-barrage {
    grid-template-columns: 1fr;
  }

  .binel-barrage-photo {
    aspect-ratio: 16 / 10;
    height: auto;
    min-height: 0;
  }

  .binel-gallery-nav--prev {
    left: 4px;
  }

  .binel-gallery-nav--next {
    right: 4px;
  }
}

@media (max-width: 720px) {
  .binel-subnav-inner {
    gap: 8px;
    padding: 12px 16px;
  }

  .binel-subnav a {
    padding: 10px 14px;
    font-size: 11px;
  }

  .binel-hero {
    min-height: 56vh;
  }
}
