/*
|--------------------------------------------------------------------------
| IranStores Map Search Engine
|--------------------------------------------------------------------------
*/

.store-map-engine{
    --map-purple:#6d28d9;
    --map-purple-dark:#4c1d95;
    --map-purple-soft:#f5f0ff;
    --map-violet:#8b5cf6;
    --map-ink:#24172d;
    --map-muted:#776c80;
    --map-line:#e8e1ef;
    --map-bg:#f8f7fb;
    --map-green:#16844a;

    width:min(1500px,calc(100% - 28px));
    margin:22px auto 45px;
    direction:rtl;
    color:var(--map-ink);
}


/*
|--------------------------------------------------------------------------
| Hero
|--------------------------------------------------------------------------
*/

.store-map-hero{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:24px;

    margin-bottom:16px;
    padding:22px 25px;

    border:1px solid #e7def4;
    border-radius:24px;

    background:
        radial-gradient(
            circle at 15% 20%,
            rgba(139,92,246,.12),
            transparent 32%
        ),
        linear-gradient(
            135deg,
            #fff,
            #faf7ff
        );

    box-shadow:
        0 15px 45px rgba(68,42,96,.07);
}

.store-map-kicker{
    display:inline-flex;
    align-items:center;
    gap:6px;

    margin-bottom:5px;

    color:var(--map-purple);
    font-size:12px;
    font-weight:950;
}

.store-map-hero h1{
    margin:0 0 6px;

    font-size:25px;
    line-height:1.5;
    font-weight:950;
}

.store-map-hero p{
    margin:0;

    color:var(--map-muted);
    font-size:13px;
    line-height:1.9;
}

.store-map-live-summary{
    min-width:180px;
    padding:13px 18px;

    border:1px solid #e8def8;
    border-radius:18px;

    background:#fff;

    text-align:center;
}

.store-map-live-number{
    display:flex;
    align-items:baseline;
    justify-content:center;
    gap:6px;
}

.store-map-live-number strong{
    color:var(--map-purple);
    font-size:27px;
    font-weight:1000;
}

.store-map-live-number span{
    color:#54485e;
    font-size:12px;
    font-weight:900;
}

.store-map-live-location{
    margin-top:2px;

    color:#8b8093;
    font-size:10px;
    font-weight:800;
}


/*
|--------------------------------------------------------------------------
| Search panel
|--------------------------------------------------------------------------
*/

.store-map-search-panel{
    position:relative;
    z-index:500;

    padding:17px;

    border:1px solid var(--map-line);
    border-radius:22px;

    background:#fff;

    box-shadow:
        0 12px 38px rgba(41,28,55,.07);
}

.store-map-primary-search{
    display:grid;
    grid-template-columns:auto 1fr auto;
    align-items:center;

    overflow:hidden;

    border:2px solid #e6dcf5;
    border-radius:16px;

    background:#fff;

    transition:.2s ease;
}

.store-map-primary-search:focus-within{
    border-color:#a78bfa;

    box-shadow:
        0 0 0 4px rgba(139,92,246,.09);
}

.store-map-search-icon{
    padding:0 15px;
    font-size:19px;
}

.store-map-primary-search input{
    min-width:0;
    height:52px;

    border:0;
    outline:0;

    background:transparent;

    color:#2d2134;
    font-family:inherit;
    font-size:14px;
}

.store-map-primary-search input::placeholder{
    color:#aaa1b0;
}

.store-map-search-button{
    align-self:stretch;

    min-width:105px;
    padding:0 20px;

    border:0;

    background:
        linear-gradient(
            135deg,
            #7c3aed,
            #5b21b6
        );

    color:#fff;

    font-family:inherit;
    font-size:13px;
    font-weight:950;

    cursor:pointer;
}


/*
|--------------------------------------------------------------------------
| Filters
|--------------------------------------------------------------------------
*/

.store-map-filter-grid{
    display:grid;
    grid-template-columns:
        repeat(4,minmax(0,1fr));

    gap:10px;

    margin-top:13px;
}

.store-map-field{
    display:grid;
    gap:6px;
}

.store-map-field-label{
    display:flex;
    align-items:center;
    gap:6px;

    color:#62576a;
    font-size:11px;
    font-weight:900;
}

.store-map-field-label b{
    display:grid;
    place-items:center;

    width:20px;
    height:20px;

    border-radius:7px;

    background:#f1eafe;
    color:var(--map-purple);

    font-size:10px;
}

.store-map-field select,
.store-map-field input{
    width:100%;
    min-width:0;
    height:45px;

    padding:0 12px;

    border:1px solid #e3dce8;
    border-radius:12px;
    outline:0;

    background:#fff;

    color:#35293d;

    font-family:inherit;
    font-size:12px;
    font-weight:750;

    transition:.18s ease;
}

.store-map-field select:focus,
.store-map-field input:focus{
    border-color:#9f7aea;

    box-shadow:
        0 0 0 3px rgba(124,58,237,.08);
}

.store-map-field select:disabled,
.store-map-field input:disabled{
    background:#f7f6f8;
    color:#b1aab6;
    cursor:not-allowed;
}


/*
|--------------------------------------------------------------------------
| Actions
|--------------------------------------------------------------------------
*/

.store-map-actions{
    display:flex;
    align-items:center;
    flex-wrap:wrap;
    gap:9px;

    margin-top:13px;
}

.store-map-actions button{
    min-height:39px;
    padding:7px 13px;

    border-radius:11px;

    font-family:inherit;
    font-size:11px;
    font-weight:950;

    cursor:pointer;
}

.store-map-action-primary{
    border:0;

    background:
        linear-gradient(
            135deg,
            #7c3aed,
            #5b21b6
        );

    color:#fff;
}

.store-map-action-location{
    border:1px solid #d9cdf0;
    background:#f8f4ff;
    color:#6526bd;
}

.store-map-action-reset{
    border:1px solid #e5e1e8;
    background:#fff;
    color:#7b7280;
}

.store-map-search-status{
    margin-right:auto;

    color:#766b7d;
    font-size:11px;
    font-weight:800;
}


/*
|--------------------------------------------------------------------------
| Active filters
|--------------------------------------------------------------------------
*/

.store-map-active-filters{
    display:flex;
    align-items:center;
    gap:10px;

    margin:10px 0;
}

.store-map-active-title{
    color:#8b8290;
    font-size:10px;
    font-weight:850;
}

.store-map-active-list{
    display:flex;
    align-items:center;
    flex-wrap:wrap;
    gap:6px;
}

.store-map-filter-chip{
    display:inline-flex;
    align-items:center;
    gap:5px;

    padding:5px 9px;

    border:1px solid #e4d8f7;
    border-radius:999px;

    background:#faf7ff;
    color:#6427af;

    font-size:10px;
    font-weight:900;
}


/*
|--------------------------------------------------------------------------
| Workspace
|--------------------------------------------------------------------------
*/

.store-map-workspace{
    display:grid;
    grid-template-columns:minmax(0,1fr) 340px;

    height:650px;
    margin-top:13px;

    overflow:hidden;

    border:1px solid #ded7e5;
    border-radius:25px;

    background:#fff;

    box-shadow:
        0 20px 60px rgba(42,28,55,.09);
}

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

.store-map-canvas{
    width:100%;
    height:100%;
    min-height:500px;

    background:#eeeaf2;
}

.store-map-map-tools{
    position:absolute;
    z-index:500;

    top:14px;
    left:14px;
}

.store-map-map-tools button{
    display:flex;
    align-items:center;
    gap:6px;

    min-height:38px;
    padding:7px 11px;

    border:1px solid rgba(84,62,104,.18);
    border-radius:11px;

    background:rgba(255,255,255,.94);
    color:#4d3c58;

    box-shadow:
        0 7px 20px rgba(44,30,57,.12);

    backdrop-filter:blur(10px);

    font-family:inherit;
    font-size:10px;
    font-weight:900;

    cursor:pointer;
}


/*
|--------------------------------------------------------------------------
| Loading
|--------------------------------------------------------------------------
*/

.store-map-loading{
    position:absolute;
    z-index:900;

    inset:0;

    display:flex;
    align-items:center;
    justify-content:center;
    flex-direction:column;
    gap:12px;

    background:rgba(255,255,255,.73);

    backdrop-filter:blur(3px);

    color:#5c4c66;
    font-size:12px;
    font-weight:900;
}

.store-map-spinner{
    width:35px;
    height:35px;

    border:4px solid #e8ddf6;
    border-top-color:#7c3aed;
    border-radius:50%;

    animation:
        storeMapSpin .7s linear infinite;
}

@keyframes storeMapSpin{
    to{
        transform:rotate(360deg);
    }
}


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

.store-map-results{
    position:relative;
    z-index:20;

    display:flex;
    min-width:0;
    flex-direction:column;

    border-right:1px solid #e5dee9;

    background:
        linear-gradient(
            180deg,
            #fff,
            #fcfbfd
        );
}

.store-map-results-head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;

    padding:16px;

    border-bottom:1px solid #eee9f1;
}

.store-map-results-head>div{
    display:grid;
    gap:3px;
}

.store-map-results-head span{
    color:#9a909f;
    font-size:9px;
    font-weight:850;
}

.store-map-results-head strong{
    color:#312438;
    font-size:14px;
    font-weight:950;
}

.store-map-results-toggle{
    display:none;
}

.store-map-result-list{
    flex:1;

    overflow-y:auto;
    overscroll-behavior:contain;

    padding:10px;
}

.store-map-result-placeholder{
    display:flex;
    align-items:center;
    justify-content:center;
    flex-direction:column;

    min-height:310px;
    padding:30px;

    text-align:center;
}

.store-map-result-placeholder>div{
    margin-bottom:11px;
    font-size:35px;
}

.store-map-result-placeholder strong{
    font-size:13px;
    font-weight:950;
}

.store-map-result-placeholder p{
    max-width:250px;
    margin:7px auto 0;

    color:#918797;
    font-size:11px;
    line-height:2;
}


/*
|--------------------------------------------------------------------------
| Result Card
|--------------------------------------------------------------------------
*/

.store-map-result-card{
    display:grid;
    grid-template-columns:82px minmax(0,1fr);
    gap:11px;

    margin-bottom:9px;
    padding:8px;

    border:1px solid #ebe5ef;
    border-radius:15px;

    background:#fff;

    cursor:pointer;

    transition:
        transform .18s ease,
        border-color .18s ease,
        box-shadow .18s ease;
}

.store-map-result-card:hover,
.store-map-result-card.is-active{
    transform:translateY(-1px);

    border-color:#cbb5ed;

    box-shadow:
        0 9px 25px rgba(80,48,111,.10);
}

.store-map-result-image{
    position:relative;

    width:82px;
    height:82px;

    overflow:hidden;

    border-radius:12px;

    background:#f0edf3;
}

.store-map-result-image img{
    width:100%;
    height:100%;

    object-fit:cover;
}

.store-map-result-copy{
    min-width:0;
}

.store-map-result-category{
    display:block;

    margin-bottom:2px;

    color:#7c3aed;
    font-size:9px;
    font-weight:900;

    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
}

.store-map-result-name{
    display:block;

    color:#2d2034;
    font-size:12px;
    line-height:1.7;
    font-weight:950;

    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
}

.store-map-result-address{
    display:-webkit-box;

    margin-top:3px;

    overflow:hidden;

    color:#817687;
    font-size:9px;
    line-height:1.8;

    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;
}

.store-map-result-meta{
    display:flex;
    align-items:center;
    gap:7px;

    margin-top:5px;

    color:#8c8292;
    font-size:9px;
    font-weight:800;
}


/*
|--------------------------------------------------------------------------
| Leaflet
|--------------------------------------------------------------------------
*/

.store-map-engine .leaflet-container{
    font-family:inherit;
}

.store-map-engine .leaflet-control-zoom{
    overflow:hidden;

    border:0 !important;
    border-radius:12px !important;

    box-shadow:
        0 6px 20px rgba(38,25,49,.15) !important;
}

.store-map-engine .leaflet-control-zoom a{
    border:0 !important;
}


/*
|--------------------------------------------------------------------------
| Tablet
|--------------------------------------------------------------------------
*/

@media(max-width:1050px){

    .store-map-filter-grid{
        grid-template-columns:
            repeat(2,minmax(0,1fr));
    }

    .store-map-workspace{
        grid-template-columns:minmax(0,1fr) 300px;
    }

}


/*
|--------------------------------------------------------------------------
| Mobile
|--------------------------------------------------------------------------
*/

@media(max-width:767px){

    .store-map-engine{
        width:100%;
        margin:8px 0 25px;
    }

    .store-map-hero{
        margin:0 10px 9px;
        padding:14px;

        border-radius:18px;
    }

    .store-map-hero h1{
        font-size:18px;
    }

    .store-map-hero p{
        font-size:10px;
    }

    .store-map-live-summary{
        min-width:105px;
        padding:9px;
    }

    .store-map-live-number strong{
        font-size:20px;
    }

    .store-map-search-panel{
        margin:0 10px;
        padding:11px;

        border-radius:18px;
    }

    .store-map-primary-search{
        grid-template-columns:auto 1fr;
    }

    .store-map-primary-search input{
        height:46px;
        font-size:12px;
    }

    .store-map-search-button{
        grid-column:1 / -1;

        min-height:39px;
    }

    .store-map-filter-grid{
        grid-template-columns:
            repeat(2,minmax(0,1fr));

        gap:8px;
    }

    .store-map-field select,
    .store-map-field input{
        height:42px;
        font-size:10px;
    }

    .store-map-actions{
        display:grid;
        grid-template-columns:1fr 1fr;
    }

    .store-map-action-primary{
        grid-column:1 / -1;
    }

    .store-map-search-status{
        grid-column:1 / -1;
        margin:0;
    }

    .store-map-active-filters{
        margin:8px 12px;
    }

    .store-map-workspace{
        position:relative;

        display:block;

        height:
            calc(100vh - 190px);
        min-height:520px;

        margin-top:9px;

        border-right:0;
        border-left:0;
        border-radius:0;
    }

    .store-map-map-column{
        width:100%;
        height:100%;
    }

    .store-map-canvas{
        min-height:100%;
    }

    .store-map-results{
        position:absolute;

        right:8px;
        bottom:8px;
        left:8px;

        max-height:45%;

        border:1px solid #e3dbe8;
        border-radius:18px;

        box-shadow:
            0 12px 35px rgba(37,24,48,.18);
    }

    .store-map-results-head{
        padding:10px 12px;
    }

    .store-map-results-toggle{
        display:grid;
        place-items:center;

        width:31px;
        height:31px;

        border:0;
        border-radius:10px;

        background:#f5f1f8;
        color:#6b5b74;

        cursor:pointer;
    }

    .store-map-result-list{
        max-height:220px;
        padding:7px;
    }

    .store-map-result-card{
        grid-template-columns:67px minmax(0,1fr);
    }

    .store-map-result-image{
        width:67px;
        height:67px;
    }

    .store-map-map-tools{
        top:10px;
        left:10px;
    }

}


/*
|--------------------------------------------------------------------------
| Small phones
|--------------------------------------------------------------------------
*/

@media(max-width:430px){

    .store-map-hero{
        align-items:flex-start;
    }

    .store-map-live-summary{
        min-width:92px;
    }

    .store-map-filter-grid{
        grid-template-columns:1fr 1fr;
    }

    .store-map-field-label{
        font-size:9px;
    }

    .store-map-field-label b{
        width:17px;
        height:17px;
    }

}


/*
|--------------------------------------------------------------------------
| Searchable category picker
|--------------------------------------------------------------------------
*/

.store-map-category-picker{
    position:relative;
    width:100%;
}

.store-map-category-native{
    position:absolute !important;
    width:1px !important;
    height:1px !important;
    opacity:0 !important;
    pointer-events:none !important;
}

.store-map-category-trigger{
    width:100%;
    min-height:48px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    border:1px solid #e5e7eb;
    border-radius:14px;
    background:#fff;
    padding:0 14px;
    font:inherit;
    text-align:right;
    cursor:pointer;
}

.store-map-category-trigger:hover{
    border-color:#cbd5e1;
}

.store-map-category-trigger:focus{
    outline:none;
    border-color:#94a3b8;
    box-shadow:0 0 0 3px rgba(148,163,184,.16);
}

.store-map-category-arrow{
    flex:0 0 auto;
    font-size:13px;
}

.store-map-category-panel{
    position:absolute;
    z-index:1200;
    top:calc(100% + 8px);
    right:0;
    width:min(390px, calc(100vw - 32px));
    max-height:440px;
    overflow:hidden;
    border:1px solid #e5e7eb;
    border-radius:18px;
    background:#fff;
    box-shadow:
        0 18px 45px rgba(15,23,42,.16);
}

.store-map-category-search-wrap{
    position:sticky;
    top:0;
    z-index:2;
    padding:12px;
    background:#fff;
    border-bottom:1px solid #f1f5f9;
}

.store-map-category-search{
    width:100%;
    min-height:44px;
    border:1px solid #e2e8f0;
    border-radius:12px;
    padding:0 13px;
    font:inherit;
    outline:none;
}

.store-map-category-search:focus{
    border-color:#94a3b8;
    box-shadow:0 0 0 3px rgba(148,163,184,.14);
}

.store-map-category-options{
    max-height:360px;
    overflow-y:auto;
    padding:8px;
}

.store-map-category-group{
    padding:4px 0 8px;
    border-bottom:1px solid #f1f5f9;
}

.store-map-category-group:last-child{
    border-bottom:0;
}

.store-map-category-option{
    width:100%;
    min-height:42px;
    display:flex;
    align-items:center;
    gap:9px;
    border:0;
    border-radius:11px;
    background:transparent;
    padding:8px 10px;
    font:inherit;
    text-align:right;
    cursor:pointer;
}

.store-map-category-option:hover{
    background:#f8fafc;
}

.store-map-category-option.is-parent{
    font-weight:800;
}

.store-map-category-option.is-parent small{
    margin-right:auto;
    color:#94a3b8;
    font-size:11px;
}

.store-map-category-option.is-child{
    padding-right:26px;
    color:#475569;
    font-size:13px;
}

.store-map-category-icon{
    width:24px;
    text-align:center;
}

.store-map-category-empty{
    padding:22px 16px;
    color:#64748b;
    text-align:center;
    font-size:13px;
}

@media (max-width: 767px){
    .store-map-category-panel{
        position:fixed;
        z-index:5000;
        top:auto;
        right:12px;
        left:12px;
        bottom:12px;
        width:auto;
        max-height:min(70vh, 520px);
        border-radius:22px;
    }

    .store-map-category-options{
        max-height:calc(70vh - 90px);
    }
}


/*
|--------------------------------------------------------------------------
| Smart map search autocomplete
|--------------------------------------------------------------------------
*/

.store-map-query-wrap{
    position:relative;
    flex:1 1 auto;
    min-width:0;
}

.store-map-query-wrap > input{
    width:100%;
}

.store-map-suggestions{
    position:absolute;
    z-index:4500;
    top:calc(100% + 10px);
    right:0;
    left:0;
    max-height:420px;
    overflow-y:auto;
    padding:8px;
    border:1px solid #e5e7eb;
    border-radius:18px;
    background:#fff;
    box-shadow:
        0 20px 50px rgba(15,23,42,.16);
}

.store-map-suggestion-item{
    width:100%;
    display:flex;
    align-items:center;
    gap:11px;
    min-height:58px;
    padding:9px 10px;
    border:0;
    border-radius:13px;
    background:transparent;
    text-align:right;
    font:inherit;
    cursor:pointer;
}

.store-map-suggestion-item:hover,
.store-map-suggestion-item.is-active{
    background:#f8fafc;
}

.store-map-suggestion-icon{
    flex:0 0 38px;
    width:38px;
    height:38px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:12px;
    background:#f1f5f9;
    font-size:17px;
}

.store-map-suggestion-copy{
    min-width:0;
    flex:1 1 auto;
    display:flex;
    flex-direction:column;
    gap:3px;
}

.store-map-suggestion-copy strong{
    overflow:hidden;
    color:#0f172a;
    font-size:14px;
    white-space:nowrap;
    text-overflow:ellipsis;
}

.store-map-suggestion-copy small{
    overflow:hidden;
    color:#64748b;
    font-size:11px;
    white-space:nowrap;
    text-overflow:ellipsis;
}

.store-map-suggestion-type{
    flex:0 0 auto;
    padding:4px 8px;
    border-radius:999px;
    background:#f8fafc;
    color:#64748b;
    font-size:10px;
    font-weight:800;
}

.store-map-suggestion-empty{
    padding:22px 14px;
    color:#64748b;
    text-align:center;
    font-size:13px;
}

@media (max-width: 767px){
    .store-map-suggestions{
        max-height:55vh;
        border-radius:16px;
    }

    .store-map-suggestion-type{
        display:none;
    }
}


/*
|--------------------------------------------------------------------------
| Removable active filter chips
|--------------------------------------------------------------------------
*/

.store-map-active-chip{
    display:inline-flex;
    align-items:center;
    gap:7px;
    max-width:100%;
    padding:6px 7px 6px 10px;
}

.store-map-active-chip-label{
    min-width:0;
    overflow:hidden;
    white-space:nowrap;
    text-overflow:ellipsis;
}

.store-map-active-chip-remove{
    flex:0 0 24px;
    width:24px;
    height:24px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:0;
    border:0;
    border-radius:50%;
    background:rgba(15,23,42,.07);
    color:inherit;
    font:inherit;
    font-size:18px;
    font-weight:700;
    line-height:1;
    cursor:pointer;
    transition:
        background .15s ease,
        transform .15s ease;
}

.store-map-active-chip-remove:hover{
    background:rgba(15,23,42,.14);
    transform:scale(1.06);
}

.store-map-active-chip-remove:focus-visible{
    outline:2px solid currentColor;
    outline-offset:2px;
}

.store-map-active-chip-remove:disabled{
    opacity:.45;
    cursor:wait;
}

@media (max-width: 767px){
    .store-map-active-chip{
        max-width:100%;
    }

    .store-map-active-chip-remove{
        width:26px;
        height:26px;
        flex-basis:26px;
    }
}


/*
|--------------------------------------------------------------------------
| Business label markers
|--------------------------------------------------------------------------
*/

.store-map-business-marker{
    overflow:visible !important;
    width:18px !important;
    height:18px !important;
    margin:0 !important;
    border:0 !important;
    background:transparent !important;
}

.store-map-marker-label{
    position:absolute;
    left:50%;
    bottom:50%;

    display:flex;
    align-items:center;
    flex-direction:column;

    width:max-content;
    max-width:230px;

    transform:translateX(-50%);
}

.store-map-marker-card{
    display:flex;
    flex-direction:column;
    gap:3px;

    min-width:120px;
    max-width:220px;

    padding:8px 11px;

    border:1px solid rgba(92,68,107,.20);
    border-radius:11px;

    background:rgba(255,255,255,.96);

    box-shadow:
        0 7px 22px rgba(45,31,54,.17),
        0 2px 5px rgba(45,31,54,.08);

    text-align:right;

    backdrop-filter:blur(5px);

    transition:
        transform .16s ease,
        box-shadow .16s ease;
}

.store-map-marker-name{
    display:block;
    max-width:198px;

    overflow:hidden;
    white-space:nowrap;
    text-overflow:ellipsis;

    color:#302137;

    font-size:11px;
    font-weight:950;
    line-height:1.5;
}

.store-map-marker-address{
    display:block;
    max-width:198px;

    overflow:hidden;
    white-space:nowrap;
    text-overflow:ellipsis;

    color:#786d7d;

    font-size:9px;
    font-weight:750;
    line-height:1.5;
}


/*
|--------------------------------------------------------------------------
| Connector to exact location
|--------------------------------------------------------------------------
*/

.store-map-marker-line{
    width:2px;
    height:28px;

    margin-top:-1px;

    background:
        linear-gradient(
            180deg,
            rgba(96,70,110,.55),
            rgba(124,58,237,.92)
        );

    pointer-events:none;
}

.store-map-marker-dot{
    position:relative;

    width:13px;
    height:13px;

    margin-top:-1px;

    border:3px solid #fff;
    border-radius:50%;

    background:#7c3aed;

    box-shadow:
        0 2px 8px rgba(76,29,149,.42);

    pointer-events:none;
}

.store-map-marker-dot::after{
    content:"";

    position:absolute;
    left:50%;
    top:50%;

    width:19px;
    height:19px;

    border:1px solid rgba(124,58,237,.30);
    border-radius:50%;

    transform:translate(-50%,-50%);
}

.store-map-business-marker:hover{
    z-index:1000 !important;
}

.store-map-business-marker:hover
.store-map-marker-card{
    transform:translateY(-2px);

    box-shadow:
        0 11px 30px rgba(45,31,54,.23),
        0 3px 8px rgba(45,31,54,.10);
}


/*
|--------------------------------------------------------------------------
| Featured
|--------------------------------------------------------------------------
*/

.store-map-business-marker.is-featured
.store-map-marker-card{
    border-color:rgba(217,119,6,.35);
}

.store-map-business-marker.is-featured
.store-map-marker-name::before{
    content:"★";

    display:inline-block;

    margin-left:5px;

    color:#d97706;
}

.store-map-business-marker.is-featured
.store-map-marker-line{
    background:
        linear-gradient(
            180deg,
            rgba(217,119,6,.55),
            rgba(217,119,6,.95)
        );
}

.store-map-business-marker.is-featured
.store-map-marker-dot{
    background:#d97706;
}


/*
|--------------------------------------------------------------------------
| My location
|--------------------------------------------------------------------------
*/

.store-map-my-location-marker{
    overflow:visible !important;

    width:24px !important;
    height:24px !important;

    border:0 !important;
    background:transparent !important;
}

.store-map-my-location{
    position:relative;

    width:24px;
    height:24px;
}

.store-map-my-location-label{
    position:absolute;

    left:50%;
    bottom:32px;

    width:max-content;

    padding:6px 10px;

    border:1px solid rgba(37,99,235,.22);
    border-radius:9px;

    background:rgba(255,255,255,.97);

    box-shadow:
        0 6px 18px rgba(30,64,175,.18);

    transform:translateX(-50%);

    color:#1d4ed8;

    font-size:10px;
    font-weight:950;
    line-height:1;

    white-space:nowrap;
}

.store-map-my-location-label::after{
    content:"";

    position:absolute;

    left:50%;
    bottom:-5px;

    width:8px;
    height:8px;

    border-right:1px solid rgba(37,99,235,.18);
    border-bottom:1px solid rgba(37,99,235,.18);

    background:#fff;

    transform:
        translateX(-50%)
        rotate(45deg);
}

.store-map-my-location-pulse{
    position:absolute;

    left:50%;
    top:50%;

    width:20px;
    height:20px;

    border:2px solid #fff;
    border-radius:50%;

    background:#2563eb;

    box-shadow:
        0 0 0 5px rgba(37,99,235,.18),
        0 3px 10px rgba(30,64,175,.38);

    transform:translate(-50%,-50%);
}

.store-map-my-location-pulse::before{
    content:"";

    position:absolute;

    left:50%;
    top:50%;

    width:42px;
    height:42px;

    border:2px solid rgba(37,99,235,.25);
    border-radius:50%;

    transform:translate(-50%,-50%);

    animation:
        storeMapMyLocationPulse
        2s ease-out infinite;
}

.store-map-my-location-pulse span{
    position:absolute;

    left:50%;
    top:50%;

    width:6px;
    height:6px;

    border-radius:50%;

    background:#fff;

    transform:translate(-50%,-50%);
}

@keyframes storeMapMyLocationPulse{
    0%{
        opacity:.85;
        transform:
            translate(-50%,-50%)
            scale(.55);
    }

    100%{
        opacity:0;
        transform:
            translate(-50%,-50%)
            scale(1.35);
    }
}


/*
|--------------------------------------------------------------------------
| Leaflet visibility
|--------------------------------------------------------------------------
*/

.store-map-canvas .leaflet-marker-pane{
    z-index:600;
}

.store-map-canvas .leaflet-marker-icon{
    visibility:visible !important;
    opacity:1 !important;
}


/*
|--------------------------------------------------------------------------
| Mobile
|--------------------------------------------------------------------------
*/

@media(max-width:768px){

    .store-map-marker-card{
        min-width:105px;
        max-width:175px;

        padding:6px 8px;
    }

    .store-map-marker-name{
        max-width:155px;
        font-size:10px;
    }

    .store-map-marker-address{
        max-width:155px;
        font-size:8px;
    }

    .store-map-marker-line{
        height:23px;
    }

    .store-map-my-location-label{
        bottom:30px;
        font-size:9px;
    }
}


/*
|--------------------------------------------------------------------------
| Map toolbar / My location button
|--------------------------------------------------------------------------
*/

.store-map-map-tools{
    display:flex;
    align-items:center;
    gap:8px;
}

.store-map-map-tools button{
    transition:
        transform .16s ease,
        box-shadow .16s ease,
        border-color .16s ease,
        background .16s ease;
}

.store-map-map-tools button:hover{
    transform:translateY(-1px);

    border-color:
        rgba(124,58,237,.32);

    box-shadow:
        0 9px 24px rgba(44,30,57,.16);
}

.store-map-location-tool{
    color:#5b21b6 !important;
}

.store-map-location-tool-icon{
    display:grid;
    place-items:center;

    width:21px;
    height:21px;

    border-radius:50%;

    background:
        linear-gradient(
            135deg,
            #7c3aed,
            #5b21b6
        );

    color:#fff;

    font-size:15px;
    font-weight:900;
    line-height:1;

    box-shadow:
        0 3px 10px rgba(124,58,237,.25);
}

.store-map-location-tool.is-loading{
    pointer-events:none;
    opacity:.72;
}

@media(max-width:640px){

    .store-map-map-tools{
        max-width:
            calc(100% - 20px);

        flex-wrap:wrap;
    }

    .store-map-map-tools button{
        min-height:36px;
        padding:6px 9px;
    }

}
