/* ...existing styles... */

/* Sightings Map Styles */
.sightings-map-section {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.map-container {
    position: relative;
}

.map-title {
    color: #fff;
    margin-bottom: 15px;
    font-size: 1.4rem;
    font-weight: 600;
}

#sightingsMap {
    border-radius: 8px;
    border: 2px solid #333;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.sightings-summary {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    padding: 20px;
    color: #fff;
    height: fit-content;
}

.activity-stats {
    display: flex;
    gap: 15px;
    margin: 15px 0;
}

.activity-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.activity-count {
    font-size: 1.8rem;
    font-weight: bold;
    color: #4CAF50;
}

.activity-label {
    font-size: 0.9rem;
    color: #ccc;
}

.recent-events h5 {
    color: #fff;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.events-list {
    max-height: 200px;
    overflow-y: auto;
}

.event-item {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 10px;
    margin-bottom: 8px;
    border-left: 3px solid #4CAF50;
}

.event-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.event-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: #fff;
    margin: 0;
}

.event-type {
    font-size: 0.8rem;
    background: rgba(76, 175, 80, 0.2);
    color: #4CAF50;
    padding: 2px 8px;
    border-radius: 12px;
}

.event-description {
    font-size: 0.85rem;
    color: #ccc;
    margin: 5px 0;
    line-height: 1.4;
}

.event-date {
    font-size: 0.8rem;
    color: #999;
}

.no-events {
    color: #999;
    font-style: italic;
    text-align: center;
    padding: 20px;
}

/* Business Cards */
.businesses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 15px;
}

.business-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.2s ease;
}

.business-card:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.15);
}

.business-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.business-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    margin: 0;
}

.rating {
    color: #FFD700;
    font-size: 0.9rem;
}

.business-type {
    color: #4CAF50;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 5px;
}

.address {
    font-size: 0.85rem;
    color: #ccc;
    margin-bottom: 8px;
}

.business-link {
    color: #2196F3;
    text-decoration: none;
    font-size: 0.9rem;
}

.business-link:hover {
    text-decoration: underline;
}

.no-businesses {
    color: #999;
    font-style: italic;
    text-align: center;
    padding: 40px;
    grid-column: 1 / -1;
}

/* Sidebar Styles */
.sidebar-content {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    padding: 20px;
    color: #fff;
    height: fit-content;
}

.sidebar-content h4 {
    color: #fff;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.location-info {
    margin-bottom: 25px;
}

.info-item {
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.info-item strong {
    color: #4CAF50;
}

.quick-links {
    margin-top: 20px;
}

.links-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.quick-link {
    color: #2196F3;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 4px;
    background: rgba(33, 150, 243, 0.1);
    transition: background 0.2s ease;
    font-size: 0.9rem;
}

.quick-link:hover {
    background: rgba(33, 150, 243, 0.2);
    text-decoration: none;
}

/* Map Popup Styles */
.leaflet-popup-content {
    margin: 8px 12px;
    min-width: 200px;
}

.sighting-popup h6,
.business-popup h6,
.location-popup h6 {
    margin: 0 0 8px 0;
    color: #333;
    font-size: 1rem;
}

.sighting-popup p,
.business-popup p,
.location-popup p {
    margin: 4px 0;
    font-size: 0.9rem;
    color: #666;
}

.sighting-popup em {
    color: #999;
    font-style: italic;
}

/* Responsive Design */
@media (max-width: 768px) {
    .sightings-map-section .row {
        flex-direction: column;
    }
    
    .sightings-summary {
        margin-top: 20px;
    }
    
    .activity-stats {
        justify-content: center;
    }
    
    .businesses-grid {
        grid-template-columns: 1fr;
    }
    
    #sightingsMap {
        height: 250px !important;
    }
}

/* Category-specific map styling */
.category-ufo .sightings-map-section {
    border-color: rgba(76, 175, 80, 0.3);
}

.category-paranormal .sightings-map-section {
    border-color: rgba(156, 39, 176, 0.3);
}

.category-historical .sightings-map-section {
    border-color: rgba(255, 193, 7, 0.3);
}

.category-cryptid .sightings-map-section {
    border-color: rgba(139, 69, 19, 0.3);
}

.category-conspiracy .sightings-map-section {
    border-color: rgba(244, 67, 54, 0.3);
}

/* Map marker animations and styles */
@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.7;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.business-marker-highlight {
    animation: pulse 1s infinite;
}

/* Service item hover and click styles */
.service-item.clickable {
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.2s ease;
}

.service-item.clickable:hover {
    background-color: rgba(0, 123, 255, 0.1) !important;
    border-color: rgba(0, 123, 255, 0.3);
    transform: translateX(5px);
}

.service-item.clickable:active {
    transform: translateX(3px);
    background-color: rgba(0, 123, 255, 0.2) !important;
}