/* ==========================================================================
   OpsTitan Public Directory — UI system
   Style: Trust & Authority + Flat/Swiss, OT Portal palette, Jost type
   ========================================================================== */

:root {
    /* Brand — OT Portal palette */
    --pd-accent: #266df0;
    --pd-accent-deep: #215bc4;
    --pd-accent-soft: #ebf2ff;
    --pd-accent-soft-strong: #d8e5ff;
    --pd-accent-ring: rgba(38, 109, 240, .3);

    /* Ink */
    --pd-ink: #242529;
    --pd-ink-2: #4b4d55;
    --pd-ink-3: #6a6d76;
    --pd-ink-4: #9a9ea8;

    /* Surfaces */
    --pd-bg: #ffffff;
    --pd-surface: #ffffff;
    --pd-sky: #ebf2ff;
    --pd-line: #e6e9f1;
    --pd-line-strong: #d0d6e4;

    /* Feedback */
    --pd-success: #1c7a57;
    --pd-success-soft: #e6f5ee;
    --pd-gold: #c07c0a;
    --pd-danger: #c03a2b;
    --pd-danger-soft: #fdecea;

    /* Shape & elevation */
    --pd-radius-s: 8px;
    --pd-radius-m: 12px;
    --pd-radius-l: 16px;
    --pd-radius-xl: 20px;
    --pd-shadow-xs: 0 1px 2px rgba(16, 24, 40, .05);
    --pd-shadow-s: 0 1px 3px rgba(16, 24, 40, .06), 0 1px 2px rgba(16, 24, 40, .04);
    --pd-shadow-m: 0 12px 28px -14px rgba(16, 24, 40, .22);

    /* Layout */
    --pd-shell: 1160px;
    --pd-header-h: 64px;
    --pd-tabs-h: 52px;
    color-scheme: light;
}

/* Base ------------------------------------------------------------------- */

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    color: var(--pd-ink);
    background: var(--pd-bg);
    font-family: Jost, "Jost Fallback", sans-serif;
    font-size: 16px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

body::before {
    display: block;
    height: 3px;
    content: "";
    background: var(--pd-accent);
}

h1, h2, h3, h4 {
    margin: 0;
    font-family: Jost, "Jost Fallback", sans-serif;
    font-weight: 600;
    letter-spacing: -.015em;
    line-height: 1.22;
}

p { margin: 0; }

a { color: inherit; text-decoration: none; }

img { display: block; max-width: 100%; }

a, button, input, select, textarea { font: inherit; }

button { cursor: pointer; }

:focus-visible {
    outline: 3px solid var(--pd-accent-ring);
    outline-offset: 2px;
    border-radius: 4px;
}

.pd-page { min-height: 100vh; }

.pd-shell { width: min(var(--pd-shell), calc(100% - 48px)); margin: 0 auto; }

.pd-kicker {
    margin: 0 0 6px;
    color: var(--pd-accent-deep);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .01em;
}

.pd-icon { width: 18px; height: 18px; flex: none; }

.pd-icon-sm { width: 15px; height: 15px; flex: none; }

.pd-visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    margin: -1px; padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

/* Buttons ---------------------------------------------------------------- */

.pd-primary-button,
.pd-outline-button,
.pd-ghost-button,
.pd-search-submit,
.pd-review-filters button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 10px 18px;
    border: 1px solid transparent;
    border-radius: var(--pd-radius-s);
    font-size: 14.5px;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    transition: background-color .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease;
}

.pd-primary-button,
.pd-search-submit,
.pd-review-filters button {
    border-color: var(--pd-accent);
    background: var(--pd-accent);
    color: #fff;
}

.pd-primary-button:hover,
.pd-search-submit:hover,
.pd-review-filters button:hover {
    border-color: var(--pd-accent-deep);
    background: var(--pd-accent-deep);
}

.pd-outline-button {
    border-color: var(--pd-line-strong);
    background: var(--pd-surface);
    color: var(--pd-ink);
}

.pd-outline-button:hover {
    border-color: var(--pd-accent);
    background: var(--pd-accent-soft);
    color: var(--pd-accent-deep);
}

.pd-ghost-button {
    background: transparent;
    color: var(--pd-accent-deep);
}

.pd-ghost-button:hover { background: var(--pd-accent-soft); }

/* Header ----------------------------------------------------------------- */

.pd-site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    border-bottom: 1px solid var(--pd-line);
    background: var(--pd-surface);
}

.pd-header-inner {
    display: flex;
    align-items: center;
    gap: 24px;
    min-height: var(--pd-header-h);
}

.pd-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-right: auto;
    min-width: 0;
    overflow: hidden;
    color: var(--pd-ink);
    font-size: 19px;
    font-weight: 600;
    letter-spacing: -.01em;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.pd-brand::before {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 3px;
    background: var(--pd-accent);
    content: "";
}

.pd-brand > span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pd-header-actions { display: flex; align-items: center; gap: 10px; }

.pd-header-actions details { position: relative; }

.pd-language-current,
.pd-header-actions summary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 12px;
    border: 1px solid var(--pd-line-strong);
    border-radius: var(--pd-radius-s);
    background: var(--pd-surface);
    color: var(--pd-ink);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    list-style: none;
}

.pd-flag {
    width: 18px;
    height: 18px;
    flex: none;
    border-radius: 50%;
    background: var(--pd-sky);
}

.pd-header-actions summary::-webkit-details-marker { display: none; }

.pd-header-actions summary::after {
    display: inline-block;
    content: "";
    width: 8px; height: 8px;
    border-right: 1.6px solid var(--pd-ink-3);
    border-bottom: 1.6px solid var(--pd-ink-3);
    transform: translateY(-2px) rotate(45deg);
}

.pd-header-actions summary:hover,
.pd-header-actions details[open] summary {
    border-color: var(--pd-accent);
    background: var(--pd-accent-soft);
    color: var(--pd-accent-deep);
}

.pd-language-panel {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    z-index: 60;
    display: grid;
    gap: 2px;
    min-width: 170px;
    padding: 8px;
    border: 1px solid var(--pd-line);
    border-radius: var(--pd-radius-m);
    background: var(--pd-surface);
    box-shadow: var(--pd-shadow-m);
}

.pd-language-panel a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--pd-radius-s);
    color: var(--pd-ink);
    font-size: 14px;
}

.pd-language-panel a:hover { background: var(--pd-accent-soft); color: var(--pd-accent-deep); }

.pd-business-button,
.pd-login,
.pd-signup {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 44px;
    padding: 0 16px;
    border-radius: var(--pd-radius-s);
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    transition: border-color .18s ease, background-color .18s ease, color .18s ease;
}

.pd-business-button {
    padding: 0 12px;
    border: 1px solid transparent;
    background: transparent;
    color: var(--pd-ink-2);
    font-weight: 500;
}

.pd-business-button:hover {
    border-color: transparent;
    background: var(--pd-accent-soft);
    color: var(--pd-accent-deep);
}

.pd-login {
    border: 1px solid var(--pd-line-strong);
    background: var(--pd-surface);
    color: var(--pd-ink);
}

.pd-login:hover {
    border-color: var(--pd-accent);
    background: var(--pd-accent-soft);
    color: var(--pd-accent-deep);
}

.pd-signup {
    border: 1px solid var(--pd-accent);
    background: var(--pd-accent);
    color: #fff;
}

.pd-signup:hover {
    border-color: var(--pd-accent-deep);
    background: var(--pd-accent-deep);
}

.pd-account {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    max-width: 190px;
    color: var(--pd-ink);
    font-size: 14px;
    font-weight: 600;
}

.pd-account:hover { color: var(--pd-accent-deep); }

.pd-account-avatar {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    flex: none;
    overflow: hidden;
    border-radius: 50%;
    background: var(--pd-accent-soft);
    color: var(--pd-accent-deep);
    font-size: 12px;
    font-weight: 700;
}

.pd-account-avatar img { width: 100%; height: 100%; object-fit: cover; }
.pd-account-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Footer ----------------------------------------------------------------- */

.pd-footer {
    margin-top: 48px;
    padding: 44px 0;
    background: var(--pd-ink);
    color: #fff;
}

.pd-footer > .pd-shell {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.pd-footer strong { color: #fff; font-size: 19px; font-weight: 600; }

.pd-footer p { margin-top: 6px; max-width: 44ch; color: #aeb4c2; font-size: 14px; }

.pd-footer nav { display: flex; gap: 22px; flex-wrap: wrap; }

.pd-footer a,
.pd-footer-link {
    color: #cdd3e0;
    font-size: 14px;
    text-decoration: none;
}

.pd-footer-link {
    appearance: none;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.pd-footer a:hover,
.pd-footer-link:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

/* Hero & search ---------------------------------------------------------- */

.pd-hero {
    padding: 48px 0 44px;
    border-bottom: 1px solid var(--pd-line);
    background: var(--pd-surface);
}

.pd-hero-copy { text-align: center; }

.pd-hero h1 {
    margin: 0 auto;
    max-width: 22ch;
    font-size: clamp(1.85rem, 3.4vw, 2.55rem);
}

.pd-hero-copy > p:not(.pd-kicker) {
    max-width: 54ch;
    margin: 14px auto 0;
    color: var(--pd-ink-3);
    font-size: 16.5px;
}

.pd-search {
    position: relative;
    display: flex;
    align-items: stretch;
    width: min(100%, 960px);
    margin: 28px auto 0;
    padding: 8px;
    border: 1px solid var(--pd-line-strong);
    border-radius: var(--pd-radius-l);
    background: var(--pd-surface);
    box-shadow: var(--pd-shadow-s);
}

.pd-search-field {
    position: relative;
    display: flex;
    flex: 1 1 0;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
    min-width: 0;
    padding: 8px 16px;
    text-align: left;
}

.pd-search-field + .pd-search-field { border-left: 1px solid var(--pd-line); }

.pd-search-field label {
    color: var(--pd-ink);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .01em;
}

.pd-search-field input {
    width: 100%;
    min-width: 0;
    padding: 2px 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--pd-ink);
    font-size: 16px;
}

.pd-search-field input::placeholder { color: var(--pd-ink-3); }

.pd-search-field input[type="search"]::-webkit-search-cancel-button { display: none; }

.pd-search-where { padding-right: 34px; }

.pd-search-where-chevron {
    position: absolute;
    right: 12px;
    bottom: 12px;
    color: var(--pd-ink-4);
    pointer-events: none;
}

.pd-search-submit { align-self: stretch; padding-inline: 26px; }

/* Location combobox ------------------------------------------------------ */

.pd-location-options {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    z-index: 30;
    width: min(440px, calc(100vw - 32px));
    max-height: 320px;
    padding: 8px;
    overflow-y: auto;
    border: 1px solid var(--pd-line);
    border-radius: var(--pd-radius-m);
    background: var(--pd-surface);
    box-shadow: var(--pd-shadow-m);
    overscroll-behavior: contain;
}

.pd-location-options button {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 44px;
    padding: 10px 12px;
    border: 0;
    border-radius: var(--pd-radius-s);
    background: transparent;
    color: var(--pd-ink);
    text-align: left;
    cursor: pointer;
}

.pd-location-options button:hover,
.pd-location-options button:focus-visible,
.pd-location-options button[aria-selected="true"] {
    outline: 0;
    background: var(--pd-accent-soft);
}

.pd-location-options button strong { font-size: 15px; font-weight: 500; }

.pd-location-options button small {
    flex: 0 0 auto;
    color: var(--pd-ink-3);
    font-size: 13px;
}

.pd-location-no-results {
    padding: 16px;
    color: var(--pd-ink-3);
    font-size: 14px;
    text-align: center;
}

.pd-location-error {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    z-index: 31;
    padding: 8px 12px;
    border: 1px solid #f2c1bb;
    border-radius: var(--pd-radius-s);
    background: var(--pd-danger-soft);
    color: var(--pd-danger);
    font-size: 13px;
}

/* Categories ------------------------------------------------------------- */

.pd-category-strip {
    padding: 48px 0 56px;
    border-bottom: 1px solid var(--pd-line);
    background: var(--pd-bg);
}

.pd-section-heading,
.pd-result-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}

.pd-section-heading h2,
.pd-result-heading h2 { font-size: 24px; }

.pd-category-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.pd-category-grid a {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-height: 132px;
    padding: 20px;
    border: 1px solid var(--pd-line);
    border-radius: var(--pd-radius-l);
    background: var(--pd-surface);
    color: var(--pd-ink);
    transition: border-color .18s ease, box-shadow .18s ease;
}

.pd-category-grid a:hover {
    border-color: var(--pd-accent);
    box-shadow: var(--pd-shadow-m);
}

.pd-category-grid strong { font-size: 17px; font-weight: 600; }

.pd-category-grid small { margin-top: auto; color: var(--pd-ink-3); font-size: 13px; }

/* Results ---------------------------------------------------------------- */

.pd-results { width: min(1320px, calc(100% - 48px)); padding: 44px 0 64px; }

.pd-result-heading > span { color: var(--pd-ink-3); font-size: 14px; }

.pd-result-controls {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.pd-result-toolbar { justify-content: space-between; margin-bottom: 18px; }

.pd-result-controls span { color: var(--pd-ink-3); font-size: 14px; }

.pd-result-controls label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--pd-ink-3);
    font-size: 14px;
}

.pd-result-controls select {
    min-height: 44px;
    padding: 8px 12px;
    border: 1px solid var(--pd-line-strong);
    border-radius: var(--pd-radius-s);
    background: var(--pd-surface);
    color: var(--pd-ink);
    font-size: 14px;
}

.pd-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.pd-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--pd-line);
    border-radius: var(--pd-radius-l);
    background: var(--pd-surface);
    color: var(--pd-ink);
    transition: border-color .18s ease, box-shadow .18s ease;
}

.pd-card:hover {
    border-color: var(--pd-accent);
    box-shadow: var(--pd-shadow-m);
}

.pd-card-media {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-bottom: 1px solid var(--pd-line);
    background: var(--pd-accent-soft);
}

.pd-card-media > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pd-card-initial {
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    border-radius: var(--pd-radius-m);
    background: var(--pd-accent-soft-strong);
    color: var(--pd-accent-deep);
    font-size: 1.9rem;
    font-weight: 600;
}

.pd-card-city {
    position: absolute;
    top: 12px;
    left: 12px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    max-width: calc(100% - 24px);
    padding: 5px 10px;
    border: 1px solid var(--pd-line);
    border-radius: 999px;
    background: rgba(255, 255, 255, .94);
    color: var(--pd-ink-2);
    font-size: 12.5px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pd-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 8px;
    padding: 18px 18px 20px;
}

.pd-card h3 { font-size: 19px; }

.pd-category {
    color: var(--pd-accent-deep);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .01em;
}

.pd-card-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--pd-ink-3);
    font-size: 13.5px;
}

.pd-card-rating strong { color: var(--pd-ink); font-weight: 600; }

.pd-card-address {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    color: var(--pd-ink-3);
    font-size: 14px;
}

.pd-card-address .pd-icon-sm { margin-top: 2px; color: var(--pd-ink-4); }

.pd-card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
    padding-top: 12px;
    color: var(--pd-accent-deep);
    font-size: 14px;
    font-weight: 600;
}

.pd-card:hover .pd-card-link { text-decoration: underline; text-underline-offset: 3px; }

.pd-stars {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    color: var(--pd-gold);
}

.pd-stars .pd-icon-sm { width: 14px; height: 14px; }

.pd-star { color: #d7dae2; }

.pd-star.is-filled { color: var(--pd-gold); }

.pd-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 56px 24px;
    border: 1px solid var(--pd-line);
    border-radius: var(--pd-radius-l);
    background: var(--pd-surface);
    text-align: center;
}

.pd-empty > .pd-icon {
    width: 28px;
    height: 28px;
    padding: 14px;
    box-sizing: content-box;
    border-radius: 50%;
    background: var(--pd-accent-soft);
    color: var(--pd-accent-deep);
}

.pd-empty h3 { font-size: 20px; }

.pd-empty p { max-width: 42ch; color: var(--pd-ink-3); font-size: 15px; }

.pd-empty a { margin-top: 10px; }

.pd-empty a.pd-primary-button { color: #fff; }

.pd-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding-top: 36px;
}

.pd-pagination a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 44px;
    padding: 10px 16px;
    border: 1px solid var(--pd-line-strong);
    border-radius: var(--pd-radius-s);
    background: var(--pd-surface);
    color: var(--pd-ink);
    font-size: 14px;
    font-weight: 600;
}

.pd-pagination a:hover {
    border-color: var(--pd-accent);
    background: var(--pd-accent-soft);
    color: var(--pd-accent-deep);
}

.pd-pagination span { color: var(--pd-ink-3); font-size: 14px; }

/* Compact hero for result pages ------------------------------------------ */

.pd-hero-compact { padding: 22px 0 26px; }

.pd-hero-compact .pd-hero-copy { text-align: left; }

.pd-hero-compact h1 { margin: 0; max-width: none; font-size: clamp(1.5rem, 2.6vw, 2rem); }

.pd-hero-compact .pd-hero-copy > p:not(.pd-kicker) { max-width: 70ch; margin: 8px 0 0; font-size: 15px; }

.pd-hero-compact .pd-search { width: 100%; margin: 18px 0 0; }

/* App-style results layout ----------------------------------------------- */

.pd-listing-layout {
    display: grid;
    grid-template-columns: 264px minmax(0, 1fr);
    align-items: start;
    gap: 24px;
}

.pd-filters {
    position: sticky;
    top: calc(var(--pd-header-h) + 16px);
    padding: 18px;
    border: 1px solid var(--pd-line);
    border-radius: var(--pd-radius-l);
    background: var(--pd-surface);
}

.pd-filters summary { display: none; }

.pd-filter-group + .pd-filter-group {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--pd-line);
}

.pd-filter-group > strong { display: block; margin-bottom: 6px; font-size: 14.5px; }

.pd-filter-list { display: grid; gap: 2px; max-height: 240px; overflow-y: auto; }

.pd-filter-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 40px;
    padding: 8px 10px;
    border-radius: var(--pd-radius-s);
    color: var(--pd-ink-2);
    font-size: 14px;
}

.pd-filter-list a:hover { background: var(--pd-accent-soft); color: var(--pd-accent-deep); }

.pd-filter-list a[aria-current="page"] { background: var(--pd-accent-soft); color: var(--pd-accent-deep); font-weight: 600; }

.pd-filter-list small { color: var(--pd-ink-3); font-size: 12.5px; }

.pd-filter-button {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 40px;
    padding: 8px 10px;
    border: 0;
    border-radius: var(--pd-radius-s);
    background: transparent;
    color: var(--pd-accent-deep);
    font-size: 14px;
    font-weight: 600;
    text-align: left;
}

.pd-filter-button:hover { background: var(--pd-accent-soft); }

.pd-filter-button[disabled] { opacity: .6; cursor: wait; }

.pd-near-me-status { margin: 4px 0 0; color: var(--pd-danger); font-size: 13px; }

.pd-result-list { display: grid; gap: 16px; }

.pd-result-item {
    display: grid;
    grid-template-columns: 236px minmax(0, 1fr);
    gap: 18px;
    padding: 14px;
    border: 1px solid var(--pd-line);
    border-radius: var(--pd-radius-l);
    background: var(--pd-surface);
    transition: border-color .18s ease, box-shadow .18s ease;
}

.pd-result-item:hover { border-color: var(--pd-accent); box-shadow: var(--pd-shadow-m); }

.pd-result-media {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    border-radius: var(--pd-radius-m);
    background: var(--pd-accent-soft);
}

.pd-result-media img { width: 100%; height: 100%; object-fit: cover; }

.pd-result-body { display: flex; flex-direction: column; gap: 5px; min-width: 0; }

.pd-result-body h3 { font-size: 20px; }

.pd-result-body h3 a:hover { color: var(--pd-accent-deep); text-decoration: underline; text-underline-offset: 3px; }

.pd-result-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    color: var(--pd-ink-3);
    font-size: 14px;
}

.pd-result-meta strong { color: var(--pd-ink); font-weight: 600; }

.pd-result-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: auto; padding-top: 12px; }

/* Applied filter chips --------------------------------------------------- */

.pd-applied-filters { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }

.pd-clear-filters {
    padding: 6px 4px;
    color: var(--pd-accent-deep);
    font-size: 13.5px;
    font-weight: 600;
}

.pd-clear-filters:hover { text-decoration: underline; text-underline-offset: 3px; }
.pd-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 36px;
    padding: 6px 12px;
    border: 1px solid var(--pd-line-strong);
    border-radius: 999px;
    background: var(--pd-surface);
    color: var(--pd-ink-2);
    font-size: 13.5px;
    font-weight: 500;
}

.pd-chip:hover { border-color: var(--pd-accent); color: var(--pd-accent-deep); }

.pd-chip .pd-icon-sm { color: var(--pd-ink-3); }

/* Results map ------------------------------------------------------------ */

.pd-results-map { min-width: 0; }

.pd-map-toggle {
    display: none;
    gap: 4px;
    margin-bottom: 12px;
    padding: 4px;
    border: 1px solid var(--pd-line);
    border-radius: var(--pd-radius-s);
    background: var(--pd-surface);
}

.pd-map-toggle button {
    flex: 1;
    min-height: 40px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--pd-ink-2);
    font-size: 14px;
    font-weight: 600;
}

.pd-map-toggle button[aria-pressed="true"] { background: var(--pd-accent); color: #fff; }

.pd-map-canvas {
    height: 460px;
    border: 1px solid var(--pd-line);
    border-radius: var(--pd-radius-l);
    background: var(--pd-accent-soft);
}

.pd-map-canvas .leaflet-container { font: inherit; }

@media (min-width: 1280px) {
    .pd-listing-layout.has-map { grid-template-columns: 232px minmax(0, 1fr) minmax(320px, 380px); }
    .pd-listing-layout.has-map .pd-result-item { grid-template-columns: 180px minmax(0, 1fr); }
    .pd-results-map { position: sticky; top: calc(var(--pd-header-h) + 16px); }
    .pd-map-canvas { height: calc(100vh - var(--pd-header-h) - 40px); min-height: 440px; }
}

@media (max-width: 1279px) {
    .pd-results-map { display: none; }
    .pd-listing-layout[data-view="map"] .pd-results-col { display: none; }
    .pd-listing-layout[data-view="map"] .pd-results-map { display: block; }
    .pd-map-toggle { display: flex; grid-column: 1 / -1; }
    .pd-map-canvas { height: 62vh; }
}

/* Breadcrumbs ------------------------------------------------------------ */

.pd-breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    color: var(--pd-ink-3);
    font-size: 14.5px;
}

.pd-index-breadcrumbs { padding: 18px 0 0; }

.pd-breadcrumbs a { color: var(--pd-ink-2); }

.pd-breadcrumbs a:hover { color: var(--pd-accent-deep); text-decoration: underline; text-underline-offset: 3px; }

.pd-breadcrumbs > span[aria-hidden="true"] { color: var(--pd-ink-4); }

.pd-breadcrumbs [aria-current="page"] { color: var(--pd-ink); font-weight: 600; }

/* Detail top ------------------------------------------------------------- */

.pd-detail-page { padding-bottom: 56px; }

.pd-detail-top {
    padding-top: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--pd-line);
    background: var(--pd-surface);
}

.pd-detail-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-top: 18px;
}

.pd-detail-heading h1 { margin-top: 2px; font-size: clamp(1.75rem, 3vw, 2.35rem); }

.pd-detail-meta {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-top: 8px;
    color: var(--pd-ink-3);
    font-size: 15px;
}

.pd-detail-meta .pd-icon-sm { color: var(--pd-ink-4); }

.pd-heading-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    color: var(--pd-ink-2);
    font-size: 14.5px;
}

.pd-heading-rating strong { font-weight: 600; }

.pd-initial-mark {
    display: grid;
    place-items: center;
    width: 88px;
    height: 88px;
    flex: none;
    border-radius: var(--pd-radius-l);
    background: var(--pd-accent-soft-strong);
    color: var(--pd-accent-deep);
    font-size: 2.4rem;
    font-weight: 600;
}

/* Gallery ---------------------------------------------------------------- */

.pd-photo-gallery {
    position: relative;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: repeat(2, minmax(130px, 200px));
    gap: 8px;
    margin-top: 20px;
}

.pd-photo-gallery > img {
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: cover;
    border-radius: var(--pd-radius-m);
    background: var(--pd-sky);
    transition: opacity .18s ease;
}

.pd-photo-gallery > img:hover { opacity: .92; }

.pd-photo-gallery .pd-photo-main { grid-row: span 2; }

.pd-photo-button {
    position: absolute;
    right: 14px;
    bottom: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 10px 16px;
    border: 1px solid var(--pd-line-strong);
    border-radius: var(--pd-radius-s);
    background: rgba(255, 255, 255, .96);
    color: var(--pd-ink);
    font-size: 14px;
    font-weight: 600;
    box-shadow: var(--pd-shadow-s);
}

.pd-photo-button:hover { border-color: var(--pd-accent); color: var(--pd-accent-deep); }

.pd-gallery-dialog {
    width: min(1040px, calc(100% - 32px));
    max-height: calc(100vh - 32px);
    padding: 16px;
    border: 0;
    border-radius: var(--pd-radius-l);
}

.pd-gallery-dialog::backdrop { background: rgba(15, 20, 30, .78); }

.pd-gallery-dialog form { display: flex; justify-content: flex-end; margin-bottom: 8px; }

.pd-gallery-dialog form button {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--pd-line);
    border-radius: var(--pd-radius-s);
    background: var(--pd-surface);
    color: var(--pd-ink);
    cursor: pointer;
}

.pd-gallery-dialog > div {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    overflow-y: auto;
    max-height: calc(100vh - 140px);
}

.pd-gallery-dialog img { width: 100%; height: auto; border-radius: var(--pd-radius-m); }

/* Tabs ------------------------------------------------------------------- */

.pd-detail-tabs-bar {
    position: sticky;
    top: var(--pd-header-h);
    z-index: 30;
    border-bottom: 1px solid var(--pd-line);
    background: rgba(255, 255, 255, .97);
}

.pd-detail-tabs {
    display: flex;
    gap: 28px;
    overflow-x: auto;
    scrollbar-width: none;
}

.pd-detail-tabs::-webkit-scrollbar { display: none; }

.pd-detail-tabs.is-scrollable {
    -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent);
    mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent);
}

.pd-detail-tabs a {
    display: inline-flex;
    align-items: center;
    min-height: var(--pd-tabs-h);
    border-bottom: 2px solid transparent;
    color: var(--pd-ink-3);
    font-size: 14.5px;
    font-weight: 600;
    white-space: nowrap;
}

.pd-detail-tabs a:hover { color: var(--pd-ink); }

.pd-detail-tabs a[aria-current="page"] {
    color: var(--pd-accent-deep);
    border-bottom-color: var(--pd-accent);
}

/* Detail layout ---------------------------------------------------------- */

.pd-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    align-items: start;
    gap: 28px;
    padding: 32px 0 0;
}

.pd-detail-main { display: grid; gap: 20px; min-width: 0; }

.pd-detail-section {
    min-width: 0;
    padding: 26px 28px;
    border: 1px solid var(--pd-line);
    border-radius: var(--pd-radius-l);
    background: var(--pd-surface);
    scroll-margin-top: calc(var(--pd-header-h) + var(--pd-tabs-h) + 20px);
}

.pd-detail-section h2 { font-size: 21px; }

.pd-detail-section > p { margin-top: 12px; max-width: 68ch; color: var(--pd-ink-2); }

.pd-description { font-size: 16px; line-height: 1.75; }

.pd-attribute-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 20px;
}

.pd-attribute-grid span {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border: 1px solid var(--pd-line);
    border-radius: var(--pd-radius-m);
    color: var(--pd-ink-2);
    font-size: 14px;
}

.pd-attribute-grid .pd-icon-sm { color: var(--pd-success); }

/* Services --------------------------------------------------------------- */

.pd-service-list { margin-top: 6px; }

.pd-service-list article {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    padding: 16px 0;
    border-top: 1px solid var(--pd-line);
}

.pd-service-list article:first-child { border-top: 0; padding-top: 12px; }

.pd-service-mark {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: var(--pd-radius-m);
    background: var(--pd-accent-soft);
    color: var(--pd-accent-deep);
}

.pd-service-list h3 { font-size: 16px; font-weight: 600; }

.pd-service-list p { margin-top: 3px; color: var(--pd-ink-3); font-size: 14px; }

.pd-service-list small {
    display: block;
    margin-top: 6px;
    color: var(--pd-ink-3);
    font-size: 13px;
}

.pd-service-list strong { font-size: 15.5px; font-weight: 600; white-space: nowrap; }

/* Location & hours ------------------------------------------------------- */

.pd-section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }

.pd-location-grid {
    display: grid;
    grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
    align-items: start;
    gap: 16px;
    margin-top: 20px;
}

.pd-address-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 20px;
    border-radius: var(--pd-radius-m);
    background: var(--pd-accent-soft);
    color: var(--pd-ink);
    font-size: 15px;
}

.pd-address-card strong { font-size: 16px; }

.pd-address-card span { color: var(--pd-ink-2); }

.pd-hours { display: grid; align-content: start; }

.pd-hours-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    padding: 11px 0;
    border-bottom: 1px solid var(--pd-line);
    font-size: 14.5px;
}

.pd-hours-row:first-child { padding-top: 0; }

.pd-hours-row:last-child { padding-bottom: 0; border-bottom: 0; }

.pd-hours-row strong { font-weight: 500; }

.pd-hours-row span { color: var(--pd-ink-2); font-variant-numeric: tabular-nums; }

.pd-hours-row.is-closed strong,
.pd-hours-row.is-closed span { color: var(--pd-ink-3); }

.pd-hours-empty {
    display: grid;
    place-items: center;
    padding: 24px;
    border: 1px dashed var(--pd-line-strong);
    border-radius: var(--pd-radius-m);
    color: var(--pd-ink-3);
    font-size: 14px;
}

.pd-hours-heading { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

.pd-hours-status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 4px 11px;
    border-radius: 999px;
    background: var(--pd-success-soft);
    color: var(--pd-success);
    font-size: 13px;
    font-weight: 600;
}

.pd-hours-status::before {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
    content: "";
}

.pd-hours-status[data-state="closed"] { background: var(--pd-danger-soft); color: var(--pd-danger); }

.pd-hours-row.is-today strong { color: var(--pd-accent-deep); font-weight: 600; }

.pd-similar { margin-top: 20px; }

.pd-similar .pd-grid { margin-top: 20px; }

.pd-mobile-cta {
    display: none;
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 35;
    gap: 10px;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid var(--pd-line);
    background: rgba(255, 255, 255, .98);
}

.pd-mobile-cta .pd-primary-button { flex: 1; }

.pd-mobile-cta .pd-outline-button { flex: none; width: 48px; padding: 0; }

.pd-map {
    width: 100%;
    height: 300px;
    margin-top: 16px;
    border: 1px solid var(--pd-line);
    border-radius: var(--pd-radius-m);
}

/* Reviews ---------------------------------------------------------------- */

.pd-rating-summary {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pd-rating-summary > strong { font-size: 30px; font-weight: 600; line-height: 1; }

.pd-rating-summary > div { display: flex; flex-direction: column; gap: 2px; }

.pd-rating-summary span:last-child { color: var(--pd-ink-3); font-size: 13.5px; }

.pd-review-filters {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin: 20px 0 4px;
    padding: 14px;
    border: 1px solid var(--pd-line);
    border-radius: var(--pd-radius-m);
    background: var(--pd-bg);
}

.pd-review-filters input[type="search"],
.pd-review-filters select {
    min-height: 44px;
    padding: 8px 12px;
    border: 1px solid var(--pd-line-strong);
    border-radius: var(--pd-radius-s);
    background: var(--pd-surface);
    color: var(--pd-ink);
    font-size: 14px;
}

.pd-review-filters input[type="search"] { flex: 1 1 220px; min-width: 0; }

.pd-review-filters label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    color: var(--pd-ink-2);
    font-size: 14px;
    cursor: pointer;
}

.pd-review-filters input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--pd-accent); }

.pd-review-filter-count { margin-top: 10px; color: var(--pd-ink-3); font-size: 13.5px; }

.pd-review-empty {
    margin-top: 16px;
    padding: 28px;
    border: 1px dashed var(--pd-line-strong);
    border-radius: var(--pd-radius-m);
    color: var(--pd-ink-3);
    text-align: center;
}

.pd-review {
    padding: 22px 0;
    border-top: 1px solid var(--pd-line);
}

.pd-review:first-of-type { margin-top: 12px; }

.pd-review-head {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
}

.pd-review-avatar {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--pd-accent-soft);
    color: var(--pd-accent-deep);
    font-size: 16px;
    font-weight: 600;
}

.pd-review-identity { display: flex; flex-direction: column; min-width: 0; }

.pd-review-identity strong { font-size: 15px; font-weight: 600; }

.pd-review-identity small { color: var(--pd-ink-3); font-size: 13px; }

.pd-review-rating { display: inline-flex; align-items: center; gap: 2px; }

.pd-review-body { margin-top: 12px; color: var(--pd-ink-2); font-size: 15px; line-height: 1.7; }

.pd-write-review { margin-top: 22px; padding: 18px 0 22px; border-top: 1px solid var(--pd-line); border-bottom: 1px solid var(--pd-line); }
.pd-write-review-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.pd-write-review-head h3 { margin: 0; font-size: 18px; }
.pd-write-review-head p { margin: 4px 0 0; color: var(--pd-ink-3); font-size: 13px; }
.pd-review-editor { margin-top: 18px; }
.pd-review-aspect-list { display: grid; gap: 12px; }
.pd-review-aspect-block { display: grid; gap: 8px; padding: 12px; border: 1px solid var(--pd-line); border-radius: var(--pd-radius-m); }
.pd-review-aspect-block textarea { min-height: 64px; }
.pd-review-comments { margin-top: 12px; }
.pd-review-editor label { display: flex; flex-direction: column; gap: 6px; color: var(--pd-ink-2); font-size: 13px; font-weight: 600; }
.pd-review-editor select,
.pd-review-editor textarea { width: 100%; border: 1px solid var(--pd-line-strong); border-radius: 8px; padding: 9px 10px; background: #fff; color: var(--pd-ink); font: inherit; font-weight: 400; }
.pd-review-editor select { min-height: 42px; }
.pd-review-editor textarea { min-height: 76px; resize: vertical; }
.pd-review-upload { margin-top: 12px; }
.pd-review-upload input[type="file"] { padding: 8px; border: 1px dashed var(--pd-line-strong); border-radius: 8px; background: #fff; }
.pd-review-upload small { color: var(--pd-ink-3); font-weight: 400; }
.pd-review-status { margin: 12px 0 0; color: var(--pd-ink-3); font-size: 13px; }
.pd-review-status[data-state="success"] { color: #18794e; }
.pd-review-status[data-state="error"] { color: #b42318; }
.pd-review-aspect-summary { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; color: var(--pd-ink-3); font-size: 12px; }
.pd-review-aspect-summary span { padding: 5px 8px; border: 1px solid var(--pd-line); border-radius: 999px; }
.pd-review-aspect-summary strong { color: var(--pd-ink); }
.pd-review-detail-summary { margin-top: 12px; padding-left: 12px; border-left: 2px solid var(--pd-line); color: var(--pd-ink-2); font-size: 13px; line-height: 1.55; }
.pd-review-detail-summary p { margin: 4px 0; }
.pd-review-detail-summary strong { color: var(--pd-ink); }

/* Review drawer ---------------------------------------------------------- */

.pd-review-dialog {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(560px, 100%);
    max-width: 100%;
    height: 100%;
    max-height: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    background: var(--pd-surface);
    color: var(--pd-ink);
    box-shadow: -18px 0 48px rgba(16, 24, 40, .22);
    overflow-y: auto;
    overscroll-behavior: contain;
    transform: translateX(100%);
    transition: transform .22s ease, overlay .22s ease allow-discrete, display .22s ease allow-discrete;
}

.pd-review-dialog[open] { transform: translateX(0); }

@starting-style {
    .pd-review-dialog[open] { transform: translateX(100%); }
}

.pd-review-dialog::backdrop { background: rgba(15, 20, 30, .5); }

.pd-review-dialog-head {
    position: sticky;
    top: 0;
    z-index: 1;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 22px 16px;
    border-bottom: 1px solid var(--pd-line);
    background: var(--pd-surface);
}

.pd-review-dialog-head h3 { margin: 0; font-size: 19px; }

.pd-review-dialog-head p { margin: 4px 0 0; color: var(--pd-ink-3); font-size: 13px; }

.pd-dialog-close {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    flex: none;
    border: 1px solid var(--pd-line);
    border-radius: var(--pd-radius-s);
    background: var(--pd-surface);
    color: var(--pd-ink);
}

.pd-dialog-close:hover { border-color: var(--pd-accent); color: var(--pd-accent-deep); }

.pd-review-dialog .pd-review-editor { margin-top: 0; padding: 20px 22px 28px; }

.pd-review-dialog-actions { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 20px; }

.pd-icon-button {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--pd-line-strong);
    border-radius: var(--pd-radius-s);
    background: var(--pd-surface);
    color: var(--pd-ink);
    transition: border-color .18s ease, background-color .18s ease, color .18s ease;
}

.pd-icon-button:hover { border-color: var(--pd-accent); background: var(--pd-accent-soft); color: var(--pd-accent-deep); }

.pd-icon-button-primary {
    border-color: var(--pd-accent);
    background: var(--pd-accent);
    color: #fff;
}

.pd-icon-button-primary:hover { border-color: var(--pd-accent-deep); background: var(--pd-accent-deep); color: #fff; }

.pd-review-images { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }

.pd-review-images img {
    width: 96px;
    height: 72px;
    object-fit: cover;
    border: 1px solid var(--pd-line);
    border-radius: var(--pd-radius-s);
}

.pd-review-videos { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; margin-top: 12px; }
.pd-review-videos video { width: 100%; max-height: 240px; border-radius: 8px; background: #111; }

.pd-owner-response {
    margin-top: 14px;
    padding: 14px 16px 14px 18px;
    border: 1px solid var(--pd-line);
    border-left-color: var(--pd-accent);
    border-radius: var(--pd-radius-m);
    background: var(--pd-sky);
}

.pd-owner-response strong {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--pd-accent-deep);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .02em;
}

.pd-owner-response p {
    margin-top: 6px;
    color: var(--pd-ink-2);
    font-size: 14.5px;
    line-height: 1.65;
    white-space: pre-wrap;
}

.pd-owner-response small { display: block; margin-top: 6px; color: var(--pd-ink-3); font-size: 12.5px; }

/* Business card ---------------------------------------------------------- */

.pd-business-card {
    position: sticky;
    top: calc(var(--pd-header-h) + 16px);
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
    padding: 24px;
    border: 1px solid var(--pd-line);
    border-radius: var(--pd-radius-l);
    background: var(--pd-surface);
    box-shadow: var(--pd-shadow-s);
}

.pd-business-card h2 { font-size: 20px; }

.pd-business-card > .pd-primary-button,
.pd-business-card > .pd-outline-button { width: 100%; }

.pd-business-card > .pd-primary-button { margin-top: 8px; }

.pd-business-card > .pd-primary-button:not(:first-of-type) {
    border-color: var(--pd-line-strong);
    background: var(--pd-surface);
    color: var(--pd-ink);
}

.pd-business-card > .pd-primary-button:not(:first-of-type):hover {
    border-color: var(--pd-accent);
    background: var(--pd-accent-soft);
    color: var(--pd-accent-deep);
}

.pd-secondary-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 2px; }

.pd-secondary-actions [aria-pressed="true"] {
    border-color: var(--pd-success);
    background: var(--pd-success-soft);
    color: var(--pd-success);
}

.pd-claim-panel {
    margin-top: 14px;
    padding: 16px;
    border: 1px solid var(--pd-accent-soft-strong);
    border-radius: var(--pd-radius-m);
    background: var(--pd-accent-soft);
}

.pd-claim-panel p { margin: 0 0 8px; color: var(--pd-ink-3); font-size: 14px; }

.pd-claim-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 44px;
    color: var(--pd-accent-deep);
    font-size: 14px;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.pd-claim-pending {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--pd-success);
    font-size: 14px;
    font-weight: 600;
}

/* Suggest dialog --------------------------------------------------------- */

.pd-suggestion-dialog {
    width: min(720px, calc(100% - 32px));
    max-height: calc(100vh - 32px);
    padding: 0;
    border: 0;
    border-radius: var(--pd-radius-l);
    color: var(--pd-ink);
    box-shadow: 0 24px 64px -16px rgba(16, 24, 40, .4);
}

.pd-suggestion-dialog::backdrop { background: rgba(15, 20, 30, .6); }

.pd-dialog-close-form { display: flex; justify-content: flex-end; padding: 12px 12px 0; }

.pd-dialog-close-form button {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--pd-line);
    border-radius: var(--pd-radius-s);
    background: var(--pd-surface);
    color: var(--pd-ink);
    cursor: pointer;
}

.pd-dialog-close-form button:hover { border-color: var(--pd-accent); color: var(--pd-accent-deep); }

.pd-suggestion-form { padding: 4px 28px 28px; }

.pd-suggestion-form h2 { font-size: 22px; }

.pd-suggestion-form > p:not(.pd-kicker) { margin-top: 8px; color: var(--pd-ink-3); font-size: 14.5px; }

.pd-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 22px 0 16px;
}

.pd-form-grid label {
    display: grid;
    gap: 6px;
    color: var(--pd-ink-2);
    font-size: 14px;
    font-weight: 500;
}

.pd-form-grid input,
.pd-form-grid textarea {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid var(--pd-line-strong);
    border-radius: var(--pd-radius-s);
    background: var(--pd-surface);
    color: var(--pd-ink);
    font-size: 15px;
}

.pd-form-grid textarea { min-height: 96px; resize: vertical; }

.pd-form-grid input:focus,
.pd-form-grid textarea:focus { border-color: var(--pd-accent); outline: 3px solid var(--pd-accent-ring); outline-offset: 0; }

.pd-form-wide { grid-column: 1 / -1; }

.pd-honeypot {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

.pd-form-status { min-height: 22px; margin-bottom: 6px; color: var(--pd-ink-2); font-size: 14px; }

.pd-form-status[data-state="error"] { color: var(--pd-danger); }

.pd-form-status[data-state="success"] { color: var(--pd-success); }

.pd-suggestion-form button[disabled] { opacity: .55; cursor: wait; }

/* Brand variants --------------------------------------------------------- */

.pd-brand-ocean {
    --pd-accent: #0b7da4;
    --pd-accent-deep: #07546f;
    --pd-accent-soft: #e5f5fb;
    --pd-accent-soft-strong: #d1edf6;
    --pd-accent-ring: rgba(11, 125, 164, .3);
}

.pd-brand-plum {
    --pd-accent: #824e91;
    --pd-accent-deep: #5b2e68;
    --pd-accent-soft: #f4eafa;
    --pd-accent-soft-strong: #ead8ee;
    --pd-accent-ring: rgba(130, 78, 145, .3);
}

.pd-brand-slate {
    --pd-accent: #4b647c;
    --pd-accent-deep: #31465d;
    --pd-accent-soft: #edf2f6;
    --pd-accent-soft-strong: #dfe8ef;
    --pd-accent-ring: rgba(75, 100, 124, .3);
}

.pd-brand-sunset {
    --pd-accent: #b64f3f;
    --pd-accent-deep: #84392f;
    --pd-accent-soft: #fff0e9;
    --pd-accent-soft-strong: #f9ded1;
    --pd-accent-ring: rgba(182, 79, 63, .3);
}

/* Verified badge --------------------------------------------------------- */

.pd-verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 9px;
    border-radius: 999px;
    background: var(--pd-success-soft);
    color: var(--pd-success);
    font-size: 12.5px;
    font-weight: 600;
    white-space: nowrap;
}

.pd-detail-title { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

/* Rating breakdown ------------------------------------------------------- */

.pd-rating-breakdown { display: grid; gap: 6px; max-width: 440px; margin-top: 16px; }

.pd-rating-row {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    align-items: center;
    gap: 10px;
    color: var(--pd-ink-3);
    font-size: 13px;
}

.pd-rating-row-label { display: inline-flex; align-items: center; gap: 4px; color: var(--pd-ink-2); }

.pd-rating-bar {
    height: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: var(--pd-line);
}

.pd-rating-bar > span {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: var(--pd-gold);
}

.pd-rating-row-count { text-align: right; font-variant-numeric: tabular-nums; }

/* Sub-category filter links ---------------------------------------------- */

.pd-filter-list a.pd-filter-child { padding-left: 22px; font-size: 13.5px; }

/* Filter form ------------------------------------------------------------ */

.pd-filter-form {
    display: grid;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--pd-line);
}

.pd-filter-options { display: grid; gap: 2px; }

.pd-filter-check {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 44px;
    padding: 6px 10px;
    border-radius: var(--pd-radius-s);
    color: var(--pd-ink-2);
    font-size: 14px;
    cursor: pointer;
}

.pd-filter-check:hover { background: var(--pd-accent-soft); }

.pd-filter-check input[type="checkbox"],
.pd-filter-check input[type="radio"] {
    width: 17px;
    height: 17px;
    flex: none;
    accent-color: var(--pd-accent);
}

.pd-filter-check:has(input:checked) {
    background: var(--pd-accent-soft);
    color: var(--pd-accent-deep);
    font-weight: 600;
}

.pd-price-range { display: flex; align-items: center; gap: 8px; }

.pd-price-range input {
    width: 100%;
    min-width: 0;
    min-height: 40px;
    padding: 8px 10px;
    border: 1px solid var(--pd-line-strong);
    border-radius: var(--pd-radius-s);
    background: var(--pd-surface);
    color: var(--pd-ink);
    font-size: 14px;
}

.pd-price-range span { color: var(--pd-ink-3); }

.pd-near-me-active { margin-bottom: 8px; }

.pd-filter-select select {
    width: 100%;
    min-height: 40px;
    padding: 8px 10px;
    border: 1px solid var(--pd-line-strong);
    border-radius: var(--pd-radius-s);
    background: var(--pd-surface);
    color: var(--pd-ink);
    font-size: 14px;
}

.pd-filter-actions { display: flex; align-items: center; gap: 10px; margin-top: 18px; }

.pd-filter-actions .pd-primary-button { flex: 1; }

/* Result map clusters ---------------------------------------------------- */
.pd-map-canvas .marker-cluster-small,
.pd-map-canvas .marker-cluster-medium,
.pd-map-canvas .marker-cluster-large { background-color: rgba(38, 109, 240, .18); }

.pd-map-canvas .marker-cluster-small div,
.pd-map-canvas .marker-cluster-medium div,
.pd-map-canvas .marker-cluster-large div {
    background-color: var(--pd-accent);
    color: #fff;
    font-weight: 600;
}

/* Saved page & header link ----------------------------------------------- */

.pd-saved-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 44px;
    padding: 0 12px;
    border-radius: var(--pd-radius-s);
    color: var(--pd-ink-2);
    font-size: 14px;
    font-weight: 500;
}

.pd-saved-link:hover { background: var(--pd-accent-soft); color: var(--pd-accent-deep); }

.pd-saved-count {
    display: inline-grid;
    place-items: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    background: var(--pd-accent);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
}

.pd-saved-page { padding-top: 8px; padding-bottom: 64px; }

.pd-saved-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin: 12px 0 20px;
}

.pd-saved-heading h1 { font-size: clamp(1.6rem, 2.8vw, 2.1rem); }

.pd-saved-subheading { margin: 36px 0 16px; font-size: 20px; }

/* Responsive ------------------------------------------------------------- */

@media (max-width: 1080px) {
    .pd-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pd-category-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .pd-listing-layout { grid-template-columns: 1fr; gap: 16px; }
    .pd-filters { position: static; padding: 0; }
    .pd-filters summary {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        min-height: 52px;
        padding: 0 18px;
        cursor: pointer;
        font-weight: 600;
        list-style: none;
    }
    .pd-filters summary::-webkit-details-marker { display: none; }
    .pd-filters summary::after {
        width: 9px;
        height: 9px;
        border-right: 2px solid var(--pd-ink-3);
        border-bottom: 2px solid var(--pd-ink-3);
        transform: rotate(45deg) translateY(-2px);
        content: "";
    }
    .pd-filters[open] summary::after { transform: rotate(225deg) translateY(-2px); }
    .pd-filters-body { display: none; padding: 0 18px 18px; }
    .pd-filters[open] .pd-filters-body { display: block; }
    .pd-filters-body .pd-filter-group:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
}

@media (max-width: 980px) {
    .pd-detail-layout { grid-template-columns: 1fr; gap: 20px; }
    .pd-business-card { position: static; order: -1; }
    .pd-detail-heading { align-items: flex-start; }
    .pd-mobile-cta { display: flex; }
    .pd-detail-page { padding-bottom: 104px; }
}

@media (max-width: 720px) {
    .pd-shell { width: min(100% - 32px, var(--pd-shell)); }

    /* Header */
    .pd-header-inner { gap: 8px; }
    .pd-brand { max-width: 38%; font-size: 17px; }
    .pd-brand::before { width: 8px; height: 8px; }
    .pd-business-button { display: none; }
    .pd-language-current { display: none; }
    .pd-language-name { display: none; }
    .pd-saved-link { display: none; }
    .pd-header-actions { gap: 8px; }
    .pd-header-actions summary { padding: 0 10px; }
    .pd-login { width: 44px; padding: 0; }
    .pd-login .pd-btn-label { display: none; }
    .pd-signup { padding: 0 10px; }

    /* Hero */
    .pd-hero { padding: 32px 0 28px; }
    .pd-hero-compact { padding: 18px 0 22px; }
    .pd-hero-copy > p:not(.pd-kicker) { font-size: 15.5px; }

    /* Results list */
    .pd-result-item { grid-template-columns: 1fr; gap: 14px; }
    .pd-result-media { aspect-ratio: 16 / 9; }
    .pd-result-body h3 { font-size: 18px; }

    .pd-search { flex-direction: column; padding: 8px; border-radius: var(--pd-radius-m); }
    .pd-search-field { min-height: 62px; padding: 8px 12px; }
    .pd-search-field + .pd-search-field { border-top: 1px solid var(--pd-line); border-left: 0; }
    .pd-search-submit { width: 100%; min-height: 48px; margin-top: 2px; }
    .pd-location-options { top: calc(100% + 6px); width: calc(100vw - 48px); }

    /* Categories & results */
    .pd-category-strip { padding: 36px 0 40px; }
    .pd-category-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .pd-category-grid a { min-height: 116px; padding: 16px; gap: 10px; }
    .pd-results { padding: 36px 0 48px; }
    .pd-grid { grid-template-columns: 1fr; }
    .pd-result-heading,
    .pd-section-heading { align-items: flex-start; flex-direction: column; gap: 10px; }

    /* Detail */
    .pd-detail-top { padding-top: 16px; padding-bottom: 20px; }
    .pd-detail-heading { flex-direction: column; gap: 16px; }
    .pd-initial-mark { width: 64px; height: 64px; font-size: 1.8rem; }
    .pd-detail-tabs { gap: 22px; }
    .pd-detail-section { padding: 22px 18px; }
    .pd-location-grid,
    .pd-attribute-grid { grid-template-columns: 1fr; }
    .pd-review-filters { flex-direction: column; align-items: stretch; }
    .pd-review-filters input[type="search"],
    .pd-review-filters select,
    .pd-review-filters button { width: 100%; }
    .pd-review-filters label { width: 100%; }
    .pd-write-review-head { align-items: stretch; flex-direction: column; }
    .pd-write-review-head .pd-outline-button,
    .pd-write-review-head .pd-primary-button { width: 100%; }
    .pd-review-dialog-head { padding: 16px 18px 12px; }
    .pd-review-dialog .pd-review-editor { padding: 16px 18px 24px; }
    .pd-review-head { grid-template-columns: 44px minmax(0, 1fr); }
    .pd-review-rating { grid-column: 2; }
    .pd-service-list article { grid-template-columns: 40px minmax(0, 1fr); }
    .pd-service-list article > strong { grid-column: 2; }
    .pd-photo-gallery {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: none;
        grid-auto-rows: 108px;
    }
    .pd-photo-gallery .pd-photo-main { grid-column: 1 / -1; grid-row: auto; height: 210px; }
    .pd-photo-gallery > img:first-child { border-radius: var(--pd-radius-m); }
    .pd-gallery-dialog > div { grid-template-columns: 1fr; }
    .pd-pagination { flex-wrap: wrap; }

    /* Suggest dialog */
    .pd-form-grid { grid-template-columns: 1fr; }
    .pd-form-wide { grid-column: auto; }
    .pd-suggestion-form { padding: 4px 20px 24px; }

    /* Footer */
    .pd-footer { margin-top: 36px; padding: 36px 0; }
    .pd-footer > .pd-shell { flex-direction: column; }
}

@media (max-width: 420px) {
    .pd-category-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}
