/*
Theme Name: Lehmonkärki Theme
Description: Lehmonkärki Theme
Template: flatsome
Version: 1.0.14
*/

/* TYPOGRAPHY */

.hero .h1,
.hero h1 {
    font-size: 4em;
}

.hero .h2,
.hero h2 {
    font-size: 2.6em;
}

.h1,
h1 {
    font-size: 2.5em;
}

.h2,
h2 {
    font-size: 1.8em;
}

/* BUTTONS */

/* Primary Button */
.button.primary,
input[type="button"],
input[type="reset"],
input[type="submit"] {
    background-color: transparent;
    color: #3c3c3b;
    border: 1px solid #3c3c3b;

    font-weight: 700;
    letter-spacing: 0.2rem;
    line-height: 1.3;
    text-transform: none;
    font-size: 1em;

    display: inline-flex;
    align-items: center;
    box-sizing: border-box;

    min-height: 30px;
    padding: 7px 30px;
    margin: 0.25rem 1rem 0.25rem 0;

    transition: transform 0.3s, border 0.3s, background-color 0.3s, box-shadow 0.3s, opacity 0.3s, color 0.3s;
}

/* Primary Hover */
.button.primary:hover,
input[type="button"]:hover,
input[type="reset"]:hover,
input[type="submit"]:hover {
    background-color: #3c3c3b;
    color: #fff;
    border-color: #3c3c3b;
    box-shadow: none;
}

/* Primary Focus */
.button.primary:focus,
input[type="button"]:focus,
input[type="reset"]:focus,
input[type="submit"]:focus {
    outline: 2px solid #3c3c3b;
    outline-offset: 2px;
}

/* Primary Active */
.button.primary:active,
input[type="button"]:active,
input[type="reset"]:active,
input[type="submit"]:active {
    background-color: #f2f2f2;
    color: #3c3c3b;
    border-color: #3c3c3b;
}

/* Primary Dark */
.dark .button.primary,
.dark input[type="button"],
.dark input[type="reset"],
.dark input[type="submit"] {
    background-color: transparent;
    color: #fff;
    border: 1px solid #fff;
}

/* Primary Dark Hover */
.dark .button.primary:hover,
.dark input[type="button"]:hover,
.dark input[type="reset"]:hover,
.dark input[type="submit"]:hover {
    background-color: #fff;
    color: #3c3c3b;
    border-color: #fff;
}

/* Primary Dark Active */
.dark .button.primary:active,
.dark input[type="button"]:active,
.dark input[type="reset"]:active,
.dark input[type="submit"]:active {
    background-color: #f2f2f2;
    color: #3c3c3b;
    border-color: #fff;
}

/* Primary Dark Focus */
.dark .button.primary:focus,
.dark input[type="button"]:focus,
.dark input[type="reset"]:focus,
.dark input[type="submit"]:focus {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

/* SLIDER WITH CAPPED HEIGHT AND CENTERED IMAGES */

/* Center Flickity slider contents vertically */
.slider-cap .flickity-slider {
    display: flex;
    align-items: center;
}

/* Cap the slider height */
.slider-cap {
    height: clamp(300px, 60vh, 520px); /* Responsive: min 300px, prefer 60vh, max 520px */
    max-height: 520px;
    overflow: hidden;
    position: relative; /* Ensures Flickity absolute positioning works */
}

/* Let Flickity fill the wrapper */
.slider-cap .flickity-viewport,
.slider-cap .flickity-slider {
    height: 100% !important; /* Override inline height */
}

/* Make inner wrappers stretch */
.slider-cap .gallery-col,
.slider-cap .col-inner,
.slider-cap .box,
.slider-cap .box-image {
    height: 100%;
}

/* Center images inside each cell */
.slider-cap .box-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Scale images without distortion */
.slider-cap img.slider-cap {
    max-height: 100%;
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: contain; /* Use 'cover' if you want cropping */
}

/* POSTS */

/* Blog archive styles */

.blog-archive.page-wrapper {
    padding-top: 0;
    background-color: #f7f7f7;
}

.blog-archive.page-wrapper .archive-page-header {
    padding-top: 30px;
    background-color: #fff;
}

.blog-archive.page-wrapper .archive-page-header .col {
    padding-bottom: 10px;
}

.blog-archive.page-wrapper .archive-page-header h1.page-title {
    margin-top: 1rem;
    margin-bottom: 2rem;
    font-size: 48px;
    line-height: 57.6px;
    color: #3c3c3b;
    text-transform: none;
}

.blog-archive.page-wrapper .archive-page-header .taxonomy-description {
    padding-bottom: 20px;
    font-size: 22px;
    color: #3c3c3b;
}

.blog-archive.page-wrapper .post-item .col-inner {
    background: #fff;
    height: 100%;
}

.blog-archive.page-wrapper .box {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #e2e2e2;
    background-image: url("data:image/svg+xml,%3Csvg width='10' height='10' viewBox='0 0 10 10' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='1' cy='1' r='1' fill='%23cfcfcf' /%3E%3C/svg%3E");
    background-position-x: 4px;
    background-position-y: 4px;
}

.blog-archive.page-wrapper .box:not(:has(.box-image)) .box-text {
    padding-top: 200px;
}

.blog-archive.page-wrapper .box-image {
    width: 100%;
    height: 200px;
}

.blog-archive.page-wrapper .box-image .image-cover {
    width: 100%;
    height: 100%;
}

.blog-archive.page-wrapper .box-text {
    padding: 0;
    flex-grow: 1;
}

.blog-archive.page-wrapper .box-text .box-text-inner {
    padding: 1.5rem;
    background: #fff;
    height: 100%;
}

.blog-archive.page-wrapper .box-text a:not(.button), h1, h2, h3, h4, h5, h6 {
    font-weight: bold;
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.blog-archive.page-wrapper .box-text p {
    margin: 0;
}

.blog-archive.page-wrapper .box-text .is-divider {
    display: none;
}

.blog-archive.page-wrapper .box-meta {
    color: #000;
    line-height: 1rem;
    margin-top: 0;
    margin-bottom: 0.7rem;
}

.blog-archive.page-wrapper .box-meta .is-xsmall {
    font-size: .85em;
}

.has-hover:hover .box-meta .tag-label {
    background-color: var(--fs-color-primary);
    opacity: 1;
}

.blog-archive.page-wrapper .box-meta .post-meta:not(.tag-label) {
    display: inline;
}

.blog-archive.page-wrapper .box-meta .post-meta:not(.tag-label):last-child:after {
    content: '';
}

.blog-archive.page-wrapper .box-meta .post-meta:not(.tag-label):after {
    content: '|';
    margin: 0 0 0 0.25rem;
}

.post-filters {
    display: flex;
    flex-direction: column;
    margin-bottom: 2rem;
    line-height: 27px;
}

.post-filters .post-filters__title {
    font-size: 24px;
    color: #3c3c3b;
    margin: 3.5rem 0 1.5rem;
    font-weight: 700;
}

.post-filters .post-category-filters {
    display: flex;
    flex-wrap: wrap;
    margin: 3.5rem auto 2rem;
    align-self: start;
}

.post-filters .post-category-filters .post-category-filter {
    text-decoration: none !important;
    border: 1px solid #3c3c3b;
    padding: .75em 2em;
    box-sizing: border-box;
    transition: all .4s ease-out;
    margin: 0 0.75rem;
    font-weight: 700;
    color: #3c3c3b;
}

.post-filters .post-category-filters .post-category-filter.active,
.post-filters .post-category-filters .post-category-filter:hover {
    background-color: #3c3c3b;
    color: #fff;
}

.post-filters .post-tag-filters {
    display: flex;
    flex-wrap: wrap;
    align-self: start;
    gap: 1rem;
}

.post-filters .post-tag-filters .post-tag-filter {
    padding: 4px 8px;
    border: 1px solid #d2d2d2;
    border-radius: 8px;
    color: #3c3c3b;
    text-decoration: none !important;
    text-transform: capitalize;
}

.post-filters .post-tag-filters .post-tag-filter.active {
    background-color: var(--fs-color-primary);
    border-color: var(--fs-color-primary);
    color: #fff;
}

.post-filters .post-tag-filters .post-tag-filter:hover:not(.active) {
    background-color: #d2d2d2;
    border-color: #d2d2d2;
}

body.search.search-results #main #content #post-list {
    margin-top: 3.5rem;
}

@media (min-width: 550px) and (max-width: 849px) {
    #post-list .large-columns-3>.col {
        flex-basis: 50%;
        max-width: 50%;
    }
}

/* Blog single post styles */

body.single-post.post-template-default #content .article-inner .entry-content,
body.single-activity.activity-template-default #content .article-inner .entry-content {
    width: 100%;
    max-width: 800px;
    padding-left: 11px;
    padding-right: 11px;
    margin: 0 auto 2rem;
}

.section.recommended-posts {
    display: flex;
    flex-direction: column;
    background-color: #f7f7f7;
    padding: 3rem 0 0;
}

.section.recommended-posts .recommended-posts__title {
    margin-bottom: 0;
    color: #000;
    font-size: 32px;
    line-height: 38.4px;
    font-weight: 700;
}

.section.recommended-posts .box-text {
    padding: 1.5rem;
}

.section.recommended-posts > .row {
    max-width: 1200px;
    padding-left: 8px;
    padding-right: 8px;
}

.section.recommended-posts .post-title {
    margin-bottom: 0;
    color: #3c3c3b;
    font-size: 18px;
    line-height: 24px;
    font-weight: 700;
}

.section.recommended-posts .ux-article-list .post-item .col-inner {
    background: #ffffff;
}

/* HOTELLINX */

/* Hotellinx Booking Bar */

.hotellinx-booking-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #fff;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: transform 0.3s ease;
}

.hotellinx-booking-bar__mobile-buttons {
    display: none;
}

.hotellinx-booking-bar__content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.hotellinx-booking-bar__content hlx-searchmask {
    flex: 1;
}

.hotellinx-booking-bar__inquiry-link {
    display: inline-block;
    padding: 0.75em 2em;
    background-color: var(--fs-color-primary, #3c3c3b);
    color: #fff !important;
    text-decoration: none !important;
    font-weight: 700;
    border-radius: 4px;
    white-space: nowrap;
    transition: background-color 0.3s ease;
}

.hotellinx-booking-bar__inquiry-link:hover {
    background-color: #2a2a29;
}

/* RESPONSIVE ADJUSTMENTS */
@media (max-width: 549px) {
    .hero .h1,
    .hero h1 {
        font-size: 3em;
    }

    .hero .h2,
    .hero h2 {
        font-size: 2em;
    }
}

@media (min-width: 768px) {
    .hotellinx-booking-bar {
        display: flex;
        padding: 1rem;
        gap: 1rem;
    }
}

@media (min-width: 849.99px) {
    /* No main header bar on desktop */
    .header-main {
        display: none;
    }
}

@media (max-width: 767.99px) {
    .hotellinx-booking-bar .hotellinx-booking-bar__content{
        height: 0;
        padding: 0;
        overflow: hidden;
    }

    .hotellinx-booking-bar.is-open .hotellinx-booking-bar__content{
        height: auto;
        padding: 1rem;
    }

    .hotellinx-booking-bar__mobile-buttons {
        display: flex;
        gap: 0.5rem;
        padding: 0.75rem;
        background-color: #f7f7f7;
    }

    .hotellinx-booking-bar__toggle,
    .hotellinx-booking-bar__inquiry-btn {
        flex: 1;
        padding: 0.75em 1em;
        font-weight: 700;
        text-decoration: none !important;
        text-align: center;
        border-radius: 4px;
        border: none;
        cursor: pointer;
        transition: background-color 0.3s ease;
    }

    .hotellinx-booking-bar__toggle {
        background-color: var(--fs-color-primary, #3c3c3b);
        color: #fff;
    }

    .hotellinx-booking-bar__toggle:hover {
        background-color: #2a2a29;
    }

    .hotellinx-booking-bar__inquiry-btn {
        background-color: #fff;
        color: #3c3c3b !important;
        border: 1px solid #3c3c3b;
    }

    .hotellinx-booking-bar__inquiry-btn:hover {
        background-color: #f0f0f0;
    }

    .hotellinx-booking-bar__content {
        flex-direction: column;
        max-height: 70vh;
        overflow-y: auto;
    }

    .hotellinx-booking-bar__inquiry-link {
        display: none;
    }
}

@media (max-width: 849px) {
    .blog-archive.page-wrapper .archive-page-header {
        padding-top: 0px;
    }

    .blog-archive.page-wrapper .archive-page-header .col {
        padding-bottom: 0;
    }

    .blog-archive.page-wrapper .archive-page-header h1.page-title {
        margin-bottom: 1rem;
        font-size: 40px;
        line-height: 48px;
    }

    .blog-archive.page-wrapper .archive-page-header .taxonomy-description {
        padding-bottom: 0;
    }

    .post-filters .post-filters__title {
        margin: 2rem 0 .5rem;
    }

    body.search.search-results #main #content #post-list {
        margin-top: 2rem;
    }
}