@charset "UTF-8";

/* ---- ≤ 1420px: hide the header CTA (kept in the burger menu) ------------ */
@media (max-width: 1420px) {
    .header-cta {
        display: none;
    }
}

/* ---- ≤ 1320px: burger navigation ---------------------------------------- */
@media (max-width: 1320px) {
    .menu-toggle {
        display: flex;
    }

    .main-nav {
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        display: none;
        flex-direction: column;
        align-items: stretch;
        background: var(--ivory);
        border-bottom: 1px solid var(--line);
        box-shadow: var(--shadow-lg);
        padding: 1rem clamp(1rem, 4vw, 2rem) 1.5rem;
        max-height: calc(100dvh - var(--header-height));
        overflow-y: auto;
    }

    body.menu-open .main-nav {
        display: flex;
        animation: menuIn 240ms ease both;
    }

    @keyframes menuIn {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .nav-list {
        flex-direction: column;
        align-items: stretch;
        gap: 0.2rem;
    }

    .nav-link {
        display: block;
        padding: 0.7rem 0.9rem;
        border-radius: var(--radius-sm);
        font-size: 1.02rem;
    }

    .nav-mobile-extra {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        margin-top: 1.3rem;
        padding-top: 1.3rem;
        border-top: 1px solid var(--line);
    }

    .lang-switcher-mobile {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 2px;
        width: 100%;
    }

    .lang-switcher-mobile .lang-link {
        text-align: center;
        padding: 0.6rem 0.4rem;
        font-size: 0.85rem;
    }
}

/* ---- ≤ 1024px: layout tightening ---------------------------------------- */
@media (max-width: 1024px) {
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .steps-grid,
    .steps-grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .destination-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .filterbar {
        grid-template-columns: 1fr 1fr;
    }

    .filter-field-search {
        grid-column: 1 / -1;
    }

    .filter-actions {
        grid-column: 1 / -1;
    }

    .detail-grid {
        grid-template-columns: 1fr;
    }

    .detail-aside {
        position: static;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    .footer-about {
        max-width: 60ch;
    }

    .tour-cta-bar:not([hidden]) {
        display: flex;
    }

    body.cta-bar-visible .whatsapp-float {
        bottom: 5.6rem;
        bottom: calc(5.6rem + env(safe-area-inset-bottom, 0px));
    }
}

/* ---- ≤ 720px: single-column main layouts -------------------------------- */
@media (max-width: 720px) {
    .grid-3,
    .grid-4,
    .steps-grid,
    .steps-grid-3,
    .destination-grid {
        grid-template-columns: 1fr;
    }

    .destination-card {
        aspect-ratio: 16 / 11;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .form-field-half {
        grid-column: 1 / -1;
    }

    .included-grid {
        grid-template-columns: 1fr;
    }

    .gallery-strip {
        grid-template-columns: repeat(2, 1fr);
    }

    .company-row {
        grid-template-columns: 1fr;
        gap: 0.15rem;
        padding: 0.8rem 0;
    }

    .filterbar {
        gap: 0.7rem;
        padding: 1rem 1rem 1.1rem;
    }

    .hero {
        min-height: 0;
        padding-top: calc(var(--header-height) + 1.6rem);
        padding-bottom: 2.2rem;
    }

    .hero-media img {
        object-position: 68% 50%;
    }

    .page-hero-compact {
        min-height: 0;
        padding-top: calc(var(--header-height) + 1.6rem);
        padding-bottom: 1.8rem;
    }

    .page-hero-tour {
        min-height: 0;
        padding-top: calc(var(--header-height) + 1.8rem);
        padding-bottom: 2rem;
    }

    .hero-actions .btn {
        flex: 1 1 auto;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1.4rem;
    }

    .footer-brand,
    .footer-contact {
        grid-column: 1 / -1;
    }

    .footer-links a {
        display: inline-block;
        padding-block: 0.3rem;
    }

    .footer-bottom {
        flex-direction: column;
    }

    .whatsapp-float-label {
        display: none;
    }

    .whatsapp-float {
        padding: 0.85rem;
        border-radius: 50%;
    }

    .cta-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .cta-actions {
        width: 100%;
    }

    .cta-actions .btn {
        flex: 1 1 auto;
    }
}

/* ---- ≤ 560px: final adjustments ----------------------------------------- */
@media (max-width: 560px) {
    :root {
        --header-height: 66px;
    }

    .brand-mark {
        width: 38px;
        height: 38px;
    }

    .brand-name {
        font-size: 1.25rem;
    }

    .brand-tagline {
        display: none;
    }

    .header-actions > .lang-switcher {
        display: none;
    }

    .hero-eyebrow {
        font-size: 0.78rem;
        padding: 0.28rem 0.75rem;
    }

    .hero-title {
        font-size: 1.95rem;
    }

    .hero-subtitle {
        font-size: 0.98rem;
        margin-bottom: 1.2rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 0.6rem;
        margin-bottom: 1.2rem;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .hero-actions .btn-lg {
        padding: 0.78rem 1.4rem;
        font-size: 0.96rem;
    }

    .chip {
        font-size: 0.8rem;
        padding: 0.3rem 0.8rem;
    }

    .form-actions .btn {
        width: 100%;
    }

    .filter-actions .btn {
        width: 100%;
    }

    .flex-actions .btn-block-mobile,
    .tour-card-footer {
        flex-wrap: wrap;
    }

    .footer-bottom {
        gap: 0.4rem;
    }
}
