/*
Theme Name: DeTourist
Author: Giuseppe Colonna
Author URI: https://www.fleeex.com/
Description: My first responsive HTML5 theme
Version: 1.0
License: GNU General Public License v3 or later
License URI: http://www.gnu.org/licenses/gpl-3.0.html
*/

:root {
    --navbar-height: 64px;
    --fs-xsmall: 11px;
}

#masthead {height: var(--navbar-height);}

/* DETOURIST STYLE */

/* search */
.searchform input {
    border: 1px solid var(--border-color);
    padding: 1em;
    height: 68px;
}
.search-toggle {
  border: transparent !important;
  background: transparent;
  display: inline-flex;
  gap: 1em;
  padding: .5em;
  font-size: var(--wp--preset--font-size--paragraph) !important;
  cursor: pointer;
}

.search-icon {
    width: 20px;height: 20px;
    background-size: contain;
    background-repeat: no-repeat;
    display: inline-block;
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cg%3E%3Cpath fill='currentColor' d='M17.52,2.48c-1.599-1.599-3.725-2.48-5.987-2.48s-4.388.88-5.987,2.48c-1.599,1.599-2.48,3.725-2.48,5.987,0,1.869.609,3.64,1.72,5.102L0,18.356l1.644,1.644,4.788-4.788c1.463,1.111,3.234,1.72,5.102,1.72,2.262,0,4.388-.88,5.987-2.48,1.599-1.599,2.48-3.725,2.48-5.987s-.88-4.388-2.48-5.987ZM15.876,12.809c-2.395,2.394-6.291,2.394-8.686,0-1.16-1.16-1.799-2.702-1.799-4.343s.639-3.183,1.799-4.343c1.198-1.197,2.77-1.796,4.343-1.796s3.145.599,4.343,1.796c1.16,1.16,1.799,2.703,1.799,4.343s-.639,3.183-1.799,4.343Z'/%3E%3C/g%3E%3C/svg%3E");
}


.search-panel {
    position: fixed;
    top: -100%;
    left: 0;
    width: 100%;
    background: #fff;
    z-index: 9999;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: top 0.5s ease-in-out;
}

.search-panel.active {
    top: 0;
}

.search-close {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 2rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--dark);
}

.search-panel form {
    display: flex;
    justify-content: center;
    margin-top: 50px;
}

/* search */

.site-branding img {
    width: 120px;
    height: auto;
}
/* Badge */
.badge {
    font-size: var(--fs-xsmall);
    padding: 3px 9px 0px;
    background-color: var(--dark);
    color: var(--base);
    margin: 0 2px 2px 0;
    white-space: nowrap;
}
.badge a {
    line-height: 1;
}

.badge.rounded {
    border-radius: 100vw !important;
}
.badge-primary {
    background-color: var(--primary);
    color: var(--bark);
}
.badge-white {
    background-color: #FFFFFF;
    color: var(--bark);
}
/* ISOTOPE FILTERS */
.filter-btn {
    font-size: var(--fs-xsmall);
    background-color: var(--tertiary);
    color: var(--dark);
    transition: all 200ms ease;
    padding: 6px 12px;
    border: transparent;
    border-radius: 100vw;
}
.filter-btn.is_active {
    color: var(--base);
    background-color: var(--dark);
}

/* MEDIA */
.wp-block-media-text.is-image-fill-element>.wp-block-media-text__media {
    height: 100%;
    min-height: 500px !important;
    position: relative;
}


/* SINGLE TOUR */

.heroGallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: zoomInOut 10s ease-in-out infinite;
  transform-origin: center center;
}

@keyframes zoomInOut {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
  }
}



.tour-cta {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary);
    animation: rotate 6s linear infinite;
}

@keyframes rotate {
  from { transform: rotate(0deg);}
  to {transform: rotate(360deg);}
}

.meeting-point-map-repeater {
  /* If you can, remove the inline display:none in PHP. If not, JS above handles it. */
  transition: max-height 0.35s ease;
  overflow: hidden;       /* ensures content is clipped during slide */
  max-height: 0;          /* collapsed by default */
}

.meeting-point-map-repeater.open {
  /* max-height is set dynamically in JS to the exact content height */
}

/* (Optional) smoother feel on maps inside */
.meeting-point-map-repeater > * {
  /* avoid sudden content jump due to margins collapsing */
  margin-top: 0;
}

.detour-card .detour-card-title {
    min-height: 50px;
    display: block;
}

.detour-card .detour-card-title {
    min-height: 48px;
    display: block;
}
@media screen and (max-width: 480px) {
  .detour-card .detour-card-title {
    min-height: 40px;
}
}

/* ISOTOPE */
.excerpt {
  display: -webkit-box;
  -webkit-line-clamp: 2; /* limit to 2 lines */
  -webkit-box-orient: vertical;
  overflow: hidden;
}



/* - - - - - - - - - - - - - - - - - - - - - - - - DETOURIST STYLE */

.alignwide .bokunWidget {
    max-width: var(--wp--style--global--wide-size);
}
/* Logo Navbar */
.site-branding {
    max-width: 140px;
    display: inline-block;
    padding: 1rem 0;
}

body, p, .fs-p {
    font-variation-settings: "wght" 370, "wdth" 100;
    /* -webkit-font-smoothing: antialiased; */
}

h2.fs-p {line-height: 150%;}


strong, b,
h1 strong, .fs-1 strong,
h2 strong, .fs-2 strong,
h3 strong, .fs-3 strong,
h4 strong, .fs-4 strong,
h5 strong, .fs-5 strong,
h6 strong, .fs-6 strong {
    /* -webkit-font-smoothing: antialiased; */
    font-weight: 700 !important;
}

h1, .fs-1,
h2, .fs-2 {
    /* -webkit-font-smoothing: antialiased; */
    font-weight: 100;
}
h3, .fs-3,
h4, .fs-4,
h5, .fs-5,
h6, .fs-6 {
    /* -webkit-font-smoothing: antialiased; */
    letter-spacing: .0012rem;
}

/* Default link style */
a {text-decoration: none;}
p a {text-decoration: underline;
    text-decoration-color: currentColor;
    text-decoration-style: solid;
    text-decoration-thickness: 1px;
    text-underline-offset: 25%;
    color: currentColor;
    opacity: .8;
}

/* Hover style */
p a:hover {
    opacity: 1;
    text-decoration: underline;
    text-decoration-style: dashed;
    text-decoration-thickness: 1px;
}

p.has-regular-font-size a {
    padding-bottom: calc(0.26rem - 2px);
}

.icon-in {
    width: 22px !important;
    height: 22px !important;
    border-radius: 0 !important;
}

.sticky-content {
    position: relative;
    height: auto;
    padding: 110px var(--wp--preset--spacing--20) var(--wp--preset--spacing--20);
    margin-bottom: -8vh;
    z-index: 9;
}


@media (min-width: 992px) { 
    .sticky-content {
        position: absolute;
        height: 100%;
        padding: 0px;
        margin-bottom: 0px;
    }
    .sticky-content .sticky-content-text {
        writing-mode: vertical-lr !important;
        display: block;
        /* margin-left: -10px !important; */
        position: sticky;
        position: -webkit-sticky;
        top: 180px;
        padding: 0 var(--wp--preset--spacing--20) var(--wp--preset--spacing--60) !important;
        line-height: 1;
    }
    .wp-container-core-group-is-layout-1 > :where(.sticky-content):where(*),
    .wp-container-core-group-is-layout-1 > :where(.sticky-content *) {
        margin-left: -10px !important;
    }
}

/* WEB STYLE */
ul.wp-block-list li {
    position: relative;
    padding-left: 28px;
}

ul.wp-block-list li::marker {
    content: "";
}

ul.wp-block-list li::before {
    content: "";
position: absolute;
left: 0; top: 0;
width: 20px;
height: 20px;
background-color: var(--primary);
border-radius: 50%;
}



/* SINGLE */
.lwptoc:first-child {
    margin-top: 0px !important;
}
.hero-post {
    position: relative;
    width: 100%;
    min-height: 100svh;
    display: flex;
    align-items: end;
    justify-content: center;
}
.single-img,
.hero-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    top: 0;
    left: 0;
}
.hero-overlay {
    background-color: #132034;
    opacity: .5;
}

.related-content-img {
    --th-size: calc(3.5rem + 2vw);
    width: var(--th-size);
    height: var(--th-size);
}


/* HELPERS */
.text-shadow {
    text-shadow: 1px 2px 8px #000000c4;
}

/* ICONS */
.arrow {
    width: 32px;
    height: 32px;
    background-color: var(--dark);
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2232%22%20height%3D%2232%22%20viewBox%3D%220%200%2032%2032%22%3E%3Cpolygon%20fill%3D%22black%22%20points%3D%2216%2023.3%202.5%209.8%203.2%209.1%2016%2021.9%2028.8%209.1%2029.5%209.8%2016%2023.3%22%20%2F%3E%3C%2Fsvg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2232%22%20height%3D%2232%22%20viewBox%3D%220%200%2032%2032%22%3E%3Cpolygon%20fill%3D%22black%22%20points%3D%2216%2023.3%202.5%209.8%203.2%209.1%2016%2021.9%2028.8%209.1%2029.5%209.8%2016%2023.3%22%20%2F%3E%3C%2Fsvg%3E");
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-position: center;
    mask-position: center;
}
.arrow.text-primary {background-color: var(--primary);}
.arrow.text-secondary {background-color: var(--secondary);}
.arrow.text-tertiary {background-color: var(--tertiary);}
.arrow.text-white {background-color: var(--white);}

/* SWIPER NAV */
.swiper-button-next:after, .swiper-rtl .swiper-button-prev:after,
.swiper-button-prev:after, .swiper-rtl .swiper-button-next:after {content: '';}
.swiper-button-next .arrow {transform: rotate(-90deg);}
.swiper-button-prev .arrow {transform: rotate(90deg);}

/* FOOTER */
#legal-menu {display: flex;margin: 0;} 
#legal-menu a {padding: 0 .5rem;}


/* FORM / INPUTS */

.download-form {
    display: block;
    width: 100%;
    margin: 0 auto;
    max-width: 100%;
}

input:focus-visible {
    outline: 2px dashed #5bc994;
    }
    /* checkbox custom */
    /* Hide default checkbox */
    .small.crandon-mailchimp-form-terms,
    input[type="checkbox"] {
        appearance: none;
        -webkit-appearance: none;
        -moz-appearance: none;
        width: 16px;
        height: 16px;
        border: 2px solid currentColor;
        border-radius: 4px;
        position: relative;
        cursor: pointer;
        vertical-align: middle;
        margin-right: 8px;
    }

    label {
        font-size: .68rem;
        text-transform: uppercase;
      }
    textarea, input {
        width: 100%;
        max-height: 120px;
        font-family: var(--sans-serif);
        font-size: 1.25rem;
        border: 0 solid transparent;
        border-bottom: 1px solid var(--border-color);
        padding: .5rem 0;
        background-color: transparent;
    }

    textarea{
        border: 1px solid var(--border-color);
    }
      
    input[type="checkbox"]:checked::after {
        content: "";
        position: absolute;
        border: 5px solid transparent;
        background-color: currentColor;
        background-color: #576578;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        border-radius: 50%;
    }
    
    input[type="checkbox"] {
        appearance: none;
        -webkit-appearance: none;
        -moz-appearance: none;
        width: 1rem;
        height: 1rem;
        border: 1px solid currentColor;
        border-radius: 4px;
        position: relative;
        cursor: pointer;
        vertical-align: middle;
        margin-right: 8px;
        border-radius: 50%;
    }

    input[type="submit"] {
        background-color: var(--dark);
        color: white;
        font-size: 1rem;
        padding: 1.5rem;
    }
    .wpcf7-list-item {
        margin-left: 0;
    }

    .wpcf7-select {
        width: 100%;
        padding: .25rem;
    }


    /* FOOTER */

    .social-icon {
        display: inline-flex;
        width: 42px;
        height: 42px;
        align-items: center;
        justify-content: center;
    }

    #cmplz-document, .editor-styles-wrapper .cmplz-unlinked-mode {
        max-width: var(--wp--style--global--content-size) !important;
    }