/* ═══════════════════════════════════════════
   AppArtMan — Tracking Page Supplementary Styles
   ═══════════════════════════════════════════ */
/* Additional tracking-specific styles.
   Main map styles are inline in tracking.html. */

.map-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #07080f;
}

.map-overlay-dark {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(7,8,15,0.5) 0%, rgba(7,8,15,0.15) 50%, rgba(7,8,15,0.7) 100%);
    z-index: 1;
}

.map-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.9;
    filter: saturate(0.8);
}

.marker {
    position: absolute;
    z-index: 3;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 1rem;
}

.customer-marker {
    top: 56%;
    left: 19%;
    background: rgba(99,102,241,0.3);
    color: #6c63ff;
    border: 2px solid rgba(99,102,241,0.5);
}

.pro-marker {
    top: 35%;
    left: 55%;
    overflow: hidden;
    border: 2px solid rgba(0,229,160,0.5);
    transition: left 0.05s linear, top 0.05s linear;
}

.pro-marker img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid rgba(99,102,241,0.4);
    animation: pulse-anim 2s infinite;
}

@keyframes pulse-anim {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(2); opacity: 0; }
}

/* ═══════════════════════════════════════════
   Extra Feature Houses & Thought Bubbles
   ═══════════════════════════════════════════ */
.extra-house {
    width: 32px;
    height: 32px;
    font-size: 0.85rem;
    animation: bounce-anim 3s ease-in-out infinite alternate;
    cursor: pointer;
}

@keyframes bounce-anim {
    0% { transform: translateY(0); }
    100% { transform: translateY(-5px); }
}

.eh-pink { background: rgba(236, 72, 153, 0.2); color: #ec4899; border: 2px solid rgba(236, 72, 153, 0.5); }
.eh-pink .pulse { border-color: rgba(236, 72, 153, 0.4); }

.eh-green { background: rgba(16, 185, 129, 0.2); color: #10b981; border: 2px solid rgba(16, 185, 129, 0.5); }
.eh-green .pulse { border-color: rgba(16, 185, 129, 0.4); }

.eh-orange { background: rgba(245, 158, 11, 0.2); color: #f59e0b; border: 2px solid rgba(245, 158, 11, 0.5); }
.eh-orange .pulse { border-color: rgba(245, 158, 11, 0.4); }

.eh-cyan { background: rgba(6, 182, 212, 0.2); color: #06b6d4; border: 2px solid rgba(6, 182, 212, 0.5); }
.eh-cyan .pulse { border-color: rgba(6, 182, 212, 0.4); }

.thought-bubble {
    position: absolute;
    bottom: 150%;
    left: 50%;
    transform: translateX(-50%) scale(0.8) translateY(10px);
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(255,255,255,0.15);
    color: #e2e8f0;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    box-shadow: 0 4px 20px rgba(0,0,0,0.6);
    z-index: 10;
    font-weight: 500;
    animation: bubble-fade 7s ease-in-out infinite;
}

.extra-house:hover .thought-bubble {
    opacity: 1 !important;
    transform: translateX(-50%) scale(1) translateY(0) !important;
    animation: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.thought-bubble::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: rgba(15, 23, 42, 0.95) transparent transparent transparent;
}

.delay-1 { animation-delay: 0.5s; }
.delay-2 { animation-delay: 2.5s; }
.delay-3 { animation-delay: 4.5s; }
.delay-4 { animation-delay: 1.5s; }

@keyframes bubble-fade {
    0%, 10% { opacity: 0; transform: translateX(-50%) scale(0.8) translateY(10px); }
    20%, 80% { opacity: 1; transform: translateX(-50%) scale(1) translateY(0); }
    90%, 100% { opacity: 0; transform: translateX(-50%) scale(0.8) translateY(10px); }
}

/* ═══════════════════════════════════════════
   Mobile Adjustments for Tracking & Map Elements
   ═══════════════════════════════════════════ */
@media (max-width: 768px) {
    .thought-bubble, div[class*="thought-bubble"] {
        display: none !important; /* Force hide all tooltips on mobile */
        opacity: 0 !important;
        visibility: hidden !important;
        width: 0 !important;
        height: 0 !important;
    }
    
    .extra-house {
        width: 24px !important;
        height: 24px !important;
        font-size: 0.65rem !important;
    }

    .marker {
        width: 30px !important;
        height: 30px !important;
        font-size: 0.8rem !important;
    }

    .customer-marker {
        border-width: 1px !important;
        top: 25% !important; 
        left: 45% !important; 
    }
    
    .eh-green {
        top: 70% !important; 
        left: 80% !important; 
    }
    
    .eh-orange {
        top: 50% !important;
        left: 15% !important; 
    }
    
    .eh-pink {
        top: 30% !important; 
        left: 60% !important; 
    }

    .eh-cyan {
        top: 15% !important;
        left: 75% !important;
    }

    .map-img {
        opacity: 0.6; /* Dim the map further on mobile to prioritize hero text */
    }
}
