.top {
    padding: 8px 9px;
    border: 1px solid #fff;
    border-radius: 22px;
    background: #ffffffba;
    box-shadow: 0 5px 24px #7815300c;
    backdrop-filter: blur(18px)
}

.placebtn,
#cityDialog button {
    font: inherit;
    cursor: pointer
}

.placebtn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 42px;
    border: 1px solid #f6cbd5;
    border-radius: 14px;
    padding: 5px 10px;
    color: #88213d;
    background: #fff7f8;
    font-size: 13px
}

.hero {
    border: 1px solid #f99aae;
    min-height: 204px
}

.hero-note {
    margin: 0 0 14px;
    color: #fff1f4;
    font-size: 12px
}

.hero a {
    background: white;
    color: #a9163e;
    font-weight: bold
}

.section h2 {
    border-inline-start: 3px solid #d62a50;
    padding-inline-start: 9px
}

.card {
    transition: transform .16s, border-color .16s
}

.card:hover {
    border-color: #f3b3c2;
    transform: translateY(-1px)
}

#cityDialog {
    width: min(94vw, 430px);
    max-height: 82dvh;
    padding: 18px 20px 24px;
    border: 1px solid white;
    border-radius: 26px;
    background: linear-gradient(155deg, #fff6f8, #fff 60%);
    color: #382331;
    box-shadow: 0 25px 90px #39122244
}

#cityDialog::backdrop {
    background: #39162875;
    backdrop-filter: blur(5px)
}

#cityDialog h2 {
    margin: 6px 0 0
}

#cityDialog p {
    margin: 0 0 12px;
    color: #765e68
}

.sheet-head {
    display: flex;
    align-items: center;
    justify-content: space-between
}

.sheet-head button,
.city-grid button {
    background: white;
    color: #70243c;
    border: 1px solid #efdae0;
    border-radius: 12px;
    min-width: 42px;
    min-height: 42px
}

#citySearch {
    width: 100%;
    border: 1px solid #edcbd4;
    border-radius: 14px;
    padding: 11px;
    background: white
}

#allCities {
    margin-top: 9px
}

.city-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 8px
}

.city-grid button {
    padding-inline: 10px
}

#provinceList {
    margin-top: 10px;
    max-height: 44dvh;
    overflow: auto;
    overscroll-behavior: contain
}

#provinceList details {
    margin: 4px 0;
    padding: 8px 12px
}

#cityDialog [hidden] {
    display: none
}

.placefield button {
    margin-top: 20px;
    width: 100%
}

@media(max-width:350px) {
    .top {
        gap: 3px
    }

    .top .row {
        gap: 4px
    }

    .brand small {
        letter-spacing: 0
    }

    .app {
        padding-inline: 10px
    }
}

@media(prefers-reduced-motion:reduce) {
    .card {
        transition: none
    }
}