/*
Theme Name: Tema para BOHO Prague
Theme URI:  https://www.hotelbohoprague.org
Author:     Overfly Consulting
Author URI: https://www.overflyconsulting.com
Template:   hello-elementor
Version:    1.0
License:    GNU General Public License v2 or later
*/

/* =========================================
   BOHO BLOG - VARIABLES
========================================= */

.boho-blog {
    --boho-width: 1200px;
    --boho-content-width: 850px;
    --boho-side-padding: 40px;

    --boho-text-color:
        var(--e-global-color-text, inherit);

    --boho-heading-color:
        var(--e-global-color-primary, inherit);
}

/* =========================================
   HEADER SOBRE LA IMAGEN
========================================= */

/*
 * Solo en blog, archivos y entradas.
 * Compatible con header de Elementor Pro
 * y header nativo de Hello.
 */

body.blog .elementor-location-header,
body.archive .elementor-location-header,
body.single-post .elementor-location-header,
body.blog #site-header,
body.archive #site-header,
body.single-post #site-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 100;
    background: transparent;
}

/* Evitar que Hello añada espacio superior */

.boho-blog {
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: 100%;
}

.boho-blog-archive,
.boho-blog-single {
    overflow: clip;
}

/* =========================================
   HERO ARCHIVE - 100VH
========================================= */

.boho-blog-hero,
.boho-single-hero {
    position: relative;
    width: 100%;
    background-image: var(--boho-hero-image);
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    isolation: isolate;
    display: flex;
    align-items: flex-end;
}

.boho-blog-hero {
    height: 100vh;
    height: 100svh;
    min-height: 500px;
}

/* Oscurecimiento progresivo */

.boho-blog-hero__overlay,
.boho-single-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.12) 0%,
        rgba(0, 0, 0, 0.05) 45%,
        rgba(0, 0, 0, 0.50) 100%
    );
    z-index: -1;
    pointer-events: none;
}

/* Contenido del hero */

.boho-blog-hero__inner,
.boho-single-hero__inner {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 var(--boho-side-padding) 65px;
}

/* =========================================
   H1 - ELEMENTOR GLOBAL
========================================= */

.boho-blog-hero__title,
.boho-single-hero__title {
    font-family: "Playfair Display", sans-serif;
    text-align: center;

    font-weight:
        var(--e-global-typography-primary-font-weight, inherit);

    font-style:
        var(--e-global-typography-primary-font-style, normal);

    text-transform:
        var(--e-global-typography-primary-text-transform, none);

    letter-spacing:
        var(--e-global-typography-primary-letter-spacing, normal);

    line-height:
        var(--e-global-typography-primary-line-height, 1.15);

    color: #ffffff;

    margin: 0;
    padding: 0;

    font-size: clamp(36px, 5vw, 72px);
    overflow-wrap: break-word;
}

/* =========================================
   ARCHIVE - LISTADO DE ENTRADAS
========================================= */

.boho-blog-listing {
    padding: 100px 0 120px;
    background: var(
        --e-global-color-background,
        #ffffff
    );
}

.boho-blog-container {
    width: 100%;
    max-width: var(--boho-width);
    margin: 0 auto;
    padding: 0 var(--boho-side-padding);
}

.boho-archive-heading {
    margin-bottom: 55px;
}

.boho-archive-heading h2 {
        font-family: "Playfair Display", sans-serif;
    text-align: center;
    color: var(--boho-heading-color);
}

/* Grid */

.boho-post-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 65px 30px;
}

.boho-post-card {
    min-width: 0;
}

/* Imagen de tarjeta */

.boho-post-card__image {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.boho-post-card__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.boho-post-card__image:hover img {
    transform: scale(1.04);
}

/* Texto tarjeta */

.boho-post-card__content {
    padding-top: 25px;
}

.boho-post-card__meta {
    font-family:
        var(--e-global-typography-text-font-family),
        inherit;

    font-size: 12px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 14px;
    color: var(--boho-text-color);
}

.boho-post-card__title {
        font-family: "Playfair Display", sans-serif;
    text-align: center;

    font-weight:
        var(--e-global-typography-primary-font-weight, inherit);

    font-size: clamp(21px, 2vw, 28px);
    line-height: 1.3;
    margin: 0 0 18px;
}

.boho-post-card__title a {
    color: inherit;
    text-decoration: none;
}

.boho-post-card__title a:hover {
    opacity: 0.65;
}

.boho-post-card__excerpt {
    font-family:
        var(--e-global-typography-text-font-family),
        inherit;

    color: var(--boho-text-color);
    line-height: 1.8;
}

.boho-post-card__excerpt p {
    margin: 0;
}

/* =========================================
   SINGLE POST - HERO 60VH
========================================= */

.boho-single-hero {
    height: 60vh;
    height: 60svh;
    min-height: 420px;
}

.boho-single-hero__inner {
    padding-bottom: 55px;
}

/* =========================================
   SINGLE POST - CONTENIDO
========================================= */

.boho-single-body {
    padding: 90px 0 120px;
    background: var(
        --e-global-color-background,
        #ffffff
    );
}

.boho-single-container {
    width: 100%;
    max-width: var(--boho-content-width);
    margin: 0 auto;
    padding: 0 var(--boho-side-padding);
}

.boho-single-content {
    font-family:
        var(--e-global-typography-text-font-family),
        inherit;

    font-weight:
        var(--e-global-typography-text-font-weight, inherit);

    color: var(--boho-text-color);
    line-height: 1.85;
}

/* Párrafos */

.boho-single-content p {
    margin: 0 0 28px;
}

/* Headings del artículo */

.boho-single-content h2,
.boho-single-content h3,
.boho-single-content h4,
.boho-single-content h5,
.boho-single-content h6 {
        font-family: "Playfair Display", sans-serif;
    text-align: center;

    font-weight:
        var(--e-global-typography-primary-font-weight, inherit);

    color: var(--boho-heading-color);
    line-height: 1.3;
    margin-top: 55px;
    margin-bottom: 25px;
}

/* Imágenes */

.boho-single-content img {
    max-width: 100%;
    height: auto;
}

.boho-single-content figure {
    max-width: 100%;
    margin: 40px 0;
}

.boho-single-content figcaption {
    font-size: 0.85em;
    opacity: 0.7;
    margin-top: 12px;
}

/* Listas */

.boho-single-content ul,
.boho-single-content ol {
    margin-bottom: 30px;
    padding-left: 25px;
}

.boho-single-content li {
    margin-bottom: 10px;
}

/* Enlaces */

.boho-single-content a {
    color: var(--e-global-color-accent, inherit);
    text-underline-offset: 4px;
}

/* Citas */

.boho-single-content blockquote {
    margin: 45px 0;
    padding: 15px 0 15px 30px;
    border-left: 2px solid currentColor;
    font-style: italic;
}

/* Contenido embebido */

.boho-single-content iframe,
.boho-single-content video,
.boho-single-content embed {
    max-width: 100%;
}

/* =========================================
   PAGINACION
========================================= */

.boho-pagination {
    margin-top: 80px;
    text-align: center;
}

.boho-pagination .nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.boho-pagination .page-numbers {
    color: var(--boho-text-color);
    text-decoration: none;
    padding: 8px 12px;
}

.boho-pagination .page-numbers.current {
    border-bottom: 1px solid currentColor;
}

/* =========================================
   TABLET
========================================= */

@media (max-width: 1024px) {

    .boho-post-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 50px 25px;
    }

    .boho-blog-listing {
        padding: 75px 0;
    }

}

/* =========================================
   MOBILE
========================================= */

@media (max-width: 767px) {

    .boho-blog {
        --boho-side-padding: 22px;
    }

    .boho-blog-hero {
        min-height: 450px;
    }

    .boho-single-hero {
        height: 60svh;
        min-height: 350px;
    }

    .boho-blog-hero__inner,
    .boho-single-hero__inner {
        padding-bottom: 38px;
    }

    .boho-blog-hero__title,
    .boho-single-hero__title {
        font-size: clamp(30px, 8vw, 44px);
    }

    .boho-post-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .boho-blog-listing {
        padding: 60px 0 80px;
    }

    .boho-single-body {
        padding: 55px 0 80px;
    }

    .boho-single-content h2,
    .boho-single-content h3 {
        margin-top: 40px;
    }

}

/* Accesibilidad */

@media (prefers-reduced-motion: reduce) {
    .boho-post-card__image img {
        transition: none;
    }
}