.rn-mobile-search-type { display:none; }
/* Newly shared wrappers are transparent to the existing desktop forms. */
@media (min-width:768px) {
    html body .rn-mobile-only-wrapper { display:none !important; }
    html body .rn-mobile-only-form > .desktop-filter-trigger { display:none !important; }
    html body .rn-mobile-only-wrapper > .city-search-disclosure > summary,
    html body .rn-mobile-only-wrapper > .city-filters-disclosure,
    html body .rn-mobile-only-wrapper > .city-compact-submit,
    html body .rn-mobile-only-wrapper .desktop-filter-trigger { display:none !important; }
}
@media (max-width:767px) {
    html body .rn-mobile-row-bar {
        display:grid !important; grid-template-columns:max-content minmax(0,1fr) max-content 44px;
        grid-template-rows:44px; height:44px !important; min-height:44px !important;
        align-items:center; gap:4px; position:relative; width:100%; min-width:0;
        padding:0 !important; margin:0; border:0 !important; border-radius:0; background:transparent; box-shadow:none !important;
    }
    html body .rn-mobile-row-bar > .city-search-disclosure { display:none !important; }
    html body .rn-mobile-row-bar .city-search-expanded,
    html body .rn-mobile-row-bar form.rn-mobile-row-form { display:contents !important; }
    html body .rn-mobile-row-bar > .city-search-disclosure > summary,
    html body .rn-mobile-row-form > .rn-search-intent,
    html body .rn-mobile-row-form > .rn-button,
    html body .rn-mobile-row-form > .desktop-filter-trigger { display:none !important; }
    html body .rn-mobile-row-bar .city-search-expanded { position:static; padding:0; margin:0; border:0; box-shadow:none; background:none; }
    html body .rn-mobile-row-bar .rn-mobile-search-type { display:block; grid-column:1; grid-row:1; position:relative; min-width:0; margin:0; }
    html body .rn-mobile-search-type > summary {
        box-sizing:border-box; display:flex; align-items:center; justify-content:center; gap:4px;
        height:44px; min-height:44px; padding:0 7px; border:1px solid #B9D6F8;
        border-radius:10px; background:#F0F6FF; color:#1767B7; font-size:13px;
        font-weight:500; line-height:1.2; white-space:nowrap; cursor:pointer; list-style:none;
    }
    .rn-mobile-search-type > summary::-webkit-details-marker { display:none; }
    html body .rn-mobile-search-type > summary > svg { width:12px; height:12px; flex:none; fill:none; stroke:currentColor; stroke-width:1.6; }
    html body .rn-mobile-search-type-menu {
        position:absolute; z-index:150; top:calc(100% + 6px); left:0; width:188px;
        padding:5px; border:1px solid #DDE6F0; border-radius:12px; background:white;
        box-shadow:0 8px 24px #183A6920;
    }
    html body .rn-mobile-search-type-menu > button {
        display:flex; align-items:center; gap:8px; width:100%; min-height:44px; padding:8px;
        margin:0; border:0; border-radius:8px; background:white; color:#304961;
        font:500 13px var(--font-sans); text-align:left; white-space:nowrap;
    }
    html body .rn-mobile-search-type-menu > button[aria-checked="true"] { background:#EDF5FF; color:#1767B7; }
    html body .rn-mobile-search-type-menu svg { width:18px; height:18px; flex:none; }
    html body .rn-mobile-search-type-menu .rn-mobile-search-type-check { margin-left:auto; width:16px; height:16px; fill:none; stroke:#1767B7; stroke-width:1.8; visibility:hidden; }
    html body .rn-mobile-search-type-menu [aria-checked="true"] .rn-mobile-search-type-check { visibility:visible; }
    html body .rn-mobile-row-form > :is(.rn-location-label,.rn-location,.rn-location-autocomplete) {
        display:block !important; grid-column:2 !important; grid-row:1; width:100%; min-width:0 !important; margin:0 !important; padding:0;
    }
    html body .rn-mobile-row-bar .rn-location-control {
        display:flex; align-items:center; box-sizing:border-box; width:100%; min-width:0;
        height:44px !important; min-height:44px !important; padding:0 5px !important; gap:4px;
        border:1px solid #DDE5EE !important; border-radius:10px !important; background:white; box-shadow:none;
    }
    html body .rn-mobile-row-bar .rn-location-control > svg {
        display:block !important; width:12px !important; min-width:12px; height:14px !important;
        flex:none; color:#223B59 !important; fill:currentColor;
    }
    html body .rn-mobile-row-bar .rn-location-control input {
        box-sizing:border-box; display:block; width:100%; min-width:0; height:100%; margin:0;
        padding:0 !important; border:0; background:transparent; color:#253C57;
        font-family:inherit; font-size:14px !important; font-weight:500 !important; line-height:1.4;
        overflow:hidden; white-space:nowrap; text-overflow:ellipsis;
    }
    html body .rn-mobile-row-bar > .city-filters-disclosure { display:block; grid-column:3; grid-row:1; height:44px !important; min-height:44px !important; margin:0; padding:0; }
    html body .rn-mobile-row-bar > .city-filters-disclosure > summary {
        box-sizing:border-box; display:flex; align-items:center; justify-content:center; gap:4px;
        height:44px; min-height:44px; padding:0 7px; margin:0; border:1px solid #DDE5EE;
        border-radius:10px; background:#fff; color:#304961; font-size:12px; font-weight:500; white-space:nowrap;
    }
    html body .rn-mobile-row-bar > .city-filters-disclosure > summary svg { width:14px; height:14px; flex:none; }
    html body .rn-mobile-row-bar > .city-filters-disclosure > summary .filter-applied-count { display:none; }
    html body .rn-mobile-row-bar > .city-compact-submit {
        box-sizing:border-box; display:flex; align-items:center; justify-content:center;
        grid-column:4; grid-row:1; width:44px; height:44px; min-height:44px; min-width:44px;
        margin:0; padding:0; border:0; border-radius:10px; background:#0D6EFD; color:white;
    }
    html body .rn-mobile-row-bar > .city-compact-submit svg { width:20px; height:20px; fill:none; stroke:currentColor; stroke-width:1.8; }
    html body .rn-mobile-row-bar .mapbox-results { z-index:160; }
    html body .rn-mobile-row-bar :is(summary,button,input):focus-visible { outline:2px solid #3887E8; outline-offset:2px; }
}
@media (max-width:399px) {
    html body .rn-mobile-row-bar > .city-filters-disclosure > summary > svg { display:none; }
    html body .rn-mobile-search-type > summary { padding-inline:5px; }
    html body .rn-mobile-row-bar .rn-location-control { padding-inline:4px !important; }
}
@media (max-width:359px) {
    html body .rn-mobile-row-bar { gap:3px; }
    html body .rn-mobile-search-type > summary { padding-inline:5px; gap:3px; }
    html body .rn-mobile-row-bar > .city-filters-disclosure > summary { padding-inline:6px; }
    html body .rn-mobile-row-bar > .city-filters-disclosure > summary > svg { display:none; }
    html body .rn-mobile-row-bar .rn-location-control { padding-inline:5px !important; }
    html body .rn-mobile-row-bar .rn-location-control > svg { display:none !important; }
}
