@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&display=swap');

#wellington-map-container {
    font-family: 'Inter', sans-serif;
    background-color: #ffffff;
    margin: 0 auto;
    padding: 30px 0;
    position: relative;
    overflow: hidden;
    color: #1a1a1a;
}


/* Map Viewport - Spacious and Centered */
#wellington-map-viewport {
    position: relative;
    width: 100%;
    height: 570px;
    margin: 0 auto;
    background-color: #c2edfd;
    /* Pale blue map tint */
    border-radius: 20px;
    border: 1px solid #bfdbfe;
    box-shadow: 0 8px 30px -8px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

#wellington-svg-map {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

#wellington-svg-map svg {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* Forces SVG inside frame */
    display: block;
    margin: auto;
}

/* Region Display */
#wellington-svg-map path {
    display: none;
    fill: #f8fafc;
    stroke: #e2e8f0;
    stroke-width: 0.15;
    transition: none;
}

/* Southwest region visible */
#wellington-svg-map path#GB-UKK {
    display: block;
    fill: #b9dc57;
    /* Punchier green to match website energy */
    stroke: #ffffff;
    stroke-width: 0.1;
}

/* Markers - Pop-in Animation */
#wellington-markers {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
}

.wellington-marker {
    position: absolute;
    width: 28px;
    height: 28px;
    background-color: #c30a2f;
    /* Bold red */
    border: 3px solid #ffffff;
    border-radius: 50%;
    cursor: pointer;
    pointer-events: auto;
    transform: translate(-50%, -50%) scale(0);
    box-shadow: 0 4px 12px rgba(195, 10, 47, 0.4);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
        background-color 0.2s,
        box-shadow 0.3s ease;
    animation: markerPopIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.wellington-marker-pulse {
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 50%;
    background-color: rgba(195, 10, 47, 0.4);
    z-index: -1;
    animation: pulseRing 2s cubic-bezier(0.2, 0, 0.2, 1) infinite;
}

@keyframes pulseRing {
    0% {
        transform: scale(0.8);
        opacity: 0.8;
    }

    100% {
        transform: scale(2.5);
        opacity: 0;
    }
}

@keyframes markerPopIn {
    to {
        transform: translate(-50%, -50%) scale(1);
    }
}

.wellington-marker:hover {
    transform: translate(-50%, -50%) scale(1.3);
    background-color: #18181b;
    /* Invert to dark on hover */
    border-color: #ffffff;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    z-index: 20;
}

.wellington-marker:hover .wellington-marker-pulse {
    display: none;
    /* Stop pulse on hover */
}

/* Premium Integrated Labels */
.wellington-map-label {
    position: absolute;
    color: #1e3a5f;
    /* Deep Navy */
    font-size: 10px;
    /* Refined size */
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    /* More elegant spacing */
    pointer-events: none;
    transform: translate(-50%, -50%);
    opacity: 0;
    animation: labelFadeIn 1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    padding: 5px 11px;
    /* Slightly tighter padding */
    background: rgba(255, 255, 255, 0.82);
    /* Slightly more solid for legibility */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 20px;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.wellington-map-label-secondary {
    position: absolute;
    color: #64748b;
    /* Slate Blue/Grey - very subtle */
    font-size: 9px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    pointer-events: none;
    transform: translate(-50%, -50%);
    opacity: 0;
    animation: labelFadeIn 1.5s ease-out forwards;
    white-space: nowrap;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
    /* Helps legibility on green background */
}

@keyframes labelFadeIn {
    to {
        opacity: 1;
    }
}

/* Modal Styling - Glassmorphism Refined */
#wellington-modal {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.wellington-modal-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

#wellington-modal.wellington-modal-visible {
    opacity: 1;
    visibility: visible;
}

.wellington-modal-content {
    background: rgba(255, 255, 255, 0.94);
    padding: 70px 50px 60px;
    border-radius: 40px;
    max-width: 480px;
    width: 90%;
    text-align: center;
    position: relative;
    box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.8);
    transform: translateY(40px) scale(0.95);
    transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

#wellington-modal.wellington-modal-visible .wellington-modal-content {
    transform: translateY(0) scale(1);
}

.wellington-modal-close {
    position: absolute;
    top: 35px;
    right: 35px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #71717a;
    background: #f4f4f7;
    border-radius: 50%;
    transition: all 0.3s;
    font-size: 18px;
    /* Ensure icon size */
}

.wellington-modal-close i {
    font-style: normal !important;
}

.wellington-modal-close:hover {
    color: #18181b;
    background: #e4e4e7;
    transform: rotate(90deg);
}

.wellington-modal-subtitle {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    color: #71717a;
    letter-spacing: 0.12em;
    margin: 0 0 8px;
    display: block;
}

.wellington-modal-content h2 {
    margin: 0 0 16px;
    font-size: 26px;
    font-weight: 600;
    color: #18181b;
    line-height: 1.25;
}

.wellington-modal-content p {
    color: #71717a;
    margin: 8px 0 32px;
    font-size: 16px;
    line-height: 1.6;
}

/* Contact Info Styling - Fixed Icons */
.wellington-modal-contact {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 40px;
}

.contact-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 18px;
    background: #f8fafc;
    border-radius: 20px;
    color: #1a1a1a;
    text-decoration: none !important;
    font-weight: 500;
    font-size: 15px;
    transition: all 0.2s;
    border: 1px solid #f1f5f9;
}

.contact-item i {
    color: #71717a;
    font-size: 18px;
    font-style: normal !important;
}

.contact-item:hover {
    background: #ffffff;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    border-color: #e2e8f0;
    transform: translateY(-2px);
}

.contact-item:hover i {
    color: #18181b;
}

.wellington-modal-links-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.wellington-button {
    display: block;
    background-color: #c30a2f;
    /* V2 bold red CTA */
    color: #ffffff;
    padding: 20px;
    border-radius: 20px;
    text-decoration: none !important;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px -6px rgba(195, 10, 47, 0.4);
    letter-spacing: 0.02em;
    border: 2px solid transparent;
    box-sizing: border-box;
    text-align: center;
}

.wellington-button:hover {
    background-color: transparent !important;
    color: #c30a2f !important;
    border-color: #c30a2f;
    transform: translateY(-2px);
    box-shadow: 0 12px 24px -8px rgba(195, 10, 47, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
    #wellington-map-viewport {
        height: 380px;
    }

    .wellington-modal-content {
        padding: 60px 25px 50px;
    }
}