/* UI/UX Improvements */

/* Sticky sidebar */
.sticky-sidebar {
    position: sticky;
    top: 20px;
    transition: all 0.3s ease;
}

/* Improved typography for better readability */
.description,
.text {
    line-height: 1.8;
    font-size: 16px;
}

/* Enhanced accordion behavior */
.day_item-head {
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.day_item-head:hover {
    background-color: rgba(0, 0, 0, 0.03);
}

/* Back to top button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(21, 21, 21, 0.8);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.back-to-top .tooltip {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.back-to-top:hover .tooltip {
    opacity: 1;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(21, 21, 21, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(21, 21, 21, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(21, 21, 21, 0);
    }
}

.back-to-top:hover {
    background: rgba(21, 21, 21, 1);
    transform: translateY(-5px);
    box-shadow: 0 4px 10px rgba(21, 21, 21, 0.3);
}

@media (max-width: 768px) {
    .back-to-top {
        width: 40px;
        height: 40px;
        bottom: 20px;
        right: 20px;
    }
}

/* Enhanced image gallery */
.lightgallery .item {
    overflow: hidden;
    transition: transform 0.3s ease;
}

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

.lightgallery .item img {
    transition: transform 0.3s ease;
}

/* Progressive image loading */
.blur-load {
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
}

.blur-load img {
    opacity: 0;
    transition: opacity 0.3s ease-in;
}

.blur-load.loaded img {
    opacity: 1;
}

/* Button hover effects */
.book-now.button,
.btn.button {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.book-now.button:hover,
.btn.button:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Itinerary popup modal styles */
.itn-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2147483000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.itn-overlay.active {
    display: flex;
}

.itn-popup {
    background: #fff;
    max-width: 500px;
    width: 100%;
    border-radius: 16px;
    position: relative;
    animation: fadeInScale 0.4s ease-out;
    overflow: hidden;
    max-height: 90vh;
}

.itn-scroll-wrap {
    max-height: 90vh;
    overflow-y: auto;
}

.itn-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(0, 0, 0, 0.1);
    border: none;
    font-size: 24px;
    color: #666;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
    transition: all 0.2s;
}

.itn-close:hover {
    background: rgba(0, 0, 0, 0.2);
    color: #333;
    transform: rotate(90deg);
}

.itn-popup-head {
    padding: 40px 36px 20px;
    text-align: center;
}

.itn-title {
    font-family: 'Prata', serif;
    font-size: 28px;
    color: #123438;
    margin: 0 0 12px 0;
    line-height: 1.2;
}

.itn-popup-body {
    padding: 0 36px 40px;
}

.itn-input {
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 14px;
    margin-bottom: 16px;
    transition: border-color 0.2s, box-shadow 0.2s;
    font-family: inherit;
}

.itn-input:focus {
    outline: none;
    border-color: #ff3b00;
    box-shadow: 0 0 0 3px rgba(214, 97, 39, 0.1);
}

.itn-submit {
    background: #ff3b00;
    color: #fff;
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    font-size: 15px;
    transition: background 0.2s, transform 0.1s;
}

.itn-submit:hover {
    background: #c04f1f;
    transform: translateY(-1px);
}

.itn-submit:active {
    transform: translateY(0);
}

/* Enquiry modal styles */
.enq-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2147483000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.enq-overlay.active {
    display: flex;
}

.enq-popup {
    background: #fff;
    max-width: 600px;
    width: 100%;
    border-radius: 16px;
    position: relative;
    animation: fadeInScale 0.4s ease-out;
    overflow: hidden;
    max-height: 90vh;
}

.enq-scroll-wrap {
    max-height: 90vh;
    overflow-y: auto;
}

.enq-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    font-size: 28px;
    color: #666;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
    transition: all 0.2s;
}

.enq-close:hover {
    background: #fff;
    color: #333;
    transform: rotate(90deg);
}

.enq-popup-head {
    padding: 40px 36px 20px;
    text-align: center;
}

.enq-title {
    font-family: 'Prata', serif;
    font-size: 26px;
    color: #123438;
    margin: 0 0 12px 0;
    line-height: 1.2;
}

.enq-popup-body {
    padding: 0 36px 40px;
}

.enq-form-group {
    margin-bottom: 16px;
}

.enq-input-group {
    display: flex;
    gap: 10px;
}

.enq-input-group .enq-input {
    flex: 1;
}

.date-section .enq-input-group {
    margin-bottom: 16px;
}

.enq-input {
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 14px;
    transition: border-color 0.2s, box-shadow 0.2s;
    font-family: inherit;
}

.enq-input:focus {
    outline: none;
    border-color: #ff3b00;
    box-shadow: 0 0 0 3px rgba(214, 97, 39, 0.1);
}

.enq-submit {
    background: #ff3b00;
    color: #fff;
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    font-size: 15px;
    margin-top: 8px;
    transition: background 0.2s, transform 0.1s;
}

.enq-submit:hover {
    background: #c04f1f;
    transform: translateY(-1px);
}

.enq-submit:active {
    transform: translateY(0);
}

/* Success/Error popup styles */
.popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    z-index: 2147483001;
    max-width: 400px;
    width: 90%;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.popup.active {
    opacity: 1;
    visibility: visible;
}

.popup-dismiss {
    position: absolute;
    top: 12px;
    right: 12px;
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.popup-dismiss:hover {
    color: #666;
}

.status-icon {
    margin-bottom: 16px;
}

.status-icon svg {
    width: 48px;
    height: 48px;
}

.status-icon.success svg {
    color: #22c55e;
}

.status-icon.error svg {
    color: #ef4444;
}

.status-icon.warning svg {
    color: #f59e0b;
}

.popup-head {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.popup-body {
    color: #666;
    line-height: 1.5;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.96) translateY(10px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* International Phone Input Styling */
.iti {
    width: 100%;
}

.iti__selected-flag {
    background-color: transparent;
}

.iti__flag {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 15'%3e%3cpath fill='%23666' d='M0 0h20v15H0z'/%3e%3c/svg%3e");
}

.iti__selected-dial-code {
    color: #666;
}

.iti__country-list {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    max-height: 200px;
}

.iti__country-list-item {
    padding: 8px 12px;
}

.iti__country-list-item:hover {
    background-color: rgba(214, 97, 39, 0.05);
}

.iti__country-list-item.iti__highlight {
    background-color: rgba(214, 97, 39, 0.1);
}

/* Fix for gallery-page:before causing white space below footer */
/* Override the fixed positioning to prevent it from extending beyond content */
.gallery-page:before {
    position: absolute !important;
    z-index: -1;
    height: auto;
}

/* Ensure footer isn't affected by gallery-page overlay */
body>.container {
    position: relative;
    z-index: 1;
    overflow-x: hidden;
}

/* Responsive adjustments */
@media (max-width: 768px) {

    .itn-popup,
    .enq-popup {
        max-width: 95vw;
        margin: 20px;
    }

    .itn-popup-head,
    .enq-popup-head {
        padding: 32px 24px 16px;
    }

    .itn-popup-body,
    .enq-popup-body {
        padding: 0 24px 32px;
    }

    .itn-title,
    .enq-title {
        font-size: 24px;
    }

    .enq-input-group {
        flex-direction: column;
        gap: 0;
    }

    .enq-input-group .enq-input {
        margin-bottom: 10px;
    }
}

@media (max-width: 480px) {
    .popup {
        padding: 20px;
        max-width: 95vw;
    }

    .itn-popup-head,
    .enq-popup-head {
        padding: 28px 20px 14px;
    }

    .itn-popup-body,
    .enq-popup-body {
        padding: 0 20px 28px;
    }
}

/* Mobile booking button wrapper */
.mobile-booking-wrapper {
    display: none;
    margin: 40px auto;
    width: 100%;
    max-width: 400px;
}

@media (max-width: 768px) {
    .mobile-booking-wrapper {
        display: block;
    }

    .mobile-booking-wrapper .header-cta-button {
        width: 100%;
    }

    .mobile-booking-wrapper ._counter {
        min-width: 250px !important;
        width: 100%;
    }
}

/* Callout Box copied from blog-single-page */
.callout-box {
    background: #f8f5f0;
    border-left: 4px solid #EB662B;
    padding: 24px 28px;
    margin: 32px 0 48px;
    border-radius: 8px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.callout-box h3 {
    font-family: 'Prata', serif;
    font-size: clamp(28px, 3.5vw, 36px);
    line-height: 1.3;
    letter-spacing: -0.02em;
    font-weight: 400;
    color: #1a1a1a;
    margin: 0 0 12px;
}

.callout-box ul {
    margin: 0;
    padding-left: 24px;
}

.callout-box ul li {
    font-size: 17px;
    line-height: 1.7;
    margin-bottom: 8px;
    color: #2a2a2a;
    display: list-item !important;
    list-style-type: disc !important;
}

.callout-box ul li::marker {
    color: #EB662B;
    font-size: 18px;
}

.callout-box ul li strong {
    font-weight: 600;
    color: #1a1a1a;
}

@media screen and (max-width: 760px) {
    .callout-box {
        padding: 20px 24px;
        margin: 24px 0;
    }
}