/* ============================
   CONTENEUR GLOBAL
============================ */

#aroundpoint {
    width: 90%;
    margin: 0 auto;
    padding: 15px;
    text-align: center;
}

/* ============================
   FILTRES
============================ */

#aroundpoint-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

#aroundpoint-filters label {
    font-size: 0.9rem;
}

#aroundpoint-filters select,
#aroundpoint-filters input {
    padding: 14px 14px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

#aroundpoint-filters button {
    padding: 14px 14px;
    border-radius: 8px;
    border: none;
    background: #2196f3;
    color: white;
    font-weight: 600;
    cursor: pointer;
}

/* ============================
   LAYOUT CARTE + LISTING
============================ */

/* Layout desktop : carte + listing côte à côte */
#aroundpoint-wrapper {
    display: flex;
    gap: 15px;
    width: 100%;
    height: calc(100vh - 250px);
}

/* Carte = 75% */
#aroundpoint-map {
    flex: 3;
    height: 100%;
    border-radius: 8px;
    overflow: hidden;
}

/* Listing = 25% */
#aroundpoint-list-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    border-left: 1px solid #ddd;
    padding-left: 10px;
}

/* Résumé au-dessus du listing */
#aroundpoint-summary {
    padding: 10px;
    border-bottom: 1px solid #ddd;
    text-align: left;
}

/* Listing scrollable */
#aroundpoint-list {
    flex: 1;
    overflow-y: auto;
    padding-right: 5px;
}

/* Bouton Voir plus */
#ap-more-btn {
    padding: 6px 14px;
    border-radius: 6px;
    border: none;
    background: #eee;
    cursor: pointer;
    margin: 10px auto;
}

/* ============================
   ITEMS DU LISTING
============================ */

.item.search-item {
    padding: 8px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    text-align: left;
}

.item.search-item:hover {
    background: #f0f8ff;
}

.item-title {
    font-weight: 600;
    font-size: 0.95rem;
}

.item-meta {
    font-size: 0.85rem;
    color: #666;
}

.see-on-map-btn {
    margin-top: 6px;
    padding: 4px 8px;
    border-radius: 6px;
    border: none;
    background: #2196f3;
    color: white;
    font-size: 0.8rem;
    cursor: pointer;
}

.see-on-map-btn:hover {
    background: #1976d2;
}

/* ============================
   BOUTONS SPÉCIAUX
============================ */

#ap-recenter-btn,
#ap-gps-btn,
#ap-gps-track-btn {
    padding: 18px 18px;
    border-radius: 10px;
    border: none;
    color: white;
    font-weight: 600;
    cursor: pointer;
	margin-bottom: 20px;
}

#ap-recenter-btn {
    background: #4caf50;
}

#ap-gps-btn {
    background: #ff9800;
}

#ap-gps-track-btn {
    background: #9800ff;
}

#ap-recenter-btn:hover {
    background: #43a047;
}

#ap-gps-btn:hover {
    background: #fb8c00;
}

#ap-gps-track-btn:hover {
    background: #8c00fb;
}

/* ============================
   POPUP LEAFLET
============================ */

.popup-zoom-btn {
    background: #2196f3;
    color: white;
    border: none;
    padding: 4px 8px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.8rem;
}

.popup-zoom-btn:hover {
    background: #1976d2;
}






/* Responsive : sous 900px → vertical */
@media (max-width: 900px) {
    #aroundpoint-wrapper {
        flex-direction: column;
        height: auto;
    }

    #aroundpoint-map {
        height: 350px;
        flex: none;
    }

    #aroundpoint-list-container {
        flex: none;
        height: auto;
        max-height: 400px;
        border-left: none;
        border-top: 1px solid #ddd;
        padding-left: 0;
        padding-top: 10px;
    }
}
