/* AllTime Location Map – Public Styles */

.alm-wrap {
    font-family: inherit;
    width: 100%;
    box-sizing: border-box;
}

/* ── Map container ── */
#alm-map,
.alm-map-el {
    width: 100%;
    border-radius: 8px 8px 0 0;
    overflow: hidden;
    border: 1px solid #ddd;
    border-bottom: none;
    background: #e8e0d8;
}

/* ── Location list wrapper ── */
#alm-location-list,
.alm-location-list-el {
    border: 1px solid #ddd;
    border-radius: 0 0 8px 8px;
    padding: 20px;
    background: #fff;
}

/* ── Grid ── */
.alm-grid {
    display: grid;
    grid-template-columns: repeat(var(--alm-cols, 2), 1fr);
    gap: 0;
}

/* ── Location item ── */
.alm-location-item {
    padding: 14px 16px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background 0.15s;
}
.alm-grid .alm-location-item:nth-child(odd) {
    border-right: 1px solid #f0f0f0;
}
.alm-location-item:hover  { background: #f5f9ff; }
.alm-location-item.is-active { background: #eef4ff; }

.alm-location-name {
    font-weight: 600;
    font-size: 15px;
    color: #1a1a1a;
    margin-bottom: 2px;
}
.alm-location-address {
    font-size: 13px;
    color: #666;
}

/* ── Single-location view (shown when a location is clicked) ── */
.alm-single-view {
    display: none; /* JS toggles this */
}
.alm-single-view .alm-location-item {
    border-bottom: none;
    border-right: none !important;
    cursor: default;
}

/* ── "See All" button row — hidden by default, JS reveals it ── */
.alm-see-all-row {
    padding: 14px 16px 0;
    display: none; /* JS toggles this */
}
.alm-see-all-btn {
    background: none;
    border: none;
    color: #1a6dcc;
    cursor: pointer;
    font-size: 14px;
    padding: 0;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.alm-see-all-btn:hover { color: #0e4fa0; }

/* ── Leaflet popup ── */
.leaflet-popup-content-wrapper {
    border-radius: 6px !important;
    box-shadow: 0 4px 16px rgba(0,0,0,.18) !important;
}
.alm-popup-name    { font-weight: 700; font-size: 14px; margin-bottom: 2px; }
.alm-popup-address { font-size: 12px; color: #555; }

/* ── Responsive ── */
@media (max-width: 600px) {
    .alm-grid { grid-template-columns: 1fr; }
    .alm-grid .alm-location-item:nth-child(odd) { border-right: none; }
}
