/* Styles specific to the nearby earthquakes page */

/* Map container */
#map {
    width: 100%;
    height: 400px;
    border-radius: 0 0 0.25rem 0.25rem;
}

/* Earthquake marker styles */
.earthquake-marker {
    background: transparent;
}

.marker-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.9);
    color: #333;
    font-weight: bold;
    font-size: 14px;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    text-align: center;
    border: 3px solid transparent;
    transition: all 0.2s ease;
    position: relative;
    overflow: visible;
}

.marker-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid;
    opacity: 0.7;
    z-index: -1;
}

.marker-icon.danger {
    border-color: #dc3545;
    color: #dc3545;
}

.marker-icon.danger::before {
    border-color: #dc3545;
}

.marker-icon.warning {
    border-color: #ffc107;
    color: #ffc107;
}

.marker-icon.warning::before {
    border-color: #ffc107;
}

.marker-icon.info {
    border-color: #0d6efd;
    color: #0d6efd;
}

.marker-icon.info::before {
    border-color: #0d6efd;
}

/* Hover effect */
.marker-icon:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

/* Interactive table rows */
.earthquake-row {
    cursor: pointer;
}

.earthquake-row:hover {
    background-color: rgba(0, 0, 0, 0.05) !important;
}

/* Fix table layout */
.earthquake-table th,
.earthquake-table td {
    vertical-align: middle;
}

/* Location form */
#locationForm .form-control:focus {
    border-color: #17a2b8;
    box-shadow: 0 0 0 0.25rem rgba(23, 162, 184, 0.25);
}

/* Highlight active earthquake row */
.earthquake-row.table-active {
    background-color: #e9f5ff !important;
    border-left: 4px solid #0d6efd;
}

/* Distance column styling */
.earthquake-table td:nth-child(3) {
    font-weight: 600;
    color: #0d6efd;
}

/* Location settings card */
.card-header.bg-info {
    background-color: #17a2b8 !important;
}

/* Radius slider styling */
#radius {
    accent-color: #17a2b8;
} 