/* popup-styles.css - Styles pour la popup personnalisée */

.ol-popup {
    position: absolute;
    background-color: white;
    box-shadow: 0 1px 4px rgba(0,0,0,0.2);
    padding: 15px;
    border-radius: 10px;
    border: 1px solid #cccccc;
    bottom: 12px;
    left: -50px;
    min-width: 280px;
    max-width: 900px;
    max-height: 600px;
    overflow-y: auto;
}

.ol-popup:after, .ol-popup:before {
    top: 100%;
    border: solid transparent;
    content: " ";
    height: 0;
    width: 0;
    position: absolute;
    pointer-events: none;
}

.ol-popup:after {
    border-top-color: white;
    border-width: 10px;
    left: 48px;
    margin-left: -10px;
}

.ol-popup:before {
    border-top-color: #cccccc;
    border-width: 11px;
    left: 48px;
    margin-left: -11px;
}

.ol-popup-closer {
    text-decoration: none;
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 20px;
    color: #c3c3c3;
    font-weight: bold;
}

.ol-popup-closer:after {
    content: "✖";
}

.ol-popup-closer:hover {
    color: #ff0000;
}

#popup-content {
    max-height: 550px;
    overflow-y: auto;
}

/* Styles pour la navigation */
.navigation-controls {
    text-align: center;
    padding: 10px;
    background: #f0f0f0;
    margin-bottom: 15px;
    border-radius: 5px;
}

.navigation-controls button {
    padding: 8px 15px;
    margin: 0 5px;
    cursor: pointer;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 3px;
    font-size: 14px;
}

.navigation-controls button:disabled {
    background: #cccccc;
    cursor: not-allowed;
}

.navigation-controls button:hover:not(:disabled) {
    background: #45a049;
}

.feature-counter {
    margin: 0 15px;
    font-weight: bold;
    font-size: 14px;
}

/* Styles pour le contenu des features */
.feature-container {
    display: none;
}

.feature-container.active {
    display: block;
}

/* Amélioration du tableau */
#popup-content table {
    border-collapse: collapse;
    width: auto;
}

#popup-content table th {
    text-align: left;
    padding: 5px 10px;
    font-weight: bold;
}

#popup-content table td {
    padding: 5px 10px;
}