/*
 * Techphinlabs — Contact Map Styles
 * Leaflet map custom pin, tooltip, and popup styling
 * Uses brand colors: --accent (#00ABA2), --accent-dark (#00827b), --bg-dark-sec (#1C2524)
 */

/* ═══════════════════════════════════════════
   MAP CONTAINER
═══════════════════════════════════════════ */
.tp-map-container {
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    position: relative;
}

#techphinMap {
    width: 100%;
    height: 350px;
    z-index: 1;
}

/* ═══════════════════════════════════════════
   MODERN PIN CONTAINER
═══════════════════════════════════════════ */
.custom-green-pin {
    background: none !important;
    border: none !important;
}

.tp-pin-wrapper {
    position: relative;
    width: 56px;
    height: 72px;
    animation: tpBounceIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes tpBounceIn {
    0% {
        transform: translateY(-40px) scale(0.3);
        opacity: 0;
    }
    60% {
        transform: translateY(4px) scale(1.05);
        opacity: 1;
    }
    100% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

/* ═══════════════════════════════════════════
   PULSING RINGS
═══════════════════════════════════════════ */
.tp-pulse-ring {
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 8px;
    border-radius: 50%;
    background: rgba(0, 171, 162, 0.35);
}

.tp-pulse-ring::before,
.tp-pulse-ring::after {
    content: '';
    position: absolute;
    border: 2px solid rgba(0, 171, 162, 0.5);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: tpPulse 2s ease-out infinite;
}

.tp-pulse-ring::before {
    width: 30px;
    height: 14px;
}

.tp-pulse-ring::after {
    width: 50px;
    height: 22px;
    animation-delay: 0.6s;
}

@keyframes tpPulse {
    0% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(2.2);
        opacity: 0;
    }
}

/* ═══════════════════════════════════════════
   FLOATING PIN ANIMATION
═══════════════════════════════════════════ */
.tp-pin-svg {
    animation: tpFloat 3s ease-in-out infinite;
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.3));
}

@keyframes tpFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-4px);
    }
}

/* ═══════════════════════════════════════════
   PREMIUM GLASSMORPHISM LABEL (Tooltip)
═══════════════════════════════════════════ */
.techphin-label {
    background: rgba(28, 37, 36, 0.9) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    color: #fff !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    font-family: 'Inter', 'Segoe UI', sans-serif !important;
    letter-spacing: 0.8px;
    padding: 8px 18px 8px 14px !important;
    border-radius: 12px !important;
    border: 1px solid rgba(0, 171, 162, 0.5) !important;
    box-shadow: 0 8px 32px rgba(0, 171, 162, 0.35),
                0 0 0 1px rgba(255, 255, 255, 0.08),
                inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.techphin-label:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 171, 162, 0.5),
                0 0 0 1px rgba(255, 255, 255, 0.15) !important;
}

.techphin-label::before {
    border-top-color: rgba(28, 37, 36, 0.9) !important;
}

/* ── Glowing Dot in Label ── */
.tp-label-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #00ABA2;
    border-radius: 50%;
    margin-right: 8px;
    box-shadow: 0 0 8px #00ABA2, 0 0 16px rgba(0, 171, 162, 0.4);
    animation: tpDotPulse 1.5s ease-in-out infinite;
    vertical-align: middle;
}

@keyframes tpDotPulse {
    0%, 100% {
        box-shadow: 0 0 4px #00ABA2;
    }
    50% {
        box-shadow: 0 0 12px #00ABA2, 0 0 24px rgba(0, 171, 162, 0.5);
    }
}

/* ═══════════════════════════════════════════
   PREMIUM POPUP CARD
═══════════════════════════════════════════ */
.tp-popup .leaflet-popup-content-wrapper {
    background: linear-gradient(145deg, #1C2524, #243130) !important;
    border: 1px solid rgba(0, 171, 162, 0.3);
    border-radius: 16px !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 40px rgba(0, 171, 162, 0.12);
    color: #fff;
    padding: 0 !important;
    overflow: hidden;
}

.tp-popup .leaflet-popup-tip {
    background: #243130 !important;
    border: 1px solid rgba(0, 171, 162, 0.3);
}

.tp-popup .leaflet-popup-close-button {
    color: rgba(255, 255, 255, 0.6) !important;
    font-size: 20px !important;
    top: 6px !important;
    right: 8px !important;
}

.tp-popup .leaflet-popup-close-button:hover {
    color: #00ABA2 !important;
}

/* ── Popup Inner Layout ── */
.tp-popup-inner {
    padding: 20px 22px 18px;
    min-width: 230px;
}

.tp-popup-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.tp-popup-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, #00ABA2, #00827b);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #fff;
    font-size: 18px;
}

.tp-popup-title {
    font-size: 17px;
    color: #fff;
    letter-spacing: 0.3px;
    font-weight: 700;
}

.tp-popup-subtitle {
    font-size: 11px;
    color: #00ABA2;
    font-weight: 600;
    margin-top: 2px;
}

.tp-popup-address {
    background: rgba(0, 171, 162, 0.08);
    border-radius: 10px;
    padding: 10px 12px;
    margin-bottom: 14px;
    border: 1px solid rgba(0, 171, 162, 0.15);
}

.tp-popup-address-inner {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.tp-popup-address-inner i {
    color: #00ABA2;
    margin-top: 3px;
    font-size: 13px;
}

.tp-popup-address-inner span {
    font-size: 12.5px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
}

.tp-popup-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 10px 0;
    background: linear-gradient(135deg, #00ABA2, #00827b);
    color: #fff;
    border-radius: 10px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.3px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 171, 162, 0.3);
}

.tp-popup-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0, 171, 162, 0.45);
    color: #fff;
}
