
.city-dialog {
    border: none;
    border-radius: 30px;
    padding: 50px 60px;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    margin: auto;
}

.city-dialog::backdrop {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(2px);
}

.city-dialog__title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #1a1c20;
}

.city-dialog__subtitle {
    font-size: 18px;
    color: #1a1c20;
    margin-bottom: 15px;
}

.city-dialog__list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 35px;
    margin-left: 25px;
}

.city-dialog__item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-weight: 500;
    color: #060607;
    cursor: pointer;
    text-decoration: none;
}

.city-dialog__item span {
    position: relative;
    display: inline-block;
    overflow: hidden;
    padding-bottom: 2px;
}

.city-dialog__item span::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: currentColor;
    transform: scaleX(1);
    transform-origin: bottom left;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.city-dialog__item:focus-visible{
    outline: 0;
}

.city-dialog__item:hover span::after {
    transform: scaleX(0);
    transform-origin: bottom right;
}

.city-dialog__item svg {
    width: 22px;
    height: 22px;
    color: #333;
    flex-shrink: 0;
}

body.modal-open {
    overflow: hidden;
}

.city-dialog {
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}

.city-dialog[open] {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

.city-dialog::backdrop {
    background-color: rgba(0, 0, 0, 0);
    transition: background-color 0.3s ease;
}

.city-dialog[open]::backdrop {
    background-color: rgba(0, 0, 0, 0.5);
}

.city-dialog[open] {
    animation: fadeInScale 0.3s ease;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@media (max-width: 768px) {
    .city-dialog {
        width: 90%;
        padding: 30px 20px;
    }

    .city-dialog__title {
        font-size: 24px;
    }
}