/*
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: 2.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: tripusafrance, 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 */

/* Custom CSS Variables */
:root {
	--header-logo-height: 44px;
	--header-logo-width: 252px;
}


/* 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: 187px !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;
}

.flex-referse>.block>.flex {
    display: flex;
    flex-direction: row-reverse;
}
 
.flex-referse>.flex {
    display: flex;
    flex-direction: row-reverse;
}

.no-title-spacing>.flex {
    margin: 0px;
}

body .tour-button,
body .wpcf7-form input[type=submit].tour-button,
body .custom-button,
body .tour-button.header-button,
body .newsletter-submit-button,
body .tour-range-color,
body .ts-page-btn.current,
body .page-btn.current,
body .orange-button {
    border-radius: 32px !important;
}

.wp-block-tourseta-sticky-overview-tour .bg-white {
    background: transparent !important;

}

.tour-overview-background {
    padding-top: 50px !important;
    background-size: contain !important;
    padding-bottom: 80px !important;
}

body .wp-block-tourseta-sticky-overview-tour .desk-price {

    text-align: right;
    font-variant-numeric: lining-nums proportional-nums;
    font-family: Cormorant;
    font-size: 44px;
    font-style: normal;
    font-weight: 700;
    line-height: 120%;
}

.desktop-price-cta, .sticky-mobile-actions {
    font-family: "Nunito Sans";
}

 .image-background {
     padding-top: 50px !important;
     background-size: contain !important;
     padding-bottom: 80px !important;
 }

 .highlight-card h4 {
     font-size: 16px !important;
     font-family: Nunito Sans !important;
     font-weight: 800 !important;
     font-style: ExtraBold;
     font-size: 16px;    
     line-height: 150%;
     letter-spacing: 0%;
 }

 body .highlight-card-height {
     height: 448px !important;
     max-height: 448px !important;
     overflow: hidden;
 }

 body .highlight-card .p-4 {
     flex: 1;
     min-height: 0;
     max-height: 244px;
     overflow: hidden;
     display: flex;
     flex-direction: column;
 }
body .highlight-card .p-4 p{
    display: -webkit-box;
    -webkit-line-clamp: 10;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    min-height: 0;
}
body .custom-image-text .text-text-default {
    color: #51493F !important;
}
 body .wp-block-tourseta-stats h3 {
     font-size: 54px !important;
     font-weight: 700 !important;
     font-family: var(--wp--preset--font-family--cormorant) !important;
 }

 body .wp-block-tourseta-stats h4 {
     font-size: 16px !important;
     font-family: 'Nunito Sans' !important;
 }
 body .wp-block-tourseta-stats  {
     font-family: 'Nunito Sans' !important;
 }

 body .custom-highlight-cards .highlight-card-height  {
     height: 348px !important;
 }

 body .contact-form-container .form-textarea {
 
     min-height: 142px;
 }

 div#wp-block-tourseta-feedback-form img {
     -o-object-fit: contain;
     object-fit: contain;
 }

 .tourseta-grid-4 {
     padding: 52px 0px !important;

 }

 .tour-overview-full-background::after{
    display: none;
 }

/* Newsletter block styles - Frontend only (not in editor) */
body:not(.wp-admin) .wp-block-tourseta-newsletter {
    min-height: 322px !important;
    height: 322px !important;
}

body:not(.wp-admin) .wp-block-tourseta-newsletter img {
    min-height: 322px !important;
    height: 322px !important;
}

body:not(.wp-admin) .wp-block-tourseta-newsletter .stm-overlay {
    top: 0px !important;
    bottom: 0px !important;
}

body:not(.wp-admin) .wp-block-tourseta-newsletter .newsletter-submit-button {
    width: unset;
    padding: 9px 24px;
}

body:not(.wp-admin) .wp-block-tourseta-newsletter .infotitle {
    font-size: 38px !important;
    font-family: var(--wp--preset--font-family--cormorant) !important;
}

 .tour-highlight-full-background::after {
     content: '';
     position: absolute;
     bottom: 0;
     left: 0;
     width: 100%;
     height: 40px;
     background: var(--wp--preset--color--neutral-grayscale-10, #FAF6EF);
     mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M0,0V46.29c47.79,22.2,103.59,32.17,158,28,70.36-5.37,136.33-33.31,206.8-37.5C438.64,32.43,512.34,53.67,583,72.05c69.27,18,138.3,24.88,209.4,13.08,36.15-6,69.85-17.84,104.45-29.34C989.49,25,1113-14.29,1200,52.47V0Z' fill='%23000'/%3E%3C/svg%3E");
     -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M0,0V46.29c47.79,22.2,103.59,32.17,158,28,70.36-5.37,136.33-33.31,206.8-37.5C438.64,32.43,512.34,53.67,583,72.05c69.27,18,138.3,24.88,209.4,13.08,36.15-6,69.85-17.84,104.45-29.34C989.49,25,1113-14.29,1200,52.47V0Z' fill='%23000'/%3E%3C/svg%3E");
     mask-size: 100% 100%;
     -webkit-mask-size: 100% 100%;
     mask-repeat: no-repeat;
     -webkit-mask-repeat: no-repeat;
     transform: translateY(100%);
     z-index: 1;
     pointer-events: none;
 }
 .tour-highlight-full-background .wp-block-tourseta-highlights {
     padding-bottom: 10px !important;

 }
 @media (max-width: 1500px) {
  

     .image-background {
       
         background-size: cover !important;
      
     }
 }
  @media (max-width: 1270px) {
      .flex-referse>.flex {

          flex-direction: column;
      }
  }
 /* Tablet: 3 columns */
 @media (max-width: 1024px) {
     .tourseta-grid-4 {
         grid-template-columns: repeat(3, minmax(0, 1fr));
     }

     .tourseta-columns-4 {
         padding: 0px var(--wp--preset--spacing--55, 2rem);

     }
 }

 /* Mobile: 2 columns */
 
 @media (min-width: 1024px) {
    .tour-overview-full-background h2.mb-2.btitle-28.font-bold.leading-tight.tracking-normal.mt-0.md\:max-w-\[400px\].lg\:max-w-\[600px\] {
            max-width: 1000px;
        }

         .wp-block-tourseta-trending-posts .posts-grid,
         .wp-block-tourseta-trending-posts-editor .posts-grid {
            grid-template-columns: repeat(3, 1fr) !important;
         }
 }

 @media (max-width: 1023px) {
     .tour-overview-background {
         padding-top: 50px !important;
         background-size: cover !important;
         padding-bottom: 100px !important;
     }

     .image-background {
         padding-top: 0px !important;
         background-size: cover !important;
         padding-bottom: 150px !important;
     }
 }

 @media (min-width: 768px) {
    .tour-overview-full-background h2.mb-2.btitle-28.font-bold.leading-tight.tracking-normal.mt-0.md\:max-w-\[400px\].lg\:max-w-\[600px\] {
            max-width: 1000px;
       }
 }

 @media (max-width: 757px) {
     .tourseta-grid-4 {
         grid-template-columns: repeat(2, minmax(0, 1fr));
     }

     .tourseta-columns-4 {
         padding: 0px var(--wp--preset--spacing--40, 1rem) !important;

     }
 }
/* Two-Three-Two Grid Layout (2-3-2 pattern) */
.two-three-two-grid .tourseta-media-gallery-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
}

.two-three-two-grid .tourseta-media-gallery-grid>div {
    grid-column: span 3;
    /* Default: 2 columns per row */
}

/* Middle row: 3 columns (items 3, 4, 5 in each 7-item cycle) */
.two-three-two-grid .tourseta-media-gallery-grid>div:nth-child(7n+3),
.two-three-two-grid .tourseta-media-gallery-grid>div:nth-child(7n+4),
.two-three-two-grid .tourseta-media-gallery-grid>div:nth-child(7n+5) {
    grid-column: span 2;
}

@media (max-width: 800px) {
    .wp-block-tourseta-newsletter, .wp-block-tourseta-newsletter img {
            min-height: 560px !important;
            height: 560px !important;
        }
   
        .wp-block-tourseta-newsletter .stm-overlay {
            top: 0px !important;
            bottom: 0px !important;
        }
    
        .wp-block-tourseta-newsletter .newsletter-submit-button {
            width: 100%;
        }
}

@media (max-width: 1023px) {
    .two-three-two-grid .tourseta-media-gallery-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .two-three-two-grid .tourseta-media-gallery-grid>div {
        grid-column: span 1 !important;
    }

    /* 5th item full width in each 7-item cycle */
    .two-three-two-grid .tourseta-media-gallery-grid>div:nth-child(7n+5) {
        grid-column: span 2 !important;
    }


}

@media (min-width: 768px) and (max-width: 1023px) {
    body .wp-block-tourseta-media-gallery .tourseta-media-gallery-grid.media-gallery-grid-3-items.odd-count [data-media-item]:last-child {
        grid-column: span 1 !important;
    }
}
@media (min-width: 768px) and (max-width: 1023px) {
    body .wp-block-tourseta-media-gallery.media-last-mob-full .tourseta-media-gallery-grid.media-gallery-grid-3-items.odd-count [data-media-item]:last-child {
        grid-column: span 2 !important;
    }
}

/* Mobile: 2-2-1-2 pattern */
@media (max-width: 767px) {
    .two-three-two-grid .tourseta-media-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .two-three-two-grid .tourseta-media-gallery-grid>div {
        grid-column: span 1;
    }

    /* 5th item full width in each 7-item cycle */
    .two-three-two-grid .tourseta-media-gallery-grid>div:nth-child(7n+5) {
        grid-column: span 2;
    }

    body .wp-block-tourseta-media-gallery .tourseta-media-gallery-grid.media-gallery-grid-3-items.odd-count [data-media-item]:last-child {
        grid-column: span 1 !important;
    }
        body .wp-block-tourseta-media-gallery.media-last-mob-full .tourseta-media-gallery-grid.media-gallery-grid-3-items.odd-count [data-media-item]:last-child {
            grid-column: span 2 !important;
        }

    /* Image height 280px for mobile */
    .two-three-two-grid .tourseta-media-gallery-grid .h-\[390px\] {
        height: 280px !important;
    }

    .two-three-two-grid .tourseta-media-gallery-grid .min-h-\[390px\] {
        min-height: 280px !important;

    }

    .wp-block-tourseta-media-gallery .tourseta-media-gallery-grid [data-media-item] .aspect-square {
        height: 280px !important;
        /* aspect-ratio: unset !important; */
    }
}