/* Compact city control. The fixed popup never changes the height of a form. */
.dtfpro-city-control, .dtfpro-city-popup, .dtfpro-city-save-notice {
    --dtf-city-ink: var(--bb-heading-color, #17243b);
    --dtf-city-muted: #60718b;
    --dtf-city-blue: var(--bb-primary-color, #4778ff);
    --dtf-city-line: #e0e6f1;
    --dtf-city-soft: #f0f5ff;
    box-sizing: border-box;
    font-family: inherit;
}
.dtfpro-city-control { position: relative; display: block; width: 100%; min-width: 0; }
.dtfpro-city-control .dtfpro-city-input { width: 100% !important; max-width: 100%; min-width: 0; padding-right: 44px !important; margin: 0; }
/* Wrapping the native field removes the editor's direct-child styling. */
body.adverts-edit-frame .adverts-form .dtfpro-city-control > input.dtfpro-city-input {
    display: block;
    min-height: 44px;
    margin: 0;
    padding: 10px 13px;
    border: 1px solid #dce3ed;
    border-radius: 9px;
    background: #fff;
    color: #17243b;
    box-shadow: none;
    font-family: inherit;
    font-size: 16px;
    line-height: 1.5;
}
.dtfpro-city-control .dtfpro-city-clear {
    position: absolute;
    top: 50%;
    right: 8px;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
    padding: 0;
    margin: 0;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: var(--dtf-city-muted);
    box-shadow: none;
    font: inherit;
    line-height: 1;
    text-transform: none;
    cursor: pointer;
}
.dtfpro-city-control .dtfpro-city-clear:hover,
.dtfpro-city-control .dtfpro-city-clear:focus-visible { background: var(--dtf-city-soft); color: var(--dtf-city-blue); }
.dtfpro-city-control .dtfpro-city-clear:focus-visible { outline: 2px solid var(--dtf-city-blue); outline-offset: 2px; }
.dtfpro-city-popup {
    position: fixed;
    z-index: 100010;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    margin: 0;
    padding: 0;
    border: 1px solid var(--dtf-city-line);
    border-radius: 12px;
    background: #fff;
    color: var(--dtf-city-ink);
    box-shadow: 0 10px 30px rgba(24, 44, 81, .12);
    font-size: 15px;
    line-height: 1.45;
    text-align: left;
}
.dtfpro-city-popup[hidden] { display: none !important; }
.dtfpro-city-popup *, .dtfpro-city-control * { box-sizing: border-box; }
.dtfpro-city-list { overflow-y: auto; overscroll-behavior: contain; min-height: 0; padding: 4px; scrollbar-width: thin; }
.dtfpro-city-option {
    position: relative;
    display: flex;
    align-items: center;
    gap: 13px;
    min-height: 65px;
    padding: 10px 15px;
    border-radius: 9px;
    cursor: pointer;
    user-select: none;
}
.dtfpro-city-option--country { position: sticky; top: 0; z-index: 1; margin-bottom: 4px; background: #fff; }
.dtfpro-city-option--country::after { position: absolute; bottom: -3px; left: 11px; right: 11px; height: 1px; background: var(--dtf-city-line); content: ''; }
.dtfpro-city-option:hover, .dtfpro-city-option.is-active, .dtfpro-city-option[aria-selected="true"] { background: var(--dtf-city-soft); }
.dtfpro-city-copy { display: flex; flex: 1 1 auto; flex-direction: column; min-width: 0; gap: 1px; }
.dtfpro-city-name { color: var(--dtf-city-ink); font-weight: 600; font-size: 16px; line-height: 1.35; overflow-wrap: anywhere; }
.dtfpro-city-region { color: var(--dtf-city-muted); font-size: 13px; line-height: 1.4; overflow-wrap: anywhere; }
.dtfpro-city-icon { flex: 0 0 23px; width: 23px; color: #64758e; font-size: 23px; line-height: 1; text-align: center; }
.dtfpro-city-icon::before { margin: 0; }
.dtfpro-city-option--country > .dtfpro-city-icon { color: var(--dtf-city-ink); }
.dtfpro-city-option > .adverts-icon-ok { color: var(--dtf-city-blue); font-size: 20px; }
.dtfpro-city-clear > .dtfpro-city-icon { font-size: 17px; color: inherit; }
.dtfpro-city-footer { flex: 0 0 auto; padding: 12px 18px; border-top: 1px solid var(--dtf-city-line); color: var(--dtf-city-muted); font-size: 12px; line-height: 1.45; }
.dtfpro-city-empty { padding: 16px 18px; color: var(--dtf-city-muted); font-size: 14px; }
.dtfpro-city-save-notice {
    position: fixed;
    bottom: 18px;
    right: 18px;
    z-index: 100011;
    display: flex;
    align-items: center;
    gap: 12px;
    width: max-content;
    max-width: min(460px, calc(100vw - 36px));
    padding: 13px 12px 13px 16px;
    border: 1px solid var(--dtf-city-line);
    border-radius: 12px;
    background: #fff;
    color: var(--dtf-city-ink);
    box-shadow: 0 8px 28px rgba(24, 44, 81, .14);
    font-size: 13px;
    line-height: 1.45;
}
.dtfpro-city-save-notice > span { flex: 1 1 auto; min-width: 0; }
.dtfpro-city-save-notice button {
    flex: 0 0 auto;
    min-width: 30px;
    min-height: 30px;
    padding: 6px 9px;
    margin: 0;
    border: 0;
    border-radius: 7px;
    background: var(--dtf-city-soft);
    color: var(--dtf-city-blue);
    box-shadow: none;
    font: inherit;
    line-height: 1.35;
    cursor: pointer;
}
.dtfpro-city-save-notice button:hover, .dtfpro-city-save-notice button:focus-visible { background: var(--dtf-city-blue); color: #fff; }
.dtfpro-city-save-notice button:focus-visible { outline: 2px solid var(--dtf-city-blue); outline-offset: 2px; }
.dtfpro-city-save-notice .dtfpro-city-save-dismiss { padding: 6px; background: transparent; color: var(--dtf-city-muted); }
.dtfpro-city-save-dismiss .dtfpro-city-icon { color: inherit; font-size: 15px; }
@media (max-width: 480px) {
    .dtfpro-city-option { min-height: 60px; gap: 10px; padding: 9px 11px; }
    .dtfpro-city-name { font-size: 15px; }
    .dtfpro-city-footer { padding: 10px 14px; }
}
