/* Estilos adicionales para el formulario con pestañas */

/* Contenido de las pestañas */
.form-tab-content {
    display: none;
}

.form-tab-content.active {
    display: block;
}

/* Mejoras en el formulario existente */
.booking-form select.form-control {
    width: 100%;
    padding: 12px 15px 12px 40px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 15px;
}

.booking-form select.form-control:focus,
.booking-form input.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(23, 92, 132, 0.1);
}

/* Ajustes para el botón de reserva en el hero */
.hero-content .btn {
    transition: transform 0.3s, box-shadow 0.3s;
}

.hero-content .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Validación de formularios */
.booking-form input:invalid,
.booking-form select:invalid {
    border-color: #ff6b6b;
}

/* Ajustes responsive para formularios */
@media (max-width: 768px) {
    .booking-form {
        grid-template-columns: 1fr !important;
    }
    
    .form-group {
        width: 100%;
    }
}

/* Estilos para selects con opciones de provincias/lugares */
.location-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* Animación suave para cambio de pestañas */
.form-tab-content {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s, transform 0.3s;
}

.form-tab-content.active {
    opacity: 1;
    transform: translateY(0);
}

/* Mejorar interactividad de las pestañas */
.tab {
    transition: all 0.3s ease;
}

.tab:not(.active):hover {
    opacity: 0.9;
    background-color: rgba(255, 255, 255, 0.1);
}

/* Estilos para los campos de número */


/* Mejoras visuales para el formulario */
.icon-input:focus-within i {
    color: var(--primary-color);
}

/* Estilos para campos de fecha */
input[type="date"].form-control {
    color: var(--text-color);
    padding-right: 15px;
}

input[type="date"].form-control::-webkit-calendar-picker-indicator {
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.3s;
}

input[type="date"].form-control::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
}

/* Estilos para el botón de búsqueda */
.booking-form button[type="submit"] {
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.booking-form button[type="submit"]:hover {
    background-color: #124a6a;
    transform: translateY(-2px);
}

.booking-form button[type="submit"] i {
    font-size: 1.1rem;
}

/* Mejora visual para selección de radio buttons */
.radio-container {
    cursor: pointer;
    user-select: none;
    transition: color 0.3s;
}

.radio-container:hover {
    color: var(--primary-color);
}

.radio-container input {
    cursor: pointer;
    margin-right: 5px;
}

/* Tooltip para ayudar a los usuarios */
.form-tooltip {
    position: relative;
    display: inline-block;
    margin-left: 5px;
    color: var(--primary-color);
    cursor: pointer;
}

.form-tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

.tooltip-text {
    visibility: hidden;
    width: 200px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 10px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 0.85rem;
    line-height: 1.4;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.tooltip-text::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #333 transparent transparent transparent;
}

/* Animación de carga para cuando se envíe el formulario */
.booking-form button[type="submit"].loading {
    position: relative;
    color: transparent;
}

.booking-form button[type="submit"].loading::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 1s infinite linear;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Mensaje de confirmación cuando la búsqueda se realiza con éxito */
.search-success {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: #4CAF50;
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 10px;
    transform: translateY(-100px);
    opacity: 0;
    transition: transform 0.3s, opacity 0.3s;
}

.search-success.show {
    transform: translateY(0);
    opacity: 1;
}

.search-success i {
    font-size: 1.5rem;
}

/* Suave desplazamiento cuando se hace clic en el botón de reserva */
html {
    scroll-behavior: smooth;
}

/* Diseño para las tarjetas de destinos populares */
.popular-destinations {
    padding: 60px 0;
    background-color: var(--gray-light);
}

.destinations-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.destination-card {
    background-color: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
}

.destination-card:hover {
    transform: translateY(-5px);
}

.destination-image {
    height: 180px;
    position: relative;
}

.destination-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.destination-name {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    padding: 20px;
    color: white;
    font-weight: 600;
}

.destination-content {
    padding: 20px;
}

.destination-content h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.destination-content p {
    color: var(--gray-dark);
    margin-bottom: 15px;
}

.destination-card .btn {
    width: 100%;
    text-align: center;
}

/* Ajustes responsive para destinos populares */
@media (max-width: 992px) {
    .destinations-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .destinations-grid {
        grid-template-columns: 1fr;
    }
}

/* Add this to your styles/new.css file */

/* Tours Grid */
.tours-container {
    padding: 30px 0;
}

.tours-header {
    text-align: center;
    margin-bottom: 30px;
}

.tours-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
}

.tours-header p {
    color: #666;
    max-width: 700px;
    margin: 0 auto;
}

.tours-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.tour-card {
    border-radius: 10px;
    overflow: hidden;
    background-color: #fff;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tour-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.tour-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

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

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

.tour-category {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background-color: rgba(0, 123, 255, 0.8);
    color: #fff;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.discount-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #ff5722;
    color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 700;
}

.tour-content {
    padding: 20px;
}

.tour-content h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #333;
    line-height: 1.3;
}

.tour-meta {
    display: flex;
    margin-bottom: 10px;
    color: #666;
    font-size: 14px;
}

.tour-duration {
    margin-right: 15px;
}

.tour-duration i, .tour-location i {
    margin-right: 5px;
    color: #007bff;
}

.tour-excerpt {
    color: #666;
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 15px;
    height: 60px;
    overflow: hidden;
}

.tour-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

.tour-price {
    display: flex;
    flex-direction: column;
}

.price-amount, .price-discount {
    font-size: 20px;
    font-weight: 700;
    color: #ff5722;
}

.price-regular {
    text-decoration: line-through;
    color: #999;
    font-size: 14px;
}

.price-type {
    font-size: 12px;
    color: #666;
}

.view-all-container {
    text-align: center;
    margin-bottom: 40px;
}

.view-all-container .btn {
    padding: 10px 25px;
}

/* Categories Grid */
.tours-categories {
    margin-top: 40px;
}

.tours-categories h3 {
    text-align: center;
    margin-bottom: 25px;
    font-size: 1.8rem;
    font-weight: 700;
    color: #333;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
}

.category-card {
    text-align: center;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease;
    color: #333;
    text-decoration: none;
}

.category-card:hover {
    transform: translateY(-5px);
    color: #007bff;
}

.category-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 15px;
    border: 3px solid #f5f5f5;
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-content h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
}

.tour-count {
    font-size: 12px;
    color: #666;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .tours-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 576px) {
    .tours-grid {
        grid-template-columns: 1fr;
    }
    
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}