/* ==========================================================================
   WANDERCREST — Responsive
   Breakpoints: 1280 · 1024 · 768 · 640 · 480 · 360
   No horizontal overflow anywhere.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Large laptop / small desktop  ≤1280px
   -------------------------------------------------------------------------- */
@media (max-width: 1280px) {
    .cat-grid {
        grid-template-columns: repeat(5, minmax(170px, 1fr));
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        padding-bottom: 0.75rem;
        scrollbar-width: thin;
    }

    .tour-row {
        grid-template-columns: 260px 1fr;
    }

    .tour-row-price {
        grid-column: 2;
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        gap: 1.4rem;
    }
}

/* --------------------------------------------------------------------------
   Tablet landscape / small laptop  ≤1024px
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
    .main-nav {
        display: none;
    }

    .nav-toggle {
        display: inline-flex;
    }

    .header-cta {
        display: none;
    }

    .trip-finder-panel {
        grid-template-columns: 1fr 1fr;
    }

    .trip-field {
        border-right: 1px solid var(--color-border);
        border-bottom: 1px solid var(--color-border);
    }

    .trip-field:nth-child(2n) {
        border-right: none;
    }

    .trip-finder-btn {
        grid-column: 1 / -1;
        justify-content: center;
        padding-block: 1rem;
        margin: 1rem;
    }

    .why-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .why-intro {
        position: static;
    }

    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
        row-gap: 2.6rem;
    }

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

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

    .newsletter-inner {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

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

    .services-list {
        grid-template-columns: 1fr;
    }

    .t-slide {
        grid-template-columns: 1fr;
    }

    .t-quote-mark {
        font-size: 3.4rem;
    }

    .trip-finder {
        margin-top: 0;
        padding-block: 2.5rem;
    }

    .hero-inner {
        padding-bottom: 3.5rem;
    }
}

/* --------------------------------------------------------------------------
   Tablet portrait  ≤768px
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
    .hero {
        min-height: 92svh;
    }

    .hero-title {
        font-size: clamp(2.3rem, 9vw, 3.2rem);
    }

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

    .stat:nth-child(3) {
        border-left: none;
    }

    .stat {
        padding-block: 1.8rem;
    }

    .tour-row {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }

    .tour-row-media {
        aspect-ratio: 16 / 9;
    }

    .tour-row-price {
        grid-column: 1;
        flex-direction: row;
    }

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

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

    .section-head--row {
        flex-direction: column;
        align-items: flex-start;
    }

    .t-slide {
        padding-right: 0;
    }

    .t-quote {
        font-size: 1.25rem;
    }

    .next-steps {
        grid-template-columns: 1fr;
    }

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

    .form-field--full {
        grid-column: 1;
    }

    .lightbox-prev {
        left: 0.8rem;
    }

    .lightbox-next {
        right: 0.8rem;
    }

    .lightbox-btn {
        width: 44px;
        height: 44px;
    }

    .promo-inner {
        max-width: none;
    }

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

/* --------------------------------------------------------------------------
   Large mobile  ≤640px
   -------------------------------------------------------------------------- */
@media (max-width: 640px) {
    .dest-card {
        flex-basis: 78vw;
    }

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

    .values-grid,
    .team-grid {
        grid-template-columns: 1fr;
    }

    .cat-grid {
        grid-template-columns: repeat(4, minmax(150px, 1fr));
    }

    .filter-bar {
        padding: 1.1rem;
    }

    .filter-group {
        flex: 1 1 100%;
    }

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

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }

    .newsletter-form {
        flex-direction: column;
        align-items: stretch;
    }

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

    .breadcrumbs {
        font-size: 0.75rem;
    }

    .accordion-panel p {
        padding-right: 0;
    }

    .trip-finder-panel {
        grid-template-columns: 1fr;
    }

    .trip-field {
        border-right: none;
    }

    .trip-field:nth-child(2n) {
        border-right: none;
    }
}

/* --------------------------------------------------------------------------
   Small mobile  ≤480px
   -------------------------------------------------------------------------- */
@media (max-width: 480px) {
    .brand-word {
        font-size: 1.25rem;
    }

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

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

    .hero-trust {
        flex-wrap: wrap;
    }

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

    .stat {
        padding-inline: 0.8rem;
    }

    .stat-value {
        font-size: 2rem;
    }

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

    .gallery-item--tall {
        aspect-ratio: 4 / 3;
    }

    .page-hero {
        padding-block: 8rem 4rem;
    }

    .t-controls {
        justify-content: space-between;
        width: 100%;
    }

    .testimonials-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .tour-row-price .btn {
        width: 100%;
    }

    .tour-row-price {
        flex-direction: column;
        align-items: flex-start;
    }

    .contact-panel {
        padding: 1.5rem;
    }

    .footer-social {
        flex-wrap: wrap;
    }

    .marquee-item {
        font-size: 1rem;
    }

    .modal-card {
        padding: 1.4rem;
    }
}

/* --------------------------------------------------------------------------
   Tiny mobile  ≤360px
   -------------------------------------------------------------------------- */
@media (max-width: 360px) {
    .hero-title {
        font-size: 2.05rem;
    }

    .btn {
        padding-inline: 1.5rem;
    }

    .footer-legal {
        gap: 1rem;
    }

    .t-quote {
        font-size: 1.12rem;
    }

    .t-author-avatar {
        width: 44px;
        height: 44px;
    }
}
