/* Hide the default cursor globally and hide scrollbars */
html,
body {
    cursor: none;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    width: 100%;
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
}

/* Hide scrollbar for Chrome, Safari and Opera */
html::-webkit-scrollbar,
body::-webkit-scrollbar {
    display: none;
}

/* The custom dot cursor */
#custom-cursor {
    width: 12px;
    height: 12px;
    background-color: #ff4500;
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9999;
    transition: width 0.3s ease, height 0.3s ease, opacity 0.3s ease, background-color 0.3s ease;
    will-change: transform;
}

/* Design styles from before */
.glass-nav {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* ===== Hero Slideshow ===== */
.hero-slideshow {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    will-change: opacity, transform;
    z-index: 0;
}

.hero-slide.active {
    opacity: 1;
    z-index: 1;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1);
}

.hero-slide.active img {
    animation: kenBurnsZoom 6s ease-out forwards;
}

@keyframes kenBurnsZoom {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.18);
    }
}

/* Hero text entrance animations */
@keyframes slideFromTop {
    0% {
        opacity: 0;
        transform: translateY(-70px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideFromBottom {
    0% {
        opacity: 0;
        transform: translateY(50px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title {
    opacity: 0;
}

.hero-cta {
    opacity: 0;
}

/* Dark overlay on top of slides */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0.15) 0%,
            rgba(0, 0, 0, 0.05) 40%,
            rgba(0, 0, 0, 0.25) 100%);
    z-index: 1;
    pointer-events: none;
}

/* All hero content sits above the overlay */
.hero-content-wrapper {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* ===== Language Dropdown ===== */
.lang-dropdown {
    position: relative;
}

.lang-toggle {
    background: rgba(255, 255, 255, 0.95);
    color: #333;
    padding: 8px 14px;
    border-radius: 12px;
    /* Fully rounded as requested */
    margin-right: 12px;
    /* Subtle gap from right */
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.25s ease;
    border: none;
    font-size: 14px;
    font-weight: 700;
    user-select: none;
}

@media (max-width: 768px) {
    .lang-toggle {
        margin-right: 8px;
    }
}


.lang-toggle:hover {
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.22);
    transform: scale(1.05) translateX(-8px);
}

.lang-toggle .flag-icon {
    width: 22px;
    height: 16px;
    object-fit: cover;
    border-radius: 2px;
}

.lang-toggle .chevron-icon {
    font-size: 10px;
    transition: transform 0.3s ease;
}

.lang-dropdown.open .chevron-icon {
    transform: rotate(180deg);
}

.lang-menu {
    position: absolute;
    bottom: calc(100% + 10px);
    right: 12px;
    /* Desktop gap */
    min-width: 220px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 14px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.4);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 100;
}

@media (max-width: 768px) {
    .lang-menu {
        right: 8px;
        /* Mobile gap */
    }
}

.lang-dropdown.open .lang-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    cursor: pointer;
    transition: background 0.2s ease;
    color: #333;
    font-size: 14px;
    font-weight: 500;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.lang-option:last-child {
    border-bottom: none;
}

.lang-option:hover {
    background: rgba(0, 92, 185, 0.08);
}

.lang-option.active {
    background: rgba(0, 92, 185, 0.12);
    color: #005cb9;
    font-weight: 700;
}

.lang-option .flag-icon {
    width: 26px;
    height: 18px;
    object-fit: cover;
    border-radius: 3px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.lang-option .lang-name {
    flex: 1;
}

/* ===== Destination Cards Styles Based on Reference Image ===== */
.grap-bg {
    background-color: #F8F6F4;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    flex: 1;
}

.dest-card-title {
    color: #333333;
    font-size: 20px;
    margin-bottom: 4px;
    font-weight: 400;
    min-height: 56px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.dest-card-price {
    color: #7A6A5E;
    font-size: 14px;
    margin-bottom: 24px;
}

.dest-card-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 24px;
    border: 1px solid #005cb9;
    color: #005cb9;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    background-color: transparent;
}

.dest-card-btn:hover {
    background-color: #005cb9;
    color: #fff;
}

/* ===== Destination Tabs ===== */
.dest-tab {
    font-size: 14px;
    font-weight: 500;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding-bottom: 12px;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    background: none;
    cursor: none;
    white-space: nowrap;
}

.dest-tab:hover {
    color: #005cb9;
}

.dest-tab.active {
    color: #005cb9;
    font-weight: 600;
    border-bottom: 3px solid #005cb9;
}

/* Utilities to hide navigation tab scrollbars but allow scrolling on small devices */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}

.no-scrollbar {
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
}

/* Carousel Dragging styles */
.carousel-track-wrapper {
    touch-action: pan-y;
    cursor: grab;
    user-select: none;
}

.carousel-track-wrapper.dragging {
    cursor: grabbing;
}

.carousel-track-wrapper.dragging .carousel-track {
    transition: none !important;
}

.carousel-track-wrapper .carousel-track {
    will-change: transform;
}

/* ===== Internal Resort Card Sliders ===== */
.resort-slider {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 100%;
}

.slider-wrapper {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: 100%;
    height: 100%;
}

.slider-wrapper img {
    min-width: 100%;
    height: 100%;
    object-fit: cover;
    flex-shrink: 0;
}

.prev-resort,
.next-resort {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.8);
    color: #005cb9;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 30;
    opacity: 0;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.resort-slider:hover .prev-resort,
.resort-slider:hover .next-resort {
    opacity: 1;
}

.prev-resort:hover,
.next-resort:hover {
    background: #005cb9;
    color: #fff;
}

.prev-resort {
    left: 15px;
}

.next-resort {
    right: 15px;
}

.slider-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 30;
}

.slider-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
}

.slider-dot.active {
    background: #fff;
    width: 12px;
    border-radius: 10px;
}

/* Weather Modal Entrance Animation */
@keyframes modalEntrance {
    0% {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }

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

.animate-modal-entrance {
    animation: modalEntrance 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Custom Weather Widget Styles */
.weather-card {
    background: linear-gradient(135deg, #2D8CF0 0%, #1a5cad 100%);
    color: white;
    padding: 40px;
    border-radius: 30px;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
}

.weather-card::-webkit-scrollbar {
    width: 6px;
}

.weather-card::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
}

.weather-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.weather-tag {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.weather-location {
    font-size: 1.5rem;
    font-weight: 700;
}

.weather-date {
    font-size: 0.9rem;
    opacity: 0.8;
}

.weather-main {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 40px;
}

.weather-icon-large {
    font-size: 5rem;
    text-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    animation: float 3s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.weather-temp-large {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1;
}

.weather-desc {
    font-size: 1.25rem;
    font-weight: 500;
    margin-top: 10px;
}

.weather-details-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 20px;
    gap: 20px;
}

.weather-detail-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.weather-detail-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 700;
    opacity: 0.7;
    letter-spacing: 1px;
}

.weather-detail-value {
    font-size: 1.1rem;
    font-weight: 600;
}

/* Forecast Section */
.forecast-section {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.section-title {
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    opacity: 0.9;
}

.forecast-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 12px;
}

.forecast-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 15px 5px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 15px;
    transition: all 0.3s ease;
}

.forecast-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
}

.forecast-day {
    font-size: 0.75rem;
    font-weight: 700;
    opacity: 0.8;
}

.forecast-icon {
    font-size: 1.4rem;
    margin: 4px 0;
}

.forecast-temps {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.2;
}

.forecast-temps .max {
    font-size: 0.9rem;
    font-weight: 700;
}

.forecast-temps .min {
    font-size: 0.75rem;
    opacity: 0.6;
}

/* Weather Stats Footer */
.weather-stats-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.15);
    border-radius: 20px;
}

.footer-stat {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    font-weight: 600;
}

.footer-stat i {
    font-size: 1.2rem;
    color: #ffcc00;
    /* Warm glow for sun/moon */
}

@media (max-width: 640px) {
    .forecast-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .forecast-item:nth-child(n+5) {
        display: none;
    }
}

.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 300px;
    gap: 20px;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255, 255, 255, 0.2);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 640px) {
    .weather-main {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .weather-temp-large {
        font-size: 3.5rem;
    }

    .weather-icon-large {
        font-size: 4rem;
    }
}