/* ============================================
   TRAVILY - Mobile First CSS
   ============================================ */

/* ===========================================
   BASE STYLES (Mobile First)
   =========================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f8f9fa;
    color: #333;
    line-height: 1.6;
    position: relative;
}

/* ===========================================
   ALERT SYSTEM
   =========================================== */

.alert-container {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1100;
    width: 95%;
    max-width: 500px;
}

.alert {
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    display: none;
    animation: slideDown 0.3s ease-out;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    font-weight: 500;
}

.alert.show {
    display: block;
}

.alert-success {
    background: #d1edff;
    color: #0066cc;
    border: 1px solid #b3d9ff;
}

.alert-error {
    background: #ffe6e6;
    color: #cc0000;
    border: 1px solid #ffb3b3;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Flash Messages (for page redirects) */
.flash-message {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1100;
    width: 95%;
    max-width: 500px;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    font-weight: 500;
    animation: slideDown 0.3s ease-out, fadeOut 0.5s ease-out 4.5s forwards;
}

.flash-success {
    background: #d1edff;
    color: #0066cc;
    border: 1px solid #b3d9ff;
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
        visibility: hidden;
    }
}

/* ===========================================
   FORM STYLES
   =========================================== */

.form-group {
    margin-bottom: 1.5rem;
}

.form-group-compact {
    margin-bottom: 0.75rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
    font-size: 0.95rem;
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #fff;
}

.form-control:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-control.error {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.form-control.error:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.2);
}

.form-control::placeholder {
    color: #6c757d;
}

.field-error {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: block;
    font-weight: 500;
}

.form-errors {
    background: #ffe6e6;
    color: #cc0000;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border: 1px solid #ffb3b3;
    display: none;
}

.form-errors.show {
    display: block;
}

.form-errors ul {
    margin: 0;
    padding-left: 1.2rem;
}

.form-errors li {
    margin-bottom: 0.5rem;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e9ecef;
}

/* ===========================================
   BUTTON STYLES
   =========================================== */

.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    border: none;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #545b62;
    transform: translateY(-1px);
}

.btn-add {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 400;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    white-space: nowrap;
}

.btn-add:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
}

/* ===========================================
   IMAGE UPLOAD SECTION
   =========================================== */

.images-section {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid #e9ecef;
}

.images-title {
    color: #495057;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
}

.images-help {
    color: #6c757d;
    font-size: 0.85rem;
    margin-bottom: 1rem;
    font-style: italic;
}

.dropzone-container {
    border: 2px dashed #667eea;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #f8f9ff;
    position: relative;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.dropzone-container:hover {
    border-color: #4c63d2;
    background: #f0f3ff;
    transform: translateY(-2px);
}

.dropzone-container.dragover {
    border-color: #4c63d2;
    background: #e8f2ff;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
}

.dropzone-text {
    color: #667eea;
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.dropzone-subtext {
    color: #8b9dc3;
    font-size: 0.9rem;
}

.dropzone-input {
    display: none;
}

.images-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
    justify-content: center;
}

.image-preview {
    position: relative;
    width: 100px;
    height: 100px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid #e9ecef;
    background: #f8f9fa;
}

.image-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-preview .remove-btn {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #dc3545;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    line-height: 1;
}

.image-preview .remove-btn:hover {
    background: #c82333;
}

.dropzone-error {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    display: none;
}

.dropzone-error.show {
    display: block;
}

/* ===========================================
   HEADER SECTION (Mobile First)
   =========================================== */

.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.5rem 0;
    text-align: left;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    min-height: 80px;
    display: flex;
    align-items: center;
    width: 100%;
    position: relative;
    overflow: visible;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 0.5rem;
    width: 100%;
    box-sizing: border-box;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 0.5rem;
    width: 100%;
    box-sizing: border-box;
    position: relative;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 2;
    flex: 1;
}

.header-title-link {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.2s ease;
}

.header-title-link:hover {
    opacity: 0.9;
}

.header-title {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
}

.header h1 {
    font-size: 1.8rem;
    font-weight: 500;
    margin: 0;
    letter-spacing: 1px;
    color: #ffffff;
    line-height: 1;
}

.header-text {
    font-size: 1rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1;
    padding-bottom: 0.1rem;
}

/* ===========================================
   BURGER MENU BUTTON (Mobile < 768px)
   =========================================== */

.burger-menu-btn {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 4px;
    margin-left: 1.5rem;
    z-index: 10000;
}

.burger-line {
    width: 100%;
    height: 3px;
    background: white;
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Animation quand le menu est ouvert - on cache le burger */
.burger-menu-btn.active .burger-line {
    opacity: 0;
}

/* ===========================================
   NAVIGATION MENU (Mobile First - < 768px)
   =========================================== */

/* Le menu est caché par défaut en mobile */
.header-nav {
    display: flex;
    flex-direction: column;
    padding: 0;
    gap: 0;
}

.menu-close-btn {
    display: none;
}

.menu-link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 400;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.menu-link:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
    border-left-color: white;
}

/* Overlay mobile (caché par défaut) */
.menu-overlay {
    display: none;
}

/* En mobile (< 768px), transformer en sidebar */
@media (max-width: 767px) {
    .header-nav {
        position: fixed;
        top: 0;
        right: -300px;
        width: 300px;
        height: 100vh;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        padding: 5rem 0 1rem 0;
        box-shadow: -4px 0 10px rgba(0,0,0,0.3);
        z-index: 9998;
        transition: right 0.3s ease;
        overflow-y: auto;
    }

    .header-nav.active {
        right: 0;
    }

    .menu-close-btn {
        display: flex;
        position: absolute;
        top: 1rem;
        right: 1rem;
        background: rgba(255, 255, 255, 0.2);
        border: none;
        color: white;
        font-size: 2rem;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        cursor: pointer;
        align-items: center;
        justify-content: center;
        transition: all 0.2s ease;
        line-height: 1;
    }

    .menu-close-btn:hover {
        background: rgba(255, 255, 255, 0.3);
        transform: rotate(90deg);
    }

    .menu-overlay {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 9997;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }

    .menu-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    .menu-link {
        font-size: 1.1rem;
        padding: 1rem 1.5rem;
    }
}

/* ===========================================
   MAIN LAYOUT
   =========================================== */

.main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 0.5rem;
    height: calc(100dvh - 80px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.map-container {
    margin: 0.5rem 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    background: white;
    flex: 1;
    min-height: 380px;
}

#map {
    height: 100%;
    width: 100%;
}

/* ===========================================
   DESCRIPTION SECTION
   =========================================== */

.description-section {
    background: #dfe5f0;
    margin: 0 0 0.5rem 0;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    padding: 0;
    transition: all 0.3s ease;
    position: relative;
    flex: none;
    display: flex;
    align-items: flex-start;
    overflow: hidden;
}

.description-section.hidden {
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
}

.description-section.visible {
    opacity: 1;
    transform: translateY(0);
}

.description-content {
    display: flex;
    flex-direction: row;
    width: 100%;
    gap: 0;
    align-items: flex-start;
    padding: 0;
    margin-bottom: 10px;
}

.description-image-container {
    display: none; /* Caché par défaut en mobile */
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.description-image {
    max-width: 140px;
    max-height: 140px;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background: #f8f9fa;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.description-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-align: left;
    padding: 0; /* Padding enlevé */
}

.description-text-link {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    display: none; /* Caché par défaut en mobile */
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
    padding: 0; /* Padding enlevé */
}

.description-text-link:hover {
    text-decoration: none;
}

.description-text-link:visited {
    color: inherit;
}

/* En mobile, afficher le description-text-link uniquement avec la classe visible */
.description-section.visible .description-text-link {
    display: flex;
}

.description-image img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center;
    transition: all 0.3s ease;
}

/* Styles adaptatifs selon l'orientation de l'image */
.description-image img.image-horizontal {
    width: 100%;
    height: auto;
}

.description-image img.image-vertical {
    width: auto;
    height: 100%;
    max-height: 140px;
}

.description-image img.image-square {
    width: 100%;
    height: auto;
    max-width: 140px;
}

.image-nav {
    background: none;
    color: #667eea;
    border: none;
    width: 20px;
    height: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.2s ease;
    z-index: 10;
    flex-shrink: 0;
    font-weight: 300;
}

.image-nav:hover {
    color: #4c63d2;
    transform: scale(1.2);
}

.image-nav.prev {
    order: 1;
}

.description-image {
    order: 2;
}

.image-nav.next {
    order: 3;
}

.image-nav.hidden {
    display: none;
}

.image-indicators {
    display: none;
    justify-content: center;
    gap: 6px;
    margin-top: 4px;
    margin-bottom: 0px;
}

.image-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #dee2e6;
    transition: background-color 0.2s ease;
    cursor: pointer;
}

.image-indicator.active {
    background-color: #667eea;
}

.legende {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 0 1rem 1rem 1rem;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 8px;
    margin: 0.5rem 0;
}

.legende-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.legende-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
}

.legende-text {
    font-size: 0.85rem;
    color: #333;
    font-weight: 500;
    line-height: 1.3;
}

.description-title {
    font-size: 0.8rem; /* Plus petit en mobile */
    font-weight: 600;
    color: #333;
    margin: 0;
    line-height: 1.3;
}

/* Troncature du titre à 60 caractères */
.description-title span {
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rating-inline {
    display: none;
    justify-content: flex-start;
    gap: 4px;
    margin-top: 0;
    padding-left: 0;
}

.spot-rating-inline .star {
    color: #cbd5e0;
    font-size: 1.2rem;
    transition: color 0.2s ease;
}

.spot-rating-inline .star.filled {
    color: #f59e0b;
}

.spot-features-inline {
    display: none;
    gap: 10px;
}

.spot-advantages-inline,
.spot-disadvantages-inline {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    padding: 2px 10px;
    border-radius: 6px;
}

.spot-advantages-inline {
    background-color: rgba(34, 139, 34, 0.15);
}

.spot-disadvantages-inline {
    background-color: rgba(220, 38, 38, 0.15);
}

.spot-features-inline .feature-icon {
    font-size: 0.95rem;
    transition: transform 0.2s ease;
    cursor: help;
    position: relative;
}

.spot-features-inline .feature-icon:hover {
    transform: scale(1.3);
}

.spot-features-inline .feature-icon::after {
    content: attr(data-label);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-5px);
    background-color: #2d3748;
    color: white;
    padding: 3px 5px;
    border-radius: 3px;
    font-size: 0.5rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 1000;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.spot-features-inline .feature-icon:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(-8px);
}

.close-button {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.1);
    border: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #666;
    transition: all 0.2s ease;
    z-index: 10;
    pointer-events: auto;
}

.close-button:hover {
    background: rgba(0, 0, 0, 0.2);
    color: #333;
}

.description-section.initial {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px dashed #dee2e6;
    box-shadow: none;
}

.description-section.initial .description-content {
    justify-content: center;
    text-align: center;
    color: #6c757d;
    font-style: italic;
}

.description-section.initial .close-button {
    display: none;
}

/* ===========================================
   RÈGLES QUAND UN SPOT EST SÉLECTIONNÉ
   =========================================== */

/* Quand un spot est sélectionné (classe visible ajoutée sur description-section) */
.description-section.visible .description-image-container {
    display: flex !important; /* Toujours visible quand un spot est cliqué */
}

.description-section.visible .legende {
    display: none !important; /* Toujours caché quand un spot est cliqué */
}

/* ===========================================
   SPOT DETAILS SECTIONS
   =========================================== */

.spot-details-container {
    display: none; /* Caché en mobile */
    flex-direction: column;
}

.spot-details-container.visible {
    display: none; /* Reste caché en mobile même quand un spot est cliqué */
}

.spot-info-section,
.spot-comments-section {
    flex: 1;
}

.section-title {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    margin: 0 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #667eea;
}

.spot-description {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.5;
    text-align: left;
    margin: 0;
    padding: 0 0 0 10px;
    display: none;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.leaflet-control-attribution.leaflet-control {
    display: none !important;
}

/* ===========================================
   VIEW CONTROL BUTTONS
   =========================================== */

.view-control {
    display: flex;
    flex-direction: row;
    gap: 8px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 6px;
    padding: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.view-btn {
    background: transparent;
    border: 2px solid transparent;
    padding: 8px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    position: relative;
}

.view-btn:hover {
    background: rgba(0, 0, 0, 0.05);
    transform: scale(1.05);
}

.view-btn.active {
    border-color: #667eea;
    color: #667eea;
    box-shadow: 0 2px 6px rgba(102, 126, 234, 0.3);
}

.view-btn svg {
    width: 24px;
    height: 24px;
}

/* Style spécifique pour le bouton admin */
.view-btn.admin-btn {
    border-color: rgba(220, 53, 69, 0.3);
}

.view-btn.admin-btn:hover {
    background: rgba(220, 53, 69, 0.1);
    border-color: rgba(220, 53, 69, 0.5);
}

.view-btn.admin-btn.active {
    border-color: #dc3545;
    color: #dc3545;
    background: rgba(220, 53, 69, 0.1);
    box-shadow: 0 2px 6px rgba(220, 53, 69, 0.3);
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .view-control {
        gap: 6px;
        padding: 6px;
    }

    .view-btn {
        width: 36px;
        height: 36px;
        padding: 6px;
    }

    .view-btn svg {
        width: 20px;
        height: 20px;
    }
}

/* ===========================================
   VIEW TOGGLE CONTROL (Style Google Maps)
   =========================================== */

.view-toggle-control {
    margin-bottom: 20px !important;
    margin-left: 20px !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.leaflet-bottom.leaflet-left .view-toggle-control {
    margin-bottom: 20px !important;
    margin-left: 20px !important;
}

.view-toggle-label {
    color: #000000;
    font-weight: bold;
    font-size: 12px;
    text-shadow: 0 1px 3px rgba(255, 255, 255, 0.8);
    pointer-events: none;
    transition: color 0.2s ease, text-shadow 0.2s ease;
}

.view-toggle-label.white {
    color: #ffffff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.view-toggle-btn {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid #000;
    padding: 0;
    width: 50px;
    height: 50px;
    border-radius: 9px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.view-toggle-btn:hover {
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.view-toggle-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media (max-width: 768px) {
    .view-toggle-control {
        margin-bottom: 20px !important;
        margin-left: 20px !important;
    }

    .leaflet-bottom.leaflet-left .view-toggle-control {
        margin-bottom: 20px !important;
        margin-left: 20px !important;
    }

    .view-toggle-btn {
        width: 50px;
        height: 50px;
    }
}

/* ===========================================
   PLAYGROUND CONTROL
   =========================================== */

.playground-control {
    margin-bottom: 10px !important;
    margin-left: 20px !important;
}

.leaflet-bottom.leaflet-left .playground-control {
    margin-bottom: 10px !important;
    margin-left: 20px !important;
}

.search-playgrounds-btn {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid #ccc;
    padding: 10px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    font-size: 14px;
    font-weight: 500;
    color: #333;
    gap: 4px;
}

.search-playgrounds-btn.collapsed {
    padding: 10px;
    min-width: 44px;
    min-height: 44px;
}

.search-playgrounds-btn.expanded {
    padding: 8px 12px;
    gap: 8px;
}

.search-playgrounds-btn.hide-btn {
    background: rgba(239, 68, 68, 0.95);
    color: white;
    border-color: #dc2626;
}

.search-playgrounds-btn.hide-btn:hover {
    background: rgba(220, 38, 38, 1);
}

.search-playgrounds-btn:hover {
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
    transform: translateY(-1px);
}

.search-playgrounds-btn:active {
    transform: translateY(0);
}

.search-playgrounds-btn svg {
    flex-shrink: 0;
}

.radius-input {
    width: 60px;
    padding: 6px 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    text-align: center;
    outline: none;
    transition: border-color 0.2s ease;
}

.radius-input:focus {
    border-color: #10b981;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.1);
}

.radius-input.admin-input {
    border-color: #f59e0b;
    background-color: #fffbeb;
}

.radius-input.admin-input:focus {
    border-color: #f59e0b;
    box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.1);
}

.km-label {
    font-size: 14px;
    color: #666;
    font-weight: 400;
}

.search-btn {
    background: #10b981;
    color: white;
    border: none;
    padding: 6px 14px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease;
}

.search-btn:hover {
    background: #059669;
}

.search-btn:active {
    background: #047857;
}

.playground-popup {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.playground-popup strong {
    color: #059669;
    font-size: 14px;
}

.playground-popup small {
    color: #666;
    font-size: 11px;
}

.playground-maps-link {
    display: inline-block;
    margin-top: 6px;
    color: #3b82f6;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: color 0.2s ease;
}

.playground-maps-link:hover {
    color: #2563eb;
    text-decoration: underline;
}

@media (max-width: 768px) {
    .playground-control {
        margin-bottom: 10px !important;
        margin-left: 10px !important;
    }

    .search-playgrounds-btn {
        padding: 8px 12px;
        font-size: 13px;
    }

    .search-playgrounds-btn span {
        max-width: 180px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}

/* ===========================================
   GOOGLE-STYLE LOCATION MARKER
   =========================================== */

.google-location-marker {
    background: transparent;
    border: none;
}

.google-marker-outer {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #4285F4;
    border: 3px solid white;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.google-marker-inner {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: white;
}

/* ===========================================
   LOCATE CONTROL
   =========================================== */

.locate-control {
    margin-bottom: 10px;
    margin-right: 10px;
}

.locate-btn {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    padding: 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.locate-btn:hover {
    background: rgba(255, 255, 255, 1);
    color: #333;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.2);
}

.locate-btn.active {
    background: #667eea;
    color: white;
    box-shadow: 0 2px 6px rgba(102, 126, 234, 0.3);
}

.locate-btn svg {
    width: 22px;
    height: 22px;
}

@media (max-width: 768px) {
    .locate-control {
        margin-bottom: 8px;
        margin-right: 8px;
    }

    .locate-btn {
        width: 36px;
        height: 36px;
        padding: 8px;
    }

    .locate-btn svg {
        width: 20px;
        height: 20px;
    }
}

/* ===========================================
   SPOT FILTER CONTROL (LEFT SIDE)
   =========================================== */

.spot-filter-control {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 6px;
    padding: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.filter-btn {
    background: transparent;
    border: 2px solid transparent;
    padding: 8px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    position: relative;
}

.filter-btn:hover {
    background: rgba(0, 0, 0, 0.05);
    transform: scale(1.05);
}

.filter-btn.active {
    border-color: currentColor;
    box-shadow: 0 2px 6px currentColor;
}

.filter-btn.inactive {
    opacity: 0.4;
    background: rgba(0, 0, 0, 0.05);
}

.filter-btn svg {
    width: 24px;
    height: 24px;
}

/* Blue filter (1-4 stars) */
.filter-btn.blue {
    color: #667eea;
}

/* Gold filter (>4-5 stars) */
.filter-btn.gold {
    color: #f59e0b;
}

/* Green filter (home spots) */
.filter-btn.green {
    color: #10b981;
}

@media (max-width: 768px) {
    .spot-filter-control {
        gap: 6px;
        padding: 6px;
    }

    .filter-btn {
        width: 36px;
        height: 36px;
        padding: 6px;
    }

    .filter-btn svg {
        width: 20px;
        height: 20px;
    }
}

/* ===========================================
   BIKE ROUTES PANEL
   =========================================== */

.bike-routes-panel {
    display: none;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.2);
    margin-top: 8px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    max-height: 400px;
    overflow: hidden;
}

.bike-routes-panel.open {
    display: block;
    animation: slideDown 0.2s ease-out;
}

.bike-routes-content {
    padding: 8px;
    max-height: 400px;
    overflow-y: auto;
}

.bike-routes-category {
    margin-bottom: 8px;
}

.category-header {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px;
    background: rgba(0, 0, 0, 0.02);
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.category-header:hover {
    background: rgba(0, 0, 0, 0.05);
}

.category-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 2px 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    transition: transform 0.2s ease;
}

.category-toggle .toggle-icon {
    font-size: 10px;
    display: inline-block;
    transition: transform 0.2s ease;
}

.category-toggle.expanded .toggle-icon {
    transform: rotate(90deg);
}

.category-header label {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-weight: 500;
    font-size: 13px;
    color: #333;
    flex: 1;
}

.category-header input[type="checkbox"] {
    cursor: pointer;
    width: 14px;
    height: 14px;
}

.category-items {
    padding-left: 24px;
    margin-top: 4px;
    max-height: 200px;
    overflow-y: auto;
    overflow-x: hidden;
    transition: max-height 0.3s ease;
}

.category-items.collapsed {
    max-height: 0;
    overflow: hidden;
}

.route-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    cursor: pointer;
    font-size: 12px;
    color: #555;
    border-radius: 3px;
    transition: background 0.2s ease;
}

.route-item:hover {
    background: rgba(102, 126, 234, 0.08);
}

.route-item input[type="checkbox"] {
    cursor: pointer;
    width: 13px;
    height: 13px;
}

.route-item span {
    user-select: none;
}

/* Scrollbar styling */
.bike-routes-content::-webkit-scrollbar {
    width: 6px;
}

.bike-routes-content::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 3px;
}

.bike-routes-content::-webkit-scrollbar-thumb {
    background: rgba(102, 126, 234, 0.3);
    border-radius: 3px;
}

.bike-routes-content::-webkit-scrollbar-thumb:hover {
    background: rgba(102, 126, 234, 0.5);
}

/* Scrollbar styling for category items */
.category-items::-webkit-scrollbar {
    width: 5px;
}

.category-items::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.03);
    border-radius: 3px;
}

.category-items::-webkit-scrollbar-thumb {
    background: rgba(102, 126, 234, 0.25);
    border-radius: 3px;
}

.category-items::-webkit-scrollbar-thumb:hover {
    background: rgba(102, 126, 234, 0.4);
}

@media (max-width: 768px) {
    .bike-routes-panel {
        max-height: 300px;
    }

    .bike-routes-content {
        max-height: 300px;
    }
}


.info-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.info-item:last-child {
    border-bottom: none;
}

.info-label {
    font-weight: 500;
    color: #555;
    font-size: 0.9rem;
    flex-shrink: 0;
    margin-right: 1rem;
}

.info-value {
    color: #666;
    font-size: 0.9rem;
    text-align: right;
    flex: 1;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.section-divider {
    display: none;
}

.comments-list {
    max-height: 200px;
    overflow-y: auto;
    margin-bottom: 1rem;
}

.no-comments {
    color: #999;
    font-style: italic;
    text-align: center;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 6px;
}

.add-comment {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.comment-input {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 0.9rem;
    font-family: inherit;
    resize: vertical;
    min-height: 80px;
    transition: border-color 0.2s ease;
}

.comment-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.btn-comment {
    align-self: flex-end;
    padding: 0.5rem 1rem;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease;
}

.btn-comment:hover {
    background: #5a6fd8;
}

.comment-item {
    padding: 0.75rem;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 0.5rem;
}

.comment-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.comment-author {
    font-weight: 600;
    color: #333;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.comment-date {
    font-size: 0.8rem;
    color: #999;
    margin-bottom: 0.5rem;
}

.comment-text {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Styles pour les commentaires dans le panneau spot */
.spot-comments {
    margin-top: 15px;
    padding: 0 10px;
}

.spot-comments .comments-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.spot-comments .comment-item {
    background: #f8f9fa;
    padding: 10px;
    border-radius: 8px;
    border-bottom: none;
    margin-bottom: 0;
}

.spot-comments .comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    flex-wrap: wrap;
    gap: 8px;
}

.spot-comments .comment-username {
    font-weight: 600;
    color: #2d3748;
    font-size: 0.85rem;
}

.spot-comments .comment-meta {
    display: flex;
    align-items: center;
    gap: 8px;
}

.spot-comments .comment-rating {
    display: flex;
    gap: 2px;
}

.spot-comments .comment-rating .star {
    color: #cbd5e0;
    font-size: 0.85rem;
}

.spot-comments .comment-rating .star.filled {
    color: #f59e0b;
}

.spot-comments .comment-content {
    color: #4a5568;
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 6px;
    white-space: pre-wrap;
    word-wrap: break-word;
    text-align: left;
}

.spot-comments .comment-date {
    font-size: 0.75rem;
    color: #718096;
    font-style: italic;
    margin-bottom: 0;
}

.spot-comments .comment-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-delete-comment {
    background: transparent;
    border: none;
    color: #dc2626;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-delete-comment:hover {
    background: #fee2e2;
    color: #991b1b;
}

.btn-delete-comment:active {
    transform: scale(0.95);
}

.btn-delete-comment svg {
    width: 16px;
    height: 16px;
}

.btn-edit-comment {
    background: transparent;
    border: none;
    color: #2563eb;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.btn-edit-comment:hover {
    background: #dbeafe;
    color: #1e40af;
}

.btn-edit-comment:active {
    transform: scale(0.95);
}

.btn-edit-comment svg {
    width: 16px;
    height: 16px;
}

/* ===========================================
   SPOT POPUP
   =========================================== */

.spot-popup {
    text-align: center;
    max-width: 250px;
}

.spot-popup h3 {
    color: #667eea;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.spot-popup img {
    width: 100%;
    max-width: 200px;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    margin: 0.5rem 0;
}

.spot-popup p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.spot-popup .coordinates {
    font-size: 0.8rem;
    color: #999;
    font-family: monospace;
}

/* ===========================================
   CAROUSEL STYLES
   =========================================== */

.spot-image-carousel {
    position: relative;
    max-width: 200px;
    margin: 0.5rem auto;
}

.spot-image-carousel img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}

.carousel-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: bold;
    transition: background 0.2s ease;
    z-index: 10;
}

.carousel-controls:hover {
    background: rgba(0, 0, 0, 0.9);
}

.carousel-prev {
    left: 8px;
}

.carousel-next {
    right: 8px;
}

.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-top: 8px;
    flex-wrap: wrap;
    max-width: 200px;
    margin-left: auto;
    margin-right: auto;
}

.carousel-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: background 0.2s ease;
    flex-shrink: 0;
}

.carousel-indicator.active {
    background: #667eea;
}

.carousel-indicators.many-images .carousel-indicator {
    width: 6px;
    height: 6px;
}

.carousel-counter {
    text-align: center;
    font-size: 0.8rem;
    color: #666;
    margin-top: 5px;
    font-weight: 500;
}

/* ===========================================
   BREAKPOINT 420px - Description image visible
   =========================================== */

@media (min-width: 420px) {
    /* Rendre visible description-image-container à partir de 420px (sauf si spot sélectionné) */
    .description-image-container {
        display: flex;
    }
}

/* ===========================================
   DESKTOP NAVIGATION (>= 768px)
   =========================================== */

@media (min-width: 768px) {
    /* Cacher le bouton burger en desktop */
    .burger-menu-btn {
        display: none;
    }

    /* Afficher la navigation en ligne en desktop */
    .header-nav {
        flex-direction: row;
        gap: 1rem;
    }

    /* Styles des liens pour desktop */
    .menu-link {
        padding: 0.5rem 0;
        border-left: none;
        font-size: 0.9rem;
        position: relative;
    }

    .menu-link::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 0;
        height: 2px;
        background: white;
        transition: width 0.3s ease;
    }

    .menu-link:hover {
        background: transparent;
        border-left-color: transparent;
    }

    .menu-link:hover::after {
        width: 100%;
    }
}

/* ===========================================
   TABLET STYLES (min-width: 768px and max-width: 1099px)
   =========================================== */

@media (min-width: 768px) {
    /* Rendre visible le description-text-link à partir de 768px */
    .description-text-link {
        display: flex;
    }

    /* Augmenter la taille du titre à partir de 768px */
    .description-title {
        font-size: 1rem;
    }

    /* Désactiver la troncature du titre à partir de 768px */
    .description-title span {
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
        max-width: none;
    }

    .section-title {
        width: 50%;
        margin: 0 auto 1rem auto;
        text-align: center;
    }

    .spot-rating-inline {
        justify-content: center;
    }

    .spot-features-inline {
        justify-content: center;
    }

    .spot-features-inline .feature-icon {
        font-size: 1.1rem;
    }

    .spot-features-inline .feature-icon::after {
        font-size: 0.65rem;
        padding: 4px 7px;
    }
}

@media (min-width: 768px) and (max-width: 1099px) {
    .image-indicators {
        display: flex;
        order: 3;
        margin-top: -0.8rem;
    }

    .alert-container {
        width: 90%;
    }


    .header-container {
        padding: 0 1rem;
    }

    .header-content {
        padding: 0 0.5rem;
    }

    .header-left {
        gap: 1.5rem;
    }

    .header-right {
        gap: 0.8rem;
    }

    .header-title {
        flex-direction: row;
        align-items: flex-end;
        gap: 0.3rem;
    }

    .header h1 {
        font-size: 1.8rem;
    }

    .header-text {
        font-size: 1rem;
    }

    .menu-link {
        font-size: 0.9rem;
    }

    .main-container {
        padding: 0 1rem;
    }

    .main-content {
        flex-direction: row;
        gap: 1rem;
    }

    .description-section {
        width: 33.33%;
        margin: 1rem 0;
        padding: 0;
        order: 1;
        overflow-y: auto;
        position: relative;
        min-height: unset;
        max-height: unset;
    }

    .description-content {
        padding: 0.8rem;
        flex-direction: column;
        align-items: center;
        text-align: center;
        box-sizing: border-box;
    }

    .description-text,
    .description-text-link {
        padding: 0; /* Padding enlevé */
        width: 100%;
        text-align: center;
        order: 1;
    }

    .description-text-link:hover {
        transform: none;
    }

    .description-title {
        padding-top: 0.5rem;
    }
    
    .description-image-container {
        width: 100%;
        justify-content: center;
        gap: 0.8rem;
        order: 2;
        margin: 0.3rem 0;
    }
    
    .description-image {
        width: 70%;
        max-width: 300px;
        max-height: 300px;
        height: auto;
    }

    /* Styles adaptatifs responsive pour l'orientation */
    .description-image img.image-horizontal {
        width: 100%;
        height: auto;
    }

    .description-image img.image-vertical {
        width: auto;
        height: auto;
        max-height: 300px;
    }

    .description-image img.image-square {
        width: 100%;
        height: auto;
    }
    
    .image-nav {
        width: 30px;
        height: 30px;
        font-size: 24px;
    }
    
    .map-container {
        width: 66.67%;
        margin: 1rem 0;
        order: 2;
    }
    
    .spot-details-container {
        display: none;
        width: 100%;
        gap: 1.5rem;
        margin-top: 0.8rem;
        order: 3;
    }

    .spot-details-container.visible {
        display: flex;
    }
    
    .section-divider {
        display: block;
        width: 2px;
        background: linear-gradient(to bottom, transparent, #667eea, transparent);
        flex-shrink: 0;
        margin: 0 0.3rem;
        min-height: 150px;
    }
    
    .spot-info-section,
    .spot-comments-section {
        flex: 1;
        min-width: 0;
        max-width: calc(50% - 1rem);
        overflow: hidden;
    }
    
    .carousel-controls {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
    
    .carousel-prev {
        left: 5px;
    }
    
    .carousel-next {
        right: 5px;
    }
}

/* ===========================================
   DESKTOP STYLES (min-width: 1100px)  
   =========================================== */

@media (min-width: 1100px) {
    .image-indicators {
        display: flex;
        order: 3;
        margin-top: -0.8rem;
    }

    .alert-container {
        width: 90%;
    }


    .header-container {
        padding: 0 1rem;
    }

    .header-content {
        padding: 0 0.5rem;
    }

    .header-left {
        gap: 2rem;
    }

    .header-right {
        gap: 1rem;
    }

    .header-title {
        flex-direction: row;
        align-items: flex-end;
        gap: 0.5rem;
    }

    .header h1 {
        font-size: 2.5rem;
    }

    .header-text {
        font-size: 1.3rem;
    }

    .menu-link {
        font-size: 1.1rem;
    }

    .main-container {
        padding: 0 1rem;
    }

    .main-content {
        flex-direction: row;
        gap: 1rem;
    }

    .description-section {
        width: 33.33%;
        margin: 1rem 0;
        padding: 0;
        order: 1;
        overflow-y: auto;
        position: relative;
        min-height: unset;
        max-height: unset;
    }

    .description-content {
        padding: 0.8rem;
        flex-direction: column;
        align-items: center;
        text-align: center;
        box-sizing: border-box;
    }

    .description-text,
    .description-text-link {
        padding: 0; /* Padding enlevé */
        width: 100%;
        text-align: center;
        order: 1;
    }

    .description-title {
        padding-top: 0.5rem;
    }
    
    .description-image-container {
        width: 100%;
        justify-content: center;
        gap: 0.8rem;
        order: 2;
        margin: 0.3rem 0;
    }
    
    .description-image {
        width: 70%;
        max-width: 300px;
        max-height: 300px;
        height: auto;
    }

    /* Styles adaptatifs responsive pour l'orientation */
    .description-image img.image-horizontal {
        width: 100%;
        height: auto;
    }

    .description-image img.image-vertical {
        width: auto;
        height: auto;
        max-height: 300px;
    }

    .description-image img.image-square {
        width: 100%;
        height: auto;
    }
    
    .image-nav {
        width: 30px;
        height: 30px;
        font-size: 24px;
    }
    
    .map-container {
        width: 66.67%;
        margin: 1rem 0;
        order: 2;
        box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    }
    
    .spot-details-container {
        display: none;
        width: 100%;
        gap: 2rem;
        margin-top: 1rem;
        order: 3;
    }

    .spot-details-container.visible {
        display: flex;
    }
    
    .section-divider {
        display: block;
        width: 2px;
        background: linear-gradient(to bottom, transparent, #667eea, transparent);
        flex-shrink: 0;
        margin: 0 0.5rem;
        min-height: 200px;
    }
    
    .spot-info-section,
    .spot-comments-section {
        width: 48%;
        min-width: 0;
        flex-shrink: 0;
        overflow: hidden;
    }
    
    .info-item {
        overflow: hidden;
    }
    
    .info-label {
        max-width: 40%;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .info-value {
        max-width: 60%;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }
    
    .carousel-controls {
        width: 30px;
        height: 30px;
        font-size: 14px;
    }
    
    .carousel-prev {
        left: 5px;
    }
    
    .carousel-next {
        right: 5px;
    }
}


/* ===========================================
   CHANGELOG MODAL
   =========================================== */

.changelog-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    display: none;
    justify-content: center;
    align-items: center;
}

.changelog-modal.show {
    display: flex;
}

.changelog-modal-content {
    background: white;
    width: 350px;
    height: 350px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.changelog-modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

.changelog-modal-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
}

.changelog-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 50%;
    transition: background 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
}

.changelog-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.changelog-modal-body {
    padding: 1rem;
    overflow-y: auto;
    flex: 1;
}

.changelog-entry {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
}

.changelog-entry:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
}

.changelog-date {
    font-weight: 600;
    color: #667eea;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.changelog-separator {
    height: 1px;
    background: linear-gradient(to right, transparent, #dee2e6, transparent);
    margin-bottom: 0.5rem;
}

.changelog-text {
    color: #333;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* ===========================================
   CLICKABLE SPOT ELEMENTS
   =========================================== */

.spot-title-link {
    color: inherit;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    display: block;
    padding: 0.2rem 0;
}

.spot-title-link:hover {
    color: #667eea;
    text-decoration: none;
    text-shadow: 0 1px 3px rgba(102, 126, 234, 0.3);
}

.spot-title-link:visited {
    color: inherit;
}

.spot-image-link {
    display: block;
    transition: all 0.2s ease;
    cursor: pointer;
    border-radius: 8px;
    overflow: hidden;
}

.spot-image-link:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    filter: brightness(1.05);
}

.spot-image-link img {
    transition: transform 0.2s ease;
}

.spot-image-link:hover img {
    transform: scale(1.01);
}


/* ===========================================
   COORDINATE SELECTION MODE
   =========================================== */

.coordinate-selection-controls {
    display: none;
    flex-direction: row;
    gap: 0.5rem;
    padding: 0 0.75rem;
    background: transparent;
    width: 100%;
}

.btn-coordinate {
    flex: 1;
    padding: 0.875rem 1rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.btn-cancel {
    background: #6c757d;
    color: white;
}

.btn-cancel:hover {
    background: #5a6268;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
}

.btn-validate {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-validate:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-coordinate:active {
    transform: translateY(0);
}

/* ===========================================
   MULTI-STEP SPOT FORM
   =========================================== */

.multi-step-form-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.multi-step-form-container.hidden {
    display: none;
    opacity: 0;
    pointer-events: none;
}

.multi-step-form-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.multi-step-form {
    position: relative;
    width: 95%;
    max-width: 800px;
    height: 90dvh;
    max-height: 700px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: scaleIn 0.3s ease-out;
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Header du formulaire */
.multi-step-form .form-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    border-bottom: 1px solid #e0e0e0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.multi-step-form .back-button {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: background 0.2s;
}

.multi-step-form .back-button:hover {
    background: rgba(255, 255, 255, 0.2);
}

.multi-step-form .header-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    text-align: center;
}

.multi-step-form .step-title-header {
    font-size: 0.95rem;
    font-weight: 500;
    margin: 0;
    color: white;
    opacity: 0.95;
    line-height: 1.3;
}

.multi-step-form .step-indicator {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    opacity: 0.8;
}

.multi-step-form .close-button {
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    line-height: 1;
    border-radius: 8px;
    transition: background 0.2s;
}

.multi-step-form .close-button:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Body du formulaire */
.multi-step-form .form-body {
    flex: 1;
    padding: 1rem 2rem 2rem 2rem;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

/* Désactiver le scroll pour l'étape 1 uniquement sur grands écrans */
@media (min-width: 400px) {
    .multi-step-form .form-body:has(.spot-type-options) {
        overflow-y: hidden;
    }
}

.step-content {
    animation: fadeIn 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.step-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 1rem;
    text-align: center;
    flex-shrink: 0;
}

.step-subtitle {
    font-size: 1rem;
    color: #666;
    text-align: center;
    margin-bottom: 2rem;
    flex-shrink: 0;
}

/* ÉTAPE 1 - Type de spot */
.spot-type-options {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    flex: 1;
    align-content: center;
    grid-auto-flow: row;
}

.spot-type-card {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.spot-type-card:hover {
    border-color: #667eea;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.2);
}

.spot-type-card-disabled {
    background: #f5f5f5;
    border-color: #d0d0d0;
    cursor: not-allowed;
    opacity: 0.6;
}

.spot-type-card-disabled:hover {
    border-color: #d0d0d0;
    transform: none;
    box-shadow: none;
}

.spot-type-card-disabled .spot-type-icon,
.spot-type-card-disabled h3,
.spot-type-card-disabled p {
    color: #999;
}

.coming-soon-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #dc3545;
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.spot-type-icon {
    font-size: 3.5rem;
    margin-bottom: 0.8rem;
}

.spot-type-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.4rem;
}

.spot-type-card p {
    font-size: 0.95rem;
    color: #666;
    margin: 0;
}

/* ÉTAPE 2 - Titre et description */
.form-fields {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 0.875rem;
    font-size: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    transition: border-color 0.2s;
    font-family: inherit;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: #667eea;
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

/* ÉTAPE 3 & 4 - Avantages / Inconvénients (Checkboxes) */
.checkbox-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

@media (min-width: 400px) {
    .checkbox-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 2px 0.85rem;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.checkbox-item:hover {
    border-color: #667eea;
    background: #f8f9ff;
}

.checkbox-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #667eea;
    flex-shrink: 0;
}

.checkbox-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.checkbox-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: #333;
    flex: 1;
}

/* ÉTAPE 5 - Rating */
.rating-selector {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin: 3rem 0;
}

.star-button {
    background: none;
    border: none;
    cursor: pointer;
    transition: transform 0.2s;
    padding: 0.25rem;
}

.star-button svg {
    width: 40px;
    height: 40px;
}

@media (min-width: 400px) {
    .star-button svg {
        width: 60px;
        height: 60px;
    }
}

.star-button:hover {
    transform: scale(1.2);
}

.star-button.selected svg {
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.6));
}

/* ÉTAPE 6 - Images */
.image-upload-zone {
    border: 3px dashed #e0e0e0;
    border-radius: 12px;
    padding: 3rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 2rem;
}

.image-upload-zone:hover {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.05);
}

.image-upload-zone.drag-over {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.1);
}

.upload-placeholder {
    pointer-events: none;
}

.upload-placeholder svg {
    color: #999;
    margin-bottom: 1rem;
}

.upload-placeholder p {
    color: #666;
    font-size: 1rem;
}

.image-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.image-preview-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid #e0e0e0;
}

.image-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.remove-image-btn {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.remove-image-btn:hover {
    background: rgba(255, 0, 0, 0.8);
}

/* Boutons de navigation */
.btn-next,
.btn-submit {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    display: block;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-next:hover,
.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

.btn-next:disabled,
.btn-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.btn-submit {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}

.btn-submit:hover {
    box-shadow: 0 10px 30px rgba(17, 153, 142, 0.4);
}

/* Loading state for submit button */
.btn-submit.loading {
    opacity: 0.7;
    cursor: not-allowed;
    pointer-events: none;
    background: linear-gradient(135deg, #0d8075 0%, #2dc760 100%);
}

.btn-submit.loading:hover {
    transform: none;
    box-shadow: none;
}

/* Spinner animation */
.btn-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-right: 8px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive */
@media (min-width: 350px) {
    .spot-type-options {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    }
}

@media (min-width: 768px) {
    .amenities-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .multi-step-form .form-body {
        padding: 3rem;
    }

    .multi-step-form .step-title-header {
        font-size: 1.2rem;
    }

    .multi-step-form .step-indicator {
        font-size: 1rem;
    }
}

@media (min-width: 1024px) {
    .amenities-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .spot-features-inline .feature-icon {
        font-size: 1.3rem;
    }

    .spot-features-inline .feature-icon::after {
        font-size: 0.75rem;
        padding: 5px 9px;
    }
}

/* ===========================================
   ZOOM WARNING NOTIFICATION
   =========================================== */

.zoom-warning-notification {
    position: fixed;
    top: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    z-index: 2000;
    max-width: 90%;
    width: 450px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 1.2rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease-out;
}

.zoom-warning-notification.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.zoom-warning-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: white;
}

.zoom-warning-content svg {
    flex-shrink: 0;
    stroke: white;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.zoom-warning-content span {
    font-size: 0.95rem;
    line-height: 1.5;
    font-weight: 500;
}

@media (max-width: 500px) {
    .zoom-warning-notification {
        width: 85%;
        padding: 1rem 1.2rem;
        top: 80px;
    }

    .zoom-warning-content {
        gap: 0.8rem;
    }

    .zoom-warning-content svg {
        width: 20px;
        height: 20px;
    }

    .zoom-warning-content span {
        font-size: 0.85rem;
    }
}

/* ===========================================
   SPOT PHONE NUMBER (HOME SPOTS)
   =========================================== */

.spot-phone-number {
    margin-top: 0.75rem;
    padding: 0.5rem 0.75rem;
    background: rgba(16, 185, 129, 0.1);
    border-left: 3px solid #10b981;
    border-radius: 4px;
    font-size: 0.9rem;
    color: #047857;
    font-weight: 600;
    text-align: left;
}

/* ===========================================
   LANGUAGE SWITCHER
   =========================================== */

.language-switcher {
    display: flex;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 0.5rem;
}

.language-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.language-link:hover {
    color: white;
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

.language-link.active {
    color: white;
    background: rgba(255, 255, 255, 0.25);
    border-color: white;
    font-weight: 600;
}

/* Desktop language switcher (>= 768px) */
@media (min-width: 768px) {
    .language-switcher {
        padding: 0;
        border-bottom: none;
        margin-bottom: 0;
        gap: 0.3rem;
    }

    .language-link {
        font-size: 0.85rem;
        padding: 0.3rem 0.6rem;
    }
}
