/* Listing header city selectize overrides — load with selectize.default.min.css */


/* ABSOLUTE FINAL: specific narrow desktop landscape lock (must stay last) */
@media only screen and (min-width: 768px) and (max-width: 940px) and (min-height: 620px) and (max-height: 860px) and (hover: hover) and (pointer: fine) {

    html body .container.bottom-header .nav-bot-view,
    html body .container.bottom-header .nav-bot-view > div,
    html body .container.bottom-header .nav-bot-view .selectize-control,
    html body .container.bottom-header .nav-bot-view .selectize-input {
        transition: none !important;
        animation: none !important;
    }
}


/* Absolute final stability lock for desktop narrow window (prevents load/interact jumping) */
@media only screen and (max-width: 767.9px) and (orientation: portrait) and (hover: hover) and (pointer: fine) {


    html body .container.bottom-header .listing-search .form-control,
    html body .container.bottom-header .listing-city-field,
    html body .container.bottom-header .listing-city-field .form-group,
    html body .container.bottom-header .listing-city-field .selectize-control.single,
    html body .container.bottom-header .listing-city-field .selectize-control.single .selectize-input,
    html body .container.bottom-header .listing-city-field select#citySelect.w-100 {
        min-height: 37px !important;
        height: 37px !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        box-sizing: border-box !important;
    }
}


/* Native city select — matches Selectize until JS loads */
.nav-bot-view select#citySelect.w-100 {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    height: 37px;
    border: 1px solid #f1f1f1;
    border-radius: 8px;
    box-shadow: none;
    background-color: #F5F5F5;
    background-image: none;
    padding: 0 10px;
    font-weight: 700;
    font-size: 13px;
    color: #6A11CF !important;
    cursor: pointer;
    width: 100%;
    max-width: 100%;
}

/* City Selectize — same box model as native #citySelect (avoids CLS when JS enhances) */
.nav-bot-view .selectize-control.single {
    display: block;
    width: 100%;
    min-width: 0;
    margin: 0;
    vertical-align: top;
}

.nav-bot-view .selectize-control.single .selectize-input {
    box-sizing: border-box;
    display: flex !important;
    align-items: center;
    width: 100% !important;
    min-height: 37px;
    height: 37px !important;
    padding: 0 10px !important;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
}

.nav-bot-view .selectize-control.single .selectize-input > input {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0 !important;
    padding: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    line-height: inherit !important;
    font: inherit !important;
    font-weight: inherit !important;
    color: inherit !important;
}

/* Header city menu only: keep search input visible when a city is selected (do not apply globally — breaks post-ad section/location where the .item label must show). */
.nav-bot-view .selectize-input.items.has-items > input {
    display: block !important;
}

/* City header only: hide duplicate .item so placeholder shows in the input (do not apply to post-ad #multiStepForm) */
.nav-bot-view .selectize-input.items.has-items > .item {
    display: none !important;
}

/* Arrow for Selectize: replaced broken border triangle (border-color was unset) */

.selectize-dropdown-content {
    background-color: #F5F5F5;
    padding: .1rem;
    height: 40vh !important;
    z-index: 2000;
    top: 54px !important;
    border: none;
    border-radius: 5px;
    -webkit-box-shadow: 0 0 35px rgb(140 152 163 / 13%);
    box-shadow: 0 0 35px rgb(140 152 163 / 13%);
}

.selectize-dropdown {
    margin-top: 10px;
    cursor: pointer;
}

.selectize-control.single .selectize-input,
.selectize-dropdown.single {
    border-color: #e5e4e4;
    border: 1px solid #f1f1f1;
    border-radius: 8px;
    box-shadow: none;
    height: 37px;
    background: #F5F5F5;
}

.selectize-control.single .selectize-input {
    position: relative;
    /* Ensure the arrow is positioned relative to the input */
}

.selectize-input>input::placeholder {
    color: #6A11CF;
    /* Change this color to your desired placeholder color */
    font-weight: 900;
    opacity: 1;
    /* You can set this to a lower value for transparency */
}

.selectize-control.single .selectize-input:after {
    content: none !important;
    display: none !important;
}

.selectize-dropdown:before,
.selectize-dropdown.form-control:before {
    content: '';
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 10px 10px 10px;
    border-color: transparent transparent #F5F5F5 transparent;
    position: absolute;
    display: block;
    top: -10px;
    right: 20%;
}

.selectize-dropdown [data-selectable].option {
    opacity: 1;
    color: #000000;
    padding: 4px;
    font-weight: 700;
}

.selectize-dropdown-content {
    height: 40vh !important;
    max-height: 40vh !important;
}

.selectize-dropdown .active {
    background-color: transparent;
    color: #6a11cf !important;
}

/*
 * Post-ad step 1 — reference layout (flush on page background).
 * The original add-new-post.php has no extra wrappers; “outer frames” came from
 * global .description__text (removed) and from Bootstrap .form-select on the
 * Selectize wrapper duplicating the inner .selectize-input border.
 */
#multiStepForm #step1 > .row > .col-md-6,
#multiStepForm #step1 .post-ad-step1-top > .col-md-6,
#multiStepForm #step1 .post-ad-step1-link-row > .col-md-6,
#multiStepForm #step1 .post-ad-step1-bottom > .col-md-6 {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

#multiStepForm #step1 .selectize-control,
#multiStepForm #step1 .selectize-control.single {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
}

/* Post ad (step 1): section + location — layout + colours (global sheet so it wins over nav-only selectize hacks) */
#multiStepForm #step1 label[for="section"],
#multiStepForm #step1 label[for="location"],
#multiStepForm #step1 label[for="name"],
#multiStepForm #step1 label[for="telephone"] {
    display: block;
    width: 100%;
    margin-bottom: 0;
}

/* Same label→field gap as name/telephone (mobile sheet adds margin-top on all .selectize-input) */
#multiStepForm #step1 .selectize-control .selectize-input,
#multiStepForm #step1 .selectize-input {
    margin-top: 0 !important;
}

/* Reserve vertical space (any depth — after init #section / #location may be inside .selectize-control) */
#multiStepForm #step1 .mb-3:has(#section),
#multiStepForm #step1 .mb-3:has(#location) {
    min-height: calc(1.5rem + 36px);
}

#multiStepForm #step1 .mb-3:has(#section) .selectize-control,
#multiStepForm #step1 .mb-3:has(#location) .selectize-control {
    display: block !important;
    width: 100% !important;
    max-width: 100%;
}

#multiStepForm #step1 .selectize-control.single .selectize-input,
#multiStepForm #step1 .selectize-control.single .selectize-input.input-active {
    min-height: 36px;
    padding: 8px;
    font-size: 13px;
    line-height: 18px;
    box-sizing: border-box;
}

/* Same typography + box as Selectize default (13px / 8px padding) before and after init */
#multiStepForm #step1 select#section.form-select,
#multiStepForm #step1 select#location.form-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: none !important;
    color: #6A11CF;
    font-weight: 700;
    font-size: 13px;
    line-height: 18px;
    min-height: 36px;
    height: 36px;
    padding: 8px;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    border-radius: 3px;
}

/* Once wrapped, soft-clip the native <select> (CI style.css) — do NOT display:none;
   hard kill made Samsung Internet open the OS Prev/Next/Done picker instead of Selectize. */
#multiStepForm #step1 .selectize-control select#section,
#multiStepForm #step1 .selectize-control select#location {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    white-space: nowrap !important;
    border: 0 !important;
    clip-path: inset(50%) !important;
}

/* Native selects (briefly visible before Selectize mounts): night view — use .dark-mode so html OR body class matches */
.dark-mode #multiStepForm #step1 select#section.form-select,
.dark-mode #multiStepForm #step1 select#location.form-select {
    background-color: #242525 !important;
    color: #6a11cf !important;
    border-color: rgb(123, 115, 101) !important;
}

#multiStepForm #step1 .selectize-input .item,
#multiStepForm #step1 .selectize-input.has-items .item {
    color: #6A11CF !important;
    font-weight: 800 !important;
    font-size: 13px !important;
    line-height: 18px !important;
    flex-shrink: 0;
}

html:not(.dark-mode) #multiStepForm #step1 .selectize-input > input {
    color: #000000 !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    line-height: 18px !important;
}

.dark-mode #multiStepForm #step1 .selectize-input > input {
    color: #d1cbc1 !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    line-height: 18px !important;
}

/* Post-ad dark: strip Selectize default white/gradient */
.dark-mode #multiStepForm #step1 .selectize-control.single .selectize-input,
.dark-mode #multiStepForm #step1 .selectize-control.single .selectize-input.input-active,
.dark-mode #multiStepForm #step1 .selectize-control.single .selectize-input > input {
    background-color: #242525 !important;
    background-image: none !important;
    box-shadow: none !important;
    border-color: rgb(123, 115, 101) !important;
    color: #d1cbc1 !important;
}

#multiStepForm #step1 .selectize-input.dropdown-active::before {
    display: none !important;
}

/* Post-ad additional info: same Selectize dropdowns as step 1 (desktop + mobile). */
.post-ad-extra__field:has(select[data-post-extra-field]) {
    min-height: calc(1.5rem + 36px);
}

.post-ad-extra .selectize-control,
.post-ad-extra .selectize-control.single {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    display: block !important;
    width: 100% !important;
    max-width: 100%;
    position: relative;
}

.post-ad-extra .selectize-control .selectize-input,
.post-ad-extra .selectize-input {
    margin-top: 0 !important;
}

.post-ad-extra .selectize-control.single .selectize-input,
.post-ad-extra .selectize-control.single .selectize-input.input-active,
.post-ad-extra .selectize-control.single .selectize-input.dropdown-active {
    min-height: 36px;
    height: auto !important;
    padding: 8px !important;
    font-size: 13px;
    line-height: 18px;
    box-sizing: border-box;
    border-radius: 0.5rem !important;
    background-image: none !important;
    display: flex !important;
    align-items: center !important;
}

html:not(.dark-mode) .post-ad-extra .selectize-control.single .selectize-input,
html:not(.dark-mode) .post-ad-extra .selectize-control.single .selectize-input.input-active,
html:not(.dark-mode) .post-ad-extra .selectize-control.single .selectize-input.dropdown-active {
    border: 1px solid #ced4da !important;
    background-color: #F5F5F5 !important;
    background-image: none !important;
    box-shadow: none !important;
}

.post-ad-extra .selectize-control select.form-select[data-post-extra-field] {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    white-space: nowrap !important;
    border: 0 !important;
    clip-path: inset(50%) !important;
}

.post-ad-extra .selectize-input .item,
.post-ad-extra .selectize-input.has-items .item {
    display: block !important;
    width: 100%;
    color: #212529 !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    line-height: 18px !important;
}

html:not(.dark-mode) .post-ad-extra .selectize-input > input {
    color: #000000 !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    line-height: 18px !important;
}

.post-ad-extra .selectize-input.dropdown-active::before {
    display: none !important;
}

.post-ad-extra .selectize-dropdown,
.post-ad-extra .selectize-dropdown.single {
    position: absolute !important;
    left: 0 !important;
    top: calc(100% + 4px) !important;
    width: 100% !important;
    margin-top: 0 !important;
    height: auto !important;
    border: 1px solid #ced4da !important;
    border-radius: 0.5rem !important;
    box-shadow: 0 0.35rem 0.85rem rgba(0, 0, 0, 0.12) !important;
    z-index: 1060 !important;
    overflow: hidden !important;
    background-color: #fff !important;
}

.post-ad-extra .selectize-dropdown:before,
.post-ad-extra .selectize-dropdown.form-control:before {
    display: none !important;
}

.post-ad-extra .selectize-dropdown-content {
    top: 0 !important;
    height: auto !important;
    max-height: none !important;
    overflow-y: auto !important;
    padding: 0.2rem 0 !important;
    border-radius: 0.5rem !important;
    background-color: #fff !important;
    border: none !important;
    box-shadow: none !important;
}

.post-ad-extra .selectize-dropdown .option,
.post-ad-extra .selectize-dropdown [data-selectable].option {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    padding: 0.45rem 0.75rem !important;
    color: #212529 !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    background: transparent !important;
}

html:not(.dark-mode) .post-ad-extra .selectize-dropdown [data-selectable].option {
    color: #212529 !important;
    font-weight: 600 !important;
}

html:not(.dark-mode) .post-ad-extra .selectize-dropdown .option.active,
html:not(.dark-mode) .post-ad-extra .selectize-dropdown [data-selectable].option:hover {
    color: #6A11CF !important;
    background-color: rgba(106, 17, 207, 0.12) !important;
}

html.dark-mode .post-ad-extra .selectize-control.single .selectize-input,
html.dark-mode .post-ad-extra .selectize-control.single .selectize-input.input-active,
html.dark-mode .post-ad-extra .selectize-control.single .selectize-input.dropdown-active,
.dark-mode .post-ad-extra .selectize-control.single .selectize-input,
.dark-mode .post-ad-extra .selectize-control.single .selectize-input.input-active,
.dark-mode .post-ad-extra .selectize-control.single .selectize-input.dropdown-active {
    background-color: #272827 !important;
    color: #f2f2f2 !important;
    border-color: #4a4d52 !important;
    background-image: none !important;
    box-shadow: none !important;
}

html.dark-mode .post-ad-extra .selectize-control.single .selectize-input > input,
.dark-mode .post-ad-extra .selectize-control.single .selectize-input > input {
    color: #d1cbc1 !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    line-height: 18px !important;
}

html.dark-mode .post-ad-extra .selectize-input .item,
html.dark-mode .post-ad-extra .selectize-input.has-items .item,
.dark-mode .post-ad-extra .selectize-input .item,
.dark-mode .post-ad-extra .selectize-input.has-items .item {
    color: #f2f2f2 !important;
}

html.dark-mode .post-ad-extra .selectize-dropdown,
.dark-mode .post-ad-extra .selectize-dropdown {
    background-color: #272827 !important;
    border-color: #4a4d52 !important;
}

html.dark-mode .post-ad-extra .selectize-dropdown-content,
.dark-mode .post-ad-extra .selectize-dropdown-content {
    top: 0 !important;
    height: auto !important;
    max-height: none !important;
    overflow-y: hidden !important;
    background-color: #272827 !important;
    border-color: #4a4d52 !important;
}

html.dark-mode .post-ad-extra .selectize-dropdown .option,
html.dark-mode .post-ad-extra .selectize-dropdown [data-selectable].option,
.dark-mode .post-ad-extra .selectize-dropdown .option,
.dark-mode .post-ad-extra .selectize-dropdown [data-selectable].option {
    color: #f2f2f2 !important;
    background: transparent !important;
}

html.dark-mode .post-ad-extra .selectize-dropdown .option.active,
html.dark-mode .post-ad-extra .selectize-dropdown [data-selectable].option:hover,
.dark-mode .post-ad-extra .selectize-dropdown .option.active,
.dark-mode .post-ad-extra .selectize-dropdown [data-selectable].option:hover {
    background-color: rgba(106, 17, 207, 0.35) !important;
    color: #f2f2f2 !important;
}

/* Post-ad step 1 dropdowns: remove global top offset/40vh reserve and keep menu tight to options. */
.dark-mode #multiStepForm #step1 .mb-3:has(#section) .selectize-dropdown,
.dark-mode #multiStepForm #step1 .mb-3:has(#location) .selectize-dropdown {
    background-color: #242525 !important;
    border-color: rgb(123, 115, 101) !important;
}

.dark-mode #multiStepForm #step1 .mb-3:has(#section) .selectize-dropdown-content,
.dark-mode #multiStepForm #step1 .mb-3:has(#location) .selectize-dropdown-content {
    top: 0 !important;
    padding: 0 !important;
    height: auto !important;
    max-height: none !important;
    overflow-y: hidden !important;
    background-color: #242525 !important;
}

.dark-mode #multiStepForm #step1 .selectize-dropdown .option.active,
.dark-mode #multiStepForm #step1 .selectize-dropdown [data-selectable].option:hover {
    background-color: rgba(106, 17, 207, 0.2) !important;
    color: #a970ff !important;
}

html:not(.dark-mode) #multiStepForm .selectize-dropdown [data-selectable].option {
    color: #000000 !important;
    font-weight: 700 !important;
}

html:not(.dark-mode) #multiStepForm .selectize-dropdown .option.active,
html:not(.dark-mode) #multiStepForm .selectize-dropdown [data-selectable].option:hover {
    color: #6A11CF !important;
    background-color: rgba(13, 110, 253, 0.12) !important;
}

.dark-mode .form-control,
.dark-mode .btn-search,
.dark-mode .selectize-input,
.dark-mode .selectize-dropdown-content {
    border-color: rgb(123, 115, 101) !important;
    background-color: #242525 !important;
    color: #d1cbc1 !important;
}

/* City menu: violet label (ALL ADS / city) + chevron — override generic dark-mode grey */
.dark-mode .selectize-control.single .selectize-input,
.dark-mode .selectize-control.single .selectize-input input,
.dark-mode .selectize-control.single .selectize-input .item {
    color: #6A11CF !important;
}

.dark-mode .selectize-input > input::placeholder {
    color: #6A11CF !important;
    opacity: 1;
}

.dark-mode .selectize-dropdown-content .option {
    border-color: rgb(123, 115, 101) !important;
    background-color: #242525 !important;
    color: #d1cbc1 !important;
}

.dark-mode .selectize-dropdown-content .option:hover {
    color: #6A11CF !important;
}

.dark-mode .selectize-dropdown:before,
.dark-mode .selectize-dropdown.form-control:before {
    border-color: transparent transparent #242525 transparent;
}

/*
 * Header city menu (ALL ADS): Selectize default sets input-active to background:#fff.
 * Keep the field dark when focused/open on all viewports (not only ≤430px).
 */
html.dark-mode .nav-bot-view select#citySelect.w-100,
html.dark-mode .nav-bot-view .selectize-control.single .selectize-input,
html.dark-mode .nav-bot-view .selectize-control.single .selectize-input.input-active,
html.dark-mode .nav-bot-view .selectize-control.single .selectize-input.dropdown-active,
html.dark-mode .nav-bot-view .selectize-control.single.dropdown-active .selectize-input,
html.dark-mode .nav-bot-view .selectize-control.single.focus .selectize-input,
html.dark-mode .nav-bot-view .selectize-control.single .selectize-input > input,
.dark-mode .nav-bot-view select#citySelect.w-100,
.dark-mode .nav-bot-view .selectize-control.single .selectize-input,
.dark-mode .nav-bot-view .selectize-control.single .selectize-input.input-active,
.dark-mode .nav-bot-view .selectize-control.single .selectize-input.dropdown-active,
.dark-mode .nav-bot-view .selectize-control.single.dropdown-active .selectize-input,
.dark-mode .nav-bot-view .selectize-control.single.focus .selectize-input,
.dark-mode .nav-bot-view .selectize-control.single .selectize-input > input {
    background: #242525 !important;
    background-color: #242525 !important;
    background-image: none !important;
    border-color: rgba(255, 255, 255, 0.18) !important;
    color: #6A11CF !important;
    box-shadow: none !important;
}

/* Header city menu open: no light seam under ALL ADS (Selectize dropdown-active::before) */
html.dark-mode .container.bottom-header .nav-bot-view .selectize-control.single .selectize-input.dropdown-active::before,
html.dark-mode .nav-bot-view .selectize-control.single .selectize-input.dropdown-active::before,
.dark-mode .container.bottom-header .nav-bot-view .selectize-control.single .selectize-input.dropdown-active::before,
.dark-mode .nav-bot-view .selectize-control.single .selectize-input.dropdown-active::before {
    display: none !important;
    content: none !important;
    height: 0 !important;
    background: none !important;
}

.dark-mode .container.bottom-header .nav-bot-view .selectize-control.single .selectize-input.input-active,
.dark-mode .container.bottom-header .nav-bot-view .selectize-control.single.dropdown-active .selectize-input {
    border-bottom-color: #242525 !important;
    box-shadow: none !important;
}

/* Dark mode custom scrollbar */
.dark-mode .selectize-dropdown-content::-webkit-scrollbar {
    width: 12px;
    /* Scrollbar width */
}

.dark-mode .selectize-dropdown-content::-webkit-scrollbar-track {
    background: #333;
    /* Dark scrollbar track color */
}

.dark-mode .selectize-dropdown-content::-webkit-scrollbar-thumb {
    background-color: #6A11CF;
    border-radius: 10px;
    border: 3px solid #333;
}

/* Hover effect for scrollbar handle */
.dark-mode .selectize-dropdown-content::-webkit-scrollbar-thumb:hover {
    background-color: #6A11CF;
    /* Darker handle on hover */
}

.dark-mode .selectize-dropdown {
    border-color: #242525;
}


/* Mobile Styles (Up to 767px width) */
@media only screen and (max-width: 767.9px) {


    .selectize-input {
        margin-top: 10px;
    }

    /* City menu: keep position vs first paint (native select has no margin; global rule above would shift Selectize) */
    .nav-bot-view .selectize-control .selectize-input {
        margin-top: 0 !important;
    }

    /* Post-ad step 1: section/location Selectize — flush under label like #name */
    #multiStepForm #step1 .selectize-control .selectize-input,
    #multiStepForm #step1 .selectize-input {
        margin-top: 0 !important;
    }

    /* Post-ad additional info: same Selectize spacing as step 1 on phone */
    .post-ad-extra .selectize-control .selectize-input,
    .post-ad-extra .selectize-input {
        margin-top: 0 !important;
    }
}


/* Touch devices: when city field is focused, hide selected label immediately */
@media (hover: none) and (pointer: coarse) {

    .nav-bot-view .selectize-control.single .selectize-input.input-active .item,
    .nav-bot-view .selectize-control.single.dropdown-active .selectize-input .item,
    .nav-bot-view .selectize-control.single.focus .selectize-input .item,
    .nav-bot-view .selectize-control.single .selectize-input:focus-within .item {
        display: none !important;
    }

    /* Explicit Selectize active-state classes on touch: remove selected label immediately on tap */
    .nav-bot-view .selectize-control.single .selectize-input.has-items.input-active > .item,
    .nav-bot-view .selectize-control.single .selectize-input.has-items.dropdown-active > .item,
    .nav-bot-view .selectize-control.single .selectize-input.has-items.focus > .item {
        display: none !important;
    }

    .nav-bot-view .selectize-control.single .selectize-input.has-items.input-active > input {
        width: 100% !important;
    }
}


/* Real phone portrait tuning: keep header/filter row visually close to desktop-narrow layout */
@media only screen and (max-width: 430px) and (orientation: portrait) {


    /* City selector: align left so text and typing start from same edge */
    .nav-bot-view .selectize-control.single .selectize-input {
        justify-content: flex-start;
        text-align: left;
    }

    .nav-bot-view .selectize-control.single .selectize-input .item,
    .nav-bot-view .selectize-control.single .selectize-input > input {
        text-align: left !important;
    }

    /* Portrait phone: hide ALL ADS immediately on tap/focus/open */
    .nav-bot-view .selectize-control.single .selectize-input.input-active .item,
    .nav-bot-view .selectize-control.single.dropdown-active .selectize-input .item,
    .nav-bot-view .selectize-control.single.focus .selectize-input .item,
    .nav-bot-view .selectize-control.single .selectize-input:focus-within .item {
        display: none !important;
    }

    /* Keep ALL ADS identical before and after Selectize interaction */
    .dark-mode .nav-bot-view select#citySelect.w-100,
    .dark-mode .nav-bot-view .selectize-control.single .selectize-input,
    .dark-mode .nav-bot-view .selectize-control.single .selectize-input.input-active,
    .dark-mode .nav-bot-view .selectize-control.single .selectize-input > input {
        background-color: #242525 !important;
        border-color: rgba(255, 255, 255, 0.18) !important;
        color: #6A11CF !important;
    }

    /* Selectize default: 1px #f0f0f0 bar under open input — remove in night view */
    .dark-mode .nav-bot-view .selectize-control.single .selectize-input.dropdown-active::before {
        display: none !important;
        content: none !important;
        height: 0 !important;
    }

    /* First paint (native select before Selectize mounts): align left like typing state */
    .nav-bot-view select#citySelect.w-100 {
        text-align: left !important;
        text-align-last: left !important;
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    .dark-mode .nav-bot-view .selectize-input > input::placeholder {
        color: #6A11CF !important;
        opacity: 1;
    }
}


/*
 * Wide toolbar strip (≥1181): one-row stability.
 */
@media only screen and (min-width: 1181px) {

    /*
     * One-row strip stability: lock control lane geometry so async enhanced styles
     * (e.g. Selectize/default bundles) cannot change strip height after first paint.
     */
    .container.bottom-header .nav-bot-view {
        flex-wrap: nowrap !important;
        row-gap: 0 !important;
        align-items: center !important;
        min-height: 46px;
    }

    .container.bottom-header .listing-city-field,
    .container.bottom-header .listing-city-field .form-group,
    .container.bottom-header .listing-city-field .selectize-control.single,
    .container.bottom-header .listing-city-field .selectize-control.single .selectize-input,
    .container.bottom-header .listing-city-field select#citySelect.w-100 {
        width: 130px !important;
        min-width: 130px !important;
        max-width: 130px !important;
        min-height: 37px !important;
        height: 37px !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        box-sizing: border-box !important;
    }
}


/* Narrow landscape phones: match approved wider-view gap and keep strip stable on load/interact */
@media only screen and (max-width: 767.9px) and (orientation: landscape) {


    .container.bottom-header .listing-toolbar-primary > div,
    .container.bottom-header .listing-city-field,
    .container.bottom-header .listing-city-field .form-group,
    .container.bottom-header .listing-city-field .selectize-control.single,
    .container.bottom-header .listing-city-field .selectize-control.single .selectize-input,
    .container.bottom-header .listing-city-field select#citySelect.w-100 {
        min-height: 37px !important;
        height: 37px !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        box-sizing: border-box !important;
    }

    .container.bottom-header .listing-city-field,
    .container.bottom-header .listing-city-field .form-group,
    .container.bottom-header .listing-city-field .selectize-control.single,
    .container.bottom-header .listing-city-field .selectize-control.single .selectize-input,
    .container.bottom-header .listing-city-field select#citySelect.w-100 {
        width: 130px !important;
        min-width: 130px !important;
        max-width: 130px !important;
    }
}


/* FINAL LOCK: short landscape viewports — single-row toolbar */
@media only screen and (orientation: landscape) and (max-height: 500px) {


    .container.bottom-header .listing-city-field,
    .container.bottom-header .listing-city-field .form-group,
    .container.bottom-header .listing-city-field .selectize-control.single,
    .container.bottom-header .listing-city-field .selectize-control.single .selectize-input,
    .container.bottom-header .listing-city-field select#citySelect.w-100 {
        width: 130px !important;
        min-width: 130px !important;
        max-width: 130px !important;
        min-height: 37px !important;
        height: 37px !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        box-sizing: border-box !important;
    }
}


/*
 * Bottom menu strip only (ALL ADS + country): Manrope woff2 is latin-only, so Cyrillic
 * used a different fallback face/weight than English. One system-ui stack + weight for all langs.
 */
.container.bottom-header .nav-bot-view select#citySelect.w-100,
.container.bottom-header .nav-bot-view .selectize-control.single .selectize-input,
.container.bottom-header .nav-bot-view .selectize-control.single .selectize-input > input,
.container.bottom-header .nav-bot-view .selectize-control.single .selectize-input .item,
.container.bottom-header .nav-bot-view #dropdownMenuButton {
    font-family: var(--font-body) !important;
    font-variation-settings: normal !important;
    -webkit-font-smoothing: antialiased;
}

.container.bottom-header .nav-bot-view select#citySelect.w-100,
.container.bottom-header .nav-bot-view .selectize-control.single .selectize-input,
.container.bottom-header .nav-bot-view .selectize-control.single .selectize-input > input,
.container.bottom-header .nav-bot-view .selectize-input > input::placeholder {
    font-weight: 800 !important;
}

@media screen and (min-width: 768px) {


    html body #listing-menu-strip .listing-search .form-control,
    html body #listing-menu-strip .listing-city-field .selectize-input,
    html body #listing-menu-strip .listing-city-field select#citySelect.w-100 {
        min-height: 37px !important;
        height: 37px !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        box-sizing: border-box !important;
    }
}
