/* ══════════════════════════════════════════════════════════
   MOBILE SEARCH BAR  (≤ 768px only — desktop untouched)
   Airbnb-style: compact pill trigger → full-screen step modal
   ══════════════════════════════════════════════════════════ */

/* ── Hide desktop search elements on mobile ── */
@media (max-width: 768px) {
    .search-section,
    .search-mini {
        display: none !important;
    }
}

/* ── Mobile Sticky Search Bar (hidden on desktop) ── */
.mob-sticky-wrap {
    display: none;
}

@media (max-width: 768px) {
    .mob-sticky-wrap {
        display: block;
        padding: 14px 16px 18px;
        background: #fff;
        position: relative;
        z-index: 1040;
        transition: padding 0.3s ease;
        border-bottom: 1px solid #EBEBEB;
    }

    /* When scrolled */
    .mob-sticky-wrap.is-sticky {
        position: fixed;
        top: 60px; /* Adjust based on your header height */
        left: 0;
        right: 0;
        padding: 10px 21px; /* Compresses inwards by ~5px on each side */
        box-shadow: 0 4px 12px rgba(0,0,0,0.08);
        border-bottom: 1px solid #EBEBEB;
        animation: slideDownSticky 0.3s ease forwards;
        z-index: 1040;
    }

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

    .mob-sticky-bar {
        display: flex;
        align-items: center;
        background: #fff;
        border: 1.5px solid #DDDDDD;
        border-radius: 50px;
        height: 52px;
        padding: 0 8px 0 20px;
        box-shadow: 0 2px 12px rgba(0,0,0,0.08);
        cursor: pointer;
        gap: 12px;
        transition: box-shadow 0.2s ease, border-color 0.2s ease;
        -webkit-tap-highlight-color: transparent;
        user-select: none;
        justify-content: space-between;
    }

    .mob-sticky-bar:active {
        box-shadow: 0 4px 16px rgba(0,0,0,0.13);
        border-color: #FF385C;
    }

    .mob-sticky-icon {
        color: #222;
        font-size: 0.95rem;
        display: flex;
        align-items: center;
        flex-shrink: 0;
    }

    .mob-sticky-labels {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: start;
        gap: 1px;
        min-width: 0;
        overflow: hidden;
        white-space: nowrap;
    }

    .mob-sticky-labels strong,
    .mob-sticky-labels span {
        font-size: 12px;
        color: #222;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .mob-sticky-labels strong {
        font-weight: 700;
    }

    .mob-sticky-labels span:last-child {
        color: #717171; /* Any activity color */
    }

    .mob-sticky-sep {
        color: #DDDDDD !important;
        font-weight: 400 !important;
    }

    .mob-sticky-btn {
        width: 38px;
        height: 38px;
        border-radius: 50%;
        background: #FF385C; /* Airbnb pink */
        border: none;
        color: #fff;
        font-size: 0.85rem;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        box-shadow: 0 2px 8px rgba(255,56,92,0.3);
        cursor: pointer;
        transition: transform 0.2s ease;
    }

    .mob-sticky-btn:active {
        transform: scale(0.9);
    }
}

/* ══════════════════════════════════════════════════════════
   MOBILE SEARCH MODAL (full-screen overlay)
   ══════════════════════════════════════════════════════════ */
.mob-search-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 20000;
    background: #fff;
    flex-direction: column;
    overflow: hidden;
}

.mob-search-modal.msm-open {
    display: flex;
    animation: msmFadeIn 0.22s ease;
}

@keyframes msmFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* ── Modal header bar ── */
.msm-header {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid #EBEBEB;
    gap: 10px;
    flex-shrink: 0;
    background: #fff;
    position: relative;
    z-index: 2;
}

.msm-close-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1.5px solid #DDDDDD;
    background: #fff;
    color: #222;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.15s;
    -webkit-tap-highlight-color: transparent;
}

.msm-close-btn:active {
    background: #F7F7F7;
}

/* ── Step progress tabs ── */
.msm-step-tabs {
    display: flex;
    align-items: center;
    flex: 1;
    background: #F7F7F7;
    border-radius: 50px;
    padding: 4px;
    height: 44px;
    gap: 2px;
}

.msm-tab {
    flex: 1;
    height: 100%;
    border: none;
    background: transparent;
    border-radius: 50px;
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    color: #717171;
    cursor: pointer;
    transition: all 0.22s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-tap-highlight-color: transparent;
    padding: 0 4px;
}

.msm-tab.msm-tab-active {
    background: #fff;
    color: #222;
    box-shadow: 0 1px 6px rgba(0,0,0,0.10);
}

.msm-tab.msm-tab-done {
    color: #FF385C;
}

/* ── Modal body (scrollable) ── */
.msm-body {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    position: relative;
    display: flex;
    flex-direction: column;
}

/* ── Step panels ── */
.msm-step {
    display: none;
    flex-direction: column;
    flex: 1;
    animation: msmStepIn 0.22s ease;
}

.msm-step.msm-step-active {
    display: flex;
}

@keyframes msmStepIn {
    from { opacity: 0; transform: translateX(16px); }
    to   { opacity: 1; transform: translateX(0); }
}

/* ── Step header ── */
.msm-step-header {
    padding: 22px 20px 14px;
}

.msm-step-title {
    font-size: 1.55rem;
    font-weight: 800;
    color: #222;
    margin-bottom: 14px;
    letter-spacing: -0.4px;
    line-height: 1.15;
}

/* ── Where search input ── */
.msm-where-input-wrap {
    display: flex;
    align-items: center;
    background: #F7F7F7;
    border: 1.5px solid #EBEBEB;
    border-radius: 14px;
    padding: 0 16px;
    height: 52px;
    gap: 12px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.msm-where-input-wrap:focus-within {
    border-color: #FF385C;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(255,56,92,0.08);
}

.msm-where-input-wrap i {
    color: #AAAAAA;
    font-size: 0.95rem;
    flex-shrink: 0;
}

.msm-where-input {
    flex: 1;
    border: none;
    background: transparent;
    font-family: 'Inter', sans-serif;
    font-size: 0.93rem;
    color: #222;
    outline: none;
}

.msm-where-input::placeholder {
    color: #BDBDBD;
}

/* ── Clear button inside input ── */
.msm-input-clear {
    background: none;
    border: none;
    color: #AAAAAA;
    font-size: 0.85rem;
    cursor: pointer;
    flex-shrink: 0;
    padding: 4px;
    display: none;
    -webkit-tap-highlight-color: transparent;
}

.msm-input-clear.msm-visible {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ── Section label ── */
.msm-section-label {
    font-size: 0.68rem;
    font-weight: 800;
    color: #717171;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 14px 20px 8px;
}

/* ── Destination suggestion list ── */
.msm-dest-list {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0 12px 24px;
}

.msm-dest-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 13px 10px;
    border-radius: 14px;
    cursor: pointer;
    transition: background 0.15s;
    -webkit-tap-highlight-color: transparent;
}

.msm-dest-item:active {
    background: #F7F7F7;
}

.msm-dest-item-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: #F3F3F3;
    border: 1px solid #EBEBEB;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
    overflow: hidden;
}

.msm-dest-item-icon.nearby-icon {
    background: linear-gradient(135deg, #EFF6FF, #DBEAFE);
    border-color: #BFDBFE;
}

.msm-dest-item-icon.nearby-icon i {
    color: #3B82F6;
    font-size: 1.1rem;
}

/* FA-icon variant for destination items */
.msm-dest-item-icon.fa-icon {
    background: linear-gradient(135deg, #FFF7ED, #FEF3C7);
    border-color: #FDE68A;
}

.msm-dest-item-icon.fa-icon i {
    color: #D97706;
    font-size: 1.05rem;
}

.msm-dest-item-info h6 {
    font-size: 0.9rem;
    font-weight: 600;
    color: #222;
    margin: 0 0 2px;
}

.msm-dest-item-info small {
    font-size: 0.76rem;
    color: #717171;
    display: block;
    line-height: 1.3;
}

/* ── Calendar Step ── */
.msm-cal-wrap {
    padding: 0 16px 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.msm-cal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 4px 18px;
}

.msm-cal-month-year {
    font-size: 1rem;
    font-weight: 700;
    color: #222;
    letter-spacing: -0.2px;
}

.msm-cal-nav {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1.5px solid #DDDDDD;
    background: #fff;
    color: #222;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s;
    -webkit-tap-highlight-color: transparent;
}

.msm-cal-nav:active {
    background: #F7F7F7;
    border-color: #BDBDBD;
}

.msm-cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    text-align: center;
}

.msm-cal-day-name {
    font-size: 0.65rem;
    font-weight: 700;
    color: #717171;
    text-transform: uppercase;
    padding: 8px 0;
}

.msm-cal-day {
    aspect-ratio: 1;
    width: 100%;
    max-width: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.84rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.12s;
    margin: 0 auto;
    color: #222;
    border: none;
    background: transparent;
    -webkit-tap-highlight-color: transparent;
}

.msm-cal-day:active {
    background: #F0F0F0;
    transform: scale(0.92);
}

.msm-cal-day.msm-today {
    border: 2px solid #222;
    font-weight: 700;
}

.msm-cal-day.msm-selected {
    background: #FF385C !important;
    color: #fff !important;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(255,56,92,0.30);
}

.msm-cal-day.msm-range-between {
    background: #FFE0E6 !important;
    border-radius: 0 !important;
    color: #222 !important;
}

.msm-cal-day.msm-range-start {
    background: #FF385C !important;
    color: #fff !important;
    border-radius: 50% 0 0 50% !important;
}

.msm-cal-day.msm-range-end {
    background: #FF385C !important;
    color: #fff !important;
    border-radius: 0 50% 50% 0 !important;
}

.msm-cal-day.msm-disabled {
    color: #CCCCCC;
    cursor: default;
    pointer-events: none;
}

.msm-cal-day.msm-empty {
    cursor: default;
    pointer-events: none;
}

.msm-date-hint {
    text-align: center;
    font-size: 0.82rem;
    color: #717171;
    padding: 16px 0 4px;
    font-weight: 500;
    min-height: 36px;
}

/* ── Activity Step ── */
.msm-activity-list {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0 12px 24px;
}

.msm-activity-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 13px 10px;
    border-radius: 14px;
    cursor: pointer;
    transition: background 0.15s;
    -webkit-tap-highlight-color: transparent;
    position: relative;
}

.msm-activity-item:active {
    background: #FFF0F3;
}

.msm-activity-item.msm-act-selected {
    background: #FFF0F3;
}

.msm-activity-item.msm-act-selected::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: #FF385C;
    font-size: 0.85rem;
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
}

.msm-activity-item-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: linear-gradient(135deg, #FFF0F3, #FFE0E6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
    overflow: hidden;
    border: 1px solid #FFD6DE;
}

.msm-activity-item-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.msm-activity-item-info h6 {
    font-size: 0.9rem;
    font-weight: 600;
    color: #222;
    margin: 0 0 2px;
}

.msm-activity-item-info small {
    font-size: 0.76rem;
    color: #717171;
    display: block;
    line-height: 1.3;
}

/* ── Bottom action footer ── */
.msm-footer {
    padding: 14px 20px;
    padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid #EBEBEB;
    background: #fff;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.msm-skip-btn {
    font-size: 0.85rem;
    font-weight: 600;
    color: #222;
    background: none;
    border: none;
    cursor: pointer;
    text-decoration: underline;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
    white-space: nowrap;
}

.msm-next-btn {
    flex: 1;
    height: 52px;
    border-radius: 50px;
    background: linear-gradient(135deg, #FF385C, #E31C5F);
    border: none;
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(255,56,92,0.32);
    transition: all 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.msm-next-btn:active {
    transform: scale(0.96);
    box-shadow: 0 2px 8px rgba(255,56,92,0.20);
}

/* Search step button — full width */
.msm-footer-search-only {
    justify-content: center;
}
