/* 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: 9999px;
    font-weight: 600;
    transition: background-color 0.3s ease, color 0.3s ease;
}
/* Homepage visual system */
.homepage-shell {
    --homepage-blue: #055c9d;
    --homepage-ink: #0f172a;
}

.homepage-shell section > .container > .text-center h2 {
    letter-spacing: -0.025em;
}

.homepage-shell section > .container > .text-center p {
    line-height: 1.7;
}

.homepage-hero {
    min-height: min(860px, 100svh);
    isolation: isolate;
}

.homepage-hero-bg {
    transform: scale(1.02);
}

.homepage-hero-content {
    text-shadow: 0 2px 24px rgba(15, 23, 42, 0.28);
}

.homepage-hero-title {
    max-width: 780px;
    margin-inline: auto;
    letter-spacing: -0.035em;
}

.homepage-hero-tour-link a {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 0.55rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 9999px;
    background: rgba(15, 23, 42, 0.24);
    color: #fff;
    text-decoration: none;
    backdrop-filter: blur(8px);
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.homepage-hero-tour-link a:hover,
.homepage-hero-tour-link a:focus-visible {
    border-color: rgba(255, 255, 255, 0.7);
    background: rgba(15, 23, 42, 0.42);
    transform: translateY(-1px);
}

.homepage-primary-cta,
.homepage-secondary-cta {
    min-height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.homepage-primary-cta:focus-visible,
.homepage-secondary-cta:focus-visible {
    outline: 3px solid rgba(249, 168, 38, 0.9);
    outline-offset: 4px;
}

.homepage-tours-section {
    background-image: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
}

.homepage-tours-section .category-btn {
    min-height: 46px;
    border: 1px solid rgba(5, 92, 157, 0.14);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

.homepage-tours-section .category-btn:hover {
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.13);
}

.homepage-resource-card {
    min-height: 100%;
}

.homepage-resource-link {
    color: inherit;
    text-decoration: none;
}

.homepage-resource-card img {
    transition: transform 0.7s ease;
}

.homepage-resource-card:hover img {
    transform: scale(1.05);
}

.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;

}
.homepage-services-section .grid > div {
    border-radius: 1.25rem;
    box-shadow: 0 8px 24px -10px rgba(15, 23, 42, 0.45);
}

@media (max-width: 640px) {
    .homepage-hero {
        min-height: 720px;
    }

    .homepage-hero-title {
        letter-spacing: -0.025em;
    }

    .homepage-hero-actions a {
        min-height: 50px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .homepage-resource-card img,
    .homepage-hero-tour-link a {
        transition: none;
    }
}
/*
 * 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;
    /* NOTE: the default is hidden; JS opens a modal by removing the
       Tailwind `hidden` class. The :not(.hidden) rule below MUST exist —
       without it this display:none (loaded after tailwind.built.css)
       outranks the `flex` utility and modals open invisibly. */
    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);
}

/* A modal whose `hidden` class has been removed is open — show it. */
.modal-overlay:not(.hidden) {
    display: flex;
}

/* 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.
 */

/* Coordinated floating contact action */
#whatsapp-button {
    position: fixed;
    right: 24px;
    bottom: calc(20px + env(safe-area-inset-bottom));
    z-index: 9998;
}

#whatsapp-button a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    border: 1px solid rgba(255, 255, 255, 0.75);
    border-radius: 18px;
    background: linear-gradient(145deg, #25D366 0%, #128C7E 100%);
    box-shadow: 0 12px 28px rgba(18, 140, 126, 0.3), 0 2px 5px rgba(15, 23, 42, 0.12);
    position: relative;
    color: #fff;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-radius 0.2s ease;
}

#whatsapp-button:hover {
    transform: translateY(-3px);
}

#whatsapp-button:hover a {
    border-radius: 16px;
    box-shadow: 0 16px 32px rgba(18, 140, 126, 0.38), 0 3px 8px rgba(15, 23, 42, 0.14);
}

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

.floating-action-label {
    position: absolute;
    right: calc(100% + 10px);
    top: 50%;
    transform: translate(6px, -50%);
    padding: 7px 10px;
    border-radius: 9px;
    background: #075E54;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.18);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

#whatsapp-button:hover .floating-action-label,
#whatsapp-button:focus-within .floating-action-label {
    opacity: 1;
    transform: translate(0, -50%);
}

#whatsapp-button a:focus-visible {
    outline: 3px solid rgba(249, 168, 38, 0.9);
    outline-offset: 4px;
}

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

    .floating-action-label {
        display: none;
    }

    }
}
/* 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;
}
