/* UK postcode address finder (see public/js/postcode-lookup.js) */
.pcl {
    --pcl-accent: #0d1b2a;
    --pcl-border: #d9dde3;
    --pcl-bg: #f6f7f9;
    --pcl-text: #344054;
    --pcl-muted: #667085;
    --pcl-error: #b42318;
    --pcl-ok: #067647;
    margin-top: 6px;
    width: 100%;
    box-sizing: border-box;
}

.pcl *,
.pcl *::before,
.pcl *::after {
    box-sizing: border-box;
}

.pcl .pcl-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: auto;
    min-width: 0;
    padding: 6px 0;
    margin: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    text-align: left;
    background: transparent;
    color: var(--pcl-accent);
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: normal;
    text-transform: none;
    cursor: pointer;
    text-decoration: underline;
    text-decoration-color: rgba(13, 27, 42, 0.3);
    text-underline-offset: 3px;
    -webkit-tap-highlight-color: transparent;
}

.pcl .pcl-toggle:hover,
.pcl .pcl-toggle:focus,
.pcl .pcl-toggle:focus-visible {
    background: transparent;
    color: var(--pcl-accent);
    box-shadow: none;
    text-decoration-color: currentColor;
}

.pcl-toggle:focus-visible,
.pcl-find:focus-visible {
    outline: 2px solid var(--pcl-accent);
    outline-offset: 2px;
}

.pcl-toggle svg {
    flex: 0 0 auto;
}

.pcl-panel {
    margin-top: 6px;
    padding: 12px;
    background: var(--pcl-bg);
    border: 1px solid var(--pcl-border);
    border-radius: 8px;
}

.pcl-panel[hidden],
.pcl-results[hidden],
.pcl-manual[hidden] {
    display: none !important;
}

.pcl-search {
    flex-wrap: wrap;
    display: flex;
    gap: 8px;
    align-items: stretch;
}

.pcl-manual {
    margin-top: 10px;
}

.pcl .pcl-postcode,
.pcl .pcl-street,
.pcl .pcl-filter {
    display: block;
    width: 100%;
    min-width: 0;
    height: 44px;
    margin: 0;
    padding: 0 12px;
    border: 1px solid #c8c8c8;
    border-radius: 6px;
    background: #fff;
    color: #111;
    /* 16px stops iOS Safari zooming the page when a field is focused */
    font-size: 16px;
    line-height: 1.2;
    box-shadow: none;
}

.pcl .pcl-postcode {
    flex: 1 1 140px;
    min-width: 140px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.pcl .pcl-street {
    flex: 1 1 140px;
    min-width: 140px;
}

.pcl .pcl-postcode::placeholder,
.pcl .pcl-street::placeholder {
    text-transform: none;
    letter-spacing: 0;
    color: #98a2b3;
}

.pcl .pcl-postcode:focus,
.pcl .pcl-street:focus,
.pcl .pcl-filter:focus {
    border-color: var(--pcl-accent);
    box-shadow: 0 0 0 3px rgba(13, 27, 42, 0.1);
    outline: 0;
}

.pcl .pcl-filter {
    margin-top: 10px;
}

.pcl .pcl-filter[hidden] {
    display: none !important;
}

/* option lists: results, recent, earlier-booking suggestions */
.pcl .pcl-list {
    margin-top: 10px;
    max-height: 248px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background: #fff;
    border: 1px solid #c8c8c8;
    border-radius: 6px;
}

.pcl .pcl-list[hidden],
.pcl .pcl-recent[hidden],
.pcl .pcl-notlisted[hidden] {
    display: none !important;
}

.pcl .pcl-option {
    padding: 11px 12px;
    min-height: 44px;
    display: flex;
    align-items: center;
    font-size: 14px;
    line-height: 1.35;
    color: #111;
    border-bottom: 1px solid #eef0f3;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.pcl .pcl-option:last-child {
    border-bottom: 0;
}

.pcl .pcl-option[hidden] {
    display: none !important;
}

.pcl .pcl-option:hover,
.pcl .pcl-option.pcl-active {
    background: #eef2f7;
}

.pcl .pcl-suggest {
    margin-top: 4px;
    box-shadow: 0 4px 14px rgba(16, 24, 40, 0.12);
}

.pcl .pcl-link {
    display: inline-block;
    margin: 10px 0 0;
    padding: 6px 0;
    border: 0;
    background: transparent;
    color: var(--pcl-accent);
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}

.pcl .pcl-recent {
    margin-top: 12px;
}

.pcl .pcl-recent-title {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--pcl-muted);
}

.pcl .pcl-recent .pcl-list {
    margin-top: 6px;
    max-height: 190px;
}

.pcl .pcl-find {
    flex: 0 0 auto;
    height: 44px;
    margin: 0;
    padding: 0 18px;
    border: 0;
    border-radius: 6px;
    background: var(--pcl-accent);
    color: #fff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: none;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s ease, opacity 0.2s ease;
}

.pcl .pcl-find:hover {
    background: #1a2f47;
}

.pcl .pcl-find:disabled {
    opacity: 0.65;
    cursor: progress;
}

.pcl-status {
    min-height: 0;
    margin-top: 8px;
    font-size: 13px;
    line-height: 1.4;
    color: var(--pcl-muted);
}

.pcl-status:empty {
    display: none;
}

.pcl-status.pcl-error {
    color: var(--pcl-error);
}

.pcl-status.pcl-ok {
    color: var(--pcl-ok);
}

.pcl-hint {
    margin-top: 8px;
    font-size: 12px;
    color: var(--pcl-muted);
}

.pcl-note {
    margin-top: 2px;
    font-size: 12px;
    color: var(--pcl-ok);
}

.pcl-note:empty {
    display: none;
}

@media (max-width: 480px) {
    .pcl-panel {
        padding: 10px;
    }

    .pcl-search {
        flex-wrap: wrap;
    }

    .pcl .pcl-find {
        flex: 1 1 100%;
        width: 100%;
    }

    .pcl .pcl-postcode,
    .pcl .pcl-street {
        flex: 1 1 100%;
    }

    .pcl .pcl-list {
        max-height: 220px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .pcl .pcl-find {
        transition: none;
    }
}
