/* ── GroundsGroup Service Area Map — Frontend ──────────── */
:root {
    --ggm-primary: #22b24c;
    --ggm-dark:    #1a3a1a;
    --ggm-mid:     #2d6a2d;
    --ggm-text:    #1a1a1a;
    --ggm-muted:   #5a6a5a;
    --ggm-font:    inherit;
}

.ggm-wrap {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0,0,0,.15);
    position: relative;
    transform: none !important;
    will-change: auto !important;
    -webkit-transform: none !important;
}

#ggm-map {
    width: 100%;
    min-height: 400px;
    background: #a8c8d8;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.leaflet-overlay-pane svg { overflow: hidden; }

.ggm-wrap .leaflet-container,
.ggm-wrap .leaflet-tile-pane,
.ggm-wrap .leaflet-tile {
    opacity: 1 !important;
    visibility: visible !important;
    animation: none !important;
    transition: none !important;
}

/* City popup */
.ggm-popup { font-family: var(--ggm-font); text-align: center; padding: 2px 4px; }
.ggm-popup a { text-decoration: none; display: block; cursor: pointer; }
.ggm-popup strong { display: block; font-size: 14px; font-weight: 700; color: var(--ggm-dark); }
.ggm-popup span   { font-size: 12px; color: var(--ggm-muted); }
.ggm-popup a:hover strong { text-decoration: underline; }

/* Mobile — hide map */
@media (max-width: 768px) { .ggm-wrap { display: none; } }

/* ══════════════════════════════════════════════════════════
   LOCATIONS LIST / ACCORDION
   ══════════════════════════════════════════════════════════ */
.ggm-locations-wrap {
    width: 100%;
    font-family: var(--ggm-font);
    margin-top: 32px;
}

.ggm-locations-title {
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    font-size: 30px;
    font-weight: 400;
    color: var(--ggm-primary);
    margin: 0 0 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.ggm-locations-title__icon { color: var(--ggm-primary); font-size: 14px; }

.ggm-accordion { width: 100%; border-radius: 10px; overflow: hidden; border: 1px solid color-mix(in srgb, var(--ggm-primary) 25%, white); box-shadow: 0 2px 12px rgba(0,0,0,.06); }
.ggm-accordion__item { border-bottom: 1px solid color-mix(in srgb, var(--ggm-primary) 20%, white); }
.ggm-accordion__item:last-child { border-bottom: none; }

.ggm-accordion__trigger {
    width: 100%; display: flex; align-items: center; gap: 12px;
    padding: 14px 18px; background: #fff; border: none; cursor: pointer;
    text-align: left; font-family: var(--ggm-font); font-size: 15px; font-weight: 600;
    color: var(--ggm-text); transition: background .15s;
}
.ggm-accordion__trigger:hover { background: color-mix(in srgb, var(--ggm-primary) 5%, white); }
.ggm-accordion__trigger[aria-expanded="true"] { background: color-mix(in srgb, var(--ggm-primary) 8%, white); color: var(--ggm-mid); }

.ggm-accordion__icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 26px; height: 26px; min-width: 26px; border-radius: 5px;
    background: var(--ggm-primary); color: #fff; font-size: 18px; font-weight: 300;
    line-height: 1; transition: background .15s, transform .2s;
}
.ggm-accordion__icon::after { content: '+'; }
.ggm-accordion__trigger[aria-expanded="true"] .ggm-accordion__icon { background: var(--ggm-dark); transform: rotate(45deg); }

.ggm-accordion__state { flex: 1; }
.ggm-accordion__count { font-size: 12px; font-weight: 600; color: #888; background: #f0f0f0; border-radius: 20px; padding: 2px 9px; margin-left: auto; }
.ggm-accordion__trigger[aria-expanded="true"] .ggm-accordion__count { background: color-mix(in srgb, var(--ggm-primary) 20%, white); color: var(--ggm-dark); }

.ggm-accordion__panel { background: color-mix(in srgb, var(--ggm-primary) 4%, white); border-top: 1px solid color-mix(in srgb, var(--ggm-primary) 20%, white); padding: 20px 20px 24px; }
.ggm-accordion__panel[hidden] { display: none; }

.ggm-city-list { list-style: none; margin: 0; padding: 0; display: grid; grid-auto-flow: column; grid-template-rows: repeat(var(--rows,10),auto); grid-template-columns: repeat(var(--cols,3),1fr); gap: 6px 16px; }
.ggm-city-list__item { font-size: 14px; color: var(--ggm-text); padding: 3px 0; border-bottom: 1px solid #eaeaea; }
.ggm-city-list__item::before { content: '·  '; color: var(--ggm-primary); font-weight: 700; }
.ggm-city-list__item a { color: var(--ggm-text); text-decoration: none; transition: color .15s; }
.ggm-city-list__item a:hover { color: var(--ggm-primary); text-decoration: underline; }

@media (max-width: 768px) {
    .ggm-city-list { grid-template-columns: repeat(2,1fr); grid-template-rows: repeat(calc(var(--rows,10)*3/2),auto); }
}
@media (max-width: 480px) {
    .ggm-city-list { grid-template-columns: 1fr; grid-auto-flow: row; grid-template-rows: none; }
    .ggm-accordion__trigger { padding: 12px 14px; font-size: 14px; }
}

/* ── Mobile — hide map completely ──────────────────────── */
@media (max-width: 768px) { .ggm-wrap { display: none; } }
