/* ============================================================
   Eco Map — WordPress-specific additions.
   Kept separate from css/styles.css so that file stays a verbatim
   copy of the static site and future exports diff cleanly.
   ============================================================ */

/* Sold slots — set from wp-admin → Eco Map → Tarifs & Emplacements.
   Hatched, dimmed, not clickable; the label stays readable. */
.cell.sold {
  cursor: not-allowed;
  opacity: 0.55;
  background-image: repeating-linear-gradient(
    -45deg,
    transparent 0 6px,
    rgba(22, 40, 61, 0.28) 6px 8px
  );
  text-decoration: line-through;
}
.cell.sold:hover {
  transform: none;
  box-shadow: none;
}

.cell.sold.online-reservation {
  isolation: isolate;
  overflow: hidden;
  filter: grayscale(.92) saturate(.18);
  background-color: #9aa1a6 !important;
  border: 1px solid rgba(44, 53, 59, .48) !important;
  color: #445058 !important;
  opacity: 1;
  cursor: not-allowed;
  text-decoration: none;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, .28),
    inset 0 8px 18px rgba(255, 255, 255, .12);
}

.cell.sold.online-reservation::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(rgba(67, 75, 81, .34), rgba(67, 75, 81, .34)),
    repeating-linear-gradient(135deg, transparent 0 7px, rgba(255, 255, 255, .13) 7px 9px);
}

.cell.sold.online-reservation .reservation-state {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  max-width: calc(100% - 4px);
  padding: 3px 6px;
  overflow: hidden;
  border: 1px solid rgba(65, 75, 82, .36);
  border-radius: 999px;
  background: rgba(250, 251, 251, .94);
  box-shadow: 0 2px 6px rgba(32, 41, 47, .2);
  color: #465159;
  font-size: clamp(6px, .55vw, 8px);
  font-style: normal;
  font-weight: 800;
  letter-spacing: .055em;
  line-height: 1;
  text-decoration: none;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.cell.sold.online-reservation .reservation-state .fa-lock {
  flex: 0 0 auto;
  font-size: .9em;
  color: #64717a;
}

.cell.sold.online-reservation:hover,
.cell.sold.online-reservation:focus {
  transform: none;
  filter: grayscale(.92) saturate(.18);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, .28),
    inset 0 8px 18px rgba(255, 255, 255, .12);
}

/* Dedicated reservation page. Public additions stay in this file by design. */
.ecomap-booking-page{background:#f5f1e7;color:#243641}.ecomap-booking-header{position:relative}.ecomap-booking-back{display:inline-flex;align-items:center;gap:8px;color:#355277;font-size:.9rem;font-weight:700;text-decoration:none}.ecomap-booking-main{min-height:calc(100vh - 180px);padding:64px 0 80px;background:radial-gradient(circle at 10% 10%,rgba(203,184,122,.2),transparent 32%),#f5f1e7}.ecomap-booking-shell{max-width:1050px}.ecomap-booking-intro{max-width:720px;margin:0 auto 30px;text-align:center}.ecomap-booking-intro h1{margin:.2em 0;font-size:clamp(2rem,5vw,3.5rem)}.ecomap-booking-intro>p:last-child{font-size:1.05rem;line-height:1.7;color:#53636b}.ecomap-booking-columns{display:grid;grid-template-columns:minmax(280px,.85fr) minmax(360px,1.15fr);gap:24px;align-items:start}.ecomap-booking-card{padding:clamp(22px,4vw,36px);background:#fff;border:1px solid rgba(53,82,119,.14);border-radius:18px;box-shadow:0 16px 45px rgba(41,53,61,.09)}.ecomap-booking-card h2{margin-top:0}.ecomap-booking-notice{display:flex;align-items:flex-start;gap:11px;max-width:820px;margin:0 auto 22px;padding:14px 18px;border:1px solid #d7c168;border-radius:10px;background:#fff8d8;color:#63500b}.ecomap-booking-notice.is-success{border-color:#85bc90;background:#edf9ef;color:#245d31}.ecomap-booking-notice.is-error{border-color:#dc8d8d;background:#fff1f1;color:#8b2424}.ecomap-slot-badge{display:inline-block;margin-bottom:14px;padding:5px 9px;border-radius:99px;background:#e8eef5;color:#355277;font-size:.75rem;font-weight:800;letter-spacing:.08em}.ecomap-slot-tier{color:#5a6d5f;font-weight:700}.ecomap-booking-summary{margin:24px 0}.ecomap-booking-summary>div{display:flex;justify-content:space-between;gap:20px;padding:10px 0;border-bottom:1px solid #e7e3d8}.ecomap-booking-summary dt{color:#6b7478}.ecomap-booking-summary dd{margin:0;font-weight:700;text-align:right}.ecomap-booking-total{display:flex;align-items:baseline;justify-content:space-between;margin-top:24px;padding-top:20px;border-top:2px solid #355277}.ecomap-booking-total strong{font-family:"Cormorant Garamond",serif;font-size:2rem;color:#355277}.ecomap-secure-note,.ecomap-form-help{display:flex;align-items:center;justify-content:center;gap:7px;margin:18px 0 0;color:#6b7478;font-size:.78rem;text-align:center}.ecomap-booking-form{display:grid;gap:17px;margin-top:24px}.ecomap-booking-form label{display:grid;gap:7px;font-size:.9rem;font-weight:700}.ecomap-booking-form input[type=text],.ecomap-booking-form input[type=email],.ecomap-booking-form input[type=tel]{width:100%;min-height:48px;padding:10px 13px;border:1px solid #bac3c8;border-radius:8px;background:#fff;color:#243641;font:inherit;transition:border-color .2s,box-shadow .2s}.ecomap-booking-form input:focus{outline:none;border-color:#355277;box-shadow:0 0 0 3px rgba(53,82,119,.13)}.ecomap-form-row{display:grid;grid-template-columns:1fr 1fr;gap:14px}.ecomap-terms-check{grid-template-columns:22px 1fr!important;align-items:start;font-weight:400!important;line-height:1.5}.ecomap-terms-check input{width:18px;height:18px;margin-top:2px}.ecomap-pay-button{display:flex;width:100%;align-items:center;justify-content:center;gap:9px;border:0;cursor:pointer}.ecomap-pay-button span{margin-left:auto;padding-left:12px}.ecomap-honeypot{position:absolute!important;left:-9999px!important}.ecomap-booking-result,.ecomap-booking-empty{max-width:650px;margin:auto;text-align:center}.ecomap-booking-empty>i{font-size:3rem;color:#cbb87a}.ecomap-result-icon{display:grid;width:64px;height:64px;margin:0 auto 18px;place-items:center;border-radius:50%;background:#dcefe1;color:#2d7540;font-size:1.7rem}.ecomap-booking-result .ecomap-booking-summary{text-align:left}.ecomap-booking-page .site-footer{margin-top:0}@media(max-width:760px){.ecomap-booking-main{padding:40px 0 60px}.ecomap-booking-columns{grid-template-columns:1fr}.ecomap-booking-back{font-size:0}.ecomap-booking-back i{font-size:1rem}.ecomap-form-row{grid-template-columns:1fr}.ecomap-booking-card{border-radius:13px}.ecomap-pay-button span{display:none}}

/* WP injects an admin bar for logged-in users; keep the sticky header below it. */
body.admin-bar .site-header {
  top: 32px;
}

/* Optional content controls from Eco Map → Contenus. */
.hero-bg.has-custom-image {
  background-image:
    linear-gradient(rgba(217, 230, 241, .76), rgba(198, 218, 236, .82)),
    var(--ecomap-hero-bg);
  background-position: center;
  background-size: cover;
}

.two-col.is-single {
  grid-template-columns: minmax(0, 1fr);
}
@media screen and (max-width: 782px) {
  body.admin-bar .site-header {
    top: 46px;
  }
}

/* GTranslate lives in the header and follows the languages selected in the plugin. */
.ecomap-header-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.ecomap-language-switcher {
  position: relative;
  z-index: 60;
  display: flex;
  min-width: 112px;
  min-height: 38px;
  align-items: center;
  justify-content: flex-end;
  line-height: 1;
}

.ecomap-language-switcher .gtranslate_wrapper {
  display: flex;
  min-height: 38px;
  align-items: center;
  justify-content: flex-end;
}

.ecomap-language-switcher .gt_switcher-popup {
  display: inline-flex;
  min-height: 38px;
  box-sizing: border-box;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  border: 1px solid rgba(53, 82, 119, .24);
  border-radius: 999px;
  background: rgba(255, 255, 255, .74);
  box-shadow: 0 5px 16px rgba(22, 40, 61, .07);
  color: var(--ink);
  font-size: .84rem;
  font-weight: 700;
  white-space: nowrap;
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}

.ecomap-language-switcher .gt_switcher-popup:hover,
.ecomap-language-switcher .gt_switcher-popup:focus-visible {
  border-color: var(--blue-500);
  background: #fff;
  box-shadow: 0 7px 20px rgba(22, 40, 61, .12);
  outline: none;
}

.ecomap-language-switcher .gt_switcher-popup img {
  width: 22px !important;
  height: auto !important;
  flex: 0 0 auto;
  border-radius: 2px;
}

.ecomap-language-switcher .gt_switcher-popup > span {
  margin-right: 0 !important;
}

/* GTranslate's popup mode is restyled as a real dropdown anchored to the header. */
.ecomap-language-switcher .gt_black_overlay {
  background: transparent !important;
  opacity: 0 !important;
}

.ecomap-language-switcher .gt_white_content {
  position: absolute !important;
  top: calc(100% + 10px) !important;
  right: 0 !important;
  bottom: auto !important;
  left: auto !important;
  width: 300px !important;
  max-width: calc(100vw - 36px) !important;
  height: auto !important;
  max-height: calc(100vh - 92px) !important;
  margin: 0 !important;
  padding: 10px 14px !important;
  border: 1px solid rgba(53, 82, 119, .2);
  border-radius: 14px;
  background: #fff !important;
  box-shadow: 0 18px 48px rgba(22, 40, 61, .2);
  color: var(--ink) !important;
  animation: ecomap-language-menu-in .18s ease both;
}

.ecomap-language-switcher .gt_white_content .gt_languages {
  display: flex !important;
  max-height: none !important;
  flex-flow: column nowrap !important;
}

.ecomap-language-switcher .gt_white_content a {
  border-color: rgba(53, 82, 119, .12) !important;
  border-radius: 7px;
  color: var(--ink);
}

.ecomap-language-switcher .gt_white_content a:hover,
.ecomap-language-switcher .gt_white_content a:focus-visible,
.ecomap-language-switcher .gt_white_content a.gt-search-selected {
  background: var(--blue-50) !important;
  outline: none;
}

@keyframes ecomap-language-menu-in {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .ecomap-language-switcher .gt_white_content {
    animation: none;
  }
}

@media (min-width: 981px) {
  .nav-wrap > .main-nav {
    margin-left: auto;
  }
}

@media (max-width: 560px) {
  .ecomap-header-actions {
    gap: 4px;
  }

  .ecomap-language-switcher {
    min-width: 44px;
  }

  .ecomap-language-switcher .gt_switcher-popup {
    width: 44px;
    padding: 6px 7px;
    justify-content: center;
  }

  .ecomap-language-switcher .gt_switcher-popup > span:first-of-type {
    display: none;
  }
}

/* Native WordPress menu markup. The original static CSS remains untouched. */
.main-nav__list,
.main-nav .sub-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav__list {
  display: flex;
  align-items: center;
  gap: 28px;
}

.main-nav .menu-item {
  position: relative;
  margin: 0;
}

.main-nav .sub-menu {
  position: absolute;
  z-index: 10;
  top: calc(100% + 10px);
  left: 0;
  min-width: 210px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--sand-50);
  box-shadow: 0 12px 30px rgba(28, 43, 56, .12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
}

.main-nav .sub-menu a {
  display: block;
  padding: 9px 12px;
  white-space: nowrap;
}

.main-nav .menu-item:hover > .sub-menu,
.main-nav .menu-item:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .main-nav__list {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .main-nav .menu-item > a {
    display: block;
    margin-top: 0;
    border-bottom: 1px solid var(--line);
  }

  .main-nav__list > .menu-item:last-child > a {
    border-bottom: none;
  }

  .main-nav .sub-menu {
    position: static;
    min-width: 0;
    padding: 0 0 0 18px;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }
}
