.device-marker {
    cursor: pointer;
}

.device-marker:hover {
    z-index: 1000 !important;
}

.highlighted-device {
    z-index: 1000 !important;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.leaflet-popup-content-wrapper {
    border-radius: 8px;
    padding: 0;
}

.leaflet-popup-content {
    margin: 0;
    min-width: 200px;
}

.leaflet-tooltip {
    background-color: rgba(0, 0, 0, 0.8);
    border: none;
    border-radius: 4px;
    color: white;
    padding: 6px 10px;
    font-size: 13px;
}

.leaflet-tooltip-top:before {
    border-top-color: rgba(0, 0, 0, 0.8);
}

.device-select-item {
    transition: all 0.2s ease;
}

.device-select-item:hover {
    transform: translateX(4px);
}

@keyframes fade-in-down {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fade-out-up {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-20px);
    }
}

.animate-fade-in-down {
    animation: fade-in-down 0.3s ease-out;
}

.animate-fade-out-up {
    animation: fade-out-up 0.3s ease-out;
}

@media (max-width: 1024px) {
    .grid-cols-1.lg\:grid-cols-4 {
        grid-template-rows: auto 1fr;
    }

    .lg\:col-span-1 {
        max-height: none !important;
        order: 1;
    }

    .lg\:col-span-3 {
        order: 2;
        padding: 1rem;
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    to {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px);
    }
}

@media (max-width: 768px) {
    .device-marker {
        touch-action: none;
    }

    .leaflet-popup-content {
        min-width: 180px;
    }

    .floor-plan-toast {
        min-width: 250px !important;
        max-width: 90% !important;
    }
}
