/*
Theme Name: Tourseta Child
Theme URI: https://tourseta.com
Author: Tourseta
Author URI: https://tourseta.com
Description: Child theme for Tourseta theme - Customize your tour and travel website without modifying the parent theme files.
Version: 1.0.0
Template: tourseta
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tourseta-child
Tags: child-theme, full-site-editing, block-patterns, block-styles, wide-blocks, accessibility-ready, rtl-language-support, translation-ready, custom-colors, custom-menu, custom-logo, editor-style, featured-images, footer-widgets, sticky-post, threaded-comments, blog, portfolio, news, tourism, travel
*/

/* ==========================================================================
   Custom Styles
   ========================================================================== */

/* Add your custom styles below this line */


/* button spinner start */
.tour-range-color-ring {
    color: var(--wp--preset--color--primary-100) !important;
}

.tour-range-color {
    background-color: var(--wp--preset--color--primary-100) !important;
}

/* Custom Contact Form 7 Spinner */
.wpcf7-spinner {
    visibility: visible;
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    margin: 0;
    padding: 0;
    z-index: 10;
    background-color: transparent;
}

body   .wpcf7-form.submitting input[type=submit].tour-button{

   font-size: 0 ;        /* hides the text */
   color: transparent;  /* makes text invisible */
}

body .wpcf7 form .wpcf7-response-output

 {
    margin: 2em .5em 1em;
    padding: .2em 1em;
    border: unset !important;
    position: absolute;
    bottom: -50px;
    margin-left: 0px !important;
    padding-left: 0px !important;
    
}


.wpcf7-spinner::before {
   content: '';
   display: block;
   width: 20px;
   height: 20px;
   position: absolute;
   top: 0;
   left: 0;
   border: 2px solid #fff;
   border-radius: 50%;
   border-top: 2px solid #6DBBD4;
   animation: spin 1000ms linear infinite !important;
   transform-origin: center;
   background-color: transparent;
}

/* Button loading state */
.wpcf7-form .has-spinner {
    position: relative;
}

/* When form is submitting */
.wpcf7-form.submitting .has-spinner {
    color: transparent !important;
    pointer-events: none;
}

.wpcf7-form.submitting .wpcf7-spinner {
    display: block;
}

/* Alternative selectors for different CF7 versions */
.wpcf7-form .has-spinner.wpcf7-submitting {
    color: transparent !important;
    pointer-events: none;
}

.wpcf7-form .has-spinner.wpcf7-submitting .wpcf7-spinner {
    display: block;
}

/* When spinner is visible (CF7 default behavior) */

.wpcf7-spinner:not([style*="display: none"]) + .has-spinner,
.has-spinner:has(.wpcf7-spinner:not([style*="display: none"])) {
    color: transparent !important;
    pointer-events: none;
}

.contact-form-fields p
 {
    position: relative;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes blink {
    0% { opacity: 0.2; }
    50% { opacity: 1; }
    100% { opacity: 0.2; }
}

@media (prefers-reduced-motion: reduce) {
    .wpcf7-spinner::before {
        animation: blink 2000ms ease-in-out infinite;
    }
}
/*  end of button spiiner */
.powered-row
 {
    margin-top: 0px;
    margin-bottom: 0px;
    height: 53px;
    border-top: 1px solid #424242;
    font-family: 'Open Sans';
    font-size: 14px;
    display: flex;
    align-items: center;
    align-content: center;
    box-sizing: border-box;
    gap: 7px;
}

.powered a
 {
    text-decoration: none;
}
.border-t.border-gray-700.pt-6
 {
    border: unset;
}

.wp-block-tourseta-footer a.block.pt-\[30px\]
 {
    padding-top: 0px;
}

.wp-block-tourseta-footer a.block.pt-\[30px\] img
 {
   height: unset !important;
   width: 152px !important;
   object-fit: cover !important;
 }

 .wp-block-tourseta-footer.tsta-footer-block
 {
    margin-left: -1rem !important;
}

/* end footer */

.wp-block-tourseta-all-posts .category-tab.active, .interactive-tour-listings .night-chip.active
 {
    background: var(--wp--preset--color--primary-10);
    border-color: var(--wp--preset--color--primary-20);
    font-weight: 600;
    color: var(--wp--preset--color--neutral-140);
    border: 1px solid var(--wp--preset--color--primary-20);
}

.wp-block-tourseta-all-posts .category-tab, .wp-block-tourseta-all-posts .category-tab:hover, .interactive-tour-listings .night-chip, .interactive-tour-listings .night-chip:hover
 {
    background: var(--wp--preset--color--neutral-grayscale-01) ;
    border: none;
    font-weight: 600;
    color: var(--wp--preset--color--neutral-100);
}

.sort-by-dropdown .sort-dropdown-menu .sort-dropdown-item>div:last-child svg
 {

    color: var(--wp--preset--color--primary-100);
}
.sort-by-dropdown [data-sort-toggle]:hover
 {
    border-color: var(--wp--preset--color--primary-100) !important;
    box-shadow: unset;
}

.destination-checkbox:checked

 {
    background-color: var(--wp--preset--color--primary-100) !important;
    border-color: var(--wp--preset--color--primary-100) !important;
}

#departure-month-calendar-modal-container.dropdown-open .calendar-input-inner
 {
    border-color: var(--wp--preset--color--primary-100) !important;
    box-shadow: 0 0 0 1px var(--wp--preset--color--primary-100) !important;
}

.month-item.selected, button.apply-selection, button.apply-selection:hover {
   background-color: var(--wp--preset--color--primary-100) !important;
}

.interactive-tour-listings .destination-checkbox
 {
    accent-color: var(--wp--preset--color--primary-100) !important;

}

.destination-checkbox:focus {
   outline: none;
   border-color: var(--wp--preset--color--primary-100) !important;
}

/* Focus states matching editor */
.search-where-group:focus-within,
.search-when-group:focus-within {
    outline: 1px solid var(--wp--preset--color--primary-100) !important;
    
}

.rating-stats-container
 {
    background-color: var(--wp--preset--color--tour-neutral-10) !important;
}

.tourseta-reviews-block .review-card {

   border: 1px solid var(--wp--preset--color--tour-neutral-30) !important;

}

.wp-block-tourseta-tour-faqs .border-custom-gray, .wp-block-tourseta-tour-itinerary .border-custom-gray{
   border-bottom: 1px solid var(--wp--preset--color--tour-neutral-30) !important;;
}


.faq-toggle-button, body .contact-form-container .form-input, body .contact-form-container .form-textarea,
.interactive-tour-listings .filter-sidebar aside, .interactive-tour-listings 
#departure-month-calendar-container.dropdown-open.calendar-input-field-container .calendar-input-dropdown

  {
   border: 1px solid var(--wp--preset--color--tour-neutral-30) !important;;
}

.interactive-tour-listings .filter-section {
   border-top: 1px solid var(--wp--preset--color--tour-neutral-30) !important;;
}

.interactive-tour-listings #departure-month-calendar-container.dropdown-open.calendar-input-field-container .calendar-input-inner,
.interactive-tour-listings .calendar-input-field-container .calendar-input-inner

 {
    border: 1px solid  var(--wp--preset--color--tour-neutral-30) !important;;
    box-shadow: 0 0 0 1px  var(--wp--preset--color--tour-neutral-30) !important;;
}

.border-gray-300, .border-gray-50,  body .border-\[\#E8E8E8\], .border-\[\#e8e8e8\], .sort-by-dropdown [data-sort-toggle], .sort-by-dropdown .sort-dropdown-menu
 {
    --tw-border-opacity: 1;
    border-color: var(--wp--preset--color--tour-neutral-30);
}

/* Calendar input styles */
.calendar-input::placeholder {
   font-family: 'Open Sans', sans-serif;
   color:  var(--wp--preset--color--neutral-80) !important;
}

/* Focus styles for better accessibility */
.calendar-input:focus + .calendar-icon svg {
   color: var(--wp--preset--color--primary-100) !important;;
}

/* Icon hover effects */
.search-icon svg path,
.calendar-icon svg path{
    stroke: var(--wp--preset--color--neutral-80);
   
}

/* Icon hover effects */
.search-icon svg:hover path,
.calendar-icon svg:hover path {
    stroke: var(--wp--preset--color--primary-100);
    transition: stroke 0.2s ease;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--wp--preset--color--neutral-80) !important;
}

body .search-placeholder-container input::placeholder {
   color: var(--wp--preset--color--neutral-80) !important;
}

input::placeholder {
   color: var(--wp--preset--color--neutral-80) !important;
}

.text-\[\#979797\]{
   color: var(--wp--preset--color--neutral-90) !important;

}

.ts-pagination .ts-page-arrow{
   --tw-border-opacity: 1;
   border-color: var(--wp--preset--color--tour-neutral-30);
}

.text-neutral-90 {
   color:  var(--wp--preset--color--neutral-90) !important;

}

/* Fix h1 font-weight jumping during Open Sans loading */
h1 {
    /* Consistent font stack with better weight matching */
    font-family: "Open Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;

    /* Stabilize font metrics and weight rendering */
    font-size-adjust: 0.52; /* Adjusted for better weight matching */
    font-synthesis: weight; /* Allow browser to synthesize missing weights */

    /* Preserve original font-weight from inline styles but make it stable */
    font-weight: inherit;

    /* Convert percentage line-height to stable unitless value */
    line-height: 1.4 !important;

    /* Smooth any remaining font changes */
    transition: opacity 0.2s ease-out;

    /* Hardware acceleration and optimized rendering */
    transform: translateZ(0);
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Alternative: Force specific weights to prevent jumping */
h1[style*="font-weight: 500"] { font-weight: 500 !important; }
h1[style*="font-weight: 600"] { font-weight: 600 !important; }
h1[style*="font-weight: 700"] { font-weight: 700 !important; }

/* Smooth fade-in for h1 on page load */
h1 {
    animation: fadeInSmooth 0.4s ease-out;
}

@keyframes fadeInSmooth {
    from {
        opacity: 0;
        transform: translateZ(0) translateY(2px);
    }
    to {
        opacity: 1;
        transform: translateZ(0) translateY(0);
    }
}




.wp-block-tourseta-trending-posts .post-excerpt, .wp-block-tourseta-trending-posts-editor .post-excerpt, 
.wp-block-tourseta-all-posts .post-excerpt

 {
   color:  var(--wp--preset--color--neutral-90) !important;

}


 
