/* Viajes Lanchar WordPress Plugin Styles */

/* Grid de paquetes */
.viajes-packages-grid {
    display: grid;
    gap: 20px;
    margin: 20px 0;
}

.viajes-packages-grid[data-columns="1"] {
    grid-template-columns: 1fr;
}

.viajes-packages-grid[data-columns="2"] {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.viajes-packages-grid[data-columns="3"] {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.viajes-packages-grid[data-columns="4"] {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* Tarjetas de paquetes */
.viajes-package-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.viajes-package-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.package-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.package-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.viajes-package-card:hover .package-image img {
    transform: scale(1.05);
}

.package-content {
    padding: 20px;
}

.package-title {
    font-size: 1.2em;
    font-weight: bold;
    margin: 0 0 10px 0;
    color: #2c3e50;
}

.package-subtitle {
    font-size: 0.9em;
    color: #7f8c8d;
    margin: 0 0 15px 0;
    font-style: italic;
}

.package-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 15px 0;
    flex-wrap: wrap;
    gap: 10px;
}

.package-details span {
    font-size: 0.9em;
    color: #34495e;
    background: #f8f9fa;
    padding: 4px 8px;
    border-radius: 4px;
}

.package-description {
    font-size: 0.9em;
    line-height: 1.4;
    color: #555;
    margin: 15px 0;
}

.package-actions {
    margin-top: 20px;
}

.btn-contact {
    background: #3498db;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9em;
    transition: background 0.3s ease;
    width: 100%;
}

.btn-contact:hover {
    background: #2980b9;
}

/* Paquete individual */
.viajes-single-package {
    max-width: 800px;
    margin: 20px auto;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
}

.viajes-single-package h2 {
    background: #2c3e50;
    color: white;
    padding: 20px;
    margin: 0;
    font-size: 1.5em;
}

.viajes-single-package .package-subtitle {
    background: #34495e;
    color: white;
    padding: 10px 20px;
    margin: 0;
    font-size: 1.1em;
}

.package-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2px;
}

.package-gallery img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.package-info {
    padding: 20px;
}

.package-info .description {
    font-size: 1em;
    line-height: 1.6;
    color: #333;
    margin-bottom: 20px;
}

.package-meta {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 5px;
    margin: 20px 0;
}

.package-meta p {
    margin: 5px 0;
    color: #2c3e50;
}

.btn-contact-large {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.1em;
    transition: background 0.3s ease;
    width: 100%;
    margin-top: 20px;
}

.btn-contact-large:hover {
    background: #c0392b;
}

/* Formulario de contacto */
.viajes-contact-form {
    max-width: 600px;
    margin: 20px auto;
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.viajes-contact-form .form-group {
    margin-bottom: 20px;
}

.viajes-contact-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #2c3e50;
}

.viajes-contact-form input,
.viajes-contact-form select,
.viajes-contact-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1em;
    transition: border-color 0.3s ease;
}

.viajes-contact-form input:focus,
.viajes-contact-form select:focus,
.viajes-contact-form textarea:focus {
    outline: none;
    border-color: #3498db;
}

.viajes-contact-form button[type="submit"] {
    background: #27ae60;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.1em;
    transition: background 0.3s ease;
    width: 100%;
}

.viajes-contact-form button[type="submit"]:hover {
    background: #229954;
}

/* Estados de respuesta */
#contact-response {
    margin-top: 20px;
    padding: 15px;
    border-radius: 5px;
    text-align: center;
}

#contact-response.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

#contact-response.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Modal de contacto */
.viajes-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.viajes-modal-content {
    position: relative;
    background-color: #fefefe;
    margin: 5% auto;
    padding: 0;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.viajes-modal-header {
    background: #2c3e50;
    color: white;
    padding: 20px;
    border-radius: 8px 8px 0 0;
}

.viajes-modal-body {
    padding: 20px;
}

.viajes-close {
    color: white;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}

.viajes-close:hover {
    opacity: 0.7;
}

/* Responsive */
@media (max-width: 768px) {
    .viajes-packages-grid {
        grid-template-columns: 1fr !important;
    }
    
    .package-details {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .viajes-contact-form {
        margin: 20px 10px;
        padding: 20px;
    }
    
    .viajes-single-package {
        margin: 20px 10px;
    }
}

/* Loading states */
.viajes-loading {
    text-align: center;
    padding: 40px;
    color: #7f8c8d;
}

.viajes-loading::after {
    content: "⏳ Cargando...";
}

/* Error states */
.viajes-error {
    text-align: center;
    padding: 40px;
    color: #e74c3c;
    background: #fdf2f2;
    border-radius: 8px;
    margin: 20px 0;
}

.viajes-error::before {
    content: "⚠️ ";
}

/* Wholesaler Information Styles */
.wholesaler-info {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.wholesaler-info h4 {
    color: #2c3e50;
    margin: 0 0 15px 0;
    padding: 0 0 10px 0;
    border-bottom: 2px solid #3498db;
    font-size: 1.2em;
}

.wholesaler-details p {
    margin: 8px 0;
    line-height: 1.6;
}

.wholesaler-details strong {
    color: #2c3e50;
    font-weight: 600;
}

.pricing-breakdown {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 15px;
    margin: 15px 0;
}

.pricing-breakdown p {
    margin: 5px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pricing-breakdown strong {
    color: #27ae60;
}

.wholesaler-details a {
    color: #3498db;
    text-decoration: none;
}

.wholesaler-details a:hover {
    text-decoration: underline;
}