/* Australia Service Map - Styles */

#australia-map-wrapper {
    position: relative;
    width: 60%;
    background: #f5f5f5;
    border-radius: 4px;
    overflow: hidden;
    /* text-align: center; */
    /* justify-content: center; */
    display: contents;
}

.asm-map-container {
    position: relative;
    width:65%;
    /* max-width: 800px; */
    margin: 0 auto;
    background: #fff;
    aspect-ratio: 16 / 12;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* SVG Styling */
.asm-map-container svg {
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
    display: block;
}

/* Pin Styling - location marker */
.asm-pin {
    position: absolute;
/*     width: 20px;
    height: 20px; */
    background: linear-gradient(135deg, #2958a3, #375e9e);
    border-radius: 50% 50% 50% 0;
    transform: translate(-50%, -100%) rotate(-45deg);
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.4);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    z-index: 10;
    outline: none;
}

.asm-pin::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    background: #ffff;
    border-radius: 50%;
	border:1px solid #000;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
}

.asm-pin:hover,
.asm-pin:focus {
    background: linear-gradient(135deg, #2958a3, #000);
    box-shadow: 0 6px 14px rgba(37, 99, 235, 0.6);
    transform: translate(-50%, -100%) rotate(-45deg) scale(1.08);
    outline-offset: 3px;
    outline: 2px solid #2958a3;

}

.asm-pin:focus {
    outline: 2px solid #2958a3;
    outline-offset: 3px;
}

/* Tooltip Styling */
#asm-tooltip {
    position: fixed;
    min-width: 220px;
    max-width: 300px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    padding: 12px 14px;
    font-size: 13px;
    line-height: 1.5;
    display: none;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
    transform: translateY(4px);
    pointer-events: none;
}

#asm-tooltip.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* Tooltip Title */
#asm-tooltip h4 {
    margin: 0 0 8px;
    padding: 0;
    font-size: 14px;
    font-weight: 600;
    color: #222;
    line-height: 1.3;
}

/* Tooltip List */
#asm-tooltip ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

#asm-tooltip li {
    margin: 0 0 6px;
    padding: 0;
}

#asm-tooltip li:last-child {
    margin-bottom: 0;
}

#asm-tooltip a {
    color: #0073aa;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: color 0.2s ease;
}

#asm-tooltip a:hover {
    color: #005a87;
    text-decoration: underline;
    outline: 2px solid #2958a3;

}

#asm-tooltip a:focus {
    outline: 2px solid #2958a3;
    outline-offset: 2px;
    border-radius: 2px;
}

/* External Link Icon */
.asm-external-icon {
    display: inline-block;
    width: 10px;
    height: 10px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 10 10"><path fill="currentColor" d="M8 0H4v1h3.3L2 6.3l.7.7L8 1.7V5h1V0z"/></svg>');
    background-repeat: no-repeat;
    background-size: contain;
    flex-shrink: 0;
}

/* No Services Message */
.asm-no-service {
    margin: 0;
    padding: 0;
    color: #666;
    font-style: italic;
    font-size: 12px;
}

/* Responsive Design */
@media (max-width: 768px) {
    /* .asm-map-container {
        max-width: 100%;
        min-height: 400px;
    } */

    .asm-pin {
        width: 18px;
        height: 18px;
    }

    #asm-tooltip {
        min-width: 200px;
        max-width: 280px;
        font-size: 12px;
        padding: 10px 12px;
    }

    #asm-tooltip h4 {
        font-size: 13px;
        margin-bottom: 6px;
    }
    .asm-map-container {
        width: 100%;
    }
}

@media (max-width: 480px) {
   .asm-map-container {
        width: 100%;
    }

    #asm-tooltip {
        min-width: 180px;
        max-width: 250px;
        font-size: 11px;
        padding: 8px 10px;
    }

    #asm-tooltip h4 {
        font-size: 12px;
        margin-bottom: 4px;
    }

    #asm-tooltip li {
        margin-bottom: 4px;
    }
}

/* Print Styles */
@media print {
    .asm-pin,
    #asm-tooltip {
        display: none;
    }

    #australia-map-wrapper {
        border: none;
        background: none;
    }
}