/* Styles spécifiques pour la page du gîte */

.gite-content {
    padding-top: 60px;
}

/* Variables pour les couleurs des Pyrénées */
:root {
    --white: #faf6f1;  /* blanc */
}

/* Hero section */
.gite-hero {
    height: auto;
    min-height: 400px;
    background-image: url('../images/gite-hero.jpg');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    background-color: var(--white); /* Blanc */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--white);
    text-align: center;
    padding: 4rem 2rem;
    position: relative;
}

.gite-hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
    position: relative;
    z-index: 2;
    font-weight: 600;
}

.gite-hero p {
    font-size: 1.5rem;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
    position: relative;
    z-index: 2;
    max-width: 800px;
    line-height: 1.4;
}

/* Description section */
.gite-description {
    background-color: var(--white); /* Même couleur que le fond de la galerie */
    padding: 2rem;
    margin: 0;
}

.description-text {
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
}

.description-text h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 2.5rem;
}

.description-text p {
    font-size: 1.2rem;
    line-height: 1.6;
    color: var(--text-color);
}

/* Gallery section */
.gite-gallery {
    padding: 2rem;
    margin-top: 0; /* Supprime l'espace entre la description et la galerie */
}

.gallery-section {
    margin-bottom: 3rem;
}

.gallery-section h2 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
    width: fit-content;
}

.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    padding: 1rem 0;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.02);
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    padding: 2rem 5%;
}

.gallery-item.large {
    grid-column: span 3;
    height: 400px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .gallery-section h2 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    .gallery-container {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .gallery-container {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        padding: 1rem;
    }

    .gallery-item.large {
        grid-column: span 1;
        height: 300px;
    }

    .gite-hero {
        min-height: 300px;
        padding: 3rem 1rem;
    }

    .gite-hero h1 {
        font-size: 2.5rem;
    }

    .gite-hero p {
        font-size: 1.2rem;
    }

    .features-grid,
    .equipements-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* Features section */
.gite-features {
    padding: 4rem 2rem;
    background-color: #faf6f1;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.feature-item {
    background: #fff5e6;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 3px 10px rgba(139, 69, 19, 0.15);
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(139, 69, 19, 0.25);
}

.feature-item i {
    font-size: 2.5rem;
    color: #8B4513;
    margin-bottom: 1rem;
}

.feature-item h3 {
    color: #8B4513;
    margin-bottom: 1rem;
}

.gite-features h2 {
    color: #8B4513;
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2.2rem;
    position: relative;
    padding-bottom: 1rem;
}

.gite-features h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(to right, #D2691E, #8B4513);
    border-radius: 2px;
}

/* Equipements section */
.gite-equipements {
    padding: 4rem 2rem;
    background-color: #fff5e6;
}

.equipements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.equipement-item {
    background: #faf6f1;
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 3px 10px rgba(139, 69, 19, 0.15);
    transition: transform 0.3s ease;
}

.equipement-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(139, 69, 19, 0.25);
}

.equipement-item i {
    font-size: 2rem;
    color: #8B4513;
    margin-bottom: 0.5rem;
}

.gite-equipements h2 {
    color: #8B4513;
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2.2rem;
    position: relative;
    padding-bottom: 1rem;
}

.gite-equipements h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(to right, #D2691E, #8B4513);
    border-radius: 2px;
}

/* Styles pour le bouton équipements */
.btn-equipements {
    background-color: #8B4513;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 25px;
    font-size: 1.1rem;
    cursor: pointer;
    margin: 2rem auto;
    display: block;
    transition: all 0.3s ease;
}

.btn-equipements:hover {
    background-color: #D2691E;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(139, 69, 19, 0.2);
}

/* Style pour la modale */
body.modal-open {
    overflow: hidden;
}

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

.modal-content {
    position: relative;
    background-color: #fff5e6 !important;
    border-radius: 15px !important;
    max-width: 800px;
    height: 90vh;
    overflow-y: auto;
    padding: 2rem !important;
    margin: 5vh auto !important;
    box-shadow: 0 5px 20px rgba(139, 69, 19, 0.25) !important;
}

.modal-content h2 {
    color: #8B4513;
    margin-bottom: 2rem;
    text-align: center;
    padding-bottom: 1rem;
    border-bottom: 3px solid #D2691E;
    padding-right: 40px;
}

.equipement-category {
    background-color: #faf6f1;
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 10px rgba(139, 69, 19, 0.1);
}

.equipement-category h3 {
    color: #8B4513;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    border-left: 4px solid #D2691E;
    padding-left: 1rem;
}

.equipement-category ul {
    columns: 2;
    column-gap: 2rem;
}

.equipement-category li {
    margin-bottom: 0.8rem;
    break-inside: avoid;
    color: #5c3b2b;
}

.equipement-category li::before {
    content: "•";
    color: #D2691E;
    font-weight: bold;
    margin-right: 0.5rem;
}

/* Style pour la barre de défilement */
.modal-content::-webkit-scrollbar {
    width: 8px;
}

.modal-content::-webkit-scrollbar-track {
    background: #fff5e6;
    border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb {
    background: #D2691E;
    border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: #8B4513;
}

@media (max-width: 768px) {
    .equipement-category ul {
        columns: 1;
    }
    
    .modal-content {
        width: 95% !important;
        margin: 2vh auto !important;
        padding: 1rem !important;
    }
}

/* Style pour le bouton de fermeture */
.close {
    color: #8B4513;
    float: right;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: 20px;
    top: 10px;
    transition: all 0.3s ease;
    width: 30px;
    height: 30px;
    text-align: center;
    line-height: 30px;
    border-radius: 50%;
}

.close:hover {
    color: #D2691E;
    transform: rotate(90deg);
}

/* Lightbox customization */
.lb-data .lb-caption {
    font-size: 1rem;
    font-weight: bold;
    color: #fff;
}

.lb-data .lb-details {
    width: 100%;
    text-align: center;
}

/* Video section */
.video-section {
    padding: 2rem 0;
    background-color: #f5f5f5;
}

.video-container {
    display: flex;
    justify-content: center;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.video-card {
    flex: 1;
    max-width: 500px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.video-card video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media (max-width: 768px) {
    .video-container {
        flex-direction: column;
        align-items: center;
    }

    .video-card {
        width: 100%;
    }
}
