@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700&display=swap');

/* 
 * Loft PMS - Booking Bar Drawer System
 * CORRECTION STRUCTURELLE - Drawer Safari Lodge EXACT (PAS PLEINE PAGE)
 */

/* Variables CSS */
:root {
  --loft-red: #c41e3a;
  --loft-red-dark: #a01730;
  --loft-red-light: #e74c5c;
  --loft-beige: #f5f2ed;
  --loft-beige-light: #faf8f5;
  --loft-beige-dark: #e8e4dd;
  --loft-gray: #6c757d;
  --loft-gray-light: #f8f9fa;
  --loft-gray-dark: #495057;
  --loft-border: rgba(0, 0, 0, 0.06);
  --loft-shadow: rgba(0, 0, 0, 0.1);
  --booking-bar-height: 70px;
  --drawer-height: 420px;
}

/* Reset et base */
#loft-booking-root * {
  box-sizing: border-box;
}

#loft-booking-root {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: var(--loft-gray-dark);
}

/* INTERDICTION: Pas de transform sur body */
body {
  transform: none !important;
}

/* Booking Bar fixe - STYLE SAFARI LODGE (centré) */
.loft-bookingbar-fixed {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 16px;
  z-index: 10000;
  pointer-events: none; /* Pour permettre le clic à travers */
}

.loft-bookingbar-inner {
  pointer-events: auto; /* Réactive les clics sur la barre */
  margin: 0 auto;
  max-width: 1200px;
  width: calc(100% - 48px);
  
  /* Style Safari Lodge */
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
  border: 1px solid rgba(0,0,0,.06);
  overflow: hidden;
  
  /* Contenu de la barre */
  display: flex;
  align-items: center;
  padding: 0;
  gap: 0;
  height: var(--booking-bar-height);
}

.loft-bookingbar-inner,
.loft-bookingbar-inner .zone-label,
.loft-bookingbar-inner .zone-value {
  font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Zones cliquables de la barre */
.loft-booking-zone {
  flex: 1;
  height: 100%;
  min-height: 64px;
  background: transparent;
  border: 0;
  border-radius: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 14px 20px;
  min-width: 0;
  position: relative;
  overflow: visible;
}

.loft-booking-zone:not(:last-of-type)::after {
  content: "";
  position: absolute;
  top: 12px;
  bottom: 12px;
  right: 0;
  width: 1px;
  background: rgba(0,0,0,.08);
}

.loft-booking-zone:hover {
  background: rgba(0,0,0,.02);
  transform: none;
}

.loft-booking-zone.active {
  background: rgba(0,0,0,.02);
  border: 0;
  color: inherit;
  box-shadow: none;
  position: relative;
  overflow: visible;
}

.loft-booking-zone.active::after {
  display: none;
}

.loft-booking-zone.is-validated {
  border: 0;
}

.loft-booking-zone.is-validated::after {
  display: none;
}

.loft-booking-zone.is-validated .zone-label,
.loft-booking-zone.is-validated .zone-value {
  color: inherit;
}

.loft-booking-zone .zone-label {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  line-height: 1.15;
  color: #b3262d;
  opacity: 1;
  margin-bottom: 3px;
  font-family: inherit;
}

.loft-booking-zone.active .zone-label {
  opacity: 0.9;
  color: #b3262d;
}

.loft-booking-zone .zone-value {
  font-size: 16px;
  font-weight: 700;
  color: #000000;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.loft-booking-zone.is-validated .zone-value {
  color: #000000;
}

.loft-booking-zone.active .zone-value {
  color: #000000;
}

.loft-booking-zone[data-zone="logements"] .zone-value {
  color: #000000 !important;
  font-weight: 700 !important;
}

.loft-booking-zone.is-validated .zone-label {
  color: #b3262d;
}

/* Bouton recherche */
.loft-booking-search {
  width: 56px;
  height: 56px;
  background: #b3262d;
  border: none;
  border-radius: 10px;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
  margin-right: 10px;
}

.loft-booking-search:hover {
  background: var(--loft-red-dark);
  transform: none;
}

.loft-booking-search:disabled,
.loft-booking-search[aria-disabled="true"] {
  background: rgba(179, 38, 45, 0.30);
  cursor: not-allowed;
  opacity: 0.8;
}

.loft-booking-search svg {
  width: 20px;
  height: 20px;
}

.loft-drawer-inner:has(.loft-logements-panel:not([style*="display: none"])) .loft-drawer-title {
  position: static;
  color: var(--loft-gray-dark);
  font-size: inherit;
  line-height: 1.2;
}

.loft-drawer-inner:has(.loft-logements-panel:not([style*="display: none"])) .loft-drawer-title::after {
  content: none;
}

/* Drawer (tiroir) - RÈGLES STRICTES ANTI PLEIN ÉCRAN */
.loft-booking-drawer {
  /* POSITION FIXE - ANTI PLEIN ÉCRAN */
  position: fixed;
  left: 0;
  right: 0;
  bottom: var(--booking-bar-height); /* COLLÉ À LA BARRE */
  height: var(--drawer-height);
  max-height: 60vh; /* LIMITE HAUTEUR IMPORTANTE */
  
  /* ANTI PLEIN ÉCRAN - INTERDICTIONS */
  top: auto !important; /* PAS DE top: 0 */
  min-height: auto !important; /* PAS DE min-height: 100vh */
  height: var(--drawer-height) !important; /* FORCE HAUTEUR LIMITÉE */
  
  /* STYLES SAFARI LODGE */
  background: #fff;
  border-radius: 12px; /* Identique à la barre */
  border-top: 1px solid rgba(0,0,0,.06);
  box-shadow: none; /* Pas d'ombre comme Safari */
  
  /* CENTRAGE IDENTIQUE À LA BARRE */
  z-index: 9999; /* EN DESSOUS de la barre */
  overflow-y: auto; /* SCROLL SI CONTENU TROP LONG */
  
  /* ANIMATION TIROIR UNIQUEMENT */
  transform: translateY(100%); /* FERMÉ */
  transition: transform 260ms cubic-bezier(0.22, 0.61, 0.36, 1);
  opacity: 1; /* PAS DE FADE */
}

.loft-booking-drawer.open {
  transform: translateY(0); /* OUVERT */
}

/* Wrapper centré pour le tiroir - IDENTIQUE À LA BARRE */
.loft-drawer-wrapper {
  position: fixed;
  left: 0;
  right: 0;
  bottom: var(--booking-bar-height);
  z-index: 9999;
  pointer-events: none;
}

.loft-drawer-inner {
  pointer-events: none;
  margin: 0 auto;
  max-width: 1200px;
  width: calc(100% - 48px);
  background: white;
  border-radius: 12px;
  border: 1px solid var(--loft-border);
  overflow: hidden;
  height: 70vh;
  min-height: 520px;
  max-height: calc(100vh - var(--booking-bar-height) - 16px);
  display: flex;
  flex-direction: column;
  
  /* ANIMATION TIROIR */
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.loft-drawer-inner.open {
  transform: translateY(0);
  pointer-events: auto;
}

/* INTERDICTION: Pas de centrage flex */
.loft-booking-drawer,
.loft-booking-drawer * {
  display: block !important;
}

/* Header du drawer - STYLE SAFARI */
.loft-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 24px 0;
  border-bottom: none;
  background: white;
  flex-shrink: 0;
}

.loft-drawer-header-main {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex: 1;
  min-width: 0;
  flex-wrap: wrap;
}

.loft-drawer-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--loft-gray-dark);
  font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  margin: 0;
}

.loft-drawer-header .loft-drawer-title {
  font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 22px !important;
  font-weight: 700 !important;
  letter-spacing: 0.01em !important;
  line-height: 1.2 !important;
}

@media (max-width: 768px) {
  .loft-drawer-header .loft-drawer-title {
    font-size: 19px !important;
    line-height: 1.25 !important;
  }
}

.loft-drawer-close {
  width: 32px;
  height: 32px;
  background: white;
  border: 1px solid var(--loft-border);
  border-radius: 6px;
  color: var(--loft-gray);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.loft-drawer-close:hover {
  background: var(--loft-red);
  color: white;
  border-color: var(--loft-red);
}

.loft-drawer-close svg {
  width: 16px;
  height: 16px;
}

/* Contenu du drawer - STYLE SAFARI */
.loft-drawer-content {
  padding: 0;
  flex: 1;
  overflow-y: visible;
}

/* Onglets */
.loft-drawer-tabs {
  display: flex;
  gap: 2px;
  margin-bottom: 20px;
  border-bottom: 2px solid var(--loft-beige-dark);
  flex-shrink: 0;
}

.loft-drawer-tab {
  padding: 12px 20px;
  background: transparent;
  border: none;
  color: var(--loft-gray);
  cursor: pointer;
  font-weight: 500;
  position: relative;
  transition: all 0.2s ease;
}

.loft-drawer-tab:hover {
  color: var(--loft-gray-dark);
  background: var(--loft-beige-light);
}

.loft-drawer-tab.active {
  color: var(--loft-red);
  background: var(--loft-beige);
}

.loft-drawer-tab.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--loft-red);
}

/* Panneaux */
.loft-drawer-panel {
  display: none;
  animation: fadeIn 0.3s ease;
}

.loft-drawer-panel.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* VOYAGEURS - STYLE SAFARI LODGE EXACT */
:root {
  --safari-gold: #b89b54;
  --safari-beige: #f3f1ea;
}

.loft-voyageurs-panel {
  padding-top: 60px;
  padding-right: 24px;
  padding-bottom: 80px;
  padding-left: 24px;
  max-height: none;
  min-height: 70vh;
}

.loft-voyageurs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 44px;
  padding: 8px;
  margin: 0 auto;
  align-items: start;
}

.loft-voyageur-item {
  text-align: center;
  padding: 20px;
  background: var(--safari-beige);
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 12px;
  transition: all 0.2s ease;
}

.loft-voyageur-item:hover {
  background: #f5f2ed;
  border-color: var(--safari-gold);
  transform: translateY(-2px);
}

/* Pictogramme rond style Safari */
.loft-voyageur-icon {
  width: 140px;
  height: 140px;
  background: var(--safari-beige);
  border: 2px solid var(--safari-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
}

.loft-voyageur-icon svg {
  width: 64px;
  height: 64px;
  stroke: var(--safari-gold);
  fill: none;
  stroke-width: 1.8;
}

.loft-voyageur-title {
  font-size: 20px;
  font-weight: 500;
  color: var(--loft-gray-dark);
  margin-bottom: 6px;
}

.loft-voyageur-age {
  font-size: 14px;
  color: var(--loft-gray);
  margin-bottom: 32px;
  opacity: 0.65;
}

.loft-voyageur-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.loft-voyageur-btn {
  width: 44px;
  height: 44px;
  background: var(--safari-beige);
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 10px;
  color: var(--safari-gold);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.loft-voyageur-btn:hover:not(:disabled) {
  background: var(--safari-gold);
  color: white;
  border-color: var(--safari-gold);
  transform: scale(1.05);
}

.loft-voyageur-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  transform: none;
}

.loft-voyageur-count {
  font-size: 20px;
  font-weight: 500;
  color: var(--loft-gray-dark);
  min-width: 32px;
  text-align: center;
}

.loft-voyageurs-max {
  margin-top: 14px;
  font-size: 13px;
  font-weight: 500;
  color: #6a6a6a;
  text-align: center;
}

/* Header titre style Safari */
.loft-drawer-title {
  font-size: 18px;
  letter-spacing: 0.04em;
  font-weight: 600;
  margin-top: 24px;
  margin-bottom: 18px;
  color: var(--loft-gray-dark);
  font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* LOGEMENTS - SÉLECTION UNIQUE */
.loft-logements-panel {
  padding: 24px 24px 32px;
  max-height: 520px;
  min-height: 430px;
}

.booking-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-height: 450px;
  overflow-y: auto;
  padding: 4px;
}

.booking-card {
  background: #fff;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.booking-card:hover {
  border-color: var(--safari-gold);
  transform: translateY(-2px);
}

.booking-card.is-disabled {
  opacity: 0.45;
  filter: grayscale(1);
  cursor: not-allowed;
}

.booking-card.is-disabled:hover {
  border-color: rgba(0,0,0,.08);
  transform: none;
}

.booking-card.is-disabled .booking-card-content,
.booking-card.is-disabled .booking-card-image {
  pointer-events: none;
}

.booking-card-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(60,60,60,0.85);
  color: #fff;
  font-size: 12px;
  padding: 6px 8px;
  border-radius: 999px;
  line-height: 1;
  z-index: 2;
}

.loft-logements-msg {
  margin: 0 0 12px;
  padding: 10px 12px;
  border: 1px solid rgba(178, 31, 45, 0.25);
  background: rgba(178, 31, 45, 0.06);
  color: var(--loft-gray-dark);
  border-radius: 10px;
  font-size: 13px;
}

.booking-card.is-selected {
  border: 2px solid #b3262d;
  background: #fff;
}

.booking-card-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: var(--safari-beige);
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}

.booking-card-image.placeholder {
  background: linear-gradient(135deg, #f3f1ea 0%, #e8e4dd 100%);
}

.booking-card-content {
  padding: 12px;
  min-height: 48px;
  display: flex;
  align-items: flex-start;
  font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.booking-card-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--loft-gray-dark);
  line-height: 1.3;
  font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-word;
}

.booking-card.is-selected .booking-card-title {
  color: #b3262d;
}

.loft-logements-panel .booking-card-title {
  color: #000000 !important;
  font-weight: 700 !important;
}

.loft-logements-panel .booking-card.is-selected .booking-card-title {
  color: #000000 !important;
}

.booking-card-price {
  color: var(--safari-gold);
  font-weight: 700;
  font-size: 13px;
  margin-top: 4px;
  font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.booking-card-check {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 22px;
  height: 22px;
  background: #b3262d;
  color: #fff;
  border-radius: 999px;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
}

.booking-card.is-selected .booking-card-check {
  display: flex;
}

/* OPTIONS */
.loft-options-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.loft-option-item {
  display: flex;
  align-items: center;
  padding: 12px;
  background: var(--loft-beige-light);
  border: 1px solid var(--loft-beige-dark);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.loft-option-item:hover {
  background: var(--loft-beige);
  border-color: var(--loft-red);
}

.loft-option-checkbox {
  width: 18px;
  height: 18px;
  margin-right: 12px;
  accent-color: var(--loft-red);
}

.loft-option-label {
  flex: 1;
  font-weight: 500;
}

.loft-option-price {
  color: var(--loft-red);
  font-weight: 600;
  font-size: 13px;
}

.lpms-cal {
  display: flex;
  gap: 24px;
}

/* DATES — centrage du calendrier (2 mois) sans impacter les autres panneaux */
.loft-dates-panel .lpms-cal {
  width: 100%;
  max-width: none !important;
  margin: 0 !important;
  justify-content: space-between;
  align-items: flex-start;
  gap: 80px;
}

.loft-dates-panel .loft-dates-container {
  width: 100%;
  max-width: none !important;
  justify-content: space-between;
  align-items: flex-start;
  gap: 80px;
}

.loft-dates-panel .loft-dates-panel-content {
  width: 100%;
}

.loft-dates-panel .loft-dates-legend {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  margin: 0 0 10px;
  padding-left: 16px;
  box-sizing: border-box;
  color: #000000;
  font-size: 12px;
  font-weight: 600;
  font-style: italic;
}

.loft-dates-panel .loft-dates-legend__hours {
  margin: 0 0 12px;
  padding-left: 16px;
  color: #000000;
  font-size: 12px;
}

.loft-dates-panel .loft-dates-legend__swatch {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  border: 1px solid #e0e0e0;
  background: #e9e9e9;
  display: inline-block;
}

/* Calendrier booking bar : pas de clic tant que les indisponibilités ne sont pas chargées */
.loft-dates-availability-pending {
  margin: 0 0 10px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(179, 38, 45, 0.08);
  border: 1px solid rgba(179, 38, 45, 0.2);
  font-size: 13px;
  font-weight: 700;
  color: #495057;
}
.loftpms-cal-month--availability-pending .loft-calendar-day.loftpms-cal-day--pending-availability {
  pointer-events: none;
  cursor: default !important;
  opacity: 0.55;
}

.loft-dates-panel .lpms-cal-month {
  flex: 1 1 0;
  max-width: none;
  min-width: 0;
  width: auto;
}

.loft-dates-panel .lpms-cal-month .loft-calendar-grid {
  gap: 12px;
}

.loft-dates-panel .loft-calendar-wrapper {
  width: 100%;
}

.loft-dates-panel .loft-calendar-day.lpms-cal-day {
  aspect-ratio: auto;
  height: 56px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 600;
  line-height: 1;
}

/* Jours bloqués / indisponibles (DATES uniquement) */
.loft-dates-panel .lpms-cal-day.is-disabled,
.loft-dates-panel .lpms-cal-day.disabled,
.loft-dates-panel .lpms-cal-day.unavailable,
.loft-dates-panel .lpms-cal-day.blocked,
.loft-dates-panel .lpms-cal-day.is-booked,
.loft-dates-panel .lpms-cal-day[aria-disabled="true"],
.loft-dates-panel .lpms-cal-day[disabled] {
  background: #e9e9e9 !important;
  color: #9a9a9a !important;
  border: 1px solid #e0e0e0 !important;
  cursor: not-allowed !important;
  opacity: 1 !important;
}

.loft-dates-panel .lpms-cal-day.is-disabled:hover,
.loft-dates-panel .lpms-cal-day.disabled:hover,
.loft-dates-panel .lpms-cal-day.unavailable:hover,
.loft-dates-panel .lpms-cal-day.blocked:hover,
.loft-dates-panel .lpms-cal-day.is-booked:hover,
.loft-dates-panel .lpms-cal-day[aria-disabled="true"]:hover,
.loft-dates-panel .lpms-cal-day[disabled]:hover {
  background: #e9e9e9 !important;
  color: #9a9a9a !important;
  border-color: #e0e0e0 !important;
}

.lpms-cal-month {
  width: 320px;
}

.lpms-cal-month .loft-calendar-grid {
  gap: 6px;
}

.lpms-cal-day {
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  background: var(--loft-beige-light);
}

.lpms-cal-day:hover:not(.is-disabled) {
  background: var(--loft-beige);
}

.lpms-cal-day.is-start,
.lpms-cal-day.is-end {
  background: #B21F2D;
  color: #fff;
  font-weight: 600;
}

.lpms-cal-day.is-in-range {
  background: rgba(178, 31, 45, 0.20);
  color: #B21F2D;
  font-weight: 600;
}

/* Force les états sélectionnés dans le drawer DATES (priorité sur styles génériques) */
.loft-dates-panel .lpms-cal-day.selected,
.loft-dates-panel .lpms-cal-day.is-start,
.loft-dates-panel .lpms-cal-day.is-end {
  background: #B21F2D !important;
  color: #fff !important;
}

.loft-dates-panel .lpms-cal-day.in-range,
.loft-dates-panel .lpms-cal-day.is-in-range {
  background: #B21F2D !important;
  color: #fff !important;
  border-color: #B21F2D !important;
}

.lpms-cal-day.is-disabled {
  background: var(--loft-gray-light);
  color: var(--loft-gray);
  opacity: 0.35;
  cursor: not-allowed;
}

.loft-calendar-title {
  font-weight: 700;
  text-transform: uppercase;
  color: var(--loft-gray-dark);
  font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.loft-dates-panel .loft-cal-nav,
.loft-dates-panel .loft-cal-nav-spacer {
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.loft-dates-panel .loft-cal-nav {
  border: 1px solid rgba(0,0,0,.08);
  background: var(--loft-beige-light);
  border-radius: 10px;
  color: var(--loft-gray-dark);
  cursor: pointer;
  line-height: 1;
  padding: 0;
  font-size: 22px;
  font-weight: 600;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.loft-dates-panel .loft-cal-nav:hover {
  border-color: #B21F2D;
  color: #B21F2D;
  background: var(--loft-beige);
  transform: translateY(-1px);
}

.loft-dates-panel .loft-cal-nav:active {
  transform: translateY(0);
}

.loft-calendar-wrapper {
  background: white;
  border: 1px solid var(--loft-border);
  border-radius: 8px;
  padding: 16px;
  min-width: 280px;
  flex-shrink: 0;
}

.loft-calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  font-weight: 600;
  color: var(--loft-gray-dark);
}

.loft-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  text-align: center;
}

.loft-calendar-day-header {
  font-size: 11px;
  font-weight: 600;
  color: var(--loft-gray);
  padding: 4px;
}

/* DATES — style premium weekdays (lun. mar. …) */
.loft-dates-panel .loft-calendar-day-header {
  font-size: 13px;
  font-weight: 500;
  color: #6a6a6a;
  letter-spacing: 0.4px;
  text-transform: lowercase;
}

.loft-calendar-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  transition: all 0.2s ease;
  position: relative;
}

/* CACHER LES PRIX - Safari Lodge */
.loft-calendar-day .price,
.loft-calendar-day .day-price,
.loft-calendar-day .rate,
.loft-calendar-day span[data-price],
.loft-calendar-day .calendar-price,
.loft-calendar-day small,
.loft-calendar-day .amount,
.loft-calendar-day .currency {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  height: 0 !important;
  width: 0 !important;
  overflow: hidden !important;
}

/* Style Safari Lodge ROUGE */
.loft-calendar-day:hover:not(.disabled) {
  background: var(--loft-beige);
}

.loft-calendar-day.selected {
  background: #B21F2D;
  color: white;
  font-weight: 600;
}

.loft-calendar-day.in-range {
  background: rgba(178, 31, 45, 0.85);
  color: white;
  font-weight: 500;
}

.loft-calendar-day.disabled {
  color: var(--loft-gray);
  opacity: 0.3;
  cursor: not-allowed;
  background: var(--loft-gray-light);
}

/* Responsive - VOYAGEURS + LOGEMENTS SAFARI LODGE */
@media (max-width: 768px) {
  :root {
    --drawer-height: 450px;
  }
  
  .loft-bookingbar-inner {
    width: calc(100% - 24px); /* Mobile: marges plus petites */
    padding: 0 12px;
    gap: 8px;
  }
  
  .loft-booking-zone {
    height: 45px;
    padding: 6px 8px;
  }
  
  .loft-booking-zone .zone-label {
    font-size: 10px;
  }
  
  .loft-booking-zone .zone-value {
    font-size: 11px;
  }
  
  .loft-booking-search {
    width: 45px;
    height: 45px;
  }
  
  .loft-drawer-wrapper {
    bottom: calc(var(--booking-bar-height) + 12px);
  }
  
  .loft-drawer-inner {
    width: calc(100% - 24px);
  }
  
  /* Voyageurs */
  .loft-voyageurs-panel {
    padding: 20px 20px 28px;
    max-height: 450px;
    min-height: 400px;
  }
  
  .loft-voyageurs-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 0;
  }
  
  .loft-voyageur-item {
    padding: 16px;
  }
  
  .loft-voyageur-icon {
    width: 120px;
    height: 120px;
    margin-bottom: 20px;
  }
  
  .loft-voyageur-icon svg {
    width: 56px;
    height: 56px;
  }
  
  .loft-voyageur-title {
    font-size: 18px;
    margin-bottom: 4px;
  }
  
  .loft-voyageur-age {
    font-size: 13px;
    margin-bottom: 24px;
  }
  
  .loft-voyageur-btn {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }
  
  .loft-voyageur-count {
    font-size: 18px;
    min-width: 28px;
  }
  
  /* Logements */
  .loft-logements-panel {
    padding: 20px 20px 28px;
    max-height: 450px;
    min-height: 400px;
  }
  
  .booking-cards {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    max-height: 380px;
  }
  
  .booking-card-image {
    aspect-ratio: 1 / 1;
  }
  
  .booking-card-content {
    padding: 10px;
    min-height: 40px;
  }
  
  .booking-card-title {
    font-size: 13px;
    -webkit-line-clamp: 2;
    line-clamp: 2;
  }
  
  .booking-card-price {
    font-size: 12px;
  }
  
  .loft-drawer-header {
    padding: 20px 20px 0;
  }
  
  .loft-drawer-title {
    font-size: 16px;
    margin-top: 20px;
    margin-bottom: 16px;
  }
}

@media (max-width: 900px) {
  .loft-drawer-inner {
    max-height: calc(100vh - var(--booking-bar-height));
  }

  .loft-drawer-content {
    overflow-y: auto;
  }
}

@media (max-width: 480px) {
  :root {
    --drawer-height: 420px;
  }
  
  .loft-bookingbar-inner {
    width: calc(100% - 24px); /* Mobile: marges plus petites */
    padding: 0 8px;
    gap: 6px;
  }
  
  .loft-booking-zone {
    height: 40px;
    padding: 4px 6px;
  }
  
  .loft-booking-zone .zone-label {
    font-size: 9px;
  }
  
  .loft-booking-zone .zone-value {
    font-size: 10px;
  }
  
  .loft-booking-search {
    width: 40px;
    height: 40px;
  }
  
  .loft-booking-search svg {
    width: 16px;
    height: 16px;
  }
  
  .loft-drawer-wrapper {
    bottom: calc(var(--booking-bar-height) + 8px);
  }
  
  .loft-drawer-inner {
    width: calc(100% - 24px);
  }
  
  /* Voyageurs */
  .loft-voyageurs-panel {
    padding: 16px 16px 24px;
    max-height: 420px;
    min-height: 380px;
  }
  
  .loft-voyageurs-grid {
    gap: 20px;
  }
  
  .loft-voyageur-item {
    padding: 12px;
  }
  
  .loft-voyageur-icon {
    width: 100px;
    height: 100px;
    margin-bottom: 16px;
  }
  
  .loft-voyageur-icon svg {
    width: 48px;
    height: 48px;
  }
  
  .loft-voyageur-title {
    font-size: 16px;
  }
  
  .loft-voyageur-age {
    font-size: 12px;
    margin-bottom: 20px;
  }
  
  .loft-voyageur-btn {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }
  
  .loft-voyageur-count {
    font-size: 16px;
    min-width: 24px;
  }
  
  /* Logements */
  .loft-logements-panel {
    padding: 16px 16px 24px;
    max-height: 420px;
    min-height: 380px;
  }
  
  .booking-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    max-height: 350px;
  }
  
  .booking-card-image {
    aspect-ratio: 1 / 1;
  }
  
  .booking-card-content {
    padding: 8px;
    min-height: 36px;
  }
  
  .booking-card-title {
    font-size: 12px;
    -webkit-line-clamp: 2;
    line-clamp: 2;
  }
  
  .booking-card-price {
    font-size: 11px;
  }
  
  .booking-card-check {
    width: 20px;
    height: 20px;
    top: 8px;
    right: 8px;
    font-size: 10px;
  }
  
  .loft-drawer-header {
    padding: 16px 16px 0;
  }
  
  .loft-drawer-title {
    font-size: 15px;
    margin-top: 16px;
    margin-bottom: 14px;
  }
}

/* ====== OPTIONS / EXTRAS — Compact Grid ====== */
.loft-options-panel {
  padding: 24px 24px 32px;
}

.loft-drawer-header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex: 0 1 auto;
  margin-left: 0;
  flex-wrap: wrap;
  min-width: 0;
}

.loft-drawer-brochure-link {
  font-size: 13px;
  font-weight: 500;
  color: #1f1f1f;
  text-decoration: none;
  white-space: normal;
  text-align: left;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.loft-drawer-brochure-link:hover {
  text-decoration: underline;
}

body.loft-brochure-modal-open {
  overflow: hidden;
}

.loft-brochure-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 100001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.loft-brochure-modal {
  position: relative;
  width: min(1100px, 100%);
  height: min(85vh, 900px);
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,.28);
}

.loft-brochure-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: rgba(0,0,0,.08);
  color: #222;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
}

.loft-brochure-modal-frame {
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
}

.loft-options-panel .booking-cards {
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.loft-options-panel .booking-card-image {
  aspect-ratio: 1 / 1;
}

.loft-options-panel .booking-card-content {
  padding: 10px;
  min-height: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.loft-options-panel .booking-card-title {
  font-size: 14px;
  font-weight: 700;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  color: #000000;
}

.loft-options-panel .booking-card-price {
  font-size: 13px;
  margin-top: 2px;
  color: #1f1f1f;
}

.loft-options-panel .loft-voyageur-controls {
  margin-top: 6px !important;
  gap: 6px;
}

.loft-options-panel .loft-voyageur-btn {
  width: 30px;
  height: 30px;
  font-size: 15px;
  border-radius: 8px;
}

.loft-options-panel .loft-voyageur-count {
  font-size: 15px;
  min-width: 22px;
}

.loft-options-panel .booking-card.is-extra-selected {
  border: 2px solid #b3262d;
}

.loft-options-panel .booking-card.is-extra-selected .booking-card-title {
  color: #000000;
}

@media (max-width: 1100px) {
  .loft-options-panel .booking-cards {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 768px) {
  .loft-options-panel {
    padding: 20px 20px 28px;
  }

  .loft-drawer-brochure-link {
    font-size: 12px;
  }
  .loft-options-panel .booking-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}

@media (max-width: 480px) {
  .loft-options-panel .booking-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .loft-options-panel .booking-card-title {
    font-size: 13px;
  }
  .loft-options-panel .booking-card-price {
    font-size: 12px;
  }
  .loft-options-panel .loft-voyageur-btn {
    width: 28px;
    height: 28px;
    font-size: 14px;
  }
  .loft-options-panel .loft-voyageur-count {
    font-size: 14px;
    min-width: 20px;
  }
}

/* ====== EXTRAS DETAIL MODAL ====== */
.loft-extra-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: loftExtraFadeIn 0.2s ease;
}

@keyframes loftExtraFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.loft-extra-modal {
  position: relative;
  width: 90%;
  max-width: 480px;
  max-height: 90vh;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: loftExtraSlideUp 0.25s ease;
}

@keyframes loftExtraSlideUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.loft-extra-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 10;
  width: 32px;
  height: 32px;
  border: none;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
}

.loft-extra-modal-close:hover {
  background: rgba(0, 0, 0, 0.7);
}

.loft-extra-modal-slider {
  position: relative;
  width: 100%;
  height: 280px;
  overflow: hidden;
  flex-shrink: 0;
}

.loft-extra-modal-slides {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.3s ease;
}

.loft-extra-modal-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-color: var(--safari-beige, #f3f1ea);
}

.loft-extra-modal-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border: none;
  background: rgba(255, 255, 255, 0.85);
  color: #333;
  border-radius: 50%;
  font-size: 20px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
  z-index: 5;
}

.loft-extra-modal-arrow:hover {
  background: #fff;
}

.loft-extra-modal-prev { left: 10px; }
.loft-extra-modal-next { right: 10px; }

.loft-extra-modal-dots {
  position: absolute;
  bottom: 10px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 6px;
  z-index: 5;
}

.loft-extra-modal-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  transition: background 0.2s ease;
  cursor: pointer;
}

.loft-extra-modal-dot.is-active {
  background: #fff;
}

.loft-extra-modal-body {
  padding: 20px;
  overflow-y: auto;
  flex: 1;
}

.loft-extra-modal-title {
  margin: 0 0 4px;
  font-size: 20px;
  font-weight: 600;
  color: var(--loft-gray-dark, #495057);
  font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.loft-extra-modal-price {
  font-size: 16px;
  font-weight: 600;
  color: var(--safari-gold, #b89b54);
  margin-bottom: 14px;
}

.loft-extra-modal-desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--loft-gray, #6c757d);
  margin-bottom: 20px;
  word-break: break-word;
}

.loft-extra-modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.loft-extra-modal-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.loft-extra-modal-qty-btn {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 10px;
  background: var(--safari-beige, #f3f1ea);
  color: var(--safari-gold, #b89b54);
  font-size: 18px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.loft-extra-modal-qty-btn:hover {
  background: var(--safari-gold, #b89b54);
  color: #fff;
  border-color: var(--safari-gold, #b89b54);
}

.loft-extra-modal-qty-val {
  font-size: 18px;
  font-weight: 600;
  min-width: 28px;
  text-align: center;
  color: var(--loft-gray-dark, #495057);
}

.loft-extra-modal-add {
  flex: 1;
  max-width: 200px;
  height: 42px;
  border: none;
  border-radius: 10px;
  background: #b3262d;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease;
}

.loft-extra-modal-add:hover {
  background: var(--loft-red-dark, #a01730);
}

@media (max-width: 768px) {
  .loft-extra-modal {
    max-width: 95%;
  }
  .loft-extra-modal-slider {
    height: 220px;
  }
}

/* =========================
   MOBILE REWORK - BOOKING BAR
   ========================= */
@media (max-width: 768px) {
  .loft-drawer-inner,
  .loft-drawer-inner button,
  .loft-drawer-inner input,
  .loft-drawer-inner select,
  .loft-drawer-inner textarea {
    font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  }

  .loft-bookingbar-fixed--mobile {
    bottom: 10px;
  }

  .loft-bookingbar-mobile {
    width: calc(100% - 16px);
    margin: 0 auto;
    background: #fff;
    border: 1px solid rgba(17, 24, 39, 0.08);
    border-radius: 16px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.16);
    padding: 10px;
  }

  .loft-booking-summary-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border: 0;
    background: #f8fafc;
    color: #0f172a;
    border-radius: 12px;
    padding: 12px 12px;
    font-family: ui-serif, Georgia, "Times New Roman", Times, serif;
    cursor: pointer;
  }

  .loft-booking-summary-text {
    font-size: 13px;
    line-height: 1.25;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
  }

  .loft-booking-summary-chevron {
    font-size: 18px;
    font-weight: 700;
    color: #b3262d;
    line-height: 1;
  }

  .loft-bookingbar-mobile-fields {
    margin-top: 10px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .loft-booking-zone--mobile {
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 12px;
    min-height: 62px;
    padding: 10px 10px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    text-align: left;
    background: #fff;
  }

  .loft-booking-zone--mobile::after {
    display: none !important;
  }

  .loft-booking-zone--mobile .zone-label {
    font-size: 10px;
    margin-bottom: 2px;
  }

  .loft-booking-zone--mobile .zone-value {
    font-size: 12px;
    line-height: 1.2;
  }

  [data-mobile-summary="logements"] {
    color: #000000 !important;
    font-weight: 700 !important;
  }

  .loft-booking-search--mobile {
    width: 100%;
    margin: 10px 0 0;
    border-radius: 12px;
    height: 48px;
    font-family: ui-serif, Georgia, "Times New Roman", Times, serif;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.2px;
  }

  .loft-booking-search--mobile svg {
    display: none;
  }

  .loft-booking-search--mobile .loft-booking-search__label {
    display: inline-block;
  }

  /* Bottom sheet premium mobile */
  .loft-drawer-wrapper {
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10020;
  }

  .loft-drawer-inner {
    width: 100%;
    max-width: none;
    border-radius: 18px 18px 0 0;
    min-height: 72vh;
    max-height: 92vh;
    border-left: 0;
    border-right: 0;
    border-bottom: 0;
    box-shadow: 0 -16px 42px rgba(15, 23, 42, 0.24);
  }

  .loft-drawer-header {
    padding: 16px 16px 0;
  }

  .loft-drawer-title {
    margin-top: 6px;
    font-size: 18px;
  }

  .loft-dates-mobile-sheet {
    display: flex;
    flex-direction: column;
    min-height: 0;
    height: 100%;
  }

  .loft-dates-mobile-sheet .loft-dates-legend {
    width: 100%;
    justify-content: flex-start;
    margin: 4px 0 8px;
    padding: 0 16px;
    box-sizing: border-box;
  }

  .loft-dates-mobile-sheet .loft-dates-legend__hours {
    margin: 0 0 10px;
    padding: 0 16px;
    box-sizing: border-box;
  }

  .loft-dates-mobile-month {
    flex: 1;
    min-height: 0;
  }

  .loft-dates-mobile-month .loft-calendar-wrapper {
    margin: 0;
    border: 0;
    border-radius: 0;
    padding: 4px 8px 0;
  }

  .loft-dates-mobile-month .loft-calendar-day {
    min-height: 32px;
    font-size: 14px;
  }

  .loft-dates-mobile-footer {
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    padding: 12px 14px 14px;
    background: #fff;
    position: sticky;
    bottom: 0;
  }

  .loft-dates-mobile-summary {
    font-size: 13px;
    color: #334155;
    margin-bottom: 10px;
  }

  .loft-dates-mobile-clear {
    height: 44px;
    border-radius: 12px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    width: 100%;
  }

  .loft-dates-mobile-clear {
    background: #fff;
    color: #0f172a;
  }

  /* Chat widgets: hide while mobile drawer is open */
  body.loftpms-mobile-drawer-open .crisp-client,
  body.loftpms-mobile-drawer-open #tidio-chat,
  body.loftpms-mobile-drawer-open #tidio-chat-iframe,
  body.loftpms-mobile-drawer-open [id*="chat-widget"],
  body.loftpms-mobile-drawer-open iframe[src*="tawk"],
  body.loftpms-mobile-drawer-open iframe[src*="crisp"],
  body.loftpms-mobile-drawer-open iframe[src*="tidio"] {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }
}

/* Mobile step-by-step (Airbnb-like) - desktop inchangé */
@media (max-width: 768px) {
  /* Mobile demandé: masquer la booking bar (cartes) et garder MENU/RÉSERVER uniquement */
  .loft-bookingbar-fixed--mobile,
  .loft-bookingbar-mobile-airbnb {
    display: none !important;
  }

  .loft-bookingbar-fixed--mobile {
    position: relative;
    bottom: auto;
    left: auto;
    right: auto;
    pointer-events: auto;
    z-index: 12;
    /* Réserve l'espace de la barre fixe Menu/Réserver */
    padding-bottom: calc(98px + env(safe-area-inset-bottom, 0px));
  }

  .loft-bookingbar-mobile-airbnb {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    width: 100%;
    max-width: 640px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 20px;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.14);
    padding: 12px;
  }

  .loft-booking-step-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    width: 100%;
    min-height: 72px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 14px;
    background: #fff;
    text-align: left;
    padding: 13px 14px;
    transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
  }

  .loft-booking-step-card:active {
    transform: scale(0.995);
  }

  .loft-booking-step-card.active,
  .loft-booking-step-card.is-validated {
    border-color: rgba(179, 38, 45, 0.44);
    box-shadow: 0 0 0 2px rgba(179, 38, 45, 0.08);
  }

  .loft-booking-step-card .zone-label {
    margin: 0 0 6px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #64748b;
    text-transform: uppercase;
  }

  .loft-booking-step-card .zone-value {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.25;
    color: #0f172a;
  }

  .loft-mobile-bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10035;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 54px;
    padding: 8px 14px calc(9px + env(safe-area-inset-bottom, 0px));
    background: #9f1f2a;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 -10px 24px rgba(15, 23, 42, 0.22);
  }

  /* Quand la modal de reservation est ouverte, masquer la barre rouge
     pour laisser visibles les boutons Suivant / Rechercher de la modal. */
  body.loftpms-mobile-drawer-open .loft-mobile-bottom-nav {
    display: none !important;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }

  body.loftpms-mobile-drawer-open {
    overflow: hidden;
  }

  .loft-mobile-bottom-nav__btn {
    min-width: 98px;
    min-height: 54px;
    border-radius: 0;
    border: 0;
    background: transparent;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    transition: transform 0.16s ease, opacity 0.16s ease, background 0.16s ease, border-color 0.16s ease;
    opacity: 0.98;
  }

  /* Ajustement fin: decaler legerement le bouton RESERVER vers la gauche */
  .loft-mobile-bottom-nav__btn.is-book {
    margin-left: -6px;
  }

  .loft-mobile-bottom-nav__btn:active {
    transform: translateY(1px);
    opacity: 0.9;
    background: rgba(255, 255, 255, 0.16);
  }

  .loft-mobile-bottom-nav__btn:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.08);
  }

  /* Effet doux pour attirer l'attention sur Réserver */
  .loft-mobile-bottom-nav__btn.is-menu .loft-mobile-bottom-nav__icon,
  .loft-mobile-bottom-nav__btn.is-menu .loft-mobile-bottom-nav__label,
  .loft-mobile-bottom-nav__btn.is-book .loft-mobile-bottom-nav__icon,
  .loft-mobile-bottom-nav__btn.is-book .loft-mobile-bottom-nav__label {
    animation: loftReservePulse 2.6s ease-in-out infinite;
  }

  .loft-mobile-bottom-nav__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    width: 24px;
    height: 24px;
    color: #ffffff;
    opacity: 1;
  }

  .loft-mobile-bottom-nav__icon svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
    stroke-width: 1.7;
    filter: none;
  }

  .loft-mobile-bottom-nav__label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    line-height: 1;
  }

  @keyframes loftReservePulse {
    0%, 100% {
      opacity: 0.96;
      transform: scale(1);
      text-shadow: none;
    }
    50% {
      opacity: 1;
      transform: scale(1.06);
      text-shadow: 0 0 10px rgba(255, 255, 255, 0.35);
    }
  }

  .loft-drawer-inner {
    width: 100%;
    max-width: none;
    height: 100dvh;
    min-height: 100dvh;
    max-height: 100dvh;
    border-radius: 28px 28px 0 0;
    border-left: 0;
    border-right: 0;
    border-bottom: 0;
    display: flex;
    flex-direction: column;
    transform: translateY(108%);
    transition: transform 0.36s cubic-bezier(0.22, 0.9, 0.2, 1), opacity 0.24s ease;
    opacity: 0;
    overflow: hidden;
    will-change: transform, opacity;
  }

  .loft-drawer-content {
    min-height: 0;
    flex: 1 1 auto;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    touch-action: pan-y;
    /* Garde le dernier contenu accessible au-dessus du footer fixe */
    padding-bottom: calc(140px + env(safe-area-inset-bottom, 0px));
  }

  .loft-drawer-wrapper {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    background: rgba(12, 12, 14, 0.48);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.26s ease;
    z-index: 10060;
  }

  .loft-drawer-wrapper.is-open {
    opacity: 1;
    pointer-events: auto;
  }

  .loft-drawer-wrapper.is-open .loft-drawer-inner {
    transform: translateY(0);
    opacity: 1;
    animation: loftSheetSlideUp 0.36s cubic-bezier(0.22, 0.9, 0.2, 1);
  }

  .loft-drawer-inner.is-mobile-fullscreen {
    height: 100dvh;
    min-height: 100dvh;
    max-height: 100dvh;
    border-radius: 28px 28px 0 0;
  }

  /* Dates actives: remonter le bloc pour laisser plus de place au calendrier */
  .loft-drawer-inner.is-mobile-fullscreen .loft-drawer-header {
    padding-top: calc(2px + env(safe-area-inset-top, 0px));
    padding-bottom: 2px;
    min-height: calc(38px + env(safe-area-inset-top, 0px));
  }

  .loft-drawer-inner.is-mobile-fullscreen .loft-mobile-sheet-handle {
    margin-top: 4px;
    margin-bottom: 2px;
  }

  .loft-drawer-inner.is-mobile-fullscreen .loft-mobile-sections {
    padding-top: 6px;
    gap: 10px;
  }

  .loft-drawer-inner.is-mobile-fullscreen .loft-mobile-section.is-active .loft-mobile-section__head {
    padding-top: 14px;
    padding-bottom: 12px;
  }

  .loft-drawer-inner.is-mobile-fullscreen .loft-mobile-section.is-active .loft-dates-panel {
    padding-top: 10px;
    padding-bottom: 12px;
  }

  .loft-drawer-header {
    position: relative;
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
    padding: calc(6px + env(safe-area-inset-top, 0px)) 14px 6px;
    border-bottom: 0;
    min-height: calc(46px + env(safe-area-inset-top, 0px));
  }

  .loft-drawer-header-main {
    display: none;
  }

  .loft-drawer-header::before {
    content: "";
    width: 38px;
    height: 4px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.16);
    position: absolute;
    left: 50%;
    top: 6px;
    transform: translateX(-50%);
  }

  .loft-drawer-header::before {
    display: none;
  }

  .loft-drawer-title {
    margin-top: 10px;
    font-size: 26px;
    font-weight: 600;
    letter-spacing: -0.015em;
    color: #1a1a1a;
    margin-bottom: 20px;
  }

  .loft-drawer-title {
    display: none;
  }

  .loft-drawer-close {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: #fbfbfc;
    color: #6b7280;
    margin-left: auto;
  }

  .loft-mobile-step-footer {
    padding: 16px 18px calc(16px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid rgba(15, 23, 42, 0.06);
    background: #fff;
    position: sticky;
    bottom: 0;
    z-index: 8;
    pointer-events: auto;
    flex-shrink: 0;
  }

  /* Même hauteur que .loft-mobile-step-validate (54px) pour éviter tout saut quand le CTA remplace le placeholder */
  .loft-mobile-step-footer__spacer {
    min-height: 54px;
    box-sizing: border-box;
  }

  .loft-mobile-sheet-handle {
    width: 40px;
    height: 4px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.16);
    margin: 10px auto 4px;
  }

  .loft-mobile-sections {
    padding: 14px 18px 18px;
    display: block;
    gap: 16px;
  }

  .loft-mobile-section {
    display: block;
    width: 100%;
    flex: 0 0 auto;
    border: 1px solid rgba(15, 23, 42, 0.05);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
    overflow: hidden;
    transition: box-shadow 0.22s ease, border-color 0.22s ease, transform 0.22s ease;
    margin-bottom: 16px;
  }

  .loft-mobile-section.is-active {
    border-color: rgba(15, 23, 42, 0.08);
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
    transform: translateY(-1px);
  }

  .loft-mobile-section.is-complete:not(.is-active) {
    border-color: rgba(15, 23, 42, 0.08);
  }

  .loft-mobile-section.is-next:not(.is-active) {
    border-color: rgba(15, 23, 42, 0.07);
  }

  .loft-mobile-section__head {
    width: 100%;
    border: 0;
    background: #fff;
    color: #111827;
    cursor: pointer;
    padding: 20px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    text-align: left;
  }

  /* Quand un onglet est ouvert, son en-tête reste visible en haut */
  .loft-mobile-section.is-active .loft-mobile-section__head {
    position: sticky;
    top: 0;
    z-index: 4;
    background: #fff;
    box-shadow: 0 1px 0 rgba(15, 23, 42, 0.06);
  }

  .loft-mobile-section__head-main {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  .loft-mobile-section__head-side {
    display: none;
  }

  .loft-mobile-section__title {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #b3262d;
    font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  }

  .loft-mobile-section__value {
    font-size: 13px;
    font-weight: 400;
    font-style: normal;
    color: #000000;
    font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    letter-spacing: 0.01em;
    white-space: normal;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.35;
  }

  .loft-mobile-section__badge,
  .loft-mobile-section__chevron {
    display: none !important;
  }

  .loft-mobile-section__body {
    border-top: 1px solid rgba(15, 23, 42, 0.05);
    display: none;
    overflow: hidden;
  }

  .loft-mobile-section__body.is-open {
    display: block;
    animation: loftMobileSectionExpand 0.24s ease;
  }

  .loft-mobile-section .loft-voyageurs-panel,
  .loft-mobile-section .loft-logements-panel,
  .loft-mobile-section .loft-options-panel,
  .loft-mobile-section .loft-dates-panel {
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
    padding: 20px 20px 22px;
  }

  .loft-extras-skip-wrap {
    padding: 8px 2px 12px;
    text-align: center;
  }

  .loft-extras-skip-wrap.is-bottom {
    padding-top: 14px;
    padding-bottom: 6px;
  }

  .loft-extras-skip-next {
    border: 0;
    background: transparent;
    color: #000000;
    font-size: 10px;
    font-weight: 700;
    font-style: italic;
    line-height: 1.35;
    padding: 0 4px;
    margin: 0;
    text-align: center;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    background-image: linear-gradient(
      to top,
      rgba(255, 230, 112, 0.9) 45%,
      transparent 45%
    );
  }

  .loft-mobile-guest-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: #fff;
    border: 1px solid #efefef;
    border-radius: 16px;
    padding: 20px;
  }

  .loft-mobile-guest-row {
    display: grid;
    grid-template-columns: 48px minmax(96px, 1fr) auto;
    align-items: center;
    column-gap: 12px;
    border: 0;
    border-radius: 0;
    padding: 0;
    background: #fff;
  }

  .loft-mobile-guest-row + .loft-mobile-guest-row {
    border-top: 1px solid #f1f1f1;
    padding-top: 14px;
    margin-top: 2px;
  }

  .loft-mobile-guest-row__icon {
    width: 48px;
    height: 48px;
    border-radius: 999px;
    background: #f3f1ea;
    color: #b89b54;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }

  .loft-mobile-guest-row__icon svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .loft-mobile-guest-row__meta {
    min-width: 96px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding-right: 0;
  }

  .loft-mobile-guest-row__label {
    font-size: 16px;
    font-weight: 550;
    color: #1a1a1a;
    line-height: 1.2;
  }

  .loft-mobile-guest-row__sub {
    font-size: 13px;
    color: #6e6e6e;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .loft-mobile-logement-list,
  .loft-mobile-extra-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  /* Les sections utilisent le scroll global du body du panneau */
  .loft-logements-panel,
  .loft-options-panel {
    overflow: visible;
    max-height: none;
  }

  /* LOGEMENT: zone scrollable au doigt, sans bouger le reste */
  .loft-mobile-section.is-active .loft-logements-panel {
    max-height: min(52dvh, 520px) !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    touch-action: pan-y;
  }

  .loft-logements-panel .loft-mobile-logement-list,
  .loft-options-panel .loft-mobile-extra-list {
    max-height: none;
    overflow: visible;
  }

  .loft-mobile-logement-row,
  .loft-mobile-extra-row {
    width: 100%;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 14px;
    background: #fff;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    text-align: left;
  }

  .loft-mobile-logement-row.is-selected,
  .loft-mobile-extra-row.is-extra-selected {
    border-color: rgba(179, 38, 45, 0.35);
    box-shadow: 0 8px 20px rgba(179, 38, 45, 0.1);
  }

  .loft-mobile-logement-row__title,
  .loft-mobile-extra-row__title {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    display: block;
  }

  .loft-mobile-logement-row__meta,
  .loft-mobile-extra-row__price {
    font-size: 12px;
    color: #6e6e6e;
    display: block;
    margin-top: 2px;
  }

  .loft-mobile-extra-row__meta {
    min-width: 0;
  }

  .loft-mobile-step-tabs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    padding: 4px 12px 8px;
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 2;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  }

  .loft-mobile-step-tab {
    height: 34px;
    border-radius: 999px;
    border: 1px solid rgba(15, 23, 42, 0.14);
    background: #fff;
    color: #334155;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .loft-mobile-step-tab.is-active {
    border-color: #b3262d;
    background: rgba(179, 38, 45, 0.08);
    color: #7f1d1d;
  }

  .loft-mobile-step-validate {
    width: 100%;
    height: 54px;
    border: 0;
    border-radius: 14px;
    background: #b3262d;
    color: #fff;
    font-size: 18px;
    font-weight: 650;
    letter-spacing: 0.01em;
    box-shadow: 0 12px 26px rgba(179, 38, 45, 0.28);
    font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
  }

  .loft-mobile-step-validate__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
  }

  .loft-mobile-step-validate:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(179, 38, 45, 0.32);
  }

  .loft-mobile-step-validate:active:not(:disabled) {
    transform: translateY(0);
  }

  .loft-mobile-guest-row .loft-voyageur-btn,
  .loft-mobile-extra-row .loft-voyageur-btn {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: #f3f3f3;
    border: 1px solid rgba(15, 23, 42, 0.08);
    color: #4a4a4a;
    font-size: 24px;
    font-weight: 500;
  }

  .loft-mobile-guest-row .loft-voyageur-count,
  .loft-mobile-extra-row .loft-voyageur-count {
    min-width: 30px;
    font-size: 18px;
    color: #b89b54;
  }

  .loft-mobile-guest-row .loft-voyageur-controls {
    flex-shrink: 0;
    gap: 8px;
  }

  @media (max-width: 390px) {
    .loft-mobile-guest-row {
      grid-template-columns: 44px minmax(88px, 1fr) auto;
      column-gap: 10px;
    }

    .loft-mobile-guest-row__icon {
      width: 44px;
      height: 44px;
    }

    .loft-mobile-guest-row .loft-voyageur-btn {
      width: 38px;
      height: 38px;
      font-size: 22px;
      border-radius: 10px;
    }

    .loft-mobile-guest-row .loft-voyageur-count {
      min-width: 26px;
      font-size: 17px;
    }
  }

  .loft-dates-mobile-month .loft-calendar-header {
    margin-bottom: 14px;
  }

  .loft-dates-mobile-month .loft-calendar-title {
    font-size: 17px;
    font-weight: 700;
    text-transform: uppercase;
    color: #1a1a1a;
  }

  .loft-dates-mobile-month .loft-calendar-grid {
    gap: 4px;
  }

  .loft-dates-mobile-month .loft-calendar-day-header {
    font-size: 12px;
    color: #6e6e6e;
  }

  .loft-dates-mobile-month .loft-calendar-day {
    min-height: 32px;
    font-size: 14px;
    border-radius: 8px;
  }

  .loft-dates-mobile-month .loft-cal-nav {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: #f8f8f8;
    border: 1px solid rgba(15, 23, 42, 0.08);
  }

  .loft-drawer-inner.is-mobile-fullscreen {
    height: 100dvh;
    min-height: 100dvh;
    max-height: 100dvh;
    border-radius: 28px 28px 0 0;
  }

  @keyframes loftMobileSectionExpand {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
  }

  .loft-mobile-step-validate:disabled,
  .loft-mobile-step-validate[aria-disabled="true"] {
    background: rgba(179, 38, 45, 0.38);
    cursor: not-allowed;
  }

  @keyframes loftSheetSlideUp {
    from {
      transform: translateY(108%);
      opacity: 0;
    }
    to {
      transform: translateY(0);
      opacity: 1;
    }
  }

  /* Empêche le chat de recouvrir le CTA mobile */
  .crisp-client,
  #tidio-chat,
  #tidio-chat-iframe,
  [id*="chat-widget"],
  iframe[src*="tawk"],
  iframe[src*="crisp"],
  iframe[src*="tidio"] {
    bottom: calc(84px + env(safe-area-inset-bottom, 0px)) !important;
  }

  body.loftpms-mobile-bottom-nav-active .crisp-client,
  body.loftpms-mobile-bottom-nav-active #tidio-chat,
  body.loftpms-mobile-bottom-nav-active #tidio-chat-iframe,
  body.loftpms-mobile-bottom-nav-active [id*="chat-widget"],
  body.loftpms-mobile-bottom-nav-active iframe[src*="tawk"],
  body.loftpms-mobile-bottom-nav-active iframe[src*="crisp"],
  body.loftpms-mobile-bottom-nav-active iframe[src*="tidio"] {
    bottom: calc(96px + env(safe-area-inset-bottom, 0px)) !important;
  }
}

/* APP /LOFT-PMS : SOLUTION FINALE - Supprimer l'espace du container racine */
body.loftpms-app-shell #loft-booking-root {
  display: none !important;
}

/* Extras skip CTA (desktop + mobile shared) */
.loft-extras-skip-wrap {
  text-align: center;
}

.loft-extras-skip-next {
  border: 0;
  background-color: transparent;
  color: #000;
  font-size: 12px;
  font-weight: 700;
  font-style: italic;
  line-height: 1.35;
  padding: 0 4px;
  margin: 0;
  text-align: center;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  background-image: linear-gradient(
    to top,
    rgba(255, 230, 112, 0.9) 45%,
    transparent 45%
  );
}
