.wmcp-map-wrapper {
    display: flex;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    height: 600px;
}

.wmcp-sidebar {
    flex: 0 0 300px;
    background: #f9f9f9;
    border-right: 1px solid #ddd;
    max-height: 100%;
    overflow: hidden; 
}

.wmcp-panel-wrapper {
    display: flex;
    height: 100%;
    width: 200%;
    transition: transform 0.3s ease-in-out;
}

.wmcp-sidebar.is-locations-active .wmcp-panel-wrapper {
    transform: translateX(-50%); 
}

.wmcp-panel {
    width: 50%;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 12px;
}


.wmcp-panel-header {
    margin-bottom: 10px;
}



#wmcp-city-list, #wmcp-locations-list {
    list-style-type: none;
    margin: 0;
    flex-grow: 1;
    overflow-y: auto;
    padding: 0;
}

#wmcp-city-list li, #wmcp-locations-list li {
    cursor: pointer;
    transition: background-color 0.2s;
    padding: 12px;
    background: #001f96e8;
    color: #fff;
    margin-bottom: 6px;
font-weight: bold;
}

ul#wmcp-search-results-list li {
    margin-bottom: 1em;
    border-bottom: 1px dotted #c9c9db;
    padding: 12px 0;
}

#wmcp-city-list li:hover, #wmcp-locations-list li:hover {
    background-color: #001f96;
}


#wmcp-city-list li.active {
    background-color: #e5e5e5;
}

.wmcp-location-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.wmcp-location-item input.wmcp-visited-checkbox {
    margin-right: 10px;
    flex-shrink: 0;
}

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

.wmcp-location-details strong {
    display: block;
    margin-bottom: 2px;
    color: #333;
}

.wmcp-location-details span {
    color: #777;
}

.wmcp-link-button {
    margin-left: 10px;
    border-radius: 5px;
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    transition: background-color 0.2s ease-in-out, transform 0.2s ease-in-out;
    flex-shrink: 0;
    text-decoration: none;
    color: inherit;
}

.wmcp-link-button:hover {
    background-color: #e0e0e0;
    transform: scale(1.1);
}

.wmcp-link-button svg {
    display: block;
    color: #c00;
}

.wmcp-infowindow-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.wmcp-infowindow-title-wrapper {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
}

.wmcp-infowindow-title-wrapper strong {
}

.wmcp-infowindow-title-wrapper input[type="checkbox"] {
    margin-right: 8px;
    flex-shrink: 0;
}

.wmcp-infowindow-content p {
    margin: 0 0 10px 0;
    color: #555;
}

.wmcp-infowindow-content .wmcp-link-button {
    align-self: flex-end;
    background-color: #c00;
}

.wmcp-infowindow-content .wmcp-link-button svg {
    color: #fff;
}

.wmcp-infowindow-content .wmcp-link-button:hover {
    background-color: #a00;
}

.wmcp-map-container {
    flex: 1;
    height: 100%;
}

@media (max-width: 768px) {
    .wmcp-map-wrapper {
        flex-direction: column;
        height: 90vh;
    }
    .wmcp-sidebar {
        flex-basis: 40%;
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #ddd;
    }
    .wmcp-map-container {
        flex-basis: 60%;
    }
}
.wmcp-global-search-wrapper {
    border-bottom: 1px solid #ddd;
}

#wmcp-location-search {
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

#wmcp-search-results-container {
    height: 100%;
    display: flex;
    flex-direction: column;
}

#wmcp-search-results-list {
    list-style-type: none;
    margin: 10px 0 0 0;
    flex-grow: 1;
    overflow-y: auto;
}

.wmcp-visited-card {
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.wmcp-visited-card-image-wrapper {
    position: relative;
}

.wmcp-visited-card img {
    display: block;
    width: 100%;
    height: 50vh;
    object-fit: cover;
    transition: transform 0.3s ease;
}


ul#wmcp-locations-list {
    padding: 0;
}


.wmcp-visited-card-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.wmcp-visited-card-action input[type="checkbox"] {
    transform: scale(1.5);
    cursor: pointer;
}

.wmcp-visited-card.is-visited {
    border-color: #28a745;
}

.wmcp-visited-card .wmcp-visited-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(40, 167, 69, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.wmcp-visited-card.is-visited .wmcp-visited-overlay {
    opacity: 1;
}

.wmcp-visited-card:not(.is-visited) {
    opacity: 0.8;
}

.wmcp-visited-card:not(.is-visited):hover {
    opacity: 1;
}

input#wmcp-visited-list-search {
    width: fit-content;
}

/* --- REGLAS PARA EL TEXTO DEL INTERRUPTOR VISITADO/NO VISITADO --- */

/* Oculta el texto "Visitado" por defecto */
.wmcp-visited-toggle .text-visited {
    display: none;
}

/* Muestra el texto "No Visitado" por defecto */
.wmcp-visited-toggle .text-not-visited {
    display: inline;
}

/* CUANDO el input está marcado (checked)... */
.wmcp-visited-toggle input:checked + label .text-visited {
    display: inline; /* ...muestra el texto "Visitado" */
}
.wmcp-visited-toggle input:checked + label .text-not-visited {
    display: none; /* ...y oculta el "No Visitado" */
}