/* Estilos para el plugin Travel Widget */

.travel-widget-container {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 20px 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    background: #fff;
    min-height: 400px;
}

/* Estilos específicos para el widget de PriceRes */
.ptw-menu-vertical {
    display: block;
    width: 100%;
}

.ptw-menu-horizontal {
    display: block;
    width: 100%;
}

.ptw-menu-inline {
    display: inline-block;
    width: auto;
}

/* Loading state */
.travel-widget-container.loading {
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

.travel-widget-container.loading::before {
    content: "Cargando widget de viajes...";
    color: #6c757d;
    font-size: 16px;
    font-weight: 500;
}

/* Responsive design */
@media (max-width: 768px) {
    .travel-widget-container {
        margin: 15px 0;
        border-radius: 6px;
    }
    
    .travel-widget-container {
        min-height: 300px;
    }
    
    .travel-widget-container.loading {
        min-height: 300px;
    }
}

@media (max-width: 480px) {
    .travel-widget-container {
        margin: 10px 0;
        border-radius: 4px;
    }
    
    .travel-widget-container {
        min-height: 250px;
    }
    
    .travel-widget-container.loading {
        min-height: 250px;
    }
}

/* Error state */
.travel-widget-container.error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    padding: 20px;
    text-align: center;
    border-radius: 8px;
}

.travel-widget-container.error::before {
    content: "⚠️ Error al cargar el widget de viajes";
    display: block;
    font-weight: bold;
    margin-bottom: 10px;
}

/* Hover effects */
.travel-widget-container:hover {
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    transition: box-shadow 0.3s ease;
}

/* Fullscreen mode */
.travel-widget-container.fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    border-radius: 0;
    margin: 0;
}

.travel-widget-container.fullscreen {
    width: 100vw;
    height: 100vh;
}

/* Fullscreen toggle button */
.travel-widget-toggle {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    border-radius: 4px;
    padding: 5px 10px;
    font-size: 12px;
    cursor: pointer;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.travel-widget-container:hover .travel-widget-toggle {
    opacity: 1;
}

.travel-widget-toggle:hover {
    background: rgba(0, 0, 0, 0.9);
}

/* Admin styles */
.travel-iframe-admin {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin: 20px 0;
}

.travel-iframe-admin h3 {
    color: #333;
    margin-bottom: 15px;
}

.travel-iframe-admin .shortcode-example {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 15px;
    font-family: 'Courier New', monospace;
    margin: 10px 0;
    word-break: break-all;
}

.travel-iframe-admin .shortcode-example code {
    background: none;
    color: #e83e8c;
    font-weight: bold;
}

/* Animation for loading */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.travel-widget-container {
    animation: fadeIn 0.5s ease-out;
} 