/**
 * Estilos para Shortcodes de POI
 * 
 * @package Infotourist
 * @subpackage Shortcodes
 */

/* =============================================================================
   MAPA POI - COHERENTE CON RESOURCE EXPLORER
   ============================================================================= */

/* Mapas POI individuales con estructura del Resource Explorer */
.poi-single-map {
    margin: 20px 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.poi-single-map .infotourist-explorer-wrap {
    background: #fff;
    border-radius: 8px;
}

.poi-single-map .infotourist-map-container {
    border-radius: 8px;
    overflow: hidden;
}

.poi-single-map .infotourist-explorer-map {
    border-radius: 8px;
}

/* Loading específico para POI */
.poi-single-map .infotourist-map-loading {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 300px;
    border-radius: 8px;
}

/* Error específico para POI */
.poi-single-map .infotourist-map-error {
    background-color: #f8d7da !important;
    color: #721c24 !important;
    border: 1px solid #f5c6cb;
    border-radius: 8px;
    font-weight: 500;
}

/* Ocultar overlay en mapas individuales */
.poi-single-map .map-info-overlay {
    display: none !important;
}

/* Mapas POI simples - solo marcadores, sin InfoWindows */

/* =============================================================================
   LISTA DE TAXONOMÍAS CON ICONOS - DISEÑO PLANO
   ============================================================================= */

.infotourist-taxonomy-list {
    display: grid;
    gap: 10px;
    margin: 20px 0;
    padding: 0;
    background: transparent;
}

/* Configuración de columnas */
.infotourist-taxonomy-list.columns-1 {
    grid-template-columns: 1fr;
}

.infotourist-taxonomy-list.columns-2 {
    grid-template-columns: repeat(2, 1fr);
}

.infotourist-taxonomy-list.columns-3 {
    grid-template-columns: repeat(3, 1fr);
}

.infotourist-taxonomy-list.columns-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* Responsive - en móviles máximo 2 columnas */
@media (max-width: 768px) {
    .infotourist-taxonomy-list.columns-3,
    .infotourist-taxonomy-list.columns-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .infotourist-taxonomy-list.columns-2,
    .infotourist-taxonomy-list.columns-3,
    .infotourist-taxonomy-list.columns-4 {
        grid-template-columns: 1fr;
    }
}

/* Elemento individual de taxonomía - diseño plano */
.taxonomy-item {
    display: flex;
    align-items: center;
    padding: 8px 0;
    background: transparent;
    border: none;
    cursor: default;
}

/* Icono de taxonomía - simplificado */
.taxonomy-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    margin-right: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.taxonomy-icon img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Icono por defecto - más simple */
.taxonomy-icon-default {
    background: #45c4a0;
    color: white;
    border-radius: 2px;
}

.taxonomy-icon-default i {
    font-size: 12px;
}

/* Nombre de taxonomía - texto plano */
.taxonomy-name {
    flex: 1;
    font-size: 14px;
    font-weight: 400;
    color: #666;
    line-height: 1.3;
}

/* Mensaje cuando no hay términos */
.infotourist-no-terms {
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 4px;
    border: 1px dashed #ddd;
}

/* =============================================================================
   DETALLES DEL POI
   ============================================================================= */

.infotourist-poi-details {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
}

.infotourist-poi-details h3 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 18px;
    font-weight: 600;
    border-bottom: 2px solid #2196f3;
    padding-bottom: 8px;
}

.infotourist-details-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}

.infotourist-details-table td {
    padding: 8px 12px;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: top;
}

.infotourist-details-table td:first-child {
    width: 30%;
    min-width: 120px;
    background: #f8f9fa;
    font-weight: 600;
    color: #555;
}

.infotourist-details-table td:last-child {
    color: #333;
}

.infotourist-details-table tr:last-child td {
    border-bottom: none;
}

/* =============================================================================
   HORARIOS DE APERTURA
   ============================================================================= */

.infotourist-opening-hours {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
    border-left: 4px solid #2196f3;
    font-family: monospace;
    font-size: 14px;
    line-height: 1.6;
    color: #333;
}

/* =============================================================================
   ELEMENTOS INDIVIDUALES
   ============================================================================= */

.infotourist-poi-address,
.infotourist-poi-coordinates,
.infotourist-poi-duration {
    display: inline-block;
    padding: 8px 12px;
    background: #f8f9fa;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
    font-size: 14px;
    color: #333;
    margin: 4px 0;
}

/* =============================================================================
   RESPONSIVO GENERAL
   ============================================================================= */

@media (max-width: 768px) {
    .infotourist-taxonomy-list {
        padding: 15px;
        gap: 12px;
    }
    
    .taxonomy-item {
        padding: 10px;
    }
    
    .taxonomy-icon {
        width: 28px;
        height: 28px;
        margin-right: 10px;
    }
    
    .taxonomy-name {
        font-size: 13px;
    }
    
    .infotourist-poi-details {
        padding: 15px;
    }
    
    .infotourist-details-table td:first-child {
        width: 40%;
        font-size: 13px;
    }
    
    .infotourist-details-table td {
        padding: 6px 8px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .infotourist-details-table td:first-child {
        width: 100%;
        display: block;
        border-bottom: none;
        padding-bottom: 4px;
    }
    
    .infotourist-details-table td:last-child {
        width: 100%;
        display: block;
        padding-top: 0;
        padding-left: 16px;
    }
}

/* =============================================================================
   MARCADORES PERSONALIZADOS CON IMAGEN - POI
   ============================================================================= */

/* Estilos para las imágenes de marcadores de POI en Google Maps */
.gm-style img[src*="wp-content/uploads"],
.gm-style img[src*="turismemont-roig.cat"] {
    border-radius: 50% !important;
    border: 3px solid white !important;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.4) !important;
    transition: all 0.2s ease !important;
    cursor: pointer !important;
}

/* Efecto hover para marcadores de imagen de POI */
.gm-style img[src*="wp-content/uploads"]:hover,
.gm-style img[src*="turismemont-roig.cat"]:hover {
    transform: scale(1.15) !important;
    box-shadow: 0 5px 16px rgba(0, 0, 0, 0.5) !important;
    border-width: 4px !important;
}

/* Asegurar que las imágenes de marcador POI mantengan la proporción */
.gm-style img[src*="wp-content/uploads"],
.gm-style img[src*="turismemont-roig.cat"] {
    object-fit: cover !important;
    width: 50px !important;
    height: 50px !important;
}

.gm-style img[src*="wp-content/uploads"]:hover,
.gm-style img[src*="turismemont-roig.cat"]:hover {
    width: 60px !important;
    height: 60px !important;
} 