.clh-location { position: relative; min-width: 220px; overflow: visible !important; }
.clh-location .clh-pin { position: absolute; inset-inline-start: 18px; top: 50%; transform: translateY(-50%); font-size: 26px; color: #777; pointer-events: none; }
.clh-location .clh-select { width: 100%; min-height: 70px; padding-inline-start: 48px; border: 0; background: transparent; }
.clh-location [hidden] { display: none !important; }
.mediyox-location-picker { position: relative; width: 100%; color: #666; }
.mediyox-location-picker > summary { box-sizing: border-box; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; list-style: none; min-height: 70px; padding: 18px 24px 18px 54px; font: inherit; }
.mediyox-location-picker > summary::-webkit-details-marker { display: none; }
.mediyox-location-picker > summary::after { content: ''; width: 8px; height: 8px; border-right: 2px solid #999; border-bottom: 2px solid #999; transform: rotate(45deg); flex-shrink: 0; }
.mediyox-location-picker[open] > summary::after { transform: rotate(225deg); }
.mediyox-location-panel { position: absolute; z-index: 10000; top: calc(100% + 8px); inset-inline-start: 0; box-sizing: border-box; width: 100%; min-width: 260px; max-width: calc(100vw - 32px); background: white; border: 1px solid #e6e8ef; border-radius: 12px; box-shadow: 0 8px 24px #00000012; padding: 16px 0; }
.mediyox-location-panel input[type=search] { display: block; box-sizing: border-box; width: calc(100% - 32px); margin: 0 16px 12px; padding: 10px 12px; height: 44px; border: 1px solid #e6e8ef; border-radius: 8px; font: inherit; background: white; }
.mediyox-location-options { max-height: 300px; overflow-y: auto; }
.mediyox-location-panel .mediyox-location-option { display: block; box-sizing: border-box; width: 100%; height: auto; margin: 0; padding: 12px 20px; text-align: start; border: 0; border-radius: 0; background: white; color: #666; font: inherit; line-height: 1.5; cursor: pointer; }
.mediyox-location-panel .mediyox-location-option.mediyox-country { color: #1769ff; font-weight: 600; }
.mediyox-location-panel .mediyox-location-option:hover, .mediyox-location-panel .mediyox-location-option:focus-visible, .mediyox-location-panel .mediyox-location-option[aria-pressed=true] { background: #f0f5ff; }
.mediyox-location-panel p { padding: 12px 20px; }
.mediyox-location-picker summary:focus-visible { outline: 2px solid #1769ff; outline-offset: -3px; }
@media (max-width: 600px) { .clh-location { min-width: 0; } .mediyox-location-panel { min-width: 0; } }

/* Render outside the theme's clipping/stacking containers. */
.mediyox-location-panel { position: fixed; inset-inline-start: auto; top: 0; left: 0; display: flex; flex-direction: column; min-width: 0; z-index: 100000; overflow: hidden; padding: 12px 0; font-size: 16px; line-height: 1.5; color: #62666d; }
.mediyox-location-panel[hidden], .mediyox-location-panel [hidden] { display: none !important; }
.mediyox-location-panel input[type=search] { flex: 0 0 auto; position: static; min-height: 44px; font-size: 16px; }
.mediyox-location-options { flex: 1 1 auto; min-height: 0; max-height: none; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; scroll-padding: 8px; }
.mediyox-location-panel .mediyox-location-option { min-height: 44px; font-size: 16px; padding-top: 9px; padding-bottom: 9px; }
.mediyox-location-panel p { margin: 0; flex: 0 0 auto; }

/* Only the Jobs archive top filter; homepage widgets retain their original layout. */
.archive-jobs-top .form-jobs-top-filter > .row { display: grid; grid-template-columns: minmax(0,1.2fr) minmax(0,1fr) minmax(0,1fr) auto; align-items: stretch; }
.archive-jobs-top .form-jobs-top-filter > .row > .form-group { width: auto !important; min-width: 0; max-width: none; box-sizing: border-box; }
.archive-jobs-top .form-jobs-top-filter input[type=text] { width: 100%; box-sizing: border-box; padding-right: 16px; }
.archive-jobs-top .form-jobs-top-filter .select2-container { width: 100% !important; max-width: 100%; box-sizing: border-box; }
.archive-jobs-top .form-jobs-top-filter .btn-top-filter { white-space: nowrap; }
@media (max-width: 767px) {
 .archive-jobs-top .form-jobs-top-filter > .row { grid-template-columns: minmax(0,1fr); border-radius: 20px; }
 .archive-jobs-top .form-jobs-top-filter > .row > .form-group { border-left: 0; border-right: 0; }
 .archive-jobs-top .form-jobs-top-filter > .row > .form-group:not(:first-child) { border-top: 1px solid #eceef2; }
 .archive-jobs-top .form-jobs-top-filter .btn-top-filter { width: 100%; margin: 0; }
 .archive-jobs-top .form-jobs-top-filter > .row > .form-group:last-child { padding: 12px; }
}

.archive-filter-top .clh-select { position: absolute !important; width: 1px !important; height: 1px !important; opacity: 0 !important; pointer-events: none !important; }
.archive-filter-top .mediyox-location-picker { width: 100%; }
.archive-filter-top .mediyox-location-picker > summary { min-height: 70px; }
.archive-filter-top .form-group.civi-form-location > .archive-search-location { display: none !important; }
.archive-filter-top .mediyox-location-picker > summary span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* The enhanced picker supplies its own single arrow. */
.archive-filter-top .mediyox-location-ready > .icon-arrow { display: none !important; }
