/* Carte Interactive ARWEB - Styles avec support Elementor */

/* Variables CSS avec fallback Elementor */
:root {
    --arweb-primary-color: var(--e-global-color-primary, #0073aa);
    --arweb-secondary-color: var(--e-global-color-secondary, #005a87);
    --arweb-text-color: var(--e-global-color-text, #333);
    --arweb-accent-color: var(--e-global-color-accent, #0073aa);
    --arweb-primary-font: var(--e-global-typography-primary-font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
    --arweb-text-font: var(--e-global-typography-text-font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
}

/* Conteneur principal */
.arweb-carte-container {
    margin: 20px 0;
    font-family: var(--arweb-text-font);
}

/* Filtres */
.arweb-carte-filters {
    margin-bottom: 20px;
    padding: 20px;
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
}

.arweb-filters-title {
    margin-bottom: 12px;
    color: var(--arweb-text-color);
    font-family: var(--arweb-primary-font);
}

.arweb-filters-list {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.arweb-filter-item {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    margin: 0;
    font-family: var(--arweb-text-font);
}

.arweb-filter-item input[type="checkbox"] {
    margin: 0;
    cursor: pointer;
    accent-color: var(--arweb-primary-color);
}

.arweb-filter-color {
    display: inline-block;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px rgba(0,0,0,0.2);
}

.arweb-filter-name {
    font-size: 14px;
    color: var(--arweb-text-color);
}

/* Carte */
.arweb-carte-map {
    border: 1px solid #ddd;
    z-index: 1;
}

/* Popup - Design moderne */
.arweb-poi-popup {
    min-width: 280px;
    max-width: 350px;
    font-family: var(--arweb-text-font);
}

.arweb-poi-image {
    margin: -15px -20px 15px -20px;
    overflow: hidden;
    border-radius: 4px 4px 0 0;
}

.arweb-poi-image img {
    width: 100%;
    height: auto;
    max-height: 200px;
    object-fit: cover;
    display: block;
}

.arweb-poi-content {
    padding: 0;
}

.arweb-poi-title {
    margin: 0 0 12px 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--arweb-text-color);
    line-height: 1.3;
    font-family: var(--arweb-primary-font);
}

.arweb-poi-description {
    margin: 0 0 15px 0;
    font-size: 14px;
    color: var(--arweb-text-color);
    line-height: 1.6;
    font-family: var(--arweb-text-font);
}

/* Informations de contact avec icônes */
.arweb-poi-info {
    margin: 15px 0 0 0;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 3px solid var(--arweb-primary-color);
}

.arweb-poi-info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 8px 0;
    font-size: 13px;
    color: var(--arweb-text-color);
}

.arweb-poi-info-item:first-child {
    margin-top: 0;
}

.arweb-poi-info-item:last-child {
    margin-bottom: 0;
}

.arweb-poi-info-item .dashicons {
    color: var(--arweb-primary-color);
    font-size: 16px;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.arweb-poi-info-item a {
    color: var(--arweb-primary-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

.arweb-poi-info-item a:hover {
    color: var(--arweb-secondary-color);
    text-decoration: underline;
}

/* Catégories */
.arweb-poi-categories {
    margin: 15px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.arweb-poi-category {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

/* Bouton "En savoir plus" */
.arweb-poi-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 15px;
    padding: 10px 18px;
    background: linear-gradient(135deg, #0073aa 0%, #005a87 100%);
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,115,170,0.3);
}

.arweb-poi-link:hover {
    background: linear-gradient(135deg, #005a87 0%, #004868 100%);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,115,170,0.4);
}

.arweb-poi-link .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

/* Personnalisation de la popup Leaflet */
.leaflet-popup-content-wrapper {
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    padding: 15px 20px;
}

.leaflet-popup-content {
    margin: 0;
    line-height: 1.4;
}

.leaflet-popup-tip {
    box-shadow: 0 3px 14px rgba(0,0,0,0.15);
}

/* Marqueur personnalisé */
.arweb-custom-marker {
    background: transparent;
    border: none;
}

/* Vue liste des POI */
.arweb-poi-list {
    margin-top: 40px;
}

.arweb-poi-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--arweb-primary-color);
}

.arweb-poi-list-header h3 {
    margin: 0;
    font-size: 24px;
    color: var(--arweb-text-color);
    font-family: var(--arweb-primary-font);
}

.arweb-poi-count {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    color: var(--arweb-text-color);
    font-family: var(--arweb-text-font);
}

.arweb-poi-count .count-visible {
    font-size: 28px;
    font-weight: bold;
    color: var(--arweb-primary-color);
}

.arweb-poi-list-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

.arweb-poi-list-item {
    display: flex;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.arweb-poi-list-item:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    transform: translateY(-3px);
    border-color: var(--arweb-primary-color);
}

.arweb-poi-list-image {
    flex-shrink: 0;
    width: 140px;
    height: 100%;
    overflow: hidden;
}

.arweb-poi-list-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.arweb-poi-list-item:hover .arweb-poi-list-image img {
    transform: scale(1.05);
}

.arweb-poi-list-content {
    flex: 1;
    padding: 15px;
    display: flex;
    flex-direction: column;
}

.arweb-poi-list-title {
    margin: 8px 0 10px 0;
    font-size: 19px;
    font-weight: 600;
    color: var(--arweb-text-color);
    line-height: 1.3;
    font-family: var(--arweb-primary-font);
}

.arweb-poi-list-description {
    margin: 0 0 10px 0;
    font-size: 14px;
    color: var(--arweb-text-color);
    line-height: 1.6;
    opacity: 0.85;
    font-family: var(--arweb-text-font);
}

.arweb-poi-list-meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 10px 0;
    font-size: 13px;
    color: var(--arweb-text-color);
}

.arweb-poi-list-address,
.arweb-poi-list-phone {
    display: flex;
    align-items: center;
    gap: 5px;
}

.arweb-poi-list-meta .dashicons {
    color: var(--arweb-primary-color);
    font-size: 14px;
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.arweb-poi-list-phone a {
    color: var(--arweb-primary-color);
    text-decoration: none;
}

.arweb-poi-list-phone a:hover {
    color: var(--arweb-secondary-color);
    text-decoration: underline;
}

.arweb-poi-list-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin: 0 0 8px 0;
}

.arweb-poi-list-actions {
    margin-top: auto;
    padding-top: 12px;
}

.arweb-poi-locate-btn {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 16px;
    background: var(--arweb-primary-color);
    border: none;
    border-radius: 4px;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--arweb-text-font);
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.arweb-poi-locate-btn:hover {
    background: var(--arweb-secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.arweb-poi-locate-btn .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

/* POI caché par les filtres */
.arweb-poi-list-item.hidden {
    display: none;
}

/* Responsive */
@media (max-width: 768px) {
    .arweb-filters-list {
        flex-direction: column;
        gap: 10px;
    }

    .arweb-carte-map {
        min-height: 400px;
    }

    .arweb-poi-list-items {
        grid-template-columns: 1fr;
    }

    .arweb-poi-list-item {
        flex-direction: column;
    }

    .arweb-poi-list-image {
        width: 100%;
        height: 180px;
    }

    .arweb-poi-list-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .arweb-poi-list-actions {
        flex-direction: column;
    }
}
