.responsive-map-container {
    position: relative;
    width: 100%;
}

#events-map {
    width: 100%;
    height: 650px;
    min-height: 650px;
    border-radius: 18px;
    overflow: hidden;
    background: #edf2f7;
}

/* Google InfoWindow cleanup so our card controls the whole look */
.gm-style .gm-style-iw-c {
    padding: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    overflow: visible !important;
    max-width: none !important;
}

.gm-style .gm-style-iw-d {
    overflow: visible !important;
    padding: 0 !important;
    max-height: none !important;
}

.gm-style .gm-style-iw-tc,
.gm-style .gm-ui-hover-effect {
    display: none !important;
}

@keyframes cemBubbleFadeSlideIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes cemBubbleCardEntry {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes cemBubblePointerBob {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(3px);
    }
}

.cem-bubble-wrap,
.cem-bubble-wrap * {
    box-sizing: border-box;
}

.cem-bubble-wrap {
    position: relative;
    width: 320px;
    max-width: 320px;
    font-family: 'Montserrat', Arial, sans-serif;
    color: #18212f;
    animation: cemBubbleCardEntry 0.35s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.cem-bubble-close,
.cem-bubble-close:hover,
.cem-bubble-close:focus,
.cem-bubble-close:focus-visible,
.cem-bubble-close:active {
    position: absolute;
    top: -14px;
    right: -14px;
    z-index: 20;
    width: 34px;
    height: 34px;
    padding: 0 !important;
    border: 2px solid rgba(255, 255, 255, 0.96) !important;
    border-radius: 999px !important;
    background: linear-gradient(135deg, #0b1a31 0%, #0d2340 100%) !important;
    color: #ffffff !important;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    text-decoration: none !important;
    appearance: none;
    -webkit-appearance: none;
    outline: none !important;
    box-shadow:
        0 8px 20px rgba(13, 35, 64, 0.28),
        0 2px 6px rgba(0, 0, 0, 0.12) !important;
    transform: translateZ(0);
    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        background 0.18s ease,
        color 0.18s ease;
}

.cem-bubble-close:hover,
.cem-bubble-close:focus,
.cem-bubble-close:focus-visible {
    border-radius: 999px !important;
    background: linear-gradient(135deg, #112b4d 0%, #16375d 100%) !important;
    color: #ffffff !important;
    box-shadow:
        0 12px 24px rgba(13, 35, 64, 0.34),
        0 4px 10px rgba(0, 0, 0, 0.14) !important;
    transform: scale(1.06) rotate(90deg);
}

.cem-bubble-close:active {
    transform: scale(0.96);
    box-shadow:
        0 6px 14px rgba(13, 35, 64, 0.24),
        0 2px 5px rgba(0, 0, 0, 0.10) !important;
}

.cem-bubble-close svg {
    display: block;
    width: 14px;
    height: 14px;
    pointer-events: none;
}

.cem-bubble-close svg path {
    stroke: currentColor !important;
}

.cem-bubble-card {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    background: #fff;
    box-shadow:
        0 24px 60px rgba(15, 23, 42, 0.18),
        0 10px 24px rgba(15, 23, 42, 0.1),
        0 0 0 1px rgba(15, 23, 42, 0.05);
}

.cem-bubble-header {
    position: relative;
    overflow: hidden;
    padding: 18px 18px 20px;
    background: linear-gradient(135deg, #09172a 0%, #0d2340 52%, #16375d 100%);
}

.cem-bubble-header-circle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    background: rgba(255, 255, 255, 0.05);
}

.cem-bubble-header-circle--one {
    top: -22px;
    right: -18px;
    width: 82px;
    height: 82px;
}

.cem-bubble-header-circle--two {
    left: -10px;
    bottom: -30px;
    width: 62px;
    height: 62px;
    background: rgba(255, 255, 255, 0.035);
}

.cem-bubble-header-inner {
    position: relative;
    z-index: 2;
}

.cem-bubble-venue-type-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
}

.cem-bubble-venue-type {
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.62);
}

.cem-bubble-venue-name {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.3px;
    color: #fff;
}

.cem-bubble-count-pill {
    margin-top: 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.cem-bubble-count-pill span {
    font-size: 11.5px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

.cem-bubble-events-list {
    max-height: 340px;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 6px 4px;
}

.cem-bubble-events-list::-webkit-scrollbar {
    width: 4px;
}

.cem-bubble-events-list::-webkit-scrollbar-track {
    background: transparent;
}

.cem-bubble-events-list::-webkit-scrollbar-thumb {
    background: rgba(15, 23, 42, 0.14);
    border-radius: 999px;
}

.cem-bubble-event-row {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    margin: 0 4px;
    padding: 12px 14px;
    border-radius: 10px;
    text-decoration: none !important;
    color: inherit;
    transition: background 0.18s ease, transform 0.18s ease;
    opacity: 0;
    animation: cemBubbleFadeSlideIn 0.28s ease both;
}

.cem-bubble-event-row + .cem-bubble-event-row {
    border-top: 1px solid rgba(15, 23, 42, 0.05);
}

.cem-bubble-event-row:hover {
    background: rgba(13, 35, 64, 0.03);
}

.cem-bubble-date-badge {
    min-width: 46px;
    width: 46px;
    height: 50px;
    flex-shrink: 0;
    border-radius: 11px;
    background: linear-gradient(135deg, #0b1a31 0%, #0d2340 100%);
    box-shadow: 0 4px 10px rgba(13, 35, 64, 0.18);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.cem-bubble-date-month {
    font-size: 9px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
}

.cem-bubble-date-day {
    margin-top: 2px;
    font-size: 17px;
    font-weight: 700;
    line-height: 1;
    color: #fff;
}

.cem-bubble-event-details {
    min-width: 0;
    flex: 1;
}

.cem-bubble-event-title {
    margin-bottom: 6px;
    font-size: 13.5px;
    font-weight: 700;
    line-height: 1.35;
    color: #162130;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cem-bubble-event-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.cem-bubble-chip,
.cem-bubble-event-time {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-height: 24px;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.2;
}

.cem-bubble-chip {
    background: #eef3ff;
    color: #294b7a;
}

.cem-bubble-event-time {
    background: #f8fafc;
    color: #5b6778;
}

.cem-bubble-event-time svg {
    flex-shrink: 0;
}

.cem-bubble-row-arrow {
    flex-shrink: 0;
    margin-top: 3px;
    font-size: 18px;
    line-height: 1;
    color: #b6bfcc;
    transition: transform 0.18s ease, color 0.18s ease;
}

.cem-bubble-event-row:hover .cem-bubble-row-arrow {
    transform: translateX(2px);
    color: #7f8b99;
}

.cem-bubble-footer {
    padding: 0 14px 14px;
}

.cem-bubble-divider {
    height: 1px;
    margin-bottom: 12px;
    background: linear-gradient(90deg, transparent, rgba(15, 23, 42, 0.08), transparent);
}

.cem-bubble-footer-note {
    font-size: 12px;
    font-weight: 600;
    line-height: 1.45;
    color: #506072;
    text-align: center;
}

.cem-bubble-pointer {
    position: absolute;
    bottom: -12px;
    left: 50%;
    width: 0;
    height: 0;
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-top: 12px solid #fff;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.08));
    animation: cemBubblePointerBob 2.4s ease-in-out infinite;
}

@media (max-width: 480px) {
    .cem-bubble-wrap,
    .cem-bubble-card {
        width: 280px;
        max-width: 280px;
    }

    .cem-bubble-venue-name {
        font-size: 22px;
    }
}