/* Shared place-input styles: Photon type-ahead dropdown, "Did you mean…?"
   fallback chips, and the post-calc matched-place confirmation chip. Used by
   any page that loads static/js/place-autocomplete.js. */

/* ---- Birthplace autocomplete (Photon type-ahead) ------------------- */
.pac-wrap {
    position: relative;
}
.pac-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1000;
    margin: 4px 0 0;
    padding: 4px 0;
    list-style: none;
    background: #fff;
    border: 1px solid #d9d3ea;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);
    max-height: 260px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
.pac-item {
    padding: 12px 14px;
    font-size: 15px;
    line-height: 1.3;
    color: #2b2b3a;
    cursor: pointer;
}
.pac-item:hover,
.pac-item.pac-active {
    background: #f1ecfb;
}

/* ---- "Did you mean…?" nearest-district suggestion chips ------------- */
.place-suggestions {
    display: none;
    margin: -6px 0 16px;
    text-align: center;
}
.place-suggest-label {
    font-size: 14px;
    color: #6b6580;
    margin-bottom: 8px;
}
.place-suggest-chip {
    display: inline-block;
    margin: 4px;
    padding: 9px 14px;
    font-size: 14px;
    font-family: inherit;
    color: #4b2e83;
    background: #f1ecfb;
    border: 1px solid #cbb8f0;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.15s ease;
}
.place-suggest-chip:hover,
.place-suggest-chip:active {
    background: #e3d7fb;
}

@media (prefers-color-scheme: dark) {
    .pac-menu { background: #23202e; border-color: #3c3550; }
    .pac-item { color: #e7e2f5; }
    .pac-item:hover, .pac-item.pac-active { background: #322b45; }
    .place-suggest-label { color: #b3aac9; }
    .place-suggest-chip { color: #d8c8ff; background: #322b45; border-color: #4c3f6b; }
    .place-suggest-chip:hover, .place-suggest-chip:active { background: #3f3559; }
}

/* Post-calc matched-place confirmation chip */
.place-resolved-chip { display: none; margin-top: 6px; font-size: 0.85rem; line-height: 1.4; }
.place-resolved-chip .place-resolved-fix {
    margin-left: 8px; padding: 2px 10px; border-radius: 12px;
    border: 1px solid currentColor; background: transparent; color: inherit;
    font-size: 0.8rem; cursor: pointer;
}
