/*
Theme Name: Travolo
Theme URI: https://wordpress.vecurosoft.com/travolo/
Author: Vecurosoft
Description: Travolo - Travel Agency & Tour WordPress Theme
Version: 1.1.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: travolo
Tags: one-column, flexible-header, accessibility-ready, custom-colors, custom-menu, custom-logo, editor-style, featured-images, footer-widgets, rtl-language-support, sticky-post, threaded-comments, translation-ready
*/
@media (max-width: 991px) {
  .testimonial-slider5 {
    margin-bottom: 90px;
  }
}
div.blog-style6 .blog-img,
.blog-style7 .blog-img {
  width: inherit;
}
div.destiniation-layout1 .slick-dots {
  margin-top: 60px;
}
div.blog-style6,
div.blog-style7 {
  box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.1);
}
div.testimonial-slider3 .testi-avater{
  position: relative;
  
}
div.testimonial-slider3.testimonial-slider5 {
  margin-bottom: 0;
}
/* Estilo para el formulario de reserva */
.wte-booking-form {
    background: #f9f9f9;
    border: 1px solid #ddd;
    padding: 30px;
    margin-top: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

/* Mejorar legibilidad del contenido */
.single-trip .entry-title {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #333;
}

.single-trip .entry-content {
    font-size: 16px;
    line-height: 1.8;
    color: #555;
}

/* Formularios del WP Travel Engine */
.wte-booking-form input[type="text"],
.wte-booking-form input[type="email"],
.wte-booking-form select,
.wte-booking-form textarea {
    width: 100%;
    padding: 10px 15px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.wte-booking-form button,
.wte-booking-form input[type="submit"] {
    background-color: #009688;
    color: #fff;
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.wte-booking-form button:hover,
.wte-booking-form input[type="submit"]:hover {
    background-color: #00796b;
}
.searchBoxTggler svg.svg-inline--fa {
    width: 1em;
    height: 1em;
    fill: currentColor;
    color: #000; /* Cambia si usas otro color de íconos */
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    vertical-align: middle;
}

.searchBoxTggler svg path,
.searchBoxTggler svg circle {
    fill: currentColor !important;
}
.searchBoxTggler svg.svg-inline--fa,
i[class^="fa"] {
  font-family: "Font Awesome 5 Free" !important;
  font-weight: 900 !important;
  display: inline-block !important;
  opacity: 1 !important;
  visibility: visible !important;
  color: inherit;
}

add_action('template_redirect', function () {
    if (is_page('redirect-category')) {
        $base = site_url('/new/all-cattegory/');
        $query = [];

        if (isset($_GET['category']) && !empty($_GET['category'])) {
            $query['category'] = sanitize_text_field($_GET['category']);
        }

        if (isset($_GET['directory_type']) && !empty($_GET['directory_type'])) {
            $query['directory_type'] = sanitize_text_field($_GET['directory_type']);
        }

        // Solo redireccionar si hay al menos un parámetro
        if (!empty($query)) {
            wp_redirect(add_query_arg($query, $base));
            exit;
        } else {
            // Si no hay parámetros, redirige al listado completo
            wp_redirect($base);
            exit;
        }
    }
});
