/* 
Theme Name: Lake District Hub Child Theme
Description: Theme For Lake District Hub
Author: We Are Digital
Author URI: https://wearedgtl.co.uk
Template: kadence
Version: 1.0
Text Domain: kadence-child
License: GNU General Public License v3 or later.
License URI: https://www.wearedgtl.co.uk
*/

/* Add your custom styles here */

@font-face {
    font-family: 'Museo';
    src: url('/wp-content/themes/lake-district-hub-child/assets/fonts/Museo300-Regular.otf') format('otf'),
    url('/wp-content/themes/lake-district-hub-child/assets/fonts/Museo700-Regular.otf') format('otf');
    font-weight: normal;
    font-style: normal;
}

/* Prevent body scrolling - used when the home page splash image element is on display */
/*body.no-scroll {*/
/*    overflow: hidden;*/
/*}*/

/*Handle the change from white to black menu items after the splash image has gone off screen */
/*body.home.no-scroll header .header-logo.black,*/
/*body.home.no-scroll header.menu-is-open .header-logo.black,*/
/*body.home header.menu-is-open .header-logo.black,*/
/*body:not(.home) header .header-logo.black{*/
/*    display:none;*/
/*}*/
/*body.home.no-scroll header.menu-is-open .header-logo.white {*/
/*    display:block;*/
/*}*/
/*body.home:not(.no-scroll) header:not(.menu-is-open) .header-logo.black {*/
/*    display:block;*/
/*}*/
/*body.home:not(.no-scroll) header:not(.menu-is-open) .header-logo.white {*/
/*    display:none;*/
/*}*/

/*body.home:not(.no-scroll) header:not(.menu-is-open) .menu-toggle p,*/
/*body.home:not(.no-scroll) header:not(.menu-is-open) .menu-toggle .elementor-icon{*/
/*    color:black;*/
/*}*/

/* Header and Menu styling */
header {
    z-index:10000;
}

/* Initial state of the menu content - hidden and ready to animate */
.header-menu-content {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-in-out, opacity 0.4s ease-in-out;
}

.menu-toggle {
    cursor:pointer;
}
/* Initially hide the 'Close' toggle */
.menu-toggle.close {
    display: none;
}

/* When the header has the 'menu-is-open' class, show the content */
.elementor-125.menu-is-open .header-menu-content {
    max-height: 400px; /* Adjust this value if your menu content is taller */
    opacity: 1;
}

/* When the header has the 'menu-is-open' class, show 'Close' and hide 'Menu' */
.elementor-125.menu-is-open .menu-toggle.close {
    display: flex;
}
.elementor-125.menu-is-open .menu-toggle.open {
    display: none;
}

/* Optional: style for the menu items to prevent a jumpy effect */
.elementor-125.menu-is-open .header-menu-content .elementor-nav-menu--main {
    padding-top: 20px;
}
.elementor-125.menu-is-open .e-parent {
    background-color: #022c33;
}

.header-account-icon-list .elementor-icon-list-item {
    flex-direction:row-reverse;
}
.vertical-divider {
    border-right:1px solid white;
    width:2px;
    height:100%;
}
.header-menu-2-container .menu-item a.elementor-item {
    padding-left:0;
}

/* Home page splash image container element styling */
/*.home-splash-image-container {*/
/*    !* Positions the element as a full-page overlay *!*/
/*    position: fixed;*/
/*    top: 0;*/
/*    left: 0;*/
/*    width: 100%;*/
/*    height: 100vh;*/

/*    !* Ensures it appears on top of all other content *!*/
/*    z-index: 9999;*/

/*    !* Hides any overflow from the animation *!*/
/*    overflow: hidden;*/

/*    !* The transition for the slide-up effect *!*/
/*    transition: transform 1s ease-in-out;*/
/*}*/
/*!* This class is added by JavaScript to trigger the slide-up animation *!*/
/*.splash-hide {*/
/*    transform: translateY(-100vh); !* Moves the element up and off-screen *!*/
/*}*/

/* Handle the Refine search filter contents */
/* Initially hide the dropdown content */
/*.refine-filter-content {*/
/*    max-height: 0;*/
/*    opacity: 0;*/
/*    overflow: hidden;*/
/*    position: absolute;*/
/*    z-index: 10;*/
/*    top: 100%; !* Positions the content just below the toggle button *!*/
/*    left: 0;*/
/*    width: 100%;*/

/*    transition: all 0.4s ease-in-out;*/
/*}*/

/*!* Style the toggle button to be relative to the dropdown content *!*/
/*.refine-action.refine-search-filter.dropdown-toggle {*/
/*    position: relative;*/
/*    cursor: pointer;*/
/*}*/

/*!* Initial state of the SVG icon: pointing down *!*/
/*.refine-action.refine-search-filter.dropdown-toggle svg {*/
/*    transform: rotate(180deg);*/
/*    transition: transform 0.4s ease-in-out;*/
/*}*/

/*!* When the parent has the 'refine-open' class, show the content *!*/
/*.refine-container.refine-open .refine-filter-content {*/
/*    max-height: 500px; !* Use a value large enough for your content *!*/
/*    opacity: 1;*/
/*}*/

/*!* When the parent has the 'refine-open' class, flip the icon back up *!*/
/*.refine-container.refine-open .refine-action.refine-search-filter.dropdown-toggle svg {*/
/*    transform: rotate(0deg);*/
/*}*/

/* Sets up the base transition for the container's height and background */
.refine-container {
    transition: all 0.4s ease-in-out;
    position: relative;
}

/* Initially hide the dropdown content */
.refine-container .refine-filter-content {
    position: absolute;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.4s ease-in-out;
    margin:0;
    padding:0;
}

/* Style the toggle button to be relative to the dropdown content */
.refine-container  .refine-action.refine-search-filter.dropdown-toggle {
    position: relative;
    cursor: pointer;
}

/* Initial state of the SVG icon: pointing down */
.refine-container  .refine-action.refine-search-filter.dropdown-toggle svg {
    transform: rotate(180deg);
    transition: transform 0.4s ease-in-out;
}

/* When the parent has the 'refine-open' class, expand its height and change background */
.refine-container.refine-open {
    /* Set the background to be the same as the parent */
    background-color: inherit;
    /* You may need to set a specific height if the content is not a fixed size.
       Using max-height: max-content can work but might not be fully supported.
       A large fixed value is a safer option. */
    height: auto;
    max-height: 800px; /* Adjust this value if your content is taller */
}

/* When the parent has the 'refine-open' class, show the content */
.refine-container.refine-open .refine-filter-content {
    max-height: 500px; /* A safe value for the dropdown content itself */
    opacity: 1;
    height:auto;
    z-index: 10;
}

/* When the parent has the 'refine-open' class, flip the icon back up */
.refine-container.refine-open .refine-action.refine-search-filter.dropdown-toggle svg {
    transform: rotate(0deg);
}

/* Style the new container to position the icon correctly */
.refine-input-container {
    position: relative;
    display: inline-block;
}

/* Style the input field itself */
.refine-input {
    width: 100%;
    padding-right: 30px; /* Make space for the icon */
}

/* Add the dropdown icon as a pseudo-element */
.refine-input-container::after {
    content: '';
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%) rotate(180deg); /* Icon pointing down */
    width: 14px;
    height: 14px;

    /* Using a data URI to embed the SVG directly in CSS */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath d='M12 4L3 20H21L12 4Z' fill='%23ffffff'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;

    pointer-events: none; /* Allows clicks to pass through to the input */
}

.refine-filter-heading-title {

    font-family: 'Museo';

}

/* Filter - Location Checkbox */
.location-flex-container {
    display: inline-flex;
    flex-direction: row;
    flex-wrap: wrap;
}

.location-item {
    display: flex;
    flex-direction: row;
}

.location-item label {
    color: white;
    font-size: 12px;
    font-weight:500;
    margin-right:8px;
    line-height:25px;
}

.location-item input {
    margin-right: 4px;
}

.location-item input[type="checkbox"] {
    /* Hide the default checkbox */
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;

    /* Set the custom box properties */
    width: 14px; /* Size of the white square */
    height: 14px;
    background-color: white;

    /* The inner border around the checkbox */
    border: 1px solid white;
    border-radius: 3px;

    /* The concentric border with a 2px gap */
    outline: 1px solid white; /* The outer border */
    outline-offset: 2px; /* The gap between the border and outline */

    position: relative;
    cursor: pointer;
    margin-right: 8px;
}

/* Style the checkmark when the box is checked */
.location-item input[type="checkbox"]:checked::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
    width: 5px;
    height: 10px;
    border: solid black;
    border-width: 0 2px 2px 0;
}

/*Styling for Home page category cards and overlay effects */
.home .category-card {
    overflow: hidden;
    position: relative;
    transition: all 0.4s ease;
}

/* Base style for background image */
.category-card .elementor-background {
    transition: transform 0.4s ease;
}

/* Arcing overlay pseudo-element */
.category-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%; /* Initial height, adjust as needed */
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent); /* The light effect */
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s ease-out;
    border-radius: 50% 50% 0 0 / 100% 100% 0 0; /* Arcing shape */
    transform: scale(0.1);
    transform-origin: bottom center;
}

/* Hover effect for the entire card */
.category-card:hover .elementor-background {
    /* Enlarge the image on hover */
    transform: scale(1.1);
}

.category-card:hover::after {
    /* Animate the overlay to become visible and fill the card */
    opacity: 1;
    transform: scale(1.5); /* Scale up to fill the card */
}

.category-card .elementor-heading-title {
    color: white;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
    position: relative;
    z-index: 10;
}

.refine-types-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px; /* Provides spacing between the buttons */
    align-items: center;
}

.refine-type-item {
    height:35px;
}
.refine-type-button {
    /* Basic button styling */
    display: inline-block;
    padding: 8px 16px;
    background-color: #d9d9d9;
    color: #404040;
    border: 1px solid #404040;
    border-radius: 25px;
    cursor: pointer;
    text-decoration: none;
    font-weight: 500;
    font-size:12px;
    transition: background-color 0.2s, color 0.2s;
}
.refine-type-button.active {
    /* Active button styling */
    display: inline-flex;
    align-items: center;
    background-color: var(--cat-color) !important;
    border: 1px solid var(--cat-color) !important;
    color: #fff;
    transition: background-color 0.2s, color 0.2s;
}
.refine-type-button.active::after {
    content: 'x';
    width:13px;
    height:13px;
    border-radius: 50%;
    color:#fff;
    margin-left:10px;
    display: inline-flex;
    justify-content:center;
    align-items:center;
}

.refine-type-button:not(.active):hover {
    /* Hover effect */
    background-color: var(--cat-color) !important;
    border: 1px solid var(--cat-color) !important;
	color: #fff;
}

.share-save-icon-list .elementor-icon-list-icon i {
    color:black;
}
.share-save-icon-list .elementor-icon-list-text {
    text-decoration: underline;
}

/* Text Image Repeater blocks */
.text-image-block {
    display: flex;
    align-items: center;
    gap: 0;
}

.text-image-block .image-column {
    flex-basis: 50%;
    height:560px;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
}

.text-column-content-container {
    width:476px;
}

.text-image-block .text-column {
    flex-basis: 50%;
    background-color: #022C33;
    align-content: center;
    align-items: center;
    display: inline-flex;
    justify-content: center;
}

.text-image-block .text-column-title {
    font-family: Museo;
    font-weight: 600;
    font-size: 40px;
    line-height: 44px;
    color:white;
}
.text-image-block .text-column-content {
    font-family: Archivo;
    font-weight: 300;
    font-size: 16px;
    line-height: 22.4px;
    color:white;
}

/* Default layout: Image on the left */
.text-image-block.image-left-block {
    flex-direction: row;
}

/* Switch the layout: Image on the right */
.text-image-block.image-right-block {
    flex-direction: row-reverse;
}

/* Optional: Add a media query for mobile responsiveness */
@media (max-width: 768px) {
    .text-image-block .text-image-block {
        flex-direction: column !important;
    }
}

/*Apply Now form */
.apply-now-form input,
.apply-now-form textarea {
    padding-left:2rem;
}

.loop-card-container {
    min-width: var(--content-width);
}
.loop-card-container .loop-card-date-display {
    font-family: "Archivo";
    font-weight:400;
    font-size:14px;
    color: #F5F7F7;
}

/* single post styling */
.single-post-hero-container {
    max-height: 850px;
    overflow: hidden;
}
.single-post-hero-container  .hero-text-overlay {
    transform: translate(-50%, -50%);
    width: 100%;
}

.single-post-hero-container .hero-slider-container {
    height: 850px;
    width: 100vw;
}
.single-post-hero-container .hero-slider-container .heroSwiper {
    height: 850px;
    width: 100%;
}
.single-post-hero-container .hero-slider-container .heroSwiper .swiper-slide {
    height:850px;
    background-position: center center;
    background-size:cover;
    background-repeat: no-repeat;
}
.heroSwiper .swiper-pagination .swiper-pagination-bullet {
    height: 18px;
    width: 18px;
    background: transparent;
    border: solid 2px white;
    opacity:1;
}
.heroSwiper .swiper-pagination .swiper-pagination-bullet-active {
    height: 18px;
    width: 18px;
    background: white;
    border: solid 2px white;
}

.search-result-sorting select option{
    color: #022c33;
}

.blog-item-block .blog-item-title {

    font-family: 'Museo';
    font-style: normal;
    font-weight: 600;
    font-size: 27px;
    line-height: 22px;

    color: #15364F;
    margin-bottom:2rem;
}

.blog-item-block .blog-item-image {
    height: 405px;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    border-radius: 20px;
}

.blog-item-block .blog-item-content {

    font-family: 'Archivo';
    font-style: normal;
    font-weight: 400;
    font-size: 16px;
    line-height: 22px;

    color: #15364F;

    margin: 2rem 0;
}

.social-share-container {
    display: inline-flex;
    justify-content: end;
    align-items: center;
    width:180px;
}

.social-share-container .social-share {
    font-family: 'Archivo';
    font-style: normal;
    font-weight: 400;
    font-size: 14px;
    line-height: 41px;
    text-align: right;

    color: #15364F;

}

.social-share-container .social-share a {
    fill: #369BE7;
    color: #369BE7;
}

.social-share-container svg {
    height:17px;
    width:17px;
}

.social-share-container .social-icon-container {
    display: flex;
}
.social-share-container .social-icon-container .elementor-icon-wrapper{
    align-items: center;
    display: flex;
}

/* Map and Markers */
#map {
    height:740px;
}

.map {
    display:none;
}
.map.active {
    display:block;
}

.grid-view-container {
    display:none;
}
.grid-view-container.active {
    display:block;
}
/* .grid-view-container .grid-view-loop {
    flex-direction: row;
} */

/* Container Setup */
#grid-view-loop {
    display: flex !important;
    flex-wrap: wrap !important;
    flex-direction: row !important;
    width: 100%;
}

/* Base: Desktop (4 per row) */
#grid-view-loop > .e-loop-item {
    width: 25% !important;
    max-width: 25%;
}

/* Tablet Landscape (3 per row) */
@media (max-width: 1024px) {
    #grid-view-loop > .e-loop-item {
        width: 33.33% !important;
        max-width: 33.33%;
    }
}

/* Tablet Portrait (2 per row) */
@media (max-width: 768px) {
    #grid-view-loop > .e-loop-item {
        width: 50% !important;
        max-width: 50%;
    }
}

/* Mobile (1 per row) */
@media (max-width: 480px) {
    #grid-view-loop > .e-loop-item {
        width: 100% !important;
        max-width: 100%;
    }
}


#search-result-header .grid-view-button.active a,
#search-result-header .map-view-button.active a {
    background-color:#022c33;
    color: #fff;
}

/* Override some gogle map styling */
.gm-style-iw.gm-style-iw-c {
    padding:0;
}

.gm-style-iw.gm-style-iw-c .gm-style-iw-chr {
    display:none;
}

.gmnoprint.gm-bundled-control > div > div {
    /* Override the hardcoded dimensions */
    height: 40px !important;
    width: 81px !important;

    /* Apply a horizontal flex layout */
    display: flex !important;
    flex-direction: row !important;
}

/* Also, adjust the separator to be vertical */
.gmnoprint.gm-bundled-control > div > div > div {
    height: 30px !important;
    width: 1px !important;
    margin: 5px 0px !important;
}


/* Container for the entire card */
.marker-card {
    display: flex;
    flex-direction: column;
    width: 215px;
    font-family: "Museo", sans-serif;
    border-radius: 8px 8px 0 0;
    overflow: hidden;
    box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
    background-color: #ffffff;
    padding: 0;
}

/* Styles for the image container */
.marker-card .marker-card__image {
    position: relative;
    height: 119px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.marker-card .marker-card__close {
    width: 15px;
    height: 15px;
    position: absolute;
    left: 87.5%;
    right: 5%;
    top: 5.59%;
    bottom: 86.03%;

    background: #FFFFFF;
    border-radius: 11px;
    color: #022C33;
    text-align: center;
    align-items: center;
    justify-content: center;
    display: inline-flex;
}
/* Styles for the text content container */
.marker-card .marker-card__content {
    padding: 15px;
}

/* Styles for the title */
.marker-card .marker-card__content .marker-card__title {
    margin: 0 0 5px 0;
    font-family: 'Museo';
    font-style: normal;
    font-weight: 600;
    font-size: 12px;
    line-height: 14px;

    /* Primary/Green */
    color: #022C33;

}

.marker-card .marker-card__content .marker-card__footer {
    display:flex;
    flex-direction: row;
}

/* Styles for the date */
.marker-card .marker-card__content .marker-card__footer .marker-card__date {
    margin: 0 0 10px 0;
    font-family: 'Archivo';
    font-style: normal;
    font-weight: 300;
    font-size: 12px;
    line-height: 13px;
    color: #022C33;
    text-align: left;
    width:50%;
}

/* Styles for the "See more" link */
.marker-card .marker-card__content .marker-card__footer .marker-card__link {
    text-align:right;
    width:50%;
}
.marker-card .marker-card__content .marker-card__footer .marker-card__link a {
    display: inline-block;
    padding-top: 5px;
    transition: color 0.2s ease-in-out;
    font-family: 'Archivo';
    font-style: normal;
    font-weight: 300;
    font-size: 12px;
    line-height: 13px;
    text-decoration-line: underline;

    color: #022C33;
}

.marker-card .marker-card__content .marker-card__footer .marker-card__link a:hover {
    color: #0056b3;
}
.no-map-results {
	font-family: 'Museo';
    font-style: normal;
    font-weight: 400;
    font-size: 22px;
    line-height: 140%;
}

// Loop card styling, set % width when only 1 loop card element is in a loop carousel swiper element
/* When there is only one slide in the carousel */
.elementor-widget-loop-carousel .swiper-slide:only-child {
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 25% !important;
}
.elementor-widget-loop-carousel .swiper-wrapper {
    justify-content: flex-start !important;
    display: flex !important;
}

/* Tablet (usually 1024px and below) */
@media (max-width: 1024px) {
    .elementor-widget-loop-carousel .swiper-slide:only-child {
        /* Matches your 33% requirement */
        width: 33.33% !important;
    }
}

/* Tablet Portrait / Large Mobile (usually 767px and below) */
@media (max-width: 767px) {
    .elementor-widget-loop-carousel .swiper-slide:only-child {
        width: 50% !important;
    }
}

/* Mobile (usually 480px and below) */
@media (max-width: 480px) {
    .elementor-widget-loop-carousel .swiper-slide:only-child {
        width: 100% !important;
    }
}