/* Sidebar Navigation Styling */.side-navbar {
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border-radius: 16px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(203, 213, 225, 0.3);
    transition: all 0.3s ease;
}.side-navbar:hover {
    box-shadow: 0 15px 30px -5px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

/* Section Headers */.side-navbar .text-xl.font-bold {
    font-size: 1.35rem;
    position: relative;
    padding-bottom: 0.75rem;
    color: #1a365d;
}.side-navbar .text-xl.font-bold:after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #ecc94b, #2b6cb0);
    border-radius: 3px;
}.side-navbar .text-lg.font-bold {
    font-size: 1.1rem;
    color: #2b6cb0;
    position: relative;
    padding-left: 1.25rem;
}.side-navbar .text-lg.font-bold:before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: #ecc94b;
    border-radius: 50%;
}

/* Navigation Links */.side-navbar .space-y-3 li, .side-navbar .space-y-2 li {
    position: relative;
    padding-left: 1.25rem;
}.side-navbar .space-y-3 li:before, .side-navbar .space-y-2 li:before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: #cbd5e0;
    border-radius: 50%;
    transition: all 0.3s ease;
}.side-navbar .space-y-3 a, .side-navbar .space-y-2 a {
    display: block;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}.side-navbar .space-y-3 a:before, .side-navbar .space-y-2 a:before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 3px;
    height: 100%;
    background: #ecc94b;
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.3s ease;
}.side-navbar .space-y-3 a:hover, .side-navbar .space-y-2 a:hover {
    color: #1a365d !important;
    background: rgba(226, 232, 240, 0.4);
    padding-left: 1rem;
}.side-navbar .space-y-3 a:hover:before, .side-navbar .space-y-2 a:hover:before {
    transform: scaleY(1);
}.side-navbar .space-y-3 li:hover:before, .side-navbar .space-y-2 li:hover:before {
    background: #ecc94b;
    transform: translateY(-50%) scale(1.5);
}

/* Section Dividers */.side-navbar .mt-8 {
    position: relative;
    margin-top: 2.5rem;
    padding-top: 2rem;
}.side-navbar .mt-8:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(203, 213, 225, 0.7), transparent);
}

/* Active Link State */.side-navbar .space-y-3 a.active, .side-navbar .space-y-2 a.active {
    color: #1a365d !important;
    font-weight: 500;
    background: rgba(226, 232, 240, 0.6);
    padding-left: 1rem;
}.side-navbar .space-y-3 a.active:before, .side-navbar .space-y-2 a.active:before {
    transform: scaleY(1);
}.side-navbar .space-y-3 li.active:before, .side-navbar .space-y-2 li.active:before {
    background: #2b6cb0;
    transform: translateY(-50%) scale(1.5);
}

/* Hover Animation Effects */
@keyframes linkPulse {
    0% { transform: translateX(0); }
    50% { transform: translateX(3px); }
    100% { transform: translateX(0); }
}.side-navbar .space-y-3 a:hover, .side-navbar .space-y-2 a:hover {
    animation: linkPulse 0.5s ease;
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
    .side-navbar {
        padding: 1.5rem;
    }
    .side-navbar .space-y-3 a, .side-navbar .space-y-2 a {
        padding: 0.4rem 0.5rem;
    }
}

/* Icon Enhancements (Optional) */.side-navbar .space-y-3 li:nth-child(1) a:after, .side-navbar .space-y-3 li:nth-child(2) a:after, .side-navbar .space-y-3 li:nth-child(3) a:after {
    content: "";
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-left: 0.5rem;
    vertical-align: middle;
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 0.3s ease;
}.side-navbar .space-y-3 li:nth-child(1) a:after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ecc94b'%3E%3Cpath d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8zm4.59-12.42L10 14.17l-2.59-2.58L6 13l4 4 8-8z'/%3E%3C/svg%3E");
}.side-navbar .space-y-3 li:nth-child(2) a:after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ecc94b'%3E%3Cpath d='M19 7h-2l-2-3H9L7 7H5a2 2 0 00-2 2v9a2 2 0 002 2h14a2 2 0 002-2V9a2 2 0 00-2-2zm-7 9a4 4 0 110-8 4 4 0 010 8z'/%3E%3C/svg%3E");
}.side-navbar .space-y-3 li:nth-child(3) a:after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ecc94b'%3E%3Cpath d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8zm-5.5-2.5l7.51-3.49L17.5 6.5 9.99 9.99 6.5 17.5zm5.5-6.6c.61 0 1.1.49 1.1 1.1s-.49 1.1-1.1 1.1-1.1-.49-1.1-1.1.49-1.1 1.1-1.1z'/%3E%3C/svg%3E");
}.side-navbar .space-y-3 li:nth-child(1):hover a:after, .side-navbar .space-y-3 li:nth-child(2):hover a:after, .side-navbar .space-y-3 li:nth-child(3):hover a:after {
    opacity: 1;
}/*
 * Design tokens — single source of truth for brand colors and shared values.
 * Mirrors the Tailwind config in `tailwind.config.js` (brand.* colors).
 */
:root {
    --brand-yellow: #F9A826;
    --brand-blue: #055C9D;
    --brand-dark: #333333;
    --brand-gray: #666666;
    --brand-light: #F5F5F5;
}
/*
 * Site-wide base styles — extracted from base.html inline <style> block.
 * Loads AFTER tokens.css so :root variables resolve.
 */

/*
 * iOS Safari fix: 16px font-size on inputs prevents the page from
 * zooming in when a field is focused. Kept narrow (no .form-control /
 * .form-select selectors here — let Tailwind/crispy-tailwind own input
 * sizing, padding, and borders).
 */
input,
textarea,
select {
    font-size: 16px;
    touch-action: pan-y;
    -webkit-overflow-scrolling: touch;
}

/* Global typography */
body {
    font-family: 'Poppins', sans-serif;
    color: var(--brand-dark);
    background-color: var(--brand-light);
    margin: 0;
    padding: 0;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Volkhov', serif;
    color: var(--brand-blue);
}

html, body {
    overflow-x: hidden;
}

/*
 * Form inputs styled when templates use class="form-input" / "form-textarea"
 * directly (not via crispy-tailwind). No !important, no width: 100% —
 * crispy-tailwind owns full-width/padding/border for its generated output
 * via its own utility classes. These rules only kick in where a template
 * explicitly opts in by writing class="form-input".
 */
.form-input,
.form-textarea,
.form-select {
    display: block;
    width: 100%;
    padding: 0.625rem 0.875rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    background-color: #ffffff;
    color: #1f2937;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    box-sizing: border-box;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: 2px solid transparent;
    outline-offset: 2px;
    border-color: var(--brand-yellow);
    box-shadow: 0 0 0 3px rgba(249, 168, 38, 0.18);
}

.form-textarea {
    min-height: 6rem;
}

/*
 * Project's primary CTA button (Jadoo-theme legacy name).
 * NOTE: do NOT add a .container rule here — Tailwind already provides
 * a responsive .container with proper max-widths per breakpoint, and
 * a fixed `max-width: 1200px` override would break every templates'
 * `class="container mx-auto"` layout.
 */
.btn-jadoo-primary {
    background-color: var(--brand-yellow);
    color: var(--brand-dark);
    padding: 0.75rem 1.5rem;
    border-radius: 50;
    font-weight: 600;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.btn-jadoo-primary:hover {
    background-color: var(--brand-blue);
    color: white;
}

/* Shared animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Alpine.js — keep [x-cloak] elements hidden until Alpine evaluates them */
[x-cloak] {
    display: none !important;
}
/*
 * Navbar styles extracted from base.html inline <style> block.
 * Companion JS-injected styles still live in includes/navbar.html (will be
 * moved in step 3 along with the Bootstrap → Alpine migration).
 */

#main-navbar {
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    box-shadow:
        0 4px 6px -1px rgba(0, 0, 0, 0.1),
        0 2px 4px -2px rgba(0, 0, 0, 0.1);
}

.navbar-scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow:
        0 4px 6px -1px rgba(0, 0, 0, 0.1),
        0 2px 4px -2px rgba(0, 0, 0, 0.1);
}

.mobile-navbar-translucent {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
}

.nav-link {
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--brand-yellow);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.dropdown-group {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 240px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1000;
    padding: 8px 0;
}

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

.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 20px;
    width: 12px;
    height: 12px;
    background: white;
    transform: rotate(45deg);
    border-radius: 2px;
}

.dropdown-item {
    display: block;
    padding: 10px 20px;
    color: var(--brand-gray);
    text-decoration: none;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background-color: var(--brand-light);
    color: var(--brand-blue);
    padding-left: 25px;
}

.mobile-menu-transition {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Smooth transitions for interactive bits */
.nav-item,
.dropdown-menu,
.mobile-dropdown-content {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-navbar-translucent {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

/* Mobile-menu slide-down animation (was injected at runtime from navbar.html) */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/*
 * Modal overlay + content styles.
 *
 * Two scrolling strategies coexist:
 *   1. `.modal-overlay` is the outer fixed-position dimmed backdrop. Its
 *      `overflow-y: auto` lets the modal box scroll within the viewport
 *      on tall content.
 *   2. `.modal-content` ALSO clamps itself to `max-height: 90vh` and
 *      scrolls internally. This keeps the close button reachable on
 *      mobile when forms get long (booking, signup), instead of the
 *      old `margin-bottom: 5rem` hack that often left controls below
 *      the iOS safe area.
 */

.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    /* Respect the iOS safe areas so the backdrop is uniform on notched
       devices and modal content doesn't slip under the home indicator. */
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
}

/* Prevents body scroll when modal is open without the 'fixed' jump */
.modal-open-lock {
    overflow: hidden !important;
    height: 100vh !important;
    width: 100% !important;
}

.modal-content {
    margin-top: 2rem;
    margin-bottom: 2rem;
    max-height: 90vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    /* Add iOS safe-area padding inside the modal so the last form field
       isn't covered by the home indicator on notched phones. */
    padding-bottom: max(1rem, env(safe-area-inset-bottom));
}

.modal-close {
    cursor: pointer;
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 24px;
    color: #666;
}

@media (max-width: 640px) {
    .modal-content {
        margin: 0.5rem auto;
        padding: 1rem;
        padding-bottom: max(1rem, env(safe-area-inset-bottom));
        /* On very small phones (iPhone SE etc) clamp tighter so the
           close button is reachable above the keyboard when a field
           is focused. */
        max-height: calc(100vh - 1rem);
    }
}
/*
 * Footer component styles extracted from templates/includes/footer.html
 * inline <style> block. Includes the WhatsApp FAB, newsletter form,
 * footer grid, social icons.
 */

/* WhatsApp Floating Button - Centered Icon */
#whatsapp-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    transition: all 0.3s ease;
    animation: float 3s ease-in-out infinite;
}

#whatsapp-button a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: #25D366;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.3);
    position: relative;
    transition: all 0.3s ease;
}

#whatsapp-button img {
    width: 40px;
    height: 40px;
    transition: transform 0.3s ease;
    display: block;
    margin: 0 auto;
}

#whatsapp-button:hover {
    transform: translateY(-5px);
    animation: none;
}

#whatsapp-button:hover a {
    background: #128C7E;
    box-shadow: 0 6px 25px rgba(18, 140, 126, 0.4);
}

#whatsapp-button:hover img {
    transform: scale(1.1);
}

#whatsapp-button:after {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border: 2px solid #25D366;
    border-radius: 50%;
    animation: pulse 2s infinite;
    opacity: 0;
    pointer-events: none;
}

#whatsapp-button:active a {
    transform: scale(0.95);
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50%     { transform: translateY(-10px); }
}

@keyframes pulse {
    0%   { transform: scale(0.8); opacity: 0.7; }
    70%  { transform: scale(1.2); opacity: 0; }
    100% { opacity: 0; }
}

@media (max-width: 768px) {
    #whatsapp-button {
        bottom: 20px;
        right: 20px;
    }

    #whatsapp-button a {
        width: 60px;
        height: 60px;
    }

    #whatsapp-button img {
        width: 35px;
        height: 35px;
    }

    @keyframes float {
        0%, 100% { transform: translateY(0); }
        50%     { transform: translateY(-15px); }
    }
}

/* WhatsApp tooltip */
#whatsapp-button a:before {
    content: "Chat with us on WhatsApp";
    position: absolute;
    right: 90px;
    top: 50%;
    transform: translateY(-50%);
    background: #075E54;
    color: white;
    padding: 8px 15px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
}

#whatsapp-button a:after {
    content: '';
    position: absolute;
    right: 80px;
    top: 50%;
    transform: translateY(-50%);
    border-width: 8px;
    border-style: solid;
    border-color: transparent transparent transparent #075E54;
    opacity: 0;
    transition: all 0.3s ease;
}

#whatsapp-button:hover a:before,
#whatsapp-button:hover a:after {
    opacity: 1;
    right: 80px;
}

@media (max-width: 768px) {
    #whatsapp-button a:before {
        content: "WhatsApp us";
        right: 75px;
        padding: 6px 10px;
        font-size: 12px;
    }

    #whatsapp-button:hover a:before,
    #whatsapp-button:hover a:after {
        right: 65px;
    }

    #whatsapp-button a:after {
        right: 65px;
    }
}

/* Newsletter section */
.newsletter-container {
    background-color: rgba(223, 215, 249, 0.199);
    border-radius: 20px;
    padding: 1.5rem;
    position: relative;
    margin-top: 1.5rem;
    overflow: hidden;
}

.newsletter-position {
    position: absolute;
    z-index: -1;
}

.newsletter-success {
    display: none;
    text-align: center;
    padding: 1rem;
    background-color: rgba(223, 215, 249, 0.3);
    border-radius: 20px;
    margin-top: 1rem;
    color: #495057;
    font-weight: 500;
}

.input-group-icon {
    position: relative;
}

.input-box-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    opacity: 0.5;
}

.form-control-newsletter {
    padding-left: 45px;
    border: 1px solid #ced4da;
    border-radius: 50px;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    transition: all 0.3s;
    width: 100%;
}

.form-control-newsletter:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.btn-newsletter {
    background: linear-gradient(45deg, #dc3545, #c82333);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
    width: 100%;
}

.btn-newsletter:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 53, 69, 0.4);
    background: linear-gradient(45deg, #c82333, #bd1e2d);
}

/* Footer grid */
@media (min-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(3, 1fr) 1.5fr !important;
    }
}

.newsletter-heading {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: #f8f9fa;
}

.newsletter-description {
    color: #adb5bd;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Email icon in placeholder */
.email-icon-placeholder {
    position: relative;
    display: inline-block;
    width: 100%;
}

.email-icon-placeholder::before {
    content: '\f0e0';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    z-index: 1;
}

.email-input {
    padding-left: 40px !important;
}

/* Social icons */
.social-icon {
    position: relative;
    transition: all 0.3s ease;
}

.social-icon:hover .social-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(-5px);
}

.social-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: #1f2937;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    margin-bottom: 8px;
}

.social-tooltip:after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 5px;
    border-style: solid;
    border-color: #1f2937 transparent transparent transparent;
}
