/*
Theme Name: Premium No Fee Stay
Theme URI: https://digitalmadame.com
Author: Digital Madame
Description: Template Premium basé sur BookStMartin, version Lodgify bridge.
Version: 1.0
Text Domain: premium-no-fee-stay
*/

/* ========== RESET & BASE ========== */

body {
  font-family: 'Open Sans', sans-serif;
  margin: 0;
  padding-top: 0; /* ✅ corrigé : plus de gros blanc sous header fixe */
}

.site-content {
  margin-top: 0px; /* ✅ corrigé */
}

.single-listing .site-content {
  margin-top: 50px;
}


/* ========== HEADER ========== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #fff;
  z-index: 10000;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  padding: 16px 0; /* ✅ hauteur standard desktop, réduit en mobile plus bas */
}

/* === STRUCTURE GLOBALE === */
.main-navigation {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: center; /* Centré en desktop */
  align-items: center;
  position: relative;
}

/* Menu normal */
.nav-menu {
  display: flex;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
  justify-content: center;
}

.nav-menu li.menu-item a {
  text-decoration: none;
  color: #222;
  font-weight: 500;
  font-size: 16px;
  transition: color 0.2s ease;
}

.nav-menu li.menu-item a:hover {
  color: #0073aa;
}

/* Burger caché par défaut */
.menu-toggle {
  display: none;
  font-size: 28px;
  background: none;
  border: none;
  color: #333;
  cursor: pointer;
  z-index: 10001;
}

/* === Sous-menus (dropdown) === */
.nav-menu li {
  position: relative;
}

.nav-menu li ul.sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  padding: 10px 0;
  margin: 0;
  list-style: none;
  min-width: 180px;
  box-shadow: 0 4px 10px rgba(0,0,0,.1);
  z-index: 9999;
}

.nav-menu li:hover > ul.sub-menu {
  display: block;
}

.nav-menu li ul.sub-menu li {
  padding: 0;
  border-bottom: 1px solid #eee;
}

.nav-menu li ul.sub-menu li a {
  display: block;
  padding: 10px 15px;
  font-size: 15px;
  font-weight: 400;
  color: #222;
  text-decoration: none;
}

.nav-menu li ul.sub-menu li a:hover {
  background: #f9f9f9;
  color: #0073aa;
}

/* === Dropdown sous-menus === */
.nav-menu li ul.sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  flex-direction: column;
  min-width: 180px;
  margin: 0;
  padding: 8px 0;
  list-style: none;
  box-shadow: 0 4px 10px rgba(0,0,0,.1);
  z-index: 9999;
}

.nav-menu li:hover > ul.sub-menu {
  display: flex;
}

.nav-menu li ul.sub-menu li a {
  display: block;
  padding: 10px 15px;
  color: #222;
  font-size: 15px;
  text-decoration: none;
  transition: background 0.2s;
}

.nav-menu li ul.sub-menu li a:hover {
  background: #f5f5f5;
  color: #0073aa;
}

.nav-menu li.menu-item-has-children > a::after {
  content: " ▼";
  font-size: 12px;
  margin-left: 4px;
}

/* ========== MOBILE STYLES ========== */
@media (max-width: 768px) {
  .main-navigation {
    justify-content: space-between;
  }
  .menu-toggle {
    display: block;
    margin-left: 10px;
  }
  .nav-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(2px);
    padding: 80px 24px 40px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    transform: translateY(-100%);
    transition: transform 0.3s ease-in-out;
    z-index: 9999;
  }
  .nav-menu.menu-open {
    transform: translateY(0);
  }
  .nav-menu li.menu-item {
    width: 100%;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
  }
  .nav-menu li ul.sub-menu {
    position: static;
    box-shadow: none;
    padding-left: 20px;
  }
  .menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 9990;
    display: none;
  }
  .menu-overlay.visible {
    display: block;
  }
}

/* ========== BOUTON RECHERCHE ========== */
.btn-search {
  background-color: #00CEE3;
  color: #fff;
  padding: 8px 16px;
  border: none;
  border-radius: 4px;
  font-weight: 500;
  transition: background-color 0.3s ease;
}
.btn-search:hover {
  background-color: #00B8CB;
}

/* ===== Footer Styling ===== */
.site-footer {
  margin-top: 0px;
  padding: 8px 0;
  text-align: center;
  background: #f9f9f9;
  border-top: 1px solid #eee;
  color: #666;
  font-size: 14px;
}
.site-footer {
  margin-bottom: 0;
  padding-bottom: 20px;
}

/* Structure sticky footer */
html, body {
  height: 100%;
  margin: 0;
}

.site-content {
  min-height: calc(100vh - 120px);
}

.single-listing h1 {
  margin-top: 80px;
}

/* Container global listings */
.single-listing .listing-main {
  display: flex;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  gap: 60px;
}

.single-listing .listing-content {
  flex: 1;
  min-width: 0;
}

.single-listing .listing-sidebar {
  flex: 0 0 300px;
  max-width: 320px;
}

.listing-container {
  max-width: 1050px;
  margin: 40px auto;
}

.listing-gallery {
  margin: 0 0 40px;
  padding: 0;
  max-width: none;
}

.listing-main {
  padding: 0 !important;
}

@font-face {
  font-family: 'Sailors Condensed';
  src: url('<?php echo get_stylesheet_directory_uri(); ?>/fonts/SailorsCondensed.woff2') format('woff2'),
       url('<?php echo get_stylesheet_directory_uri(); ?>/fonts/SailorsCondensed.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* === CTA Business en bleu === */
.nav-menu > li.menu-business > a {
  background: linear-gradient(45deg, #0073aa, #3399cc);
  color: #fff !important;
  font-weight: 600;
  border-radius: 8px;
  padding: 10px 22px;
  transition: all .2s ease;
}
.nav-menu > li.menu-business > a:hover {
  background: linear-gradient(45deg, #005f8a, #2b88b3);
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,115,170,.25);
}
.nav-menu > li.menu-business.current-menu-item > a,
.nav-menu > li.menu-business.current_page_item > a {
  color: #fff !important;
  background: linear-gradient(45deg, #0073aa, #3399cc);
}

.site-footer a {
  color: inherit;
  text-decoration: none;
}
.site-footer a:hover {
  text-decoration: underline;
}

/* 2 colonnes checkout */
.checkout-two-columns {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
}
.checkout-left { flex: 2; min-width: 60%; }
.checkout-right {
  flex: 1;
  min-width: 35%;
  border: 1px solid #ddd;
  padding: 20px;
  background: #fafafa;
}
@media (max-width: 768px) {
  .checkout-two-columns { flex-direction: column; }
  .checkout-right { margin-top: 20px; }
}

/* Listings grid responsive */
.property-listings .grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 1024px) {
  .property-listings .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 767px) {
  .property-listings .grid {
    grid-template-columns: 1fr !important;
  }
}


/* Boutons désactivés visibles */
button:disabled,
input[type="button"]:disabled,
input[type="submit"]:disabled {
  color: #666 !important;
  background-color: #f2f2f2 !important;
  border: 1px solid #ccc !important;
}

/* Bouton toggle amenities */
.btn-toggle {
  color: #0073aa !important;
  background: none !important;
  border: none !important;
  font-weight: bold;
  text-decoration: underline;
  cursor: pointer;
}
.btn-toggle:hover {
  color: #00CEE3 !important;
}

/* Boutons désactivés visibles dans les pages custom */
button:disabled,
input[type="button"]:disabled,
input[type="submit"]:disabled {
  background-color: #f2f2f2 !important;
  color: #333 !important;
  border: 1px solid #ccc !important;
  cursor: not-allowed !important;
  opacity: 1 !important;
}

/* Forcer une couleur lisible pour les boutons */
.elementor-kit-6 button,
.elementor-kit-6 input[type="button"],
.elementor-kit-6 input[type="submit"],
.elementor-kit-6 .elementor-button {
  color: #000 !important;
}

/* Burger Elementor */
.elementor-menu-toggle {
  color: #000 !important;
  fill: #000 !important;
}

/* Toujours afficher les sous-menus Elementor mobile */
@media (max-width: 1024px) {
  .elementor-nav-menu--dropdown .sub-menu {
    display: block !important;
    position: relative !important;
    opacity: 1 !important;
    visibility: visible !important;
  }
  .elementor-sub-item-toggle {
    display: none !important;
  }
}


/* Fix couleur des boutons dans le dashboard */
.nfs-dashboard-content .detail-button,
.nfs-dashboard-content .email-button,
.nfs-dashboard-content .btn {
  color: #fff !important;   /* texte blanc */
}

.nfs-dashboard-content .detail-button:hover,
.nfs-dashboard-content .email-button:hover,
.nfs-dashboard-content .btn:hover {
  opacity: 0.9;             /* petit effet au hover */
  color: #fff !important;   /* garder blanc même au survol */
}

/* Style générique bouton */
.contact-btn {
  display: inline-block;
  background: #ff7a00; /* ton orange */
  color: #fff;
  font-weight: 600;
  border-radius: 6px;
  padding: 8px 14px;
  text-decoration: none;
  text-align: center;
  white-space: nowrap; /* empêche le retour à la ligne */
  transition: background 0.3s ease;
}

.contact-btn:hover {
  background: #e66a00;
}

/* Responsive pour les boutons dans le tableau */
@media (max-width: 768px) {
  .nfs-dashboard-content table {
    display: block;
    overflow-x: auto; /* déjà là mais on sécurise */
  }

  .nfs-dashboard-content td a.detail-button {
    display: block;        /* bouton devient bloc */
    width: 100%;           /* prend toute la largeur de la cellule */
    box-sizing: border-box;
    font-size: 14px;       /* texte un peu plus petit */
    padding: 10px;         /* plus confortable au doigt */
    text-align: center;
    white-space: normal;   /* autorise retour à la ligne si besoin */
  }
}

/* === Décalage du contenu sous le header fixe === */
body {
  padding-top: 80px; /* hauteur du header en desktop */
}

@media (max-width: 768px) {
  body {
    padding-top: 60px; /* hauteur du header en mobile */
  }
}
/* Force Fancybox à passer au-dessus du header */
.fancybox__container {
  z-index: 99999 !important;
}

/* Force Fancybox à passer au-dessus de tout (menu + drapeaux) */
.fancybox__container {
  z-index: 999999 !important;
}

/* Si besoin, on baisse le z-index des drapeaux */
.gtranslate_wrapper,
#gtranslate_wrapper {
  z-index: 999 !important;  /* inférieur à Fancybox */
}

/* Boutons de navigation Fancybox */
.fancybox__button {
  background: rgba(0,0,0,0.6) !important; /* fond plus sombre */
  color: #fff !important;                /* icône blanche */
  border-radius: 50%;                    /* rond élégant */
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Survol : un peu plus clair */
.fancybox__button:hover {
  background: rgba(0,0,0,0.8) !important;
}

/* Icônes de flèches gauche/droite */
.fancybox__nav .fancybox__button {
  font-size: 20px;
}

/* Bouton de fermeture (croix) */
.fancybox__button--close {
  top: 20px;
  right: 20px;
}

/* Boutons Fancybox (fermer, zoom, play, etc.) */
.fancybox__toolbar .fancybox__button {
  background: rgba(0,0,0,0.6) !important; /* fond noir semi-opaque */
  border-radius: 50%;                    /* rond */
  width: 40px;
  height: 40px;
  margin-left: 6px;
  margin-right: 6px;
  color: #fff !important;                /* icônes blanches */
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.fancybox__toolbar .fancybox__button:hover {
  background: rgba(0,0,0,0.85) !important; /* plus foncé au hover */
}

/* Boutons navigation gauche/droite */
.fancybox__nav .fancybox__button {
  background: rgba(0,0,0,0.6) !important;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  color: #fff !important;
}

.fancybox__nav .fancybox__button:hover {
  background: rgba(0,0,0,0.85) !important;
}
/* --- Boutons toolbar droite Fancybox --- */
.fancybox__toolbar__column.is-right .f-button {
  background: rgba(0,0,0,0.65) !important;  /* fond noir semi-opaque */
  border-radius: 50%;                       /* cercle */
  width: 40px;
  height: 40px;
  margin-left: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

/* Icônes SVG en blanc */
.fancybox__toolbar__column.is-right .f-button svg {
  stroke: #fff !important;
  fill: none !important;
  width: 22px;
  height: 22px;
}

/* Hover → fond plus sombre */
.fancybox__toolbar__column.is-right .f-button:hover {
  background: rgba(0,0,0,0.85) !important;
}

/* Supprime l'espace inutile au-dessus du footer */
.site-content,
.site-main,
#content,
.listing-container,
.experience-container {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

.single-listing .site-content,
.single-experience .site-content {
  padding-bottom: 40px;
}

@media (max-width: 768px) {
  .drawer {
    position: fixed;
    inset: 0 auto 0 0;
    width: var(--drawer-w);
    max-width: var(--drawer-max);
    height: 100dvh;
    background: var(--bg);
    transform: translateX(-100%); /* 🔥 caché par défaut */
    transition: transform .25s ease;
    z-index: 1000;
    display: flex;
    flex-direction: column;
  }

  .drawer.open {
    transform: translateX(0); /* 🔥 visible quand on ajoute .open */
  }
}

/* Masquer le menu desktop en mobile */
@media (max-width: 768px) {
  .nav-desktop {
    display: none !important;
  }
}

/* Masquer le drawer en desktop */
@media (min-width: 769px) {
  .drawer,
  .nav-overlay {
    display: none !important;
  }
}
/*Favorites*/
.content-actions {
  text-align: center;
  margin: 30px 0;
}
.content-actions button {
  border: none;
  padding: 10px 20px;
  margin: 5px;
  font-size: 16px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
}
.btn-save.active {
  background: #e6007e;
  color: #fff;
}
.btn-share {
  background: #f1f1f1;
}

/* Page My Favorites */
.favorites-page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 70px 20px 40px 20px;
}
.favorites-page h2 {
  margin-bottom: 30px;
  font-size: 28px;
  text-align: center;
}
#favorites-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 25px;
}

/* Nouveau : ne cible que le message vide */
#favorites-list .no-favorites {
  text-align: center;
  font-size: 18px;
  color: #555;
  margin: 40px 0;
}

/* Formulaire email */
.favorites-email {
  text-align: center;
  margin: 60px 0; /* espace haut ET bas */
  padding: 20px 0; /* petit espace interne pour respirer */
}

.favorites-email input[type="email"] {
  padding: 10px 15px;
  border: 1px solid #ddd;
  border-radius: 6px;
  margin-right: 10px;
  width: 250px;
  max-width: 80%;
}
.btn-send-favorites {
  background: linear-gradient(45deg, #ff6600, #e6007e);
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
}
.btn-send-favorites:hover {
  opacity: 0.85;
}
/* Cache le bloc SEO mais le laisse lisible pour Google */
.seo-extra-content {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* === Grille d’hôtels identique aux listings === */
.hotel-listings .grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 25px;
  margin: 40px auto;
  max-width: 1150px;
  padding: 0 10px;
}

.nfs-listing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.12);
}

.nfs-listing-title {
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
/* === HOTEL GRID – alignement 3 colonnes === */
.hotel-listings .grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 25px;
  margin: 40px auto;
  max-width: 1150px;
  padding: 0 10px;
  align-items: start;
}

.nfs-listing-col {
  width: 100%;
}

.nfs-listing-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #eee;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  transition: all .2s ease;
}

.nfs-listing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 5px 14px rgba(0,0,0,0.12);
}

.nfs-listing-image {
  border-radius: 12px 12px 0 0;
}

.nfs-listing-content {
  padding: 10px 8px 12px;
}

@media (max-width: 768px) {
  .hotel-listings .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 500px) {
  .hotel-listings .grid {
    grid-template-columns: 1fr;
  }
}

/* === STYLES DESKTOP PAR DÉFAUT (3 cartes par ligne) === */
.hotel-listings .grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.hotel-listings .nfs-listing-col {
  width: 100%;
}

.hotel-listings .nfs-listing-card {
  width: 100%;
  max-width: none; /* Permet à la grille de contrôler la largeur */
  margin: 0; /* Pas de marge individuelle sur desktop */
  box-sizing: border-box;
}

/* === MOBILE : 1 carte par ligne, centrée et ajustée === */
@media (max-width: 768px) {
  html, body {
    overflow-x: hidden;
  }
  
  .hotel-listings {
    padding: 0 10px;
    width: 100%;
    max-width: 100%;
  }
  
  .hotel-listings .grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 25px !important;
    justify-items: center !important;
    padding: 0 !important;
    margin: 0 auto !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  
  .hotel-listings .nfs-listing-col {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
  }
  
  .hotel-listings .nfs-listing-card {
    width: 90vw !important; /* 90% de l'écran */
    max-width: 420px !important; /* Limite pour grands mobiles */
    margin: 0 auto 20px !important; /* Centre la carte */
    padding: 0 !important; /* Supprime le padding global */
    box-sizing: border-box !important;
  }
  
  /* Déplace le padding dans le contenu */
  .hotel-listings .nfs-listing-card .nfs-listing-content {
    padding: 10px !important;
  }
  
  /* Ajuste les éléments flex pour mobile */
  .hotel-listings .nfs-listing-card div[style*="display:flex"] {
    flex-wrap: wrap !important;
    gap: 10px !important;
  }
  
  .hotel-listings .nfs-listing-card div[style*="display:flex"] p {
    min-width: 0 !important;
    flex: 1 !important;
    margin: 0 !important;
  }
}

/* === POUR LES ÉCRANS TRÈS PETITS (smartphones) === */
@media (max-width: 480px) {
  .hotel-listings .nfs-listing-card {
    width: 95vw !important; /* Plus large sur très petits écrans */
  }
}

/* === Correction FullCalendar (Firefox / fond rouge complet) === */
.fc-daygrid-day.fc-day-today {
  z-index: 2;
}

.fc .fc-bg-event,
.fc-daygrid-day.fc-day-blocked {
  background-color: #ff4d4d !important;
  opacity: 0.3 !important;
  border-radius: 4px;
  z-index: 1;
}

/* Force fond rouge sur les cellules contenant un événement */
.fc-daygrid-day:has(.fc-bg-event) {
  background-color: #ff4d4d !important;
  opacity: 0.3 !important;
}

