@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
 
    color: #333;
}

.details-container {
    width: 85%;
    max-width: 1280px;
    margin: 40px auto;
    background: white;
    padding: 20px;
    border-radius: 8px;

}

h1 {
    font-size: 28px;
    font-weight: 600;
    color: #222;
    margin-bottom: 10px;
}

h2 {
    font-size: 22px;
    font-weight: 500;
    color: #444;
    margin-top: 20px;
}

.details-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.details-image {
    width: 70%;
    height: 435px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.details-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 2px;
}

.details-description, .details-includes, .details-excludes, .details-faq, .details-conditions { 
    padding: 20px;
    background: #fff;
    border-radius: 8px;
	border-bottom: 1px solid #ccc;
}

.details-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.details-columns ul {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
}

.details-columns li {
    display: flex;
    align-items: center;
    font-weight: 400;
    margin-bottom: 8px;
    text-align: left;
}

.details-columns li i {
    margin-right: 10px;
}
/* Stile per la galleria */
.details-gallery-wrapper {
    position: relative;
}
/* Stile per la galleria */
.details-gallery-wrapper {
    position: relative;
    overflow: hidden;
    max-width: 100%;
}

.details-gallery {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 10px 0;
}

.details-gallery a {
    flex: 0 0 auto;
    width: calc(25% - 10px);
    border-radius: 5px;
    overflow: hidden;
    text-decoration: none;
}

.details-gallery img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    object-position: center;
    border-radius: 5px;
    transition: transform 0.3s ease;
}

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

/* Stile delle frecce per lo scorrimento */
.gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    font-size: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.gallery-arrow.left {
    left: 10px;
}

.gallery-arrow.right {
    right: 10px;
}
/* Overlay scuro */
.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

/* Contenuto del popup */
.popup-content {
    background: white;
    padding: 15px;
    border-radius: 8px;
    width: 90%;
    max-width: 480px;
    height: 80vh;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Pulsante di chiusura */
.close-popup {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
}

/* Iframe per caricare la pagina di booking */
#booking-iframe {
    flex-grow: 1;
    width: 100%;
    height: 100%;
    border: none;
}


.availability-table {
        text-align: left;
}

.availability-table h3 {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
}

.availability-table table {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    border-collapse: collapse;
}

.availability-table th, .availability-table td {
    padding: 6px;
    border: 1px solid #ddd;
    text-align: center;
}

.availability-table th {
    background-color: #008768;
    color: white;
}

.availability-cell {
    font-size: 20px;
}


@media screen and (max-width: 768px) {
    .details-gallery {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 10px;
        padding-bottom: 10px;
    }

    .details-gallery a {
        flex: 0 0 100%;
        scroll-snap-align: center;
    }

    .details-gallery img {
        height: 250px;
    }
}




@media screen and (max-width: 768px) {
    .details-header {
        flex-direction: column;
        align-items: center;
    }
    .details-image {
        width: 100%;
        height: 250px;
    }
    .details-calendar {
        width: 100%;
        min-height: 200px;
    }
    .details-columns {
        grid-template-columns: 1fr;
    }
.details-description, .details-includes, .details-excludes, .details-faq, .details-conditions { 
    padding: 0px;
    background: #fff;
    border-radius: 8px;
	border-bottom: 1px solid #ccc;
}
	
}
	