/* ========================================================
   🌈 VARIABLES GÉNÉRALES
======================================================== */
:root {
  --color-primary: #e37b7c; /* rose principal */
  --color-secondary: #726193; /* violet */
  --color-accent: #ffe4b4; /* jaune clair accent */
  --color-blur-bg: rgba(255, 255, 255, 0.1);
  --blur-border: rgba(255, 255, 255, 0.15);
  --blur-shadow: rgba(255, 255, 255, 0.08);
}

/* ========================================================
   ⭐️ STYLES AVIS / PLATEFORMES (Airbnb / Booking)
======================================================== */
.review-item {
  display: flex;
  align-items: center;
  gap: 0.75em;
  margin-bottom: 1.5em;
}

.logo-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: white;
  padding: 6px;
}

.review-text {
  display: flex;
  flex-direction: column;
}

.review-row {
  display: flex;
  align-items: center;
  gap: 0.5em;
  font-size: 0.8em;
}

.review-row .stars,
.review-row .score {
  white-space: nowrap;
}

.review-link {
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease;
}

.review-link:hover {
  transform: scale(1.03);
}

/* ========================================================
   🌍 LIENS MULTILINGUES
======================================================== */
.flag-links a {
  text-decoration: none;
  outline: none;
  border: none;
}

.flag-links a:focus {
  outline: none;
}

/* ========================================================
   ❌ FORMULAIRES : ERREURS ET VALIDATION
======================================================== */
.field {
  position: relative;
}

/* Empêcher le redimensionnement du textarea */
textarea {
  resize: none !important;
}

.field .error-message {
  color: #e74c3c;
  font-size: 0.75em;
  font-weight: bold;
  font-style: italic;
  position: absolute;
  right: 0;
  top: 42%;
  transform: translateY(-50%);
  white-space: nowrap;
  opacity: 0;
  animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

.field.invalid input,
.field.invalid select,
.field.invalid textarea {
  border-color: #e74c3c !important;
}

/* ========================================================
   🏝️ PLANNING - SECTION ET FOND
======================================================== */
.planning-section {
  position: relative;
  overflow: hidden;
}

.planning-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 750px;
  background-image: url('../../images/gallery/fulls/Autres/03.jpg');
  background-size: cover;
  background-position: top;
  background-repeat: no-repeat;
  z-index: 0;
  pointer-events: none;
}

.planning-section > .intro,
.planning-section > .inner {
  position: relative;
  z-index: 1;
}

@media (min-width: 769px) {
  .planning-bg {
    height: 100%;
  }
}

/* ========================================================
   🗺️ GOOGLE MAPS EMBED (carte)
======================================================== */
.map-container {
  width: 100%;
  height: 100%;
  border-radius: 6px;
  overflow: hidden;
  background-color: #ffffff;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  position: relative;
  z-index: 1;
}

.map-container * {
  filter: none !important;
  mix-blend-mode: normal !important;
  color: initial !important;
  background: initial !important;
}

.map-container .gm-fullscreen-control {
  background-color: rgba(255, 255, 255, 0.5) !important;
  border-radius: 10px !important;
  padding: 4px !important;
  transform: scale(0.85);
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.1) !important;
}

.map-container .gm-style-mtc {
  display: none !important;
}

@media screen and (max-width: 768px) {
  .map-container {
    height: 300px;
    border-radius: 8px;
  }
}

/* ========================================================
   📅 CALENDRIER : SÉLECTION DE DATES
======================================================== */
.calendar-cell.start,
.calendar-cell.end,
.calendar-cell.in-range {
  border: 2px solid #f5d100;
  background-color: rgba(245, 209, 0, 0.15);
  box-shadow: 0 0 5px 2px rgba(245, 209, 0, 0.25);
}

/* ========================================================
   📱 BANNIÈRE MOBILE : RÉSERVATION
======================================================== */

#mobile-banner {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  max-width: 600px;
  margin: 0 auto;
  padding: 1rem;
  font-size: 0.95rem;
  text-align: center;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;

  /* 🎨 Dégradé bleu -> blanc avec transparence */
  background: linear-gradient(
    135deg,
    rgba(0, 25, 80, 0.5) 0%,
    rgba(0, 65, 130, 0.5) 40%,
    rgba(255, 255, 255, 0.5) 100%
  );

  /* 🌫️ Flou type glassmorphism */
  backdrop-filter: blur(12px);

  /* 🖍️ Autres effets visuels */
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.2);
  color: white;
}

/* 🔼 Bouton pour ouvrir/fermer la bannière */
#mobile-banner button#toggle-banner {
  background: none;
  border: none;
  outline: none;
  box-shadow: none;
  padding: 0;
  margin: 0;
  color: white;
  font-size: 5rem;
  cursor: pointer;
}

/* 🧾 Champs et étiquettes */
#mobile-banner label {
  display: block;
  margin: 0.5rem 0 0.2rem;
  font-size: 0.9rem;
  text-align: left;
  color: #fff;
}

#mobile-banner .field {
  margin-bottom: 1rem;
}

/* ✅ Section déroulante avec animation */
#mobile-banner-details {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.6s ease;
}

#mobile-banner-details.open {
  max-height: 500px;
}

/* ✅ Boutons */
#mobile-banner .button {
  margin-top: 0.5rem;
}

#mobile-banner-details.full {
  max-height: 1000px;
  transition: max-height 0.6s ease;
}

.locked {
  opacity: 0.6;
  pointer-events: none;
}

#mobile-banner .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  justify-content: center;
}

#mobile-banner .actions li {
  flex: 1 1 auto;
  min-width: 140px;
}

/* ===============================
   🖼️ GESTION DES IMAGES ET LÉGENDES
   =============================== */

.image {
  position: relative;
}

.image .caption {
  position: absolute;
  bottom: 0.5rem;
  left: 0.5rem;
  background: rgba(255, 120, 141, 0.5);
  color: #fff;
  padding: 0.3em 0.6em;
  font-size: 0.85em;
  border-radius: 0.3em;
  pointer-events: none;
  z-index: 2;
}

/* ===============================
     🖼️ LIGHTBOX
=============================== */

#lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(255, 255, 255, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  z-index: 9999;
  padding: 1em;
  box-sizing: border-box;
}

#lightbox-counter {
  background: rgba(255, 120, 141, 0.5);
  color: #fff;
  padding: 0.3em 0.6em;
  font-size: 0.85em;
  border-radius: 0.3em;
  pointer-events: none;
  z-index: 2;
  margin-bottom: 1em;
}

/* Conteneur relatif autour de l'image */
.lightbox-image-wrapper {
  position: relative;
  display: inline-block;
}

/* Image affichée */
#lightbox-img {
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.4);
}

/* Flèches de navigation positionnées par rapport à l'image */
#lightbox .nav {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  padding: 0 0.5rem;
  pointer-events: none; /* bloque les clics hors flèches */
}

/* Icônes des flèches */
#lightbox .nav i {
  color: white;
  font-size: 2.5em;
  cursor: pointer;
  pointer-events: all;

  /* ✅ cercle noir transparent */
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  padding: 0.05em;
  transition: background-color 0.2s ease;
}

#lightbox .nav i:hover {
  background-color: rgba(0, 0, 0, 0.7);
}

/* Bouton de fermeture */
#lightbox .close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: white;
  font-size: 2em;
  cursor: pointer;
}

/* 💬 Lightbox : masquage des flèches sur mobile */
@media (max-width: 768px) {
  #lightbox .nav {
    display: none;
  }
}

/* ===============================
     🛑 SCROLL LOCK BODY (lors de la lightbox)
     =============================== */

body.no-scroll {
  overflow: hidden !important;
  overscroll-behavior: none;
  pointer-events: none;
}

body.no-scroll #lightbox,
body.no-scroll .lightbox,
body.no-scroll .lightbox * {
  pointer-events: auto;
}

/* ===============================
     ⭐️ ÉTOILES DE NOTATION
     =============================== */

.stars i {
  color: #f2b01e;
  font-size: 0.5em;
  margin-right: 2px;
  vertical-align: middle;
}

/* ===============================
     🧰 FENÊTRE POPUP (équipements)
     =============================== */

.equipment-popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.5);
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.popup-content {
  background: #fff;
  color: #111;
  padding: 2em;
  border-radius: 8px;
  max-width: 500px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.3);
}

.popup-content h3 {
  margin-bottom: 1rem;
  font-weight: bold;
  color: #111;
}

.close-popup {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 1.5em;
  cursor: pointer;
  color: #111;
}

/* ===============================
     ✍️ POLICES PERSONNALISÉES
     =============================== */

.themysion {
  font-family: 'Themysion', cursive;
  font-size: 6rem;
  line-height: 1.2;
  font-weight: normal;
  display: block;
  margin-top: 0.5rem;
}

.moriarty-link {
  font-family: 'Engagement', 'Brush Script MT', cursive;
  font-size: 2.2em;
  line-height: 1;
  margin-left: 0.25em;
  text-decoration: none;
  color: inherit;
}

/* ===============================
     📅 CALENDRIER DE DISPONIBILITÉS
     =============================== */

/* Cadre principal */
#calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, min-content);
  gap: 0.1rem;
  padding: 0.5rem;
  background: rgba(0, 0, 0, 0.05);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  width: fit-content;
  margin-left: 0;
  margin-right: auto;
}

/* Cellule de jour */
.calendar-cell {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  text-align: center;
  padding: 0.05rem;
  border-radius: 0.2rem;
  background: transparent;
  box-sizing: border-box;
  font-size: 0.65rem;
  font-weight: 600;
  width: 2.4rem;
  height: 2.4rem;
  transition: background 0.2s ease;
}

/* États */
.available {
  background-color: rgba(0, 255, 150, 0.3);
  color: white;
}

.reserved {
  background-color: rgba(255, 60, 60, 0.15);
  color: rgba(255, 60, 60, 0.95);
}

.unavailable {
  background-color: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.7);
}

/* Libellés */
.calendar-cell .day-label {
  font-size: 1rem;
  margin-top: 0.2rem;
  margin-bottom: 0.3rem;
  line-height: 1;
}

.calendar-cell .price-label {
  font-size: 0.65rem;
  font-weight: 500;
  color: inherit;
  line-height: 1;
}

/* Jours de la semaine */
.calendar-label {
  font-size: 0.65rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
  padding: 0.3rem 0;
  display: flex;
  justify-content: center;
  align-items: center;
  aspect-ratio: 1 / 1;
  border-radius: 0.2rem;
}

/* En-tête du calendrier */
#calendar-header {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  margin-bottom: 1rem;
  width: fit-content;
  max-width: 540px;
  margin-left: 0;
  margin-right: auto;
}

.calendar-header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  min-width: 230px;
  max-width: 540px;
}

#calendar-title {
  font-size: 1rem;
  font-weight: 600;
  text-transform: capitalize;
  color: white;
  margin: 0;
}

/* Flèches navigation mois */
.nav-arrows {
  display: flex;
  gap: 0.4rem;
}

.nav-arrows i {
  font-size: 1rem;
  color: white;
  cursor: pointer;
  transition: color 0.2s ease;
}

.nav-arrows i:hover {
  color: #00ffaa;
}

/* Indicateur calendrier du champ input */
input[type='date']::-webkit-calendar-picker-indicator {
  filter: invert(1);
  opacity: 0.75;
  cursor: pointer;
}

/* ===============================
     💠 STYLE FLOU PLANNING
     =============================== */

.planning-blur-style {
  position: relative;
  z-index: 1;
  backdrop-filter: blur(5px);
  background-image: linear-gradient(
    135deg,
    rgba(114, 97, 147, 0.5) 25%,
    rgba(227, 123, 124, 0.5) 50%,
    rgba(255, 228, 180, 0.5)
  );
  background-size: 450px 650px, auto;
  background-color: rgba(108, 94, 134, 0.1);
  border-right: 1px solid var(--blur-border);
  border-top: none;
  border-left: none;
  border-bottom: none;
  box-shadow: 0 0 12px var(--blur-shadow);
  padding: 2rem;
}

/* ✅ Mobile : bordure en bas uniquement */
@media (max-width: 768px) {
  .planning-blur-style {
    border-right: none;
    border-bottom: 1px solid var(--blur-border);
  }
}
