/* ==========================================================================
   Mobile Page Overrides — All public-facing pages
   Breakpoints: 768px (phones), 576px (small phones), 374px (tiny phones)
   ========================================================================== */

/* --------------------------------------------------------------------------
   GLOBAL: Heroes — reduce padding & font sizes on all page heroes
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
    .destinations-hero,
    .contact-hero,
    .legal-hero,
    .deals-hero,
    .cruise-hero,
    .trip-hero,
    .budget-hero,
    .results-hero,
    [class*="-hero"] {
        padding: 2.5rem 0 2rem;
    }

    .destinations-hero h1,
    .contact-hero h1,
    .legal-hero h1,
    .deals-hero h1,
    .cruise-hero h1,
    .budget-hero h1,
    [class*="-hero"] h1 {
        font-size: 1.6rem;
        margin-bottom: 0.5rem;
    }

    .destinations-hero p,
    .contact-hero p,
    .legal-hero p,
    .deals-hero p,
    .cruise-hero p,
    .budget-hero p,
    [class*="-hero"] p {
        font-size: 0.95rem;
    }

    .legal-hero .hero-icon {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }
}

/* --------------------------------------------------------------------------
   DESTINATIONS GALLERY
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
    .destinations-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1.5rem 0;
    }

    .destination-image {
        height: 160px;
        font-size: 1.4rem;
        padding: 1.5rem;
    }

    .destination-content {
        padding: 1rem;
    }

    .destination-name {
        font-size: 1.15rem;
    }

    .destination-description {
        font-size: 0.85rem;
        margin-bottom: 0.75rem;
    }

    .destination-scores {
        gap: 0.5rem;
        padding-top: 0.75rem;
    }

    .score-label {
        font-size: 0.65rem;
    }

    .score-value {
        font-size: 0.95rem;
    }

    /* Filters bar */
    .filters-bar {
        padding: 0.75rem 0;
    }

    .filter-group {
        flex-direction: column;
        gap: 0.75rem;
        align-items: stretch;
    }

    .filter-group > div {
        width: 100%;
        display: flex;
        flex-direction: column;
    }

    .filter-group label {
        margin-right: 0;
        margin-bottom: 0.25rem;
        font-size: 0.85rem;
    }

    .search-box {
        min-width: 0;
        width: 100%;
    }

    .search-box input,
    .filter-group select {
        width: 100%;
        padding: 0.75rem 1rem;
        font-size: 1rem;
        height: 48px;
        border-radius: 8px;
    }

    /* Compare bar mobile */
    .compare-bar .container {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
    }

    .compare-check {
        width: 32px;
        height: 32px;
    }
}

/* --------------------------------------------------------------------------
   CONTACT AGENT — lead gen form (critical page)
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
    .contact-hero {
        margin-bottom: 1.5rem;
    }

    .contact-card {
        padding: 1.25rem;
        border-radius: 12px;
    }

    .contact-card h2 {
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }

    .benefits-list {
        padding: 1.25rem;
        margin-bottom: 1.5rem;
    }

    .benefit-item {
        gap: 0.75rem;
        margin-bottom: 1rem;
    }

    .benefit-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        border-radius: 10px;
    }

    .benefit-content h4 {
        font-size: 0.95rem;
    }

    .benefit-content p {
        font-size: 0.85rem;
    }

    .btn-submit {
        width: 100%;
        padding: 0.85rem;
        font-size: 1rem;
    }
}

/* --------------------------------------------------------------------------
   FAQ PAGE
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
    .faq-section {
        padding: 1.5rem 0;
    }

    .faq-category {
        margin-bottom: 1.5rem;
    }

    .faq-category h2 {
        font-size: 1.2rem;
        margin-bottom: 0.75rem;
    }

    .faq-category .accordion-button {
        font-size: 0.95rem;
        padding: 0.85rem 1rem;
    }

    .faq-category .accordion-body {
        font-size: 0.9rem;
        padding: 0.85rem 1rem;
    }

    .faq-cta {
        padding: 2rem 1.25rem;
        border-radius: 12px;
        margin: 1.5rem 0 2rem;
    }

    .faq-cta h2 {
        font-size: 1.35rem;
    }

    .faq-cta p {
        font-size: 0.95rem;
        margin-bottom: 1.25rem;
    }
}

/* --------------------------------------------------------------------------
   DEALS PAGE
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
    .v2-title {
        font-size: 1.5rem;
    }

    .v2-subtitle {
        font-size: 0.95rem;
    }
}

/* --------------------------------------------------------------------------
   RESULTS / TRIP PLAN PAGE
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
    .trip-hero {
        padding: 2rem 0 1.5rem;
    }

    .executive-summary {
        margin: -1.5rem 0.5rem 1.5rem;
        padding: 1.25rem;
        border-radius: 12px;
    }

    .tab-content {
        padding: 0;
    }

    .day-card {
        padding: 1rem;
    }

    .activity-item {
        padding: 0.75rem;
    }
}

/* --------------------------------------------------------------------------
   BUDGET PLANNER
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
    .budget-controls {
        padding: 1rem;
    }

    .budget-card {
        padding: 1.25rem;
        border-radius: 12px;
    }
}

/* --------------------------------------------------------------------------
   CRUISE SEARCH / RESULTS
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
    .cruise-card {
        padding: 1rem;
    }

    .cruise-filters {
        padding: 0.75rem;
    }
}

/* --------------------------------------------------------------------------
   GLOBAL: Cards, sections, spacing tightening
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
    /* Tighten all card padding */
    .card {
        border-radius: 12px;
    }

    .card-body {
        padding: 1rem;
    }

    /* Section spacing */
    section {
        scroll-margin-top: 60px;
    }

    /* Form improvements */
    .form-label {
        font-size: 0.9rem;
        margin-bottom: 0.35rem;
    }

    /* Nav tabs — horizontal scroll on mobile */
    .nav-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        border-bottom: 2px solid #dee2e6;
    }

    .nav-tabs::-webkit-scrollbar {
        display: none;
    }

    .nav-tabs .nav-link {
        white-space: nowrap;
        font-size: 0.85rem;
        padding: 0.6rem 1rem;
    }

    /* Tables default responsive wrap */
    .table-responsive {
        border-radius: 12px;
    }

    /* Modals */
    .modal-dialog {
        margin: 0.5rem;
    }

    .modal-content {
        border-radius: 16px;
    }

    .modal-header {
        padding: 1rem;
    }

    .modal-body {
        padding: 1rem;
    }

    .modal-footer {
        padding: 0.75rem 1rem;
    }
}

/* --------------------------------------------------------------------------
   SMALL PHONES — extra compacting
   -------------------------------------------------------------------------- */
@media (max-width: 576px) {
    .destinations-grid {
        gap: 0.75rem;
    }

    .destination-image {
        height: 140px;
        font-size: 1.2rem;
    }

    .destination-content {
        padding: 0.85rem;
    }

    /* Stack benefit items tighter */
    .benefit-item {
        gap: 0.6rem;
    }

    .benefit-icon {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }
}

/* --------------------------------------------------------------------------
   TINY PHONES (iPhone SE, etc)
   -------------------------------------------------------------------------- */
@media (max-width: 374px) {
    [class*="-hero"] h1 {
        font-size: 1.35rem;
    }

    [class*="-hero"] p {
        font-size: 0.85rem;
    }

    .destination-image {
        height: 120px;
        font-size: 1.1rem;
    }

    .contact-card {
        padding: 1rem;
    }

    .faq-category .accordion-button {
        font-size: 0.85rem;
    }
}
