/*
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;

}
.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;

}

.wp-block-tourseta-sticky-overview-tour.is-position-sticky.sticky-active .sticky-tour-cta {
    padding-left: 16px;
    padding-right: 16px;
}

body
.wp-block-tourseta-sticky-overview-tour.is-position-sticky.sticky-active .tourseta-sticky-price .desktop-price-cta {
    gap: 17px;
}

/* ==========================================================================
   Newsletter Popup — Popup Maker (node 1103:12204)
   ========================================================================== */

/* Popup Maker container: exact Figma dimensions */
#popmake-3155.pum-container {
    background: var(--wp--preset--color--tour-neutral-10, #f8f3ed);
    border-radius: 24px;
    padding: 16px 16px 16px 48px;
    width: 100%;
    height: 440px;
    max-width: 864px !important;
    box-sizing: border-box;
    overflow: hidden;
}

/* Popup Maker close button — uses close.svg */
#popmake-3155 .pum-close {
    position: absolute !important;
    top: 20px !important;
    right: 20px !important;
    width: 32px !important;
    height: 32px !important;
    padding: 0 !important;
    background: url('/wp-content/themes/tourseta-child/images/close.svg') center / cover no-repeat !important;
    border: none !important;
    border-radius: 50% !important;
    font-size: 0 !important;       /* hide "CLOSE" text */
    color: transparent !important;
    cursor: pointer !important;
    z-index: 2 !important;
    transition: opacity 0.2s ease !important;
}

#popmake-3155 .pum-close:hover {
    opacity: 0.75 !important;
}

/* pum-content: flex row matching Figma layout */
#popmake-3155 .pum-content {
    display: flex !important;
    align-items: center !important;
    gap: 48px !important;
    width: 100% !important;
    height: 408px !important; /* 440px container - 16px top - 16px bottom padding */
    box-sizing: border-box !important;
}

/* Left content column */
.twt-newsletter-content {
    display: flex;
    flex-direction: column;
    gap: 32px;
    min-width: 352px;
    width: 368px;
    flex-shrink: 0;
}

body .wpcf7-form input[type="submit"]:disabled  {
    opacity: 1;
}

/* Text area */
.twt-newsletter-text {
    display: flex;
    flex-direction: column;
    gap: 16px;
    text-align: center;
}

.twt-newsletter-heading {
    font-family: var(--wp--preset--font-family--open-sans);
    font-weight: 700;
    font-size: 28px;
    line-height: 1.4;
    margin: 0;
    color: var(--wp--preset--color--neutral-140);
}

.twt-newsletter-subtext {
    font-family: var(--wp--preset--font-family--open-sans);
    font-weight: 400;
    font-size: 16px;
    line-height: 1.5;
    margin: 0;
    color: var(--wp--preset--color--neutral-140);
}

/* Form */
.twt-newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.twt-newsletter-fields {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.twt-newsletter-input {
    background: var(--wp--preset--color--neutral-00);
    border: 1px solid var(--wp--preset--color--tour-neutral-30);
    border-radius: 12px;
    height: 44px;
    padding: 10px 12px;
    font-family: var(--wp--preset--font-family--open-sans);
    font-size: 16px;
    line-height: 1.5;
    color: var(--wp--preset--color--neutral-140);
    width: 100%;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    color: var(--wp--preset--color--neutral-80);
    font-weight: 300;
}

.twt-newsletter-input::placeholder {
    color: var(--wp--preset--color--neutral-80);
}



.twt-newsletter-submit {
    background: var(--wp--preset--color--primary-100);
    border: none;
    border-radius: 12px;
    height: 44px;
    padding: 9px 24px;
    font-family: var(--wp--preset--font-family--open-sans);
    font-weight: 700;
    font-size: 16px;
    line-height: 1.5;
    color: var(--wp--preset--color--neutral-00);
    width: 100%;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.twt-newsletter-submit:hover {
    opacity: 0.88;
}

/* CF7 wrappers inside newsletter popup */
#popmake-3155 .wpcf7 {
    width: 100%;
}

#popmake-3155 .wpcf7-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

#popmake-3155 .twt-newsletter-fields {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* CF7 wraps each field in a <span> — make them block */
#popmake-3155 .twt-newsletter-fields span.wpcf7-form-control-wrap {
    display: block;
    width: 100%;
}

/* Remove CF7 default form paragraph margins */
#popmake-3155 .wpcf7-form p {
    margin: 0;
}

/* Spinner positioning */
#popmake-3155 .wpcf7 .wpcf7-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
}

/* Response output */
#popmake-3155 .wpcf7-response-output {
    margin: 8px 0 0 !important;
    padding: 6px 12px !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    font-family: var(--wp--preset--font-family--open-sans) !important;
}

/* Right image column */
.twt-newsletter-image {
    flex: 1 0 0;
    align-self: stretch;
    border-radius: 18px;
    overflow: hidden;
    position: relative;
    min-height: 200px;
       

            height: 100%;
                max-width: 100%;
                max-height: 408px;
}

.twt-newsletter-image img {
   
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 18px;
    display: block;
}

/* Responsive */
@media (max-width: 768px) {
    #popmake-3155.pum-container {
            padding: 16px 16px 16px !important;
            max-height: fit-content;
            height: 100%;
        }
    
        #popmake-3155 .pum-content {
            flex-direction: column !important;
            gap: 24px !important;
            height: auto !important;
        }
    
        .twt-newsletter-content {
            min-width: unset;
            width: 100%;
        }
    
        .twt-newsletter-image {
            width: 100%;
            min-height: 220px;
            height: auto;
            flex: unset;
            order: -1;
        }
    
        .twt-newsletter-heading {
    
            font-size: 24px;
    
        }
    
                .twt-newsletter-subtext {
                    font-size: 14px;
                }
        
                .pum-container.twt-form-success {
                    max-height: 440px;
                    padding-top: 45px !important;
                }
                }

/* --- Success state -------------------------------------------------------- */

/* Hide the success panel by default */
.twt-newsletter-success {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 32px;
    width: 100%;
    text-align: center;
    padding: 32px 16px;
}

/* When CF7 sends successfully, swap panels */
#popmake-3155 .pum-content.twt-success-active .twt-newsletter-content,
#popmake-3155 .pum-content.twt-success-active .twt-newsletter-image {
    display: none !important;
}

#popmake-3155 .pum-content.twt-success-active .twt-newsletter-success {
    display: flex;
}

/* Green check circle */
.twt-success-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--wp--preset--color--primary-80, #76CAE5);
    
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.twt-success-icon svg {
    width: 32px;
    height: 32px;
    display: block;
    color: var(--wp--preset--color--neutral-00);
    stroke: currentColor;
}

.twt-success-heading {
    font-family: var(--wp--preset--font-family--open-sans);
    font-weight: 700;
    font-size: 28px;
    line-height: 1.4;
    color: var(--wp--preset--color--neutral-140);
    margin: 0;
}

.twt-success-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.twt-success-text p {
    font-family: var(--wp--preset--font-family--open-sans);
    font-size: 16px;
    line-height: 1.5;
    color: var(--wp--preset--color--neutral-140);
    margin: 0;
}

.twt-success-text p:first-child {
    font-weight: 700;
}

.twt-success-text p:last-child {
    font-weight: 400;
}

.twt-success-close {
    background: var(--wp--preset--color--neutral-00);
    border: 1px solid var(--wp--preset--color--tour-neutral-30);
    border-radius: 12px;
    height: 44px;
    padding: 9px 24px;
    font-family: var(--wp--preset--font-family--open-sans);
    font-weight: 600;
    font-size: 16px;
    line-height: 1.5;
    color: var(--wp--preset--color--neutral-140);
    cursor: pointer;
    width: 100%;
    max-width: 360px;
    transition: opacity 0.2s ease;
}

.twt-success-close:hover {
    opacity: 0.75;
}

/* ==========================================================================
   END Newsletter Popup
   ========================================================================== */

/* Reviews Carousel - Hide cards beyond first 3 before JS loads (prevents FOUC) */
.tourseta-reviews-block .tourseta-reviews-container .review-card {
    display: none !important;
    opacity: 0;
}

.tourseta-reviews-block .tourseta-reviews-container .review-card:nth-child(-n+3) {
    display: flex !important;
    opacity: 1;
}

/* Once JS has initialized (adds class), allow JS to control visibility */
.tourseta-reviews-block.js-initialized .tourseta-reviews-container .review-card {
    display: none !important;
}

.tourseta-reviews-block.js-initialized .tourseta-reviews-container .review-card[style*="display: flex"] {
    display: flex !important;
    opacity: 1;
}
 
