/* styles.css */
body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: 'Arial', sans-serif;
    overflow: hidden; /* Empêche le défilement de la page principale */
}

#map {
    height: 100vh;
    width: 100vw;
}

#hotel-info {
    position: fixed;
    bottom: -100%; /* Commence caché en bas */
    left: 0;
    width: 100%;
    height: 60%;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 -4px 15px rgba(0,0,0,0.2);
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    transition: bottom 0.5s ease-in-out;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

#hotel-info.visible {
    bottom: 0; /* Le fait apparaître */
}

#info-content {
    padding: 20px;
    overflow-y: auto;
    flex-grow: 1;
    display: flex;
    gap: 20px;
}

#close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #333;
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

#hotel-image {
    flex: 0 0 40%;
    max-width: 40%;
}

#hotel-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

#hotel-details {
    flex: 1;
}

#hotel-details h2 {
    margin-top: 0;
    color: #333;
}

#hotel-details p {
    color: #555;
    line-height: 1.6;
}

#hotel-details .services {
    margin-top: 15px;
}

#hotel-details .services h3 {
    margin-bottom: 10px;
    color: #444;
}

#hotel-details .services ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

#hotel-details .services li {
    background-color: #e9e9e9;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 14px;
}

#hotel-details .price {
    margin-top: 20px;
    font-size: 18px;
    font-weight: bold;
    color: #007BFF;
}

/* Responsive Design */
@media (max-width: 768px) {
    #hotel-info {
        height: 80%; /* Plus de hauteur sur mobile */
    }

    #info-content {
        flex-direction: column;
        padding: 15px;
    }

    #hotel-image {
        flex: 0 0 200px; /* Hauteur fixe pour l'image */
        max-width: 100%;
        height: 200px;
    }
}