/* The search over the list of Croatian places (place-picker.js), on the organiser and venue inquiry forms. */

.place-picker {
    position: relative;
}

/* Below the site's fixed header when the field scrolls up for the list on a phone. */
.place-picker-input {
    scroll-margin-top: 6.5rem;
}

/* The select the picker sits over: still sent and checked with the form, but not seen. Important, because a page's own
   select style (width: 100%, padding, a minimum height) would otherwise stretch it across the window from where it sits
   and make the whole page scroll sideways. */
.place-picker-native {
    position: absolute !important;
    width: 1px !important;
    min-width: 0 !important;
    height: 1px !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    overflow: hidden;
    clip-path: inset(50%);
    opacity: 0;
    pointer-events: none;
}

.place-picker-list {
    position: absolute;
    top: calc(100% + .3rem);
    left: 0;
    right: 0;
    z-index: 30;
    max-height: 18rem;
    margin: 0;
    padding: .25rem;
    overflow-y: auto;
    list-style: none;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--white);
    color: var(--ink);
    box-shadow: 0 12px 28px rgba(53, 39, 71, .16);
}

.place-picker-list li {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: .75rem;
    padding: .4rem .6rem;
    border-radius: 8px;
    cursor: pointer;
}

.place-picker-list li:hover,
.place-picker-list li[aria-selected="true"] {
    background: #f3f0f8;
}

.place-picker-list li.is-message {
    color: var(--muted);
    font-size: .85rem;
    cursor: default;
}

.place-picker-list strong {
    font-size: .9rem;
    font-weight: 600;
}

.place-picker-list small {
    flex: none;
    color: var(--muted);
    font-size: .75rem;
}

.business-place-fields {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}
