/* =============================================================================
   Webber Dealer Locator — Frontend Styles
   Colour tokens are injected at runtime via JS (wdlData) into :root
   ============================================================================= */

/* ── CSS Variables (defaults match admin settings defaults) ────────────── */
:root {
    --wdl-primary:      #C9252C;
    --wdl-primary-dark: #a01e24;
    --wdl-light:        #FFDDDE;
    --wdl-light-hover:  #ffc9cb;
    --wdl-text:         #1a1a1a;
    --wdl-text-muted:   #6b7280;
    --wdl-icon-color:   #6b7280;
    --wdl-border:       #e5e7eb;
    --wdl-card-bg:      #ffffff;
    --wdl-shadow-sm:    0 1px 10px rgba(0,0,0,.08), 0 1px 10px rgba(0,0,0,.04);
    --wdl-shadow-md:    0 4px 16px rgba(0,0,0,.10), 0 2px 4px rgba(0,0,0,.04);
    --wdl-shadow-hover: 0 8px 24px rgba(201,37,44,.18), 0 2px 8px rgba(201,37,44,.10);
    --wdl-radius-sm:    0.375rem;
    --wdl-radius:       0.375rem;
    --wdl-radius-lg:    0.375rem;
    --wdl-font-size:    14px;
    --wdl-transition:   all .22s ease;

    /* ── Hover-effect tokens (overridden at runtime via wdl_hover_effect option) */
    --wdl-hover-transform:    translateY(-3px);
    --wdl-hover-shadow:       0 8px 24px rgba(201,37,44,.18), 0 2px 8px rgba(201,37,44,.10);
    --wdl-hover-border-color: var(--wdl-primary);
    --wdl-hover-bg:           var(--wdl-card-bg);
}

/* ── Wrapper ────────────────────────────────────────────────────────────────── */
.wdl-wrap { font-family: inherit; }

/* ── Filter Bar — Bootstrap card/form-select/btn classes used instead ────────── */
/* .wdl-filter-section, .wdl-filter-row, .wdl-filter-group, .wdl-btn-* are
   no longer applied to the main shortcode form.                                */

#wdl-filter-form button{
  padding: 6px 20px !important;
}

/* Spinner inside Bootstrap buttons (Search / Near Me) */
.wdl-spin {
    display: none;
    width: 14px;
    height: 14px;
    border: 2px solid currentColor;
    border-top-color: transparent;
    border-radius: 50%;
    animation: wdl-rotate .6s linear infinite;
    vertical-align: middle;
}

.is-loading .wdl-spin  { display: inline-block; }
.is-loading .wdl-btn-label { opacity: .7; }

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


/* ── Section Header ─────────────────────────────────────────────────────────── */
.wdl-section-header {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 24px;
}

.wdl-section-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--wdl-text);
    margin: 0;
}

.wdl-result-count {
    font-size: 0.85rem;
    font-weight: normal !important;
    color: var(--wdl-text-muted);
    background: #f3f4f6;
    padding: 2px 10px;
    border-radius: 20px;
}

/* ── Store Hero (detail page) ───────────────────────────────────────────────── */
.wdl-store-hero {
    display: flex;
    align-items: center;
    gap: 24px;
    background: var(--wdl-light);
    border-radius: var(--wdl-radius-lg);
    padding: 28px 32px;
    margin-bottom: 32px;
}

.wdl-store-hero-logo {
    flex-shrink: 0;
    width: 100px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: var(--wdl-radius-sm);
    overflow: hidden;
    box-shadow: var(--wdl-shadow-sm);
}

.wdl-store-hero-logo img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.wdl-store-hero-info { flex: 1; }

.wdl-store-hero-name {
    font-size: 1.7rem;
    font-weight: 800;
    margin: 0 0 6px;
    color: var(--wdl-text);
}

.wdl-store-hero-meta {
    font-size: 0.88rem;
    color: var(--wdl-text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
}

.wdl-store-hero-badge {
    background: var(--wdl-primary);
    color: #fff;
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 700;
}

/* ── Grid ───────────────────────────────────────────────────────────────────── */
/* Spacing is handled by Bootstrap's g-4 gutter on the .row container.         */
/* .wdl-grid is a hook class only — do not add margin/padding here.            */
.wdl-grid {
    /* intentionally empty — Bootstrap row + g-4 owns the gutters */
}

.wdl-col {
    box-sizing: border-box;
    /* Bootstrap g-4 sets padding: 12px on each side = 24px gap between cards */
}


/* ── Store Cards (self-contained — same visual style as .product) ────────────── */

.wdl-store-card {
    background: var(--wdl-card-bg, #FFFFFF);
    box-shadow: var(--wdl-shadow-sm);
    border: 2px solid transparent;
    border-radius: var(--wdl-radius, 0.375rem);
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    width: 100%;
    cursor: pointer;
    transition: background .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.wdl-store-card:hover,
.wdl-store-card:focus-within {
    background: var(--wdl-hover-bg, #FFF4F4);
    border-color: var(--wdl-hover-border-color, rgba(204, 0, 0, 0.33));
    box-shadow: var(--wdl-hover-shadow, 0px 8px 28px rgba(201, 37, 44, 0.28));
}

.wdl-store-card:hover .wdl-store-name a,
.wdl-store-card:focus-within .wdl-store-name a {
    color: #000000 !important;
    transition: all .3s;
}

/* Full-card stretched-link */
.wdl-store-card-link { z-index: 1; }
.wdl-store-card-link:focus { outline-offset: 4px; border-radius: 6px; }

/* Card content area — always visible; skeleton overlays until it auto-dismisses */
.wdl-store-card-content {
    position: relative;
    z-index: 2;
    padding: 24px;
    box-sizing: border-box;   /* prevent padding from overflowing overflow:hidden card */
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;             /* allow flex child to shrink below content size */
    align-items: center;      /* center children horizontally (logo, name, count) */
}

@media (max-width: 575.98px) {
    .wdl-store-card-content { padding: 16px; }
}

/* Logo container */
.wdl-store-image-wrap {
    width: 100%;
    overflow: hidden;
    position: relative;
    border-radius: var(--wdl-radius, 0.375rem) var(--wdl-radius, 0.375rem) 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 140px;
}

/* Logo image */
.wdl-store-logo-img {
    width: auto;
    max-height: 100px;
    /*max-width: 80%;*/
    object-fit: contain;
}

/* Letter placeholder when no logo */
.wdl-logo-placeholder {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--wdl-primary);
    background: var(--wdl-light);
    width: 100%;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Store name */
.wdl-store-name {
    font-weight: bold;
    margin: 12px 0;
    line-height: 1.25;
    position: relative;
}

.wdl-store-name a {
    color: var(--wdl-primary);
    text-decoration: none;
    transition: all .3s;
    letter-spacing: -0.4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-align: center;
    font-size: 19px;
}

/* Feature rows */
.wdl-store-features {
    font-size: 15px;
    margin: 0;
    padding: 0;
    text-align: center;
    line-height: 1.35;
}

/* CTA fades in on hover */
.wdl-card-cta {
    text-align: center;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--wdl-primary);
    margin: 4px 0 0;
    opacity: 0;
    transform: translateY(4px);
    transition: all .22s ease;
}

.wdl-store-card:hover .wdl-card-cta,
.wdl-store-card:focus-within .wdl-card-cta {
    opacity: 1;
    transform: translateY(0);
}

/* ── Skeleton loader ─────────────────────────────────────────────────────────── */
/* Use .wdl-store-card .wdl-store-skeleton (specificity 0,2,0) so it always beats
   any inherited position:relative rules from parent card or theme CSS.         */
.wdl-store-card .wdl-store-skeleton {
    position: absolute !important;
    inset: 0;
    padding: 40px;
    background: var(--wdl-card-bg, #fff);
    z-index: 10;
    border-radius: var(--wdl-radius, 0.375rem);
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
    opacity: 1;
    /* Auto-dismiss after 0.9 s — no JS required */
    animation: wdl-skel-dismiss 0.4s ease-out 0.9s forwards;
}

.wdl-store-card .wdl-store-skeleton__image {
    width: 100%;
    aspect-ratio: 4 / 3;
    max-height: 250px;
    border-radius: 6px;
    background: linear-gradient(90deg, #eee 25%, #f5f5f5 50%, #eee 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.4s infinite linear;
}

.wdl-store-card .wdl-store-skeleton__line {
    height: 14px;
    border-radius: 4px;
    background: linear-gradient(90deg, #eee 25%, #f5f5f5 50%, #eee 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.4s infinite linear;
}

.wdl-store-skeleton__line--title   { width: 80%; height: 18px; }
.wdl-store-skeleton__line--short   { width: 60%; animation-delay: .1s; }
.wdl-store-skeleton__line--shorter { width: 45%; animation-delay: .2s; }

/* ── Scroll-reveal state ─────────────────────────────────────────────────────── */
/* JS adds .is-revealed when card enters viewport → immediately dismiss skeleton  */
.wdl-store-card-reveal.is-revealed .wdl-store-card .wdl-store-skeleton {
    animation: wdl-skel-dismiss 0.25s ease-out forwards;
}

@keyframes skeleton-shimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Distance badge */
.wdl-dist-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--wdl-primary);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
}


/* ── Branch Card ────────────────────────────────────────────────────────────── */
.wdl-branch-card {
    background: var(--wdl-card-bg);
    border-radius: var(--wdl-radius, 0.375rem);
    padding: 26px 24px;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-shadow: var(--wdl-shadow-sm);
    transition: var(--wdl-transition);
    position: relative;
    overflow: hidden;
    font-size: var(--wdl-font-size, 14px);
}

.wdl-branch-card::after {
    /*content: '';*/
    /*position: absolute;*/
    /*top: 0;*/
    /*left: 0;*/
    /*width: 3px;*/
    /*height: 0;*/
    /*background: var(--wdl-primary);*/
    /*transition: height .25s ease;*/
}

.wdl-branch-card:hover {
    box-shadow: var(--wdl-hover-shadow, 0 8px 24px rgba(201,37,44,.18), 0 2px 8px rgba(201,37,44,.10));
    transform: var(--wdl-hover-transform, translateY(-3px));
    background: var(--wdl-hover-bg, var(--wdl-card-bg));
}

.wdl-branch-card:hover::after {
    height: 100%;
}

.wdl-branch-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
}

.wdl-branch-name {
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
    color: var(--wdl-text);
    line-height: 1.3;
    flex: 1;
}

.wdl-branch-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: var(--wdl-font-size, 14px);
    color: var(--wdl-text-muted);
    line-height: 1.5;
}

.wdl-branch-icon {
    flex-shrink: 0;
    font-size: 1rem;
    margin-top: 1px;
    color: var(--wdl-icon-color, var(--wdl-text-muted));
}

.wdl-branch-remarks {
    font-style: italic;
    opacity: .9;
}

/* Map button */
.wdl-map-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
    padding: 2px 16px;
    background: var(--wdl-light);
    color: var(--wdl-primary);
    border: 1px solid var(--wdl-primary);
    border-radius: .25rem;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s, color 0.3s;
    transform: translateY(0);
    width: fit-content;
    align-self: flex-start; /* prevent flex-column stretch making button 100% wide */
}

.wdl-map-btn:hover {
    background: var(--wdl-primary);
    color: #fff;
    text-decoration: none;
    transform: translateY(-4px);
    box-shadow: 0 4px 0px rgb(110, 0, 0);
}

.wdl-map-btn:active {
    transform: translateY(-2px);
    box-shadow: 0 4px 0px rgb(110, 0, 0);
}

/* ── Branch Card Skeleton ────────────────────────────────────────────────────── */
.wdl-branch-card .wdl-branch-skeleton {
    position: absolute !important;
    inset: 0;
    padding: 26px 24px;
    background: var(--wdl-card-bg, #fff);
    z-index: 10;
    border-radius: var(--wdl-radius, 0.375rem);
    display: flex;
    flex-direction: column;
    gap: 14px;
    pointer-events: none;
    opacity: 1;
    /* Auto-dismiss after 0.9 s — no JS required */
    animation: wdl-skel-dismiss 0.4s ease-out 0.9s forwards;
}

.wdl-branch-skeleton__line {
    height: 13px;
    border-radius: 4px;
    background: linear-gradient(90deg, #eee 25%, #f5f5f5 50%, #eee 75%);
    background-size: 200% 100%;
}

.wdl-branch-skeleton__line--title  { width: 70%; height: 17px; }
.wdl-branch-skeleton__line--medium { width: 90%; }
.wdl-branch-skeleton__line--short  { width: 60%; animation-delay: .15s; }

.wdl-branch-skeleton__btn {
    width: 120px;
    height: 32px;
    border-radius: 4px;
    margin-top: auto;
    background: linear-gradient(90deg, #eee 25%, #f5f5f5 50%, #eee 75%);
    background-size: 200% 100%;
}

/* Branch card content — always visible; skeleton overlays until it auto-dismisses */
.wdl-branch-card .wdl-branch-card-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
    height: 100%;
}

/* JS-accelerated reveal: skeleton dismissed immediately when card scrolls into view */
.wdl-branch-col-reveal.is-revealed .wdl-branch-skeleton {
    animation: wdl-skel-dismiss 0.25s ease-out forwards;
}

@keyframes wdl-skel-dismiss {
    from { opacity: 1; }
    to   { opacity: 0; pointer-events: none; }
}

/* ── Skeleton style variants ─────────────────────────────────────────────────── */

/* Shimmer (default) */
.wdl-skel-shimmer .wdl-store-skeleton__image,
.wdl-skel-shimmer .wdl-store-skeleton__line,
.wdl-skel-shimmer .wdl-branch-skeleton__line,
.wdl-skel-shimmer .wdl-branch-skeleton__btn {
    animation: skeleton-shimmer 1.4s infinite linear;
}

/* Pulse */
.wdl-skel-pulse .wdl-store-skeleton__image,
.wdl-skel-pulse .wdl-store-skeleton__line,
.wdl-skel-pulse .wdl-branch-skeleton__line,
.wdl-skel-pulse .wdl-branch-skeleton__btn {
    animation: skeleton-pulse 1.6s ease-in-out infinite;
    background: #e0e0e0 !important;
    background-size: unset !important;
}

/* Wave */
.wdl-skel-wave .wdl-store-skeleton__image,
.wdl-skel-wave .wdl-store-skeleton__line,
.wdl-skel-wave .wdl-branch-skeleton__line,
.wdl-skel-wave .wdl-branch-skeleton__btn {
    animation: skeleton-wave 1.8s ease infinite;
    background: linear-gradient(90deg, #f0f0f0 0%, #e0e0e0 40%, #f5f5f5 60%, #f0f0f0 100%);
    background-size: 300% 100%;
}

@keyframes skeleton-pulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: .45; }
}
@keyframes skeleton-wave {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ── Card Entrance Animations ────────────────────────────────────────────────── */

/* Fade Up (default) */
.wdl-anim-fade-up {
    animation: wdl-fade-up .35s ease both;
}
@keyframes wdl-fade-up {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Fade In */
.wdl-anim-fade-in {
    animation: wdl-fade-in .4s ease both;
}
@keyframes wdl-fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* Slide from Left */
.wdl-anim-slide-left {
    animation: wdl-slide-left .4s ease both;
}
@keyframes wdl-slide-left {
    from { opacity: 0; transform: translateX(-24px); }
    to   { opacity: 1; transform: translateX(0); }
}

/* Zoom In */
.wdl-anim-zoom {
    animation: wdl-zoom .35s cubic-bezier(.175,.885,.32,1.275) both;
}
@keyframes wdl-zoom {
    from { opacity: 0; transform: scale(.88); }
    to   { opacity: 1; transform: scale(1); }
}

/* Bounce */
.wdl-anim-bounce {
    animation: wdl-bounce .5s cubic-bezier(.36,.07,.19,.97) both;
}
@keyframes wdl-bounce {
    0%   { opacity: 0; transform: translateY(20px); }
    60%  { opacity: 1; transform: translateY(-6px); }
    80%  { transform: translateY(3px); }
    100% { transform: translateY(0); }
}

/* None */
.wdl-anim-none {
    animation: none;
}

/* Stagger delay for cards 1–12 */
.wdl-col:nth-child(1)  { animation-delay: .03s; }
.wdl-col:nth-child(2)  { animation-delay: .06s; }
.wdl-col:nth-child(3)  { animation-delay: .09s; }
.wdl-col:nth-child(4)  { animation-delay: .12s; }
.wdl-col:nth-child(5)  { animation-delay: .15s; }
.wdl-col:nth-child(6)  { animation-delay: .18s; }
.wdl-col:nth-child(7)  { animation-delay: .21s; }
.wdl-col:nth-child(8)  { animation-delay: .24s; }
.wdl-col:nth-child(9)  { animation-delay: .27s; }
.wdl-col:nth-child(10) { animation-delay: .30s; }
.wdl-col:nth-child(11) { animation-delay: .33s; }
.wdl-col:nth-child(12) { animation-delay: .36s; }

/* ── Empty / No Results ─────────────────────────────────────────────────────── */
.wdl-no-results {
    text-align: center;
    padding: 60px 20px;
    color: var(--wdl-text-muted);
}

.wdl-no-results p {
    font-size: 1rem;
    margin: 0;
}

.wdl-no-results::before {
    content: '🔍';
    font-size: 2.5rem;
    display: block;
    margin-bottom: 12px;
}

/* ── Loading Overlay ────────────────────────────────────────────────────────── */
.wdl-results-wrap {
    position: relative;
    min-height: 200px;
    margin-bottom: 16px;
}

.wdl-results-wrap.is-loading::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,.65);
    backdrop-filter: blur(2px);
    border-radius: var(--wdl-radius);
    z-index: 10;
}

.wdl-results-wrap.is-loading::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 36px;
    height: 36px;
    border: 3px solid var(--wdl-light);
    border-top-color: var(--wdl-primary);
    border-radius: 50%;
    animation: wdl-rotate .7s linear infinite;
    z-index: 11;
}

/* ── Back link ──────────────────────────────────────────────────────────────── */
.wdl-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--wdl-primary);
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    margin-bottom: 24px;
    transition: var(--wdl-transition);
}

.wdl-back-link:hover {
    color: var(--wdl-primary-dark);
    text-decoration: none;
    gap: 10px;
}

/* ── Branch Card: Selected / Pin-highlighted state ───────────────────────────── */
.wdl-branch-card.wdl-card-selected {
    outline: 3px solid #C9252C;
    outline-offset: 2px;
    /*box-shadow: 0 0 24px 5px rgba(255, 41, 41, 0.1), 0 8px 24px rgb(255, 0, 8) !important;*/
    transform: var(--wdl-hover-transform, translateY(-3px)) !important;
    background: var(--wdl-hover-bg, var(--wdl-card-bg)) !important;
    transition: outline .15s ease, box-shadow .15s ease;
}

/* Make branch card clickable in inline mode (cursor hint) */
.wdl-branch-card {
    cursor: pointer;
}

/* ── Inline Map Panel ────────────────────────────────────────────────────────── */
#wdl-map-panel {
    margin-top: 24px;
    margin-bottom: 8px;
    border-radius: var(--wdl-radius-lg, 0.5rem);
    border: 1px solid var(--wdl-border, #e5e7eb);
    background: #fff;
    overflow: hidden;
    box-shadow: var(--wdl-shadow-sm);
}

.wdl-map-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    background: var(--wdl-card-bg, #FFFFFF);
    border-bottom: 1px solid var(--wdl-border, #e5e7eb);
    gap: 12px;
}

.wdl-map-panel-title {
    font-weight: 700;
    font-size: 0.92rem;
    color: var(--wdl-text, #1a1a1a);
    display: flex;
    align-items: center;
    gap: 7px;
}

.wdl-map-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: none;
    border: 1px solid var(--wdl-primary, #C9252C);
    border-radius: 4px;
    color: var(--wdl-primary, #C9252C);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 3px 10px;
    cursor: pointer;
    transition: all .18s ease;
}

.wdl-map-toggle-btn:hover {
    background: var(--wdl-primary, #C9252C);
    color: #fff;
}

.wdl-toggle-icon {
    transition: transform .2s ease;
}

#wdl-map-leaflet {
    width: 100%;
    height: 420px;
    display: block;
}

.wdl-map-hint {
    font-size: 0.75rem;
    color: var(--wdl-text-muted, #6b7280);
    text-align: center;
    padding: 6px 12px;
    margin: 0;
    background: #f9fafb;
    border-top: 1px solid var(--wdl-border, #e5e7eb);
}

/* Custom SVG pin icon for Leaflet markers */
.wdl-pin-icon {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.wdl-pin-icon svg {
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.35));
    transition: transform .15s ease;
    display: block;
}

.wdl-pin-icon:hover svg {
    transform: scale(1.15) translateY(-2px);
}

/* Selected pin pulse ring (rendered behind via ::before on the parent) */
.wdl-pin-icon.wdl-pin-selected svg {
    filter: drop-shadow(0 3px 6px rgba(203,27,27,0.55));
    transform: scale(1.1) translateY(-2px);
}

/* Loading / error states inside the map container */
.wdl-map-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 120px;
    color: var(--wdl-text-muted, #6b7280);
    font-size: 0.88rem;
}

.wdl-map-load-error {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 120px;
    padding: 24px;
    text-align: center;
    color: var(--wdl-text-muted, #6b7280);
    font-size: 0.85rem;
    background: #fafafa;
}

/* ── Map Modal customization ─────────────────────────────────────────────────── */
#wdl-map-modal .modal-content {
    border-radius: var(--wdl-radius-lg, 0.5rem);
    overflow: hidden;
}

#wdl-map-modal .modal-header {
    /*background: var(--wdl-light, #FFDDDE);*/
    border-bottom: 1px solid var(--wdl-border, #e5e7eb);
}

#wdl-map-modal .modal-title {
    color: var(--wdl-text, #1a1a1a);
    font-size: 1rem;
    font-weight: 700;
    margin: 12px 0px !important;
}

#wdl-map-modal .modal-footer {
    background: #f9fafb;
}

/* ── map btn as button (modal / inline modes) ────────────────────────────────── */
button.wdl-map-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
    padding: 2px 16px;
    background: var(--wdl-light);
    color: var(--wdl-primary);
    border: 1px solid var(--wdl-primary);
    border-radius: .25rem;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s, color 0.3s;
    transform: translateY(0);
    width: fit-content;
    align-self: flex-start; /* prevent flex-column stretch making button 100% wide */
    font-family: inherit;
}

button.wdl-map-btn:hover {
    background: var(--wdl-primary);
    color: #fff;
    transform: translateY(-4px);
    box-shadow: 0 4px 0px rgb(110, 0, 0);
}

button.wdl-map-btn:active {
    transform: translateY(-2px);
    box-shadow: 0 4px 0px rgb(110, 0, 0);
}

/* ── Responsive ─────────────────────────────────────────────────────────────── */
@media (max-width: 767px) {
    .wdl-filter-section { padding: 20px 16px; }
    .wdl-filter-row { flex-direction: column; }
    .wdl-filter-group { min-width: 100%; }
    .wdl-filter-actions { width: 100%; }
    .wdl-filter-actions .wdl-btn { flex: 1; justify-content: center; }
    .wdl-store-hero { flex-direction: column; text-align: center; padding: 20px 16px; }
    .wdl-store-hero-meta { justify-content: center; }
    .wdl-store-hero-name { font-size: 1.3rem; }

    /* Inline map on small screens */
    #wdl-map-leaflet { height: 280px; }
}

@media (max-width: 575px) {
    /* cards go full-width on xs — handled by col-12 Bootstrap class */
}

