/* Styles specific to the index (homepage) */

/* Map container */
#map {
    width: 100%;
    height: 500px;
    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);
}

/* Feature cards */
.feature-card {
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

/* Make earthquake list items more compact */
.earthquake-list .list-group-item {
    padding: 0.75rem 1rem;
}

/* Format earthquake location text */
.earthquake-location {
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}

/* Customize Leaflet popup */
.leaflet-popup-content {
    margin: 10px;
}

.leaflet-popup-content h6 {
    margin-top: 10px;
    margin-bottom: 5px;
    font-weight: bold;
} 