/* decor.css — decorative template details restored 1:1 (R4 fidelity).
 *
 * Loaded as an EXTERNAL stylesheet (CSP `style-src 'self'` covers
 * background-image here — it is NOT an inline style attribute). All decorative
 * assets are self-hosted under /img (font-src/img-src 'self'). No inline styles,
 * no inline scripts → enforce-CSP stays intact.
 *
 * Restores:
 *   1. #general_decor — white leaf-border strip below the hero (pattern_3.png)
 *   2. footer_bg.png — grass/leaf footer background (repeat-x center bottom)
 *   3. transparent header overlaying a flush-to-top hero (home)
 *   4. hero crossfade slider styling
 *   5. .main_title-style divider bar above section titles
 *   6. big green feature icons (box_home) + amenity/feature icon colour
 *
 * Asset URLs are relative to THIS file (/css/decor.css) → ../img/… resolves to
 * /img/… (which becomes /v2/img/… under the base, since /public maps to base).
 */

/* ============================================================
 * 1. White leaf border (old template #general_decor)
 *    Reused rule: position:absolute; bottom:0; left:0; height:45px;
 *    background:url(pattern_3.png) repeat-x; z-index above the hero.
 * ============================================================ */
.se-general-decor {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 45px;
    background: url('../img/pattern_3.png') repeat-x 0 0;
    z-index: 5;
    pointer-events: none;
}
@media only screen and (-webkit-min-device-pixel-ratio: 1.5),
       only screen and (min-resolution: 144dpi) {
    .se-general-decor {
        background: url('../img/pattern_3_2x.png') repeat-x 0 0;
        background-size: 996px 50px;
    }
}

/* ============================================================
 * 2. Footer grass/leaf background (old template footer rule:
 *    background:#769f2f url(footer_bg.png) repeat-x center bottom)
 *    Kept on the rebuild's green footer; tokens drive the base colour,
 *    the PNG adds the leaf silhouette along the bottom edge.
 * ============================================================ */
.se-footer {
    background-color: var(--se-green-dark);
    background-image: url('../img/footer_bg.png');
    background-repeat: repeat-x;
    background-position: center bottom;
    /* extra bottom padding so content clears the leaf silhouette */
    padding-bottom: 70px;
}

/* ============================================================
 * 3. Transparent header overlaying a flush-to-top hero (home).
 *    Old template: header { position:fixed; top:0 } over the banner.
 *    We keep the rebuild header in-flow on inner pages, but on pages that
 *    carry a hero (body.se-page--hero) it becomes an absolute, transparent
 *    bar laid OVER the hero so the hero is flush with the viewport top.
 * ============================================================ */
.se-page--hero .se-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: transparent;
    border-bottom: none;
    box-shadow: none;
}
.se-page--hero .se-header .se-logo,
.se-page--hero .se-header .se-nav__link {
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
}
.se-page--hero .se-header .se-logo__accent {
    color: #fff;
}
.se-page--hero .se-header .se-nav__link:hover {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
}
.se-page--hero .se-header .se-nav__link[aria-current="page"] {
    background: var(--se-green);
    color: #fff;
}
.se-page--hero .se-header .lang-btn {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.65);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
}
.se-page--hero .se-header .lang-btn:hover {
    background: rgba(255, 255, 255, 0.18);
}
.se-page--hero .se-header .lang-btn[aria-current="true"] {
    background: var(--se-green);
    border-color: var(--se-green);
    text-shadow: none;
}

/* ============================================================
 * 4. Hero crossfade slider (full-bleed, flush to top).
 * ============================================================ */
.se-hero-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: var(--se-green-dark);
}
.se-hero-slider__stage {
    position: relative;
    width: 100%;
    height: 78vh;
    min-height: 460px;
    max-height: 760px;
}
.se-hero-slider__slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1.6s ease-in-out;
    will-change: opacity;
}
.se-hero-slider__slide.is-active {
    opacity: 1;
}
.se-hero-slider__slide picture,
.se-hero-slider__media {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
.se-hero-slider__overlay {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.30), rgba(0, 0, 0, 0.45));
    /* leave room above for the transparent header bar */
    padding: var(--se-header-h) var(--se-space-5) 60px;
}
.se-hero-slider__title {
    color: #fff;
    font-size: clamp(30px, 5.4vw, 54px);
    margin: 0 0 var(--se-space-3);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
}
.se-hero-slider__subtitle {
    font-size: clamp(15px, 2.4vw, 21px);
    margin: 0 0 var(--se-space-6);
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.45);
    max-width: 660px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.se-hero-slider__actions {
    display: flex;
    gap: var(--se-space-3);
    flex-wrap: wrap;
    justify-content: center;
}
@media (prefers-reduced-motion: reduce) {
    .se-hero-slider__slide { transition: none; }
}

/* ============================================================
 * 4b. Hero heading flanking-line accent (old template
 *     .sub_header_content div h1:before/:after — short lines either side
 *     of the uppercase heading). Adds the decorative cue the rebuild heroes
 *     were missing.
 * ============================================================ */
.se-hero-rule {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
}
.se-hero-rule::before,
.se-hero-rule::after {
    content: "";
    display: inline-block;
    width: 50px;
    height: 1px;
    background: rgba(255, 255, 255, 0.6);
    flex: 0 0 auto;
}

/* ============================================================
 * 5. Section-title divider bar (old template .main_title span):
 *    a small rounded bar centred above the heading. Re-creates the
 *    "extra" decorative cue the rebuild section titles were missing.
 * ============================================================ */
.se-section-title::before {
    content: "";
    display: block;
    width: 50px;
    height: 4px;
    margin: 0 auto var(--se-space-4);
    border-radius: 5px;
    background: var(--se-green);
    opacity: 0.85;
}

/* ============================================================
 * 6. Feature icons (old template .box_home i: large green icons) and
 *    amenity/feature icon colour. Restores the icon-led feature blocks.
 * ============================================================ */
.se-feature__icon {
    font-size: 54px;
    line-height: 1;
    color: var(--se-green);
    display: block;
    margin-bottom: var(--se-space-4);
}
.se-feature--iconed { text-align: center; }

.se-amenity-icons {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--se-space-2) var(--se-space-4);
}
.se-amenity-icons li {
    display: flex;
    align-items: center;
    gap: var(--se-space-2);
    padding: 9px 0;
    border-bottom: 1px solid var(--se-border);
    font-size: 15px;
}
.se-amenity-icons li i {
    color: var(--se-green);
    font-size: 20px;
    flex: 0 0 auto;
}
