/* ---- Extra small (< 576px) ---- */
@media (max-width: 575.98px) {

    /* Top Header */
    .top-header {
        padding: 6px 0;
        font-size: 0.76rem;
    }

    .top-spiti-badge {
        padding: 2px 8px;
        font-size: 0.7rem;
    }

    .top-social-links a {
        width: 22px;
        height: 22px;
        font-size: 0.7rem;
    }

    /* Navbar */
    .navbar-brand {
        font-size: 1.25rem !important;
    }

    /* Hero */
    .hero {
        min-height: auto;
        padding: 45px 0 25px;
    }

    .hero-live-pill {
        font-size: 0.74rem;
        padding: 5px 12px;
    }

    .hero-title {
        font-size: 1.65rem;
        letter-spacing: -0.4px;
    }

    .hero-subtitle {
        font-size: 0.88rem;
        line-height: 1.6;
        margin-bottom: 1rem;
    }

    .hero-trust-chips span {
        font-size: 0.74rem;
        padding: 4px 10px;
    }

    /* Hero form — stack all inputs */
    .hero-form form {
        padding: 16px !important;
    }

    .hero-form .row>[class*="col-"] {
        padding: 5px 4px;
    }

    /* Package cards — full width on mobile */
    .packages-section {
        padding: 36px 0;
    }

    .package-card {
        border-radius: 14px;
    }

    .pack-img-wrapper {
        border-radius: 14px 14px 0 0;
    }

    .package-card-body {
        padding: 14px 14px 12px;
        gap: 10px;
    }

    .pack-title {
        font-size: 1.02rem;
        min-height: auto;
    }

    .pack-tag-theme,
    .pack-tag-discount {
        font-size: 0.65rem;
        padding: 3px 8px;
    }

    .pack-meta-duration,
    .pack-meta-rating {
        font-size: 0.68rem;
        padding: 2px 7px;
    }

    .amount {
        font-size: 1.05rem;
    }

    .pack-highlights-list li {
        font-size: 0.79rem;
    }

    .dest-pill {
        font-size: 0.68rem;
        padding: 2px 6px;
    }

    .pack-btn-call {
        width: 34px;
        height: 34px;
        font-size: 0.8rem;
    }

    .pack-btn-quote {
        height: 34px;
        padding: 6px 10px;
        font-size: 0.78rem;
    }

    /* Fix footer card and itinerary button overflow on mobile */
    .pack-footer-card {
        flex-wrap: nowrap;
        align-items: center;
    }

    .pack-btns-grid {
        max-width: 55%;
        flex-shrink: 0;
    }

    .btn-pack-itinerary {
        font-size: 0.75rem;
        padding: 7px 8px;
    }

    /* CTA Section Mobile */
    .cta-overlay {
        padding: 55px 0 50px;
    }

    .cta-title {
        font-size: 1.45rem;
    }

    .cta-desc {
        font-size: 0.88rem;
        margin-bottom: 20px;
    }

    .cta-features {
        gap: 8px;
        margin-bottom: 24px;
    }

    .cta-features span {
        font-size: 0.76rem;
        padding: 4px 10px;
    }

    .cta-buttons {
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }

    .cta-btn-primary,
    .cta-btn-secondary,
    .cta-btn-whatsapp {
        width: 100%;
        font-size: 0.9rem;
        padding: 11px 16px;
    }

    /* About Section Mobile */
    .about-section {
        padding: 50px 0;
    }

    .about-main-title {
        font-size: 1.45rem;
    }

    .about-intro {
        font-size: 0.92rem;
    }

    .about-subtext {
        font-size: 0.88rem;
    }

    .about-stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .stat-card {
        padding: 10px 12px;
        gap: 8px;
    }

    .stat-icon {
        width: 36px;
        height: 36px;
        font-size: 0.95rem;
    }

    .stat-info h4 {
        font-size: 0.92rem;
    }

    .stat-info span {
        font-size: 0.7rem;
    }

    .about-actions {
        flex-direction: column;
        width: 100%;
    }

    .about-primary-btn,
    .about-secondary-btn {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    .about-image-card {
        margin-top: 20px;
    }

    .about-floating-badge {
        padding: 8px 12px;
        gap: 8px;
    }

    .badge-icon {
        width: 32px;
        height: 32px;
        font-size: 0.85rem;
    }

    .about-floating-badge h5 {
        font-size: 0.82rem;
    }

    .about-floating-badge span {
        font-size: 0.65rem;
    }

    /* Why Choose Us Mobile */
    .why-us-section {
        padding: 50px 0;
    }

    .why-feature-card {
        padding: 20px 18px;
    }

    /* Testimonials Mobile */
    .testimonials-section {
        padding: 50px 0;
    }

    .testimonial-card {
        padding: 20px 18px;
    }
}

@media (max-width: 992px) {
    .pack-title {
        font-size: 1.05rem;
    }

    .cta-overlay {
        padding: 65px 0 60px;
    }

    .about-section {
        padding: 65px 0;
    }

    .why-us-section {
        padding: 65px 0;
    }

    .testimonials-section {
        padding: 65px 0;
    }
}

/* ---- Small (576px – 767px) ---- */
@media (min-width: 576px) and (max-width: 767.98px) {

    .hero {
        padding: 80px 0 36px;
    }

    /* 2 columns for package cards */
    .packages-section .col-md-4 {
        flex: 0 0 50%;
        max-width: 50%;
    }

    .hero-form .row>[class*="col-"] {
        flex: 0 0 50%;
        max-width: 50%;
        padding: 5px 6px;
    }

    .hero-form .col-md-2:last-child {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* ---- Medium (768px – 991px) ---- */
@media (min-width: 768px) and (max-width: 991.98px) {

    .hero {
        padding: 60px 0 40px;
    }

    /* Form: 2+2 layout */
    .hero-form .col-md-2 {
        flex: 0 0 33.3333%;
        max-width: 33.3333%;
    }

    .hero-form .col-md-2:last-child {
        flex: 0 0 100%;
        max-width: 100%;
        margin-top: 4px;
    }

    /* 2-col package grid */
    .packages-section .col-md-4 {
        flex: 0 0 50%;
        max-width: 50%;
    }

}

/* ---- Large (992px – 1199px) ---- */
@media (min-width: 992px) and (max-width: 1199.98px) {

    /* 3-col package grid (Bootstrap default col-md-4 handles this) */

    /* Hero form: all 6 items in one row */
    .hero-form .col-md-2 {
        flex: 0 0 16.6667%;
        max-width: 16.6667%;
    }
}

/* ---- XL (≥ 1200px) ---- */
@media (min-width: 1200px) {

    .hero-form .col-md-2 {
        flex: 0 0 16.6667%;
        max-width: 16.6667%;
    }
}

/* =============================================
   GENERAL RESPONSIVE HELPERS (all widths)
   ============================================= */

/* Ensure the hero form row wraps nicely */
.hero-form .row {
    flex-wrap: wrap;
}

/* Cards always fill their column height */
.packages-section .row {
    align-items: stretch;
}

.packages-section .col-md-4 {
    display: flex;
}

.packages-section .col-md-4 .package-card {
    width: 100%;
}

/* Prevent horizontal scroll from form on narrow screens */
.hero-form {
    overflow: hidden;
}

/* Package tags wrap on narrow images */
.package-tags {
    flex-wrap: wrap;
}

/*===== FOOTER RESPONSIVE =====*/
@media (max-width: 992px) {
    .footer-top {
        grid-template-columns: repeat(2, 1fr);
        gap: 36px;
    }

    .footer-trust-bar {
        flex-direction: column;
        text-align: center;
        gap: 14px;
    }

    .payment-icons {
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .call {
        width: 35px;
        height: 35px;
        bottom: 8rem;
    }

    .whatsapp {
        width: 35px;
        height: 35px;
    }
}

@media (max-width: 768px) {
    .footer {
        padding: 45px 0 20px;
    }

    .footer-contact-strip {
        padding: 16px;
        margin-bottom: 35px;
    }

    .strip-item {
        gap: 10px;
    }

    .strip-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .footer-top {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-column {
        border-bottom: 1px solid rgba(255, 255, 255, .06);
        padding-bottom: 25px;
    }

    .footer-column:last-child {
        border: none;
        padding-bottom: 0;
    }

    .social-links {
        justify-content: flex-start;
    }
}

@media (max-width: 480px) {
    .footer-heading {
        font-size: 1rem;
    }

    .footer-desc {
        font-size: 0.86rem;
    }

    .footer-links-list li a {
        font-size: 0.85rem;
    }

    .contact-text {
        font-size: 0.84rem;
    }

    .footer-bottom {
        font-size: 0.78rem;
    }

    .payment-img {
        height: 28px;
    }
}