/* Editorial split — side imagery on large screens (stories & blog-like pages) */
.explo-editorial-page {
    position: relative;
    overflow: hidden;
    background: var(--color-page-bg);
}

.explo-editorial-wrap {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
}

.explo-editorial-main {
    min-width: 0;
    position: relative;
    z-index: 2;
    background: var(--color-page-bg);
}

.explo-editorial-rail {
    display: none;
}

/* Side rails only participate in the grid when direct wrap children */
.explo-editorial-main .explo-editorial-rail {
    display: none !important;
}

@media (min-width: 1200px) {
    /* Rails sit behind content — full-width page, centered column on top */
    .explo-editorial-wrap {
        display: block;
        position: relative;
        isolation: isolate;
    }

    .explo-editorial-wrap > .explo-editorial-rail {
        display: block;
        position: absolute;
        top: 0;
        bottom: 0;
        width: min(44vw, 520px);
        z-index: 0;
        overflow: hidden;
        pointer-events: none;
    }

    .explo-editorial-rail--left {
        left: 0;
    }

    .explo-editorial-rail--right {
        right: 0;
    }

    .explo-editorial-main {
        position: relative;
        z-index: 2;
        width: 100%;
        max-width: none;
        background: transparent;
    }

    /* Prose pages keep an opaque center — prevents rail imagery bleeding through forms and cards */
    .explo-editorial-prose .explo-editorial-wrap > .explo-editorial-main {
        background: var(--color-page-bg);
    }

    /* Fill rail height from wrap, not a fixed viewport window */
    .explo-editorial-rail img {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        filter: saturate(1.05) brightness(0.98);
        transform: scale(1.03);
        pointer-events: none;
        user-select: none;
    }

    .explo-editorial-rail--left img {
        object-position: center right;
    }

    .explo-editorial-rail--right img {
        object-position: center left;
    }

    .explo-editorial-rail::after {
        content: "";
        position: absolute;
        inset: 0;
        pointer-events: none;
        z-index: 1;
    }

    /* Symmetric horizontal + vertical fade toward center (both sides match) */
    .explo-editorial-rail--left::after,
    .explo-editorial-rail--right::after {
        background:
            linear-gradient(
                180deg,
                var(--color-page-bg) 0%,
                rgba(248, 249, 250, 0.35) 5%,
                transparent 12%,
                transparent 88%,
                rgba(248, 249, 250, 0.35) 95%,
                var(--color-page-bg) 100%
            ),
            linear-gradient(
                to right,
                rgba(248, 249, 250, 0.15) 0%,
                rgba(248, 249, 250, 0.45) 42%,
                rgba(248, 249, 250, 0.78) 62%,
                var(--color-page-bg) 82%
            );
    }

    .explo-editorial-rail--right::after {
        background:
            linear-gradient(
                180deg,
                var(--color-page-bg) 0%,
                rgba(248, 249, 250, 0.35) 5%,
                transparent 12%,
                transparent 88%,
                rgba(248, 249, 250, 0.35) 95%,
                var(--color-page-bg) 100%
            ),
            linear-gradient(
                to left,
                rgba(248, 249, 250, 0.15) 0%,
                rgba(248, 249, 250, 0.45) 42%,
                rgba(248, 249, 250, 0.78) 62%,
                var(--color-page-bg) 82%
            );
    }

    .explo-editorial-main .container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    /* Side rails carry imagery on desktop — hide duplicate center hero photos */
    .explo-editorial-main .mx-auto.mb-4:has(> img.img-fluid),
    .explo-editorial-main .container > .mx-auto.mb-4:has(> img.img-fluid.rounded.w-100),
    .explo-editorial-main .container > .mx-auto.mb-4:has(> img.img-fluid.w-100) {
        display: none;
    }

    .explo-editorial-main .story-article > img[width="1600"]:first-of-type,
    .explo-editorial-main .story-article > img.img-fluid.rounded.w-100:first-of-type,
    .explo-editorial-main #event-story-content > img.img-fluid:first-of-type,
    .explo-editorial-main #experience-story-content > img.event-story-hero-img,
    .explo-editorial-main .story-article > img.event-story-hero-img:first-of-type {
        display: none;
    }

    .explo-editorial-main #d-hero {
        display: none;
    }

    .explo-editorial-main .attraction-detail-hero,
    .explo-editorial-main .editorial-detail-hero {
        display: none;
    }

    /* Overview column photos — side rails carry imagery on desktop */
    .explo-editorial-main #d-secondary,
    .explo-editorial-main .attraction-detail-sidebar-photo {
        display: none;
    }

    /* Prose about pages — first lead image column duplicates left rail */
    .explo-editorial-prose .about .row.align-items-center:first-of-type > .col-lg-5:first-child,
    .explo-editorial-prose .about .row.g-5.align-items-center:first-of-type > .col-lg-5:first-child {
        display: none;
    }

    .explo-editorial-main .destination-weather-sidebar {
        margin-bottom: 0;
    }
}

/* Mobile / tablet — keep inline hero imagery visible and sharp */
@media (max-width: 1199px) {
    .explo-editorial-main .mx-auto.mb-4:has(> img.img-fluid),
    .explo-editorial-main .editorial-detail-hero,
    .explo-editorial-main .attraction-detail-hero,
    .explo-editorial-main #d-hero,
    .explo-editorial-main #d-secondary,
    .explo-editorial-main .story-article > img[width="1600"]:first-of-type,
    .explo-editorial-main #event-story-content > img.img-fluid:first-of-type,
    .explo-editorial-main #experience-story-content > img.event-story-hero-img,
    .explo-editorial-prose .about .row.align-items-center:first-of-type > .col-lg-5:first-child,
    .explo-editorial-prose .about .row.g-5.align-items-center:first-of-type > .col-lg-5:first-child {
        display: block;
    }

    .explo-editorial-main .editorial-detail-hero img,
    .explo-editorial-main .attraction-detail-hero img,
    .explo-editorial-main #d-hero,
    .explo-editorial-main #d-secondary {
        width: 100%;
        max-height: min(56vw, 380px);
        object-fit: cover;
        object-position: center;
        filter: none;
    }
}

/* Editorial detail pages — shared 820px column rhythm */
.editorial-detail-article .destination-overview-body p {
    margin-bottom: 1rem;
}

/* Destination listing grid — card layout (not broken overlay flow) */
.destination .row.g-4 .destination-img {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    height: 100%;
    background: #fff;
    box-shadow: 0 4px 18px rgba(19, 53, 123, 0.08);
}

.destination .row.g-4 .destination-img > img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.destination .row.g-4 .destination-img .destination-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 1.25rem 1.35rem 1.35rem;
    background: linear-gradient(to top, rgba(19, 53, 123, 0.92) 0%, rgba(19, 53, 123, 0.55) 55%, transparent 100%);
}

.destination .row.g-4 .destination-img .destination-overlay h4 {
    color: #fff;
}

.destination .row.g-4 .destination-img .destination-overlay p {
    color: rgba(255, 255, 255, 0.92);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.destination .row.g-4 .destination-img .btn-hover {
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Detail page tile cards (usp-card markup without styles.css) */
.page-destination-detail .destination-activities,
.page-destination-detail .destination-related {
    position: relative;
    z-index: 3;
    width: 100%;
}

.page-destination-detail .destination-activities > .col,
.page-destination-detail .destination-related > .col {
    display: flex;
    min-width: 0;
}

.page-destination-detail .usp-card {
    width: 100%;
    background: #fff;
    border: 1px solid rgba(19, 53, 123, 0.1);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(19, 53, 123, 0.07);
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.page-destination-detail .usp-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(19, 53, 123, 0.12);
}

.page-destination-detail .usp-card-image {
    display: block;
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.page-destination-detail .usp-card-body {
    padding: 1.15rem 1.25rem 1.35rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 0.45rem;
}

.page-destination-detail .usp-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0;
    color: #111;
    line-height: 1.3;
}

.page-destination-detail .usp-card-text {
    font-size: 0.9rem;
    color: #495057;
    line-height: 1.55;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.page-destination-detail .usp-card .btn {
    align-self: flex-start;
    margin-top: auto;
}

/* Stories-style single column overview on detail pages */
@media (min-width: 992px) {
    .page-destination-detail .destination-overview-row {
        display: block;
    }

    .page-destination-detail .destination-weather-aside {
        float: right;
        width: min(280px, 38%);
        margin: 0 0 1rem 1.5rem;
    }
}

.page-attraction-detail .destination-weather-aside,
.page-destination-detail .destination-weather-aside {
    position: relative;
    z-index: 2;
}

.page-destination-detail .destination-overview-row::after,
.page-attraction-detail .destination-overview-row::after {
    content: "";
    display: table;
    clear: both;
}

@media (min-width: 992px) {
    .page-destination-detail .destination-weather-sidebar {
        position: sticky;
        top: 1.5rem;
    }
}

/* Multi-section prose pages — solid reading column (rails stay at edges, not through content) */
.explo-editorial-prose .explo-editorial-main {
    background: var(--color-page-bg);
}

.explo-editorial-prose .explo-editorial-main > .container-fluid {
    background: inherit;
}

.explo-editorial-prose .explo-editorial-main > .container-fluid.packages,
.explo-editorial-prose .explo-editorial-main > .container-fluid.about:not(.bg-primary),
.explo-editorial-prose .explo-editorial-main > .container {
    background: #fff;
}

.explo-editorial-prose .explo-editorial-main > .container-fluid.bg-primary,
.explo-editorial-prose .explo-editorial-main > .container-fluid.about.bg-primary {
    background: var(--bs-primary) !important;
}

@media (min-width: 1600px) {
    .explo-editorial-wrap > .explo-editorial-rail {
        width: min(40vw, 560px);
    }
}

/* Story article typography inside editorial column */
.explo-editorial-main .story-article {
    max-width: 100%;
}

.explo-editorial-main .story-article > p:first-child > span:first-child {
    float: left;
    font-size: 3.2rem;
    line-height: 0.85;
    font-weight: 700;
    color: #13357B;
    padding-right: 0.45rem;
    padding-top: 0.15rem;
}

.explo-editorial-main .story-article blockquote {
    border-left: 4px solid #13357B;
    margin: 1.5rem 0;
    padding: 0.75rem 1rem;
    background: rgba(19, 53, 123, 0.05);
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: #495057;
}

.explo-editorial-main .story-prev-next {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
    justify-content: space-between;
    margin-top: 2rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.explo-editorial-main .story-prev-next a {
    font-size: 0.88rem;
    font-weight: 600;
    color: #13357B;
    text-decoration: none;
}

.explo-editorial-main .story-prev-next a:hover {
    text-decoration: underline;
}

/* Travel guides hub — stories-style intro + uniform tile grid */
.page-travel-guides .guides-intro {
    max-width: 820px;
    margin: 0 auto 2.5rem;
    text-align: center;
}

.page-travel-guides .guides-intro::after {
    content: "";
    display: table;
    clear: both;
}

@media (min-width: 992px) {
    .page-travel-guides .guides-weather-aside {
        float: right;
        width: min(280px, 42%);
        margin: 0 0 1rem 1.25rem;
        text-align: left;
    }
}

.explo-editorial-main .row > [class*="col-"],
.explo-editorial-main .row.eu-tile-row > [class*="col-"] {
    display: flex;
}

/* ——— Prose pages (about, MICE, etc.) — stories-style reading column ——— */
.explo-editorial-prose .explo-editorial-main .about .container,
.explo-editorial-prose .explo-editorial-main .guide .container {
    max-width: 920px;
    margin-left: auto;
    margin-right: auto;
}

.explo-editorial-prose .explo-prose-section,
.explo-editorial-prose .about .row.g-5.align-items-center,
.explo-editorial-prose .guide .row.g-5.align-items-center {
    max-width: 820px;
    margin-left: auto;
    margin-right: auto;
}

.explo-editorial-prose .about .row.g-5.align-items-center,
.explo-editorial-prose .guide .row.g-5.align-items-center {
    flex-direction: column;
    --bs-gutter-y: 2rem;
}

.explo-editorial-prose .about .row.g-5.align-items-center > [class*="col-"],
.explo-editorial-prose .guide .row.g-5.align-items-center > [class*="col-"] {
    flex: 0 0 100%;
    max-width: 100%;
    width: 100%;
}

.explo-editorial-prose [class*="col-"][style*="background"] {
    background: transparent !important;
    padding: 0 !important;
}

.explo-editorial-prose .about .col-lg-5 .h-100[style*="border"],
.explo-editorial-prose .guide .col-lg-5 .h-100[style*="border"] {
    border-width: 0 !important;
    border-radius: 12px;
    overflow: hidden;
    max-height: min(52vw, 360px);
    margin-bottom: 0.5rem;
}

.explo-editorial-prose .about .col-lg-5 img,
.explo-editorial-prose .guide .col-lg-5 img {
    width: 100%;
    height: 100%;
    min-height: 220px;
    object-fit: cover;
    border-radius: 12px;
}

@media (min-width: 1200px) {
    .explo-editorial-prose .about .row.g-5.align-items-center > .col-lg-5,
    .explo-editorial-prose .guide .row.g-5.align-items-center > .col-lg-5 {
        display: none;
    }

    .explo-editorial-prose .about .row.g-5.align-items-center > .col-lg-7,
    .explo-editorial-prose .guide .row.g-5.align-items-center > .col-lg-7 {
        padding: 0 0.25rem;
    }
}

.explo-editorial-prose .explo-prose-actions,
.explo-editorial-prose .col-lg-7:has(> .btn.rounded-pill),
.explo-editorial-prose .col-lg-7:has(> a.btn.rounded-pill) {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    margin-top: 0.5rem;
}

.explo-editorial-prose .explo-prose-actions .btn,
.explo-editorial-prose .col-lg-7 .btn.rounded-pill,
.explo-editorial-prose .mx-auto.text-center .btn.rounded-pill {
    width: auto;
    max-width: 100%;
    margin-top: 0 !important;
    margin-right: 0 !important;
    flex: 0 0 auto;
    white-space: nowrap;
}

.explo-editorial-prose .about .col-lg-7 h1,
.explo-editorial-prose .about .col-lg-7 h2 {
    line-height: 1.2;
}

.explo-editorial-prose .about .col-lg-7 p,
.explo-editorial-prose .guide .col-lg-7 p,
.explo-editorial-prose .about .col-lg-7 li {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #495057;
}

.explo-editorial-prose .guide.py-5.bg-light {
    background: #fff !important;
}

.explo-editorial-prose .guide .mx-auto.text-center {
    max-width: 820px;
}

.explo-editorial-prose .guide .row.g-4 {
    max-width: 960px;
    margin-left: auto;
    margin-right: auto;
}

.explo-prose-section h2 {
    line-height: 1.2;
    color: #111;
}

.explo-prose-section p,
.explo-prose-section li {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #495057;
}

.explo-prose-figure img {
    box-shadow: 0 12px 36px rgba(19, 53, 123, 0.12);
}

.about-frame-text {
    padding: 0.5rem 0;
}

.explo-editorial-prose .about.py-5.bg-primary {
    border-radius: 0;
}

.explo-editorial-prose .about.py-5.bg-primary .container {
    max-width: 860px;
}

.explo-editorial-main .blog-item {
    height: 100%;
    width: 100%;
}

/* Uniform tile grids — 3-col desktop, 2-col tablet, centered orphan rows */
.row.eu-tile-row > [class*="col-"],
.destination .row.g-4 > [class*="col-"] {
    display: flex;
}

.destination .destination-img,
.packages .packages-item,
.blog .blog-item {
    width: 100%;
}
