/* Base styles */

:root {
    --primary-color: #0073aa;
    --secondary-color: #f8f9fa;
    --text-color: #333;
    --border-color: #ddd;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --hover-color: #f9f9f9;
}
* {
    font-family: 'Poppins', sans-serif;
}   

/* Layout */
.cache-mobile {
    display:none;
}
.hotel-search-container {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2rem;
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}


/* Filters Sidebar */

.filters-sidebar {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px var(--shadow-color);
    height: fit-content;
}

.filter-section {
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
}

.filter-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}


/* Price Range Slider */

.price-range {
    padding: 0 10px;
}

.price-slider {
    width: 100%;
}

.price-inputs {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 0.5rem;
}

.price-input {
    width: 80px;
    padding: 4px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
}


/* Checkboxes and Radio buttons */

.filter-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    cursor: pointer;
}

.filter-option input[type="checkbox"],
.filter-option input[type="radio"] {
    margin: 0;
}


/* Hotel Image */

.hotel-image-wrapper {
    position: relative;
    height: 200px;
    border-radius: 8px;
    overflow: hidden;
}

.hotel-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-gallery {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.thumbnail {
    width: 60px;
    height: 40px;
    border-radius: 4px;
    cursor: pointer;
    object-fit: cover;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.thumbnail:hover {
    opacity: 1;
}


/* Hotel Content */

.hotel-content {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.hotel-header {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding-bottom: 10px;
    gap: 20px;
}

.hotel-name {
    font-size: 28px;
    font-weight: 300;
    color: #001E2D;
    margin: 0;
}

.hotel-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.star-rating {
    color: #ffd700;
    font-size: 1.2rem;
}

.guest-rating {
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-weight: 600;
}

.hotel-location {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #666;
    font-size: 0.9rem;
}

.hotel-description {
    font-size: 0.9rem;
    line-height: 1.5;
    color: #666;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hotel-amenities {
    display: flex;
    gap: 1rem;
    font-size: 1.2rem;
}


/* Price and Booking */

.hotel-price-section {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1rem;
    padding: 1rem;
}

.price-container {
    text-align: right;
}

.original-price {
    color: #666;
    text-decoration: line-through;
    font-size: 0.9rem;
}

.current-price {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--primary-color);
}

.price-period {
    font-size: 0.9rem;
    color: #666;
}

.booking-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 200px;
}

.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-secondary {
    background: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--hover-color);
}


/* Pagination */

.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.page-item {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.page-item:hover,
.page-item.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}


/* Responsive Design */

@media (max-width: 1024px) {
    .cache-mobile {
    display:inline !important;
}
    #reservation-summary {
        padding:0 !important;
    }
    .cache-desktop {
    display:none !important;
}
    button.check-btn.check-btn-orange.check-btn-reserve {
        width: 60%;
        position: fixed;
        bottom: 10px;
        left: 50%;
        transform: translateX(-50%);
        max-width: 80% !important;
    }
    .hotel-search-container {
        grid-template-columns: 1fr;
    }
    .filters-sidebar {
        margin: auto;
        max-width: 100%;
        display: contents;
    }
    .filters-sidebar.active {
        left: 0;
    }
    .hotel-cardxe {
        grid-template-columns: 1fr;
    }
    .hotel-image-wrapper {
        height: 250px;
    }
    .hotel-price-section {
        align-items: flex-start;
        padding: 0;
    }
    .booking-buttons {
        width: 100%;
    }
    .hotel-cardxe {
    flex-direction: column;
}
    .hotel-image-section {
            max-width: 100% !important;
    }
    .hotel-image-section img{
            border-radius: 15px;
    }
}

@media (max-width: 768px) {
    .hotel-location {
     display: contents;
    }
    .hotel-search-container {
        padding: 1rem;
    }
    .sort-controls {
        flex-direction: column;
        gap: 1rem;
    }
        .hotel-details {
        padding: 20px 5px;
        width: 100%;
        text-align: center;
    }


    .hotel-stars {
        color: #fdcb6e;
        font-size: 1.2rem;
        margin-bottom: 8px;
    }


    .boarding-info {
        background: #ffeaa7;
        color: #2d3436;
        padding: 6px 12px;
        border-radius: 20px;
        display: inline-block;
        margin-bottom: 10px;
    }
    
    /* Section Prix et Réservation */
  .hotel-price-booking {
    padding: 16px !important;
    text-align: center !important;
  }

  .price-from {
    font-size: 12px !important;
    color: #999 !important;
    margin-bottom: 4px !important;
  }

  .price {
    font-size: 18px !important;


  }
    .hotel-search-container {
        display: flex;
        flex-direction: column-reverse;
    }
    .filter-title {
        display: none;
    }

}


/* popup code  */

#room-config-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 50%;
    background-color: #fff;
    border-radius: 20px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    padding: 10px;
}

#room-config-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

.room {
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
}

.modal-header,
.modal-content {
    border: 0 !important;
    padding: 0 !important;
}


/** add for hote */


/* Style principal pour la carte d'hôtel */

.hotel-cardxe {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    margin-bottom: 20px;
    padding: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hotel-cardxe:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.15);
}


/* Section image */

.hotel-image-section {
    flex: 1 1 30%;
    max-width: 30%;
    position: relative;
}

.hotel-image-section img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.discount-label {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: red;
    color: white;
    padding: 5px 10px;
    font-size: 14px;
    font-weight: bold;
    border-radius: 4px;
}


/* Détails de l'hôtel */

.hotel-details {
    flex: 1 1 40%;
    padding: 0 20px;
}

.hotel-stars {
    color: gold;
    font-size: 14px;
    margin: 5px 0;
}

.hotel-location {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

.boarding-info {
    font-size: 14px;
    color: #ff6f00;
    font-weight: bold;
    margin-top: 10px;
}


/* Prix et réservation */

.hotel-price-booking {
    flex: 1 1 20%;
    text-align: right;
}

.price-from {
    font-size: 18px;
    color: #333333;
    font-weight: 700;
}

.price {
    font-size: 24px;
    color: #333;
    font-weight: bold;
    margin: 10px 0;
}

.btn-orange,
button.btn.btn-orange.btn-reserve {
    display: inline-block;
    background-color: #ff6f00;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button.check-btn.check-btn-orange.check-btn-reserve {
    display: inline-block;
    background-color: #ff6f00;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-orange:hover {
    background-color: #e65a00;
}


/* Tarifs & Chambres */


/* Tarifs & Chambres */

.hotel-tariffs {
    margin-top: 20px;
    padding: 0;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.5s ease, padding 0.5s ease;
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.hotel-tariffs.open {
    max-height: 500px;
    /* Ajustez selon le contenu maximum attendu */
    padding: 15px 10px;
}


/* Onglets pour les types de pensions */

.boarding-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 5px;
}

.boarding-tab {
    background-color: #f7f7f7;
    border: 1px solid #ddd;
    padding: 0 15px;
    font-size: 14px;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s, color 0.3s, transform 0.2s ease;
}

.boarding-tab:hover {
    background-color: #ff6f00;
    color: white;
    transform: translateY(-3px);
}

.boarding-tab.active {
    background-color: #ff6f00;
    color: white;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}


/* Détails des chambres */

.boarding-details {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

.room-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 15px;
    border-radius: 8px;
    transition: transform 0.2s ease;
}

.children-ages input {
    margin-bottom: 16px;
}


/* Texte et prix */

.room-details span {
    font-size: 14px;
    color: #333;
    font-weight: 500;
}


/* Animation pour le bouton actif */

.room-details .room-price {
    font-weight: bold;
    color: #ff6f00;
}


/* Boutons dans la section Tarifs & Chambres */

.btn-toggle-tariffs {
    display: block;
    background-color: #007bff;
    color: white;
    border: none;
    padding: 10px 15px;
    font-size: 14px;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    margin-bottom: 10px;
}

.btn-toggle-tariffs:hover {
    background-color: #0056b3;
    transform: translateY(-3px);
}
.card_hotel_block p.hotel-theme {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}
p.hotel-theme span {
    background-color: #87d300;
    color: #fff;
    padding: 2px 10px;
    font-size: 11px;
    border-radius: 9px;
}
.card_hotel_block {
    background: #ffffff; /* Fond blanc pour un aspect propre */
    padding: 20px; /* Augmentation du padding pour un meilleur espacement */
    border-radius: 15px; /* Coins arrondis */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Ajout d'une ombre douce */
    border: 1px solid #e0e0e0; /* Ajout d'un cadre léger */
    transition: all 0.3s ease-in-out; /* Animation douce */
    margin-bottom:25px
}

/* Effet au survol */
.card_hotel_block:hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15); /* Ombre plus prononcée au survol */
    transform: translateY(-5px); /* Légère élévation de la carte */
}
/* Style de l'image de l'hôtel */
.card_hotel_block img {
    width: 100%;
    height: auto;
    border-radius: 10px; /* Arrondi des coins de l'image */
    border: 1px solid #ddd;
}



/* Modern Search Bar */

.search-bar-modern {
    display: flex;
    gap: 15px;
    align-items: center;
    background: #001e2d;
    padding: 15px 20px;
    border-radius: 16px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 25px;
    transition: all 0.3s ease-in-out;
}
select#city_id:focus {
    background-color: #ffffff00;
}
.search-item {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
    background: #f9f9f9;
    padding: 0 15px;
    border-radius: 12px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: background 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    max-height: 40px;
}

@media screen and (max-width:768px) {
    .search-item {
            width: 100%;
            margin: 0 10px;
    }
}

.search-item i {
    position: absolute;
    left: 20px;
    font-size: 18px;
    color: #ff6f00;
}

.search-select,
.search-input,
.flatpickr-input[readonly],
input#configure-rooms-btn {
    width: 100%;
    padding: 12px 20px 12px 50px;
    border: none;
    border-radius: 10px;
    font-size: 12px !important;
    background: transparent;
    color: #333;
    outline: none;
    transition: color 0.3s ease, background-color 0.3s ease;
}

.search-select option {
    font-size: 14px;
    padding: 8px;
}

.btn-modern-orange {
    display: inline-block;
    background: linear-gradient(135deg, #ff6f00, #ff9000);
    color: white;
    padding: 12px 25px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
}


/* Responsive Design */

@media screen and (max-width: 768px) {
    .search-bar-modern {
        flex-direction: column;
        gap: 20px;
    }
    .btn-modern-orange {
        width: 100%;
        text-align: center;
    }
    header.hotel-header {
        flex-direction:column;
    }
}

button.btn.btn-modern-orange {
    color: #fff;
    padding: 5px 15px;
}

.radioselect:focus,
.form-control:focus,
.form-select:focus,
textarea:focus,
input:focus {
    background-color: #e0000000 !important;
}


/* code input filiter */


/* Global Styles */

.filter-group {
    margin-bottom: 20px;
    margin-top: 15px;
}

.filter-title {
    color: #ff6a00;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
}

.filter-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.filter-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.filter-item:last-child {
    border-bottom: none;
}

.filter-label {
    display: flex;
    align-items: center;
    width: 100%;
}

.filter-label input[type="checkbox"] {
    margin-right: 10px;
    cursor: pointer;
}

.filter-text {
    flex: 1;
    font-size: 14px;
    color: #333;
}

.filter-count {
    font-size: 13px;
    color: #999;
    margin-left: auto;
}

.filter-price-range {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.filter-price-range label {
    font-size: 14px;
    color: #555;
}

.filter-price-range input {
    width: 100%;
    padding: 5px;
    margin: 0 5px;
    font-size: 14px;
    border: 1px solid #ddd;
    border-radius: 3px;
    outline: none;
}

.filter-price-range input:focus {
    border-color: #ff6a00;
    box-shadow: 0 0 3px rgba(255, 106, 0, 0.5);
}

strong.filter-title {
    color: #001e2d;
}


/* room add style */

.room-details {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 10px;
}

.room-field {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.remove-room-btn {
    background-color: transparent;
    border: none;
    color: #dc3545;
    cursor: pointer;
    font-size: 20px;
}

.remove-room-btn:hover {
    color: #c82333;
}

.remove-room-btn i {
    font-size: 20px;
}


/* Modal Styles */

.hotel-modal {
    max-width: 100%;
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    max-width: 100%;
}

.hotel-close-modal {
    position: absolute;
    right: 15px;
    top: 10px;
    font-size: 24px;
    cursor: pointer;
}

.hotel-close-modal:hover {
    color: #f00;
}

.hotel-modal-body {
    margin-top: 10px;
    margin-top:25px;
    padding: 0 15px;
}


/* popup hotel details */


/* Styles généraux pour la modale */

.theme_hotel_details {
    margin: 25px 0px;
}

.hotel-modal-content {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 95%;
    height: 95%;
    background: #fff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    overflow: hidden;
    animation: fadeIn 0.3s ease-in-out;
    z-index: 1000;
}


/* Header de la modale */

.hotel-modal-header {
    background-color: #ff6600;
    color: #fff;
    padding: 15px;
    font-size: 1.5rem;
    font-weight: bold;
    text-align: center;
}


/* Permettre le défilement dans la modale */

.hotel-modal-body {
    max-height: 100%;
    overflow-y: auto;
    color: #444;
    line-height: 1.6;
}


/* Animation d'apparition */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -60%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}


/* Bouton de fermeture */

.hotel-close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.5rem;
    color: #333;
    cursor: pointer;
    background: #f5f5f5;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.hotel-close-modal:hover {
    background: #e0e0e0;
}


/* Corps de la modale */

.hotel-modal-body h2 {
    font-size: 28px;
    font-weight: 300;
    color: #001E2D;
    margin: 0;
}

.hotel-modal-body h4 {
    font-size: 1.4rem;
    margin-top: 20px;
    margin-bottom: 10px;
    color: #555;
    font-weight: bold;
}


/* Images des hôtels (Slider) */

.hotel-images {
    display: flex;
    overflow-x: auto;
    gap: 10px;
    margin-top: 10px;
    padding-bottom: 10px;
    scrollbar-width: thin;
    scrollbar-color: #ff6600 #f0f0f0;
}

.hotel-images::-webkit-scrollbar {
    height: 8px;
}

.hotel-images::-webkit-scrollbar-thumb {
    background: #ff6600;
    border-radius: 10px;
}

.hotel-images::-webkit-scrollbar-track {
    background: #f0f0f0;
}

.hotel-image {
    flex: 0 0 auto;
    width: 200px;
    height: 150px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    object-fit: cover;
}


/* Tags */

.hotel-tags {
    margin-top: 10px;
}

.hotel-tags span {
    background: #f0f0f0;
    padding: 5px 10px;
    margin: 5px 5px 0 0;
    border-radius: 5px;
    display: inline-block;
    color: #666;
    font-size: 0.9rem;
}


/* Options de pension */

.hotel-boarding p {
    margin: 5px 0;
    padding: 5px 10px;
    background: #e8f5e9;
    border-left: 4px solid #66bb6a;
    border-radius: 4px;
    font-size: 0.9rem;
}


/* Formulaire de sélection des chambres */

#roomForm,
#roomSelectionForm {
    margin-top: 20px;
}

#boardingType,
.roomSelect {
    width: 100%;
    padding: 10px !important;
    margin: 10px 0 !important;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
}

#paxContainer {
    margin-top: 10px;
}

.pax {
    margin-bottom: 15px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fafafa;
}


/* Overlay pour la modale */

.hotel-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}


/* Responsive */

@media (max-width: 768px) {
    .form-group select {
    padding: 0 10px !important;
}
    
    select.roomSelect {
            padding: 0 10px !important;
    }
    .title_adult {
    flex-direction: column !important;
}
    .hotel-modal-content {
        width: 100% !important;
        height: 100% !important;
        max-width: 100%;
    }
    .hotel-image {
        width: 150px;
        height: 120px;
    }
    
    form.adult-form {
    border-bottom: 1px dotted #fc4f00;
    padding-bottom: 20px !important;
    margin: 20px 0 !important;
    }
    p#stay-dates {
        padding: 10px !important;
    }
}

@media (max-width: 480px) {
    .hotel-image {
        width: 100px;
        height: 80px;
    }
}


/** new codde for popup chambre */


/* Style général pour le modal */

#room-config-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 800px;
    max-height: 80vh;
    background-color: #ffffff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border-radius: 30px;
    overflow-y: auto;
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}


/* Animation d'apparition */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -60%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}


/* En-tête du modal */

.modal-header h3 {
    margin: 0;
    font-size: 24px;
    color: #001e2d;
    padding: 10px 5px;
    font-weight: 400;
}

.modal-header #close-rooms-btn {
    background: none;
    border: none;
    color: #001e2d;
    font-size: 1.5rem;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.modal-header #close-rooms-btn:hover {
    transform: scale(1.2);
}


/* Contenu principal */

#rooms-container {
    margin-bottom: 20px;
}

.room {
    padding: 25px;
    margin-bottom: 15px;
    border-top: 1px solid #e5e5e5;
    border-radius: 8px;
    position: relative;
}

.room h4 {
    font-size: 16px;
    color: #001e2d;
}

.room-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    align-items: center;
}

.room-field label {
    display: block;
    font-weight: 400;
    font-size: 13px;
    color: #001e2d;
    margin-bottom: 5px;
}

.room-field input {
    width: 100%;
    border: 1px solid #cccccc;
    color: #959595;
    font-size: 14px;
    text-transform: none;
    height: 42px;
    background-color: #fff;
    font-weight: 400;
}

.children-ages {
    grid-column: 1 / -1;
}

.btn-danger {
    color: #fc4f00 !important;
    background-color: #fc4f0000 !important;
    border-color: #dc354500 !important;
}

.children-ages input {
    width: 100%;
    border: 1px solid #cccccc;
    color: #959595;
    font-size: 14px;
    text-transform: none;
    height: 42px;
    background-color: #fff;
    font-weight: 400;
}


/* Bouton pour supprimer une chambre */

.remove-room-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    color: #e74c3c;
    font-size: 1.2rem;
    cursor: pointer;
    transition: color 0.2s ease;
}

.remove-room-btn:hover {
    color: #c0392b;
}


/* Pied de page du modal */

.modal-footer {
    display: flex;
    justify-content: space-between;
    padding: 15px 20px;
    border-top: 1px solid #e5e5e5;
}

.modal-footer button {
    padding: 10px 15px;
    font-size: 1rem;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.modal-footer .btn-secondary {
    background-color: #001e2d;
    color: #ffffff;
}

.modal-footer .btn-secondary:hover {
    background-color: #5a6268;
}

.modal-footer .btn-primary {
    background-color: #001e2d;
    color: #ffffff;
}

.modal-footer .btn-primary:hover {
    background-color: #e65c00;
}

::-webkit-scrollbar {
    width: 12px;
    /* Width of the scrollbar */
}

::-webkit-scrollbar-track {
    background: #f0f0f0;
    /* Background of the track */
    border-radius: 6px;
    /* Rounded track */
}

::-webkit-scrollbar-thumb {
    background-color: #001e2d;
    border-radius: 6px;
    /* Rounded thumb */
    border: 3px solid #f0f0f0;
    /* Padding-like effect */
}


/* Arrière-plan semi-transparent */

#room-config-modal::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgb(255 255 255 / 50%);
    z-index: -1;
}


/** new code popup */

.hotel-details {
    margin: 20px;
    line-height: 1.6;
}

.hotel-category {
    font-size: 1.2em;
    color: #888;
}

.hotel-main-image img {
    width: 100%;
    height: auto;
    margin: 20px 0;
    border-radius: 10px;
}

.hotel-gallery {
    margin: 20px 0;
}

.gallery-images img {
    width: 100px;
    height: 100px;
    margin: 5px;
    border-radius: 5px;
    object-fit: cover;
}

.hotel-menu {
    display: flex;
    justify-content: space-around;
    background: #ff6f00;
    padding: 0;
    margin: 20px 0;
    border-radius: 15px;
}

.hotel-menu a {
    color: #fff;
    padding: 10px 15px;
    border-left: 2px solid #ffff;
    border-right: 2px solid #ffff;
    transition: background 0.3s;
    font-weight: 500;
}

.hotel-menu a:hover {
    background: #fff;
    color: #fc4f00;
}

section {
    margin-bottom: 20px;
}

section h2 {
    border-bottom: 2px solid #ddd;
    padding-bottom: 5px;
    margin-bottom: 10px;
}

#information_client h2 {
    border: none;
    margin-bottom: 15px;
}

.review {
    border: 1px solid #ddd;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 5px;
}


/* new form */

#roomSelectionForm {
    background-color: #ffffff;
    border-radius: 8px;
}

#paxContainer .pax {
    background-color: #ffffff;
    border: 1px solid #eaeaea;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

#paxContainer .pax h4 {
    font-size: 16px;
    color: #001e2d;
    margin-bottom: 10px;
}

section#description p {
    font-size: 14px;
    margin-top: 15px;
}


  #description {
    max-width: 800px;
    margin: 0 auto;
}

.contenu-description-hotel {
    overflow: hidden;
    max-height: 4.5em; /* Hauteur pour 3 lignes */
    position: relative;
    transition: max-height 0.5s ease-out, opacity 0.5s ease-out;
}

.contenu-description-hotel.cache {
    max-height: 4.5em; /* Hauteur pour 3 lignes */
}

.contenu-description-hotel.visible {
    max-height: 1000px; /* Hauteur suffisante pour tout afficher */
}

/* Effet de flou sur les dernières lignes */
.contenu-description-hotel.cache::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2em; /* Ajustez la hauteur du flou */
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, 1));
    pointer-events: none; /* Permet de cliquer à travers le flou */
    transition: opacity 0.5s ease-out;
}

.contenu-description-hotel.visible::after {
    opacity: 0; /* Supprime le flou lorsque le contenu est visible */
}

.bouton-hotel-description {
    font-size: 14px;
    padding: 10px 20px;
    background-color: #001E2D;
    color: white;
    cursor: pointer;
    border-radius: 5px;
    text-align: center;
    transition: background-color 0.3s ease-out, transform 0.2s ease-out;
    margin: 20px auto;
    display: block;
    width: fit-content;
}

.bouton-hotel-description:hover {
    background-color: #0056b3;
    transform: scale(1.05); /* Légère animation au survol */
}

/* Animation pour l'ouverture et la fermeture */
@keyframes fadeIn {
    from {
        opacity: 0; 
    }
    to {
        opacity: 1;
    }
}

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

.contenu-description-hotel.visible {
    animation: fadeIn 0.5s ease-out;
}

.contenu-description-hotel.cache {
    animation: fadeOut 0.5s ease-out;
}

/* code for information client */


/* Style général du formulaire */

#customClientForm {
    margin: 20px auto;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 10px;
    background-color: #fff;
}


/* Ligne du formulaire */

.custom-form-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}


/* Groupe de formulaire */

.custom-form-group {
    flex: 1;
    margin-right: 10px;
}

.custom-form-group:last-child {
    margin-right: 0;
}


/* Conteneur pour l'icône et le champ de saisie */

.custom-input-container {
    position: relative;
    display: flex;
    align-items: center;
}


/* Style des icônes */

.custom-input-icon {
    position: absolute;
    left: 10px;
    color: #fc4f00;
    font-size: 16px;
    pointer-events: none;
    /* Empêche l'icône d'interférer avec le clic */
}


/* Style des champs de saisie */

.custom-input-field {
    width: 100%;
    padding: 10px 10px 10px 40px !important;
    /* Augmente le padding-left de 35px à 40px */
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
    line-height: 1.42857;
    margin: 0;
    font-weight: 300;
    color: #959595;
}


/* Style des labels */

.custom-form-group label {
    display: block;
    font-weight: 400;
    font-size: 13px;
    color: #001e2d;
    margin-bottom: 5px;
}


/* Responsive pour les petits écrans */

@media (max-width: 480px) {
    .custom-form-row {
        flex-direction: column;
    }
    .custom-form-group {
        margin-right: 0;
        margin-bottom: 15px;
    }
}

p#stay-dates {
    font-size: 15px;
    color: #001e2d;
}


/* formulaire de reservation par chambre */

.title_adult {
    display: flex;
    gap: 30px;
    padding: 10px;
    background-color: #ffffff;
    /* Fond blanc */
}

.adult-form h5 {
    font-size: 13px;
    /* Taille de police légèrement plus grande */
    color: #333;
    /* Couleur du texte */
    font-weight: 400;
    /* Texte en gras */
    display: none;
}

.adult-form .form-group {
    display: flex;
    flex-direction: column;
    /* Aligner les éléments verticalement */
    gap: 5px;
    /* Espacement entre le titre et le champ */
    width: 100%;
}

.adult-form label {
    font-size: 14px;
    /* Taille de police plus lisible */
    color: #333;
    /* Couleur du texte */
    font-weight: 400;
    /* Texte semi-gras */
}

.adult-form select,
.adult-form input[type="text"] {
    height: 44px;
    width: 100%;
    padding: 10px;
    /* Rembourrage plus généreux */
    font-size: 14px;
    /* Taille de police plus lisible */
    border: 1px solid #ccc;
    /* Bordure légère */
    border-radius: 6px;
    /* Coins arrondis */
    background-color: #f9f9f9;
    /* Fond légèrement gris */
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    /* Animation fluide */
}

.adult-form select {
    appearance: none;
    /* Supprimer l'apparence par défaut du select */
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23000000'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    /* Icône de flèche */
    background-repeat: no-repeat;
    background-position: right 10px center;
    /* Position de l'icône */
    background-size: 12px;
    /* Taille de l'icône */
}

input[type=checkbox] {
    visibility: visible !important;
    opacity: 1 !important;
    vertical-align: middle;
    display: inline !important;
    width: 16px !important;
    height: auto !important;
}

.list-option ul {
    list-style-type: none;
    /* Supprime les puces */
    padding-left: 0;
    /* Supprime le padding par défaut de la liste */
}

.list-option li {
    margin-bottom: 10px;
    /* Espacement entre les éléments de la liste */
}

.list-option label {
    color: #001e2d;
    font-weight: 400;
}

#agency-select {
    width: 100%;
    padding: 8px;
    margin-top: 8px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #fff;
}



.reservation-recap-logo {
    max-width: 250px;
    padding: 20px 0;
    margin: auto;
}


.table-container td, .table-container th  {
    border: 0.1px solid #dadada73;
}

.list-option {
    margin-top: 25px;
}   


.btn_rsv {
    display: flex;
    justify-content: end;
}

/* Overlay de chargement */
#loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75); /* Fond noir semi-transparent */
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Spinner animation */
.loading-spinner {
    border: 8px solid rgba(255, 255, 255, 0.3);
    border-top: 8px solid #ffffff; /* Couleur du spinner */
    border-radius: 50%;
    width: 80px;
    height: 80px;
    animation: spin 1s linear infinite;
}

/* Texte de chargement */
#loading-overlay p {
    color: #fff;
    font-size: 22px;
    font-weight: bold;
    margin-top: 20px;
    text-align: center;
}

/* Animation du spinner */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
/* version mobile */ 


@media only screen and (max-width: 768px) {

  /* RESET & GLOBALES */
 .hotel-modal-content * {
    box-sizing: border-box ;
    margin: 0 !important;
    padding: 0 !important;
  }
    .hotel-modal-content {
        
    }
    
nav.hotel-menu {
    display: none !important;
}
 

  /* CONTENEUR PRINCIPAL DE LA MODAL */
  .hotel-modal-body {
    padding: 20px !important;
    margin: 10px auto ;
    border-radius: 8px ;
  }

  /* RÉORGANISATION DE LA STRUCTURE */
  /* On force le contenu principal (#apiResponse) et sa section interne à occuper 100% */
  #apiResponse {
    display: block !important;
    width: 100% !important;
  }
  #apiResponse > .hotel-modal-body {
    width: 100% !important;
    padding: 20px  0!important;
    flex-direction: column !important;
  }
  /* La sidebar, initialement en 30%, passe sous le contenu principal */
  .hotel-sidebar {
    width: 100% !important;
    border-radius: 8px !important;
  }

  /* HEADER & INFORMATIONS GÉNÉRALES */
  .hotel-header {
    margin-bottom: 12px !important;
  }
  .hotel-name {
    font-size: 24px !important;
    font-weight: bold !important;
    color: #222 !important;
    margin-bottom: 8px !important;
  }
  .hotel-stars {
    font-size: 18px !important;
    color: #f1c40f !important;
    margin-bottom: 12px !important;
  }
  .hotel-location {
    font-size: 14px ;
    margin-bottom: 12px !important;
  }
  .hotel-location img {
    margin-right: 6px !important;
  }
  /* MENU DE NAVIGATION */
  .hotel-menu {
    display: flex !important;
   
    padding: 10px 0 !important;
    margin-bottom: 20px !important;
  }
  .hotel-menu a {
    font-size: 16px !important;
    padding:0 10px !important;
          border-left: none;
  }

  /* SECTIONS DE CONTENU */
  /* Titres de sections */
  #description h2,
  #information_client h2,
  #reservation h2,
  #payment-agency h2,
  #reviews h2 {
    font-size: 20px !important;
    color: #333 !important;
    margin-bottom: 10px !important;
    border-bottom: 1px solid #eee !important;
    padding-bottom: 5px !important;
  }
  /* Paragraphes et textes */
  #description p,
  #information_client p,
  #reservation p,
  #payment-agency p,
  #reviews p {
    font-size: 14px !important;
    color: #555 !important;
    margin-bottom: 10px !important;
  }
  .bouton-hotel-description {

        padding: 10px 20px !important;
        margin: 20px auto !important;
  }
    #paxContainer .pax {
        border: none !important;
    }
  /* FORMULAIRES (Informations Client & Réservation) */
  .custom-form-row {
    margin-bottom: 16px !important;
  }
  .custom-form-group {
    margin-bottom: 12px !important;
  }

  .custom-input-field {
    width: 100% !important;
    padding: 30px !important;
    font-size: 14px !important;
    border-radius: 4px !important;
  }

#customClientForm {
    border:none;
}
  .custom-select {
    width: 100% !important;
    padding: 10px !important;
    font-size: 14px !important;
    border: 1px solid #ccc !important;
    border-radius: 4px !important;
  }

  /* BOUTON DE RÉSERVATION */
  .check-btn-reserve {
    width: 100% ;
    padding: 15px !important;

    margin-top: 20px !important;
  }


  /* SIDEBAR : IMAGE, MAP, INFOS, REVIEWS */
  .card_hotel_block {
    margin-bottom: 20px !important;
    text-align: center !important;
  }
  .hotel-main-image img {
    width: 100% !important;
    height: auto !important;
    border-radius: 8px !important;
    margin-bottom: 10px !important;
  }
  .theme_hotel_details {
    text-align: center !important;
    margin-bottom: 20px !important;
  }
  .theme_hotel_details span {

    padding: 5px 10px !important;
    margin: 4px !important;
    border-radius: 4px !important;
    font-size: 12px !important;
  }
  #hotel-map {
    height: 200px !important;
    margin-bottom: 20px !important;
    border-radius: 8px !important;
    overflow: hidden !important;
  }
  #hotel-map iframe {
    width: 100% !important;
    height: 100% !important;
    border: none !important;
  }
  .hotel-info {
    font-size: 14px !important;
    color: #555 !important;
    line-height: 1.6 !important;
    margin-bottom: 20px !important;
  }
  #reviews ul {
    list-style: none !important;
    padding: 0 !important;
  }
  #reviews li {
    margin-bottom: 10px !important;
  }
  #reviews li label {
    font-size: 14px !important;
    color: #333 !important;
  } 

  /* POUR LES FORMULAIRES GÉNÉRÉS */
  #roomForm {
    width: 100% !important;
    margin-bottom: 20px !important;
  }
}

