:root {
    --bg-page: #ffffff;
    --bg-subtle: #f8f9fa;
    --bg-tile: #f1f3f5;
    --border: #e9ecef;
    --border-strong: #d7dbe0;
    --text: #0f172a;
    --muted: #64748b;
    --accent: #2563eb;
    --radius-pill: 999px;
    --radius-card: 20px;
    --radius-sm: 12px;
    --font: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { color-scheme: light; }
body {
    margin: 0;
    min-height: 100vh;
    background: var(--bg-page);
    color: var(--text);
    font-family: var(--font);
    -webkit-font-smoothing: antialiased;
}
body.modal-open { overflow: hidden; }
button, input, textarea { font: inherit; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; }
[hidden] { display: none !important; }
svg { display: block; }

.app-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.topbar {
    width: 100%;
    min-height: 76px;
    padding: 18px 48px;
    display: grid;
    grid-template-columns: auto minmax(260px, 620px) auto;
    gap: 28px;
    align-items: center;
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: max-content;
}
.brand-logo {
    display: block;
    object-fit: contain;
}
.brand-logo-full {
    width: 176px;
    height: auto;
}
.brand-logo-symbol {
    display: none;
    width: 36px;
    height: 36px;
}

.top-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 18px;
    min-width: max-content;
}
.lang-group {
    display: flex;
    align-items: center;
    gap: 5px;
}
.lang-toggle,
.lang-divider {
    font-size: .8rem;
    color: var(--muted);
}
.lang-toggle {
    border: 0;
    padding: 0;
    background: transparent;
}
.lang-toggle.is-active {
    color: var(--text);
    font-weight: 700;
}
.header-action,
.search-submit,
.primary-button,
.secondary-button {
    border-radius: var(--radius-pill);
    font-size: .86rem;
    font-weight: 600;
    transition: background .18s ease, border-color .18s ease, color .18s ease;
}
.header-action {
    min-height: 40px;
    padding: 0 18px;
    border: 1px solid var(--border);
    background: var(--bg-page);
    color: var(--text);
}
.header-action:hover,
.secondary-button:hover { background: var(--bg-subtle); }

.header-search,
.hero-search-box {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    background: var(--bg-page);
    padding: 6px 6px 6px 17px;
}
.header-search:focus-within,
.hero-search-box:focus-within {
    border-color: var(--border-strong);
}
.header-search input,
.hero-search-box input {
    min-width: 0;
    flex: 1;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--text);
    font-size: .92rem;
}
.search-icon {
    width: 20px;
    height: 20px;
    color: var(--muted);
    flex: 0 0 auto;
}
.search-icon svg,
.details-close svg,
.modal-close svg,
.accordion-indicator svg,
.visit-website-link svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.search-submit {
    min-height: 38px;
    padding: 0 18px;
    border: 1px solid var(--border);
    background: var(--bg-subtle);
    color: var(--text);
}
.search-submit:hover { background: var(--bg-tile); }

.page {
    flex: 1;
    min-height: 0;
}
.home-view {
    min-height: calc(100vh - 168px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 24px 130px;
}
.hero-search {
    width: min(100%, 680px);
    text-align: center;
}
.hero-search-box {
    padding-left: 20px;
}
.hero-search-icon {
    width: 22px;
    height: 22px;
}
.hero-search-box input { font-size: 1rem; }
.hero-search-button {
    min-height: 44px;
    padding-inline: 22px;
}
.home-subtitle {
    margin: 18px 0 0;
    color: var(--muted);
    font-size: .86rem;
    text-align: center;
}

.results-view {
    padding: 10px 48px 56px;
}
.results-layout {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 420px;
    gap: 40px;
    align-items: start;
}
.results-layout.panel-hidden { grid-template-columns: minmax(0, 1fr); }
.results-column { min-width: 0; }
.results-summary,
.results-message {
    margin: 10px 0 8px;
    color: var(--muted);
    font-size: .8rem;
}
.results-list { display: flex; flex-direction: column; }
.search-result {
    width: 100%;
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) 18px;
    gap: 13px;
    align-items: start;
    padding: 16px 0;
    border: 0;
    border-bottom: 1px solid var(--border);
    background: transparent;
    text-align: left;
}
.search-result:hover .result-title,
.search-result.active .result-title { text-decoration: underline; }
.result-favicon-wrap,
.details-favicon-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--bg-subtle);
    border: 1px solid var(--border);
}
.result-favicon-wrap {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    margin-top: 2px;
}
.result-favicon,
.details-favicon {
    position: relative;
    z-index: 2;
    width: 22px;
    height: 22px;
    object-fit: contain;
}
.favicon-fallback {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    font-size: .75rem;
    font-weight: 700;
    z-index: 1;
}
.result-content {
    min-width: 0;
    display: flex;
    flex-direction: column;
}
.result-domain {
    color: var(--muted);
    font-size: .78rem;
    line-height: 1.35;
    word-break: break-word;
}
.result-title {
    margin: 3px 0 5px;
    color: var(--accent);
    font-size: 1.08rem;
    line-height: 1.35;
    font-weight: 600;
    letter-spacing: -.012em;
}
.result-description {
    color: var(--muted);
    font-size: .86rem;
    line-height: 1.5;
}
.result-meta {
    margin-top: 7px;
    color: var(--muted);
    font-size: .76rem;
    font-weight: 500;
}
.result-arrow {
    align-self: center;
    color: #98a1ad;
    font-size: 1.3rem;
}

.details-panel {
    position: sticky;
    top: 16px;
    overflow: hidden;
    background: var(--bg-page);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
}
.details-close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 5;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 7px;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: rgba(255,255,255,.9);
    color: var(--muted);
}
.details-map {
    height: 150px;
    background: var(--bg-tile);
    border-bottom: 1px solid var(--border);
}
.details-body { padding: 22px; }
.details-title-row {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}
.details-favicon-wrap {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border-radius: 12px;
}
.details-heading-copy { min-width: 0; }
.details-title {
    margin: 0;
    font-size: 1rem;
    line-height: 1.35;
    font-weight: 700;
}
.details-domain {
    display: inline-flex;
    margin-top: 5px;
    color: var(--accent);
    font-size: .8rem;
    word-break: break-word;
}
.details-description {
    margin: 13px 0 18px;
    color: var(--muted);
    font-size: .84rem;
    line-height: 1.5;
}
.info-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    margin-bottom: 18px;
}
.info-card {
    min-width: 0;
    padding: 10px 13px;
    background: var(--bg-subtle);
    border-radius: var(--radius-sm);
}
.info-card-label {
    color: var(--muted);
    font-size: .65rem;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.info-card-value {
    margin-top: 3px;
    color: var(--text);
    font-size: .78rem;
    font-weight: 600;
    line-height: 1.4;
    word-break: break-word;
}
.accordion {
    border-top: 1px solid var(--border);
    padding-top: 14px;
}
.accordion summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    list-style: none;
    cursor: pointer;
    font-size: .86rem;
    font-weight: 700;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion-indicator {
    width: 18px;
    height: 18px;
    color: var(--muted);
    transition: transform .2s ease;
}
.accordion[open] .accordion-indicator { transform: rotate(180deg); }
.relevant-pages {
    display: flex;
    flex-direction: column;
    padding-top: 8px;
}
.relevant-page {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid var(--bg-subtle);
}
.relevant-page:last-child { border-bottom: 0; }
.relevant-page-copy { min-width: 0; }
.relevant-page-title {
    display: block;
    color: var(--text);
    font-size: .8rem;
    font-weight: 500;
}
.relevant-page-url {
    display: block;
    margin-top: 2px;
    color: var(--muted);
    font-size: .7rem;
    word-break: break-word;
}
.relevant-page-arrow { color: var(--muted); }
.visit-website-link {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 18px;
    color: var(--text);
    font-size: .82rem;
    font-weight: 700;
    border-bottom: 1px solid var(--text);
    padding-bottom: 3px;
}
.visit-website-link svg { width: 15px; height: 15px; }

.footer {
    margin-top: auto;
    padding: 22px 24px;
    text-align: center;
    color: var(--muted);
    font-size: .78rem;
    border-top: 1px solid var(--border);
}
.footer {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 9px;
}
.footer .copyright {
    width: 100%;
    margin-top: -2px;
    color: #94a3b8;
    font-size: .72rem;
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(15, 23, 42, .3);
    backdrop-filter: blur(2px);
}
.modal-card {
    width: min(100%, 500px);
    max-height: calc(100vh - 40px);
    overflow: auto;
    padding: 30px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
}
.modal-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}
.modal-card h2 {
    margin: 0;
    font-size: 1.15rem;
}
.modal-subtitle {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: .8rem;
}
.modal-close {
    width: 30px;
    height: 30px;
    padding: 6px;
    border: 0;
    background: transparent;
    color: var(--muted);
}
.request-form {
    display: flex;
    flex-direction: column;
    gap: 13px;
}
.request-form label { display: block; }
.request-form label > span {
    display: block;
    margin-bottom: 5px;
    color: var(--text);
    font-size: .72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .03em;
}
.request-form input,
.request-form textarea {
    width: 100%;
    padding: 11px 15px;
    border: 1px solid var(--border);
    outline: none;
    background: #fff;
    color: var(--text);
    font-size: .86rem;
}
.request-form input { border-radius: var(--radius-pill); }
.request-form textarea {
    min-height: 96px;
    resize: vertical;
    border-radius: 12px;
}
.request-form input:focus,
.request-form textarea:focus { border-color: var(--border-strong); }
.request-message {
    min-height: 18px;
    margin: 0;
    color: var(--muted);
    font-size: .76rem;
}
.request-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 2px;
}
.primary-button,
.secondary-button {
    min-height: 40px;
    padding: 0 18px;
}
.primary-button {
    border: 1px solid var(--text);
    background: var(--text);
    color: #fff;
}
.secondary-button {
    border: 1px solid var(--border);
    background: #fff;
    color: var(--text);
}

@media (max-width: 1050px) {
    .topbar {
        grid-template-columns: auto 1fr auto;
        gap: 18px;
        padding-inline: 28px;
    }
    .results-view { padding-inline: 28px; }
    .results-layout,
    .results-layout.panel-hidden {
        grid-template-columns: minmax(0, 1fr) 380px;
        gap: 26px;
    }
}

@media (max-width: 840px) {
    .topbar {
        grid-template-columns: 1fr auto;
        grid-template-areas:
            "brand actions"
            "search search";
        padding: 16px 20px;
    }
    .brand { grid-area: brand; }
    .top-actions { grid-area: actions; }
    .header-search {
        grid-area: search;
        max-width: none;
    }
    .results-view { padding: 4px 20px 42px; }
    .results-layout,
    .results-layout.panel-hidden {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .details-panel {
        position: static;
        order: -1;
    }
    .home-view { min-height: calc(100vh - 190px); padding-inline: 20px; }
}

@media (max-width: 600px) {
    .topbar {
        padding: 14px 16px;
        gap: 14px;
    }
    .brand-logo-full { width: 154px; height: auto; }
    .brand-logo-symbol { width: 34px; height: 34px; }
    .top-actions { gap: 10px; }
    .lang-group { display: none; }
    .header-action {
        min-height: 36px;
        padding-inline: 13px;
        font-size: .76rem;
    }
    .header-search,
    .hero-search-box {
        padding: 5px 5px 5px 14px;
    }
    .header-search input,
    .hero-search-box input { font-size: .84rem; }
    .search-submit {
        min-height: 36px;
        padding-inline: 13px;
        font-size: .76rem;
    }
    .hero-search-button { min-height: 40px; }
    .home-view {
        min-height: calc(100vh - 172px);
        padding: 54px 16px 96px;
    }
    .home-subtitle { font-size: .78rem; line-height: 1.55; }
    .results-view { padding: 0 16px 36px; }
    .search-result {
        grid-template-columns: 34px minmax(0, 1fr) 14px;
        gap: 10px;
        padding: 14px 0;
    }
    .result-favicon-wrap { width: 32px; height: 32px; border-radius: 9px; }
    .result-favicon { width: 19px; height: 19px; }
    .result-title { font-size: .98rem; }
    .result-description {
        font-size: .8rem;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .details-body { padding: 18px; }
    .details-map { height: 130px; }
    .info-cards { grid-template-columns: 1fr 1fr; }
    .modal-backdrop { padding: 12px; align-items: flex-end; }
    .modal-card {
        width: 100%;
        max-height: 92vh;
        padding: 22px 18px;
        border-radius: 20px 20px 0 0;
    }
    .request-actions { flex-direction: column-reverse; }
    .primary-button,
    .secondary-button { width: 100%; }
}

@media (max-width: 390px) {
    .brand-logo-full { display: none; }
    .brand-logo-symbol { display: block; }
    .info-cards { grid-template-columns: 1fr; }
}

/* v1.2.2 visual refinements */
:root {
    --accent: #173f78;
    --accent-hover: #0f315f;
    --selected: #f5f6f8;
}

.hero-search {
    display: flex;
    flex-direction: column;
    align-items: stretch;
}
.home-subtitle {
    display: block;
    width: 100%;
    flex: 0 0 auto;
    clear: both;
}

.result-title {
    color: var(--accent);
}
.search-result:hover .result-title,
.search-result.active .result-title {
    color: var(--accent-hover);
}
.search-result {
    border-radius: 14px;
    padding-left: 10px;
    padding-right: 10px;
    transition: background-color .16s ease;
}
.search-result.active {
    background: var(--selected);
}
.details-domain {
    color: var(--accent);
    font-weight: 600;
}
.details-domain:hover,
.relevant-page-title:hover {
    color: var(--accent-hover);
}
.relevant-page-title {
    color: var(--accent);
}

.accordion-indicator {
    transform: rotate(0deg);
}
.accordion[open] .accordion-indicator {
    transform: rotate(90deg);
}

.visit-website-link {
    color: var(--accent);
    border-bottom-color: transparent;
    padding-bottom: 1px;
    transition: color .16s ease, gap .16s ease;
}
.visit-website-link:hover {
    color: var(--accent-hover);
    gap: 9px;
}
.visit-website-link svg {
    width: 16px;
    height: 16px;
}

.footer a:hover {
    color: var(--accent);
}

@media (max-width: 840px) {
    .details-panel {
        scroll-margin-top: 138px;
        margin-top: 8px;
    }
    .details-close {
        top: 10px;
        right: 10px;
    }
}

@media (max-width: 600px) {
    .home-view {
        display: flex;
        flex-direction: column;
    }
    .hero-search,
    .home-subtitle {
        width: 100%;
    }
    .details-panel {
        scroll-margin-top: 154px;
        order: -1;
    }
    .details-close {
        position: absolute;
        top: 10px;
        right: 10px;
        width: 32px;
        height: 32px;
        background: #fff;
    }
    .search-result {
        padding-left: 8px;
        padding-right: 8px;
    }
}

/* v1.2.3 layout and details refinements */
.home-view {
    flex-direction: column;
    gap: 0;
}
.hero-search {
    width: min(100%, 680px);
    flex: 0 0 auto;
}
.hero-search-box {
    width: 100%;
}
.home-subtitle {
    width: min(100%, 680px);
    margin: 18px auto 0;
}

.search-result {
    position: relative;
    padding-top: 13px;
    padding-bottom: 13px;
    border-radius: 0;
    background: transparent;
    isolation: isolate;
}
.search-result::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 4px 0 5px;
    background: transparent;
    pointer-events: none;
}
.search-result.active::before {
    background: #f8f8f9;
}
.result-title,
.search-result:hover .result-title,
.search-result.active .result-title {
    color: #0a0a0b;
}
.search-result.active .result-title {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}
.details-domain,
.details-domain:hover {
    color: #0a0a0b;
    font-weight: 700;
}

.visit-website-link {
    width: 100%;
    min-height: 44px;
    margin: 0 0 12px;
    padding: 10px 2px;
    justify-content: space-between;
    color: #0a0a0b;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    font-weight: 650;
}
.visit-website-link:hover {
    color: #0a0a0b;
    gap: 6px;
}
.visit-website-link svg {
    width: 17px;
    height: 17px;
}

.details-accordions {
    margin: 0;
}
.details-accordions .accordion {
    padding-top: 0;
    border-top: 0;
    border-bottom: 1px solid var(--border);
}
.details-accordions .accordion:first-child {
    border-top: 0;
}
.details-accordions .accordion summary {
    min-height: 44px;
    padding: 10px 2px;
}
.contact-details {
    display: flex;
    flex-direction: column;
    padding: 0 0 10px;
}
.contact-detail-link {
    display: grid;
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    padding: 8px 0;
    border-top: 1px solid var(--bg-subtle);
}
.contact-detail-label {
    color: var(--muted);
    font-size: .7rem;
    text-transform: uppercase;
    letter-spacing: .035em;
}
.contact-detail-value {
    min-width: 0;
    color: #0a0a0b;
    font-size: .8rem;
    font-weight: 600;
    word-break: break-word;
}

@media (max-width: 600px) {
    .home-view {
        flex-direction: column;
        justify-content: center;
        gap: 0;
    }
    .hero-search,
    .home-subtitle {
        max-width: 100%;
    }
    .search-result {
        padding-top: 11px;
        padding-bottom: 11px;
    }
    .search-result::before {
        inset: 3px 0 4px;
    }
    .details-panel {
        position: relative;
        order: -1;
        scroll-margin-top: 150px;
    }
    .details-close {
        top: 9px;
        right: 9px;
    }
    .contact-detail-link {
        grid-template-columns: 72px minmax(0, 1fr);
    }
}
.search-result.active {
    background: transparent;
    border-radius: 0;
}
.search-result::before { z-index: 0; }
.search-result > * { position: relative; z-index: 1; }

/* v1.2.4 header alignment, pagination and transparent promotion labels */
.topbar {
    grid-template-columns: auto 1fr auto;
}
.topbar .brand { grid-column: 1; }
.topbar .top-actions {
    grid-column: 3;
    justify-self: end;
}
.topbar.search-active {
    grid-template-columns: auto minmax(260px, 620px) auto;
}
.topbar.search-active .header-search {
    grid-column: 2;
    justify-self: stretch;
}

.result-domain-line {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}
.result-promotion {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    min-height: 18px;
    padding: 1px 7px;
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    color: var(--muted);
    background: var(--bg-subtle);
    font-size: .62rem;
    font-weight: 600;
    line-height: 1;
}
.result-promotion-sponsored {
    color: #6d5314;
    background: #fffaf0;
    border-color: #eee1bc;
}

.pagination {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-top: 22px;
    padding: 4px 0;
    color: var(--muted);
}
.pagination-pages {
    display: flex;
    align-items: center;
    gap: 5px;
}
.pagination-page,
.pagination-arrow {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    border-radius: 50%;
    background: transparent;
    color: var(--muted);
    font-size: .8rem;
}
.pagination-arrow {
    font-size: 1.2rem;
}
.pagination-page:hover,
.pagination-arrow:hover:not(:disabled) {
    background: var(--bg-subtle);
    color: var(--text);
}
.pagination-page.is-active {
    border-color: var(--border);
    background: var(--bg-subtle);
    color: var(--text);
    font-weight: 700;
}
.pagination-arrow:disabled {
    opacity: .32;
    cursor: default;
}
.pagination-ellipsis {
    padding: 0 4px;
    color: #9aa1ab;
}
.page-size-control {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    font-size: .72rem;
    color: var(--muted);
}
.page-size-control select {
    min-height: 34px;
    padding: 0 28px 0 11px;
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    background: var(--bg-page);
    color: var(--text);
    font: inherit;
}

@media (max-width: 1050px) {
    .topbar:not(.search-active) {
        grid-template-columns: auto 1fr auto;
    }
    .topbar.search-active {
        grid-template-columns: auto minmax(220px, 1fr) auto;
    }
}

@media (max-width: 840px) {
    .topbar,
    .topbar.search-active {
        grid-template-columns: 1fr auto;
        grid-template-areas:
            "brand actions"
            "search search";
    }
    .topbar .brand,
    .topbar.search-active .brand {
        grid-area: brand;
        grid-column: auto;
    }
    .topbar .top-actions,
    .topbar.search-active .top-actions {
        grid-area: actions;
        grid-column: auto;
    }
    .topbar.search-active .header-search {
        grid-area: search;
        grid-column: auto;
    }
}

@media (max-width: 600px) {
    .pagination {
        flex-wrap: wrap;
        justify-content: center;
        gap: 5px;
    }
    .pagination-pages {
        order: 2;
    }
    .pagination-arrow:first-child { order: 1; }
    .pagination-arrow:nth-of-type(2) { order: 3; }
    .page-size-control {
        order: 4;
        width: 100%;
        justify-content: center;
        margin: 8px 0 0;
    }
    .pagination-page,
    .pagination-arrow {
        width: 32px;
        height: 32px;
    }
}
@media (max-width: 840px) {
    .topbar:not(.search-active) {
        grid-template-columns: 1fr auto;
        grid-template-areas: "brand actions";
    }
}

/* v1.2.7 branding, compact metadata and map refinements */
.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}
.brand-logo-full {
    width: 190px;
    max-height: 40px;
}
.result-meta {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
}
.result-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}
.result-meta-item svg {
    width: 13px;
    height: 13px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.result-meta-contact {
    width: 21px;
    height: 21px;
    justify-content: center;
    border-radius: 50%;
    background: var(--bg-subtle);
    color: #4d5663;
}
.result-meta-contact svg {
    width: 12px;
    height: 12px;
}
.result-meta-separator { color: #b0b5bd; }
.details-map {
    height: 235px;
}
.necesare-map-marker {
    background: transparent;
    border: 0;
}
.necesare-map-marker svg {
    width: 32px;
    height: 40px;
    overflow: visible;
    filter: drop-shadow(0 2px 2px rgba(15,23,42,.16));
}
.necesare-map-marker path {
    fill: #111827;
    stroke: #fff;
    stroke-width: 1.4;
}
.necesare-map-marker circle {
    fill: #fff;
    stroke: none;
}
.info-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.info-card {
    display: flex;
    align-items: center;
    gap: 9px;
}
.info-card-icon {
    width: 25px;
    height: 25px;
    flex: 0 0 25px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #4e5662;
}
.info-card-icon svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.65;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.info-card-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
}
@media (max-width: 700px) {
    .brand-logo-full { width: 158px; }
    .details-map { height: 205px; }
    .info-cards { grid-template-columns: 1fr; }
}

/* v1.2.8: restored detail cards, contact-only list metadata and editable shared logo. */
.brand-logo-full {
    width: 176px;
    max-height: 34px;
}
.result-meta {
    margin-top: 6px;
    gap: 0;
}
.result-meta-separator { display: none; }
.result-meta-contact {
    width: 20px;
    height: 20px;
    background: #f3f4f6;
    color: #525b68;
}
.details-map {
    height: 260px;
}
.details-map .leaflet-control-zoom {
    margin: 12px 0 0 12px;
    border: 1px solid rgba(15, 23, 42, .12);
    border-radius: 10px;
    box-shadow: none;
    overflow: hidden;
}
.details-map .leaflet-control-zoom a {
    width: 30px;
    height: 30px;
    line-height: 29px;
    border: 0;
    border-bottom: 1px solid rgba(15, 23, 42, .08);
    background: rgba(255,255,255,.96);
    color: #111827;
    font-size: 18px;
}
.details-map .leaflet-control-zoom a:last-child { border-bottom: 0; }
.info-cards {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}
.info-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 10px 11px;
}
.info-card-label {
    line-height: 1.25;
}
.info-card-value {
    margin-top: 5px;
    font-size: .76rem;
}
.info-card-icon,
.info-card-copy { display: contents; }

@media (max-width: 700px) {
    .brand-logo-full { width: 154px; max-height: 31px; }
    .details-map { height: 230px; }
    .info-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* v1.2.9: two detail cards per row and compact list metadata. */
.info-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.result-meta {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 6px;
}
.result-meta-item {
    display: inline-flex;
    align-items: center;
    min-height: 18px;
    color: var(--muted);
    font-size: .75rem;
    font-weight: 500;
    line-height: 1.2;
}
.result-meta-contact {
    width: auto;
    height: auto;
    padding: 0;
    border-radius: 0;
    background: transparent;
    color: #4f5967;
}
.result-meta-contact svg {
    width: 14px;
    height: 14px;
}
.result-meta-separator { display: none; }
@media (max-width: 700px) {
    .info-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .result-meta { gap: 8px; }
}

/* v1.3.0: search verticals, regional scope and direct contact details. */
.results-toolbar {
    width: 100%;
    max-width: 1280px;
    min-height: 46px;
    margin: 0 auto 6px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    border-bottom: 1px solid var(--border);
}
.search-tabs {
    display: flex;
    align-items: flex-end;
    gap: 24px;
}
.search-tab {
    position: relative;
    min-height: 45px;
    padding: 0 1px;
    border: 0;
    background: transparent;
    color: var(--muted);
    font-size: .82rem;
    font-weight: 600;
}
.search-tab::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -1px;
    left: 0;
    height: 2px;
    border-radius: 2px 2px 0 0;
    background: transparent;
}
.search-tab:hover,
.search-tab.is-active {
    color: var(--text);
}
.search-tab.is-active::after {
    background: var(--text);
}
.results-map-view {
    position: relative;
    min-height: 540px;
    margin-top: 10px;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--bg-subtle);
}
.results-map {
    width: 100%;
    min-height: 540px;
}
.map-empty {
    position: absolute;
    z-index: 500;
    right: 18px;
    bottom: 18px;
    left: 18px;
    margin: 0 auto;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: rgb(255 255 255 / .92);
    color: var(--muted);
    font-size: .86rem;
    text-align: center;
    pointer-events: none;
}

.contact-details-inline {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: -4px 0 16px;
}
.contact-details-inline .contact-detail-link {
    display: grid;
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 12px;
    padding: 8px 0;
    border: 0;
    border-top: 1px solid var(--bg-subtle);
    border-radius: 0;
    background: transparent;
}
.contact-details-inline .contact-detail-link:hover {
    color: var(--text);
}
.contact-details-inline .contact-detail-value {
    font-size: .8rem;
}

@media (max-width: 840px) {
    .results-toolbar {
        max-width: none;
    }
    .results-map-view,
    .results-map {
        min-height: 470px;
    }
}

@media (max-width: 600px) {
    .results-toolbar {
        align-items: center;
        gap: 10px;
    }
    .search-tabs {
        gap: 17px;
    }
    .search-tab {
        min-height: 43px;
        font-size: .76rem;
    }
    .results-map-view,
    .results-map {
        min-height: 420px;
    }
    .contact-details-inline { display: flex; }
}

.location-filter {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 34px;
    margin-bottom: 6px;
    padding: 0 10px;
    border: 0;
    border-radius: var(--radius-pill);
    background: transparent;
    color: var(--muted);
    font: inherit;
    font-size: .76rem;
    font-weight: 600;
    white-space: nowrap;
}
.location-filter:hover { background: var(--bg-subtle); color: var(--text); }
.location-filter svg {
    width: 15px;
    height: 15px;
    flex: 0 0 15px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.location-filter .location-filter-chevron { width: 13px; height: 13px; }
.home-location-filter { margin: 14px auto 0; border: 1px solid var(--border); background: rgb(255 255 255 / .72); }

.person-result {
    width: 100%;
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) 18px;
    gap: 14px;
    align-items: center;
    padding: 14px 10px;
    border: 0;
    border-bottom: 1px solid var(--border);
    background: transparent;
    text-align: left;
}
.person-result:hover .result-title,
.person-result.active .result-title { text-decoration: underline; }
.person-result.active { background: var(--selected, #f5f6f8); }
.person-avatar-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: var(--bg-subtle);
}
.person-avatar { position: relative; z-index: 2; width: 100%; height: 100%; object-fit: cover; }
.person-specialization { margin: 2px 0 5px; color: var(--muted); font-size: .79rem; line-height: 1.35; }
.details-favicon-wrap.is-avatar { width: 58px; height: 58px; min-width: 58px; min-height: 58px; flex: 0 0 58px; aspect-ratio: 1; border-radius: 50%; }
.details-favicon-wrap.is-avatar .details-favicon { width: 100%; height: 100%; object-fit: cover; }

.location-modal-card { width: min(94vw, 720px); }
.city-search-form {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr) auto;
    align-items: center;
    gap: 9px;
    margin-bottom: 10px;
    padding: 5px 5px 5px 13px;
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    background: #fff;
}
.city-search-form svg { width: 17px; height: 17px; fill: none; stroke: var(--muted); stroke-width: 1.8; stroke-linecap: round; }
.city-search-form input { min-width: 0; border: 0; outline: 0; background: transparent; color: var(--text); font: inherit; font-size: .82rem; }
.city-search-form button { min-height: 34px; padding: 0 15px; border: 0; border-radius: var(--radius-pill); background: var(--text); color: #fff; font: inherit; font-size: .76rem; font-weight: 700; }
.city-search-results { max-height: 190px; margin: -1px 0 12px; overflow: auto; border: 1px solid var(--border); border-radius: 12px; background: #fff; }
.city-search-results button { width: 100%; display: grid; gap: 2px; padding: 10px 12px; border: 0; border-bottom: 1px solid var(--bg-subtle); background: #fff; color: var(--text); text-align: left; }
.city-search-results button:last-child { border-bottom: 0; }
.city-search-results button:hover { background: var(--bg-subtle); }
.city-search-results strong { font-size: .8rem; }
.city-search-results span { overflow: hidden; color: var(--muted); font-size: .7rem; text-overflow: ellipsis; white-space: nowrap; }
.current-location-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 36px;
    margin-bottom: 12px;
    padding: 7px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    background: #fff;
    color: var(--text);
    font: inherit;
    font-size: .78rem;
    font-weight: 650;
}
.current-location-button:hover { background: var(--bg-subtle); }
.current-location-button svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.location-picker-map { width: 100%; height: min(43vh, 340px); overflow: hidden; border: 1px solid var(--border); border-radius: 14px; background: var(--bg-subtle); }
.location-radius-row { margin: 18px 0 4px; }
.location-radius-row label { display: flex; align-items: center; justify-content: space-between; margin-bottom: 9px; color: var(--muted); font-size: .78rem; }
.location-radius-row strong { color: var(--text); font-size: .8rem; }
.location-radius-row input { width: 100%; accent-color: #151515; }

.necesare-map-marker svg { width: 32px; height: 40px; overflow: visible; filter: drop-shadow(0 2px 3px rgb(0 0 0 / .18)); }
.necesare-map-marker path { fill: #151515; stroke: #fff; stroke-width: 1.5; }
.necesare-map-marker circle { fill: #fff; stroke: none; }
.necesare-map-marker.is-selected { z-index: 1000 !important; }
.necesare-map-marker.is-selected path { fill: #fff; stroke: #151515; stroke-width: 2.2; }
.necesare-map-marker.is-selected circle { fill: #151515; }
.necesare-user-marker span {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 3px solid #151515;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 3px 12px rgb(0 0 0 / .22);
}
.necesare-user-marker svg { width: 20px; height: 20px; fill: none; stroke: #151515; stroke-width: 1.8; stroke-linecap: round; }

.search-tabs { overflow-x: auto; scrollbar-width: none; }
.search-tabs::-webkit-scrollbar { display: none; }

@media (max-width: 600px) {
    .location-filter { max-width: 165px; margin-bottom: 0; padding-inline: 7px; }
    .location-filter span { overflow: hidden; text-overflow: ellipsis; }
    .person-result { grid-template-columns: 42px minmax(0, 1fr) 14px; gap: 11px; padding-inline: 8px; }
    .person-avatar-wrap { width: 40px; height: 40px; }
    .location-modal-card { width: calc(100vw - 20px); }
    .location-picker-map { height: 310px; }
    .search-tabs { gap: 14px; }
}

/* v1.7: mixed map, stronger primary action and mobile details sheet. */
.visit-website-link {
    min-height: 46px;
    margin: 4px 0 14px;
    padding: 11px 15px;
    border: 1px solid #151515;
    border-radius: 12px;
    background: #151515;
    color: #fff;
    text-decoration: none;
}
.visit-website-link:hover {
    border-color: #343434;
    background: #343434;
    color: #fff;
}
.visit-website-link:focus-visible {
    outline: 3px solid rgb(21 21 21 / .22);
    outline-offset: 2px;
}

.details-specializations {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: -8px 0 14px;
}
.details-specializations span {
    padding: 5px 9px;
    border-radius: 999px;
    background: var(--bg-subtle);
    color: #424850;
    font-size: .7rem;
    font-weight: 650;
}

.necesare-map-marker .marker-shape {
    fill: #151515;
    stroke: #fff;
    stroke-width: 1.5;
}
.necesare-map-marker .marker-dot {
    fill: #fff;
    stroke: none;
}
.necesare-map-marker .marker-person-head {
    fill: #fff;
    stroke: none;
}
.necesare-map-marker .marker-person-body {
    fill: none;
    stroke: #fff;
    stroke-width: 2;
    stroke-linecap: round;
}
.necesare-map-marker.is-selected .marker-shape {
    fill: #fff;
    stroke: #151515;
    stroke-width: 2.2;
}
.necesare-map-marker.is-selected .marker-dot,
.necesare-map-marker.is-selected .marker-person-head {
    fill: #151515;
}
.necesare-map-marker.is-selected .marker-person-body {
    fill: none;
    stroke: #151515;
    stroke-width: 2;
}

.details-backdrop { display: none; }

@media (max-width: 840px) {
    body.details-open { overflow: hidden; }
    .details-backdrop:not([hidden]) {
        position: fixed;
        z-index: 899;
        inset: 0;
        display: block;
        width: 100%;
        height: 100%;
        padding: 0;
        border: 0;
        background: rgb(12 18 28 / .28);
        backdrop-filter: blur(2px);
    }
    .details-panel:not([hidden]) {
        position: fixed;
        z-index: 900;
        right: 0;
        bottom: 0;
        left: 0;
        width: 100%;
        max-height: min(82dvh, 720px);
        margin: 0;
        overflow-x: hidden;
        overflow-y: auto;
        border-width: 1px 0 0;
        border-radius: 24px 24px 0 0;
        box-shadow: 0 -18px 60px rgb(12 18 28 / .2);
        overscroll-behavior: contain;
    }
    .details-panel:not([hidden])::before {
        content: "";
        position: absolute;
        z-index: 6;
        top: 8px;
        left: 50%;
        width: 38px;
        height: 4px;
        border-radius: 4px;
        background: rgb(21 21 21 / .18);
        transform: translateX(-50%);
        pointer-events: none;
    }
    .details-close {
        position: sticky;
        z-index: 7;
        top: 10px;
        float: right;
        margin: 0 10px -30px 0;
        background: rgb(255 255 255 / .94);
    }
    .details-map { height: clamp(175px, 28dvh, 230px); }
    .details-body { clear: both; padding: 18px 18px max(22px, env(safe-area-inset-bottom)); }
}

@media (max-width: 600px) {
    .results-toolbar {
        align-items: stretch;
        flex-wrap: wrap;
        gap: 0;
    }
    .search-tabs {
        order: 1;
        width: 100%;
        gap: 20px;
    }
    .search-tab {
        min-height: 46px;
        flex: 0 0 auto;
    }
    .location-filter {
        order: 2;
        max-width: 100%;
        min-height: 40px;
        margin: 2px 0 5px;
        padding-inline: 2px 10px;
    }
    .results-map-view,
    .results-map {
        height: calc(100dvh - 235px);
        min-height: 360px;
    }
    .result-description { -webkit-line-clamp: 2; }
    .visit-website-link { min-height: 48px; }
}

/* Mobile viewport fixes: compact header and modal sheets contained on-screen. */
.header-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.header-action svg {
    display: none;
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
}

@media (max-width: 600px) {
    html,
    body {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }
    .topbar,
    .topbar.search-active,
    .topbar:not(.search-active) {
        width: 100%;
        min-width: 0;
        min-height: 62px;
        grid-template-columns: minmax(0, 1fr) 42px;
        grid-template-areas:
            "brand actions"
            "search search";
        gap: 10px;
        padding: 10px 12px;
        overflow: hidden;
        overflow: clip;
    }
    .topbar:not(.search-active) { grid-template-areas: "brand actions"; }
    .brand,
    .top-actions,
    .header-search,
    .page,
    .results-view,
    .results-layout,
    .results-list {
        min-width: 0;
        max-width: 100%;
    }
    .brand-logo-full { display: none; }
    .brand-logo-symbol {
        display: block;
        width: 38px;
        height: 38px;
    }
    .top-actions {
        width: 42px;
        gap: 0;
    }
    .header-action {
        width: 42px;
        min-width: 42px;
        height: 42px;
        min-height: 42px;
        padding: 0;
        border-radius: 50%;
    }
    .header-action svg { display: block; }
    .header-action span {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        white-space: nowrap;
    }
    .header-search {
        width: 100%;
        padding-left: 12px;
    }
    .header-search input {
        width: 0;
        min-width: 0;
    }

    .modal-backdrop {
        align-items: flex-end;
        width: 100%;
        height: 100vh;
        height: 100dvh;
        max-width: 100vw;
        padding: 8px 8px max(8px, env(safe-area-inset-bottom));
        overflow: hidden;
    }
    .modal-card,
    .location-modal-card,
    .account-auth-modal,
    .avatar-crop-card {
        width: 100%;
        max-width: 100%;
        max-height: calc(100vh - 16px);
        max-height: calc(100dvh - 16px - env(safe-area-inset-bottom));
        min-height: 0;
        margin: 0;
        padding: 20px 16px max(18px, env(safe-area-inset-bottom));
        overflow-x: hidden;
        overflow-y: auto;
        border-radius: 20px 20px 14px 14px;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
    }
    .modal-heading {
        position: sticky;
        z-index: 5;
        top: -20px;
        margin: -4px -2px 16px;
        padding: 4px 2px 10px;
        background: #fff;
    }
    .modal-close {
        min-width: 40px;
        min-height: 40px;
        padding: 10px;
    }
    .location-picker-map { height: clamp(210px, 36dvh, 310px); }
    .city-search-form { grid-template-columns: 18px minmax(0, 1fr) 42px; }
    .city-search-form button {
        width: 42px;
        min-width: 42px;
        padding: 0;
        font-size: 0;
    }
    .city-search-form button::after {
        content: "\2192";
        font-size: 1rem;
    }
}

@media (max-width: 380px) {
    .search-submit { padding-inline: 11px; }
    .search-tabs { gap: 17px; }
    .modal-card,
    .location-modal-card,
    .account-auth-modal,
    .avatar-crop-card { padding-inline: 14px; }
}
