/*
===============================================================================
 mcparken – Hojkartan
 Fil: pois.css
 Version: 3.2
 Datum: 2026-09-05

===============================================================================
*/

/* GRUND OCH VARIABLER */

:root {
    --ink: #242725;
    --muted: #747875;
    --line: #e3e5e3;
    --soft: #f4f5f4;
    --accent: #4f5652;
    --green: #3f6154;
    --shadow: 0 14px 36px rgba(23,33,28,.10);
    --ui-bg: #fff;
    --ui-surface: #fff;
    --ui-surface-2: #f4f5f4;
    --ui-surface-3: #eceeec;
    --ui-text: #242725;
    --ui-muted: #707672;
    --ui-border: #dde1de;
    --ui-control: #fff;
    --ui-control-active: #343a37;
    --ui-accent: #087cff;
    --ui-danger: #dc3545;
    --ui-shadow: 0 12px 32px rgba(24,29,26,.11);
}

* {
    box-sizing: border-box;
}

body {
    color: var(--ink);
    background: #fff;
}

.favorite-count {
    position: absolute;
    right: -6px;
    top: -6px;
    background: var(--accent);
    color: #fff;
    border-radius: 10px;
    padding: 1px 5px;
    font-size: .65rem;
}

.eyebrow {
    font-size: .69rem;
    letter-spacing: .14em;
    font-weight: 800;
    color: var(--accent);
    position: relative;
    left: 10px;
    top: 6px;
}

.rating {
    color: #dc8a16;
    font-weight: 700;
    font-size: .87rem;
    white-space: nowrap;
}

.meta {
    display: flex;
    gap: .7rem;
    color: var(--muted);
    font-size: .75rem;
    margin: .48rem 0;
}

.open {
    color: var(--green);
    font-weight: 700;
}

.closed {
    color: #a44132;
    font-weight: 700;
}

.check-grid {
    display: grid;
    gap: .35rem;
}

.check-card {
    display: flex;
    align-items: center;
    gap: .5rem;
    min-height: 42px;
    padding: .45rem .6rem;
    border: 1px solid var(--line);
    border-radius: 4px;
    cursor: pointer;
}

    .check-card:has(input:checked) {
        border-color: var(--green);
        background: #f1f8f4;
    }

    .check-card input {
        accent-color: var(--green);
    }

    .check-card .filter-option-name { min-width: 0; font-weight: inherit; }
    .check-card > i { width: 1.1rem; color: var(--ui-muted); text-align: center; }
    .check-card .filter-option-count { margin-left: auto; color: var(--ui-muted); font-size: .8rem; font-variant-numeric: tabular-nums; }
    .check-card small {
        color: var(--muted);
    }

.popup-sponsored {
    color: #737875;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: .62rem;
    font-weight: 800;
}

.sponsored-heading {
    margin-bottom: -.25rem;
}

.organic-heading {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin-top: .35rem;
}

    .organic-heading:after {
        content: "";
        height: 1px;
        flex: 1;
        background: var(--line);
    }

.section-title-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-end;
}

    .section-title-row p {
        color: var(--muted);
        font-size: .72rem;
        margin: -.15rem 0 .5rem;
    }

    .section-title-row > span {
        font-size: .65rem;
        color: var(--muted);
    }

.compact-stars button {
    font-size: 1rem;
}

.quick-start {
    display: flex;
    flex-direction: column;
    margin: 0 auto .8rem;
    max-width: 480px;
    padding: .65rem;
    border-radius: 8px;
    background: #f3f6f4;
}

    .quick-start b {
        font-size: .75rem;
    }

    .quick-start span {
        font-size: .64rem;
        color: var(--muted);
        margin-top: .12rem;
    }

.resend-code {
    border: 0;
    background: transparent;
    color: var(--muted);
    font-size: .65rem;
    text-decoration: underline;
}

.step-number {
    font-size: .65rem;
    color: var(--muted);
    font-weight: 800;
}

.activity-inline {
    display: flex;
    align-items: center;
    gap: .28rem;
    white-space: nowrap;
    font-size: .61rem;
}

    .activity-inline i {
        color: #747a76;
    }

.freshness {
    color: var(--ui-muted);
}

.responsible-check {
    display: flex;
    align-items: flex-start;
    gap: .55rem;
    padding: .65rem;
    border: 1px solid var(--ui-border);
    border-radius: 8px;
    background: var(--ui-surface-2);
    cursor: pointer;
}

    .responsible-check input {
        margin-top: .15rem;
        accent-color: #252a27;
    }

    .responsible-check span, .responsible-check b, .responsible-check small {
        display: block;
    }

    .responsible-check b {
        font-size: .72rem;
    }

    .responsible-check small {
        margin-top: .1rem;
        color: var(--ui-muted);
        font-size: .62rem;
    }

.font-weight-medium small {
    margin-left: .25rem;
    color: var(--ui-muted);
    font-size: .6rem;
    font-weight: 500;
}

#sortSelect {
    display: none;
}

/* ARBETSYTA OCH RESULTATLISTA */

.brand {
    display: flex;
    align-items: center;
    gap: .65rem;
    color: var(--ink);
    font-weight: 800;
    font-size: 1.25rem;
    white-space: nowrap;
}

.explorer {
    display: grid;
    grid-template-columns: minmax(440px,50%) minmax(0,1fr);
    column-gap: 5px;
    height: calc(100dvh - 182px);
    min-height: 540px;
    border-top: 1px solid var(--line);
}

.results-pane {
    overflow: auto;
    padding: 1rem 1.25rem 3rem;
    padding-left: 0;
    padding-right: 0;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 5px;
    align-items: stretch;
    padding-top: .35rem;
}

.empty-state {
    text-align: center;
    padding: 5rem 1rem;
}

    .empty-state i {
        font-size: 2.2rem;
    }

.mobile-view-toggle {
    display: none;
    padding: .62rem .9rem;
}

.result-heading .eyebrow, .result-heading h1 {
    display: none;
}

.result-heading {
    height: 48px;
    min-height: 48px;
    padding-top: .45rem;
    padding-bottom: .45rem;
    align-items: center;
}

    .result-heading > div {
        display: flex;
        align-items: center;
    }

    .result-heading p.text-secondary {
        font-size: .82rem;
    }

/* KONTROLLER, KNAPPAR, FILTER OCH SORTERING */

.category-nav {
    display: flex;
    gap: .3rem;
    overflow: auto;
    scrollbar-width: none;
}

    .category-nav::-webkit-scrollbar {
        display: none;
    }

.category-pill {
    border: 1px solid transparent;
    background: transparent;
    border-radius: 999px;
    padding: 0 .52rem;
    color: var(--muted);
    white-space: nowrap;
    font-size: .68rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .28rem;
    height: 38px;
    line-height: 1;
}

    .category-pill.active {
        background: var(--ui-surface-2);
        color: #343936;
        font-weight: 700;
        border-color: #aeb5b0;
        box-shadow: none;
    }

.icon-btn {
    position: relative;
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 50%;
    width: 42px;
    height: 42px;
}

.search-band {
    position: sticky;
    top: 0;
    /* Ska ligga över sidans resultat, men under master-sidans megameny. */
    z-index: 20;
}

.search-row {
    display: flex;
    gap: .75rem;
    align-items: center;
}

.search-box {
    height: 42px;
    background: var(--ui-control);
    border: 1px solid #daddda;
    border-radius: 999px;
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: 0 1rem;
    flex: 1;
    max-width: 720px;
    box-shadow: none;
    padding-inline: 1rem;
}

    .search-box:focus-within {
        background: #fff;
        border-color: #8f9691;
        box-shadow: 0 0 0 2px rgba(47,54,50,.07);
    }

    .search-box input {
        border: 0;
        outline: 0;
        background: transparent;
        width: 100%;
        font-size: .74rem;
    }

.clear-search {
    border: 0;
    background: none;
}

.filter-trigger {
    height: 42px;
    border: 1px solid #daddda;
    border-radius: 999px;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    gap: .55rem;
    background: var(--ui-control);
    font-size: .78rem;
    font-weight: 700;
    box-shadow: none;
    padding-inline: 1rem;
}

    .filter-trigger b {
        background: var(--accent);
        color: #fff;
        border-radius: 10px;
        min-width: 20px;
    }

.view-switch {
    margin-left: auto;
    background: var(--ui-control);
    border-radius: 999px;
    padding: 3px;
    display: flex;
    height: 42px;
    border: 1px solid #daddda;
    gap: 2px;
    overflow: hidden;
}

    .view-switch button {
        border: 0;
        background: transparent;
        border-radius: 999px;
        padding: .4rem .75rem;
        display: flex;
        gap: .5rem;
        min-width: 86px;
        justify-content: center;
        align-items: center;
        color: var(--ui-muted);
        font-size: .76rem;
        font-weight: 750;
        transition: background .16s,color .16s,box-shadow .16s;
    }

        .view-switch button.active {
            background: var(--ui-surface-2);
            box-shadow: none;
            color: var(--ui-text);
        }

.sort-select {
    width: 190px;
    border-color: var(--line);
    height: 38px;
    padding-left: .9rem;
    border: 1px solid #daddda;
    border-radius: 999px;
    background-color: var(--ui-control);
    color: var(--ui-text);
    font-size: .72rem;
    font-weight: 650;
    box-shadow: none;
}

.active-filters {
    display: flex;
    gap: .4rem;
    flex-wrap: wrap;
}

.active-chip button {
    border: 0;
    border-radius: 50%;
    background: none;
    padding: 0 0 0 .35rem;
    outline: 0;
    box-shadow: none !important;
}

.active-chip button:hover,
.active-chip button:focus,
.active-chip button:active {
    border: 0;
    outline: 0;
    box-shadow: none !important;
}

.search-box, .filter-trigger, .view-switch, .suggest-trigger, .icon-btn {
    height: 38px;
    border-radius: 25px;
}

    .filter-trigger b, .favorite-count {
        display: grid;
        place-items: center;
        background: #dc3545;
        color: #fff;
        border-radius: 50%;
        width: 18px;
        height: 18px;
        min-width: 18px;
        padding: 0;
        line-height: 18px;
        flex: 0 0 18px;
        font-size: 10px;
        font-weight: 700;
        text-align: center;
    }

.share-menu .dropdown-menu {
    min-width: 210px;
    border: 1px solid var(--line);
    border-radius: 10px;
    box-shadow: var(--shadow);
    font-size: .82rem;
}

.share-menu .dropdown-item {
    padding: .5rem .75rem;
}

body, .search-band, .result-heading, .results-pane {
    background: var(--ui-bg);
    color: var(--ui-text);
}

.filter-trigger:hover {
    border-color: #aeb4b0;
    background: var(--ui-control);
}

.view-switch button + button {
    border-left: 0;
}

.view-switch button:hover {
    color: var(--ui-text);
    background: var(--ui-surface-2);
}

.sort-select:focus {
    border-color: #939a95;
    box-shadow: 0 0 0 2px rgba(47,54,50,.07);
}

.dropdown-menu {
    padding: .35rem;
    border: 1px solid var(--ui-border);
    border-radius: 12px;
    box-shadow: var(--ui-shadow);
}

.dropdown-item {
    border-radius: 7px;
    font-size: .75rem;
}

.dropdown-divider {
    border-color: var(--ui-border);
}

.search-box input::placeholder {
    font-size: .74rem;
    color: #858b87;
}

.sort-dropdown-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: 190px;
    height: 38px;
    padding: 0 .9rem;
    border: 1px solid #daddda;
    border-radius: 999px;
    background: var(--ui-control);
    color: var(--ui-text);
    font-size: .72rem;
    font-weight: 700;
}

    .sort-dropdown-toggle:hover, .sort-dropdown-toggle[aria-expanded="true"] {
        border-color: #9fa6a1;
    }

        .sort-dropdown-toggle[aria-expanded="true"] .bi-chevron-down {
            transform: rotate(180deg);
        }

    .sort-dropdown-toggle .bi-chevron-down {
        font-size: .68rem;
        transition: transform .16s;
    }

.sort-dropdown .dropdown-menu {
    width: 220px;
}

.sort-dropdown .dropdown-item {
    display: flex;
    align-items: center;
    padding: .55rem .7rem;
}

    .sort-dropdown .dropdown-item.active {
        background: var(--ui-surface-2);
        color: var(--ui-text);
    }

    .sort-dropdown .dropdown-item i {
        color: var(--ui-muted);
    }

#filterPanel fieldset {
    margin: 0 0 1.25rem;
}

    #filterPanel fieldset:last-child {
        margin-bottom: 0;
    }

#filterPanel legend {
    margin-bottom: .65rem;
    font-size: .82rem;
    font-weight: 800;
}

#filterPanel .check-grid {
    grid-template-columns: repeat(3,minmax(0,1fr));
}

#filterPanel .modal-content,
#filterPanel button,
#filterPanel input {
    font-family: inherit;
}

.poi-filter-section-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: .7rem;
}

.poi-filter-section-header h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
}

.poi-filter-section-header p {
    margin: .15rem 0 0;
    color: var(--ui-muted);
    font-size: .82rem;
}

.filter-search {
    position: relative;
    margin-bottom: .7rem;
}

.filter-search > i {
    position: absolute;
    top: 50%;
    left: .75rem;
    transform: translateY(-50%);
    color: var(--ui-muted);
}

.filter-search .form-control {
    padding-left: 2.25rem;
    border-radius: 4px;
}

#filterPanel .scrollable-tabs-container {
    background: transparent;
}

#filterPanel .poi-filter-panels,
#filterPanel .poi-filter-panels > .tab-pane {
    border: 0 !important;
    box-shadow: none !important;
    outline: 0;
}

#filterPanel .scrolltab-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.2rem;
    height: 1.2rem;
    margin-left: .35rem;
    padding: 0 .3rem;
    border-radius: 10px;
    background: var(--ui-control-active);
    color: #fff;
    font-size: .7rem;
}

@media (max-width: 991px) {
    #filterPanel .check-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

.dropdown-menu-right {
    right: 0;
    left: auto;
}

.sort-dropdown {
    position: relative;
}

    .sort-dropdown > .dropdown-menu {
        position: absolute;
        inset: auto 0 auto auto;
        top: calc(100% + 6px);
        right: 0;
        left: auto;
        transform: none;
        margin: 0;
    }

.search-band > .container-fluid, .result-heading {
    padding-left: 0;
    padding-right: 0;
}

.search-band > .container-fluid {
    padding-top: .45rem;
    padding-bottom: .45rem;
}

.search-row > .category-nav {
    flex: 0 0 auto;
    margin: 0;
    gap: 2px;
}

.search-row > .search-box {
    min-width: 220px;
    max-width: none;
}

.search-row > .icon-btn {
    flex: 0 0 40px;
    width: 40px;
    height: 38px;
}

.category-pill:focus-visible {
    outline: 2px solid #7b8780;
    outline-offset: 2px;
}

/* VERKSAMHETSKORT */

.place-card {
    border: 1px solid var(--line);
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    transition: .2s;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 100%;
}

    .place-card:hover, .place-card.active {
        transform: translateY(-2px);
        box-shadow: var(--shadow);
        border-color: #b9c8c0;
    }

.card-visual {
    height: 145px;
    position: relative;
    display: flex;
    align-items: flex-end;
    padding: 1rem;
    color: #fff;
    background: linear-gradient(135deg,#244f42,#78a18e);
    background-size: cover;
    background-position: center;
    margin: 4px 4px 0;
    width: calc(100% - 8px);
    border-radius: 7px;
}

    .card-visual.tyres {
        background: linear-gradient(135deg,#313739,#879093);
    }

    .card-visual.dealer {
        background: linear-gradient(135deg,#5f2d1c,#d1784c);
    }

    .card-visual.buyer {
        background: linear-gradient(135deg,#243144,#6686ad);
    }

.favorite-btn {
    position: absolute;
    right: .65rem;
    bottom: auto;
    width: 30px;
    height: 30px;
    border: 1px solid rgba(0,0,0,.06);
    border-radius: 50%;
    background: #fff;
    color: var(--accent);
    top: .65rem;
    font-size: 13px;
    display: block;
    place-items: center;
    padding: 0;
    line-height: 0;
}

.card-copy {
    position: relative;
    padding: .82rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

    .card-copy h5 {
        font-size: .96rem;
        margin: 0 0 .2rem;
        line-height: 1.25;
        margin-bottom: .1rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

.tags {
    display: flex;
    gap: .35rem;
    flex-wrap: wrap;
}

.tag, .active-chip {
    font-size: .7rem;
    background: var(--soft);
    padding: .3rem .5rem;
    border-radius: 8px;
    color: #4c5a53;
}

.card-visual, .card-visual.tyres, .card-visual.dealer, .card-visual.buyer {
    height: 138px;
    flex: 0 0 138px;
    padding: .8rem;
    background-color: #737876;
    background-size: 100% 100%, cover;
    background-position: center, center;
    background-repeat: no-repeat, no-repeat;
}

.card-copy > p {
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-copy .tags {
    margin-top: auto;
    padding-right: 42px;
}

.tag i {
    margin-right: .18rem;
}

.result-section-label {
    grid-column: 1/-1;
    font-size: .68rem;
    text-transform: uppercase;
    letter-spacing: .11em;
    font-weight: 800;
    color: #717673;
    padding: .2rem 0;
}

.favorite-btn i {
    display: grid;
    line-height: 0;
    transform: none;
    position: absolute;
    inset: 0;
    place-items: center;
}

.card-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: .45rem;
    min-width: 0;
}

.card-info-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    margin-top: .15rem;
}

.card-title-copy {
    min-width: 0;
    flex: 1;
}

    .card-title-copy h5 {
        display: block;
        max-width: 100%;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        margin: 0 0 .1rem;
        font-size: 1rem;
        line-height: 1.25;
        font-weight: 600;
    }

.favorite-btn i:before {
    display: block;
    margin: 0;
    line-height: 1;
    vertical-align: 0;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%,-50%);
}

.favorite-btn .bi-heart-fill:before {
    transform: translate(-50%,calc(-50% + 1px));
    color: #dc3545;
}

.favorite-btn .bi-heart:before {
    color: #59605c;
}

.text-secondary, .card-copy > p, .meta {
    color: var(--ui-muted);
}

.relevance-note {
    display: flex;
    align-items: center;
    gap: .3rem;
    margin: -.1rem 0 .4rem;
    color: #68706b;
    font-size: .6rem;
    font-weight: 700;
}

    .relevance-note i {
        font-size: .66rem;
    }

.sponsored-heading + .place-card .relevance-note {
    color: #8b5a37;
}

.card-info-row .rating {
    display: block;
    margin-left: auto;
    line-height: 1.25;
}

.card-company-link {
    position: absolute;
    right: .82rem;
    bottom: .82rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 2px solid #202421;
    border-radius: 50%;
    background: var(--ui-surface);
    color: var(--ui-text);
    text-decoration: none;
}

.card-company-link:hover,
.card-company-link:focus {
    background: #202421;
    color: #fff;
    text-decoration: none;
}

/* KARTA, MARKÖRER OCH LEAFLET */

.map-pane {
    position: relative;
    min-width: 0;
}

.brand-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: .3rem;
}

.brand-badge {
    display: inline-grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border: 1px solid var(--ui-border);
    border-radius: 50%;
    background: var(--ui-surface);
    color: var(--ui-text);
    font-size: .52rem;
    font-weight: 800;
    overflow: hidden;
}

.brand-badge img {
    width: 18px;
    height: 18px;
    object-fit: contain;
}


.smr-tag {
    color: #245e50;
}

    .map-pane #map {
        height: 100%;
        width: 100%;
        background: #e9eae9;
    }

.map-search-btn {
    position: absolute;
    z-index: 500;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    border: 0;
    border-radius: 999px;
    background: var(--ink);
    color: #fff;
    padding: .58rem .85rem;
    box-shadow: var(--shadow);
}

.custom-marker {
    background: transparent;
    border: 0;
}

.marker-pin {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    transform: none;
    background: #4f5552;
    color: #fff;
    box-shadow: 0 5px 16px rgba(0,0,0,.2);
    border: 3px solid white;
    border-width: 2px;
}

    .marker-pin i {
        transform: none;
    }

.custom-marker.active .marker-pin {
    background: #087cff;
    width: 46px;
    height: 46px;
    box-shadow: 0 0 0 4px rgba(8,124,255,.16),0 5px 16px rgba(0,0,0,.2);
}

.leaflet-popup-content-wrapper {
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(25,30,27,.18);
}

.leaflet-tile-pane {
    filter: grayscale(1) contrast(.8) brightness(1.13);
    opacity: .84;
}

.cluster-pin {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #e8f2ff;
    color: #2468a9;
    border: 4px solid rgba(255,255,255,.92);
    font-size: .85rem;
    font-weight: 800;
    box-shadow: 0 4px 16px rgba(37,104,169,.2);
    border-width: 2px;
    cursor: pointer;
    border-color: #fff;
    transition: background-color .15s,color .15s,transform .15s,box-shadow .15s;
}

.user-location {
    display: block;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #087cff;
    border: 4px solid #fff;
    animation: locationPulse 2s infinite;
    border-width: 3px;
    animation-name: blueLocationPulse;
}

.leaflet-overlay-pane {
    filter: none;
    opacity: 1;
}

.leaflet-popup-close-button {
    margin: 5px;
}

.map-tools {
    position: absolute;
    right: 12px;
    top: 12px;
    z-index: 600;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

    .map-tools button {
        display: grid;
        place-items: center;
        width: 40px;
        height: 40px;
        padding: 0;
        border: 1px solid #d9dcda;
        border-radius: 50%;
        background: var(--ui-surface);
        color: var(--ui-text);
        box-shadow: 0 3px 10px rgba(0,0,0,.12);
        font-size: .85rem;
        border-color: var(--ui-border);
    }

        .map-tools button:hover, .map-tools button.active {
            background: var(--ui-control-active);
            color: var(--ui-bg);
        }

.map-fullscreen {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100dvh;
    z-index: 2000;
}

    .map-fullscreen #map {
        height: 100%;
    }

.leaflet-control-zoom {
    display: none;
}

#map.satellite-mode .leaflet-tile-pane {
    filter: none;
    opacity: 1;
}

#map.satellite-mode .leaflet-overlay-pane {
    filter: none;
    opacity: .9;
}

.map-share-wrap > .dropdown-menu {
    min-width: 215px;
    border: 1px solid var(--line);
    border-radius: 10px;
    box-shadow: var(--shadow);
    font-size: .82rem;
    padding: 5px;
}

.map-share-wrap .dropdown-item {
    display: block;
    width: 100%;
    height: auto;
    padding: .5rem .75rem;
    border: 0;
    border-radius: 0;
    background: #fff;
    text-align: left;
    box-shadow: none;
}

.map-tools .map-share-wrap > button:disabled {
    opacity: .45;
    cursor: not-allowed;
}

.map-share-wrap .dropdown-item:hover, .map-share-wrap .dropdown-item:focus {
    background: #f0f1f0;
    color: #303431;
}

.map-share-wrap .dropdown-item.active, .map-share-wrap .dropdown-item:active {
    background: #4b504d;
    color: #fff;
}

.leaflet-popup-content {
    margin: 8px;
}

.labels-visible .custom-marker {
    display: grid;
    place-items: center;
}

.labels-visible .marker-pin {
    width: 26px;
    height: 26px;
    border-color: #fff;
    background: #70818a;
    font-size: 9px;
}

.labels-visible .custom-marker.active .marker-pin {
    width: 30px;
    height: 30px;
    background: #087cff;
}

.map-area-banner {
    position: absolute;
    z-index: 550;
    left: 14px;
    bottom: 14px;
    display: flex;
    align-items: center;
    gap: .8rem;
    padding: .55rem .7rem;
    border: 1px solid var(--ui-border);
    border-radius: 9px;
    background: var(--ui-surface);
    color: var(--ui-text);
    box-shadow: var(--ui-shadow);
    font-size: .68rem;
}

    .map-area-banner span {
        display: flex;
        align-items: center;
        gap: .3rem;
    }

    .map-area-banner button {
        border: 0;
        background: transparent;
        color: var(--ui-accent);
        font-size: .66rem;
        font-weight: 800;
    }

.map-search-btn, .mobile-view-toggle {
    font-size: .68rem;
    font-weight: 700;
    line-height: 1.2;
}

.leaflet-container a.leaflet-popup-close-button {
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    right: 7px;
    top: 7px;
    padding: 0;
    border-radius: 50%;
    background: transparent;
    color: #68706b;
    font-size: 15px;
    line-height: 1;
    transition: background-color .15s,color .15s;
}

    .leaflet-container a.leaflet-popup-close-button:hover {
        background: #ecefed;
        color: #252a27;
    }

.map-share-wrap > .dropdown-menu.show {
    display: block;
    z-index: 1200;
}

.map-share-wrap > .dropdown-menu .dropdown-item > i {
    padding-right: .5rem;
}

.cluster-pin:hover {
    background: #d5e9ff;
    color: #12558f;
    transform: scale(1.08);
    box-shadow: 0 6px 19px rgba(37,104,169,.3);
}

/* MODALER OCH FÖRETAGSDETALJER */

.modal-content {
    border: 0;
    border-radius: 20px;
    overflow: hidden;
}

.company-logo {
    position: absolute;
    left: .75rem;
    bottom: .7rem;
    display: grid;
    place-items: center;
    width: 72px;
    height: 42px;
    border-radius: 999px;
    background: #fff;
    color: #343936;
    font-size: .72rem;
    font-weight: 900;
    letter-spacing: .03em;
    box-shadow: 0 4px 14px rgba(0,0,0,.15);
    overflow: hidden;
}

    .company-logo img {
        display: block;
        width: 60px;
        height: 30px;
        object-fit: contain;
    }

.company-logo-dark {
    display: none !important;
}

html.dark .company-logo-light {
    display: none !important;
}

html.dark .company-logo-dark {
    display: block !important;
}

.company-logo-fallback {
    font-size: 1.15rem;
    font-weight: 400;
}

.map-preview-card {
    display: grid;
    grid-template-columns: 96px minmax(0,1fr);
    gap: .7rem;
    width: 320px;
    min-height: 104px;
    cursor: pointer;
}

.map-preview-image {
    position: relative;
    min-height: 104px;
    border-radius: 8px;
    background-size: cover;
    background-position: center;
}

    .map-preview-image > span {
        position: absolute;
        left: 6px;
        bottom: 10px;
        display: grid;
        place-items: center;
        width: 54px;
        height: 32px;
        border-radius: 999px;
        background: #fff;
        box-shadow: 0 2px 7px rgba(0,0,0,.15);
    }

    .map-preview-image img {
        width: 46px;
        height: 24px;
        object-fit: contain;
    }

.map-preview-copy {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: .1rem .2rem .1rem 0;
    margin-top: 25px;
}

    .map-preview-copy > b {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        font-size: .88rem;
    }

.map-preview-meta {
    display: flex;
    align-items: center;
    gap: .55rem;
    font-size: .66rem;
    margin: .12rem 0;
}

    .map-preview-meta .bi-star-fill {
        color: #d88a18;
    }

.map-preview-capabilities {
    display: flex;
    gap: .55rem;
    margin: .2rem 0;
    font-size: .6rem;
    color: #454b47;
    white-space: nowrap;
}

    .map-preview-capabilities span {
        display: flex;
        align-items: center;
        gap: .2rem;
    }

    .map-preview-capabilities .muted {
        color: #b5b9b6;
        text-decoration: line-through;
    }

.map-preview-card .popup-sponsored {
    margin-bottom: .05rem;
}

.company-map-label {
    max-width: 155px;
    padding: 5px 9px;
    border: 0;
    border-radius: 999px;
    background: #3f4541;
    color: #fff;
    box-shadow: 0 4px 12px rgba(20,25,22,.2);
    font-size: 10px;
    font-weight: 750;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    pointer-events: auto;
    cursor: pointer;
}

    .company-map-label:before {
        display: block;
        border-top-color: #3f4541;
    }

    .company-map-label.selected {
        background: #087cff;
        color: #fff;
    }

        .company-map-label.selected:before {
            border-top-color: #087cff;
        }

    .company-map-label:hover {
        background: #2d312f;
    }

    .company-map-label.selected:hover {
        background: #066edc;
    }

.border-bottom, .place-card, .modal-content, .form-control, .custom-select, .filter-trigger, .icon-btn {
    border-color: var(--ui-border);
}

    .card-copy h5, .modal-content h2, .modal-content h3, .dropdown-item {
        color: var(--ui-text);
    }
.map-preview-copy [data-company-link] {
    align-self: flex-start;
    margin-top: 10px;
    margin-bottom: 10px;
    padding: .38rem .72rem;
    border-radius: 999px;
    font-size: .68rem;
    font-weight: 750;
    color: #fff !important;
    text-decoration: none;
}

.map-preview-copy [data-company-link]:hover,
.map-preview-copy [data-company-link]:focus {
    color: #fff !important;
    text-decoration: none;
}

.card-capacity {
    display: flex;
    align-items: center;
    gap: .3rem;
    margin: .05rem 0 .45rem;
    color: #4d6257;
    font-size: .64rem;
    font-weight: 650;
}

    .card-capacity i {
        color: #267052;
    }

#filterPanel .modal-body {
    max-height: 68vh;
    overflow-y: auto;
}

.modal .close span {
    display: block;
    line-height: .8;
}

.map-preview-card:hover {
    background: var(--ui-surface-2);
}
\r\n\r\n/* FORMULÄR */\r\n\r\n.place-card, .modal-content, .dropdown-menu, .toast {\r\n    background: var(--ui-surface);\r\n    color: var(--ui-text);\r\n}\r\n\r\n.tag, .active-chip, .check-card {\r\n    background: var(--ui-surface-2);\r\n    color: var(--ui-text);\r\n}\r\n
.suggest-trigger {
    align-items: center;
    justify-content: center;
    padding-inline: 1rem;
}

    .suggest-trigger > span {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: .45rem;
        line-height: 1;
    }

    .suggest-trigger i {
        display: inline-grid;
        place-items: center;
        line-height: 1;
    }

.suggest-intro {
    font-size: .82rem;
    line-height: 1.45;
}

.suggest-type-grid {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: .45rem;
}

    .suggest-type-grid label {
        cursor: pointer;
    }

    .suggest-type-grid input {
        position: absolute;
        opacity: 0;
        pointer-events: none;
    }

    .suggest-type-grid span {
        display: flex;
        align-items: center;
        gap: .45rem;
        min-height: 40px;
        padding: .55rem .65rem;
        border: 1px solid var(--ui-border);
        border-radius: 8px;
        background: var(--ui-surface);
        color: var(--ui-text);
        font-size: .72rem;
        transition: border-color .15s,background-color .15s,box-shadow .15s;
    }

    .suggest-type-grid input:checked + span {
        border-color: #4a5650;
        background: var(--ui-surface-3);
        box-shadow: inset 0 0 0 1px #4a5650;
    }

    .suggest-type-grid input:focus-visible + span {
        outline: 2px solid #6f8479;
        outline-offset: 2px;
    }

    .suggest-type-grid i {
        width: 16px;
        text-align: center;
        color: var(--ui-muted);
    }

.suggest-type-error {
    display: block;
    margin-top: .35rem;
    color: #b23b3b;
    font-size: .65rem;
}

#suggestModal .modal-footer .btn {
    min-width: 105px;
    border-radius: .375rem;
    font-size: .75rem;
    font-weight: 600;
}

.search-row > .suggest-trigger {
    flex: 0 0 auto;
    margin-left: 0;
}

/* DARK MODE */

html.dark {
    color-scheme: dark;
    --ui-bg: #131614;
    --ui-surface: #1b1f1c;
    --ui-surface-2: #242925;
    --ui-surface-3: #2d332f;
    --ui-text: #eef1ef;
    --ui-muted: #aab2ad;
    --ui-border: #363d38;
    --ui-control: #222723;
    --ui-control-active: #f0f2f0;
    --ui-accent: #4d9bff;
    --ui-danger: #ff6573;
    --ui-shadow: 0 14px 38px rgba(0,0,0,.34);
}

    html.dark .close {
        filter: invert(1) grayscale(1);
    }

    html.dark .leaflet-popup-content-wrapper {
        background: var(--ui-surface);
        color: var(--ui-text);
    }

    html.dark .leaflet-popup-tip {
        background: var(--ui-surface);
    }

    html.dark .dropdown-item:hover, html.dark .dropdown-item:focus {
        background: var(--ui-surface-2);
        color: var(--ui-text);
    }

    html.dark .card-visual {
        filter: brightness(.82);
    }

    html.dark .company-logo, html.dark .map-preview-image > span {
        background: #f7f8f7;
    }

    html.dark .search-box, html.dark .filter-trigger, html.dark .view-switch {
        border-color: #424943;
        box-shadow: none;
    }

        html.dark .view-switch button + button {
            border-left-color: #424943;
        }

    html.dark .sort-select, html.dark .topbar .btn-outline-dark {
        border-color: #424943;
    }

    html.dark .sort-dropdown-toggle {
        border-color: #424943;
    }

    html.dark .relevance-note {
        color: #aeb6b1;
    }

    html.dark .map-area-banner {
        background: var(--ui-surface);
    }

    html.dark .modal .close:hover, html.dark .leaflet-container a.leaflet-popup-close-button:hover {
        background-color: #333a35;
    }

    html.dark .leaflet-container a.leaflet-popup-close-button {
        color: #b9c0bb;
    }

    html.dark .card-capacity {
        color: #b8c6be;
    }

        html.dark .card-capacity i {
            color: #7fc09c;
        }

    html.dark .suggest-type-grid input:checked + span {
        border-color: #aab3ae;
        box-shadow: inset 0 0 0 1px #aab3ae;
    }

    html.dark .suggest-trigger, html.dark .search-box, html.dark .filter-trigger, html.dark .view-switch, html.dark .sort-dropdown-toggle {
        border-color: #46504a;
    }

    html.dark .cluster-pin {
        background: #274763;
        color: #d9edff;
        border-color: #151a1d;
    }

        html.dark .cluster-pin:hover {
            background: #315a7d;
            color: #fff;
        }

@keyframes locationPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(89,111,131,.45);
    }

    70% {
        box-shadow: 0 0 0 16px rgba(89,111,131,0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(89,111,131,0);
    }
}

@keyframes blueLocationPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(8,124,255,.55);
    }

    70% {
        box-shadow: 0 0 0 17px rgba(8,124,255,0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(8,124,255,0);
    }
}

/* RESPONSIVITET: (max-width:1050px) */
@media (max-width:1050px) {
    /* ARBETSYTA OCH RESULTATLISTA */

    .results-grid {
        grid-template-columns: 1fr;
    }

    .explorer {
        grid-template-columns: minmax(340px,42%) 1fr;
    }

    /* KONTROLLER, KNAPPAR, FILTER OCH SORTERING */

    .category-pill span {
        display: none;
    }

    .category-pill[data-tooltip] {
        position: relative;
    }

        .category-pill[data-tooltip]:hover:after, .category-pill[data-tooltip]:focus-visible:after {
            content: attr(data-tooltip);
            position: absolute;
            z-index: 1300;
            left: 50%;
            top: calc(100% + 7px);
            transform: translateX(-50%);
            padding: .3rem .45rem;
            border-radius: 5px;
            background: #252927;
            color: #fff;
            font-size: .62rem;
            font-weight: 500;
            line-height: 1;
            white-space: nowrap;
            pointer-events: none;
            box-shadow: 0 3px 10px rgba(0,0,0,.16);
        }

        .category-pill[data-tooltip]:hover:before, .category-pill[data-tooltip]:focus-visible:before {
            content: "";
            position: absolute;
            z-index: 1301;
            left: 50%;
            top: calc(100% + 3px);
            transform: translateX(-50%);
            border-width: 0 4px 4px;
            border-style: solid;
            border-color: transparent transparent #252927;
        }
}

/* RESPONSIVITET: (max-width:767px) */
@media (max-width:767px) {
    /* GRUND OCH VARIABLER */

    .activity-inline {
        display: none;
    }

    /* ARBETSYTA OCH RESULTATLISTA */

    .brand span:last-child {
        font-size: 1rem;
    }

    .result-heading {
        align-items: center;
        padding-inline: .7rem;
    }

        .result-heading h1 {
            font-size: 1.2rem;
        }

        .result-heading .eyebrow {
            display: none;
        }

    .explorer {
        display: block;
        height: calc(100dvh - 138px);
        min-height: 360px;
    }

    .results-grid {
        grid-template-columns: 1fr;
    }

    .explorer.mobile-map .results-pane {
        display: none;
    }

    .mobile-view-toggle {
        display: flex;
        position: fixed;
        bottom: 14px;
        left: 50%;
        transform: translateX(-50%);
        z-index: 1020;
        background: var(--ink);
        color: #fff;
        border: 0;
        border-radius: 999px;
        padding: .75rem 1.15rem;
        gap: .5rem;
        box-shadow: var(--shadow);
    }

    .brand {
        flex: 0 0 auto;
        gap: .45rem;
        font-size: .92rem;
    }

    .result-heading p.text-secondary {
        white-space: nowrap;
        font-size: .7rem;
    }

    /* KONTROLLER, KNAPPAR, FILTER OCH SORTERING */

    .category-nav {
        order: initial;
        width: auto;
        margin: 0;
        min-width: 0;
        flex: 1 1 auto;
        gap: 1px;
        justify-content: center;
        overflow: hidden;
    }

    .search-band {
        top: 58px;
    }

    .search-row {
        flex-wrap: nowrap;
        display: grid;
        gap: 6px;
        grid-template-columns: minmax(0,1fr) auto;
    }

    .search-box {
        order: initial;
        flex-basis: auto;
        max-width: none;
        height: 42px;
        flex: 1 1 auto;
        min-width: 0;
    }

    .filter-trigger {
        order: initial;
        height: 42px;
        flex: 0 0 auto;
        padding-inline: .75rem;
    }

    .view-switch {
        display: none;
    }

    .sort-select {
        width: 138px;
    }

    .category-pill {
        display: grid;
        place-items: center;
        flex: 0 0 30px;
        width: 32px;
        height: 34px;
        padding: 0;
        border-radius: 8px;
        font-size: .82rem;
    }

        .category-pill span {
            display: none;
        }

    .icon-btn {
        flex: 0 0 36px;
        width: 36px;
        height: 36px;
    }

    .search-band .container-fluid {
        padding: .55rem .7rem;
        min-height: 58px;
    }

    .search-box input {
        min-width: 0;
    }

    .active-filters:empty {
        display: none;
    }

    .sort-dropdown-toggle {
        width: 150px;
        height: 36px;
        padding-inline: .7rem;
        font-size: .68rem;
    }

    .sort-dropdown .dropdown-menu {
        width: 205px;
    }

    .search-row > .category-nav {
        grid-column: 1;
        grid-row: 1;
        width: auto;
        min-width: 0;
        justify-content: flex-start;
    }

    .search-row > .icon-btn {
        grid-column: 2;
        grid-row: 1;
        margin: 0;
        justify-self: end;
    }

    .search-row > .search-box {
        grid-column: 1;
        grid-row: 2;
        width: 100%;
        min-width: 0;
        max-width: none;
    }

    .search-row > .filter-trigger {
        grid-column: 2;
        grid-row: 2;
        margin: 0;
    }

    .search-band > .container-fluid {
        min-height: 90px;
    }

    /* VERKSAMHETSKORT */

    .card-visual {
        height: 125px;
    }

    /* KARTA, MARKÖRER OCH LEAFLET */

    .results-pane, .map-pane {
        height: 100%;
    }

    .map-pane {
        display: none;
    }

    .explorer.mobile-map .map-pane {
        display: block;
    }

    .map-area-banner {
        left: 8px;
        right: 8px;
        bottom: 62px;
        justify-content: space-between;
    }

    .card-capacity {
        font-size: .62rem;
    }

}

/* RESPONSIVITET: (min-width:768px) */
@media (min-width:768px) {
    /* GRUND OCH VARIABLER */

    body {
        overflow: hidden;
    }

    /* ARBETSYTA OCH RESULTATLISTA */

    .explorer.list-only {
        display: grid;
        height: calc(100dvh - 182px);
        min-height: 540px;
        grid-template-columns: minmax(360px,38%) 1fr;
    }

        .explorer.list-only .results-pane {
            overflow: auto;
        }

        .explorer.list-only .results-grid {
            grid-template-columns: 1fr;
            max-width: none;
            margin: auto;
        }

    .result-heading {
        height: 91px;
    }

    .explorer, .explorer.list-only {
        height: clamp(540px,calc(100dvh - 104px),880px);
        min-height: 540px;
    }

    /* KONTROLLER, KNAPPAR, FILTER OCH SORTERING */

    .search-band .container-fluid {
        min-height: 65px;
    }

    .category-nav {
        align-items: center;
        gap: .12rem;
    }

    .category-pill {
        height: 36px;
        padding: .42rem .68rem;
        border-radius: 999px;
        font-size: .73rem;
    }

    .search-band {
        border-top: 1px solid #edf0ee;
    }

    .search-box, .filter-trigger, .view-switch, .sort-dropdown-toggle {
        border-color: #d9dedb;
    }

    .search-row {
        gap: .48rem;
    }

        .search-row > .view-switch {
            margin-left: 0;
        }

    .search-band > .container-fluid {
        min-height: 50px;
    }

    /* VERKSAMHETSKORT */

    .explorer.list-only .place-card {
        display: grid;
        grid-template-columns: 118px 1fr;
        min-height: 132px;
    }

    .explorer.list-only .card-visual {
        height: 100%;
        min-height: 132px;
        margin: 4px 0 4px 4px;
        width: calc(100% - 4px);
        border-radius: 7px;
    }

    .explorer.list-only .card-copy {
        padding: .72rem;
    }

    .explorer.list-only .tags .tag:nth-child(n+3) {
        display: none;
    }

    .explorer.list-only .favorite-btn {
        right: .55rem;
        top: .55rem;
    }

    /* KARTA, MARKÖRER OCH LEAFLET */

    .explorer.list-only .map-pane {
        display: block;
    }

    /* MODALER OCH FÖRETAGSDETALJER */

    .explorer.list-only .company-logo {
        left: .6rem;
        bottom: .6rem;
    }

}

/* RESPONSIVITET: (max-width:480px) */
@media (max-width:480px) {
    /* MODALER OCH FÖRETAGSDETALJER */

    .map-preview-card {
        grid-template-columns: 82px 1fr;
        width: 280px;
    }

    .map-preview-capabilities {
        gap: .35rem;
    }
}

/* RESPONSIVITET: (max-width:520px) */
@media (max-width:520px) {
}

/* RESPONSIVITET: (min-width:1600px) */
@media (min-width:1600px) {
    /* ARBETSYTA OCH RESULTATLISTA */

    .explorer:not(.list-only) {
        grid-template-columns: minmax(0,50%) minmax(0,1fr);
    }

        .explorer:not(.list-only) .results-grid {
            grid-template-columns: repeat(3,minmax(0,1fr));
        }

        /* VERKSAMHETSKORT */

        .explorer:not(.list-only) .card-copy {
            padding: .72rem;
        }

        .explorer:not(.list-only) .tag:nth-child(n+3) {
            display: none;
        }
}

/* RESPONSIVITET: (min-width:2300px) */
@media (min-width:2300px) {
    /* ARBETSYTA OCH RESULTATLISTA */

    .explorer:not(.list-only) {
        grid-template-columns: minmax(0,50%) minmax(0,1fr);
    }

        .explorer:not(.list-only) .results-grid {
            grid-template-columns: repeat(4,minmax(0,1fr));
        }
}

/* RESPONSIVITET: (prefers-reduced-motion:reduce) */
@media (prefers-reduced-motion:reduce) {
    /* GRUND OCH VARIABLER */

    *, *:before, *:after {
        scroll-behavior: auto;
        animation-duration: .01ms;
        animation-iteration-count: 1;
        transition-duration: .01ms;
    }
}

/* RESPONSIVITET: (max-width:410px) */
@media (max-width:410px) {
    /* ARBETSYTA OCH RESULTATLISTA */

    .brand span:last-child {
        display: none;
    }

    /* KONTROLLER, KNAPPAR, FILTER OCH SORTERING */

    .category-pill {
        flex-basis: 32px;
    }

    .sort-dropdown-toggle {
        width: 142px;
    }

    .filter-trigger span {
        display: none;
    }
}

/* RESPONSIVITET: (max-width:420px) */
@media (max-width:420px) {
}

/* RESPONSIVITET: (max-width:575px) */
@media (max-width:575px) {
    /* KONTROLLER, KNAPPAR, FILTER OCH SORTERING */

    #filterPanel .check-grid {
        grid-template-columns: 1fr;
    }

    /* MODALER OCH FÖRETAGSDETALJER */

    #filterPanel .modal-body {
        max-height: 72vh;
    }
}

/* RESPONSIVITET: (max-width:1050px) and (min-width:768px) */
@media (max-width:1050px) and (min-width:768px) {
    /* KONTROLLER, KNAPPAR, FILTER OCH SORTERING */

    .category-pill span {
        display: none;
    }

    .category-pill {
        width: 32px;
        padding: 0;
    }

    .search-row > .search-box {
        min-width: 180px;
    }
}


/* karta */
.leaflet-container .leaflet-control-attribution {
    background: rgb(255 255 255 / 0%);
    top: -5px;
    right: 5px;
    color: #999;
}
