/* CSS detail.php */

#pand-details-container {
    padding: 20px;
    width: 85%;
    max-width: 1200px;
    margin: 30px 10px;
    background: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    overflow: hidden;
}

#titel-container {
    font-size: 1.2em;
    color: var(--main-color);
    margin-bottom: 20px;
}

/* =============== Slideshow Container =============== */

.slideshow-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 80%;
    max-width: 100%;
    max-height: 500px;
    margin: auto;
    position: relative;
    overflow: hidden;
}

/*  Close Button  */
.close-btn {
    display: none;
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1000;
    cursor: pointer;
    color: white;
    font-size: 30px;
    font-weight: bold;
}

/* SwiperJS specific styles */
.swiper-container {
    width: 60%;
    max-width: 100%;
    margin: auto;
    overflow: hidden;
}

.swiper-slide img {
    width: 100%;
    object-fit: contain;
    cursor: pointer;
}

.swiper-button-prev,
.swiper-button-next {
    color: var(--main-color);
    font-size: 20px;
}

.swiper-pagination-bullet {
    /* Adjust styles for pagination dots as needed */
    background-color: var(--main-color);
    opacity: 1;
}

.swiper-pagination-bullet-active {
    background-color: var(--secundary-color);
}

/* Fullscreen carousel */

.slideshow-container.fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999;
    background-color: rgba(0, 0, 0, 0.9);
    max-height: none;
}

.slideshow-container.fullscreen .swiper-slide {
    display: flex;
    align-items: center;
}

.slideshow-container.fullscreen .swiper-slide img {
    max-height: 90%;
    object-fit: contain;
}

/* "Beschrijving" under image */

.text {
    display: none;
    color: white;
    text-align: center;
    font-size: 20px;
    padding: 20px 0;
    background-color: rgba(0, 0, 0, 0.5);
    position: absolute;
    bottom: 20px;
    left: 0;
    width: 100%;
}

.slideshow-container.fullscreen .text {
    display: block;
}

/* Number text (1/3 etc) */
.numbertext {
    display: none;
    color: #f2f2f2;
    font-size: 18px;
    padding: 20px 20px;
    position: absolute;
    top: 0;
}

.swiper-wrapper {
    align-items: center;
}

@media screen and (max-width: 768px) {

    .slideshow-container {
        width: 90%;
    }

    /* Fullscreen */

    .slideshow-container.fullscreen .swiper-slide img {
        max-height: 80%;
    }

    .slideshow-container.fullscreen .next,
    .slideshow-container.fullscreen .prev {
        top: auto;
    }
}


/* =============== Info =============== */

#left-right-container {
    display: flex;
    flex-direction: column;
    width: 85%;
    margin: 0 auto;
}

.detail-container {
    display: flex;
    flex-direction: row;
    width: 85%;
    padding: 20px;
    background-color: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border-radius: 0px;
    margin: 20px auto;
    box-sizing: border-box;
}

.detail-container-text {
    display: flex;
    flex-direction: column;
    width: 80%;
    align-self: center;
}

.detail-container-text h3, h3 {
    color: var(--main-color);
    margin-bottom: 15px;
    margin-top: 0;
    font-size: 1.5em;
}

.detail-container-text h4 {
    color: var(--main-color);
    margin-bottom: 8px;
    font-size: 1em;
}

.detail-container-text p {
    font-size: 1em;
    line-height: 1.6;
    color: #333;
}

.detail-container-text strong {
    color: #000;
    font-weight: 600;
}

p {
    margin: 0px;
}

/* =============== Address =============== */

.address-link {
    color: var(--main-color);
    text-decoration: none;
    font-size: 1.1em;
    transition: color 0.2s ease;
}

.address-link:hover, .address-link:focus {
    color: var(--secundary-color);
    text-decoration: underline; 
}

.img-clicked {
    filter: brightness(0.8); 
}

#adres-type-container,
#beschrijving-container,
#info1-container,
#info2-container {
    max-width: 70%;
    min-width: 60%;
    width: fit-content;
}

#adres-type-container,
#info1-container {
    margin: 20px auto 20px 0;
}

#beschrijving-container,
#info2-container {
    margin: 20px 0 20px auto;
}

@media (max-width: 768px) {
    .detail-container {
        flex-direction: column;
        width: 100%;
        margin: 5px auto;
    }

    #adres-type-container,
    #beschrijving-container,
    #info1-container,
    #info2-container {
        max-width: 100%;
        width: 95%;
    }

    #beschrijving-container,
    #info2-container {
        margin: 10px 0 10px auto;
    }

    .detail-container-text {
        width: 100%;
    }

    .detail-container-text h3 {
        font-size: 1.3em;
    }

    .detail-container-text p {
        font-size: 0.95em;
    }
}

/* =============== symbols =============== */

.detail-container-img {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    width: 20%;
}

.detail-container-img img {
    width: 100px;
    height: auto;
    padding-right: 20px;
}

@media (max-width: 768px) {
    .detail-container-img {
        justify-content: center;
        width: 100%;
    }

    .detail-container-img img {
        width: 70px;
        padding-right: 0px;
    }
}

/* =============== EPC =============== */

#epc-container-container {
    flex-direction: column;
}

#epc-container {
    display: block;
    width: 100%;
    /* overflow: hidden; */
    background-color: white;
    box-shadow: 0 0 0;
    max-width: 800px;
    margin-top: 0;
    margin: 0 auto;
}

#epc-arrow-container {
    max-height: 15px;
    height: 1vw;
    z-index: 2;
    position: relative;
}

#epc-arrow-container img {
    height: 100%;
    top: 0;
    width: auto;
    transform: translateX(0);
}

#epc-blocks-container {
    display: flex;
    flex-direction: row;
    justify-content: center;
    width: 100%;
    height: 3.5vw;
    max-height: 40px;
    z-index: 1;
    position: relative;
}

#epc-blocks-container img {
    margin-right: -6px;
}

.scale-up {
    animation: scaleUp 0.5s forwards;
}

.scale-back {
    animation: scaleBack 0.5s forwards;
}

.scale-up,
.scale-back {
    z-index: 1;
}

@keyframes scaleUp {
    from {
        transform: scale(1);
    }

    to {
        transform: scale(1.2);
    }
}

@keyframes scaleBack {
    from {
        transform: scale(1.2);
    }

    to {
        transform: scale(1);
    }
}

@media (max-width: 768px) {
    #epc-container {
        padding: 0;
    }

    #epc-arrow-container {
        height: 2.5vw;
    }

    #epc-arrow-container img {
        margin-bottom: 2px;
    }

    #epc-blocks-container {
        height: 4.2vw;
    }

    #epc-blocks-container img {
        margin-right: -2px;
    }
}