/* ============================================
   JA Passeios Nauticos — Component Styles
   Reusable UI components for the booking site
   ============================================ */


/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.4;
    border: 2px solid transparent;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color var(--transition), border-color var(--transition), color var(--transition), box-shadow var(--transition), transform var(--transition);
    text-decoration: none;
    white-space: nowrap;
    min-height: 44px;
    touch-action: manipulation;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn:active {
    transform: translateY(0);
}

.btn:focus-visible {
    outline: 3px solid var(--ocean);
    outline-offset: 2px;
}

/* Primary — Navy blue */
.btn-primary {
    background: var(--primary-dark);
    color: var(--white);
    border-color: var(--primary-dark);
    box-shadow: none;
}

.btn-primary:hover {
    background-color: var(--primary);
    border-color: var(--primary);
}

/* Accent — Gold/Orange CTA */
.btn-accent {
    background: var(--accent);
    color: var(--white);
    border-color: var(--accent);
    box-shadow: 0 12px 24px rgba(184, 138, 42, 0.2);
}

.btn-accent:hover {
    background-color: var(--accent-hover);
    border-color: var(--accent-hover);
}

/* WhatsApp — Green */
.btn-whatsapp {
    background: var(--success);
    color: var(--white);
    border-color: var(--success);
    box-shadow: 0 10px 22px rgba(22, 163, 74, 0.18);
}

.btn-whatsapp:hover {
    background-color: #219a52;
    border-color: #219a52;
}

.btn-whatsapp i,
.btn-whatsapp svg {
    font-size: 1.2em;
}

/* Outline — Transparent with navy border */
.btn-outline {
    background-color: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline:hover {
    background-color: var(--primary);
    color: var(--white);
}

/* Outline light — for dark backgrounds */
.btn-outline-light {
    background-color: transparent;
    color: var(--white);
    border-color: var(--white);
}

.btn-outline-light:hover {
    background-color: var(--white);
    color: var(--primary);
}

/* Size variants */
.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    border-radius: 4px;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
    border-radius: 4px;
}

/* Full width */
.btn-block {
    display: flex;
    width: 100%;
}


/* ============================================
   TOUR CARDS
   ============================================ */
.card {
    background: var(--white);
    border-radius: 6px;
    box-shadow: 0 8px 24px rgba(16, 24, 32, 0.06);
    overflow: hidden;
    border: 1px solid rgba(219, 234, 254, 0.9);
    transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 42px rgba(16, 24, 32, 0.12);
    border-color: rgba(184, 138, 42, 0.36);
}

/* Card Image */
.card-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition);
}

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

/* Badge on top-left of image */
.card-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    background: var(--white);
    color: var(--primary-dark);
    font-size: 0.75rem;
    font-weight: 800;
    padding: 0.35rem 0.75rem;
    border-radius: 3px;
    z-index: 2;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    box-shadow: 0 10px 24px rgba(16, 24, 32, 0.12);
}

/* Gallery count on bottom-right of image */
.card-gallery-count {
    position: absolute;
    bottom: 0.75rem;
    right: 0.75rem;
    background-color: rgba(7, 24, 39, 0.78);
    color: var(--white);
    font-size: 0.8rem;
    padding: 0.3rem 0.7rem;
    border-radius: 3px;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    z-index: 2;
}

.card-gallery-count i,
.card-gallery-count svg {
    font-size: 0.9em;
}

/* Card Body */
.card-body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.card-description {
    font-size: 0.9rem;
    color: var(--gray);
    margin-bottom: 0.75rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-weight: 700;
}

/* Tags row (duration, difficulty, age) */
.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.card-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.78rem;
    color: var(--primary-dark);
    background-color: var(--surface);
    padding: 0.25rem 0.6rem;
    border: 1px solid var(--border);
    border-radius: 3px;
}

.card-tag i,
.card-tag svg {
    font-size: 0.85em;
    color: var(--primary-light);
}

/* Price area */
.card-price-area {
    margin-top: auto;
    margin-bottom: 0.75rem;
}

.card-price-label {
    font-size: 0.75rem;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.card-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-dark);
    line-height: 1.2;
}

.card-price-old {
    font-size: 0.9rem;
    color: var(--gray);
    text-decoration: line-through;
    margin-left: 0.5rem;
    font-weight: 400;
}

.card-price-person {
    font-size: 0.78rem;
    color: var(--gray);
    font-weight: 400;
}

/* CTA button at card bottom */
.card-cta {
    width: 100%;
}

/* Card grid layout */
.card-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .card-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .btn {
        min-height: 50px;
        padding-inline: 1rem;
    }

    .btn-lg {
        min-height: 54px;
        font-size: 1rem;
        padding: 0.9rem 1rem;
    }

    .card {
        border-radius: 8px;
    }

    .card-image {
        aspect-ratio: 4 / 3;
    }

    .card-body {
        padding: 1rem;
    }

    .card-title {
        font-size: 1.05rem;
    }

    .card-cta {
        min-height: 52px;
    }

    .navbar {
        top: 0.75rem;
        left: 0.75rem;
        right: 0.75rem;
        border-radius: 6px;
        padding: 0.35rem 0;
    }

    /* Drop backdrop-filter on mobile so it doesn't create a containing
       block for the position:fixed drawer (the drawer needs to anchor
       to the viewport, not to the navbar). Higher specificity required
       because the base .navbar rule appears later in the file. */
    nav.navbar {
        backdrop-filter: none;
    }

    /* When the drawer is open, lift the navbar's stacking context above the
       fixed mobile-conversion-bar (z-index 1200). The backdrop and drawer
       live inside the navbar, so their z-index is bounded by the navbar's
       own stacking context level. */
    nav.navbar:has(.navbar-menu.active) {
        z-index: 1500;
    }

    /* Lock background scrolling while the drawer is open */
    html:has(.navbar-menu.active),
    body:has(.navbar-menu.active) {
        overflow: hidden;
        overscroll-behavior: contain;
    }

    .navbar-inner {
        gap: 0.5rem;
        padding-left: 0.65rem;
        padding-right: 0.65rem;
    }

    .navbar-logo img {
        max-height: 38px;
    }

    .navbar-actions .btn-whatsapp {
        display: none;
    }

    /* Push hamburger toggle to the rightmost position */
    .navbar-toggle {
        order: 99;
    }

    /* Full-height right drawer that slides in from the right.
       Higher specificity (.navbar .navbar-menu) is needed because the base
       .navbar-menu rule appears later in the file. */
    .navbar .navbar-menu {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        left: auto;
        width: min(82vw, 320px);
        height: 100svh;
        margin: 0;
        padding: 5.5rem 1rem 1.5rem;
        border: none;
        border-top: 3px solid var(--accent);
        border-radius: 0;
        background: linear-gradient(165deg, var(--primary-dark) 0%, var(--primary) 100%);
        box-shadow: -22px 0 48px rgba(7, 24, 39, 0.4);
        max-height: none;
        overflow-y: auto;
        gap: 0.25rem;
        z-index: 1301;
        transform: translateX(100%);
        visibility: hidden;
        pointer-events: none;
        transition: transform 240ms ease, visibility 0s linear 240ms;
    }

    .navbar .navbar-menu.active {
        transform: translateX(0);
        visibility: visible;
        pointer-events: auto;
        transition: transform 240ms ease, visibility 0s linear 0s;
    }

    .navbar .navbar-menu a {
        display: flex;
        align-items: center;
        min-height: 44px;
        padding: 0.7rem 0.95rem;
        border-radius: 8px;
        font-size: 0.95rem;
        font-weight: 700;
        color: rgba(255, 255, 255, 0.82);
        transition: background-color 140ms ease, color 140ms ease;
    }

    .navbar .navbar-menu a:hover {
        background-color: rgba(255, 255, 255, 0.08);
        color: var(--white);
    }

    .navbar .navbar-menu a.active {
        background-color: rgba(184, 138, 42, 0.16);
        color: var(--accent);
        box-shadow: inset 3px 0 0 var(--accent);
    }

    .lang-switcher a {
        min-width: 32px;
        min-height: 32px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 0.2rem 0.35rem;
    }

    .navbar-toggle {
        width: 42px;
        height: 42px;
        border: 1px solid var(--border);
        border-radius: 4px;
        background: var(--surface);
    }
}

@media (min-width: 1024px) {
    .card-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}


/* ============================================
   BADGES
   ============================================ */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.65rem;
    border-radius: 20px;
    white-space: nowrap;
}

.badge-category {
    background-color: var(--ocean);
    color: var(--white);
}

.badge-difficulty {
    color: var(--white);
}

.badge-difficulty.easy {
    background-color: var(--success);
}

.badge-difficulty.moderate {
    background-color: var(--accent);
    color: var(--dark);
}

.badge-difficulty.advanced {
    background-color: var(--danger);
}

.badge-duration {
    background-color: var(--light);
    color: var(--gray);
}

.badge-duration i,
.badge-duration svg {
    font-size: 0.85em;
}


/* ============================================
   FAQ ACCORDION
   ============================================ */
.accordion {
    max-width: 800px;
    margin: 0 auto;
}

.accordion-item {
    border-bottom: 1px solid var(--gray-light);
    margin-bottom: 0.25rem;
}

.accordion-item:last-child {
    border-bottom: none;
}

.accordion-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 1.25rem 0;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark);
    text-align: left;
    transition: color var(--transition);
    gap: 1rem;
}

.accordion-header:hover {
    color: var(--primary-light);
}

.accordion-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.accordion-icon::before,
.accordion-icon::after {
    content: '';
    position: absolute;
    background-color: var(--primary);
    border-radius: 2px;
    transition: transform var(--transition);
}

.accordion-icon::before {
    width: 14px;
    height: 2px;
}

.accordion-icon::after {
    width: 2px;
    height: 14px;
}

.accordion-item.active .accordion-icon::after {
    transform: rotate(90deg);
}

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

.accordion-body-inner {
    padding: 0 0 1.25rem 0;
    color: var(--gray);
    line-height: 1.7;
    font-size: 0.95rem;
}

.accordion-item.active .accordion-body {
    max-height: 500px;
}


/* ============================================
   FORMS
   ============================================ */
.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
    color: var(--dark);
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border: 1px solid var(--gray-light);
    border-radius: var(--radius-sm);
    background-color: var(--white);
    transition: border-color var(--transition), box-shadow var(--transition);
    color: var(--dark);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(46, 109, 164, 0.15);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--gray);
    opacity: 0.6;
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236B7280' d='M6 8.825L0.375 3.175l0.85-0.85L6 7.15l4.775-4.825 0.85 0.85z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

.form-error {
    font-size: 0.8rem;
    color: var(--danger);
    margin-top: 0.3rem;
    display: none;
}

.form-group.has-error .form-input,
.form-group.has-error .form-select,
.form-group.has-error .form-textarea {
    border-color: var(--danger);
}

.form-group.has-error .form-error {
    display: block;
}

/* Inline form row */
.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 768px) {
    .form-row {
        grid-template-columns: 1fr 1fr;
    }
}


/* ============================================
   MODALS
   ============================================ */
.modal-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    backdrop-filter: blur(2px);
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background-color: var(--white);
    border-radius: var(--radius);
    padding: 2rem;
    max-width: 560px;
    width: 100%;
    box-shadow: var(--shadow-lg);
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: fadeIn 0.3s ease;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--gray);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color var(--transition);
}

.modal-close:hover {
    background-color: var(--light);
    color: var(--dark);
}

.modal-header {
    margin-bottom: 1.25rem;
    padding-right: 2rem;
}

.modal-header h3 {
    margin-bottom: 0.25rem;
}

.modal-body {
    margin-bottom: 1.5rem;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
}


/* ============================================
   STARS RATING
   ============================================ */
.stars {
    display: inline-flex;
    gap: 0.15rem;
    font-size: 1rem;
    line-height: 1;
}

.star {
    color: var(--gray-light);
}

.star.filled {
    color: var(--accent);
}

.stars-value {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--dark);
    margin-left: 0.4rem;
}

.stars-count {
    font-size: 0.8rem;
    color: var(--gray);
    margin-left: 0.25rem;
}


/* ============================================
   ALERTS
   ============================================ */
.alert {
    padding: 1rem 1.25rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1rem;
    font-size: 0.95rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    border: 1px solid transparent;
}

.alert-success {
    background-color: rgba(39, 174, 96, 0.1);
    border-color: rgba(39, 174, 96, 0.3);
    color: #1e8449;
}

.alert-danger {
    background-color: rgba(231, 76, 60, 0.1);
    border-color: rgba(231, 76, 60, 0.3);
    color: #c0392b;
}

.alert-info {
    background-color: rgba(74, 144, 217, 0.1);
    border-color: rgba(74, 144, 217, 0.3);
    color: var(--primary);
}

.alert-warning {
    background-color: rgba(212, 160, 39, 0.1);
    border-color: rgba(212, 160, 39, 0.3);
    color: var(--accent-hover);
}


/* ============================================
   NAVBAR
   ============================================ */
.navbar {
    position: fixed;
    top: 1rem;
    left: 1rem;
    right: 1rem;
    width: auto;
    background-color: rgba(255, 255, 255, 0.94);
    box-shadow: 0 12px 36px rgba(16, 24, 32, 0.1);
    z-index: 1000;
    transition: all var(--transition);
    padding: 0.5rem 0;
    border: 1px solid rgba(220, 229, 234, 0.9);
    border-radius: 6px;
    backdrop-filter: blur(12px);
}

.navbar.scrolled {
    padding: 0.35rem 0;
    box-shadow: 0 12px 32px rgba(16, 24, 32, 0.14);
}

.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.navbar-logo img {
    max-height: 46px;
    width: auto;
    transition: max-height var(--transition);
}

.navbar.scrolled .navbar-logo img {
    max-height: 40px;
}

/* Desktop menu */
.navbar-menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow);
    padding: 1rem;
    border-radius: 6px;
    margin-top: 0.75rem;
}

.navbar-menu.active {
    display: flex;
}

.navbar-menu li {
    width: 100%;
}

.navbar-menu a {
    display: block;
    padding: 0.75rem 1.5rem;
    font-weight: 800;
    color: var(--dark);
    transition: all var(--transition);
    position: relative;
    font-size: 0.95rem;
    border-radius: 4px;
}

.navbar-menu a:hover {
    color: var(--primary-light);
    background-color: var(--light);
}

.navbar-menu a.active {
    color: var(--primary-dark);
    background-color: transparent;
}

/* Navbar actions */
.navbar-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Language switcher */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 0.2rem;
    padding: 0.25rem;
    border: 1px solid var(--border);
    border-radius: 4px;
    background: var(--white);
}

.lang-switcher a {
    opacity: 0.7;
    transition: opacity var(--transition), background-color var(--transition), color var(--transition);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.2rem 0.42rem;
    border-radius: 3px;
}

.lang-switcher a:hover {
    opacity: 0.8;
}

.lang-switcher a.active {
    opacity: 1;
    color: var(--white);
    background: var(--primary);
}

/* Hamburger toggle */
.navbar-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.navbar-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background-color: var(--dark);
    border-radius: 2px;
    transition: all var(--transition);
    transform-origin: center;
}

.navbar-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.navbar-toggle.active span:nth-child(2) {
    opacity: 0;
}

.navbar-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile drawer extras: backdrop and close (X) button.
   Hidden on desktop and only shown when the menu is .active (sibling selector). */
.navbar-menu-close,
.navbar-backdrop {
    display: none;
}

@media (max-width: 767px) {
    .navbar-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(8, 18, 35, 0.55);
        z-index: 1300;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 220ms ease, visibility 0s linear 220ms;
    }

    .navbar-menu.active ~ .navbar-backdrop {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transition: opacity 220ms ease, visibility 0s linear 0s;
    }

    .navbar-menu-close {
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        position: fixed;
        top: 1.25rem;
        right: 1rem;
        padding: 0.5rem 0.95rem 0.5rem 1.1rem;
        background: transparent;
        border: 1px solid rgba(255, 255, 255, 0.22);
        border-radius: 999px;
        color: rgba(255, 255, 255, 0.9);
        font-family: inherit;
        font-size: 0.78rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.06em;
        cursor: pointer;
        z-index: 1310;
        opacity: 0;
        visibility: hidden;
        transition: opacity 220ms ease, visibility 0s linear 220ms,
                    color 160ms ease, border-color 160ms ease, background-color 160ms ease;
    }

    .navbar-menu.active ~ .navbar-menu-close {
        opacity: 1;
        visibility: visible;
        transition: opacity 220ms ease 80ms, visibility 0s linear 0s,
                    color 160ms ease, border-color 160ms ease, background-color 160ms ease;
    }

    .navbar-menu-close svg {
        transition: transform 200ms ease;
    }

    .navbar-menu-close:hover,
    .navbar-menu-close:focus-visible {
        color: var(--accent);
        border-color: var(--accent);
        background-color: rgba(184, 138, 42, 0.1);
        outline: none;
    }

    .navbar-menu-close:hover svg,
    .navbar-menu-close:focus-visible svg {
        transform: translateX(3px);
    }
}

/* Hide WhatsApp button on tablets to avoid header overflow (kept on desktop ≥1024px,
   and the mobile rule below 768px also hides it via the hamburger layout) */
@media (max-width: 1023px) {
    .navbar-actions .btn-whatsapp {
        display: none;
    }
}

/* Tablet+ (768px) */
@media (min-width: 768px) {
    .navbar-menu {
        display: flex;
        flex-direction: row;
        position: static;
        width: auto;
        margin: 0;
        background: none;
        box-shadow: none;
        padding: 0;
        gap: 0.25rem;
    }

    .navbar-menu li {
        width: auto;
    }

    .navbar-menu a {
        padding: 0.5rem 0.75rem;
        position: relative;
        white-space: nowrap;
    }

    .navbar-menu a:hover {
        background-color: transparent;
    }

    /* Underline hover effect */
    .navbar-menu a::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0.75rem;
        right: 0.75rem;
        height: 2px;
        background-color: var(--accent);
        transform: scaleX(0);
        transition: transform var(--transition);
        transform-origin: center;
    }

    .navbar-menu a:hover::after,
    .navbar-menu a.active::after {
        transform: scaleX(1);
    }

    .navbar-toggle {
        display: none;
    }
}


/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--primary-dark);
    color: var(--white);
    padding: 3rem 0 0;
}

.footer-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    gap: 2rem;
}

.footer-col {
    text-align: left;
}

.footer-col h4 {
    color: var(--accent);
    font-size: 1.1rem;
    margin-bottom: 1rem;
    text-align: center;
}

.footer-col p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    line-height: 1.7;
}

.footer-line {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    white-space: nowrap;
}

.footer-line svg {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    color: var(--accent);
}

.footer-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0.65rem 1rem;
    margin-top: 0.5rem;
    border-radius: 4px;
    background: var(--accent);
    color: var(--white);
    font-weight: 800;
    box-shadow: var(--shadow-accent);
}

.footer-col ul li {
    margin-bottom: 0.5rem;
}

.footer-col a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    transition: color var(--transition);
}

.footer-col a:hover {
    color: var(--accent);
}

.footer-col--logo {
    text-align: center;
}

.footer-logo {
    max-width: 100px;
    margin-bottom: 1rem;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.footer-social {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
    transition: all var(--transition);
    font-size: 1rem;
}

.footer-social a:hover {
    background-color: var(--accent);
    color: var(--dark);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    padding: 1.25rem 0;
    margin-top: 1rem;
}

.footer-bottom p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 0;
}

.footer-bottom .footer-sep {
    margin: 0 0.6rem;
    color: rgba(255, 255, 255, 0.3);
}

.footer-bottom .footer-legal-link {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    transition: color var(--transition);
}

.footer-bottom .footer-legal-link:hover,
.footer-bottom .footer-legal-link:focus {
    color: var(--white);
    text-decoration: underline;
}

@media (min-width: 940px) {
    .footer-grid {
        flex-direction: row;
        justify-content: space-between;
        gap: 0;
    }

    .footer-group {
        display: contents;
    }
}

@media (min-width: 1024px) {
    .footer {
        padding: 4rem 0 0;
    }
}


/* ============================================
   WHATSAPP FLOAT BUTTON
   ============================================ */
.whatsapp-float {
    position: fixed;
    bottom: 22px;
    right: 22px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--success);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 14px 30px rgba(22, 163, 74, 0.28);
    z-index: 999;
    transition: all var(--transition);
    text-decoration: none;
    font-size: 1.75rem;
    border: none;
    cursor: pointer;
    animation: pulse 2.4s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    animation: none;
    box-shadow: 0 6px 25px rgba(39, 174, 96, 0.4);
}

.whatsapp-float i,
.whatsapp-float svg {
    font-size: 1.75rem;
}

.mobile-conversion-bar {
    display: none;
}

@media (max-width: 767px) {
    body {
        padding-bottom: calc(82px + env(safe-area-inset-bottom));
    }

    .whatsapp-float {
        display: none;
    }

    .mobile-conversion-bar {
        position: fixed;
        left: 0.75rem;
        right: 0.75rem;
        bottom: calc(0.75rem + env(safe-area-inset-bottom));
        z-index: 1200;
        display: grid;
        grid-template-columns: 1fr 1fr;
        background: var(--primary-dark);
        border: 1px solid rgba(255, 255, 255, 0.12);
        border-radius: 8px;
        box-shadow: 0 16px 36px rgba(16, 24, 32, 0.22);
        overflow: hidden;
    }

    .mobile-conversion-bar a {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 54px;
        color: var(--white);
        font-weight: 800;
        font-size: 0.92rem;
        text-align: center;
        padding: 0 0.75rem;
    }

    .mobile-conversion-bar a:first-child {
        background: var(--accent);
    }
}


/* ============================================
   COOKIE CONSENT BANNER
   ============================================ */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1400;
    background: var(--primary-dark, #1B3A5C);
    color: var(--white);
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.22);
    transform: translateY(100%);
    animation: cookieBannerSlideUp 0.35s ease forwards;
}

.cookie-banner[hidden] {
    display: none;
}

@keyframes cookieBannerSlideUp {
    from { transform: translateY(100%); }
    to   { transform: translateY(0); }
}

.cookie-banner-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.75rem;
}

.cookie-banner-content {
    flex: 1;
    min-width: 0;
}

.cookie-banner-content p {
    margin: 0 0 0.35rem;
    font-size: 0.9rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.88);
}

.cookie-banner-content p:last-child {
    margin-bottom: 0;
}

.cookie-banner-content strong {
    color: var(--white);
}

.cookie-banner-content a {
    color: var(--accent, #D4A027);
    text-decoration: underline;
    font-weight: 600;
}

.cookie-banner-content a:hover {
    color: var(--white);
}

.cookie-banner-actions {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
}

.cookie-banner-actions .btn-sm {
    padding: 0.55rem 1.4rem;
    font-size: 0.9rem;
    min-height: 38px;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .cookie-banner-inner {
        flex-direction: column;
        align-items: stretch;
        gap: 0.85rem;
        padding: 1rem;
    }

    .cookie-banner-actions .btn {
        width: 100%;
    }
}


/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: 60px; /* offset for fixed navbar */
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(27, 58, 92, 0.7) 0%,
        rgba(27, 58, 92, 0.5) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
    max-width: 700px;
    padding: 2rem 1rem;
}

.hero-content h1 {
    color: var(--white);
    margin-bottom: 1rem;
}

.hero-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

@media (min-width: 768px) {
    .hero {
        min-height: 90vh;
    }

    .hero-content p {
        font-size: 1.25rem;
    }
}


/* ============================================
   LOADING / SKELETON
   ============================================ */
.skeleton {
    background: linear-gradient(90deg, var(--gray-light) 25%, #f0f0f0 50%, var(--gray-light) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: var(--radius-sm);
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}


/* ============================================
   PAGINATION
   ============================================ */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    margin-top: 2rem;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--dark);
    transition: all var(--transition);
    border: 1px solid var(--gray-light);
}

.pagination a:hover {
    background-color: var(--light);
    border-color: var(--primary-light);
    color: var(--primary);
}

.pagination .active {
    background-color: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.pagination .disabled {
    opacity: 0.4;
    pointer-events: none;
}


/* ============================================
   BREADCRUMB
   ============================================ */
.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--gray);
    padding: 1rem 0;
}

.breadcrumb a {
    color: var(--primary-light);
    transition: color var(--transition);
}

.breadcrumb a:hover {
    color: var(--primary);
}

.breadcrumb .separator {
    color: var(--gray-light);
}

.breadcrumb .current {
    color: var(--dark);
    font-weight: 600;
}


/* ============================================
   TABLE (for admin/bookings)
   ============================================ */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th,
.table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--gray-light);
    font-size: 0.9rem;
}

.table th {
    font-weight: 600;
    color: var(--dark);
    background-color: var(--light);
    white-space: nowrap;
}

.table tbody tr:hover {
    background-color: var(--light);
}

.table .status {
    display: inline-flex;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
}

.table .status-confirmed {
    background-color: rgba(39, 174, 96, 0.15);
    color: #1e8449;
}

.table .status-pending {
    background-color: rgba(212, 160, 39, 0.15);
    color: var(--accent-hover);
}

.table .status-cancelled {
    background-color: rgba(231, 76, 60, 0.15);
    color: #c0392b;
}

/* Picture element — behave as block and inherit inner img dimensions */
picture {
    display: block;
    line-height: 0;
}

picture > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Hero LCP da home + detalhe */
.hero-img,
.detail-hero-img {
    aspect-ratio: 16 / 9;
}

/* Card cover image */
.card-image-img {
    aspect-ratio: 16 / 10;
}
