/**
 * Roadster Map Styles - Google Maps Version
 */

/* Map container */
.roadster-map-container {
    position: relative;
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

/* Map canvas */
.roadster-map {
    width: 100%;
    height: 600px;
    background-color: #f5f5f5;
}

/* Loading indicator */
.roadster-map-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(255, 255, 255, 0.8);
    padding: 15px 30px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

/* Error message */
.roadster-map-error {
    padding: 20px;
    background-color: #ffebee;
    color: #c62828;
    border-radius: 8px;
    margin: 10px 0;
    font-weight: bold;
    text-align: center;
}

/* Controls container */
.roadster-map-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
}

/* Filter controls */
.roadster-map-filter {
    flex: 1 1 200px;
    margin-bottom: 5px;
}

.roadster-map-filter select {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: white;
    font-size: 14px;
}

.roadster-map-filter label {
    display: block;
    font-size: 12px;
    font-weight: bold;
    margin-bottom: 5px;
    color: #555;
}

/* Clear filters button */
.roadster-map-clear-filters {
    padding: 8px 15px;
    background-color: #f44336;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    transition: background-color 0.3s;
}

.roadster-map-clear-filters:hover {
    background-color: #d32f2f;
}

/* Search box */
.roadster-map-search {
    flex: 1 1 100%;
}

.roadster-map-search input {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

/* Statistics panel */
.roadster-map-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
    background-color: #e8f5e9;
    padding: 15px;
    border-radius: 8px;
}

.roadster-map-stat {
    flex: 1 1 120px;
    text-align: center;
    padding: 10px;
    background-color: white;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.roadster-map-stat-value {
    font-size: 24px;
    font-weight: bold;
    color: #2e7d32;
    margin: 5px 0;
}

.roadster-map-stat-label {
    font-size: 12px;
    color: #555;
}

/* Popup styles */
.roadster-popup-header {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 10px;
    padding-bottom: 5px;
    border-bottom: 1px solid #ddd;
    color: #2196f3;
}

.roadster-popup-content {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 5px 10px;
    max-width: 300px;
}

.roadster-popup-label {
    font-weight: bold;
    color: #555;
}

.roadster-popup-value {
    color: #333;
}

.roadster-lost-value {
    color: #d32f2f;
    font-weight: bold;
}

/* Data table container */
.roadster-data-table-container {
    margin-top: 30px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.roadster-data-table-container h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #333;
}

/* Make table rows clickable */
.dataTable tbody tr {
    cursor: pointer;
    transition: background-color 0.2s;
}

.dataTable tbody tr:hover {
    background-color: #e8f5e9 !important;
}

/* Lost roadster styling */
.roadster-lost {
    color: #d32f2f;
    font-style: italic;
}

/* Legend styles */
.roadster-map-legend {
    background-color: white;
    padding: 10px;
    border-radius: 4px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
    font-size: 12px;
    max-width: 200px;
    margin: 10px;
}

.roadster-map-legend strong {
    display: block;
    margin-bottom: 8px;
    color: #333;
}

.roadster-map-legend-item {
    display: flex;
    align-items: center;
    margin: 5px 0;
}

.roadster-map-legend-dot {
    display: inline-block;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    margin-right: 8px;
}

.roadster-lost-dot {
    background-image: linear-gradient(45deg, #777 25%, #999 25%, #999 50%, #777 50%, #777 75%, #999 75%, #999 100%);
    background-size: 8px 8px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .roadster-map-controls {
        flex-direction: column;
    }
    
    .roadster-map-filter {
        flex: 1 1 100%;
    }
    
    .roadster-map-stat {
        flex: 1 1 100%;
    }
    
    .roadster-map {
        height: 400px;
    }
}