/* Mengikuti warna form Tailwind yang sudah ada. */
.location-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid #94a3b8;
    border-radius: 6px;
    background: white;
    color: var(--color-ink, #20252b);
    font: inherit;
    text-align: left;
    cursor: pointer;
}

#location-value {
    min-width: 0;
    overflow-wrap: anywhere;
}

.location-trigger[aria-expanded="true"] {
    border-color: var(--color-accent, #b91c1c);
}

.location-trigger[aria-invalid="true"] {
    border-color: var(--color-accent, #b91c1c);
}

.location-trigger:disabled {
    cursor: not-allowed;
}

.location-chevron,
.location-search-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.location-trigger[aria-expanded="true"] .location-chevron {
    transform: rotate(180deg);
}

.location-popup {
    position: fixed;
    z-index: 100;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--color-line, #e4e7ec);
    border-radius: 8px;
    background: white;
    color: var(--color-ink, #20252b);
    box-shadow: 0 8px 24px rgb(16 24 40 / 12%);
}

.location-search-box {
    position: relative;
    flex-shrink: 0;
    padding: 10px;
    border-bottom: 1px solid var(--color-line, #e4e7ec);
}

.location-search-icon {
    position: absolute;
    top: 50%;
    left: 22px;
    transform: translateY(-50%);
    pointer-events: none;
    color: var(--color-muted, #667085);
}

#location-search {
    min-height: 44px;
    padding-left: 36px;
    font-size: 16px;
}

.location-list {
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 4px;
}

.location-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 44px;
    padding: 10px 12px;
    border-radius: 4px;
    overflow-wrap: anywhere;
    cursor: pointer;
}

.location-option[aria-selected="true"] {
    color: var(--color-accent, #b91c1c);
    font-weight: 600;
}

.location-option:hover,
.location-option.is-active {
    background: var(--color-accent-soft, #fef2f2);
}

.location-check {
    flex-shrink: 0;
}

.location-empty {
    margin: 0;
    padding: 16px;
    color: var(--color-muted, #667085);
    font-size: 14px;
}

.location-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    -webkit-clip-path: inset(50%);
    clip-path: inset(50%);
    white-space: nowrap;
}

#location-picker [hidden] {
    display: none !important;
}