* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.header-ads {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.navbar-brand {
    font-size: 1.5rem;
    letter-spacing: 0.5px;
}

#searchInput {
    width: 250px;
}

@media (max-width: 768px) {
    #searchInput { width: 100%; margin-bottom: 10px; }
}

.filter-section {
    animation: slideDown 0.3s ease-in-out;
}

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

#map {
    border-radius: 0.25rem;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.custom-marker {
    background-color: #007bff;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    border: 3px solid white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
}

.custom-marker:hover {
    transform: scale(1.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.card {
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
}

.card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

#cctvList {
    max-height: 650px;
    overflow-y: auto;
}

.cctv-item {
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    border-bottom: 1px solid #eee;
    padding: 15px;
}

.cctv-item:hover {
    background-color: #f8f9fa;
    border-left: 4px solid #007bff;
    padding-left: 12px;
}

.cctv-item.active {
    background-color: #e7f1ff;
    border-left: 4px solid #0056b3;
    padding-left: 12px;
}

.cctv-item-title {
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.cctv-item-desc {
    font-size: 12px;
    color: #666;
    line-height: 1.4;
}

.cctv-item-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 10px;
    margin-top: 5px;
    font-weight: 500;
}

.badge-city { background-color: #f8d7da; color: #721c24; }
.badge-nature { background-color: #d4edda; color: #155724; }
.badge-beach { background-color: #d1ecf1; color: #0c5460; }
.badge-animal { background-color: #fff3cd; color: #856404; }
.badge-traffic { background-color: #e2e3e5; color: #383d41; }

.modal-header {
    border-bottom: 2px solid rgba(0, 0, 0, 0.1);
}

.cctv-detail-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.cctv-detail-description {
    padding: 15px;
    background-color: #f0f4ff;
    border-radius: 8px;
    border-left: 4px solid #007bff;
    line-height: 1.6;
    color: #333;
}

.detail-item {
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 6px;
    border-left: 3px solid #007bff;
}

.detail-label {
    font-size: 12px;
    color: #666;
    font-weight: 600;
    text-transform: uppercase;
}

.detail-value {
    font-size: 14px;
    color: #333;
    margin-top: 3px;
}

.btn {
    transition: all 0.3s ease;
}

footer {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-top: 2px solid #007bff;
}

@media (max-width: 768px) {
    #map { height: 400px !important; }
    #cctvList { max-height: 400px; }
}

#cctvList::-webkit-scrollbar {
    width: 8px;
}

#cctvList::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

#cctvList::-webkit-scrollbar-thumb {
    background: #007bff;
    border-radius: 10px;
}
