/* ==================== DANDELI DELIGHT RESORT STYLESHEET ==================== */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html, body {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    max-width: 100vw;
    overflow-x: hidden !important;
    width: 100%;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: #FDFBF7;
    color: #1C1917;
}

img, video, svg {
    max-width: 100%;
}

img {
    height: auto;
}

/* Logo - Hardcoded for Hostinger & Mobile Browsers (overrides any cache/CDN) */
.logo-fixed,
img.logo-fixed {
    width: 68px !important;
    height: 68px !important;
    min-width: 68px !important;
    min-height: 68px !important;
    max-width: 68px !important;
    max-height: 68px !important;
    display: block !important;
    flex-shrink: 0 !important;
    object-fit: contain !important;
}

@media (min-width: 640px) {
    .logo-fixed,
    img.logo-fixed {
        width: 78px !important;
        height: 78px !important;
        min-width: 78px !important;
        min-height: 78px !important;
        max-width: 78px !important;
        max-height: 78px !important;
    }
}

@media (min-width: 1024px) {
    .logo-fixed,
    img.logo-fixed {
        width: 84px !important;
        height: 84px !important;
        min-width: 84px !important;
        min-height: 84px !important;
        max-width: 84px !important;
        max-height: 84px !important;
    }
}

/* Vertical Text Class */
.writing-vertical-rl {
    writing-mode: vertical-rl;
    text-orientation: mixed;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #FDFBF7;
}

::-webkit-scrollbar-thumb {
    background: #26542A;
    border-radius: 4px;
}

/* Reveal animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-left.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-right.active {
    opacity: 1;
    transform: translateX(0);
}

/* Centered Floating Header Capsule */
.nav-glass {
    background: transparent;
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    border: 1px solid transparent;
    border-radius: 30px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-glass.scrolled {
    background: rgba(19, 46, 21, 0.55);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Hero Slider */
#home {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

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

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    background: linear-gradient(180deg, rgba(19, 46, 21, 0.65) 0%, rgba(0, 0, 0, 0.55) 60%, rgba(19, 46, 21, 0.85) 100%);
}

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

.slider-dot.dot-active {
    background: #FFC107;
    width: 32px;
    border-radius: 6px;
}

/* Deckle / Card edge simulation */
.deckle-card {
    background: #FFFFFF;
    border-radius: 20px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.08);
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.deckle-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.14);
}

/* Green Cards for Indoor Activities */
.green-torn-card {
    background: #1D421F;
    border-radius: 18px;
    color: white;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 10px 30px rgba(29, 66, 31, 0.25);
}

.green-torn-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 38px rgba(29, 66, 31, 0.35);
}

/* Yellow Circle Icon Badge */
.yellow-badge {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: #FBCA05;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(251, 202, 5, 0.4);
    margin: 0 auto;
    transition: transform 0.3s ease;
}

.green-torn-card:hover .yellow-badge,
.deckle-card:hover .yellow-badge {
    transform: scale(1.1) rotate(5deg);
}

/* Reviews Horizontal Scroll */
.reviews-scroll-container {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding: 12px 4px 24px 4px;
}

.reviews-scroll-container::-webkit-scrollbar {
    display: none;
}

.review-card {
    min-width: 280px;
    max-width: 360px;
    flex-shrink: 0;
    scroll-snap-align: start;
}

/* Map pin animations */
.map-pin-pulse {
    position: absolute;
    width: 18px;
    height: 18px;
    background: #EF4444;
    border: 3px solid #FFFFFF;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.5);
    transition: transform 0.3s ease;
}

.map-pin-pulse:hover {
    transform: scale(1.3);
}

.map-pin-pulse::after {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 2px solid rgba(239, 68, 68, 0.6);
    animation: pinPulse 2s infinite ease-out;
}

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

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

/* Lightbox modal */
.lightbox-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 100;
    background: rgba(0, 0, 0, 0.94);
    backdrop-filter: blur(12px);
    align-items: center;
    justify-content: center;
}

.lightbox-modal.open {
    display: flex;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* FAQ accordion */
.faq-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
}

.faq-body.open {
    max-height: 350px;
}

.faq-icon {
    transition: transform 0.3s ease;
}

.faq-icon.rotate {
    transform: rotate(180deg);
}

/* Toast */
.toast-msg {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 120;
    background: #1D421F;
    color: #FFFFFF;
    padding: 14px 24px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast-msg.show {
    transform: translateY(0);
    opacity: 1;
}

/* ==================== RESPONSIVE FLUID MEDIA QUERIES ==================== */

/* Mobile Phones (<= 640px) */
@media (max-width: 640px) {
    .review-card {
        min-width: 82vw;
    }
    
    .fixed.bottom-7 {
        bottom: 1rem !important;
    }
    .fixed.left-7 {
        left: 0.85rem !important;
        padding: 0.75rem !important;
    }
    .fixed.right-7 {
        right: 0.85rem !important;
        padding: 0.75rem !important;
    }

    .px-6 {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
}

/* Tablets (641px - 1024px) */
@media (min-width: 641px) and (max-width: 1024px) {
    .review-card {
        min-width: 320px;
    }
}

/* Ultra-wide Displays (>= 1536px 2K/4K Monitors) */
@media (min-width: 1536px) {
    .max-w-7xl, .max-w-6xl {
        max-width: 1536px !important;
    }
}
