/* ================================================================
   Malmön – Båt-sida (Single)
   Strukturell CSS – färger, padding, typografi sätts i Elementor
   ================================================================ */

/* ── Dölj WP-standardtitel ────────────────────────────────────── */
body.malmon-boat-single .entry-header,
body.malmon-boat-single .ast-post-format-,
body.malmon-boat-single .page-header { display: none !important; }

/* ── Astra: full-bredd genom hela behållarskedjan ─────────────── */
body.malmon-boat-single #page,
body.malmon-boat-single #content,
body.malmon-boat-single #content.site-content,
body.malmon-boat-single .site-content,
body.malmon-boat-single #primary,
body.malmon-boat-single .content-area,
body.malmon-boat-single .site-main,
body.malmon-boat-single .ast-article-single,
body.malmon-boat-single .entry-content,
body.malmon-boat-single .post-content,
body.malmon-boat-single #ast-content-id {
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    float: none !important;
}

/* Innehållsområdets ast-container: full bredd – headerns lämnas ifred */
body.malmon-boat-single .site-content .ast-container {
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* .ast-container är flex – Elementor-wrappern måste ta full bredd */
body.malmon-boat-single .ast-container > .elementor {
    width: 100% !important;
    max-width: 100% !important;
    flex: 1 1 100% !important;
}

/* ── Bakgrundsfärg på sidan ───────────────────────────────────── */
/* Inget override här – låter Astra-temats Customizer-värde styra
   bakgrundsfärgen även på enskilda båtsidor. (Tidigare tvingade vi
   #ffffff vilket dolde användarens egna val.) */

/* Smooth scroll för anchor-länkar (t.ex. CTA → #malmon-boat-contact).
   Sätts på html eftersom det är den scrollande roten även med
   body { overflow-x: hidden }. */
html:has(body.malmon-boat-single) { scroll-behavior: smooth; }

/* Scroll-offset så ankaret inte fastnar under den fixed transparenta headern */
#malmon-boat-contact { scroll-margin-top: 90px; }

/* ── Ingen padding-top på innehållsområdet ────────────────────── */
body.malmon-boat-single #content.site-content,
body.malmon-boat-single .site-content { padding-top: 0 !important; }

/* ── Kolumner lika höga som den högsta i raden ────────────────── */
body.malmon-boat-single .elementor-section > .elementor-container {
    align-items: stretch !important;
}

/* Widget-wrap: flex-kolumn, full höjd ────────────────────────── */
body.malmon-boat-single .elementor-column > .elementor-widget-wrap {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
}

/* ── HERO: sträcks för att fylla kolumnen ─────────────────────── */
body.malmon-boat-single .elementor-widget-malmon_boat_hero {
    flex: 1 !important;
}

/* HERO inre padding – kolumnen är edge-till-edge p.g.a. globala
   .elementor-element-populated { padding: 0 } i homepage.css. */
body.malmon-boat-single .malmon-boat-hero {
    padding: clamp(48px, 6vw, 96px) clamp(28px, 5vw, 80px);
    box-sizing: border-box;
}

/* ── OMSLAGSBILD: fyller hela kolumnhöjden ────────────────────── */
body.malmon-boat-single .elementor-widget-malmon_boat_cover {
    flex: 1 !important;
    position: relative !important;
    overflow: hidden !important;
    min-height: 300px !important;
}

body.malmon-boat-single .elementor-widget-malmon_boat_cover > .elementor-widget-container {
    position: absolute !important;
    inset: 0 !important;
    padding: 0 !important;
}

body.malmon-boat-single .malmon-boat-cover {
    width: 100% !important;
    overflow: hidden !important;
    /* height: 100% flyttad till regeln nedan – bara fill-läget vill ha det.
       Standalone-läget måste låta Elementors cover_height-kontroll slå
       igenom utan att kämpa mot !important. */
}

/* Fill-läget (default för bt): tvinga full kolumnhöjd så bilden fyller
   det utrymme den absoluta wrappern ger. Standalone-läget får INTE den
   här regeln (`:not()`) så Elementor styr höjden istället. */
body.malmon-boat-single .malmon-boat-cover:not(.malmon-boat-cover--standalone) {
    height: 100% !important;
}

body.malmon-boat-single .malmon-boat-cover__img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
}

/* ── Standalone-läge (nya_bt-stil): cover på egen rad, egen höjd ─── */
/* Nollställ den absoluta positioneringen så widgetens egna höjd-
   kontroller (cover_height / cover_max_height) faktiskt slår igenom.
   Standalone-cover är full bredd på sin container och respekterar
   widgetens layoutkontroller. */
body.malmon-boat-single .elementor-widget-malmon_boat_cover:has(.malmon-boat-cover--standalone) {
    flex: none !important;
    position: relative !important;
    min-height: 0 !important;
    overflow: visible !important;
}
body.malmon-boat-single .elementor-widget-malmon_boat_cover:has(.malmon-boat-cover--standalone) > .elementor-widget-container {
    position: static !important;
    inset: auto !important;
    height: auto !important;
}
/* Standalone-cover: ärver width:100% + overflow:hidden från grundregeln,
   och Elementor sätter height + max-height via cover_height-kontrollen.
   Default-höjd via min-height så den aldrig kollapsar om kontrollen
   inte är satt. */
body.malmon-boat-single .malmon-boat-cover--standalone {
    position: relative;
    min-height: 300px;
}

/* ── GALLERI: noll padding på widget-container ────────────────── */
body.malmon-boat-single .elementor-widget-malmon_boat_gallery > .elementor-widget-container {
    padding: 0 !important;
}

body.malmon-boat-single .elementor-widget-malmon_boat_gallery .malmon-gallery {
    margin: 0 !important;
}


/* ================================================================
   GALLERI-KOMPONENT (funktionell CSS – ej tema)
   ================================================================ */

/* ── Omslagsbild – bas ────────────────────────────────────────── */
.malmon-boat-cover { width: 100%; }
.malmon-boat-cover__img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ── Galleri-slider ───────────────────────────────────────────── */
.malmon-gallery { width: 100%; user-select: none; }

.malmon-gallery__main-wrap { position: relative; overflow: hidden; }
.malmon-gallery--nav-below .malmon-gallery__main-wrap { position: static; }

/* Dölj galleriet tills Embla är initierat (förhindrar glimt av kloner) */
.malmon-gallery__viewport {
    width: 100%;
    overflow: hidden;
    border-radius: 0;
    visibility: hidden;  /* visibility i stf opacity – döljer även overflow-slides i peek-läge */
}
.malmon-gallery--ready .malmon-gallery__viewport {
    visibility: visible; /* inget fade – avslöjar aldrig slides i mellanstatus */
}

.malmon-gallery__track {
    display: flex;
    gap: var(--gallery-gap, 16px) !important; /* !important slår Elementors gamla gap:0-regel */
    will-change: transform;
    touch-action: pan-y pinch-zoom;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
}
.malmon-gallery__track:active { cursor: grabbing; }

/* Slide-bredd: calc räknar ut rätt bredd baserat på --gallery-spv (bilder per rad)
   och --gallery-gap, så att alla slides fyller raden exakt.
   --gallery-spv sätts av Elementor-kontrollen "Bilder per rad". */
.malmon-gallery__slide {
    flex: 0 0 calc(
        (100% - var(--gallery-gap, 16px) * (var(--gallery-spv, 1) - 1))
        / var(--gallery-spv, 1)
    );
    min-width: 0;
    position: relative;
    transition: transform 0.4s ease, opacity 0.4s ease;
}
/* Höjden sätts via en fast CSS-variabel på galleriet –
   alla slides delar samma värde oavsett bredd (peek/standard).
   Elementor-kontrollen uppdaterar --gallery-h via inline style. */
.malmon-gallery__slide-inner {
    position: relative;
    width: 100%;
    height: var(--gallery-h, 420px);
    padding-bottom: 0 !important; /* nollställer gammal Elementor-regel: padding-bottom: 62% */
    overflow: hidden;
}
.malmon-gallery__slide-inner img {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
    pointer-events: none;
}

/* Peek (1 bild + kanterna syns): overflow visible, slide = 84 % av bredden.
   Ignoreras när --multi är aktivt (spv > 1 styr bredden via calc istället). */
.malmon-gallery--peek:not(.malmon-gallery--multi) .malmon-gallery__viewport { overflow: visible; }
.malmon-gallery--peek:not(.malmon-gallery--multi) .malmon-gallery__slide   { flex: 0 0 84%; }

/* Multi-slide (2 / 3 / 4 bilder per rad): overflow visible +
   calc räknar bredd exakt. Peek-stilen ignoreras. */
.malmon-gallery--multi .malmon-gallery__viewport { overflow: visible; }

/* Scale */
.malmon-gallery--scale .malmon-gallery__slide:not(.is-selected) { transform: scale(0.9); opacity: 0.55; }
.malmon-gallery--scale .malmon-gallery__slide.is-selected       { transform: scale(1); opacity: 1; }

/* Opacity */
.malmon-gallery--opacity .malmon-gallery__slide:not(.is-selected) { opacity: 0.3; }
.malmon-gallery--opacity .malmon-gallery__slide.is-selected       { opacity: 1; }

/* ── Pilar ────────────────────────────────────────────────────── */
.malmon-gallery__controls { display: contents; }
.malmon-gallery--nav-below .malmon-gallery__controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 12px;
}

.malmon-gallery__nav {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    background: rgba(245,246,248,0.92) !important;
    color: #0f1f39 !important;
    border: none !important;
    border-radius: 0 !important;
    width: 44px !important;
    height: 44px !important;
    min-width: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: background 0.2s !important;
    z-index: 3 !important;
    line-height: 1 !important;
    flex-shrink: 0 !important;
}
.malmon-gallery__nav:hover { background: #fff !important; }
.malmon-gallery__nav svg   { display: block; flex-shrink: 0; pointer-events: none; }
.malmon-gallery__nav--prev { left: 0; }
.malmon-gallery__nav--next { right: 0; }
.malmon-gallery--peek .malmon-gallery__nav--prev { left: 8%; }
.malmon-gallery--peek .malmon-gallery__nav--next { right: 8%; }

/* ── Räknare ──────────────────────────────────────────────────── */
.malmon-gallery__counter {
    position: absolute;
    bottom: 16px;
    right: 20px;
    background: transparent;
    color: #f5f6f8;
    font-size: 0.62rem;
    font-weight: 400;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    z-index: 3;
    pointer-events: none;
    text-shadow: 0 1px 6px rgba(0,0,0,0.5);
}

/* Nav-below */
.malmon-gallery.malmon-gallery--nav-below .malmon-gallery__nav {
    position: static !important;
    top: auto !important; left: auto !important; right: auto !important;
    transform: none !important;
    background: transparent !important;
    color: #0f1f39 !important;
    border: 1px solid rgba(15,31,57,0.3) !important;
    width: 36px !important; height: 36px !important;
}
.malmon-gallery.malmon-gallery--nav-below .malmon-gallery__nav:hover {
    background: #0f1f39 !important;
    color: #f5f6f8 !important;
}
.malmon-gallery--nav-below .malmon-gallery__counter {
    position: static !important;
    right: auto !important; bottom: auto !important;
    color: #0f1f39 !important;
    text-shadow: none !important;
    opacity: 0.5;
    flex: 1;
    text-align: center;
}

/* ── Progress bar (Yachtsale-stil) ────────────────────────────── */
/* Kontroller i progress-läge: [01 ——— 18]  [← →] */
.malmon-gallery--progress .malmon-gallery__controls {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 14px;
    padding: 4px 0;
}

.malmon-gallery__progress-wrap {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1;
    min-width: 0;
    color: #0f1f39;
}

.malmon-gallery__progress-wrap .malmon-gallery__counter-current,
.malmon-gallery__counter-total {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.06em;
    opacity: 0.55;
    min-width: 2ch;
    text-align: right;
    font-variant-numeric: tabular-nums;
}
.malmon-gallery__progress-wrap .malmon-gallery__counter-current {
    text-align: left;
    opacity: 1;
}

.malmon-gallery__progress-bar {
    flex: 1;
    height: 1px;
    background: rgba(15, 31, 57, 0.18);
    position: relative;
    border-radius: 1px;
}

.malmon-gallery__progress-fill {
    position: absolute;
    top: 0; left: 0;
    height: 100%;
    width: 0%;
    background: #0f1f39;
    border-radius: 1px;
    transition: width 0.3s ease;
}

.malmon-gallery__nav-group {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

/* Pilar i nav-group: liten cirkel-knapp */
.malmon-gallery__nav-group .malmon-gallery__nav {
    position: static !important;
    top: auto !important; left: auto !important; right: auto !important;
    transform: none !important;
    width: 34px !important; height: 34px !important;
    border-radius: 50% !important;
    background: transparent !important;
    color: #0f1f39 !important;
    border: 1px solid rgba(15,31,57,0.3) !important;
    transition: background 0.15s, border-color 0.15s !important;
}
.malmon-gallery__nav-group .malmon-gallery__nav:hover {
    background: #0f1f39 !important;
    color: #f5f6f8 !important;
    border-color: #0f1f39 !important;
}

/* I mörkt/overlay-läge: ljus progress bar */
.malmon-gallery--progress:not(.malmon-gallery--nav-below) .malmon-gallery__progress-wrap { color: #f5f6f8; }
.malmon-gallery--progress:not(.malmon-gallery--nav-below) .malmon-gallery__progress-bar { background: rgba(245,246,248,0.2); }
.malmon-gallery--progress:not(.malmon-gallery--nav-below) .malmon-gallery__progress-fill { background: #f5f6f8; }
.malmon-gallery--progress:not(.malmon-gallery--nav-below) .malmon-gallery__nav-group .malmon-gallery__nav {
    color: #f5f6f8 !important;
    border-color: rgba(245,246,248,0.4) !important;
}
.malmon-gallery--progress:not(.malmon-gallery--nav-below) .malmon-gallery__nav-group .malmon-gallery__nav:hover {
    background: rgba(245,246,248,0.15) !important;
}

/* ── Zoom-knapp ────────────────────────────────────────────────── */
.malmon-gallery__zoom-btn {
    position: absolute !important;
    top: 14px !important; right: 14px !important;
    background: rgba(245,246,248,0.92) !important;
    color: #0f1f39 !important;
    border: none !important; border-radius: 0 !important;
    width: 34px !important; height: 34px !important;
    min-width: 0 !important; padding: 0 !important; margin: 0 !important;
    display: flex !important;
    align-items: center !important; justify-content: center !important;
    cursor: pointer !important;
    transition: background 0.2s !important;
    z-index: 3 !important; line-height: 1 !important;
}
.malmon-gallery__zoom-btn:hover { background: #fff !important; }
.malmon-gallery__zoom-btn svg   { display: block; pointer-events: none; }

/* ── Miniatyrstrip ─────────────────────────────────────────────── */
.malmon-gallery__thumbs {
    display: flex;
    flex-direction: row;
    margin-top: 2px;
    overflow-x: auto; overflow-y: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.malmon-gallery__thumbs::-webkit-scrollbar { display: none; }

.malmon-gallery__thumb {
    flex: 0 0 auto;
    width: 80px; height: 54px;
    overflow: hidden;
    border-radius: 0;
    border: 2px solid transparent;
    cursor: pointer; padding: 0;
    transition: border-color 0.15s, opacity 0.15s;
    outline: none;
}
.malmon-gallery__thumb img {
    width: 100%; height: 100%;
    object-fit: cover; display: block;
    transition: transform 0.2s;
    pointer-events: none;
}
.malmon-gallery__thumb:hover img          { transform: scale(1.07); }
.malmon-gallery__thumb.is-active          { border-color: #f5f6f8; opacity: 1; }
.malmon-gallery__thumb:not(.is-active)    { opacity: 0.4; }
.malmon-gallery__thumb:not(.is-active):hover { opacity: 0.7; }

.malmon-gallery--no-thumbs .malmon-gallery__thumbs { display: none; }

.malmon-gallery__empty {
    padding: 80px 40px;
    text-align: center;
    opacity: 0.35;
    font-size: 0.7rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

/* ── Lightbox ─────────────────────────────────────────────────── */
.malmon-lightbox {
    position: fixed; inset: 0; z-index: 99999;
    background: rgba(15,31,57,0.94);
    display: flex; align-items: center; justify-content: center;
    padding: 24px; box-sizing: border-box;
    animation: malmon-lb-in 0.2s ease;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.malmon-lightbox[hidden] { display: none; }

@keyframes malmon-lb-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.malmon-lightbox__card {
    position: relative;
    background: #0f1f39;
    border-radius: 0;
    display: flex; flex-direction: column;
    overflow: hidden;
    max-width: min(94vw, 1140px);
    max-height: 92vh;
}

.malmon-lightbox__img-wrap {
    flex: 1; display: flex;
    align-items: center; justify-content: center;
    overflow: hidden; padding: 0; min-height: 0;
}
.malmon-lightbox__img {
    max-width: 100%; max-height: calc(92vh - 56px);
    object-fit: contain; display: block;
}

.malmon-lightbox__footer {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 20px; flex-shrink: 0;
    border-top: 1px solid rgba(245,246,248,0.1);
}
.malmon-lightbox__counter {
    font-size: 0.62rem; font-weight: 400;
    color: #f5f6f8; letter-spacing: 0.2em;
    text-transform: uppercase; opacity: 0.5;
}
.malmon-lightbox__nav-group { display: flex; gap: 8px; }

.malmon-lightbox__nav {
    width: 34px !important; height: 34px !important;
    min-width: 0 !important; padding: 0 !important; margin: 0 !important;
    background: transparent !important;
    color: #f5f6f8 !important;
    border: 1px solid rgba(245,246,248,0.25) !important;
    border-radius: 0 !important;
    display: flex !important; align-items: center !important; justify-content: center !important;
    cursor: pointer !important;
    transition: border-color 0.15s, background 0.15s !important;
    position: static !important; top: auto !important; transform: none !important;
    box-shadow: none !important; line-height: 1 !important;
}
.malmon-lightbox__nav:hover {
    background: rgba(245,246,248,0.1) !important;
    border-color: rgba(245,246,248,0.6) !important;
}
.malmon-lightbox__nav svg  { display: block; pointer-events: none; }

.malmon-lightbox__close {
    position: absolute !important;
    top: 14px !important; right: 14px !important;
    width: 30px !important; height: 30px !important;
    min-width: 0 !important; padding: 0 !important; margin: 0 !important;
    background: transparent !important;
    color: #f5f6f8 !important;
    border: 1px solid rgba(245,246,248,0.25) !important;
    border-radius: 0 !important;
    display: flex !important; align-items: center !important; justify-content: center !important;
    cursor: pointer !important;
    transition: border-color 0.15s !important;
    z-index: 2 !important; line-height: 1 !important; box-shadow: none !important;
}
.malmon-lightbox__close:hover { border-color: rgba(245,246,248,0.7) !important; }
.malmon-lightbox__close svg  { display: block; pointer-events: none; }

/* ── HERO-widget – vita textstilar (fungerar på mörk bakgrund satt i Elementor) ── */
.malmon-boat-hero { margin-bottom: 0; }

.malmon-boat-hero__eyebrow {
    font-size: 0.68rem !important; font-weight: 400 !important;
    letter-spacing: 0.38em !important; text-transform: uppercase !important;
    color: #f5f6f8 !important; opacity: 0.5;
    margin: 0 0 20px !important;
}
.malmon-boat-hero__divider {
    display: block !important; width: 36px !important; height: 1px !important;
    background: #f5f6f8 !important; opacity: 0.18;
    margin-bottom: 20px !important;
}
.malmon-boat-hero__title {
    font-size: clamp(1.9rem, 4.5vw, 3.6rem) !important;
    font-weight: 300 !important; letter-spacing: 0.14em !important;
    text-transform: uppercase !important; color: #f5f6f8 !important;
    line-height: 1.1 !important; margin: 0 0 24px !important;
}
.malmon-boat-hero__sold-badge {
    display: inline-block !important;
    font-size: 0.62rem !important; font-weight: 600 !important;
    letter-spacing: 0.12em !important; text-transform: uppercase !important;
    color: #fff !important; background: rgba(220,38,38,0.85) !important;
    padding: 4px 12px !important; margin-bottom: 24px !important;
}
.malmon-boat-hero__meta {
    display: flex !important; align-items: baseline !important;
    gap: 28px !important; flex-wrap: wrap !important; margin-bottom: 36px !important;
}
.malmon-boat-hero__meta-item { display: flex !important; flex-direction: column !important; gap: 4px !important; }
.malmon-boat-hero__label {
    font-size: 0.62rem !important; font-weight: 400 !important;
    letter-spacing: 0.3em !important; text-transform: uppercase !important;
    color: #f5f6f8 !important; opacity: 0.45;
}
.malmon-boat-hero__year-value {
    font-size: 1.1rem !important; font-weight: 300 !important;
    letter-spacing: 0.08em !important; color: #f5f6f8 !important;
}
.malmon-boat-hero__price-value {
    font-size: 1.5rem !important; font-weight: 300 !important;
    letter-spacing: 0.04em !important; color: #f5f6f8 !important;
}
.malmon-boat-hero__cta {
    display: inline-flex !important; align-items: center !important; gap: 12px !important;
    padding: 0.85rem 2.4rem !important;
    border: 1px solid rgba(245,246,248,0.45) !important;
    color: #f5f6f8 !important;
    font-size: 0.68rem !important; font-weight: 400 !important;
    letter-spacing: 0.22em !important; text-transform: uppercase !important;
    text-decoration: none !important;
    transition: background 0.25s, border-color 0.25s !important;
    background: transparent !important; cursor: pointer !important;
}
.malmon-boat-hero__cta:hover {
    background: rgba(245,246,248,0.1) !important;
    border-color: rgba(245,246,248,0.85) !important;
}
.malmon-boat-hero__cta svg { display: block; flex-shrink: 0; opacity: 0.65; transition: opacity 0.2s; }
.malmon-boat-hero__cta:hover svg { opacity: 1; }

/* ── CONTENT-widget – båtens redaktionella innehåll ──────────── */
.malmon-boat-content { margin: 0; }

/* Inre padding på single-bt (kolumnen är edge-till-edge). */
body.malmon-boat-single .malmon-boat-content {
    padding: clamp(32px, 5vw, 72px) clamp(28px, 5vw, 80px);
    box-sizing: border-box;
}

.malmon-boat-content__heading {
    font-size: 0.62rem;
    font-weight: 400;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    opacity: 0.4;
    margin: 0 0 20px;
}

.malmon-boat-content__body {
    font-size: 0.95rem;
    line-height: 1.65;
    font-weight: 300;
    letter-spacing: 0.01em;
}

/* Astra-fälla: .entry-content p { margin-bottom: 1.6em } slår över
   single-class-regler. Prefixa med wrapper-klass (2 klasser vinner). */
.malmon-boat-content .malmon-boat-content__body p {
    margin: 0 0 1.1em;
}
.malmon-boat-content .malmon-boat-content__body p:last-child {
    margin-bottom: 0;
}

.malmon-boat-content__body h2,
.malmon-boat-content__body h3,
.malmon-boat-content__body h4 {
    font-weight: 300;
    letter-spacing: 0.06em;
    margin: 1.6em 0 0.6em;
    line-height: 1.25;
}
.malmon-boat-content__body h2 { font-size: 1.35rem; }
.malmon-boat-content__body h3 { font-size: 1.1rem; }
.malmon-boat-content__body h4 { font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.12em; }
.malmon-boat-content__body > :first-child { margin-top: 0; }
.malmon-boat-content__body > :last-child  { margin-bottom: 0; }

.malmon-boat-content__body ul,
.malmon-boat-content__body ol {
    margin: 0 0 1.1em 1.25em;
    padding: 0;
}
.malmon-boat-content__body li { margin: 0 0 0.35em; }

.malmon-boat-content__body a {
    text-decoration: underline;
    text-underline-offset: 0.18em;
    text-decoration-thickness: 1px;
}

.malmon-boat-content__body img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 1.2em 0;
}

.malmon-boat-content__body blockquote {
    margin: 1.4em 0;
    padding: 0.4em 0 0.4em 1.2em;
    border-left: 2px solid currentColor;
    opacity: 0.75;
    font-style: italic;
}

/* ── SPECS-widget – ärver Elementor-kolumnens färg ────────────── */
.malmon-specs { margin: 0; padding: 0; display: flex; flex-direction: column; }

/* SPECS inre padding på single-bt – samma orsak som hero. */
body.malmon-boat-single .malmon-specs {
    padding: clamp(32px, 5vw, 72px) clamp(28px, 5vw, 80px);
    box-sizing: border-box;
}

.malmon-specs__heading {
    font-size: 0.62rem; font-weight: 400;
    letter-spacing: 0.35em; text-transform: uppercase;
    opacity: 0.4; margin: 0 0 20px;
}
.malmon-specs__row {
    display: flex; align-items: baseline;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid currentColor;
    border-bottom-color: rgba(0,0,0,0.07);
    gap: 20px;
}
.malmon-specs__row:first-of-type { padding-top: 0; }
.malmon-specs__row:last-child    { border-bottom: none; padding-bottom: 0; }

.malmon-specs__label {
    font-size: 0.75rem; font-weight: 400;
    letter-spacing: 0.05em; opacity: 0.5; flex-shrink: 0;
}
.malmon-specs__value {
    font-size: 0.88rem; font-weight: 300;
    letter-spacing: 0.04em; text-align: right; margin: 0;
}
.malmon-specs__value--price {
    font-size: 1rem !important; font-weight: 400 !important;
}
.malmon-specs__value--sold {
    font-size: 0.6rem; font-weight: 600;
    letter-spacing: 0.12em; text-transform: uppercase;
    padding: 4px 12px; display: inline-block;
}
.malmon-specs__value--available {
    font-size: 0.6rem; font-weight: 400;
    letter-spacing: 0.12em; text-transform: uppercase;
    padding: 4px 12px; display: inline-block;
}

/* ── Ikon (gemensamt) ─────────────────────────────────────────── */
.malmon-specs__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    color: #0f1f39;
}
.malmon-specs__icon svg { width: 1em; height: 1em; fill: currentColor; }
.malmon-specs__icon i  { font-style: normal; }

/* Inline-ikon i list-läget: liten, till vänster om etiketten */
.malmon-specs__icon--inline {
    font-size: 1rem;
    margin-right: 10px;
    opacity: 0.6;
    flex-shrink: 0;
}
/* List-rad med ikon: etikett + ikon på vänster sida, värde till höger */
.malmon-specs--list .malmon-specs__row { position: relative; }

/* ── Rutnäts-layout (ikongrid som på nya-båt-sidan) ───────────── */
.malmon-specs--grid .malmon-specs__grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 32px;
    width: 100%;
}
.malmon-specs--grid .malmon-specs__cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    /* nollställ list-lägets border/padding */
    border: none;
    padding: 0;
}
.malmon-specs--grid .malmon-specs__icon {
    font-size: 34px;
    margin-bottom: 14px;
}
.malmon-specs--grid .malmon-specs__label {
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    opacity: 0.85;
    margin-bottom: 6px;
    flex-shrink: 1;
}
.malmon-specs--grid .malmon-specs__value {
    font-size: 0.9rem;
    font-weight: 300;
    text-align: center;
    opacity: 0.7;
}

/* ════════════════════════════════════════════════════════════════
   BÅT – TEXT 2 KOLUMNER (malmon_boat_two_col)
   ════════════════════════════════════════════════════════════════ */
.malmon-boat-2col { width: 100%; box-sizing: border-box; }

/* Inre padding på single-bt/nya_bt (kolumnen är edge-till-edge). */
body.malmon-boat-single .malmon-boat-2col {
    padding: clamp(40px, 5vw, 80px) clamp(28px, 5vw, 80px);
}

.malmon-boat-2col__heading {
    margin: 0 0 32px;
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 300;
    line-height: 1.15;
    letter-spacing: 0.01em;
    color: #3a4a5a;
}

.malmon-boat-2col__cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}
.malmon-boat-2col__cols--one {
    grid-template-columns: 1fr;
}

.malmon-boat-2col__col {
    font-size: 0.95rem;
    line-height: 1.7;
    font-weight: 300;
    color: #4a5560;
}

/* Astra-fälla: .entry-content p { margin-bottom: 1.6em } slår över
   single-class. 2 klasser vinner → konsekvent styckmarginal. */
.malmon-boat-2col .malmon-boat-2col__col p {
    margin: 0 0 1.1em;
}
.malmon-boat-2col .malmon-boat-2col__col p:last-child { margin-bottom: 0; }

.malmon-boat-2col__col > :first-child { margin-top: 0; }
.malmon-boat-2col__col > :last-child  { margin-bottom: 0; }

.malmon-boat-2col__col h2,
.malmon-boat-2col__col h3,
.malmon-boat-2col__col h4 {
    font-weight: 400;
    line-height: 1.25;
    margin: 1.4em 0 0.5em;
}
.malmon-boat-2col__col ul,
.malmon-boat-2col__col ol { margin: 0 0 1.1em 1.25em; padding: 0; }
.malmon-boat-2col__col li { margin: 0 0 0.35em; }

.malmon-boat-2col__col a {
    text-decoration: underline;
    text-underline-offset: 0.18em;
    text-decoration-thickness: 1px;
}

/* Mobil: alltid en kolumn */
@media (max-width: 768px) {
    .malmon-boat-2col__cols { grid-template-columns: 1fr; gap: 28px; }
    body.malmon-boat-single .malmon-boat-2col { padding: 32px 22px; }
}

/* ── Responsiv ────────────────────────────────────────────────── */
@media (max-width: 900px) {
    body.malmon-boat-single .elementor-widget-malmon_boat_cover {
        min-height: 70vw !important;
    }
    /* Mobil: tightare inre padding på hero/specs (clamp:s min-värde
       passar tablet men är lite tilltaget för 375 px) */
    body.malmon-boat-single .malmon-boat-hero    { padding: 36px 22px !important; }
    body.malmon-boat-single .malmon-specs        { padding: 28px 22px !important; }
    body.malmon-boat-single .malmon-boat-content { padding: 28px 22px !important; }

    .malmon-boat-hero__title { font-size: clamp(1.6rem, 6vw, 2.4rem) !important; }
    .malmon-boat-hero__meta  { gap: 20px !important; margin-bottom: 28px !important; }
    .malmon-boat-hero__cta   { width: 100% !important; justify-content: center !important; }
    .malmon-gallery__thumb   { width: 68px; height: 46px; }
    .malmon-gallery__nav     { width: 38px !important; height: 38px !important; }
}

/* Rutnäts-specs: fallback-kolumner om Elementors responsive-kontroll
   inte är satt på en äldre widget-instans. */
@media (max-width: 900px) {
    .malmon-specs--grid .malmon-specs__grid { grid-template-columns: repeat(3, 1fr); gap: 24px; }
}
@media (max-width: 560px) {
    .malmon-specs--grid .malmon-specs__grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}
