@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;450;500;550;600;650;700&display=swap');
:root {
    --bg:#f5f7f8;
    --surface:#fff;
    --ink:#172d30;
    --muted:#697b7f;
    --line:#e2e9e9;
    --primary:#12665a;
    --soft:#eaf5f0;
    --radius:14px;
    font-family:'DM Sans','Segoe UI',sans-serif;
    color:var(--ink);
    font-size:14px;
    line-height:1.55
}
* {
    box-sizing:border-box
}
body {
    margin:0;
    background:var(--bg)
}
button,input,textarea,select {
    font:inherit
}
button,a,input,textarea,select,summary {
    -webkit-tap-highlight-color:transparent
}
button,a,summary {
    touch-action:manipulation
}
button {
    cursor:pointer
}
button:disabled {
    opacity:.5;
    cursor:wait
}
button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,summary:focus-visible,[tabindex]:focus-visible {
    outline:3px solid #56b6a0;
    outline-offset:3px
}
a {
    color:var(--primary)
}
h1,h2,h3,p {
    margin:0
}
small,.hint {
    font-size:12px;
    color:var(--muted)
}
small {
    display:block;
    line-height:1.5;
    margin-top:6px
}
button,.button {
    border:1px solid var(--line);
    border-radius:8px;
    padding:9px 13px;
    background:white;
    color:var(--ink);
    font-size:12px;
    font-weight:600;
    text-decoration:none;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    transition:background .15s,box-shadow .15s
}
button:hover,.button:hover {
    background:#f0f6f4
}
input,textarea,select {
    border:1px solid #d8e2e2;
    border-radius:8px;
    background:#fff;
    color:var(--ink)
}
input[type=text],input[type=number],input[type=search],textarea {
    padding:10px 12px;
    width:100%;
    min-width:0
}
textarea {
    resize:vertical;
    line-height:1.65
}
input::placeholder,textarea::placeholder {
    color:#8b9a9d
}
label {
    display:block;
    font-size:12px;
    font-weight:600;
    margin-bottom:7px
}
input[type=checkbox] {
    accent-color:var(--primary);
    width:16px;
    height:16px;
    flex:none
}
code {
    overflow-wrap:anywhere
}
fieldset {
    border:0;
    margin:0;
    padding:0
}
.app-header {
    height:96px;
    padding:20px 36px;
    border-bottom:1px solid var(--line);
    display:flex;
    justify-content:space-between;
    align-items:center;
    background:white;
    gap:20px
}
.brand {
    display:flex;
    align-items:center;
    gap:13px
}
.brand-mark {
    width:42px;
    height:42px;
    display:grid;
    place-items:center;
    border-radius:13px;
    background:var(--primary);
    color:white;
    font-size:23px;
    font-weight:700
}
.brand h1 {
    font-size:19px;
    letter-spacing:-.5px
}
.brand p {
    color:var(--muted);
    font-size:12px;
    margin-top:2px
}
.local-badge {
    font-size:12px;
    color:#516c68;
    border:1px solid var(--line);
    border-radius:30px;
    padding:6px 12px;
    white-space:nowrap
}
.local-badge span {
    color:#41a17c;
    font-size:9px;
    margin-right:5px
}
.workspace {
    display:grid;
    grid-template-columns:340px minmax(0,1fr);
    min-height:calc(100vh - 96px)
}
.sidebar {
    padding:28px 24px;
    background:#fff;
    border-right:1px solid var(--line)
}
.eyebrow {
    font-size:10px;
    font-weight:700;
    letter-spacing:1.6px;
    color:#64817c;
    display:block;
    margin-bottom:8px
}
.section-heading h2 {
    font-size:23px;
    letter-spacing:-.7px
}
.section-heading p {
    font-size:12px;
    color:var(--muted);
    margin:8px 0 24px;
    line-height:1.7
}
form {
    display:flex;
    flex-direction:column;
    gap:18px
}
.form-group {
    min-width:0
}
.check-row {
    display:flex;
    gap:10px;
    align-items:flex-start;
    padding:12px;
    background:#f7faf8;
    border:1px solid var(--line);
    border-radius:9px;
    margin:0
}
.check-row input {
    margin:2px 0
}
.check-row small {
    font-weight:400;
    margin-top:2px
}
.field-pair {
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:12px
}
.expandable-section {
    border:1px solid var(--line);
    border-radius:9px
}
.expandable-section summary {
    padding:12px;
    font-size:12px;
    font-weight:600;
    cursor:pointer
}
.expandable-section summary span {
    color:var(--muted);
    font-weight:400;
    margin-left:6px
}
.settings-body {
    padding:0 12px 14px;
    display:grid;
    gap:14px
}
.primary-button {
    background:var(--primary);
    border-color:var(--primary);
    color:white;
    padding:12px 16px;
    justify-content:space-between;
    font-size:13px
}
.primary-button:hover {
    background:#0e5349
}
.primary-button span {
    font-size:20px
}
.form-note {
    font-size:11px;
    color:var(--muted);
    text-align:center;
    margin-top:-10px
}
.content {
    padding:34px 32px;
    min-width:0
}
.content-heading {
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:20px;
    margin-bottom:25px
}
.content-heading h2 {
    font-size:28px;
    letter-spacing:-.8px
}
.content-heading p {
    font-size:12px;
    color:var(--muted);
    margin-top:6px
}
.refresh-note {
    font-size:11px;
    white-space:nowrap;
    color:var(--muted)
}
.table-card {
    border:1px solid var(--line);
    border-radius:var(--radius);
    background:white;
    overflow:hidden;
    box-shadow:0 4px 18px #173c2d03
}
.table-scroll {
    overflow:auto
}
table {
    width:100%;
    border-collapse:collapse;
    text-align:left
}
th {
    font-size:10px;
    letter-spacing:1px;
    text-transform:uppercase;
    color:#738587;
    background:#fafcfc;
    padding:15px 18px;
    border-bottom:1px solid var(--line)
}
td {
    padding:20px 18px;
    border-bottom:1px solid var(--line);
    vertical-align:top;
    font-size:12px
}
tr:last-child td {
    border-bottom:0
}
.job-name {
    max-width:400px;
    min-width:200px
}
.job-name>strong {
    font-size:14px;
    font-weight:650;
    display:block
}
.job-query {
    display:block;
    color:var(--muted);
    max-width:340px;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
    font-size:11px;
    margin-top:4px
}
.job-info {
    font-size:11px;
    margin-top:8px
}
.job-info summary {
    cursor:pointer;
    color:var(--primary)
}
.job-info>div {
    padding-top:10px;
    max-width:380px;
    overflow-wrap:anywhere
}
.job-info code {
    font-size:10px
}
.job-info ul {
    padding-left:15px;
    margin-top:4px
}
.meta-label {
    display:block;
    margin-top:8px;
    color:var(--muted);
    font-size:9px;
    letter-spacing:1px
}
.date-cell {
    white-space:nowrap;
    color:var(--muted);
    font-size:11px;
    padding-top:23px
}
.status-indicator {
    display:inline-flex;
    align-items:center;
    gap:5px;
    font-size:10px;
    border-radius:25px;
    padding:4px 9px;
    white-space:nowrap
}
.status-indicator:before {
    content:'●';
    font-size:7px
}
.status-ok {
    color:#23724d;
    background:#eaf5ed
}
.status-working {
    color:#8c601b;
    background:#fff3db
}
.status-pending {
    color:#436287;
    background:#eaf1fa
}
.status-failed {
    color:#ad4646;
    background:#fcecec
}
.row-actions {
    display:flex;
    gap:7px;
    align-items:center;
    flex-wrap:wrap;
    min-width:185px
}
.view-button {
    background:var(--primary);
    color:white;
    border-color:var(--primary)
}
.view-button:hover {
    background:#0c5147
}
.download-button {
    color:var(--primary);
    background:#f7fbf8
}
.delete-button {
    color:#977477;
    border-color:transparent;
    font-weight:400;
    padding:7px;
    font-size:10px
}
.delete-button:hover {
    color:#b53c48;
    background:#fff0f1
}
.pagination {
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:15px;
    padding:14px 18px;
    border-top:1px solid var(--line);
    font-size:11px;
    color:var(--muted)
}
.pagination>div {
    display:flex;
    gap:6px
}
.workspace-tip {
    display:flex;
    align-items:flex-start;
    gap:12px;
    max-width:650px;
    margin:23px 0;
    color:var(--muted);
    font-size:12px
}
.workspace-tip strong {
    color:#4f6c68;
    display:block;
    margin-bottom:3px;
    font-weight:550
}
.tip-icon {
    border:1px solid #a7bdb8;
    border-radius:50%;
    width:18px;
    height:18px;
    display:grid;
    place-items:center;
    flex:none;
    font-size:11px;
    margin-top:3px
}
.empty-state {
    padding:40px 24px;
    text-align:center;
    color:var(--muted);
    font-size:13px;
    overflow-wrap:anywhere
}
.empty-state strong {
    color:var(--ink);
    display:block;
    font-size:16px
}
.empty-state p {
    margin-top:6px
}
.error-message {
    display:none;
    padding:12px;
    border-radius:8px;
    background:#fff0ef;
    color:#a94442;
    margin-bottom:14px;
    border:1px solid #efc9c5;
    font-size:12px
}
.error-message:not(:empty) {
    display:block
}
.htmx-indicator {
    display:none
}
.htmx-request.htmx-indicator {
    display:block;
    margin-bottom:14px;
    color:var(--primary);
    font-size:12px
}
.toast {
    position:fixed;
    left:50%;
    bottom:25px;
    transform:translate(-50%,20px);
    z-index:2000;
    background:#193f37;
    color:white;
    padding:12px 20px;
    border-radius:10px;
    box-shadow:0 8px 30px #0002;
    opacity:0;
    pointer-events:none;
    transition:opacity .2s,transform .2s
}
.toast.visible {
    opacity:1;
    transform:translate(-50%,0)
}
.modal-open {
    overflow:hidden
}
.results-modal {
    position:fixed;
    inset:0;
    z-index:1000;
    background:#112b31a3;
    backdrop-filter:blur(4px);
    padding:24px;
    display:flex;
    align-items:center;
    justify-content:center
}
.results-window {
    background:var(--bg);
    width:min(1440px,100%);
    height:94vh;
    max-height:980px;
    border-radius:18px;
    box-shadow:0 24px 90px #0003;
    overflow:hidden;
    display:flex;
    flex-direction:column
}
.results-header {
    padding:22px 28px;
    display:flex;
    justify-content:space-between;
    align-items:center;
    background:white;
    border-bottom:1px solid var(--line);
    gap:16px;
    flex:none
}
.results-header h2 {
    font-size:23px;
    letter-spacing:-.6px;
    overflow-wrap:anywhere
}
.results-header .eyebrow {
    margin-bottom:4px
}
.results-header p {
    font-size:11px;
    color:var(--muted);
    margin-top:4px
}
.results-header-actions {
    display:flex;
    gap:14px;
    align-items:center;
    flex:none
}
.icon-button {
    width:32px;
    height:32px;
    padding:0;
    font-size:25px;
    border:none;
    background:#f1f5f4;
    color:#69817c;
    border-radius:50%
}
.results-toolbar {
    padding:13px 24px;
    background:white;
    border-bottom:1px solid var(--line);
    display:flex;
    align-items:center;
    gap:18px;
    flex:none
}
.result-search {
    display:flex;
    align-items:center;
    gap:10px;
    flex:1;
    border:1px solid var(--line);
    border-radius:8px;
    padding:0 12px;
    max-width:600px
}
.result-search>span {
    font-size:24px;
    color:var(--muted)
}
.result-search input {
    border:0;
    padding:8px 0;
    font-size:12px
}
.sort-label {
    display:flex;
    align-items:center;
    gap:8px;
    margin:0;
    white-space:nowrap;
    font-size:11px;
    color:var(--muted)
}
select {
    padding:8px;
    font-size:11px
}
#filtered-count {
    font-size:11px;
    color:var(--muted);
    white-space:nowrap;
    margin-left:auto
}
.results-body {
    display:grid;
    grid-template-columns:320px minmax(0,1fr);
    min-height:0;
    flex:1
}
.results-list {
    overflow-y:auto;
    background:white;
    border-right:1px solid var(--line);
    min-height:0;
    padding:10px
}
.place-item {
    display:flex;
    gap:12px;
    padding:15px 12px;
    border:1px solid transparent;
    border-radius:10px;
    background:transparent;
    text-align:left;
    width:100%;
    margin-bottom:5px;
    align-items:flex-start;
    justify-content:flex-start;
    min-width:0
}
.place-item:hover {
    background:#f6f9f8
}
.place-item.selected {
    background:#eaf5f0;
    border-color:#bbd9cf
}
.place-initial {
    width:34px;
    height:36px;
    border-radius:9px;
    background:#edf1f0;
    display:grid;
    place-items:center;
    color:#6d8780;
    font-size:15px;
    flex:none
}
.selected .place-initial {
    background:#d0e7dc;
    color:#246553
}
.place-item-body {
    display:flex;
    flex-direction:column;
    gap:3px;
    min-width:0
}
.place-title {
    font-size:12px;
    font-weight:650;
    color:var(--ink);
    overflow-wrap:anywhere
}
.place-category {
    font-size:10px;
    color:#718783;
    font-weight:400
}
.place-address {
    font-size:10px;
    color:var(--muted);
    line-height:1.5;
    font-weight:400;
    overflow-wrap:anywhere;
    display:-webkit-box;
    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;
    overflow:hidden
}
.place-rating {
    font-size:10px;
    color:#a87824;
    margin-top:3px
}
.place-rating span {
    color:var(--muted);
    font-weight:400
}
.place-details {
    min-height:0;
    overflow-y:auto;
    padding:28px 32px 40px;
    overflow-wrap:anywhere;
    min-width:0
}
.profile-heading {
    padding-bottom:20px
}
.business-title {
    font-size:28px;
    line-height:1.3;
    letter-spacing:-.8px;
    font-weight:650
}
.profile-rating {
    display:flex;
    align-items:center;
    gap:12px;
    flex-wrap:wrap;
    margin-top:10px;
    font-size:12px
}
.profile-rating strong {
    color:#af7a1e
}
.profile-rating>span {
    color:var(--muted)
}
.profile-rating .business-status {
    font-size:10px;
    color:#526e63;
    background:#e4eee7;
    border-radius:20px;
    padding:2px 8px
}
.profile-address {
    font-size:13px;
    color:var(--muted);
    margin:12px 0 18px;
    line-height:1.7
}
.profile-actions {
    display:flex;
    gap:8px;
    flex-wrap:wrap
}
.profile-actions .button {
    font-size:11px;
    padding:8px 13px
}
.detail-tabs {
    display:flex;
    border-bottom:1px solid #d9e4e2;
    gap:20px;
    margin-bottom:20px
}
.detail-tab {
    border:0;
    border-radius:0;
    border-bottom:2px solid transparent;
    background:none;
    padding:12px 0;
    color:var(--muted);
    font-size:12px
}
.detail-tab[aria-selected=true] {
    color:var(--primary);
    border-bottom-color:var(--primary)
}
.detail-tab:hover {
    background:none;
    color:var(--primary)
}
.detail-content {
    min-width:0
}
.detail-card {
    background:white;
    border:1px solid var(--line);
    border-radius:12px;
    padding:20px;
    margin-bottom:16px;
    min-width:0
}
.detail-section-heading {
    font-size:13px;
    font-weight:650;
    margin-bottom:18px
}
.detail-grid {
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:22px;
    margin:0
}
.detail-field {
    min-width:0
}
.detail-field dt {
    font-size:10px;
    font-weight:500;
    color:var(--muted);
    margin-bottom:6px
}
.detail-field dd {
    margin:0;
    font-size:12px;
    line-height:1.7;
    overflow-wrap:anywhere
}
.text-link {
    color:var(--primary);
    text-decoration:none;
    overflow-wrap:anywhere
}
.text-link:hover {
    text-decoration:underline
}
.email-link {
    display:block
}
.missing-value {
    color:#8b9898;
    font-size:12px
}
.hours-list {
    margin:0;
    display:grid;
    gap:9px
}
.hours-list .detail-field {
    display:grid;
    grid-template-columns:110px 1fr;
    gap:12px
}
.hours-list dt {
    margin:0;
    font-size:11px
}
.hours-list dd {
    font-size:11px
}
.structured-value {
    font:11px/1.85 'DM Sans','Segoe UI',sans-serif;
    white-space:pre-wrap;
    overflow-wrap:anywhere;
    margin:0;
    max-width:100%
}
.all-fields {
    border:1px solid var(--line);
    border-radius:12px;
    background:white;
    margin-top:15px;
    overflow:hidden
}
.raw-field {
    display:grid;
    grid-template-columns:150px minmax(0,1fr);
    padding:16px 20px;
    border-bottom:1px solid var(--line);
    gap:20px
}
.raw-field:last-child {
    border-bottom:0
}
.raw-field dt {
    font-size:11px;
    font-weight:600;
    color:#58706b
}
.raw-field dd {
    margin:0;
    min-width:0
}
.raw-field a {
    font-size:11px
}
.data-note {
    font-size:10px;
    color:var(--muted);
    line-height:1.8;
    margin:20px 0
}
.business-map {
    height:380px;
    min-height:260px;
    border-radius:12px;
    border:1px solid var(--line)
}
.sr-only {
    position:absolute;
    width:1px;
    height:1px;
    padding:0;
    margin:-1px;
    overflow:hidden;
    clip:rect(0,0,0,0);
    white-space:nowrap;
    border:0
}
@media(min-width:1600px) {
    .workspace {
        grid-template-columns:365px minmax(0,1fr)
    }
    .content {
        padding:40px 48px
    }
    .sidebar {
        padding:32px
    }
    .results-body {
        grid-template-columns:350px minmax(0,1fr)
    }
}
@media(max-width:1100px) {
    .workspace {
        grid-template-columns:300px minmax(0,1fr)
    }
    .sidebar {
        padding:24px 18px
    }
    .content {
        padding:28px 20px
    }
    .content-heading {
        align-items:flex-start;
        flex-direction:column;
        gap:8px
    }
    .row-actions {
        min-width:160px
    }
    .results-body {
        grid-template-columns:275px minmax(0,1fr)
    }
    .place-details {
        padding:24px
    }
    .detail-grid {
        grid-template-columns:1fr
    }
    .raw-field {
        grid-template-columns:110px minmax(0,1fr)
    }
    .business-title {
        font-size:24px
    }
}
@media(max-width:760px) {
    .app-header {
        height:82px;
        padding:15px 20px
    }
    .brand h1 {
        font-size:17px
    }
    .local-badge {
        font-size:0;
        padding:8px
    }
    .local-badge span {
        font-size:8px;
        margin:0
    }
    .workspace {
        display:flex;
        flex-direction:column;
        min-height:calc(100vh - 82px)
    }
    .sidebar {
        border-right:0;
        border-bottom:1px solid var(--line);
        padding:24px
    }
    .section-heading p {
        margin-bottom:18px
    }
    .content {
        padding:25px 18px
    }
    .content-heading h2 {
        font-size:24px
    }
    td,th {
        padding:14px
    }
    .results-modal {
        padding:8px
    }
    .results-window {
        height:97dvh;
        border-radius:12px
    }
    .results-header {
        padding:16px;
        align-items:flex-start
    }
    .results-header h2 {
        font-size:18px
    }
    .results-header-actions {
        gap:8px
    }
    .results-header-actions .button {
        font-size:10px;
        padding:7px
    }
    .results-header .eyebrow {
        font-size:8px
    }
    .results-header p {
        font-size:10px
    }
    .results-toolbar {
        padding:10px 14px;
        gap:9px;
        flex-wrap:wrap
    }
    .result-search {
        flex-basis:100%;
        max-width:none
    }
    .sort-label {
        font-size:10px
    }
    .results-body {
        grid-template-columns:1fr;
        grid-template-rows:170px minmax(0,1fr)
    }
    .results-list {
        border-right:0;
        border-bottom:1px solid var(--line)
    }
    #job-places-list {
        display:flex;
        gap:8px;
        height:100%;
        overflow-x:auto;
        align-items:stretch
    }
    .place-item {
        min-width:230px;
        width:230px;
        margin:0;
        padding:12px
    }
    .place-address {
        -webkit-line-clamp:2
    }
    .place-details {
        padding:20px 16px
    }
    .business-title {
        font-size:23px
    }
    .detail-tabs {
        gap:15px
    }
    .detail-tab {
        font-size:11px
    }
    .raw-field {
        grid-template-columns:1fr;
        gap:7px;
        padding:14px
    }
    .results-header-actions .icon-button {
        width:28px;
        height:28px
    }
    .results-header>div:first-child {
        min-width:0
    }
    .hours-list .detail-field {
        grid-template-columns:95px minmax(0,1fr)
    }
    .business-map {
        height:300px
    }
    .toast {
        width:calc(100% - 32px);
        text-align:center;
        font-size:12px
    }
}
@media(prefers-reduced-motion:reduce) {
    * {
        transition:none!important;
        scroll-behavior:auto!important
    }
}
.mobile-jump  {
    display: none;
}
@media(max-width:760px)  {
    .mobile-jump  {
        display: block;
        padding: 10px 24px;
        background: #eaf5f0;
        font-size: 12px;
        text-decoration: none;
        font-weight: 600;
        border-bottom: 1px solid #d8e7df;
    }
}

.attribute-heading {
    font-size: 11px;
    margin: 16px 0 8px;
}
.attribute-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.attribute-list li {
    display: flex;
    align-items: baseline;
    gap: 10px;
    padding: 5px 0;
    font-size: 11px;
}
.feature-yes, .feature-no {
    flex: none;
    font-size: 9px;
    border-radius: 6px;
    padding: 2px 6px;
}
.feature-yes {
    background: #eaf5ed;
    color: #23724d;
}
.feature-no {
    background: #f1f3f3;
    color: #788787;
}
.review-card + .review-card {
    border-top: 1px solid var(--line);
    padding-top: 18px;
    margin-top: 18px;
}
.review-author {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 12px;
    margin-bottom: 9px;
}
.review-meta {
    color: var(--muted);
    font-size: 10px;
}
.review-text {
    white-space: pre-wrap;
    font-size: 12px;
    line-height: 1.85;
}
.owner-response {
    background: #f6f9f8;
    padding: 12px;
    border-radius: 8px;
    margin-top: 12px;
    font-size: 11px;
}
.owner-response summary {
    cursor: pointer;
    color: var(--primary);
}
.owner-response p {
    margin-top: 10px;
}

/* Search-wide map with a persistent business profile beside it. */
.view-switch {
    display: inline-flex;
    flex: none;
    padding: 3px;
    gap: 3px;
    background: #edf3f1;
    border-radius: 9px;
}
.view-switch button {
    border: none;
    background: transparent;
    padding: 7px 10px;
    font-size: 11px;
    color: var(--muted);
}
.view-switch button[aria-pressed="true"] {
    background: white;
    box-shadow: 0 1px 5px #193f3715;
    color: var(--primary);
}
.search-map-panel {
    position: relative;
    min-width: 0;
    min-height: 0;
    height: 100%;
    border-right: 1px solid var(--line);
    background: #eaf0eb;
}
.search-map-panel[hidden] {
    display: none;
}
.results-body.search-map-view {
    grid-template-columns: minmax(0, 1fr) minmax(340px, 42%);
}
.search-map-view .results-list {
    display: none;
}
#search-map {
    width: 100%;
    height: 100%;
    min-height: 200px;
}
.search-map-controls {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 500;
}
.search-map-controls .button {
    box-shadow: 0 2px 8px #173f3720;
}
.search-map-status {
    position: absolute;
    z-index: 500;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(340px, 85%);
    padding: 18px;
    border-radius: 12px;
    background: white;
    color: var(--muted);
    box-shadow: 0 4px 24px #173f3717;
    font-size: 12px;
    text-align: center;
}
.search-map-status[hidden] {
    display: none;
}
.search-map-note {
    position: absolute;
    bottom: 24px;
    left: 12px;
    right: 12px;
    z-index: 500;
    width: fit-content;
    max-width: calc(100% - 24px);
    background: #ffffffed;
    padding: 7px 10px;
    border-radius: 8px;
    font-size: 10px;
    color: #49645d;
    box-shadow: 0 2px 9px #173f3715;
    pointer-events: none;
}
.search-map-note:empty {
    display: none;
}
.business-pin {
    background: transparent;
    border: none;
}
.pin-dot {
    display: block;
    width: 23px;
    height: 23px;
    background: #1a7968;
    border: 3px solid white;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    box-shadow: 0 2px 7px #183f3770;
}
.pin-dot::after {
    content: '';
    display: block;
    width: 5px;
    height: 5px;
    background: white;
    border-radius: 50%;
    margin: 6px;
}
.business-pin.is-selected .pin-dot {
    background: #dc8439;
    box-shadow: 0 0 0 4px #dc843933, 0 2px 7px #183f3770;
}
.map-preview-tooltip.leaflet-tooltip {
    white-space: normal;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 15px 17px;
    box-shadow: 0 8px 25px #173f3730;
    color: var(--ink);
    font-family: 'DM Sans', 'Segoe UI', sans-serif;
}
.map-preview-card {
    width: 235px;
    max-width: 60vw;
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.map-preview-title {
    font-size: 13px;
    line-height: 1.5;
    overflow-wrap: anywhere;
}
.map-preview-category, .map-preview-address {
    font-size: 11px;
    color: var(--muted);
    line-height: 1.6;
    overflow-wrap: anywhere;
}
.map-preview-rating {
    font-size: 11px;
    color: #a87822;
}
.map-preview-phone {
    font-size: 11px;
    color: var(--primary);
}
.map-preview-hint {
    font-size: 10px;
    color: var(--primary);
    padding-top: 6px;
    border-top: 1px solid var(--line);
    margin-top: 4px;
}
@media(max-width:1100px) and (min-width:761px) {
    .results-body.search-map-view {
        grid-template-columns: minmax(0, 1fr) minmax(310px, 44%);
    }
    .results-toolbar {
        flex-wrap: wrap;
        gap: 10px;
    }
}
@media(max-width:760px) {
    .results-body.search-map-view {
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: minmax(190px, 45%) minmax(0, 1fr);
    }
    .search-map-panel {
        border-right: none;
        border-bottom: 1px solid var(--line);
    }
    .results-toolbar .result-search {
        order: -1;
    }
    .view-switch button {
        padding: 6px 8px;
        font-size: 10px;
    }
    .sort-label {
        gap: 4px;
    }
    .sort-label select {
        max-width: 110px;
    }
    .search-map-controls .button {
        font-size: 10px;
        padding: 6px 9px;
    }
}

/* PlaceScout private account pages. */
input[type="password"] {
    padding: 11px 12px;
    width: 100%;
    min-width: 0;
}
.session-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}
.session-actions form {
    display: block;
    margin: 0;
}
.auth-page {
    min-height: 100dvh;
    display: grid;
    place-items: center;
    padding: 32px;
    background: #f2f6f4;
}
.auth-shell {
    width: min(980px, 100%);
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    background: white;
    border: 1px solid var(--line);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 18px 80px #173f370b;
}
.auth-story {
    background: #164e43;
    color: white;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 550px;
}
.auth-story .brand-mark {
    background: #ffffff1c;
    border: 1px solid #ffffff2b;
}
.auth-story .brand p, .auth-story .eyebrow {
    color: #accbc2;
}
.auth-story-copy h2 {
    font-size: 33px;
    line-height: 1.3;
    letter-spacing: -1px;
    margin: 16px 0;
}
.auth-story-copy p {
    color: #c0d5ce;
    font-size: 13px;
    line-height: 1.9;
}
.auth-private-note {
    color: #b5cfc6;
    font-size: 11px;
    margin-top: 30px;
}
.auth-form-panel {
    padding: 60px 44px;
    align-self: center;
}
.auth-form-panel h2 {
    font-size: 26px;
    letter-spacing: -.6px;
}
.auth-intro {
    color: var(--muted);
    font-size: 12px;
    margin: 8px 0 28px;
}
.auth-footnote {
    margin-top: 22px;
    font-size: 11px;
    line-height: 1.8;
    color: var(--muted);
}
.account-shell {
    width: min(480px, 100%);
}
.back-link {
    display: inline-block;
    margin-bottom: 22px;
    text-decoration: none;
    font-size: 12px;
}
.account-card {
    background: white;
    padding: 32px;
    border: 1px solid var(--line);
    border-radius: 18px;
}
.account-username {
    font-size: 12px;
    margin: 24px 0;
    color: var(--muted);
}
.success-message {
    background: #eaf5ed;
    color: #23724d;
    padding: 12px;
    border: 1px solid #bfddca;
    border-radius: 8px;
    margin-bottom: 18px;
    font-size: 12px;
}
@media(max-width:760px) {
    .app-header {
        height: auto;
        min-height: 96px;
        flex-wrap: wrap;
    }
    .session-actions {
        width: 100%;
        justify-content: flex-end;
    }
    .auth-page {
        padding: 18px;
    }
    .auth-shell {
        grid-template-columns: 1fr;
        border-radius: 18px;
    }
    .auth-story {
        padding: 24px;
        min-height: auto;
    }
    .auth-story-copy, .auth-private-note {
        display: none;
    }
    .auth-form-panel {
        padding: 34px 24px;
    }
    .auth-form-panel h2 {
        font-size: 23px;
    }
    .account-card {
        padding: 24px;
    }
}

.basemap-notice {
    position: absolute;
    z-index: 510;
    left: 12px;
    right: 12px;
    bottom: 60px;
    width: fit-content;
    max-width: calc(100% - 24px);
    margin: 0;
    padding: 10px 12px;
    border: 1px solid #e6d3ab;
    border-radius: 9px;
    background: #fff8e9;
    color: #77602e;
    font: 11px/1.6 'DM Sans', 'Segoe UI', sans-serif;
    pointer-events: none;
}
