/* Interactive Destination Cards Styling */

.idc-wrapper {
    width: 100%;
    position: relative;
}

.idc-grid {
    display: grid;
    width: 100%;
}

.idc-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    box-sizing: border-box;
}

.idc-image-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: all 0.3s ease;
}

.idc-image-wrap img {
    object-fit: contain;
    display: block;
}

.idc-image-wrap svg,
.idc-image-wrap i {
    display: block;
}

.idc-title {
    margin: 10px 0;
    transition: color 0.3s ease;
}

.idc-btn-wrapper {
    display: flex;
    justify-content: center;
    width: 100%;
}

.idc-btn {
    display: inline-block;
    transition: all 0.3s ease;
    text-decoration: none;
    border: none;
    cursor: pointer;
}

.idc-btn-style-link {
    background: transparent;
    border: none;
    padding: 0;
}

/* Modals / Popups style */
.idc-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

body.admin-bar .idc-popup-overlay {
    top: var(--wp-admin--admin-bar--height, 32px);
    height: calc(100vh - var(--wp-admin--admin-bar--height, 32px));
}
@media screen and (max-width: 782px) {
    body.admin-bar .idc-popup-overlay {
        top: 46px;
        height: calc(100vh - 46px);
    }
}

.idc-popup-overlay.is-active {
    opacity: 1;
    visibility: visible;
}

.idc-popup-content {
    position: relative;
    width: 90%;
    max-height: 90vh;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    overflow: hidden;
}

.idc-popup-overlay.is-active .idc-popup-content {
    transform: scale(1);
}

.idc-popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 24px;
    line-height: 1;
    z-index: 10;
    transition: all 0.3s ease;
}

.idc-popup-media-container {
    text-align: center;
    margin-bottom: 20px;
}

.idc-popup-img {
    max-height: 200px;
    object-fit: contain;
}

.idc-popup-body {
    overflow-y: auto;
    padding-right: 5px;
}

/* Scroll lock */
body.idc-popup-open {
    overflow: hidden !important;
}

/* Swiper Flex Alignment fixes */
.idc-swiper {
    overflow: hidden;
    position: relative;
    width: 100%;
}
.idc-swiper .swiper-wrapper {
    display: flex !important;
    flex-direction: row !important;
    box-sizing: content-box !important;
}
.idc-swiper .swiper-slide {
    flex-shrink: 0 !important;
    height: auto !important;
    position: relative;
    box-sizing: border-box !important;
    /* Ensure that width works perfectly without styling conflicts */
    width: auto;
}
