.course-map-container {
    width: 100%;
    height: 100%;
    min-height: 600px;
    padding: 0;
    position: relative;
}

.map-loader {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    min-height: 600px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #f5f5f5;
    border-radius: 8px;
    z-index: 10;
}

.loader-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #e0e0e0;
    border-top: 4px solid #ffd700;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

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

    100% {
        transform: rotate(360deg);
    }
}

.map-loader p {
    color: #666;
    font-size: 1rem;
    font-weight: 500;
}

.course-map {
    width: 100%;
    height: 100%;
    min-height: 600px;
    border-radius: 8px;
    overflow: hidden;
}

.course-marker {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: #ffd700;
    border: 2px solid #1a1a1a;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: transform 0.2s ease;
}

.course-marker:hover {
    transform: scale(1.3);
}

.course-marker.start-finish {
    width: 28px;
    height: 28px;
    background-color: #1a1a1a;
    border: 2px solid #ffd700;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.7);
    }

    50% {
        box-shadow: 0 0 0 10px rgba(255, 215, 0, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 215, 0, 0);
    }
}

.mapboxgl-popup-content {
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.popup-content h3 {
    margin: 0 0 10px 0;
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    border-bottom: 2px solid #ffd700;
    padding-bottom: 5px;
}

.popup-content p {
    margin: 10px 0;
    font-size: 14px;
    line-height: 1.5;
    color: #666;
}

.popup-users {
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px solid #e0e0e0;
}

.popup-users strong {
    font-size: 14px;
    color: #1a1a1a;
}

.popup-users ul {
    margin: 5px 0 0 0;
    padding-left: 20px;
}

.popup-users li {
    font-size: 13px;
    color: #666;
    margin: 3px 0;
}

.mapboxgl-popup-close-button {
    display: none;
}

@media (max-width: 768px) {
    .course-map-container {
        min-height: 400px;
    }

    .course-map {
        min-height: 400px;
    }
}

.course-photos-section {
    margin-top: 2rem;
    background-color: var(--white);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.course-photos-section .section-title {
    font-size: 1.5rem;
    color: var(--perigord-black);
    font-weight: 700;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid var(--perigord-yellow);
}

.photo-upload-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.photo-upload-form .form-field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.photo-upload-form .form-label {
    font-weight: 600;
    color: var(--perigord-black);
}

.photo-upload-form .form-file-input {
    padding: 0.75rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    background-color: var(--white);
}

.photo-upload-form .form-hint {
    font-size: 0.85rem;
    color: #666;
}

.photo-upload-form .btn-upload {
    padding: 0.75rem 1.5rem;
    background-color: var(--perigord-black);
    color: var(--white);
    border: 2px solid var(--perigord-black);
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    align-self: flex-start;
}

.photo-upload-form .btn-upload:hover {
    background-color: #1a1a1a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
