/**
 * Styles pour les pages Villa
 * Single villa, archive, calendrier, etc.
 * 
 * @package Villa_Booking_System
 */

/* =====================
   HERO BANNER
   ===================== */

.vbs-hero-banner {
    position: relative;
    width: 100vw;
    height: 60vh;
    min-height: 400px;
    max-height: 600px;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    margin-bottom: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    margin-top: -86px;
}

.vbs-hero-overlay {
    position: absolute;
    bottom: 0;
    left:  0;
    right: 0;
    height: 50%;
    background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.8) 100%);
    pointer-events: none;
}

.vbs-hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 40px;
}

.vbs-hero-sticker {
    display: inline-block;
    color: white;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    padding: 0;
    background: none;
    border: none;
}

/* Responsive */
@media (max-width: 768px) {
    .vbs-hero-banner {
        height: 50vh;
        min-height: 300px;
        margin-top: -62px;
    }
    
    .vbs-hero-content {
        padding: 0 20px 30px;
    }
    
    .vbs-hero-sticker {
        font-size: 12px;
        letter-spacing: 1.5px;
    }
    .vbs-villa-title {font-size: 26px !important;}
    
    .vbs-single-book-button:disabled {background: #9BB897 !important;width: 100%;color: #fff !important;}
    .vbs-filter-button {width: 100% !important;margin-top: 20px;}
}

/* =====================
   SINGLE VILLA
   ===================== */

.vbs-single-villa {
    padding: 40px 0;
}

.vbs-container {
    max-width: 1200px;
    margin:  0 auto;
    padding: 0 20px;
}

/* En-tête */
.vbs-villa-header {
    margin-bottom: 40px;
    position: relative;
}

.vbs-sticker {
    display: inline-block;
    background: #0073aa;
    color: white;
    padding:  5px 15px;
    border-radius:  4px;
    font-size: 12px;
    font-weight:  bold;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.vbs-villa-title {
    font-size: 36px;
    margin:  10px 0;
    line-height: 1.2;
}

.vbs-villa-location {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #666;
    font-size: 16px;
    margin:  10px 0;
}

.vbs-villa-location svg {
    flex-shrink: 0;
}

.vbs-villa-location a {
    margin-left: 10px;
    color: #0073aa;
    text-decoration: none;
}

.vbs-villa-location a:hover {
    text-decoration: underline;
}

.vbs-villa-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 15px;
    padding-bottom:  15px;
    border-bottom: 1px solid #ddd;
}

.vbs-meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    color: #666;
}

.vbs-meta-item svg{
    width:14px;fill:#9BB897
}





.vbs-meta-item strong {
    color: #333;
    font-size: 14px;
    font-weight: normal;
}

/* Layout principal */
.vbs-villa-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
}

@media (max-width: 968px) {
    .vbs-villa-layout {
        grid-template-columns: 1fr;
    }
}

/* Contenu */
.vbs-villa-content {
    min-width: 0;
}

.vbs-villa-content h2 {
    font-size:  24px;
    margin:  30px 0 20px;
}


/* =====================
   SLIDER GALERIE
   ===================== */

.vbs-villa-gallery {
    margin-bottom: 30px;
}

.vbs-slider-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 8px;
    background: #000;
}

.vbs-slider-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.vbs-slide {
    position: absolute;
    top: 0;
    left:  0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition:  opacity 0.5s ease-in-out;
    pointer-events: none;
}

.vbs-slide-active {
    opacity: 1;
    pointer-events: auto;
    z-index: 1;
}

.vbs-slide-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    cursor: pointer;
}

/* Boutons de navigation */
.vbs-slider-nav {
    position: absolute;
    top: 50%;
    transform:  translateY(-50%);
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius:  50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition:  all 0.3s;
    z-index: 10;
}

.vbs-slider-container:hover .vbs-slider-nav {
    opacity: 1;
}

.vbs-slider-prev {
    left: 20px;
}

.vbs-slider-next {
    right:  20px;
}

.vbs-slider-nav: hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
}

.vbs-slider-nav svg {
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

/* Indicateurs (points) */
.vbs-slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index:  10;
}

.vbs-dot {
    width:  10px;
    height: 10px;
    border-radius:  50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    padding: 0;
}

.vbs-dot: hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

.vbs-dot-active {
    background: white;
    width: 24px;
    border-radius: 5px;
}

/* Compteur */
.vbs-slider-counter {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size:  14px;
    font-weight: bold;
    z-index: 10;
}

/* Responsive Mobile */
@media (max-width: 768px) {
    .vbs-slider-wrapper {
        aspect-ratio: 4 / 3;
    }
    
    .vbs-slider-nav {
        width: 40px;
        height: 40px;
        opacity: 1; /* Toujours visible sur mobile */
    }
    
    .vbs-slider-prev {
        left: 10px;
    }
    
    .vbs-slider-next {
        right: 10px;
    }
    
    .vbs-slider-dots {
        bottom: 10px;
        gap: 6px;
    }
    
    .vbs-dot {
        width: 8px;
        height: 8px;
    }
    
    .vbs-dot-active {
        width: 20px;
    }
    
    .vbs-slider-counter {
        top: 10px;
        right: 10px;
        padding: 6px 12px;
        font-size: 12px;
    }
}

/* =====================
   LIGHTBOX (conservé)
   ===================== */

.vbs-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom:  0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: vbsFadeIn 0.3s ease;
}

@keyframes vbsFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.vbs-lightbox-overlay {
    position:  absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    cursor: pointer;
}

.vbs-lightbox-content {
    position: relative;
    z-index: 1;
    max-width: 95vw;
    max-height: 95vh;
    padding: 20px;
}

.vbs-lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    width: auto;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 10px 60px rgba(0, 0, 0, 0.8);
}

.vbs-lightbox-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius:  50%;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 2;
}

.vbs-lightbox-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

body.vbs-lightbox-open {
    overflow: hidden;
}

/* =====================
   Description
   ===================== */
.vbs-villa-description {
    margin-bottom:  30px;
}

.vbs-villa-description p {
    line-height: 1.8;
    margin-bottom: 15px;
}

/* Caractéristiques */
.vbs-characteristics-grid {
    /*
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
    */
}

.vbs-char-item {
    padding: 15px;
    background: #f9f9f9;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.vbs-char-item strong {
    color: #0073aa;
    font-size: 14px;
}

.vbs-char-item span {
    font-size: 16px;
    color: #333;
}

/* Facilités */
.vbs-facilities-grid {
    display: grid;
    grid-template-columns:  repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
}

.vbs-facility-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px;
    background: #ebf0ea;
    border-radius:  4px;
}

.vbs-facility-item svg {
    color: #9BB897;
    flex-shrink: 0;
}

/* Vidéo */
.vbs-video-container {
    position:  relative;
    padding-bottom:  56.25%;
    height: 0;
    overflow: hidden;
}

.vbs-video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height:  100%;
}

/* =====================
   SIDEBAR & BOOKING
   ===================== */

.vbs-villa-sidebar {
    position: sticky;
    top: 20px;
    align-self: start;
}

.vbs-booking-widget {
    background: white;
    border:  1px solid #9BB897;
    
    padding:  25px;
    
}

.vbs-price {
    text-align: center;
    padding-bottom: 20px;
    border-bottom: 1px solid #ddd;
    margin-bottom: 20px;
}

.vbs-price-amount {
    font-size: 32px;
    font-weight:  bold;
    color: #9BB897;
}

.vbs-price-label {
    font-size: 14px;
    color: #666;
    margin-left: 5px;
}

/* =====================
   CALENDRIER
   ===================== */

.vbs-availability-calendar h3 {
    font-size: 18px;
    margin-bottom: 15px;
}

.vbs-calendar-header {
    text-align: center;
    margin-bottom: 10px;
    font-size: 16px;
}

.vbs-calendar-grid {
    display:  grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
    margin-bottom:  15px;
}

.vbs-calendar-day-header {
    text-align: center;
    font-size: 12px;
    font-weight: bold;
    padding: 5px;
    color: #666;
}

.vbs-calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.vbs-day-empty {
    background: transparent;
    cursor: default;
}

.vbs-day-past {
    
    color: #EFEBE2;
    cursor: not-allowed;
}

.vbs-day-available {
    background: #EFEBE2;
    color:  #716752;
}

.vbs-day-available:hover {
    background: #c3e6cb;
    transform:  scale(1.1);
}

.vbs-day-occupied {
    background:  #716752;
    color: #EFEBE2;
    cursor: not-allowed;
}

.vbs-calendar-legend {
    display: flex;
    justify-content: center;
    gap: 15px;
    font-size: 12px;
    margin-top: 10px;
}

.vbs-legend-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.vbs-legend-color {
    width: 15px;
    height: 15px;
    border-radius:  3px;
}

.vbs-legend-color.vbs-available {
    background:  #EFEBE2;
}

.vbs-legend-color.vbs-occupied {
    background: #716752;
}

/* =====================
   BOUTONS
   ===================== */

.vbs-book-button {
    display: block;
    width:  100%;
    padding: 15px;
    background: #0073aa;
    color:  white;
    text-align:  center;
    text-decoration:  none;
    border-radius:  4px;
    font-size: 18px;
    font-weight: bold;
    margin:  20px 0;
    transition: background 0.3s;
}

.vbs-book-button:hover {
    background: #005a87;
    color: white;
}

/* =====================
   PROCHAINES DATES
   ===================== */

.vbs-next-dates {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
}

.vbs-next-dates h4 {
    font-size: 14px;
    margin-bottom:  10px;
    color:  #666;
}

.vbs-next-dates ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.vbs-next-dates li {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
}

.vbs-next-dates li:last-child {
    border-bottom: none;
}

/* Navigation du calendrier */
.vbs-calendar-navigation {
    display:  flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
    gap: 10px;
}

.vbs-calendar-prev,
.vbs-calendar-next {
    background: #0073aa;
    color:  white;
    border: none;
    width: 36px;
    height: 36px;
    border-radius:  50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    flex-shrink: 0;
}

.vbs-calendar-prev:hover,
.vbs-calendar-next:hover {
    background: #005a87;
    transform: scale(1.1);
}

.vbs-calendar-prev: disabled,
.vbs-calendar-next:disabled {
    background: #ccc;
    cursor: not-allowed;
    opacity: 0.5;
}

.vbs-calendar-prev: disabled: hover,
.vbs-calendar-next:disabled:hover {
    transform: none;
}

.vbs-calendar-month-display {
    flex: 1;
    text-align: center;
}

#vbs-current-month {
    font-size: 16px;
    color: #333;
}

/* Animation de transition */
#vbs-calendar-container {
    position: relative;
    min-height: 280px;
}

.vbs-calendar-loading {
    opacity: 0.5;
    pointer-events: none;
}

/* =====================
   FORMULAIRE DE RÉSERVATION
   ===================== */

.vbs-booking-form {
    margin-top: 20px;
}

.vbs-form-field {
    margin-bottom: 20px;
}

.vbs-form-field label {
    display: block;
    font-size: 14px;
    font-weight: bold;
    color: #333;
    margin-bottom: 8px;
}

.vbs-input {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.vbs-input:focus {
    outline: none;
    border-color: #0073aa;
}

.vbs-input[readonly] {
    background:  #EFEBE2;
    cursor: pointer;
    border-radius:0;
}

/* Champs numériques avec boutons +/- */
.vbs-number-input {
    display:  flex;
    align-items:  center;
    gap: 0;
}

.vbs-number-input input {
    flex: 1;
    text-align: center;
    border-left: none;
    border-right: none;
    border-radius: 0;
}

.vbs-decrease,
.vbs-increase {
    width: 44px;
    height: 44px;
    background: #0073aa;
    color: white;
    border: none;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vbs-decrease {
    border-radius: 4px 0 0 4px;
}

.vbs-increase {
    border-radius: 0 4px 4px 0;
}

.vbs-decrease:hover,
.vbs-increase:hover {
    background: #005a87;
}

.vbs-decrease:disabled,
.vbs-increase:disabled {
    background:  #ccc;
    cursor:  not-allowed;
    opacity: 0.5;
}

.vbs-field-note {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: #666;
}

/* Bouton Book Now */
.vbs-book-button: disabled {
    background: #ccc;
    cursor: not-allowed;
    opacity: 0.6;
}

.vbs-booking-note {
    font-size: 12px;
    color: #999;
    text-align: center;
    margin-top: 10px;
}

/* Jour sélectionné dans le calendrier */
.vbs-day-selected {
    background: #0073aa ! important;
    color: white ! important;
    font-weight: bold;
    transform: scale(1.1);
}

.vbs-day-in-range {
    background: #cce5ff !important;
    color: #004080 !important;
}


/* =====================
   GOOGLE MAP
   ===================== */

.vbs-map-error {
    padding: 30px 20px;
    background:  #fff3cd;
    border:  2px dashed #ffc107;
    border-radius: 8px;
    color: #856404;
    text-align: center;
}

.vbs-map-error strong {
    display: block;
    font-size: 18px;
    margin-bottom: 10px;
    color: #d39e00;
}

.vbs-map-error ol {
    font-size: 14px;
    line-height: 1.8;
}

.vbs-map-error a {
    color: #0073aa;
    font-weight: bold;
}

iframe.vbs-google-map {
    border: 0;
    border-radius: 8px;
}
[type=button], [type=submit], button , .vbs-calendar-prev, .vbs-calendar-next {border: 1px solid #9BB897 !important;color:#9BB897 !important;border-radius:0;border-radius:0 !important}
[type=button]:focus, [type=button]:hover, [type=submit]:focus, [type=submit]:hover, button:focus, button:hover {
    background-color: #9BB897 !important; color:#fff !important
}







/** ********************************* VILLA LISTING ********************************* **/
/* =====================
   ARCHIVE VILLAS - HERO
   ===================== */

.vbs-archive-hero {
    position: relative;
    width: 100vw;
    min-height: 672px;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    margin-top: -86px;
}

/* Responsive */
@media (max-width: 768px) {
    
    .vbs-archive-hero {
        margin-top: -70px;
                padding-top: 76px;
    }
}


.vbs-archive-hero .vbs-hero-overlay {
    position: absolute;
    top: 0;
    left:  0;
    right: 0;
    bottom: 0;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
}

.vbs-archive-hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    width: 100%;
    text-align: center;
}

.vbs-archive-title {
    font-size: 56px;
    font-weight:  700;
    color: white;
    margin:  0 0 20px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.vbs-archive-subtitle {
    font-size: 20px;
    color: white;
    line-height: 1.6;
    margin: 0 0 50px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Formulaire de filtres */
.vbs-filters-box {
    background: #383F37;
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 35px;
    box-shadow:  0 10px 40px rgba(0, 0, 0, 0.3);
}

.vbs-filters-form {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    align-items: end;
}

.vbs-filter-field {
    display:  flex;
    flex-direction:  column;
}

.vbs-filter-field label {
    font-size:  14px;
    font-weight: 600;
    color: #fff;
    margin-bottom:  8px;
}

.vbs-filter-input {
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius:  6px;
    font-size:  15px;
    transition: all 0.3s;
}

.vbs-filter-input:focus {
    outline: none;
    border-color: #0073aa;
}

.vbs-filter-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.vbs-filter-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 30px;
    background: #0073aa;
    color: white;
    border:  none;
    border-radius:  6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition:  all 0.3s;
}

.vbs-filter-button:hover {
    background:  #005a87;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 115, 170, 0.3);
}

.vbs-reset-button {
    padding: 8px 20px;
    background: #9BB897 !important;
    color: #FFFFFF !important;
    border: 2px solid #ddd;
    border-radius:  6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}

.vbs-reset-button:hover {
    border-color: #999;
    color: #333;
}

/* Responsive filtres */
@media (max-width: 992px) {
    .vbs-filters-form {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .vbs-filter-actions {
        grid-column: 1 / -1;
        flex-direction: row;
    }
}

@media (max-width: 768px) {
    .vbs-archive-title {
        font-size: 38px;
    }
    
    .vbs-archive-subtitle {
        font-size: 16px;
        margin-bottom: 35px;
    }
    
    .vbs-filters-box {
        padding: 25px;
    }
    
    .vbs-filters-form {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .vbs-filter-actions {
        grid-column: 1;
    }
}

/* =====================
   LISTE DES VILLAS
   ===================== */

.vbs-archive-villas {
    padding: 60px 0;
    background: #f8f9fa;
}

.vbs-filter-summary {
    background: white;
    padding: 20px;
    margin-bottom:  40px;
    border-left: 4px solid #383F37;
    display:flex;
    justify-content: space-between;
    line-height: 40px;
}

.vbs-filter-summary p {
    margin: 0;
    color: #666;
}

.vbs-filter-summary strong {
    color: #333;
}

/* Loader */
.vbs-loader {
    text-align: center;
    padding: 60px 20px;
}

.vbs-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f0f0f0;
    border-top: 4px solid #0073aa;
    border-radius: 50%;
    animation: vbsSpin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes vbsSpin {
    to { transform: rotate(360deg); }
}

.vbs-loader p {
    color: #666;
    font-size: 16px;
}

/* Grille de villas */
.vbs-villas-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

@media (max-width: 1200px) {
    .vbs-villas-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .vbs-villas-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Card villa */
.vbs-villa-card {
    background: white;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
}

.vbs-villa-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.vbs-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.vbs-card-image {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow:  hidden;
}

.vbs-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.vbs-villa-card:hover .vbs-card-image img {
    transform: scale(1.1);
}

.vbs-card-sticker {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #383F37;
    color: white;
    padding: 6px 14px;
    border-radius:  20px;
    font-size:  12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.vbs-card-content {
    padding: 25px;
}

.vbs-card-title {
    font-size: 22px;
    font-weight:  700;
    margin:  0 0 10px;
    color: #333;
}

.vbs-card-location {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #666;
    font-size: 14px;
    margin:  0 0 15px;
}

.vbs-card-location svg {
    color: #383F37;
}

.vbs-card-features {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.vbs-card-features span {
    font-size: 13px;
    color: #666;
}

.vbs-card-price {
    display: flex;
    align-items: baseline;
    gap: 5px;
}

.vbs-card-price strong {
    font-size: 26px;
    color: #383F37;
    font-weight: 700;
}

.vbs-card-price span {
    font-size: 14px;
    color: #999;
}

/* No results */
.vbs-no-results {
    text-align: center;
    padding: 80px 20px;
    grid-column: 1 / -1;
}

.vbs-no-results svg {
    margin-bottom: 20px;
}

.vbs-no-results h3 {
    font-size: 24px;
    color: #333;
    margin:  0 0 10px;
}

.vbs-no-results p {
    color: #666;
    margin: 0 0 25px;
}

#vbs-find-villas {
    width: 100%;
    background: #383F37;
    color: #fff !important;
    padding: 20px;
    border-radius: 16px !important;
}

.vbs-popup-guests-wrapper {
    text-align: center;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    font-size: 20px;
    padding-top: 20px;
    margin-bottom: 20px;
    font-weight: bold;
}

/* Notice budget */
.vbs-budget-notice {
    background:  linear-gradient(135deg, #fff8e1 0%, #ffecb3 100%);
    border: 2px solid #D69643;
    border-radius: 12px;
    padding: 25px;
    margin-bottom:  30px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
    box-shadow: 0 4px 15px rgba(214, 150, 67, 0.15);
}

.vbs-notice-icon {
    font-size: 48px;
    line-height: 1;
    flex-shrink: 0;
}

.vbs-notice-content h3 {
    color: #383F37;
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 10px 0;
}

.vbs-notice-content p {
    color: #666;
    font-size: 15px;
    line-height:  1.6;
    margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .vbs-budget-notice {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
    
    .vbs-notice-icon {
        font-size: 36px;
    }
    
    .vbs-notice-content h3 {
        font-size: 18px;
    }
    
    .vbs-notice-content p {
        font-size: 14px;
    }
}



/* Alertes de disponibilité */
.vbs-availability-alert {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    border-left: 4px solid;
}

.vbs-alert-success {
    background:  linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border-color: #28a745;
    color: #155724;
}

.vbs-alert-error {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    border-color: #dc3545;
    color: #721c24;
}

.vbs-alert-icon {
    font-size: 32px;
    line-height: 1;
    flex-shrink: 0;
}

.vbs-alert-content strong {
    display: block;
    font-size: 18px;
    margin-bottom:  5px;
}

.vbs-alert-content p {
    margin:  0;
    font-size: 14px;
}

/* Notes du bouton */
.vbs-booking-note {
    text-align: center;
    margin-top: 10px;
    font-size:  13px;
    color: #666;
}

.vbs-note-error {
    color: #dc3545;
    font-weight: 600;
}

.vbs-note-success {
    color:  #28a745;
    font-weight: 600;
}

/* Bouton désactivé */
.vbs-book-button: disabled {
    opacity: 0.5;
    cursor: not-allowed;
}


/* ==========================================
   SINGLE VILLA SIDEBAR - CALENDRIER POPUP STYLE
   ========================================== */

/* Section calendrier */
.vbs-single-calendar-section {
    margin:  25px 0;
    padding:  20px;
    background:  #f8f9fa;
    border-radius: 8px;
}

.vbs-single-calendar-section h3 {
    margin:  0 0 15px 0;
    font-size: 16px;
    font-weight: 700;
    color: #383F37;
    text-align: center;
}

/* Navigation calendrier */
.vbs-single-calendar-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}

.vbs-single-calendar-prev,
.vbs-single-calendar-next {
    background: white;
    border: 2px solid #ddd;
    border-radius:  50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
}

.vbs-single-calendar-prev:hover,
.vbs-single-calendar-next:hover {
    background:  #383F37;
    border-color: #383F37;
    color: white;
}

.vbs-single-calendar-prev svg,
.vbs-single-calendar-next svg {
    pointer-events: none;
}

.vbs-single-calendar-month {
    flex: 1;
    text-align: center;
}

.vbs-single-calendar-month strong {
    font-size: 16px;
    color: #383F37;
}

/* Grille du calendrier */
#vbs-single-calendar-container {
    margin-bottom: 15px;
}

.vbs-single-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
}

.vbs-single-day-header {
    text-align: center;
    font-size: 11px;
    font-weight: 700;
    color: #666;
    padding: 8px 0;
    text-transform: uppercase;
}

.vbs-single-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    background: white;
    border: 2px solid transparent;
    font-weight: 500;
}

/* États des jours */
.vbs-single-day-empty {
    background: transparent;
    cursor: default;
}

.vbs-single-day-past,
.vbs-single-day-occupied {
    background: #f0f0f0;
    color: #ccc;
    cursor: not-allowed;
    text-decoration: line-through;
}

.vbs-single-day-available: hover {
    background: #EFEBE2;
    border-color: #D69643;
    transform: scale(1.05);
}

.vbs-single-day-selected {
    background: #D69643 !important;
    color: white ! important;
    border-color:  #D69643 !important;
    font-weight: 700;
}

.vbs-single-day-in-range {
    background: #EFEBE2;
    color: #383F37;
}

/* Légende */
.vbs-single-calendar-legend {
    display: flex;
    justify-content: space-around;
    gap: 10px;
    padding-top: 10px;
    border-top: 1px solid #ddd;
}

.vbs-legend-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    color: #666;
}

.vbs-legend-color {
    width: 16px;
    height: 16px;
    border-radius:  4px;
    border: 1px solid #ddd;
}

.vbs-legend-available {
    background: white;
}

.vbs-legend-selected {
    background: #D69643;
}

.vbs-legend-occupied {
    background: #f0f0f0;
}

/* Récapitulatif */
.vbs-single-summary {
    background: white;
    border: 2px solid #9BB897;
    border-radius: 8px;
    padding: 15px;
    margin:  20px 0;
}

.vbs-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.vbs-summary-row:last-child {
    border-bottom: none;
}

.vbs-summary-label {
    font-size: 14px;
    color: #666;
}

.vbs-summary-value {
    font-size: 14px;
    font-weight:  700;
    color: #383F37;
}

/* Section guests */
.vbs-single-guests-section {
    margin:  20px 0;
}

.vbs-single-guests-section label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #383F37;
    margin-bottom: 10px;
}

.vbs-single-guests-control {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    background: white;
    border: 2px solid #9BB897;
    border-radius:  8px;
    padding:  12px;
}

.vbs-single-guests-btn {
    background: #383F37;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    color: white;
}

.vbs-single-guests-btn:hover {
    background: #D69643;
    transform: scale(1.1);
}

.vbs-single-guests-btn: disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.vbs-single-guests-count {
    font-size: 24px;
    font-weight:  700;
    color: #383F37;
    min-width: 40px;
    text-align:  center;
}

.vbs-guests-note {
    display: block;
    text-align: center;
    margin-top: 8px;
    font-size:  12px;
    color: #666;
}

/* Bouton Book Now */
.vbs-single-book-button {
    width: 100% !important;
    background: #9BB897 !important;
    color: white !important;
    border: none;
    border-radius: 8px;
    padding: 16px;
    font-size:  18px;
    font-weight:  700;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.vbs-single-book-button:hover: not(:disabled) {
    background: linear-gradient(135deg, #C88534 0%, #B77525 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(214, 150, 67, 0.3);
}

.vbs-single-book-button:disabled {
    background: #ccc;
    cursor: not-allowed;
    opacity: 0.6;
}

.vbs-single-booking-note {
    text-align: center;
    margin-top: 10px;
    font-size:  13px;
    color: #666;
}

.vbs-single-booking-note.vbs-note-success {
    color: #28a745;
    font-weight: 600;
}

.vbs-single-booking-note.vbs-note-error {
    color: #dc3545;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
    .vbs-single-calendar-legend {
        flex-direction: column;
        gap: 8px;
    }
}


/* ==========================================
   BANDEAU MOBILE DE RÉSERVATION
   ========================================== */

.vbs-mobile-booking-banner {
    display: none; /* Masqué par défaut (desktop) */
}

@media (max-width: 768px) {
    
    .vbs-mobile-booking-banner {
        display: block;
        background: white;
        border: 2px solid #9BB897;
        border-radius: 12px;
        padding: 15px;
        margin-bottom: 20px;
        z-index: 100;
        position: relative;
        transition: all 0.3s ease;
    }
    
    /* État sticky */
    .vbs-mobile-booking-banner.is-sticky {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        margin: 0;
        border-radius: 0;
        border-left: none;
        border-right: none;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
        animation: slideDown 0.3s ease;
    }
    
    @keyframes slideDown {
        from {
            transform: translateY(-100%);
            opacity: 0;
        }
        to {
            transform: translateY(0);
            opacity: 1;
        }
    }
    
    /* Bandeau masqué */
    .vbs-mobile-booking-banner.is-hidden {
        display: none;
    }
    
    /* Contenu du bandeau */
    .vbs-mobile-banner-content {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }
    
    /* Section dates */
    .vbs-mobile-banner-dates {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
    }
    
    .vbs-mobile-date-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        flex: 1;
    }
    
    .vbs-mobile-date-label {
        font-size: 10px;
        color: #666;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        margin-bottom: 2px;
    }
    
    .vbs-mobile-date-value {
        font-size: 14px;
        font-weight: 700;
        color: #383F37;
    }
    
    .vbs-mobile-date-separator {
        color: #D69643;
        font-size: 16px;
        font-weight: 700;
    }
    
    /* Section actions */
    .vbs-mobile-banner-actions {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
    }
    
    .vbs-mobile-banner-price {
        display: flex;
        align-items: baseline;
        gap: 4px;
    }
    
    .vbs-mobile-price-label {
        font-size: 11px;
        color: #666;
    }
    
    .vbs-mobile-price-amount {
        font-size: 20px;
        font-weight: 700;
        color: #D69643;
    }
    
    .vbs-mobile-price-per {
        font-size: 11px;
        color: #666;
    }
    
    /* Bouton Reserve */
    .vbs-mobile-reserve-btn {
        background: #9BB897 !important;
        color: #FFFFFF !important;
        border: none;
        border-radius: 8px;
        padding: 12px 24px;
        font-size: 14px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        cursor: pointer;
        transition: all 0.3s;
        white-space: nowrap;
    }
    
    .vbs-mobile-reserve-btn:active {
        transform: scale(0.98);
    }
    
    /* Masquer le sidebar sur mobile par défaut */
    .vbs-villa-sidebar {
        display: none;
    }
    
    /* Afficher le sidebar quand activé */
    .vbs-villa-sidebar.is-visible {
        display: block;
        margin-top: 30px;
        animation: fadeInDown 0.4s ease;
    }
    
    @keyframes fadeInDown {
        from {
            opacity: 0;
            transform: translateY(-20px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
}

/* Desktop : tout reste normal */
@media (min-width: 769px) {
    .vbs-mobile-booking-banner {
        display: none !important;
    }
    
    .vbs-villa-sidebar {
        display: block !important;
    }
}


.vbs-slider-dots button {
    border: 1px solid #fff !important;
    color: #9BB897 !important;
    border-radius: 10px !important;
    width: 32px !important;
    height: 20px !important;
    background: #ffffff70 !important;
}

/* ==========================================
   ARCHIVE CALENDAR - BOOKING DATES PICKER
   ========================================== */

/* Wrapper du champ */
.vbs-filter-field-dates {
    position: relative;
}

.vbs-dates-input-wrapper {
    position: relative;
}

.vbs-dates-input {
    cursor: pointer;
    padding-right: 40px !important;
}

.vbs-dates-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #D69643;
    pointer-events: none;
}

/* Popup du calendrier */
.vbs-archive-calendar-popup {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: white;
    border: 2px solid #D69643;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    padding: 20px;
    z-index: 1000;
    animation: fadeInDown 0.3s ease;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Header du calendrier */
.vbs-archive-calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
    gap: 10px;
}

.vbs-archive-calendar-prev,
.vbs-archive-calendar-next,
.vbs-archive-calendar-close {
    background: white;
    border: 2px solid #ddd;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
}

.vbs-archive-calendar-prev:hover,
.vbs-archive-calendar-next:hover {
    background: #383F37;
    border-color: #383F37;
    color: white;
}

.vbs-archive-calendar-close:hover {
    background: #dc3545;
    border-color: #dc3545;
    color: white;
}

.vbs-archive-calendar-month {
    flex: 1;
    text-align: center;
}

.vbs-archive-calendar-month strong {
    font-size: 16px;
    color: #383F37;
}

/* Grille du calendrier */
#vbs-archive-calendar-grid {
    margin-bottom: 15px;
}

.vbs-archive-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
}

.vbs-archive-day-header {
    text-align: center;
    font-size: 11px;
    font-weight: 700;
    color: #666;
    padding: 8px 0;
    text-transform: uppercase;
}

.vbs-archive-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    background: white;
    border: 2px solid transparent;
    font-weight: 500;
}

/* États des jours */
.vbs-archive-day-empty {
    background: transparent;
    cursor: default;
}

.vbs-archive-day-past {
    background: #f0f0f0;
    color: #ccc;
    cursor: not-allowed;
}

.vbs-archive-day-available:hover {
    background: #EFEBE2;
    border-color: #D69643;
    transform: scale(1.05);
}

.vbs-archive-day-selected {
    background: #D69643 !important;
    color: white !important;
    border-color: #D69643 !important;
    font-weight: 700;
}

.vbs-archive-day-in-range {
    background: #EFEBE2;
    color: #383F37;
}

/* Récapitulatif */
.vbs-archive-calendar-summary {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    margin-top: 15px;
}

.vbs-archive-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
}

.vbs-archive-summary-label {
    font-size: 13px;
    color: #666;
}

.vbs-archive-summary-value {
    font-size: 13px;
    font-weight: 700;
    color: #383F37;
}

/* Responsive mobile */
@media (max-width: 768px) {
    .vbs-archive-calendar-popup {
        position: fixed;
        top: 50%;
        left: 50%;
        right: auto;
        transform: translate(-50%, -50%);
        width: 90%;
        max-width: 400px;
        animation: zoomIn 0.3s ease;
    }
    
    @keyframes zoomIn {
        from {
            opacity: 0;
            transform: translate(-50%, -50%) scale(0.9);
        }
        to {
            opacity: 1;
            transform: translate(-50%, -50%) scale(1);
        }
    }
}