/* Interactive Map Styles */
.interactive-map-section {
    height: 600px;
    position: relative;
    overflow: hidden;
    background: var(--bg-card);
    border-top: 1px solid var(--glass-border);
}

.map-container {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    cursor: grab;
}

.map-container:active {
    cursor: grabbing;
}

.map-content {
    width: 100%;
    height: 100%;
    position: relative;
    transform-origin: center center;
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    justify-content: center;
    align-items: center;
}

.map-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
    /* Prevent dragging the image itself */
    filter: grayscale(20%) contrast(110%);
}

[data-theme="dark"] .map-image {
    filter: grayscale(40%) invert(90%) hue-rotate(180deg) brightness(85%) contrast(120%);
}

/* Map Pin */
.map-pin {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -100%);
    /* Base position */
    z-index: 10;
    pointer-events: none;
}

.pin-head {
    width: 50px;
    height: 50px;
    color: var(--primary);
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.3));
    animation: pinBounce 2s ease-in-out infinite;
    position: relative;
    z-index: 2;
}

.pin-pulse {
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%) rotateX(55deg);
    width: 20px;
    height: 20px;
    background: var(--primary);
    border-radius: 50%;
    opacity: 0.5;
    animation: pinPulse 2s ease-in-out infinite;
    z-index: 1;
}

@keyframes pinBounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes pinPulse {

    0%,
    100% {
        transform: translateX(-50%) rotateX(55deg) scale(1);
        opacity: 0.5;
    }

    50% {
        transform: translateX(-50%) rotateX(55deg) scale(2);
        opacity: 0;
    }
}

.pin-tooltip {
    position: absolute;
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-card);
    padding: 8px 16px;
    border-radius: 8px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    white-space: nowrap;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: auto;
}

.map-pin:hover .pin-tooltip {
    opacity: 1;
}

.pin-tooltip::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px 6px 0;
    border-style: solid;
    border-color: var(--bg-card) transparent transparent transparent;
}

/* Controls */
.map-controls {
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 20;
}

.zoom-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    color: var(--text-main);
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.zoom-btn:hover {
    background: var(--glass-border);
}

.zoom-divider {
    height: 1px;
    background: var(--glass-border);
    width: 100%;
}

.map-overlay-info {
    position: absolute;
    top: 2rem;
    left: 2rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    z-index: 20;
    max-width: 300px;
}

[data-theme="dark"] .map-overlay-info {
    background: rgba(17, 24, 39, 0.9);
}

.map-overlay-info h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
    color: var(--text-heading);
}

.map-overlay-info p {
    margin: 0 0 1rem 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.btn-xs {
    display: inline-block;
    padding: 6px 12px;
    cursor: grab;
}

.map-container:active {
    cursor: grabbing;
}

.map-content {
    width: 100%;
    height: 100%;
    position: relative;
    transform-origin: center center;
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    justify-content: center;
    align-items: center;
}

.map-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
    /* Prevent dragging the image itself */
    filter: grayscale(20%) contrast(110%);
}

[data-theme="dark"] .map-image {
    filter: grayscale(40%) invert(90%) hue-rotate(180deg) brightness(85%) contrast(120%);
}

/* Map Pin */
.map-pin {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -100%);
    /* Base position */
    z-index: 10;
    pointer-events: none;
}

.pin-head {
    width: 50px;
    height: 50px;
    color: var(--primary);
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.3));
    animation: pinBounce 2s ease-in-out infinite;
    position: relative;
    z-index: 2;
}

.pin-pulse {
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%) rotateX(55deg);
    width: 20px;
    height: 20px;
    background: var(--primary);
    border-radius: 50%;
    opacity: 0.5;
    animation: pinPulse 2s ease-in-out infinite;
    z-index: 1;
}

@keyframes pinBounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes pinPulse {

    0%,
    100% {
        transform: translateX(-50%) rotateX(55deg) scale(1);
        opacity: 0.5;
    }

    50% {
        transform: translateX(-50%) rotateX(55deg) scale(2);
        opacity: 0;
    }
}

.pin-tooltip {
    position: absolute;
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-card);
    padding: 8px 16px;
    border-radius: 8px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    white-space: nowrap;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: auto;
}

.map-pin:hover .pin-tooltip {
    opacity: 1;
}

.pin-tooltip::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px 6px 0;
    border-style: solid;
    border-color: var(--bg-card) transparent transparent transparent;
}

/* Controls */
.map-controls {
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 20;
}

.zoom-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    color: var(--text-main);
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.zoom-btn:hover {
    background: var(--glass-border);
}

.zoom-divider {
    height: 1px;
    background: var(--glass-border);
    width: 100%;
}

.map-overlay-info {
    position: absolute;
    top: 2rem;
    left: 2rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    z-index: 20;
    max-width: 300px;
}

[data-theme="dark"] .map-overlay-info {
    background: rgba(17, 24, 39, 0.9);
}

.map-overlay-info h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
    color: var(--text-heading);
}

.map-overlay-info p {
    margin: 0 0 1rem 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.btn-xs {
    display: inline-block;
    padding: 6px 12px;
    background: var(--primary);
    color: white;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
}

@media (max-width: 600px) {
    .map-overlay-info {
        top: auto;
        bottom: 2rem;
        left: 1rem;
        right: 1rem;
        width: auto;
        max-width: none;
    }

    .map-controls {
        top: 1rem;
        bottom: auto;
        right: 1rem;
    }
}