/* ── JSON Map Plugin Styles ───────────────────────────────────────────────── */

.jmp-container {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    margin: 0 auto;
}

.gm-style-iw-chr 
{
    position: absolute!important;
    right: 0px;
    top: 0px;
    background: #fff;
    transform: scale(.6)!important;
}

/* ── Map Canvas ─────────────────────────────────────────────────────────── */
.jmp-map {
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

/* ── Filter Buttons ─────────────────────────────────────────────────────── */
.jmp-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px 0;
    margin-bottom: 4px;
}

.jmp-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border: 2px solid #ddd;
    border-radius: 999px;
    background: #fff;
    color: #444;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.jmp-filter-btn::before {
    content: '';
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--jmp-cat-color, #888);
    flex-shrink: 0;
}

.jmp-filter-btn[data-cat="__all__"]::before {
    background: linear-gradient(135deg, #E63946, #2A9D8F, #E9C46A);
}

.jmp-filter-btn:hover {
    border-color: var(--jmp-cat-color, #888);
    background: #fafafa;
}

.jmp-filter-btn.jmp-filter-active {
    background: var(--jmp-cat-color, #444);
    border-color: var(--jmp-cat-color, #444);
    color: #fff;
}

.jmp-filter-btn[data-cat="__all__"].jmp-filter-active {
    background: #222;
    border-color: #222;
    color: #fff;
}

/* ── InfoWindow ─────────────────────────────────────────────────────────── */
.jmp-infowindow {
    width: 240px;
    border-radius: 8px;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.jmp-iw-img {
    width: 100%;
    height: 140px!important;
    object-fit: cover!important;
    display: block!important;
	object-position: top center;

}

.jmp-iw-body {
    padding: 12px 14px 14px;
}

.jmp-iw-cat {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 999px;
    color: #000;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.3px;
    margin-bottom: 8px;
    text-transform: uppercase;
	background: #F2F8E5!important
}

.jmp-iw-title {
    font-size: 14px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 8px;
    line-height: 1.4;
}

.jmp-iw-meta {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin-bottom: 10px;
}

.jmp-iw-date,
.jmp-iw-loc {
    font-size: 12px;
    color: #666;
}

.jmp-iw-link {
    display: inline-block;
    padding: 6px 14px;
    background: #7eba00;
    color: #fff !important;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none !important;
    transition: background 0.2s;
}

.jmp-iw-link:hover {
    background: #006d33;
}

/* ── Google's InfoWindow overrides ──────────────────────────────────────── */
.gm-style .gm-style-iw-c {
    padding: 0 !important;
    border-radius: 10px !important;
    overflow: hidden !important;
    box-shadow: 0 6px 24px rgba(0,0,0,0.18) !important;
}
.gm-style .gm-style-iw-d {
    overflow: hidden !important;
    padding: 0 !important;
}
.gm-style .gm-style-iw-t::after {
    box-shadow: none !important;
}
.gm-ui-hover-effect {
    top: 2px !important;
    right: 2px !important;
    opacity: 0.7;
}

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 600px) {
    .jmp-filter-btn {
        font-size: 12px;
        padding: 5px 11px;
    }
    .jmp-infowindow {
        width: 200px;
    }
}
