/* ===== Page Loader ===== */
@keyframes loader-bar {
    0% { width: 0; }
    50% { width: 70%; }
    100% { width: 100%; }
}

.animate-loader-bar {
    animation: loader-bar 1.2s ease-in-out forwards;
}

#pageLoader.fade-out {
    opacity: 0;
    pointer-events: none;
}

/* ===== Scroll Reveal Animation ===== */
.scroll-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Navigation Active Link ===== */
.nav-link.active {
    color: #1e3a8a;
    font-weight: 700;
}

.nav-link.active:not([href="#location"]) {
    border-bottom: 2px solid #1e3a8a;
    padding-bottom: 2px;
}

/* ===== Mobile Menu Animation ===== */
#mobileMenu.open {
    display: block;
}

#mobileMenu.open #mobileMenuDrawer {
    transform: translateX(0);
}

/* Hamburger to X animation */
.menu-open #menuBar1 {
    transform: rotate(45deg) translate(4px, 4px);
}

.menu-open #menuBar2 {
    opacity: 0;
}

.menu-open #menuBar3 {
    transform: rotate(-45deg) translate(4px, -4px);
}

/* ===== Floating Button Subtle Pulse ===== */
@keyframes bounce-slow {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

.animate-bounce-slow {
    animation: bounce-slow 3s ease-in-out infinite;
}

/* ===== Hero Fade-In ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 1s ease-out forwards;
}

/* ===== FAQ Accordion ===== */
.faq-item button i {
    transition: transform 0.3s ease;
}

.faq-item.open button i {
    transform: rotate(180deg);
}

.faq-answer {
    transition: max-height 0.3s ease;
}

/* ===== Back to Top Button ===== */
#backToTop.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* ===== Blob Animation for Background ===== */
@keyframes blob {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -50px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
}

.animate-blob {
    animation: blob 7s infinite ease-in-out;
}

.animation-delay-2000 {
    animation-delay: 2s;
}

.animation-delay-4000 {
    animation-delay: 4s;
}

/* ===== Price Anchor Strikethrough ===== */
.price-anchor del {
    text-decoration: line-through;
    text-decoration-color: rgba(255,255,255,0.5);
    text-decoration-thickness: 2px;
}

/* ===== Popular Badge (Expertise Card) ===== */
.popular-badge {
    position: absolute;
    top: 16px;
    left: -32px;
    background: linear-gradient(135deg, #b4975a, #d4b97a);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 40px;
    transform: rotate(-45deg);
    z-index: 20;
    box-shadow: 0 2px 8px rgba(180,151,90,0.3);
    letter-spacing: 0.5px;
}

/* ===== Pulse Dot (Trust Bar) ===== */
@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.5); }
}

.pulse-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    animation: pulse-dot 2s ease-in-out infinite;
}

/* ===== Floating Tooltip Bubble ===== */
.tooltip-bubble {
    position: absolute;
    bottom: 100%;
    right: 0;
    margin-bottom: 12px;
    background: white;
    color: #333;
    font-size: 0.8rem;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    white-space: nowrap;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.3s, transform 0.3s;
    pointer-events: none;
}

.tooltip-bubble.show {
    opacity: 1;
    transform: translateY(0);
}

.tooltip-bubble::after {
    content: '';
    position: absolute;
    bottom: -6px;
    right: 20px;
    width: 12px;
    height: 12px;
    background: white;
    transform: rotate(45deg);
    box-shadow: 2px 2px 4px rgba(0,0,0,0.05);
}

/* ===== Trust Icon Row (Booking) ===== */
.trust-icon-row {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1.5rem;
}

/* ===== Location Map Responsive Height ===== */
#location iframe {
    height: 320px;
}

@media (min-width: 640px) {
    #location iframe {
        height: 400px;
    }
}

@media (min-width: 1024px) {
    #location iframe {
        height: 450px;
    }
}

/* ===== Reduced Motion ===== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
