/* Travel Map Container - Full screen with dark blue background */
.travel-map-container {
    --travel-map-bg-color: #0e2846;
    /* Dark blue - Material Design dark navy  #0e2846; */
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--travel-map-bg-color);
    /* Dark blue - Material Design dark navy */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    overflow: hidden;
}

/* SVG sizing - scales automatically with viewBox */
.travel-map-svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(6px 6px 6px color-mix(in srgb, var(--travel-map-bg-color), black 50%));
}

/* Visited countries hover effect - glow */
.visited {
    cursor: pointer;
    transition: all 0.3s ease;
}

.visited:hover {
    filter: url(#innerGlowYellow)
            drop-shadow(0 0 1px rgba(255, 255, 255, 0.8))
            drop-shadow(0 0 6px rgba(255, 255, 255, 0.2))
            drop-shadow(0 0 16px rgba(0, 0, 0, 1));
}

/* Country label styling */
.country-label {
    cursor: pointer;
    transition: all 0.3s ease;
}

.label-box {
    transition: all 0.3s ease;
}

.label-text {
    pointer-events: none;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    user-select: none;
}

.pointer-line {
    transition: all 0.3s ease;
}

/* Hover effects for visited labels */
.country-label.visited:hover .label-box {
    filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.8)) drop-shadow(0 0 12px rgba(255, 255, 255, 0.6));
}

.country-label.visited:hover .pointer-line {
    stroke-width: 2.5;
    filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.6));
}

/* Non-visited labels */
.country-label:not(.visited) {
    opacity: 0.8;
}

.country-label:not(.visited):hover {
    opacity: 1;
}

/* Smooth viewBox transitions for zoom */
.travel-map-svg {
    transition: all 0.6s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.travel-map-svg.animating {
    /* CSS handles the transition */
}

/* Back button - matches nav-icon style */
.zoom-back-btn {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    cursor: pointer;
    display: inline-block;
    height: 50px;
    width: 50px;
    position: fixed;
    top: 15px;
    right: 15px;
    z-index: 101;
    /* Circle with glassmorphism - same as nav-icon */
    background: rgba(255, 255, 255, 0.22);
    border-radius: 50%;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgb(255, 255, 255);
    transition: all 0.3s ease;
}

.zoom-back-btn:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: scale(1.05);
}

.zoom-back-btn:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

/* Arrow icon */
.zoom-back-btn span {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 24px;
    font-weight: bold;
    line-height: 1;
}