.marker {
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    overflow: visible;
}

.marker::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120%;
    height: 120%;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(255, 255, 255, 0.2);
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
    z-index: -1;
}

.marker:hover {
    transform: scale(1.2);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.8);
}

.marker:hover::after {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.5);
}

/* Marker categories */
.marker.work {
    background-color: var(--accent-color);
}

.marker.education {
    background-color: var(--secondary-color);
}

.marker.project {
    background-color: var(--primary-color);
}

/* Animation for markers when they're added */
@keyframes markerFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.marker {
    animation: markerFadeIn 0.5s ease forwards;
}

/* Hide the marker trigger but keep it clickable */
.marker-trigger {
    cursor: pointer;
    opacity: 0;
}

/* Custom styling for mapbox popups */
.mapboxgl-popup {
    max-width: 300px;
}

.mapboxgl-popup-content {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border-left: 3px solid var(--primary-color);
}

.mapboxgl-popup-content h3 {
    color: var(--primary-color);
    margin-bottom: 5px;
    font-size: 16px;
}

.mapboxgl-popup-content p {
    color: var(--dark-color);
    font-size: 14px;
    line-height: 1.4;
}

.mapboxgl-popup-close-button {
    font-size: 18px;
    color: var(--primary-color);
    top: 5px;
    right: 5px;
}

/* Location info box styling */
#location-info {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    border-radius: 8px;
    border-left: 4px solid var(--accent-color);
    padding: 15px 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    max-width: 450px;
    transition: all 0.3s ease;
}

#location-info.hidden {
    opacity: 0;
    transform: translateY(-20px);
}

#location-info h3 {
    color: var(--primary-color);
    margin-bottom: 8px;
    font-size: 18px;
}

#location-info p {
    color: var(--dark-color);
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 10px;
}

/* Google Maps image styling */
.location-image-container {
    position: relative;
    margin-top: 15px;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

.location-map-image {
    width: 100%;
    display: block;
    transition: transform 0.3s ease;
}

.location-map-image:hover {
    transform: scale(1.05);
}

.image-overlay {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
}

.location-address {
    font-style: italic;
    color: var(--primary-color) !important;
    font-size: 13px !important;
    margin-top: -5px !important;
}

/* Highlighting for selected content in the overlay */
.highlighted {
    border-left: 3px solid var(--accent-color) !important;
    background-color: rgba(255, 140, 66, 0.1) !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1) !important;
    transform: translateY(-3px) !important;
}

/* Home button styling */
#home-button {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background-color: white;
    border: none;
    border-radius: 4px;
    padding: 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

#home-button:hover {
    background-color: var(--light-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

#home-button svg {
    width: 20px;
    height: 20px;
    fill: var(--primary-color);
}

/* Loading indicator */
#loading {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

#loading .spinner {
    border: 5px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top: 5px solid var(--primary-color);
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

#loading p {
    color: var(--primary-color);
    font-size: 16px;
    font-weight: 500;
}

/* Responsive styles for location info */
@media (max-width: 768px) {
    #location-info {
        max-width: 80%;
        left: 10% !important;
    }
}

@media (max-width: 480px) {
    #location-info {
        max-width: 90%;
        left: 5% !important;
        padding: 10px 15px;
    }
    
    .location-map-image {
        height: 150px;
        object-fit: cover;
    }
}

/* Car animation styling */
@keyframes carGlow {
    0% { box-shadow: 0 0 5px rgba(255, 255, 255, 0.5); }
    50% { box-shadow: 0 0 15px rgba(255, 255, 255, 0.8); }
    100% { box-shadow: 0 0 5px rgba(255, 255, 255, 0.5); }
}

.car-marker {
    animation: carGlow 2s infinite;
}

/* Street highlight effects */
.street-highlight {
    transition: opacity 0.3s ease;
}

/* Tooltip for animated cars */
.car-tooltip {
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 12px;
    pointer-events: none;
    z-index: 10;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
} 