/**
 * Header location selector — flat to match the rest of the theme.
 * Inline trigger lives in the header utility belt; modal opens from it.
 */

.oflstn-loc {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: 0;
    color: inherit;
    font: inherit;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}
.oflstn-loc:hover { color: var(--page); opacity: 0.85; }
.oflstn-loc-pin svg { display: block; }
.oflstn-loc-city {
    font-weight: 600;
}
.oflstn-loc-link {
    text-decoration: underline;
    text-underline-offset: 3px;
    color: inherit;
    opacity: 0.85;
}

/* Block-style trigger — for mobile drawer */
.oflstn-loc-block {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px 0;
    background: transparent;
    border: 0;
    border-bottom: 1px solid var(--rule);
    text-align: left;
    cursor: pointer;
    color: var(--ink);
}
.oflstn-loc-block:hover { color: var(--olive-primary); }
.oflstn-loc-block-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--olive-bg);
    color: var(--olive-dark);
    border-radius: 999px;
}
.oflstn-loc-block-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.oflstn-loc-block-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--ink-muted);
    line-height: 1.2;
}
.oflstn-loc-block-city {
    font-size: 15px;
    font-weight: 600;
    color: var(--ink);
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.oflstn-loc-block-arrow {
    flex-shrink: 0;
    color: var(--ink-faint);
    font-size: 16px;
    transition: transform 150ms;
}
.oflstn-loc-block:hover .oflstn-loc-block-arrow {
    transform: translateX(2px);
    color: var(--olive-primary);
}

/* Modal */
.oflstn-loc-modal {
    position: fixed;
    inset: 0;
    z-index: 130;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.oflstn-loc-modal.is-open { display: flex; }
.oflstn-loc-modal-overlay {
    position: absolute;
    inset: 0;
    background: color-mix(in srgb, var(--ink) 45%, transparent);
}
.oflstn-loc-modal-panel {
    position: relative;
    width: 100%;
    max-width: 420px;
    background: var(--surface);
    border: 1px solid var(--rule);
    padding: 22px 22px 18px;
    color: var(--ink);
}
.oflstn-loc-modal-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 6px;
}
.oflstn-loc-modal-deck {
    font-size: 12px;
    color: var(--ink-muted);
    margin: 0 0 14px;
}
.oflstn-loc-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 12px;
}
.oflstn-loc-field label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--ink-muted);
}
.oflstn-loc-field select,
.oflstn-loc-field input {
    appearance: none;
    -webkit-appearance: none;
    width: 100%;
    height: 40px;
    padding: 0 14px;
    background: var(--surface);
    border: 1px solid var(--rule-strong);
    border-radius: var(--radius-xs);
    font-size: 14px;
    color: var(--ink);
    transition: border-color 150ms;
}
.oflstn-loc-field select {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'><path d='M2 4l4 4 4-4' stroke='%230a0a0a' stroke-width='1.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px 12px;
    padding-right: 36px;
}
.oflstn-loc-field select:focus,
.oflstn-loc-field input:focus {
    outline: none;
    border-color: var(--olive-primary);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--olive-primary) 15%, transparent);
}
.oflstn-loc-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-top: 12px;
}
.oflstn-loc-actions button {
    appearance: none;
    height: 40px;
    padding: 0 18px;
    border-radius: var(--radius-xs);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid var(--rule-strong);
    background: var(--surface);
    color: var(--ink);
    transition: background-color 150ms, color 150ms, border-color 150ms;
}
.oflstn-loc-actions button[data-oflstn-loc-save] {
    background: var(--olive-primary);
    color: var(--page);
    border-color: var(--olive-primary);
}
.oflstn-loc-actions button[data-oflstn-loc-save]:hover {
    background: var(--olive-dark);
    border-color: var(--olive-dark);
}
.oflstn-loc-actions button[data-oflstn-loc-cancel]:hover {
    background: var(--surface-soft);
}
