  /**
 * Locations Map Block Styles
 */

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

.locations-map__container {
    position: relative;
    width: 100%;
}

.locations-map__svg {
    display: block;
    width: 100%;
    height: auto;
}

.locations-map__svg svg {
    display: block;
    width: 100%;
    height: auto;
}

.locations-map__markers {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.locations-map__marker {
    position: absolute;
    pointer-events: auto;
    outline: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    transition: all 0.8s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    min-width: 30px;
    width: 3vw;
    max-width: 60px;
}

.locations-map__marker:hover,
.locations-map__marker:focus {
    outline: 6px solid var(--theme-palette-color-4, #FFD700);
    transform: scale(1.2);
    border-radius: 50%;
    z-index: 10;
}

.locations-map__marker:focus-visible {
    outline: 6px solid var(--theme-palette-color-4, #FFD700);
    box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.2);
}

.locations-map__marker-icon {
    display: block;
    min-width: 30px;
    width: 3vw;
    max-width: 60px;
}

.locations-map__marker-icon svg {
    width: 100%;
    height: 100%;
    vertical-align: middle;
}

/* Screen reader only text for accessibility */
.locations-map__marker-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Tooltip on hover/focus */
.locations-map__marker::after {
    content: attr(data-location);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.5rem 1rem;
    background-color: var(--theme-palette-color-3, #0F0F0F);
    color: var(--theme-palette-color-8, #ffffff);
    font-size: 0.875rem;
    font-weight: 600;
    white-space: nowrap;
    border-radius: 4px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    pointer-events: none;
    margin-bottom: 0.5rem;
}

.locations-map__marker::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: var(--theme-palette-color-3, #0F0F0F);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    margin-bottom: -4px;
}

.locations-map__marker:hover::after,
.locations-map__marker:focus::after {
    opacity: 1;
    visibility: visible;
}

.locations-map__marker:hover::before,
.locations-map__marker:focus::before {
    opacity: 1;
    visibility: visible;
}

/* Coming Soon marker styles */
.locations-map__marker--coming-soon {
    cursor: default;
}

/* Hide pseudo-element tooltip for coming soon (uses HTML tooltip instead) */
.locations-map__marker--coming-soon::after,
.locations-map__marker--coming-soon::before {
    display: none;
}

/* HTML Tooltip for Coming Soon markers */
.locations-map__marker-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.5rem 1rem;
    background-color: var(--theme-palette-color-3, #0F0F0F);
    color: var(--theme-palette-color-8, #ffffff);
    white-space: nowrap;
    border-radius: 4px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    pointer-events: none;
    margin-bottom: 0.75rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.125rem;
    text-align: center;
}

.locations-map__marker-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: var(--theme-palette-color-3, #0F0F0F);
}

.locations-map__marker--coming-soon:hover .locations-map__marker-tooltip,
.locations-map__marker--coming-soon:focus .locations-map__marker-tooltip {
    opacity: 1;
    visibility: visible;
}

.locations-map__marker-tooltip-preheading {
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.85;
}

.locations-map__marker-tooltip-title {
    font-size: 0.875rem;
    font-weight: 600;
}

@media (max-width: 480px) {
    .locations-map__marker::after {
        font-size: 0.75rem;
        padding: 0.375rem 0.75rem;
    }
}

/* Admin preview styles */
.wp-admin .locations-map__marker {
    cursor: pointer;
}

