.service-area-tooltip-wrapper {
    position: relative;
    cursor: pointer;
    display: inline-block;
}

/* Highlight options */
.highlight-underline { text-decoration: underline; }
.highlight-underline_hover:hover { text-decoration: underline; }
.highlight-bold { font-weight: bold; }
.highlight-icon .tooltip-icon {
    margin-left: 4px;
    font-size: 0.75em;
    opacity: 0.5;
    vertical-align: super;
}
.highlight-pulse.pulse-once {
    animation: pulse 1s ease-in-out;
}

/* Tooltip */
.tooltip-content {
    display: block;
    opacity: 0;
    visibility: hidden;
    position: absolute;
    z-index: 9999;
    border: 1px solid #ccc;
    padding: 10px;
    top: 100%;
    left: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-radius: 6px;
    white-space: normal;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
    line-height: 1.3;
}

.service-area-tooltip-wrapper:hover .tooltip-content,
.service-area-tooltip-wrapper.active .tooltip-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

/* Tooltip content styling */
.tooltip-content [itemscope] {
    display: inline-block;
    line-height: 1.3;
}

.tooltip-content [itemprop="containsPlace"] {
    display: inline;
    line-height: 1.2;
}

.tooltip-content .suburbs-list {
    display: block;
    line-height: 1.2;
}

/* Class-based styling */
.tooltip-heading {
    font-weight: bold;
    line-height: 1.3;
    margin-bottom: 5px;
}

.area-text {
    display: inline;
}

.suburb-text {
    display: inline;
    line-height: 1.2;
}

.no-suburbs-message {
    font-style: italic;
    opacity: 0.8;
}

/* Mobile fallback */
@media (hover: none) and (pointer: coarse) {
    .tooltip-content {
        position: absolute;
        transform: none;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
        margin-top: 0;
        top: calc(100% + 4px);
    }
}

/* Animation keyframes */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}
