/** 
 * Archivo CSS del plugin: assets/css/cr-map.css - Versión Multi-Mapas
 */

 .cr-map-container {
    display: flex;
    flex-direction: column;
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
}

.cr-map-wrapper {
    position: relative;
    background-color: transparent;
    margin-bottom: 20px;
    overflow: hidden;
}

.cr-map-image {
    position: relative;
    width: 100%;
    height: 100%;
}

.cr-map-image img {
    display: block;
    max-width: 820px;
    min-width: 820px;
    height: auto;
}

.cr-location-marker {
    position: absolute;
    width: 20px;
    height: 20px;
    margin-left: -10px;
    margin-top: -10px;
    cursor: pointer;
    z-index: 10;
    transition: transform 0.2s ease;
}

.cr-location-marker:hover {
    transform: scale(1.2);
    z-index: 20;
}

.cr-location-marker.active {
    z-index: 30;
}

.cr-marker-inner {
    width: 16px;
    height: 16px;
    background-color: #ffffff00 !important;
    border-radius: 50%;
    border: 0px solid #ffffff00 !important;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.3);
}

.cr-marker-label {
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #fff;
    color: #000;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 16px;
    font-weight: bold;
    box-shadow: 0 7px 22px 0 rgba(42, 41, 40, 0.1);
    white-space: nowrap;
    opacity: 1;
    transition: opacity 0.2s ease;
}

.cr-location-marker:hover .cr-marker-label,
.cr-location-marker.active .cr-marker-label {
    opacity: 1;
}

.cr-location-marker.active .cr-marker-label{
    background-color: rgba(249, 222, 0, 1);
}

.cr-location-info {
    flex: 1;
    min-width: 335px;
    display: flex;
    flex-direction: column;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 9.14px 15.23px 63.97px 0px rgba(67, 42, 24, 0.15);
}

.cr-location-image {
    margin-bottom: 15px;
    border-radius: 8px 8px 0 0;
    overflow: hidden;
}

.cr-location-image img {
    width: 100%;
    height: auto;
    display: block;
}

.cr-location-title {
    margin-top: 0;
    margin-bottom: 10px;
    color: #706C68;
    font-weight: bold;
}

.cr-location-description {
    color: #666;
    line-height: 1.6;
}

.cr-documents-container {
    flex: 1;
    min-width: 300px;
    border-radius: 8px;
}

.cr-location-details{
    padding: 15px;
}

.cr-documents-container h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 20px;
    color: #333;
}

.cr-documents-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cr-document-item {
    display: flex;
    align-items: center;
    background-color: #fff;
    border-radius: 6px;
    padding: 10px 15px;
    border: 1px solid rgba(146, 146, 146, 1);
    transition: transform 0.2s ease;
}

.cr-document-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
}

.cr-document-icon {
    margin-right: 10px;
    color: #555;
}

.cr-document-info {
    flex: 1;
}

.cr-document-title {
    font-weight: 600;
    margin-bottom: 3px;
    color: #333;
}

.cr-document-type {
    font-size: 12px;
    color: #888;
}

/* ESTILOS ADMIN PARA MÚLTIPLES MAPAS */

.cr-map-selector {
    background-color: #f9f9f9;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    border-left: 4px solid #0073aa;
}

.cr-map-selector h3 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #23282d;
}

.cr-map-selector select {
    width: 300px;
    padding: 8px;
    font-size: 14px;
}

.cr-admin-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.cr-admin-form-container {
    flex: 1;
    min-width: 500px;
    background-color: #fff;
    padding: 20px;
    border: 1px solid #ccd0d4;
    border-radius: 4px;
}

.cr-admin-table-container {
    flex: 1;
    min-width: 500px;
    background-color: #fff;
    padding: 20px;
    border: 1px solid #ccd0d4;
    border-radius: 4px;
}

.cr-map-position-picker {
    max-width: 100%;
}

.cr-map-canvas {
    position: relative;
    display: inline-block;
    border: 2px solid #ddd;
    border-radius: 4px;
    cursor: crosshair;
    margin-bottom: 15px;
}

.cr-map-canvas img {
    display: block;
    max-width: 100%;
    height: auto;
}

.cr-map-marker {
    position: absolute;
    width: 12px;
    height: 12px;
    background-color: #ff0000;
    border: 2px solid #fff;
    border-radius: 50%;
    margin-left: -6px;
    margin-top: -6px;
    display: none;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.5);
}

.cr-map-coordinates {
    display: flex;
    gap: 20px;
    align-items: center;
}

.cr-map-coordinates label {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.cr-map-coordinates input {
    width: 80px;
}

.location-image-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.location-image-preview img {
    max-width: 150px;
    height: auto;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.cr-shortcode-examples {
    background-color: #f7f7f7;
    padding: 15px;
    border-radius: 4px;
    margin-top: 15px;
}

.cr-shortcode-examples h4 {
    margin-top: 0;
    color: #333;
}

.cr-shortcode-examples code {
    background-color: #fff;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: monospace;
    border: 1px solid #ddd;
}

/* Responsive Web */
@media screen and (min-width: 1200px){
    .cr-map-info-container {
        position: absolute;
        z-index: 10;
        top: 50%;
    }

    .cr-location-info {
        position: absolute;
        bottom: 20px;
        max-width: 300px;
        left: 0;
    }

    .cr-documents-container {
        position: absolute;
        top: 20px;
        right: 0;
        width: 40%;
        max-width: 400px;
    }
}

/* Estilos para dispositivos móviles */
@media screen and (max-width: 880px){
    .cr-map-image{
        overflow-x: scroll;
        margin-left: 0%;
    }

    .cr-map-image img{
        display: block;
        max-width: 390px;
        min-width: 390px;
        height: auto;
    }

    .cr-admin-container {
        flex-direction: column;
    }
    
    .cr-admin-form-container,
    .cr-admin-table-container {
        min-width: 100%;
    }
    
    .cr-map-coordinates {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .cr-map-selector select {
        width: 100%;
    }
}

/* Estilos para dispositivos móviles */
@media (max-width: 767px) {
    .cr-map-info-container {
        flex-direction: column;
        position: absolute;
        top: 50px;
        transform: scale(0);
        opacity: 0;
        z-index: 99;
    }
    
    .cr-map-container:hover .cr-map-info-container{
        transform: scale(1);
        opacity: 1;
    }
    
    .cr-location-info, 
    .cr-documents-container {
        width: 100%;
    }
    
    .location-image-container {
        flex-direction: column;
        align-items: flex-start;
    }
}