
/* =======================================================
   Aikaizen Interactive Map Styles
======================================================= */
.akz-map-wrapper {
    position: relative;
    width: 100%;
    min-height: 400px;
    background-color: transparent;
    font-family: 'Vazirmatn', 'Plus Jakarta Sans', sans-serif;
}

.akz-map-stats {
    position: absolute;
    top: 10%;
    left: 10%;
    pointer-events: none;
    z-index: 20;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.akz-stat-box h3 {
    font-family: 'Fraunces', serif;
    font-size: clamp(2rem, 4vw, 3rem);
    color: #C5A253; /* Gold */
    line-height: 1;
    margin: 0 0 5px 0;
    font-weight: 300;
}
.akz-stat-box p {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #174D36;
    margin: 0;
    font-weight: 700;
}

.akz-map-container {
    height: 400px;
}
@media (min-width: 768px) { .akz-map-container { height: 500px; } }
@media (min-width: 1024px) { .akz-map-container { height: 600px; } }

.akz-world-svg {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 15px 25px rgba(0,0,0,0.05));
}

/* Map Path Styling - The exact fix the user wanted */
.akz-map-countries path {
    fill: #C5A253; /* Gold */
    opacity: 0.1;
    transition: opacity 0.5s ease, fill 0.5s ease, filter 0.5s ease;
}
.akz-map-countries path.active {
    opacity: 1;
    fill: #174D36; /* Green */
}
.akz-map-countries path.origin-country {
    opacity: 0.9;
    fill: #C5A253;
}

/* Red Routes Animation */
.route-line {
    opacity: 0;
    stroke-dashoffset: 100;
    transition: opacity 0.4s ease;
}
.route-line.active {
    opacity: 1;
    animation: dashAnim 1.5s linear infinite;
}

@keyframes dashAnim {
    to {
        stroke-dashoffset: 0;
    }
}

/* Markers */
.map-marker .dot {
    fill: #C5A253;
    transition: fill 0.3s ease;
}
.map-marker .pulse {
    fill: rgba(197, 162, 83, 0.4);
    opacity: 0;
    transform-origin: center;
    transform: scale(0.5);
}

.origin-marker .pulse {
    animation: pulseAnim 2s infinite ease-out;
}
.origin-marker .dot { fill: #174D36; }

.target-marker.active .dot {
    fill: #e74c3c;
}
.target-marker.active .pulse {
    fill: rgba(231, 76, 60, 0.4);
    animation: pulseAnim 1.5s infinite ease-out;
}

@keyframes pulseAnim {
    0% { transform: scale(0.5); opacity: 0.8; }
    100% { transform: scale(2.5); opacity: 0; }
}

/* Tooltips */
.akz-tooltip {
    position: absolute;
    background: rgba(15, 54, 37, 0.95); /* Dark Green #0F3625 */
    backdrop-filter: blur(8px);
    border-top: 2px solid #C5A253;
    border-radius: 4px;
    padding: 1.2rem;
    width: max-content;
    max-width: 250px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
    color: #F7F3E3;
    pointer-events: none;
    opacity: 0;
    transform: translateY(10px) scale(0.95);
    transition: opacity 0.4s ease, transform 0.4s ease;
    z-index: 30;
    text-align: left;
}
.akz-tooltip.active {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.akz-tooltip::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 20px;
    width: 12px;
    height: 12px;
    background: rgba(15, 54, 37, 0.95);
    transform: rotate(45deg);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    border-right: 1px solid rgba(255,255,255,0.05);
}

.tt-subtitle {
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #C5A253;
    margin-bottom: 5px;
    font-weight: 700;
}
.tt-title {
    font-family: 'Fraunces', serif;
    font-size: 1.1rem;
    color: #F7F3E3;
    margin: 0 0 6px;
    line-height: 1.2;
}
.tt-desc {
    font-size: 0.85rem;
    color: rgba(247, 243, 227, 0.7);
    margin: 0;
    line-height: 1.4;
}

/* Tooltip Positions based on SVG ViewBox approximate translations */
.tooltip-iran { top: 38%; left: 63%; }
.tooltip-turkey { top: 35%; left: 45%; }
.tooltip-arab { top: 43%; left: 60%; }
.tooltip-germany { top: 25%; left: 42%; }
.tooltip-uk { top: 23%; left: 35%; }

@media (max-width: 768px) {
    .akz-tooltip {
        max-width: 200px;
        padding: 1rem;
    }
    .tt-title { font-size: 1rem; }
    .tt-desc { font-size: 0.75rem; }
    .akz-map-stats { top: 1rem; left: 1rem; gap: 15px; }
}
