.vote-city-overlay {
    position: fixed;
    inset: 0;
    z-index: 2500;
    display: grid;
    place-items: center;
    padding: 16px;
    background: rgba(2, 8, 15, 0.76);
    backdrop-filter: blur(8px);
    animation: voteCityFadeIn 160ms ease-out;
}

.vote-city-dialog {
    position: relative;
    width: min(100%, 480px);
    max-height: min(90dvh, 740px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 28px;
    border: 1px solid var(--border-light);
    border-radius: 24px;
    background: var(--bg-surface);
    color: var(--text-primary);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
    animation: voteCityRise 200ms ease-out;
}

.vote-city-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 38px;
    height: 38px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--bg-surface-raised);
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
}

.vote-city-icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    margin-bottom: 14px;
    border: 1px solid rgba(78, 205, 196, 0.25);
    border-radius: 16px;
    background: rgba(78, 205, 196, 0.11);
    font-size: 1.4rem;
}

.vote-city-eyebrow {
    color: var(--accent);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.vote-city-dialog h2 {
    margin-top: 4px;
    font-size: clamp(1.45rem, 6vw, 1.8rem);
    letter-spacing: -0.04em;
}

.vote-city-dialog > p:not(.vote-city-eyebrow):not(.vote-city-selected) {
    margin-top: 6px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.55;
}

.vote-city-label {
    margin: 20px 0 7px;
    font-size: 0.78rem;
    font-weight: 700;
}

.vote-city-search {
    width: 100%;
    min-height: 48px;
    padding: 0 14px;
    border: 1px solid var(--border-light);
    border-radius: 13px;
    outline: none;
    background: var(--bg-surface-raised);
    color: var(--text-primary);
    font: inherit;
    font-size: 16px;
}

.vote-city-search:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(78, 205, 196, 0.15);
}

.vote-city-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
    min-height: 80px;
    max-height: min(31dvh, 255px);
    margin: 10px -4px 0 0;
    padding: 2px 6px 2px 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-color: var(--border-light) transparent;
}

.vote-city-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-width: 0;
    min-height: 42px;
    padding: 8px 10px;
    border: 1px solid var(--border);
    border-radius: 11px;
    background: var(--bg-surface-raised);
    color: var(--text-primary);
    font: inherit;
    font-size: 0.82rem;
    text-align: left;
    cursor: pointer;
    transition: border-color 120ms ease, background 120ms ease;
}

.vote-city-option:hover,
.vote-city-option.is-selected {
    border-color: var(--accent);
    background: rgba(78, 205, 196, 0.12);
}

.vote-city-option small {
    color: var(--text-muted);
    font-size: 0.68rem;
}

.vote-city-empty {
    grid-column: 1 / -1;
    padding: 22px 8px;
    color: var(--text-muted);
    text-align: center;
    font-size: 0.84rem;
}

.vote-city-selected {
    min-height: 20px;
    margin-top: 8px;
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 700;
}

.vote-city-actions {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}

.vote-city-actions button {
    min-height: 48px;
    padding: 0 15px;
    border-radius: 13px;
    font: inherit;
    font-size: 0.84rem;
    font-weight: 800;
    cursor: pointer;
}

.vote-city-cancel {
    border: 1px solid var(--border-light);
    background: var(--bg-surface-raised);
    color: var(--text-secondary);
}

.vote-city-submit {
    flex: 1;
    border: 0;
    background: linear-gradient(135deg, var(--accent), #34d399);
    color: #06201f;
}

.vote-city-submit:disabled {
    opacity: 0.42;
    cursor: not-allowed;
}

@keyframes voteCityFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes voteCityRise { from { transform: translateY(12px) scale(0.985); opacity: 0; } to { transform: translateY(0) scale(1); opacity: 1; } }

@media (max-width: 420px) {
    .vote-city-overlay { padding: 10px; }
    .vote-city-dialog { padding: 21px 17px 17px; border-radius: 20px; }
    .vote-city-options { grid-template-columns: repeat(2, minmax(0, 1fr)); max-height: 29dvh; }
    .vote-city-option { padding: 8px; font-size: 0.76rem; }
    .vote-city-actions button { padding: 0 10px; font-size: 0.78rem; }
}

@media (prefers-reduced-motion: reduce) {
    .vote-city-overlay, .vote-city-dialog { animation: none; }
}
