/* Content Properties Styles */

/* Section qui chevauche entre properties-container et content-properties */
.overlap-section {
    position: absolute;
    top: 70%; /* Commence à 60% de la hauteur du properties-container */
    right: 2rem; /* Positionnée à droite avec marge */
    width: 400px; /* Largeur fixe de 320px */
    height: 400px; /* Hauteur de la section qui chevauche */
    z-index: 10;
    backdrop-filter: blur(8px);
    border-radius: 20px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    display: none;
}

/* @media (min-width: 1440px) {
    .overlap-section {
        top: 70%;
    }
} */

@media (min-width: 1024px) {
    .overlap-section {
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

@media (min-width: 1560px) {
    .overlap-section {
        top: 85%;
    }
}

@media (min-width: 2560px) {
    .overlap-section {
        top: 85%;
    }
}

/* Section de contenu principal */
.content-properties {
    position: relative;
    min-height: 100vh;
    background-color: white;
    padding: 100px 2rem 2rem 2rem; /* Padding top pour compenser le chevauchement */
    z-index: 5;
}

/* Media queries pour responsive */
@media (max-width: 1024px) {
    .overlap-section {
        display: none; /* La div disparaît sur les écrans < 1024px */
    }
}

@media (min-width: 1025px) and (max-width: 1200px) {
    .overlap-section {
        width: 400px; /* Largeur max de 300px sur petits écrans desktop */
        right: 1rem; /* Marge réduite */
    }
}

@media (max-width: 768px) {
    .content-properties {
        padding: 80px 1rem 2rem 1rem;
    }
}

@media (max-width: 480px) {
    .content-properties {
        padding: 60px 1rem 2rem 1rem;
    }
}

/* Barre de réservation mobile (visible uniquement < 1024px) */
.mobile-reservation-bar {
    display: none; /* Cachée par défaut */
}

@media (max-width: 1024px) {
    .mobile-reservation-bar {
        display: block;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background-color: white;
        border-top: 1px solid #e5e7eb;
        padding: 1rem;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }
    
    .mobile-reservation-btn {
        width: 100%;
        background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
        color: white;
        border: none;
        border-radius: 8px;
        padding: 0.75rem 1rem;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        font-size: 1rem;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s ease;
        box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
    }
    
    .mobile-reservation-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4);
    }
    
    .mobile-reservation-btn:active {
        transform: translateY(0);
    }
    
    .mobile-reservation-text {
        color: white;
        font-weight: 600;
    }
    
    .mobile-reservation-icon {
        width: 1.25rem;
        height: 1.25rem;
        color: white;
    }
    
    /* Ajouter du padding bottom au content pour éviter que le bouton cache le contenu */
    .content-properties {
        padding-bottom: 100px;
    }
}

/* Correction pour les boutons dans le conteneur flex - garder côte à côte */
.properties-photos-btn {
    flex-shrink: 0; /* Empêche le rétrécissement */
    flex-grow: 0; /* Empêche l'agrandissement */
    align-self: center; /* Aligne au début du conteneur */
    height: auto; /* Hauteur automatique */
    width: auto; /* Largeur automatique */
}

.properties-openmap-btn {
    flex-shrink: 0; /* Empêche le rétrécissement */
    flex-grow: 0; /* Empêche l'agrandissement */
    align-self: flex-start; /* Aligne au début du conteneur */
    height: auto; /* Hauteur automatique */
    width: auto; /* Largeur automatique */
}

/* Styles simples pour les blocs de texte */
.description-section {
    margin-bottom: 2rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 60%;
}

@media (min-width: 1280px) {
    .description-section {
        width: 65%;
    }
}

@media (min-width: 1440px) {
    .description-section {
        width: 75%;
    }
}
.description-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.description-title::before {
    content: '';
    width: 2rem;
    height: 2rem;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    flex-shrink: 0;
}

/* Icônes spécifiques pour chaque section - Noir pur */
.we-love::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23000000'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M4.318 6.318a4.5 4.5 0 000 6.364L12 20.364l7.682-7.682a4.5 4.5 0 00-6.364-6.364L12 7.636l-1.318-1.318a4.5 4.5 0 00-6.364 0z' /%3E%3C/svg%3E");
}

.we-like::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23000000'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z' /%3E%3C/svg%3E");
}

.avis-specialiste::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23000000'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M11.049 2.927c.3-.921 1.603-.921 1.902 0l1.519 4.674a1 1 0 00.95.69h4.915c.969 0 1.371 1.24.588 1.81l-3.976 2.888a1 1 0 00-.363 1.118l1.518 4.674c.3.922-.755 1.688-1.538 1.118l-3.976-2.888a1 1 0 00-1.176 0l-3.976 2.888c-.783.57-1.838-.197-1.538-1.118l1.518-4.674a1 1 0 00-.363-1.118l-3.976-2.888c-.784-.57-.38-1.81.588-1.81h4.914a1 1 0 00.951-.69l1.519-4.674z' /%3E%3C/svg%3E");
}

.configuration-chambres::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23000000'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M3 7v10a2 2 0 002 2h14a2 2 0 002-2V9a2 2 0 00-2-2H5a2 2 0 00-2-2z' /%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M8 5a2 2 0 012-2h4a2 2 0 012 2v2H8V5z' /%3E%3C/svg%3E");
}

.services-inclus::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23000000'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M9 12l2 2 4-4m5.618-4.016A11.955 11.955 0 0112 2.944a11.955 11.955 0 01-8.618 3.04A12.02 12.02 0 003 9c0 5.591 3.824 10.29 9 11.622 5.176-1.332 9-6.03 9-11.622 0-1.042-.133-2.052-.382-3.016z' /%3E%3C/svg%3E");
}

.services-non-inclus::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23000000'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-2.5L13.732 4c-.77-.833-1.964-.833-2.732 0L3.732 16.5c-.77.833.192 2.5 1.732 2.5z' /%3E%3C/svg%3E");
}

.equipements::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23000000'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 11H5m14 0a2 2 0 012 2v6a2 2 0 01-2 2H5a2 2 0 01-2-2v-6a2 2 0 012-2m14 0V9a2 2 0 00-2-2M5 11V9a2 2 0 012-2m0 0V5a2 2 0 012-2h6a2 2 0 012 2v2M7 7h10' /%3E%3C/svg%3E");
}

.localisation::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23000000'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M17.657 16.657L13.414 20.9a1.998 1.998 0 01-2.827 0l-4.244-4.243a8 8 0 1111.314 0z' /%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M15 11a3 3 0 11-6 0 3 3 0 016 0z' /%3E%3C/svg%3E");
}

.apercus::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23000000'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M4 16l4.586-4.586a2 2 0 012.828 0L16 16m-2-2l1.586-1.586a2 2 0 012.828 0L20 14m-6-6h.01M6 20h12a2 2 0 002-2V6a2 2 0 00-2-2H6a2 2 0 00-2 2v12a2 2 0 002 2z' /%3E%3C/svg%3E");
}

.questions::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23000000'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M8.228 9c.549-1.165 2.03-2 3.772-2 2.21 0 4 1.343 4 3 0 1.4-1.278 2.575-3.006 2.907-.542.104-.994.54-.994 1.093m0 3h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z' /%3E%3C/svg%3E");
}

.description-text {
    font-size: 1rem;
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.description-text:last-child {
    margin-bottom: 0;
}

/* Section des équipements */
.amenities-section {
    margin-bottom: 2rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 60%;
}

@media (min-width: 1280px) {
    .amenities-section {
        width: 65%;
    }
}

@media (min-width: 1440px) {
    .amenities-section {
        width: 75%;
    }
}

.amenities-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.amenities-title::before {
    content: '';
    width: 2rem;
    height: 2rem;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    flex-shrink: 0;
}

.amenities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.amenity-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
}

.amenity-item:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.amenity-icon {
    min-width: 1.5rem;
    width: 1.5rem;
    height: 1.5rem;
    color: #333;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.amenity-icon::before {
    display: inline-block;
    text-align: center;
}

.amenity-text {
    font-size: 0.95rem;
    color: #333;
    line-height: 1.4;
    font-weight: 500;
    flex: 1;
}

/* Responsive */
@media (max-width: 768px) {
    .description-section,
    .amenities-section {
        padding: 1.5rem;
        width: 100%;
    }

    .amenities-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .amenity-item {
        padding: 0.875rem;
        gap: 0.625rem;
    }

    .amenity-icon {
        min-width: 1.25rem;
        width: 1.25rem;
        height: 1.25rem;
        font-size: 1.25rem;
    }

    .amenity-text {
        font-size: 0.9rem;
    }
}

/* Petits écrans - moins de sm (640px) */
@media (max-width: 639px) {
    .description-section,
    .amenities-section {
        width: 100%;
    }

    .gallery-container {
        width: 100%;
    }
}