/* Layout principal */
.map-layout-vertical {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 20px 0;
}

.map-full-width {
    width: 100%;
}

.content-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.list-wrapper {
    min-width: 300px;
    position: relative;
}

.article-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Indicateur de chargement */
.loading-indicator {
    text-align: center;
    padding: 20px;
    color: #666;
    font-style: italic;
    background: #f5f5f5;
    border-radius: 4px;
    margin-bottom: 10px;
}

/* Titre de l'article */
.article-title {
    margin: 0;
    padding: 0;
    font-size: 1.5em;
    color: #333;
}

/* Carte */
.map-container {
    height: 400px !important;
    width: 100% !important;
    min-height: 400px !important;
    position: relative !important;
    z-index: 1;
    display: block !important;
    visibility: visible !important;
}

/* Liste des emplacements */
.location-list {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 600px;
    overflow-y: auto;
}

.location-list li {
    margin: 5px 0;
    padding: 10px;
    border-bottom: 1px solid #eee;
    transition: background-color 0.3s ease;
}

.location-list li:hover {
    background-color: #f5f5f5;
}

.location-item {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.location-thumbnail-wrapper {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    overflow: hidden;
    border-radius: 4px;
}

.location-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.no-thumbnail {
    width: 100%;
    height: 100%;
    background-color: #f0f0f0;
    border: 1px solid #ddd;
}

.location-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.location-title {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    margin-bottom: 4px;
}

.location-title:hover {
    color: #0073aa;
}

.distance {
    color: #666;
    font-size: 0.85em;
}

/* Styles Leaflet */
.leaflet-popup {
    position: absolute;
    z-index: 1000;
}

.leaflet-popup-content-wrapper {
    padding: 0;
    overflow: hidden;
    border-radius: 4px;
    box-shadow: 0 3px 14px rgba(0,0,0,0.4);
}

.leaflet-popup-content {
    margin: 0;
    width: 200px !important;
}

.popup-content {
    display: flex;
    flex-direction: column;
}

.popup-image {
    width: 100%;
    height: 120px;
    object-fit: cover;
}

/* Style spécial pour l'image de l'hôtel dans le popup */
.popup-content img[src*="V2.png"] {
    object-fit: contain;
    background: #fff;
    padding: 10px;
    height: 150px;
}

.popup-text {
    padding: 8px;
}

.popup-title {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    margin-bottom: 6px;
    display: block;
    font-size: 0.95em;
}

.popup-title:hover {
    color: #0073aa;
}

.popup-distance {
    color: #666;
    font-size: 0.85em;
}

/* Support Elementor */
.elementor-widget-container .map-container {
    position: relative !important;
    z-index: 1;
}

/* Article et bannière */
.article-banner {
    width: 100%;
    height: 200px;
    background-color: #f0f0f0;
    background-size: cover;
    background-position: center;
    border-radius: 8px 8px 0 0;
    margin-bottom: 0;
}

.article-container {
    background: #fff;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 20px;
}

/* Bouton Navigation */
.nav-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    background-color: #d59f15;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    transition: background-color 0.3s ease;
    margin-top: auto;
    width: fit-content;
}

.nav-button:hover {
    background-color: #d59f15;
    color: #fff;
}

.nav-button::before {
    content: "";
    display: inline-block;
    width: 20px;
    height: 20px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z"/></svg>') no-repeat center;
    margin-right: 8px;
}

/* Responsive */
@media (max-width: 768px) {
    .content-layout {
        grid-template-columns: 1fr;
    }
    
    .map-container {
        height: 300px !important;
        min-height: 300px !important;
    }
    
    .article-banner {
        height: 150px;
    }
}