/* ==========================================================================
   Map Object 3D/2D Pin Components
   Modern, Clean, Reusable Enterprise Map Pin Styles
   ========================================================================== */

.map-object-3d-pin {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    user-select: none;
    z-index: 20;
}

.map-object-pin-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    transform-origin: bottom center;
    transition: transform 0.12s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Badge Container */
.map-object-pin-badge {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 9999px;
    background-color: #ffffff;
    border: 2px solid #ffffff;
    box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.08), 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.2s ease;
}

.map-object-3d-pin:hover .map-object-pin-badge {
    transform: scale(1.12);
    box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.12), 0 10px 15px -3px rgba(0, 0, 0, 0.15);
}

/* Accent Color Ring Container */
.map-object-pin-icon-wrap {
    width: 24px;
    height: 24px;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Icon Image */
.map-object-pin-icon {
    width: 14px;
    height: 14px;
    object-fit: contain;
}

/* Anchor Point Dot */
.map-object-pin-dot {
    width: 6px;
    height: 6px;
    border-radius: 9999px;
    margin-top: -2px;
    border: 1px solid #ffffff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

/* Frosted Glass Floating Label */
.map-pin-label {
    margin-top: 2px;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 700;
    color: #334155;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    white-space: nowrap;
    max-width: 110px;
    overflow: hidden;
    text-overflow: ellipsis;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease-out, transform 0.15s ease-out;
}

.map-object-3d-pin:hover .map-pin-label {
    opacity: 1;
}

/* Targeted / Highlighted Pulse Pin */
.map-object-pin-targeted {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 9999px;
    background-color: #2563eb;
    border: 2px solid #ffffff;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.3), 0 10px 15px -3px rgba(0, 0, 0, 0.2);
}

.map-object-pin-targeted-pulse {
    width: 14px;
    height: 14px;
    border-radius: 9999px;
    background-color: #ffffff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    animation: ping 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.map-object-pin-targeted-dot {
    width: 8px;
    height: 8px;
    border-radius: 9999px;
    background-color: #2563eb;
    margin-top: -3px;
    border: 1px solid #ffffff;
}

/* ==========================================================================
   Map Asset 3D Pin Component
   Distinctive Violet/Indigo Theme with Material Icon & Status Badge
   ========================================================================== */

.map-asset-3d-pin {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    user-select: none;
    z-index: 22;
}

.map-asset-pin-badge {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    border: 2px solid #ffffff;
    box-shadow: 0 0 0 1px rgba(99, 102, 241, 0.25), 0 4px 10px -2px rgba(79, 70, 229, 0.35);
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.2s ease;
    color: #ffffff;
}

.map-asset-3d-pin:hover .map-asset-pin-badge {
    transform: scale(1.15);
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.4), 0 8px 20px -3px rgba(79, 70, 229, 0.5);
}

.map-asset-pin-status-dot {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 8px;
    height: 8px;
    border-radius: 9999px;
    border: 1.5px solid #ffffff;
}

.map-asset-pin-dot {
    width: 6px;
    height: 6px;
    border-radius: 9999px;
    margin-top: -2px;
    background-color: #4f46e5;
    border: 1px solid #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.map-asset-label {
    margin-top: 2px;
    padding: 2px 7px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 700;
    color: #312e81;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(199, 210, 254, 0.9);
    box-shadow: 0 1px 4px rgba(79, 70, 229, 0.1);
    white-space: nowrap;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease-out, transform 0.15s ease-out;
}

.asset-labels-hidden .map-asset-label,
.asset-labels-hidden .map-asset-label-marker,
.asset-labels-hidden .map-asset-pill-marker,
.asset-labels-hidden .b3d-asset-pill-marker,
.asset-labels-hidden .map-asset-pill,
.asset-labels-hidden .maplibregl-marker:has(.map-asset-label-marker),
.asset-labels-hidden .maplibregl-marker:has(.b3d-asset-pill-marker) {
    display: none !important;
}

.map-asset-3d-pin:hover .map-asset-label {
    opacity: 1;
}

.map-asset-status-dot {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 8px;
    height: 8px;
    border-radius: 9999px;
    border: 1.5px solid #ffffff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}
