/* ---------- Layout ---------- */
.tourgallery-wrapper .gallery-row {
    align-items: stretch !important;
}

.gallery-item-main {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
    width: 100%;
    height: 400px;
    max-width: 100%;
}

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

.gallery-item-main:hover img {
    transform: scale(1.05);
    filter: brightness(0.9);
}

/* ---------- Thumbnails ---------- */
.gallery-thumbs-col {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    max-height: 400px;
}

.gallery-thumb {
    position: relative;
    flex: 1 1 calc(50% - .25rem);
    overflow: hidden;
    border-radius: 10px;
    height: 200px;
    cursor: pointer;
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s ease, filter .3s ease;
}

.gallery-thumb:hover img {
    transform: scale(1.05);
    filter: brightness(0.9);
}

/* ---------- Overlay Buttons ---------- */
.gallery-overlay-btn,
.gallery-more-btn {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, .85);
    color: #fff;
    padding: .5rem 1rem;
    border-radius: 6px;
    font-weight: 500;
    z-index: 10;
    border: none;
    cursor: pointer;
    transition: background .2s;
}

.gallery-overlay-btn:hover,
.gallery-more-btn:hover {
    background: rgba(0, 0, 0, .95);
}

/* ---------- Lightbox ---------- */
.lg-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.lg-overlay.open {
    display: flex;
}

.lg-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    text-align: center;
}

.lg-content img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 8px;
}

.lg-caption {
    color: #fff;
    margin-top: .5rem;
}

.lg-close,
.lg-prev,
.lg-next {
    position: absolute;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 3rem;
    cursor: pointer;
    padding: .5rem .75rem;
    z-index: 2001;
    opacity: .8;
    transition: transform 0.1s, opacity 0.2s;
}

.lg-close:hover,
.lg-prev:hover,
.lg-next:hover {
    opacity: 1;
}

.lg-close {
    top: 10px;
    right: 10px;
}

.lg-prev {
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
}

.lg-next {
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
}

/* ---------- Sections ---------- */

footer,
section {
    padding-top: 5px;
    padding-bottom: 5px;
}


/* ---------- Tour Sections ---------- */
.tour-section,
.tour-section-important {
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.tour-section h5 {
    padding-top: 2rem;
    color: #333;
}

.tour-section ul li {
    margin-bottom: 6px;
    line-height: 1.5;
}

/* ---------- Mobile Buttons ---------- */
.mobile-check-availability-btn {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    text-align: center;
    z-index: 1050;
    border-radius: 0;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.2);
    background-color: #0d6efd;
    /* Bootstrap primary */
    color: #fff;
    border: none;
}

.mobile-check-availability-btn:hover,
.mobile-check-availability-btn:focus,
.mobile-check-availability-btn:active {
    background-color: #0d6efd !important;
    color: #fff !important;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
    body {
        padding-bottom: 60px;
    }
}

/* ---------- Sticky Sidebar ---------- */
.sticky-sidebar {
    top: 70px;
    /* Adjust based on navbar height */
    max-height: calc(100vh - 70px);
    overflow-y: auto;
}



/* ---------- Responsive Thumbnails ---------- */
@media (max-width: 767.98px) {
    .col-md-4 {
        display: none !important;
    }

    .gallery-item-main {
        max-width: 100%;
    }

    .tour-section-important {
        margin-top: 15rem;
        margin-bottom: 2rem;
    }
}

/* ---------- Mobile Lightbox Arrows ---------- */
@media (max-width: 768px) {

    .lg-prev,
    .lg-next {
        font-size: 4.5rem;
        width: 70px;
        height: 70px;
        line-height: 70px;
        border-radius: 50%;
        background: rgba(0, 0, 0, 0.6);
        color: #fff;
        display: flex;
        justify-content: center;
        align-items: center;
        box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
        transition: transform 0.1s, background 0.2s, box-shadow 0.2s;
    }

    .lg-prev:hover,
    .lg-next:hover,
    .lg-prev:active,
    .lg-next:active {
        transform: scale(1.1);
        /* scale only, prevents downward movement */
        background: rgba(0, 0, 0, 0.8);
    }

    .lg-prev {
        left: 10px;
        top: 50%;
        transform: translateY(-50%);
    }

    .lg-next {
        right: 10px;
        top: 50%;
        transform: translateY(-50%);
    }

}