/*
 * Jinja Masters — editorial real-estate theme for Jinja Consolidated.
 * Palette and rhythm follow the "Masters" residential site: warm cream paper, deep brown ink,
 * terracotta accents, wide uppercase display type, generous spacing and slow scroll reveals.
 * Built on Flex Home: inner pages keep their markup and are restyled through the tokens below.
 */
:root {
    --jm-ink: #452d2a;
    --jm-ink-2: #372522;
    --jm-paper: #f2e6d6;
    --jm-paper-2: #fcf0e0;
    --jm-clay: #a54b25;
    --jm-clay-2: #c06d30;
    --jm-olive: #6b6a44;
    --jm-line: rgba(69, 45, 42, .22);
    --jm-display: 'Archivo', 'Arial Narrow', Arial, sans-serif;
    --jm-text: 'Inter', Arial, sans-serif;
    --jm-gutter: clamp(16px, 4vw, 64px);
    --jm-header: 84px;
}

/* ------------------------------------------------------------------ base */
body {
    background: var(--jm-paper);
    color: var(--jm-ink);
    font-family: var(--jm-text);
}
/* The Announcements strip stays in the page flow; the fixed header sits just under it (see --jm-top in the JS)
   and inner pages reserve the header's height below it. */
body:not(.jm-has-hero) #app { padding-top: var(--jm-header); }
a { color: var(--jm-ink); }
a:hover { color: var(--jm-clay); }
h1, h2, h3, h4, h5, .h1, .h2, .h3 {
    font-family: var(--jm-display);
    font-stretch: 125%;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .01em;
    color: var(--jm-ink);
}
::selection { background: var(--jm-clay); color: var(--jm-paper); }
:focus-visible { outline: 2px solid var(--jm-clay); outline-offset: 3px; }
.jm-visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.jm-skip { position: fixed; left: 12px; top: -60px; z-index: 2000; background: var(--jm-ink); color: var(--jm-paper); padding: 10px 14px; }
.jm-skip:focus { top: 12px; color: var(--jm-paper); }
.jm-eyebrow {
    font: 500 12px/1.4 var(--jm-text);
    letter-spacing: .14em;
    text-transform: uppercase;
    margin: 0 0 18px;
}
.jm-lead { font-size: clamp(15px, 1.25vw, 18px); line-height: 1.6; text-transform: uppercase; letter-spacing: .02em; max-width: 46ch; }
.jm-display {
    font: 500 clamp(34px, 5.6vw, 92px)/.98 var(--jm-display);
    font-stretch: 125%;
    text-transform: uppercase;
    letter-spacing: -.01em;
    margin: 0 0 clamp(28px, 4vw, 56px);
}
.jm-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    min-height: 52px; padding: 0 28px;
    border: 1px solid var(--jm-ink); border-radius: 999px;
    background: transparent; color: var(--jm-ink);
    font: 500 13px/1 var(--jm-text); letter-spacing: .12em; text-transform: uppercase;
    text-decoration: none; transition: background .3s, color .3s;
}
.jm-btn:hover { background: var(--jm-ink); color: var(--jm-paper); text-decoration: none; }
.jm-btn-light { border-color: var(--jm-paper); color: var(--jm-paper); }
.jm-btn-light:hover { background: var(--jm-paper); color: var(--jm-ink); }
.jm-link { font: 500 13px/1.4 var(--jm-text); letter-spacing: .12em; text-transform: uppercase; text-decoration: underline; text-underline-offset: 6px; }

/* ------------------------------------------------------------------ header */
.jm-announcement { position: relative; z-index: 1031; }
.jm-header {
    position: fixed; inset: 0 0 auto; z-index: 1030;
    top: var(--jm-top, 0px);
    height: var(--jm-header);
    display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
    padding: 0 var(--jm-gutter);
    background: var(--jm-paper); color: var(--jm-ink);
    border-bottom: 1px solid var(--jm-line);
    transition: background .4s, color .4s, border-color .4s, transform .4s;
}
.jm-has-hero .jm-header:not(.is-solid) { background: transparent; color: var(--jm-paper); border-color: rgba(242, 230, 214, .3); }
.jm-header.is-hidden { transform: translateY(-100%); }
.jm-header-side { display: flex; gap: 28px; align-items: center; }
.jm-header-right { justify-content: flex-end; }
.jm-header-link, .jm-menu-button, .jm-menu-close {
    color: inherit; font: 500 12px/1 var(--jm-text); letter-spacing: .14em; text-transform: uppercase; text-decoration: none;
}
.jm-header-link:hover { color: inherit; text-decoration: underline; text-underline-offset: 6px; }
.jm-logo { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; }
.jm-logo:hover { color: inherit; text-decoration: none; }
.jm-logo img { height: 44px; width: auto; border-radius: 50%; background: var(--jm-paper); }
.jm-logo-text { display: flex; flex-direction: column; line-height: 1; text-transform: uppercase; }
.jm-logo-text b { font: 600 24px/1 var(--jm-display); font-stretch: 125%; letter-spacing: .06em; }
.jm-logo-text small { font: 500 9px/1.6 var(--jm-text); letter-spacing: .42em; }
/* Menu button: an outlined pill. Hover fills it, press gives a small push, open turns the lines into an X. */
.jm-menu-button, .jm-menu-close {
    --mb-line: currentColor;
    position: relative; display: inline-flex; align-items: center; gap: 12px;
    min-height: 44px; padding: 0 16px 0 20px;
    border: 1px solid color-mix(in srgb, currentColor 45%, transparent); border-radius: 999px;
    background: transparent; cursor: pointer; overflow: hidden; isolation: isolate;
    transition: color .35s ease, border-color .35s ease, transform .2s ease;
}
/* the fill grows from the right on hover */
.jm-menu-button::before, .jm-menu-close::before {
    content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
    background: currentColor; transform: scaleX(0); transform-origin: right center;
    transition: transform .45s cubic-bezier(.7, 0, .2, 1);
}
.jm-menu-label { position: relative; transition: color .35s ease; }
.jm-menu-lines { position: relative; display: block; width: 22px; height: 12px; }
.jm-menu-lines b { position: absolute; right: 0; height: 1.5px; border-radius: 2px; background: var(--mb-line); transition: width .35s cubic-bezier(.7, 0, .2, 1), transform .45s cubic-bezier(.7, 0, .2, 1), top .35s ease, background .35s ease; }
.jm-menu-lines b:first-child { top: 2px; width: 22px; }
.jm-menu-lines b:last-child { top: 9px; width: 14px; }

/* hover / keyboard focus: fill with the text colour, text turns to the background colour */
.jm-header .jm-menu-button:hover::before, .jm-header .jm-menu-button:focus-visible::before,
.jm-menu-close:hover::before, .jm-menu-close:focus-visible::before { transform: scaleX(1); transform-origin: left center; }
.jm-header .jm-menu-button:hover .jm-menu-label, .jm-header .jm-menu-button:focus-visible .jm-menu-label { color: var(--jm-paper); }
.jm-header .jm-menu-button:hover, .jm-header .jm-menu-button:focus-visible { border-color: currentColor; }
.jm-header .jm-menu-button:hover .jm-menu-lines b, .jm-header .jm-menu-button:focus-visible .jm-menu-lines b { --mb-line: var(--jm-paper); }
.jm-header .jm-menu-button:hover .jm-menu-lines b:last-child { width: 22px; }
/* over the hero photo the header is cream-on-photo: fill cream, text brown */
.jm-has-hero .jm-header:not(.is-solid) .jm-menu-button:hover .jm-menu-label,
.jm-has-hero .jm-header:not(.is-solid) .jm-menu-button:focus-visible .jm-menu-label { color: var(--jm-ink); }
.jm-has-hero .jm-header:not(.is-solid) .jm-menu-button:hover .jm-menu-lines b,
.jm-has-hero .jm-header:not(.is-solid) .jm-menu-button:focus-visible .jm-menu-lines b { --mb-line: var(--jm-ink); }
.jm-menu-button:focus-visible, .jm-menu-close:focus-visible { outline: 2px solid var(--jm-clay-2); outline-offset: 3px; }
.jm-menu-button:active, .jm-menu-close:active { transform: scale(.96); }

/* open: the two lines cross into an X and the label reads "Close" */
.jm-menu-button[aria-expanded="true"] .jm-menu-lines b, .jm-menu-lines.is-x b { top: 5px; width: 20px; }
.jm-menu-button[aria-expanded="true"] .jm-menu-lines b:first-child, .jm-menu-lines.is-x b:first-child { transform: rotate(45deg); }
.jm-menu-button[aria-expanded="true"] .jm-menu-lines b:last-child, .jm-menu-lines.is-x b:last-child { transform: rotate(-45deg); }
.jm-menu-button[aria-expanded="true"] .jm-menu-label { font-size: 0; }
.jm-menu-button[aria-expanded="true"] .jm-menu-label::after { content: attr(data-close); font-size: 12px; }

/* the Close pill inside the menu: cream outline; hover fills cream and spins the X a quarter turn */
.jm-menu-close { color: var(--jm-paper); }
.jm-menu-close:hover span, .jm-menu-close:focus-visible span { color: var(--jm-ink); }
.jm-menu-close:hover .jm-menu-lines b, .jm-menu-close:focus-visible .jm-menu-lines b { --mb-line: var(--jm-ink); }
.jm-menu-close .jm-menu-lines { transition: transform .45s cubic-bezier(.7, 0, .2, 1); }
.jm-menu-close:hover .jm-menu-lines { transform: rotate(90deg); }
@media (max-width: 575px) {
    .jm-menu-button { padding: 0 12px 0 14px; gap: 10px; }
}

/* full-screen menu */
.jm-menu {
    position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0;
    border: 0; background: var(--jm-ink); color: var(--jm-paper); overflow-y: auto;
}
.jm-menu[open] { display: flex; flex-direction: column; animation: jm-fade .35s ease; }
.jm-menu::backdrop { background: rgba(55, 37, 34, .6); }
.jm-menu a { color: var(--jm-paper); }
.jm-menu-head { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: var(--jm-header); padding: 0 var(--jm-gutter); border-bottom: 1px solid rgba(242, 230, 214, .2); }
.jm-menu-close { justify-self: end; }
.jm-menu-body { flex: 1; display: grid; grid-template-columns: 1.6fr 1fr; gap: var(--jm-gutter); padding: clamp(28px, 5vw, 72px) var(--jm-gutter); }
.jm-menu-list, .jm-menu-sub { list-style: none; margin: 0; padding: 0; }
.jm-menu-list > li > a {
    display: block; padding: 6px 0;
    font: 500 clamp(26px, 3.6vw, 54px)/1.1 var(--jm-display); font-stretch: 125%; text-transform: uppercase; text-decoration: none;
}
.jm-menu-list > li > a:hover, .jm-menu-list > li.is-active > a { color: var(--jm-clay-2); }
.jm-menu-sub { display: flex; flex-wrap: wrap; gap: 4px 22px; padding: 0 0 12px 2px; }
.jm-menu-sub a { font: 400 13px/1.8 var(--jm-text); letter-spacing: .08em; text-transform: uppercase; opacity: .8; }
.jm-menu-aside { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; font: 400 13px/1.6 var(--jm-text); letter-spacing: .06em; text-transform: uppercase; }
.jm-currencies { display: flex; gap: 14px; }
.jm-currencies a[aria-current] { text-decoration: underline; text-underline-offset: 5px; }
.jm-menu-contact { margin-top: auto; display: flex; flex-direction: column; gap: 6px; opacity: .85; }
body.jm-menu-open { overflow: hidden; }
/* menu items rise in one after another when the menu opens */
.jm-menu[open] .jm-menu-list > li { animation: jm-rise .6s cubic-bezier(.2, .7, .2, 1) both; }
.jm-menu[open] .jm-menu-list > li:nth-child(2) { animation-delay: .04s; }
.jm-menu[open] .jm-menu-list > li:nth-child(3) { animation-delay: .08s; }
.jm-menu[open] .jm-menu-list > li:nth-child(4) { animation-delay: .12s; }
.jm-menu[open] .jm-menu-list > li:nth-child(5) { animation-delay: .16s; }
.jm-menu[open] .jm-menu-list > li:nth-child(6) { animation-delay: .2s; }
.jm-menu[open] .jm-menu-list > li:nth-child(n+7) { animation-delay: .24s; }
.jm-menu-list > li > a { transition: color .3s ease, padding-left .35s cubic-bezier(.2, .7, .2, 1); }
.jm-menu-list > li > a:hover, .jm-menu-list > li > a:focus-visible { padding-left: 14px; outline: none; }
@keyframes jm-rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* ------------------------------------------------------------------ "What would you like to do?" actions */
.jm-actions { margin-top: clamp(16px, 3vh, 28px); }
.jm-actions-label { margin: 0 0 10px; font: 500 11px/1.3 var(--jm-text); letter-spacing: .16em; text-transform: uppercase; opacity: .85; }
.jm-actions-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.jm-action {
    display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px 0 12px;
    border: 1px solid rgba(242, 230, 214, .38); border-radius: 999px;
    background: rgba(20, 12, 10, .28); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
    color: var(--jm-paper); font: 500 12px/1 var(--jm-text); letter-spacing: .08em; text-transform: uppercase; text-decoration: none; white-space: nowrap;
    transition: background .3s ease, color .3s ease, border-color .3s ease, transform .2s ease;
}
.jm-action svg { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.jm-action .jm-action-arrow { width: 0; margin-left: -8px; opacity: 0; transform: translateX(-6px); transition: width .3s ease, margin .3s ease, opacity .3s ease, transform .3s ease; }
.jm-action:hover, .jm-action:focus-visible { background: var(--jm-paper); border-color: var(--jm-paper); color: var(--jm-ink); text-decoration: none; outline: none; }
.jm-action:hover .jm-action-arrow, .jm-action:focus-visible .jm-action-arrow { width: 14px; margin-left: 0; opacity: 1; transform: none; }
.jm-action:focus-visible { box-shadow: 0 0 0 3px rgba(192, 109, 48, .7); }
.jm-action:active { transform: scale(.97); }
.jm-action-all { background: var(--jm-clay); border-color: var(--jm-clay); }
.jm-action-all .jm-action-arrow { width: 14px; margin-left: 0; opacity: 1; transform: none; }
.jm-action-all:hover, .jm-action-all:focus-visible { background: var(--jm-paper); border-color: var(--jm-paper); }

/* hero: compact buttons in one row on laptops (wraps only on tall screens), rising in after the title */
.jm-actions-hero .jm-action { min-height: 38px; padding: 0 12px 0 10px; gap: 7px; font-size: 11px; letter-spacing: .07em; }
.jm-actions-hero .jm-actions-list { padding: 3px 0 4px; }
@media (max-height: 760px) and (min-width: 768px) {
    .jm-actions-hero .jm-actions-list { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
    .jm-actions-hero .jm-actions-list::-webkit-scrollbar { display: none; }
    /* shorter screens: tighten the hero so title, search and actions fit under the header */
    .jm-hero-title { font-size: clamp(30px, min(6.6vw, 9vh), 112px) !important; margin-bottom: 14px !important; }
    .jm-hero .jm-eyebrow { margin-bottom: 8px; }
    .jm-hero-search input, .jm-hero-search select, .jm-hero-search button { min-height: 44px; padding-top: 10px; padding-bottom: 10px; }
    .jm-actions { margin-top: 12px; }
    .jm-actions-label { margin-bottom: 6px; }
    .jm-hero .jm-hero-body { padding-bottom: clamp(96px, 16vh, 150px); }
}
.jm-actions-hero .jm-actions-list > li { animation: jm-rise .7s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(.9s + var(--n, 0) * 55ms); }
.jm-actions-hero .jm-actions-label { animation: jm-rise .7s cubic-bezier(.2, .7, .2, 1) .8s both; }

/* menu: a tidy two-column grid of the same actions */
.jm-actions-menu { width: 100%; margin: 0 0 8px; }
.jm-actions-menu .jm-actions-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.jm-actions-menu .jm-action { width: 100%; background: transparent; border-color: rgba(242, 230, 214, .25); white-space: normal; line-height: 1.25; padding: 8px 12px; }
.jm-actions-menu .jm-action-all { background: var(--jm-clay); border-color: var(--jm-clay); }

/* phones: one swipeable row with a soft fade at the edge, so the hero stays clean */
@media (max-width: 767px) {
    .jm-actions-hero { margin-left: calc(var(--jm-gutter) * -1); margin-right: calc(var(--jm-gutter) * -1); }
    .jm-actions-hero .jm-actions-label { padding: 0 var(--jm-gutter); }
    .jm-actions-hero .jm-actions-list {
        flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; -webkit-overflow-scrolling: touch;
        padding: 2px var(--jm-gutter) 6px; scroll-padding: 0 var(--jm-gutter);
        -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent);
    }
    .jm-actions-hero .jm-actions-list::-webkit-scrollbar { display: none; }
    .jm-actions-hero .jm-actions-list > li { scroll-snap-align: start; }
    .jm-action { min-height: 44px; }
    .jm-actions-menu .jm-actions-list { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
    .jm-actions-hero .jm-actions-list > li, .jm-actions-hero .jm-actions-label, .jm-menu[open] .jm-menu-list > li { animation: none; }
    .jm-menu-button, .jm-menu-close, .jm-menu-button::before, .jm-menu-close::before, .jm-menu-lines b, .jm-action, .jm-action .jm-action-arrow { transition: none; }
}

/* ------------------------------------------------------------------ hero */
.jm-hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; color: var(--jm-paper); overflow: hidden; }
.jm-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); animation: jm-hero-in 2.4s cubic-bezier(.2, .7, .2, 1) forwards; }
.jm-hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(55, 37, 34, .55) 0%, rgba(55, 37, 34, .1) 35%, rgba(55, 37, 34, .7) 100%); }
.jm-hero-body { position: relative; width: 100%; padding: 0 var(--jm-gutter) clamp(48px, 9vh, 110px); }
.jm-hero-title { font: 500 clamp(38px, 7.2vw, 128px)/.95 var(--jm-display); font-stretch: 125%; text-transform: uppercase; color: var(--jm-paper); margin: 0 0 clamp(28px, 4vw, 52px); max-width: 15ch; }
.jm-hero-search { display: flex; max-width: 760px; border-bottom: 1px solid rgba(242, 230, 214, .6); }
.jm-hero-search input, .jm-hero-search select, .jm-hero-search button {
    background: transparent; border: 0; color: var(--jm-paper); font: 400 15px/1 var(--jm-text); letter-spacing: .04em; padding: 16px 0; min-height: 54px;
}
.jm-hero-search input { flex: 1; min-width: 0; }
.jm-hero-search input::placeholder { color: rgba(242, 230, 214, .7); }
.jm-hero-search select { padding: 0 16px; text-transform: uppercase; font-size: 12px; letter-spacing: .12em; }
.jm-hero-search select option { color: var(--jm-ink); }
.jm-hero-search button { padding: 0 0 0 16px; text-transform: uppercase; font-size: 12px; letter-spacing: .14em; font-weight: 600; cursor: pointer; }
.jm-scroll { position: absolute; right: var(--jm-gutter); bottom: clamp(48px, 9vh, 110px); width: 1px; height: 80px; background: rgba(242, 230, 214, .35); overflow: hidden; }
.jm-scroll span { position: absolute; left: 0; top: 0; width: 1px; height: 30px; background: var(--jm-paper); animation: jm-scroll 2s ease-in-out infinite; }

/* split headings: letters rise in, one after another */
.jm-split .jm-word { display: inline-block; white-space: nowrap; }
.jm-split .jm-ch { display: inline-block; }
.jm-js .jm-split .jm-ch { opacity: 0; transform: translateY(.45em); transition: opacity .6s ease, transform .8s cubic-bezier(.2, .7, .2, 1); transition-delay: calc(var(--i, 0) * 28ms); }
.jm-js .jm-split.is-in .jm-ch { opacity: 1; transform: none; }

/* ------------------------------------------------------------------ sections */
.jm-home section { padding: clamp(64px, 10vw, 150px) var(--jm-gutter); }
.jm-intro-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(16px, 2.5vw, 36px); align-items: start; }
.jm-intro-lead { grid-column: 1 / 6; font-size: clamp(15px, 1.3vw, 19px); line-height: 1.6; text-transform: uppercase; letter-spacing: .02em; margin: 0; }
.jm-intro-img { margin: 0; overflow: hidden; }
.jm-intro-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.jm-intro-grid > .jm-intro-img:not(.jm-intro-img-2) { grid-column: 7 / 13; aspect-ratio: 4 / 3; }
.jm-intro-img-2 { grid-column: 2 / 6; aspect-ratio: 3 / 4; margin-top: clamp(-120px, -8vw, -40px); }
.jm-intro-text { grid-column: 7 / 12; font-size: 15px; line-height: 1.75; letter-spacing: .02em; text-transform: uppercase; }
.jm-intro-text p { margin: 0 0 1.2em; }

.jm-marquee { overflow: hidden; display: flex; border-top: 1px solid var(--jm-line); border-bottom: 1px solid var(--jm-line); padding: 18px 0; }
.jm-marquee-track { display: flex; flex-shrink: 0; animation: jm-marquee 38s linear infinite; }
.jm-marquee span { font: 500 clamp(28px, 4.5vw, 64px)/1 var(--jm-display); font-stretch: 125%; text-transform: uppercase; padding-right: .8em; white-space: nowrap; color: var(--jm-clay); }

.jm-location { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(24px, 6vw, 96px); }
.jm-distances { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--jm-line); }
.jm-distances li { display: grid; grid-template-columns: 1fr auto 34px; align-items: baseline; gap: 10px; padding: 14px 0; border-bottom: 1px solid var(--jm-line); text-transform: uppercase; letter-spacing: .04em; font-size: 14px; }
.jm-distances b { font: 500 clamp(24px, 2.6vw, 38px)/1 var(--jm-display); font-stretch: 125%; color: var(--jm-clay); }
.jm-distances small { font-size: 11px; letter-spacing: .12em; }
.jm-chips { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 10px; }
.jm-chips a { border: 1px solid var(--jm-line); border-radius: 999px; padding: 10px 18px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; text-decoration: none; }
.jm-chips a span { color: var(--jm-clay); margin-left: 6px; }
.jm-chips a:hover { background: var(--jm-ink); color: var(--jm-paper); }

.jm-stats { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--jm-ink); color: var(--jm-paper); gap: 0; }
.jm-home .jm-stats { padding-top: clamp(48px, 7vw, 100px); padding-bottom: clamp(48px, 7vw, 100px); }
.jm-stat { padding: clamp(18px, 2.5vw, 36px); border-left: 1px solid rgba(242, 230, 214, .2); }
.jm-stat:nth-child(3n + 1) { border-left: 0; }
.jm-stat:nth-child(n + 4) { border-top: 1px solid rgba(242, 230, 214, .2); }
.jm-stat b { display: block; font: 500 clamp(48px, 6vw, 100px)/1 var(--jm-display); font-stretch: 125%; color: var(--jm-clay-2); }
.jm-stat span { display: block; margin: 12px 0 8px; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; font-weight: 600; }
.jm-stat p { margin: 0; font-size: 13px; line-height: 1.6; opacity: .75; text-transform: uppercase; letter-spacing: .03em; }

.jm-props-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.jm-tabs { display: flex; gap: 8px; margin-bottom: clamp(28px, 4vw, 56px); }
.jm-tabs button { border: 1px solid var(--jm-line); background: none; border-radius: 999px; padding: 10px 18px; font: 500 12px/1 var(--jm-text); letter-spacing: .12em; text-transform: uppercase; color: var(--jm-ink); cursor: pointer; }
.jm-tabs button span { color: var(--jm-clay); margin-left: 4px; }
.jm-tabs button[aria-selected="true"] { background: var(--jm-ink); color: var(--jm-paper); border-color: var(--jm-ink); }
.jm-tabs button:disabled { opacity: .4; cursor: default; }
.jm-track { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(280px, calc((100% - 2 * 28px) / 3)); gap: 28px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.jm-track::-webkit-scrollbar { display: none; }
.jm-track[data-count="1"] { grid-auto-columns: minmax(280px, 100%); }
.jm-track[data-count="1"] .jm-card { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(20px, 4vw, 64px); align-items: end; }
.jm-track[data-count="1"] .jm-card-img { aspect-ratio: 16 / 10; }
.jm-track[data-count="1"] .jm-card h3 { font-size: clamp(24px, 3vw, 48px); }
.jm-card { scroll-snap-align: start; }
.jm-card[hidden] { display: none !important; }
.jm-card-img { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; }
.jm-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2, .7, .2, 1); }
.jm-card:hover .jm-card-img img { transform: scale(1.05); }
.jm-card-tag { position: absolute; left: 16px; top: 16px; background: var(--jm-paper); padding: 8px 12px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }
.jm-card-body { padding-top: 18px; }
.jm-card-meta, .jm-card-facts { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 10px; opacity: .8; }
.jm-card-facts span + span::before { content: ' · '; }
.jm-card h3 { font-size: clamp(18px, 1.6vw, 24px); line-height: 1.15; margin: 0 0 12px; }
.jm-card h3 a { text-decoration: none; }
.jm-card-price { font: 500 clamp(18px, 1.6vw, 24px)/1 var(--jm-display); font-stretch: 125%; color: var(--jm-clay); margin: 0; }
.jm-track-nav { display: flex; align-items: center; gap: 12px; margin-top: 32px; }
.jm-track-count { font: 500 22px/1 var(--jm-display); font-stretch: 125%; margin-right: auto; }
.jm-track-count i { font-style: normal; opacity: .5; }
.jm-track-nav button { width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--jm-ink); background: none; color: var(--jm-ink); font-size: 18px; cursor: pointer; }
.jm-track-nav button:hover { background: var(--jm-ink); color: var(--jm-paper); }

.jm-band { position: relative; min-height: 88vh; display: flex; align-items: flex-end; color: var(--jm-paper); overflow: hidden; }
.jm-band-img { position: absolute; inset: -8% 0; width: 100%; height: 116%; object-fit: cover; }
.jm-band::before { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(55, 37, 34, .78), rgba(55, 37, 34, .05) 60%); z-index: 1; }
.jm-band-body { position: relative; z-index: 2; max-width: 680px; }
.jm-band-body .jm-display { color: var(--jm-paper); }
.jm-band-body p { text-transform: uppercase; letter-spacing: .03em; line-height: 1.6; }
.jm-band-fee { font: 500 22px/1 var(--jm-display); font-stretch: 125%; color: var(--jm-clay-2); margin: 20px 0 28px; }

.jm-accordion { border-top: 1px solid var(--jm-line); }
.jm-acc { border-bottom: 1px solid var(--jm-line); }
.jm-acc summary { list-style: none; display: grid; grid-template-columns: 60px 1fr 28px; align-items: center; padding: 22px 0; cursor: pointer; }
.jm-acc summary::-webkit-details-marker { display: none; }
.jm-acc-n { font-size: 12px; letter-spacing: .12em; color: var(--jm-clay); }
.jm-acc-t { font: 500 clamp(20px, 2.4vw, 36px)/1.1 var(--jm-display); font-stretch: 125%; text-transform: uppercase; }
.jm-acc summary i { width: 28px; height: 28px; position: relative; }
.jm-acc summary i::before, .jm-acc summary i::after { content: ''; position: absolute; left: 4px; right: 4px; top: 13px; height: 1px; background: currentColor; transition: transform .3s; }
.jm-acc summary i::after { transform: rotate(90deg); }
.jm-acc[open] summary i::after { transform: rotate(0); }
.jm-acc-body { padding: 0 0 26px 60px; max-width: 760px; }
.jm-acc-body p { text-transform: uppercase; letter-spacing: .03em; line-height: 1.6; }

.jm-finance { display: grid; grid-template-columns: 1fr 1fr; background: var(--jm-olive); color: var(--jm-paper); padding: 0 !important; }
.jm-finance-img { width: 100%; height: 100%; min-height: 520px; object-fit: cover; }
.jm-finance-body { padding: clamp(48px, 7vw, 110px) var(--jm-gutter); }
.jm-finance-body .jm-display { color: var(--jm-paper); font-size: clamp(30px, 4vw, 64px); }
.jm-finance-grid { border-top: 1px solid rgba(242, 230, 214, .3); margin-bottom: 28px; }
.jm-finance-item { display: flex; justify-content: space-between; padding: 18px 0; border-bottom: 1px solid rgba(242, 230, 214, .3); color: var(--jm-paper); text-transform: uppercase; letter-spacing: .08em; font-size: 14px; text-decoration: none; }
.jm-finance-item:hover { color: var(--jm-paper-2); padding-left: 8px; transition: padding .3s; }
.jm-finance-body p { text-transform: uppercase; letter-spacing: .03em; line-height: 1.6; margin-bottom: 28px; }

.jm-journal-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.jm-post { text-decoration: none; display: block; }
.jm-post-img { display: block; aspect-ratio: 4 / 3; overflow: hidden; margin-bottom: 16px; }
.jm-post-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s; }
.jm-post:hover img { transform: scale(1.05); }
.jm-post-date { display: block; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--jm-clay); margin-bottom: 8px; }
.jm-post-title { font: 500 clamp(17px, 1.5vw, 22px)/1.2 var(--jm-display); font-stretch: 125%; text-transform: uppercase; }

.jm-dev { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 6vw, 96px); background: var(--jm-paper-2); }
.jm-dev-text { font-size: 15px; line-height: 1.75; }
.jm-dev-title { font: 500 clamp(22px, 2.6vw, 40px)/1.15 var(--jm-display); font-stretch: 125%; grid-row: 1; grid-column: 2; margin: 0; }
.jm-dev .jm-link { grid-column: 2; }

.jm-contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(24px, 6vw, 96px); }
.jm-contact-form input, .jm-contact-form textarea, .jm-contact-form select {
    background: transparent !important; border: 0 !important; border-bottom: 1px solid var(--jm-ink) !important; border-radius: 0 !important;
    color: var(--jm-ink) !important; padding: 14px 0 !important; box-shadow: none !important; font-size: 15px;
}
.jm-contact-form label { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.jm-contact-form button[type="submit"], .jm-contact-form .btn {
    background: var(--jm-ink) !important; border: 1px solid var(--jm-ink) !important; color: var(--jm-paper) !important;
    border-radius: 999px !important; padding: 0 34px !important; text-transform: uppercase; letter-spacing: .14em; font-size: 13px;
    /* Flex Home gives this button a fixed height; centre the label instead of padding it down. */
    display: inline-flex !important; align-items: center; justify-content: center; height: auto !important; min-height: 52px; line-height: 1.2 !important; white-space: nowrap;
}
.jm-contact-form button[type="submit"]:hover, .jm-contact-form .btn:hover { background: var(--jm-clay) !important; border-color: var(--jm-clay) !important; }

/* "Privacy choices" (cookie settings): bottom-left in the theme's style, clear of the call and back-to-top buttons */
body #jcp-consent-settings { right: auto !important; left: 16px !important; bottom: 16px !important; margin: 0 !important; padding: 8px 14px !important; border: 1px solid var(--jm-line) !important; border-radius: 999px !important; background: var(--jm-paper-2) !important; color: var(--jm-ink) !important; font: 500 12px/1.2 var(--jm-text) !important; letter-spacing: .04em; box-shadow: 0 6px 18px rgba(55, 37, 34, .15); z-index: 1019 !important; }
body #jcp-consent-settings:hover, body #jcp-consent-settings:focus-visible { background: var(--jm-ink) !important; color: var(--jm-paper) !important; }
/* Phones: a 44 px round cookie button (the "Privacy choices" text stays as its accessible name),
   level with the call and back-to-top buttons and clear of them. */
@media (max-width: 767px) {
    body #jcp-consent-settings {
        left: 12px !important; bottom: max(12px, env(safe-area-inset-bottom)) !important;
        width: 44px; height: 44px; padding: 0 !important; border-radius: 50% !important;
        font-size: 0 !important; line-height: 0 !important; color: transparent !important; overflow: hidden;
        background: var(--jm-paper-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23452d2a' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3a9 9 0 1 0 9 9 3 3 0 0 1-3.5-3A3 3 0 0 1 14 5.5 3 3 0 0 1 12 3Z'/%3E%3Ccircle cx='8.5' cy='10.5' r='.9' fill='%23452d2a'/%3E%3Ccircle cx='15' cy='15' r='.9' fill='%23452d2a'/%3E%3Ccircle cx='9.5' cy='15.5' r='.9' fill='%23452d2a'/%3E%3C/svg%3E") center / 22px no-repeat !important;
    }
    body #jcp-consent-settings:hover, body #jcp-consent-settings:focus-visible { background-color: var(--jm-paper) !important; outline: 2px solid var(--jm-clay-2); outline-offset: 2px; }
    /* keep the call / back-to-top group on the right, level with the cookie button */
    body .jm-action-footer { right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); }
}

/* ------------------------------------------------------------------ footer */
.jm-footer { background: var(--jm-ink); color: var(--jm-paper); padding: clamp(56px, 8vw, 110px) var(--jm-gutter) 32px; }
.jm-footer a { color: var(--jm-paper); }
.jm-footer a:hover { color: var(--jm-clay-2); }
.jm-footer-top { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(24px, 5vw, 80px); }
.jm-footer-contacts { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; text-transform: uppercase; letter-spacing: .05em; font-size: 14px; }
.jm-footer-contacts p { margin: 0; }
.jm-footer-phone { font: 500 clamp(26px, 3.4vw, 52px)/1 var(--jm-display); font-stretch: 125%; margin-bottom: 8px; }
.jm-footer-social { display: flex; gap: 16px; flex-wrap: wrap; }
.jm-footer-contacts .jm-btn { margin-top: 18px; }
.jm-footer-map iframe { width: 100%; height: 100%; min-height: 320px; border: 0; filter: sepia(.35) saturate(.75) contrast(.95); }
.jm-footer-links { display: flex; flex-wrap: wrap; margin: clamp(40px, 6vw, 80px) -12px 0; padding-top: 32px; border-top: 1px solid rgba(242, 230, 214, .2); }
.jm-footer-links > div { flex: 1 1 220px; padding: 0 12px; max-width: none; }
.jm-footer-links h4, .jm-footer-links .widget-title, .jm-footer-links .menufooter h4 { color: var(--jm-paper); font-size: 13px !important; letter-spacing: .16em; margin-bottom: 14px; }
.jm-footer-links ul { list-style: none; padding: 0; margin: 0; }
.jm-footer-links li { padding: 4px 0; font-size: 14px; }
/* Flex Home's widget menus colour their labels dark grey; on the ink footer they must stay light. */
.jm-footer .menu-title, .jm-footer-links a, .jm-footer-links li, .jm-footer-links p, .jm-footer-links span { color: var(--jm-paper) !important; }
.jm-footer-links a:hover .menu-title, .jm-footer-links a:hover { color: var(--jm-clay-2) !important; }
.jm-footer-links a:focus-visible, .jm-footer-bottom a:focus-visible { outline: 2px solid var(--jm-clay-2); outline-offset: 3px; }
.jm-footer-profiles, .jm-footer-lang { margin-top: 24px; }
.jm-footer-profiles *, .jm-footer-lang * { color: var(--jm-paper) !important; border-color: rgba(242, 230, 214, .25) !important; background: transparent !important; }
.jm-footer-bottom { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 36px; padding-top: 24px; border-top: 1px solid rgba(242, 230, 214, .2); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.jm-footer-bottom span { margin-right: auto; }
.jm-footer-bottom p { margin: 0; }
.jm-footer-note { font-size: 11px; line-height: 1.6; opacity: .6; margin: 16px 0 0; max-width: 900px; }
.jm-action-footer { z-index: 1020; }

/* ------------------------------------------------------------------ inner pages (Flex Home markup) */
body .bgheadproject { background-size: cover !important; background-position: center !important; position: relative; min-height: 340px; display: flex; align-items: flex-end; }
body .bgheadproject::before { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(55, 37, 34, .78), rgba(55, 37, 34, .2)); }
body .bgheadproject .description { position: relative; width: 100%; background: none !important; padding: 0 0 40px; }
body .bgheadproject h1 { font: 500 clamp(30px, 5vw, 72px)/1 var(--jm-display) !important; font-stretch: 125% !important; text-align: left !important; color: var(--jm-paper) !important; text-transform: uppercase; }
body .bgheadproject .breadcrumb, body .bgheadproject .breadcrumb a { justify-content: flex-start; color: var(--jm-paper) !important; background: none; text-transform: uppercase; letter-spacing: .12em; font-size: 12px; }
body .btn-primary, body .btn-primary:not(:disabled):not(.disabled):active { background: var(--jm-ink); border-color: var(--jm-ink); color: var(--jm-paper); border-radius: 999px; text-transform: uppercase; letter-spacing: .1em; }
body .btn-primary:hover, body .btn-primary:focus { background: var(--jm-clay); border-color: var(--jm-clay); color: var(--jm-paper); }
body .btn-outline-primary { color: var(--jm-ink); border-color: var(--jm-ink); border-radius: 999px; }
body .text-primary { color: var(--jm-clay) !important; }
body .bg-primary { background: var(--jm-ink) !important; }
body .item, body .card, body .boxright, body .form-control { border-radius: 0; }
body .item .blii, body .item { background: var(--jm-paper-2); }
body .item .description .price, body .price { color: var(--jm-clay) !important; font-family: var(--jm-display); font-stretch: 125%; }
body .item h5, body .item h3 { font-family: var(--jm-display); font-stretch: 125%; text-transform: uppercase; }
body .form-control { background: var(--jm-paper-2); border-color: var(--jm-line); }
body .form-control:focus { border-color: var(--jm-ink); box-shadow: 0 0 0 3px rgba(175, 82, 42, .15); }
body .scontent, body .ck-content { font-size: 16px; line-height: 1.75; }
body .page-link { color: var(--jm-ink); }
body .page-item.active .page-link { background: var(--jm-ink); border-color: var(--jm-ink); }
body .bravo_topbar, body header.topmenu { display: none !important; }

/* ------------------------------------------------------------------ whole-site layer
   Plugin pages (accounts, hardware shop, moving, construction, lending, rentals, viewings, legal, FAQs)
   draw their colours from --site-navy / --site-gold, so defining them here re-themes every one of them.
   Flex Home does not define these tokens, so those pages keep their original navy and gold there. */
:root {
    --site-navy: var(--jm-ink);
    --site-gold: var(--jm-clay);
    --site-paper: var(--jm-paper);
    --site-font-display: var(--jm-display);
    --site-font-text: var(--jm-text);
}
body, body p, body li, body td, body input, body select, body textarea, body button, body label { font-family: var(--jm-text); }
body #app h3, body #app h4, body #app h5 { font-stretch: 110%; overflow-wrap: anywhere; }
body #app .container, body #app .container-fluid { --bs-body-bg: transparent; }
body #app section, body #app .bg-white, body #app .bg-light, body .padtop30, body .padtop40, body .padtop70 { background-color: transparent !important; }
body hr { border-color: var(--jm-line); opacity: 1; }
::selection { background: var(--jm-clay); color: var(--jm-paper); }

/* Announcements plugin strip */
body .ae-anno-announcement-wrapper { background: var(--jm-ink-2) !important; color: var(--jm-paper) !important; }
body .ae-anno-announcement-wrapper * { color: inherit !important; font-family: var(--jm-text); letter-spacing: .02em; }
body .ae-anno-announcement-wrapper a { text-decoration: underline; text-underline-offset: 3px; }

/* page header photo */
body .bgheadproject { margin-top: 0; }
body .bgheadproject .container-fluid.w90 { padding-left: var(--jm-gutter); padding-right: var(--jm-gutter); }

/* buttons: one square-ish pill language everywhere */
body .btn { border-radius: 999px; font-family: var(--jm-text); font-weight: 500; letter-spacing: .06em; }
body .btn-orange, body .btn-warning, body .btn-success:not(.badge), body .btn-secondary.btn-search, body .btn-search, body button[type="submit"].btn:not(.btn-link):not(.btn-light):not(.btn-outline-secondary):not(.btn-danger) {
    background: var(--jm-ink); border-color: var(--jm-ink); color: var(--jm-paper);
}
body .btn-orange:hover, body .btn-warning:hover, body .btn-search:hover, body button[type="submit"].btn:not(.btn-link):not(.btn-light):not(.btn-danger):hover { background: var(--jm-clay); border-color: var(--jm-clay); color: var(--jm-paper); }
body .btn-outline-secondary, body .btn-light { border-color: var(--jm-line); background: transparent; color: var(--jm-ink); }
body .btn-outline-secondary:hover, body .btn-light:hover { background: var(--jm-ink); color: var(--jm-paper); }
body .text-orange, body .text-warning, body a.text-orange { color: var(--jm-clay) !important; }
body .badge.bg-primary, body .badge.bg-warning { background: var(--jm-clay) !important; color: var(--jm-paper) !important; }

/* forms */
body .form-control, body .form-select, body select.form-control, body .input-group-text, body .select2-container--default .select2-selection--single {
    background-color: var(--jm-paper-2); border-color: var(--jm-line); border-radius: 0; color: var(--jm-ink);
}
body .form-select:focus, body .form-control:focus { border-color: var(--jm-ink); box-shadow: 0 0 0 3px rgba(175, 82, 42, .15); }
body .form-check-input:checked { background-color: var(--jm-clay); border-color: var(--jm-clay); }
body label, body .form-label { color: var(--jm-ink); font-size: 13px; letter-spacing: .04em; }

/* property / project cards and listing chrome */
body .item, body .projecthome .item { border: 1px solid var(--jm-line); box-shadow: none !important; transition: transform .4s ease, border-color .4s ease; }
body .item:hover { border-color: var(--jm-ink); transform: translateY(-3px); }
body .item .status, body .item .h-type, body li.h-type, body .h-type { background: var(--jm-ink) !important; color: var(--jm-paper) !important; border-radius: 0; letter-spacing: .08em; text-transform: uppercase; }
body .item .price-label, body .item .label-price, body .item .blii .status, body .item .featured { border-radius: 0; }
body .add-to-wishlist, body .add-to-wishlist i, body .fa-heart { color: var(--jm-clay) !important; }
body .boxmarker, body .leaflet-marker-icon.boxmarker { background: var(--jm-ink) !important; color: var(--jm-paper) !important; border-radius: 0 !important; }
body .boxmarker::after { border-top-color: var(--jm-ink) !important; }
body .view-type-map.active, body .view-type-map:hover { background: var(--jm-ink) !important; border-color: var(--jm-ink) !important; color: var(--jm-paper) !important; }
body .toggle-filter-offcanvas, body .search-box, body .form-search-box { border-color: var(--jm-line) !important; background: transparent !important; }
body .nav-tabs { border-bottom-color: var(--jm-line); }
body .nav-tabs .nav-link { color: var(--jm-ink); border-radius: 0; text-transform: uppercase; letter-spacing: .08em; font-size: 13px; }
body .nav-tabs .nav-link.active, body .nav-pills .nav-link.active { background: var(--jm-ink); color: var(--jm-paper); border-color: var(--jm-ink); }
body .breadcrumb-item + .breadcrumb-item::before { color: currentColor; }
body .pagination .page-link { border-radius: 0 !important; background: transparent; border-color: var(--jm-line); }

/* blog / pages */
body .post-item, body .blog-container .item, body .widget { border-color: var(--jm-line); }
body .widget .widget-title, body .widget h3 { font-size: 14px; letter-spacing: .14em; }
body blockquote { border-left: 3px solid var(--jm-clay); padding-left: 20px; font-family: var(--jm-display); font-stretch: 110%; }

/* tables and alerts used by plugin pages */
body #app table { border-color: var(--jm-line); }
body #app thead th { background: transparent; color: var(--jm-ink); text-transform: uppercase; letter-spacing: .08em; font-size: 12px; border-bottom: 1px solid var(--jm-ink); }
body .alert { border-radius: 0; }

/* Services list (services plugin page): name | summary | link, without overlap */
body .jsv-row { display: grid !important; grid-template-columns: minmax(0, 1.1fr) minmax(0, 2fr) auto !important; gap: 12px 32px; align-items: baseline; border-top: 1px solid var(--jm-line); padding: 22px 0; }
body .jsv-row h3 { margin: 0; font-size: clamp(15px, 1.4vw, 19px); line-height: 1.25; }
body .jsv-row h3 a { color: var(--jm-ink); }
body .jsv-row > a { color: var(--jm-clay); text-transform: uppercase; letter-spacing: .1em; font-size: 12px; }
body .jsv-h { font-size: clamp(28px, 4vw, 52px); }
@media (max-width: 767px) { body .jsv-row { grid-template-columns: 1fr !important; } }

/* floating call + back-to-top */
/* Floating call + back-to-top: one row inside the screen (Flex Home hung back-to-top 40 px outside its box,
   which pushed it off the edge on phones). */
body .jm-action-footer {
    position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); left: auto;
    display: flex; flex-direction: row-reverse; align-items: center; gap: 8px; width: auto;
}
body .jm-action-footer a { float: none !important; margin: 0 !important; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
body .jm-action-footer a.text-white { background: var(--jm-ink) !important; color: var(--jm-paper) !important; border-radius: 999px; min-height: 44px; padding: 0 18px !important; gap: 8px; font-size: 14px !important; letter-spacing: .06em; white-space: nowrap; box-shadow: 0 8px 24px rgba(55, 37, 34, .25); }
body .jm-action-footer a.text-white span { padding: 0 !important; }
body .jm-action-footer a.text-white:hover, body .jm-action-footer a.text-white:focus-visible { background: var(--jm-clay) !important; }
body .jm-action-footer .cd-top {
    position: static !important; right: auto !important; top: auto !important;
    width: 44px; height: 44px; padding: 0 !important; border-radius: 50%;
    background: var(--jm-clay) !important; color: var(--jm-paper) !important; box-shadow: 0 8px 24px rgba(55, 37, 34, .25);
}
body .jm-action-footer .cd-top:hover, body .jm-action-footer .cd-top:focus-visible { background: var(--jm-ink) !important; }
body .jm-action-footer a:focus-visible { outline: 2px solid var(--jm-clay-2); outline-offset: 2px; }
@media (max-width: 575px) {
    /* the number shortens to an icon-led pill so both buttons always fit */
    body .jm-action-footer a.text-white { padding: 0 14px !important; font-size: 13px !important; letter-spacing: .02em; }
}

/* Shared plugin components (.jp = jcp-platform pages, .hm = hardware market): neutral greys become the Jinja palette */
:root { --site-navy-2: var(--jm-ink-2); }
html body .jp { --ink: var(--jm-ink); --ink2: #5b4340; --muted: rgba(69, 45, 42, .72); --line: var(--jm-line); --soft: rgba(69, 45, 42, .05); --card: var(--jm-paper-2); }
html body .hm { --hm-ink: var(--jm-ink); --hm-ink2: #5b4340; --hm-muted: rgba(69, 45, 42, .72); --hm-line: var(--jm-line); --hm-soft: rgba(69, 45, 42, .05); }
html body .jp .jp-card, html body .hm .hm-card { background: var(--jm-paper-2); border-radius: 0; box-shadow: none; }
html body .jp .jp-input, html body .hm .hm-input { border-radius: 0; background: #fffaf3; }
html body .jp h2, html body .jp h3, html body .hm h2, html body .hm h3 { font-family: var(--jm-display); font-stretch: 115%; }

/* Signed-in shop account (/customer/*) renders inside the theme */
/* Keep the commerce grid's negative row margins inside a padded container.
   Product content comes from the shared plugin and uses Bootstrap's row grid. */
body #product-detail-page > .bb-product-detail { padding-left: 15px; padding-right: 15px; }
body #product-detail-page .bb-product-page-content { min-width: 0; overflow-wrap: anywhere; }
body #product-detail-page .bb-product-gallery img { max-width: 100%; object-fit: contain; }
body #product-detail-page .bb-product-identification { font-size: 14px; }
body #product-detail-page .product-detail-tabs { margin-left: auto; margin-right: auto; max-width: 1140px; background: var(--jm-paper-2); border-color: var(--jm-line); }
body .bb-product-item .card-body { display: flex; flex-direction: column; gap: 8px; }
body .bb-product-item .product-name { font-size: 17px; line-height: 1.4; }
body .bb-product-item .product-add-cart-btn-large-wrapper { margin-top: auto; }
body .bb-product-item .image { aspect-ratio: 4 / 3; background: var(--jm-paper-2); }
body .bb-product-item .image img { width: 100%; height: 100%; object-fit: contain; }
@media (max-width: 575px) {
    body #product-detail-page .bb-product-page-content .d-flex { flex-wrap: wrap; gap: 12px; }
    body #product-detail-page .bb-product-content-tabs { padding: 12px !important; }
    body #product-detail-page .bb-product-content-tabs-wrapper { padding: 16px !important; }
    body .bb-product-items-wrapper > .row > .col { flex: 0 0 100%; max-width: 100%; }
}

body .customer-page, body .bb-customer-page, body .profile__tab-content { color: var(--jm-ink); }
body .bb-customer-sidebar, body .customer-sidebar, body .profile__tab { background: var(--jm-paper-2) !important; border: 1px solid var(--jm-line) !important; border-radius: 0 !important; }
body .bb-customer-sidebar a.active, body .customer-sidebar a.active, body .profile__tab .nav-link.active { background: var(--jm-ink) !important; color: var(--jm-paper) !important; }

/* Site map (/site-map):editorial index instead of cards — numbered sections on hairlines */
body .jsm { --jsm-line: var(--jm-line); }
body .jsm-jump a { border-radius: 999px; text-transform: uppercase; letter-spacing: .1em; font-size: 12px; }
body .jsm-jump a:hover, body .jsm-jump a:focus-visible { background: var(--jm-ink); color: var(--jm-paper); }
body .jsm-grid { gap: 0 clamp(24px, 4vw, 64px); }
body .jsm-sec { background: transparent; border: 0; border-top: 1px solid var(--jm-ink); border-radius: 0; padding: 28px 0 36px; }
body .jsm-head { gap: 16px; }
body .jsm-num { font: 500 13px/1 var(--jm-text); color: var(--jm-clay); }
body .jsm-sec h2 { font-size: clamp(24px, 2.6vw, 38px); font-stretch: 125%; }
body .jsm-intro { color: rgba(69, 45, 42, .8); max-width: 46ch; }
body .jsm-list a { font-size: 15px; padding: 11px 0; }
body .jsm-list small { color: rgba(69, 45, 42, .7); }
body .jsm-chips a { background: transparent; border: 1px solid var(--jm-line); }
body .jsm-chips a:hover { background: var(--jm-ink); color: var(--jm-paper); border-color: var(--jm-ink); }
body .jsm-label { color: rgba(69, 45, 42, .7); }

/* cookie banner (jcp consent) */
body #jcp-consent-banner { font-family: var(--jm-text); }
body #jcp-consent-banner button, body #jcp-consent-settings { border-radius: 999px; }

/* ------------------------------------------------------------------ motion */
.jm-js .jm-reveal { opacity: 0; transform: translateY(32px); transition: opacity .9s ease, transform 1s cubic-bezier(.2, .7, .2, 1); }
.jm-js .jm-reveal.is-in { opacity: 1; transform: none; }
@keyframes jm-hero-in { to { transform: scale(1); } }
@keyframes jm-marquee { to { transform: translateX(-100%); } }
@keyframes jm-scroll { 0% { transform: translateY(-30px); } 100% { transform: translateY(80px); } }
@keyframes jm-fade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
    .jm-hero-img, .jm-marquee-track, .jm-scroll span { animation: none !important; transform: none !important; }
    .jm-js .jm-reveal, .jm-js .jm-split .jm-ch { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ------------------------------------------------------------------ responsive */
@media (max-width: 991px) {
    :root { --jm-header: 68px; }
    .jm-hide-md { display: none; }
    .jm-menu-body, .jm-location, .jm-finance, .jm-dev, .jm-contact-grid, .jm-footer-top { grid-template-columns: 1fr; }
    .jm-dev-title, .jm-dev .jm-link { grid-column: 1; grid-row: auto; }
    .jm-intro-lead, .jm-intro-text { grid-column: 1 / -1; }
    .jm-intro-grid > .jm-intro-img:not(.jm-intro-img-2) { grid-column: 1 / 10; }
    .jm-intro-img-2 { grid-column: 5 / 13; margin-top: 0; }
    .jm-stats { grid-template-columns: repeat(2, 1fr); }
    .jm-stat:nth-child(3n + 1) { border-left: 1px solid rgba(242, 230, 214, .2); }
    .jm-stat:nth-child(2n + 1) { border-left: 0; }
    .jm-stat:nth-child(n + 3) { border-top: 1px solid rgba(242, 230, 214, .2); }
    .jm-journal-grid { grid-template-columns: 1fr 1fr; }
    .jm-track { grid-auto-columns: minmax(260px, 70%); }
    .jm-track[data-count="1"] .jm-card { grid-template-columns: 1fr; }
}
@media (max-width: 575px) {
    .jm-hide-sm { display: none; }
    .jm-logo img { display: none; }
    .jm-logo-text b { font-size: 20px; }
    .jm-header { grid-template-columns: 1fr auto; }
    .jm-header > .jm-header-side:first-child { display: none; }
    .jm-logo { justify-self: start; }
    .jm-menu-head { grid-template-columns: 1fr auto; }
    .jm-menu-head > .jm-header-link { display: none; }
    .jm-hero-search { flex-wrap: wrap; }
    .jm-hero-search select { padding-left: 0; }
    .jm-stats, .jm-journal-grid { grid-template-columns: 1fr; }
    .jm-stat { border-left: 0 !important; }
    .jm-stat + .jm-stat { border-top: 1px solid rgba(242, 230, 214, .2); }
    .jm-acc summary { grid-template-columns: 40px 1fr 28px; }
    .jm-acc-body { padding-left: 40px; }
    .jm-track { grid-auto-columns: 86%; }
    .jm-footer-bottom span { width: 100%; }
}

/* ================================================================== homepage motion (jm-motion.js)
   Static, complete layout first; html.jm-motion (GSAP loaded, motion allowed) switches on the scroll-linked versions. */

/* hero — as in the Masters original: content scrolls away; the photo and the clay line stay fixed */
.jm-hero-title { font-size: clamp(32px, min(7.2vw, 10.5vh), 128px); margin-bottom: clamp(16px, 3vh, 52px) !important; }
.jm-hero .jm-hero-body { z-index: 2; padding-top: calc(var(--jm-header) + 24px); padding-bottom: clamp(104px, 18vh, 190px); }
.jm-hero-line { display: none; }

/* footer bar of the hero: dark gradient, brand left, scroll mouse centred, tagline right */
.jm-hero-foot { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; height: clamp(120px, 26vh, 188px); display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 16px; padding: 0 var(--jm-gutter) clamp(18px, 3.4vh, 30px); background: linear-gradient(0deg, rgba(20, 12, 10, .62) 0%, rgba(20, 12, 10, 0) 100%); color: var(--jm-paper); pointer-events: none; }
.jm-hero-foot > * { pointer-events: auto; }
.jm-hero-brand { font: 600 12px/1.2 var(--jm-display); font-stretch: 125%; letter-spacing: .14em; text-transform: uppercase; }
.jm-hero-tag { justify-self: end; text-align: right; font: 500 14px/1.3 var(--jm-text); letter-spacing: .02em; text-transform: uppercase; }
.jm-mouse { position: relative; display: block; width: 15px; height: 27px; border: 1.8px solid var(--jm-paper); border-radius: 100px; }
.jm-mouse i { position: absolute; left: 50%; top: 5px; width: 2px; height: 7px; margin-left: -1px; background: var(--jm-paper); animation: jm-mouse 1.8s ease-in-out infinite; }
@keyframes jm-mouse { 0% { transform: translateY(0); } 100% { transform: translateY(7px); } }
.jm-scroll { display: none; }

/* At least one screen tall; grows on short screens so the content never runs under the header. */
.jm-motion .jm-hero { position: relative; z-index: 1; min-height: max(100vh, 560px); height: auto; overflow: visible; background: transparent; }
.jm-motion .jm-hero-img, .jm-motion .jm-hero-shade { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 0; }
.jm-motion .jm-hero-img { animation: none; transform: none; will-change: transform; }
/* The 10×1 px clay line, fixed 44 % down the screen like the original, scaled by jm-motion.js. */
.jm-motion .jm-hero-line { display: block; position: fixed; left: 50%; top: 44vh; width: 10px; height: 1px; margin-left: -5px; background: var(--jm-clay); transform-origin: 50% 50%; z-index: 3; pointer-events: none; will-change: transform; }
.jm-motion .jm-fx-off .jm-hero-img, .jm-motion .jm-fx-off .jm-hero-shade, .jm-motion .jm-fx-off .jm-hero-line { visibility: hidden; }

/* opening sequence: photos open from a point on the clay screen */
body #app .jm-dive, .jm-dive { background: var(--jm-clay) !important; padding: 0 !important; margin: 0; max-width: none; }
.jm-dive-stage { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
.jm-dive-item { position: relative; margin: 0; aspect-ratio: 4 / 5; overflow: hidden; }
.jm-dive-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* 440vh = 100vh on screen + 3.4 screens of drone climb (frames settle at 3.0, then a short hold). */
html.jm-motion body #app .jm-dive { position: relative; z-index: 2; height: 440vh; background: transparent !important; }
.jm-motion .jm-dive-stage { position: sticky; top: 0; height: 100vh; display: block; overflow: hidden; }
.jm-motion .jm-dive-item { position: absolute; inset: 0; aspect-ratio: auto; visibility: hidden; clip-path: inset(50%); z-index: calc(var(--i) + 1); }
.jm-motion .jm-dive-item img { position: absolute; left: 50%; top: 50%; max-width: none; object-fit: cover; transform-origin: 50% 50%; will-change: transform; }
/* Everything after the opening sequence slides over the fixed photo and clay screen. */
.jm-motion .jm-dive ~ * { position: relative; z-index: 3; }
html.jm-motion body #app .jm-intro { background-color: var(--jm-paper) !important; }

/* random rise: each word is a mask the letters rise out of */
.jm-motion .jm-split:not(.jm-hero-title) .jm-word { overflow: hidden; vertical-align: top; padding-bottom: .06em; margin-bottom: -.06em; }
.jm-motion .jm-split:not(.jm-hero-title) .jm-ch { opacity: 1; transform: translateY(120%); transition: none; will-change: transform; }

/* location: map beside the distances */
.jm-home .jm-location { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; gap: clamp(28px, 5vw, 80px); }
.jm-map-wrap { position: sticky; top: calc(var(--jm-header) + 24px); }
.jm-map { height: min(78vh, 680px); min-height: 380px; background: #e9dcc8; border: 1px solid var(--jm-line); }
.jm-map .leaflet-tile-pane { filter: grayscale(1) sepia(.5) saturate(1.15) brightness(1.03) contrast(.9); }
.jm-map .leaflet-control-zoom a { background: var(--jm-paper-2); color: var(--jm-ink); border-color: var(--jm-line); border-radius: 0 !important; }
.jm-map .leaflet-control-attribution { background: rgba(252, 240, 224, .85); color: var(--jm-ink); font-size: 10px; }
.jm-map-note { margin: 12px 0 0; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: rgba(69, 45, 42, .75); }
.jm-pin { background: none; border: 0; }
.jm-pin-office span { display: grid; place-items: center; width: 40px; height: 40px; margin: -20px 0 0 -20px; background: var(--jm-ink); color: var(--jm-paper); font: 600 13px/1 var(--jm-display); font-stretch: 125%; letter-spacing: .04em; box-shadow: 0 6px 18px rgba(55, 37, 34, .35); }
.jm-pin-place i { display: block; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; background: var(--jm-clay); border: 3px solid var(--jm-paper-2); box-shadow: 0 3px 10px rgba(55, 37, 34, .35); transition: transform .3s ease; }
.jm-pin-place:hover i { transform: scale(1.25); }
.leaflet-tooltip.jm-tip { background: var(--jm-ink); color: var(--jm-paper); border: 0; border-radius: 0; font: 500 12px/1.3 var(--jm-text); letter-spacing: .06em; text-transform: uppercase; padding: 6px 10px; box-shadow: none; }
.leaflet-tooltip.jm-tip::before { border-top-color: var(--jm-ink); }
.jm-location-body .jm-display { margin-bottom: 18px; }
.jm-home .jm-distances { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 0 24px; border-top: 0; margin-top: 12px; }
.jm-home .jm-distances li { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; align-items: baseline; gap: 2px 8px; padding: 18px 0 16px; border-bottom: 1px solid var(--jm-line); border-top: 1px solid transparent; transition: border-color .3s ease, color .3s ease; }
.jm-home .jm-distances li[data-lat] { cursor: pointer; }
.jm-home .jm-distances li b { grid-row: 1; grid-column: 1; font-size: clamp(34px, 3.4vw, 54px); }
.jm-home .jm-distances li small { grid-row: 1; grid-column: 2; }
.jm-home .jm-distances li span { grid-row: 2; grid-column: 1 / -1; font-size: 12px; letter-spacing: .08em; }
.jm-home .jm-distances li[data-lat] span::after { content: ' ●'; color: var(--jm-clay); font-size: 9px; vertical-align: 2px; }
.jm-home .jm-distances li.is-on, .jm-home .jm-distances li[data-lat]:hover, .jm-home .jm-distances li[data-lat]:focus-visible { border-bottom-color: var(--jm-ink); outline: none; }

/* key figures — the original's "architecture" screen: the photo opens from a 430×320 window while two
   columns of cards move apart vertically (static layout when motion is off) */
body #app .jm-figures, .jm-figures { position: relative; padding: 0 !important; background-color: var(--jm-paper) !important; }
.jm-figures-stage { position: relative; min-height: 100vh; overflow: hidden; padding: clamp(80px, 14vh, 160px) var(--jm-gutter); }
.jm-figures-window { position: absolute; inset: 0; --win-w: 4000px; --win-h: 4000px; clip-path: inset(max(0px, calc(50% - var(--win-h) / 2)) max(0px, calc(50% - var(--win-w) / 2))); }
.jm-figures-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.jm-figures-cols { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 34vw, 520px); max-width: 1240px; margin: 0 auto; }
.jm-figures-col { display: flex; flex-direction: column; gap: clamp(16px, 2.4vw, 32px); will-change: transform; }
.jm-figures-col[data-dir="1"] { padding-top: clamp(80px, 22vh, 240px); }
.jm-figures .jm-stat { background: var(--jm-ink); color: var(--jm-paper); border: 0; padding: clamp(18px, 2vw, 30px); max-width: 360px; }
.jm-figures-col[data-dir="1"] .jm-stat { margin-left: auto; }
.jm-figures .jm-stat b { color: var(--jm-paper); font-size: clamp(36px, 3.8vw, 64px); }
.jm-figures .jm-stat span { color: var(--jm-clay-2); }
.jm-figures .jm-stat p { opacity: .8; }
.jm-motion .jm-figures { height: 275vh; }
.jm-motion .jm-figures-stage { position: sticky; top: 0; height: 100vh; min-height: 0; }
.jm-motion .jm-figures-window { --win-w: 430px; --win-h: 320px; will-change: clip-path; }

/* gallery slideshow + preview */
.jm-gallery { padding: clamp(64px, 10vw, 140px) var(--jm-gutter); }
.jm-gallery-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(24px, 3vw, 40px); }
.jm-gallery-head .jm-display { margin: 0; }
.jm-gallery-nav { display: flex; align-items: center; gap: 10px; }
.jm-gallery-count { font-size: 13px; letter-spacing: .14em; margin-right: 12px; }
.jm-gallery-nav button, .jm-lightbox button { width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--jm-ink); background: transparent; color: var(--jm-ink); font-size: 18px; cursor: pointer; transition: background .3s, color .3s; }
.jm-gallery-nav button:hover, .jm-gallery-nav button:focus-visible { background: var(--jm-ink); color: var(--jm-paper); }
.jm-gallery-stage { position: relative; aspect-ratio: 16 / 8; min-height: 320px; overflow: hidden; background: var(--jm-ink-2); touch-action: pan-y; user-select: none; }
.jm-gallery-slide { position: absolute; inset: 0; margin: 0; visibility: hidden; clip-path: inset(0 0 0 100%); transition: clip-path 1.05s cubic-bezier(.7, 0, .2, 1), visibility 0s 1.05s; }
.jm-gallery-slide.from-left { clip-path: inset(0 100% 0 0); }
.jm-gallery-slide.is-active { visibility: visible; clip-path: inset(0 0 0 0); z-index: 2; transition: clip-path 1.05s cubic-bezier(.7, 0, .2, 1), visibility 0s; }
.jm-gallery-slide.is-leaving { visibility: visible; z-index: 1; }
.jm-gallery-slide img { width: 100%; height: 100%; object-fit: cover; display: block; transform: scale(1.12); transition: transform 1.6s cubic-bezier(.2, .7, .2, 1); pointer-events: none; }
.jm-gallery-slide.is-active img { transform: scale(1); }
.jm-gallery-slide figcaption { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; align-items: end; gap: 16px; padding: 60px clamp(16px, 2.5vw, 36px) clamp(16px, 2.5vw, 30px); background: linear-gradient(0deg, rgba(55, 37, 34, .7), transparent); color: var(--jm-paper); text-transform: uppercase; letter-spacing: .1em; font-size: 13px; }
.jm-gallery-slide figcaption small { font-size: 10px; opacity: .8; letter-spacing: .08em; }
.jm-gallery-open { position: absolute; top: 16px; right: 16px; width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(252, 240, 224, .9); color: var(--jm-ink); font-size: 18px; cursor: zoom-in; z-index: 3; }
.jm-gallery-open:hover, .jm-gallery-open:focus-visible { background: var(--jm-ink); color: var(--jm-paper); }
.jm-lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(32, 22, 20, .96); color: var(--jm-paper); }
.jm-lightbox[open] { display: grid; grid-template-columns: 72px 1fr 72px; align-items: center; }
.jm-lightbox::backdrop { background: rgba(32, 22, 20, .9); }
.jm-lightbox figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 14px; max-height: 92vh; }
.jm-lightbox img { max-width: 100%; max-height: 82vh; object-fit: contain; }
.jm-lightbox figcaption { display: flex; flex-direction: column; align-items: center; gap: 4px; text-transform: uppercase; letter-spacing: .12em; font-size: 12px; }
.jm-lightbox button { border-color: rgba(242, 230, 214, .5); color: var(--jm-paper); justify-self: center; }
.jm-lightbox button:hover, .jm-lightbox button:focus-visible { background: var(--jm-paper); color: var(--jm-ink); }
.jm-lightbox-close { position: absolute; top: 18px; right: 18px; }

@media (max-width: 991px) {
    .jm-home .jm-location { grid-template-columns: 1fr; }
    .jm-map-wrap { position: static; }
    .jm-map { height: 420px; }
    .jm-hero-foot { grid-template-columns: 1fr auto; }
    .jm-hero-brand { display: none; }
}
@media (max-width: 575px) {
    .jm-figures-cols { gap: 12px; }
    .jm-figures .jm-stat { padding: 14px; }
    .jm-figures .jm-stat b { font-size: 30px; }
    .jm-dive-stage { grid-template-columns: 1fr; }
    .jm-gallery-stage { aspect-ratio: 4 / 5; }
    .jm-gallery-nav button { width: 44px; height: 44px; }
    .jm-lightbox[open] { grid-template-columns: 52px 1fr 52px; }
    .jm-gallery-slide figcaption { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
    .jm-gallery-slide, .jm-gallery-slide img { transition: none !important; }
}

/* "List property free" in the header: the main call to action for owners and agents. */
.jm-header-cta{display:inline-flex;align-items:center;padding:8px 16px;border-radius:999px;background:var(--jm-clay,#af522a);color:#fff!important;font-weight:700;font-size:.9rem;text-decoration:none;white-space:nowrap;transition:background .2s,transform .2s}
.jm-header-cta:hover{background:var(--jm-ink,#2a1d1b);transform:translateY(-1px)}
@media (max-width:767.98px){.jm-header-cta{display:none}}

/* Marquee strips with links (areas, property types) and partner logos. */
.jm-marquee a.jm-marquee-item { text-decoration: none; transition: color .2s, opacity .2s; }
.jm-marquee .jm-marquee-item { font: 500 clamp(28px, 4.5vw, 64px)/1 var(--jm-display); font-stretch: 125%; text-transform: uppercase; padding-right: .8em; white-space: nowrap; color: var(--jm-clay); }
.jm-marquee a.jm-marquee-item:hover { color: var(--jm-ink); }
.jm-marquee .jm-marquee-item::after { content: "·"; padding-left: .8em; opacity: .35; }
.jm-marquee:hover .jm-marquee-track { animation-play-state: paused; }
.jm-marquee-logos { padding: 22px 0; background: var(--jm-paper-2, #fff); }
.jm-marquee-logos .jm-marquee-item { display: inline-flex; align-items: center; padding: 0 44px; }
.jm-marquee-logos .jm-marquee-item::after { content: none; }
.jm-marquee-logos img { height: 56px; width: auto; max-width: 180px; object-fit: contain; filter: grayscale(1); opacity: .75; transition: filter .25s, opacity .25s; }
.jm-marquee-logos a:hover img { filter: none; opacity: 1; }
@media (max-width: 767.98px) { .jm-marquee-logos img { height: 40px; } .jm-marquee-logos .jm-marquee-item { padding: 0 26px; } }
/* Featured realtors: company logo with the company name beside it. */
.jm-marquee-logos .jm-marquee-item { gap: 14px; }
.jm-marquee-logos img { border-radius: 12px; background: #fff; }
.jm-marquee-logos .jm-marquee-name { font: 600 clamp(15px, 1.6vw, 20px)/1.2 var(--jm-body, inherit); text-transform: none; color: var(--jm-ink); letter-spacing: 0; white-space: nowrap; }
.jm-marquee-logos .jm-marquee-item:hover img { filter: none; opacity: 1; }

/* ---------- Customer area (/customer/…): orders, quotations, addresses, account — in the site's colours ----------
   The shop's customer pages are written for Bootstrap 5; the theme loads Bootstrap 4, so the few utilities they
   rely on are defined here, scoped to .bb-customer-page. */
html body .bb-customer-page { --ink: var(--site-navy, #452d2a); --muted: rgba(69, 45, 42, .72); --line: var(--jm-line, rgba(69, 45, 42, .18)); --accent: var(--site-navy, #452d2a); --gold: var(--site-gold, #af522a); background: var(--jm-paper, #f2e6d6); font-family: Inter, -apple-system, 'Segoe UI', Arial, sans-serif; }
.bb-customer-page .customer-body { padding: 28px 0 64px; }
.bb-customer-page .gap-1 { gap: 4px !important; } .bb-customer-page .gap-2 { gap: 8px !important; } .bb-customer-page .gap-3 { gap: 16px !important; }
.bb-customer-page .flex-1 { flex: 1 1 0 !important; } .bb-customer-page .min-w-0, .bb-customer-page .min0 { min-width: 0 !important; }
.bb-customer-page .fw-semibold { font-weight: 600 !important; } .bb-customer-page .fw-medium { font-weight: 500 !important; } .bb-customer-page .fw-bold { font-weight: 700 !important; }
.bb-customer-page .fs-5 { font-size: 1.15rem !important; } .bb-customer-page .text-truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bb-customer-page .me-1 { margin-right: 4px !important; } .bb-customer-page .me-2 { margin-right: 8px !important; } .bb-customer-page .ms-2 { margin-left: 8px !important; }
.bb-customer-page .row.g-3 { margin: -8px; } .bb-customer-page .row.g-3 > [class*="col"] { padding: 8px; }
.bb-customer-page .text-muted { color: var(--muted) !important; }
.bb-profile-header-title { font-family: Archivo, Inter, sans-serif !important; color: var(--ink) !important; font-weight: 800 !important; letter-spacing: -.01em; }
.bb-customer-sidebar-wrapper { border-radius: 0 !important; border-color: var(--line) !important; box-shadow: 0 14px 34px -26px rgba(69, 45, 42, .45) !important; }
.bb-customer-sidebar-heading { background: var(--site-navy, #452d2a); }
.bb-customer-sidebar .name { color: #fff !important; } .bb-customer-sidebar .email { color: rgba(255, 255, 255, .75) !important; }
.bb-customer-navigation .nav-link:hover { background: #f1f4f8 !important; color: var(--accent) !important; }
.bb-customer-navigation .nav-link.active { background: var(--accent) !important; box-shadow: inset 3px 0 0 var(--gold), 0 8px 18px -12px rgba(69, 45, 42, .8) !important; }
.bb-customer-page .menu-title { display: block; padding: 12px 13px 4px; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #9aa7b6; }
.bb-customer-page .btn { border-radius: 999px; font-weight: 700; padding: 8px 18px; display: inline-flex; align-items: center; gap: 6px; }
.bb-customer-page .btn-sm { padding: 6px 14px; font-size: 13px; }
.bb-customer-page .btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.bb-customer-page .btn-primary:hover, .bb-customer-page .btn-primary:focus { background: var(--gold); border-color: var(--gold); color: #fff; }
.bb-customer-page .btn-outline-primary { color: var(--accent); border-color: var(--accent); background: #fff; }
.bb-customer-page .btn-outline-primary:hover { background: var(--accent); color: #fff; }
.bb-customer-page .btn-outline-secondary { color: var(--ink); border-color: var(--line); background: #fff; }
.bb-customer-page .btn svg, .bb-customer-page .btn .icon { width: 16px; height: 16px; }
.bb-customer-page .form-control { border-radius: 0; border-color: var(--line); min-height: 46px; }
.bb-customer-page .form-control:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(69, 45, 42, .12); }
.bb-customer-card-list { display: grid; gap: 14px; }
.bb-customer-card, .bb-customer-page .card { background: var(--jm-paper-2, #fcf0e0); border: 1px solid var(--line) !important; border-radius: 0 !important; box-shadow: 0 10px 28px -24px rgba(69, 45, 42, .5); overflow: hidden; transition: box-shadow .2s, transform .2s; }
.bb-customer-card:hover { box-shadow: 0 18px 40px -26px rgba(69, 45, 42, .6); transform: translateY(-1px); }
.bb-customer-card-header { padding: 16px 20px 10px; border-bottom: 1px solid #f0f3f7; }
.bb-customer-card-title { font-family: Archivo, Inter, sans-serif; font-size: 17px !important; font-weight: 800; color: var(--ink); margin: 0 0 6px !important; }
.bb-customer-card-body { padding: 14px 20px; }
.bb-customer-card-footer { padding: 12px 20px 16px; display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; border-top: 1px solid #f0f3f7; background: var(--jm-paper-2, #fcf0e0); }
.bb-customer-card-info .info-item { display: flex; flex-direction: column; gap: 2px; }
.bb-customer-card-info .info-item .label { font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #8a97a6; }
.bb-customer-card-info .info-item .value { font-size: 15px; font-weight: 700; color: var(--ink); }
.bb-customer-card-status .badge, .bb-customer-page .badge { border-radius: 999px; padding: 4px 10px; font-size: 12px; font-weight: 700; }
.bb-customer-page .bg-warning { background: #fdf1d3 !important; color: #8a5b00 !important; }
.bb-customer-page .bg-success { background: #dcf5e6 !important; color: #136c3a !important; }
.bb-customer-page .bg-danger { background: #fde2e1 !important; color: #a12a24 !important; }
.bb-customer-page .bg-info, .bb-customer-page .bg-primary { background: #e1ecf8 !important; color: var(--accent) !important; }
.bb-customer-page .bb-empty { background: #fff; border: 1px dashed #cfd8e3; border-radius: 0; padding: 44px 24px; text-align: center; }
.bb-customer-page .bb-empty-title { font-family: Archivo, Inter, sans-serif; font-weight: 800; color: var(--ink); }
.bb-customer-page .bb-empty-img img, .bb-customer-page .bb-empty-img svg { max-width: 150px; height: auto; opacity: .9; }
.bb-customer-page .table { background: #fff; border-radius: 0; overflow: hidden; }
.bb-customer-page .table th { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: #8a97a6; border-top: 0; }
.bb-customer-page .pagination .page-link { border-radius: 10px; margin: 0 3px; color: var(--accent); }
.bb-customer-page .pagination .active .page-link { background: var(--accent); border-color: var(--accent); color: #fff; }
.bb-customer-page .jcp-orders-next { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px; margin: 0 0 18px; }
.bb-customer-page .jcp-orders-next a { display: flex; gap: 10px; align-items: center; padding: 12px 14px; background: #fff; border: 1px solid var(--line); border-radius: 0; color: var(--ink); font-weight: 700; text-decoration: none; }
.bb-customer-page .jcp-orders-next a:hover { border-color: var(--accent); }
.bb-customer-page .jcp-orders-next small { display: block; font-weight: 500; color: var(--muted); }
.bb-customer-page .jcp-orders-next i { width: 38px; height: 38px; border-radius: 10px; background: #eef3f9; color: var(--accent); display: grid; place-items: center; font-style: normal; flex: none; }

/* Store logos and shop images: logos never stretched; product photos shown whole (not cropped), on white. */
.jm-store-logo { display: inline-grid; place-items: center; flex: none; border-radius: 50%; object-fit: contain; background: #fff; border: 1px solid var(--jm-line, rgba(69, 45, 42, .18)); }
.jm-store-initials { background: var(--site-navy, #452d2a); color: var(--jm-paper, #f2e6d6); font-family: var(--jm-display, Archivo, sans-serif); font-weight: 700; letter-spacing: .02em; border: 0; }
.bb-shop-banner .jm-store-logo { box-shadow: 0 8px 24px -10px rgba(0, 0, 0, .45); border: 3px solid #fff; }
.bb-product-item .card-img-top, .bb-product-item img, .jch-shop .card-img-top, .product-thumbnail img, .bb-product-items-wrapper img.card-img-top {
    width: 100%; aspect-ratio: 1 / 1; height: auto; object-fit: contain; background: #fff; padding: 6px;
}
.bb-product-gallery img, .bb-product-gallery-images img { object-fit: contain; background: #fff; max-height: 560px; width: 100%; }

/* Header cart and the "added to cart" panel. */
.jm-cart { position: relative; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 12px; border-radius: 999px; color: inherit; text-decoration: none; font-weight: 600; border: 1px solid var(--jm-line, rgba(69, 45, 42, .18)); background: transparent; }
.jm-cart[hidden] { display: none; }
.jm-cart svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.jm-cart:hover { color: inherit; border-color: currentColor; text-decoration: none; }
.jm-cart-count { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--site-gold, #af522a); color: #fff; font-size: 12px; font-weight: 700; display: inline-grid; place-items: center; }
.jm-cart-count[hidden] { display: none; }
@media (max-width: 640px) { .jm-cart-label { display: none; } .jm-cart { padding: 0 10px; } }
.jm-cart-panel { position: fixed; z-index: 1200; right: 16px; top: 84px; width: min(360px, calc(100vw - 32px)); background: #fff; color: var(--site-navy, #452d2a); border: 1px solid var(--jm-line, rgba(69, 45, 42, .18)); box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .35); padding: 16px; animation: jmCartIn .25s ease-out; }
.jm-cart-panel[hidden] { display: none; }
.jm-cart-panel-msg { margin: 0 0 12px; font-size: 15px; }
.jm-cart-panel-actions { display: flex; gap: 8px; align-items: center; }
.jm-cart-panel-actions .jm-btn { flex: 1; justify-content: center; min-height: 44px; }
.jm-cart-panel-close { border: 0; background: transparent; font-size: 22px; line-height: 1; color: inherit; padding: 0 4px; }
@keyframes jmCartIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@media (max-width: 760px) { .jm-cart-panel { top: auto; bottom: 84px; } }

/* Checkout payment methods: logos at their real proportions (round company logo, wide PesaPal mark). */
.payment-method-item { padding-right: 8rem !important; min-height: 64px; }
.payment-method-item .payment-method-logo { width: 7rem !important; top: 50% !important; transform: translateY(-50%); display: flex; justify-content: flex-end; align-items: center; }
.payment-method-item .payment-method-logo img { width: auto !important; height: auto !important; max-width: 100% !important; max-height: 44px !important; object-fit: contain; }
@media (max-width: 480px) { .payment-method-item { padding-right: 5.5rem !important; } .payment-method-item .payment-method-logo { width: 4.75rem !important; } .payment-method-item .payment-method-logo img { max-height: 36px !important; } }

/* Every screen size: media and tables never wider than the screen; long words wrap; no sideways page scroll. */
img, video, iframe, embed, object, svg:not(.jm-icon) { max-width: 100%; }
img, video { height: auto; }
.post-content table, .page-content table, .ck-content table, article table { display: block; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.post-content, .page-content, .ck-content, article, .jp, .jch-shop { overflow-wrap: anywhere; }
@media (max-width: 767px) {
    html, body { overflow-x: clip; }
    .container, .container-fluid { padding-left: 16px; padding-right: 16px; }
    input, select, textarea { font-size: 16px; }   /* no zoom-in on iPhone when typing */
    .jm-btn, .jch-btn, .jp-btn, .btn { min-height: 44px; }
}

/* ---------- Cart (/cart) ---------- */
.jcart { padding: 28px 0 64px; background: var(--jm-paper, #f2e6d6); }
.jcart-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 22px; }
.jcart-eyebrow { margin: 0; text-transform: uppercase; letter-spacing: .14em; font-size: 12px; font-weight: 700; color: var(--site-gold, #af522a); }
.jcart-head h1 { margin: 4px 0 0; font-size: clamp(28px, 4vw, 44px); }
.jcart-head h1 span { font-size: 15px; font-family: var(--jm-text, Inter, sans-serif); letter-spacing: 0; text-transform: none; font-weight: 500; opacity: .7; margin-left: 8px; }
.jcart-steps { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; counter-reset: s; flex-wrap: wrap; }
.jcart-steps li { counter-increment: s; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1px solid var(--jm-line, rgba(69, 45, 42, .18)); border-radius: 999px; font-size: 13px; font-weight: 600; opacity: .6; }
.jcart-steps li::before { content: counter(s); width: 22px; height: 22px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--jm-line, rgba(69, 45, 42, .18)); font-size: 12px; }
.jcart-steps li.is-now { opacity: 1; background: var(--site-navy, #452d2a); color: var(--jm-paper, #f2e6d6); border-color: var(--site-navy, #452d2a); }
.jcart-steps li.is-now::before { background: var(--site-gold, #af522a); color: #fff; }
.jcart-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; }
.jcart-items { display: grid; gap: 12px; }
.jcart-item { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto auto auto; gap: 16px; align-items: center; background: #fff; border: 1px solid var(--jm-line, rgba(69, 45, 42, .18)); padding: 14px; }
.jcart-img img { width: 96px; height: 96px; object-fit: contain; background: #fff; display: block; }
.jcart-name { display: block; font-weight: 700; font-size: 16px; color: inherit; line-height: 1.3; }
.jcart-name:hover { color: var(--site-gold, #af522a); }
.jcart-meta { font-size: 13px; opacity: .8; margin-top: 3px; }
.jcart-meta a { color: inherit; text-decoration: underline; }
.jcart-stock { color: #1f7a3a; font-weight: 600; }
.jcart-stock.is-out { color: #b42318; }
.jcart-unit { margin-top: 6px; font-size: 14px; }
.jcart-unit .bb-product-price { display: flex; gap: 6px; align-items: baseline; flex-wrap: wrap; }
.jcart-label { display: none; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; opacity: .65; margin-bottom: 4px; }
.jcart-qty .bb-product-quantity, .jcart-qty .input-group { display: inline-flex; align-items: center; border: 1px solid var(--jm-line, rgba(69, 45, 42, .18)); border-radius: 999px; overflow: hidden; background: #fff; }
.jcart-qty button, .jcart-qty .btn { width: 40px; height: 42px; border: 0; background: transparent; font-size: 18px; color: inherit; border-radius: 0 !important; min-height: 0 !important; }
.jcart-qty button:hover { background: var(--jm-paper, #f2e6d6); }
.jcart-qty input { width: 48px; height: 42px; border: 0; text-align: center; font-weight: 700; background: transparent; box-shadow: none !important; }
.jcart-line { text-align: right; min-width: 110px; font-weight: 800; font-size: 17px; }
.jcart-remove { display: inline-flex; align-items: center; gap: 6px; color: #b42318; font-size: 13px; font-weight: 600; text-decoration: none; padding: 8px; border-radius: 999px; }
.jcart-remove:hover { background: #fde8e7; color: #b42318; text-decoration: none; }
.jcart-remove svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.jcart-remove span { display: none; }
.jcart-coupon { margin-top: 14px; background: #fff; border: 1px solid var(--jm-line, rgba(69, 45, 42, .18)); padding: 12px 16px; }
.jcart-coupon summary { cursor: pointer; font-weight: 600; }
.jcart-coupon-row { display: flex; gap: 8px; margin-top: 10px; }
.jcart-coupon-row .form-control { flex: 1; min-height: 46px; border-radius: 999px; padding: 0 16px; }
.jcart-trust { list-style: none; padding: 0; margin: 18px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.jcart-trust li { padding: 12px 14px; border-left: 3px solid var(--site-gold, #af522a); background: var(--jm-paper-2, #fcf0e0); }
.jcart-trust b { display: block; font-size: 14px; }
.jcart-trust span { font-size: 13px; opacity: .8; }
.jcart-summary { position: sticky; top: 96px; background: #fff; border: 1px solid var(--jm-line, rgba(69, 45, 42, .18)); padding: 20px; }
.jcart-summary h2 { font-size: 18px; margin: 0 0 14px; }
.jcart-row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--jm-line, rgba(69, 45, 42, .12)); font-size: 15px; }
.jcart-total { border-bottom: 0; font-size: 19px; padding-top: 14px; }
.jcart-total b { font-size: 22px; }
.jcart-note { font-size: 13px; opacity: .75; margin: 4px 0 14px; }
.jcart-checkout { width: 100%; justify-content: center; min-height: 52px; font-size: 15px; }
.jcart-continue { display: block; text-align: center; margin-top: 12px; color: inherit; font-weight: 600; }
.jcart-small-link { font-size: 12px; color: #b42318; }
.jcart-bar { display: none; }
.jcart-empty { text-align: center; background: #fff; border: 1px solid var(--jm-line, rgba(69, 45, 42, .18)); padding: 48px 20px; max-width: 720px; margin: 0 auto; }
.jcart-empty svg { width: 56px; height: 56px; fill: none; stroke: var(--site-gold, #af522a); stroke-width: 1.5; }
.jcart-empty p { max-width: 480px; margin: 8px auto 20px; opacity: .8; }
.jcart-empty-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
@media (max-width: 991px) {
    .jcart-grid { grid-template-columns: 1fr; }
    .jcart-summary { position: static; }
}
@media (max-width: 640px) {
    .jcart { padding-bottom: 110px; }
    .jcart-steps { display: none; }
    .jcart-item { grid-template-columns: 72px minmax(0, 1fr); grid-template-areas: "img info" "qty line" "rm rm"; gap: 10px 12px; }
    .jcart-img { grid-area: img; } .jcart-img img { width: 72px; height: 72px; }
    .jcart-info { grid-area: info; } .jcart-qty { grid-area: qty; } .jcart-line { grid-area: line; }
    .jcart-remove { grid-area: rm; justify-self: start; } .jcart-remove span { display: inline; }
    .jcart-label { display: block; }
    .jcart-bar { display: flex; position: fixed; z-index: 1150; left: 0; right: 0; bottom: 0; padding: 12px 16px max(12px, env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--jm-line, rgba(69, 45, 42, .18)); box-shadow: 0 -10px 30px -12px rgba(0, 0, 0, .25); align-items: center; justify-content: space-between; gap: 12px; }
    .jcart-bar small { display: block; font-size: 11px; opacity: .7; text-transform: uppercase; letter-spacing: .08em; }
    .jcart-bar b { font-size: 19px; }
    .jcart-bar .jm-btn { min-height: 48px; padding: 0 22px; }
}

/* ---------- Product cards (shop, store pages, related products): even grid on every screen ---------- */
.bb-product-items-wrapper > .row, .jch-body .row.row-cols-md-2 { display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 0 !important; }
.bb-product-items-wrapper > .row > .col, .jch-body .row.row-cols-md-2 > .col { width: auto !important; max-width: none !important; padding: 0 !important; flex: none !important; }
@media (max-width: 1199px) { .bb-product-items-wrapper > .row, .jch-body .row.row-cols-md-2 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 767px) { .bb-product-items-wrapper > .row, .jch-body .row.row-cols-md-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }
.bb-product-item { height: 100%; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--jm-line, rgba(69, 45, 42, .18)) !important; border-radius: 0 !important; transition: box-shadow .2s, transform .2s; overflow: hidden; }
.bb-product-item:hover { box-shadow: 0 18px 36px -22px rgba(69, 45, 42, .55); transform: translateY(-2px); }
.bb-product-item .card-body { display: flex; flex-direction: column; flex: 1; padding: 12px 14px 14px; }
.bb-product-item .product-name { font-family: var(--jm-text, Inter, sans-serif) !important; text-transform: none !important; letter-spacing: 0 !important; font-size: 15px !important; line-height: 1.35; font-weight: 600 !important; margin-bottom: 8px !important; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.7em; }
.bb-product-item .product-name a { color: inherit !important; }
.bb-product-item .bb-product-price { margin-bottom: 8px; }
.bb-product-item .bb-product-price-text { font-size: 17px; font-weight: 800; }
.bb-product-item .bb-product-price-text-old, .bb-product-item del { font-size: 13px; opacity: .6; }
.bb-product-item .product-add-cart-btn-large-wrapper { margin-top: auto; }
.bb-product-item .product-add-cart-btn-large-wrapper .btn, .bb-product-item .bb-btn-product-actions-icon { width: 100%; justify-content: center; border-radius: 999px !important; min-height: 42px; background: var(--site-navy, #452d2a) !important; border-color: var(--site-navy, #452d2a) !important; color: #fff !important; display: inline-flex; align-items: center; gap: 6px; }
.bb-product-item .product-add-cart-btn-large-wrapper .btn:hover { background: var(--site-gold, #af522a) !important; border-color: var(--site-gold, #af522a) !important; }
/* "(0 reviews)" under every new product is noise: show ratings only once a product has reviews. */
.bb-product-item .bb-product-rating:has(.bb-product-rating-text:empty), .bb-product-item .bb-product-rating-wrapper:has(span:only-child) { display: none; }
@media (max-width: 480px) {
    .bb-product-item .card-body { padding: 10px; }
    .bb-product-item .product-name { font-size: 14px !important; }
    .bb-product-item .bb-product-price-text { font-size: 15px; }
    .bb-product-item .product-add-cart-btn-large-wrapper .btn { font-size: 12px; min-height: 40px; padding: 0 8px; }
}

/* ---------- Store page (/stores/…) ---------- */
.jstore { background: var(--jm-paper, #f2e6d6); padding-bottom: 56px; }
.jstore-hero { position: relative; color: var(--jm-paper, #f2e6d6); background: linear-gradient(120deg, var(--site-navy, #452d2a) 0%, var(--site-navy-2, #372522) 55%, var(--site-gold, #af522a) 140%); padding: 40px 0 26px; overflow: hidden; }
.jstore-hero::before { content: ''; position: absolute; inset: 0; background: var(--jstore-cover, none) center / cover no-repeat; opacity: .28; }
.jstore-hero .container { position: relative; }
.jstore-id { display: flex; gap: 22px; align-items: center; }
.jstore-logo { box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .5); border: 3px solid var(--jm-paper, #f2e6d6) !important; }
.jstore-logo.jm-store-initials { background: var(--site-gold, #af522a); }
.jstore-eyebrow { margin: 0; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; opacity: .75; }
.jstore-hero h1 { color: #fff; margin: 4px 0 10px; font-size: clamp(24px, 3.6vw, 40px); line-height: 1.1; }
.jstore-facts { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.jstore-facts li { font-size: 13px; padding: 5px 12px; border-radius: 999px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .18); }
.jstore-facts li.is-ok { background: rgba(46, 160, 90, .25); border-color: rgba(120, 220, 150, .35); }
.jstore-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.jstore-actions .jm-btn { min-height: 46px; }
.jstore-actions .jm-btn:not(.jm-btn-light) { background: var(--site-gold, #af522a); border-color: var(--site-gold, #af522a); color: #fff; }
.jstore-actions .jm-btn-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .45); }
.jstore-actions .jm-btn-light:hover { background: #fff; color: var(--site-navy, #452d2a); }
.jstore-body { padding-top: 22px; }
.jstore-about { background: #fff; border: 1px solid var(--jm-line, rgba(69, 45, 42, .18)); padding: 12px 16px; margin-bottom: 16px; }
.jstore-about summary { cursor: pointer; font-weight: 700; }
.jstore-toolbar { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.jstore-search { display: flex; flex: 1 1 320px; max-width: 520px; background: #fff; border: 1px solid var(--jm-line, rgba(69, 45, 42, .18)); border-radius: 999px; padding: 4px; }
.jstore-search input { flex: 1; min-width: 0; border: 0; outline: 0; padding: 0 14px; background: transparent; font-size: 15px; }
.jstore-search button { border: 0; border-radius: 999px; padding: 9px 18px; background: var(--site-navy, #452d2a); color: #fff; font-weight: 700; }
.jstore-sort label { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 14px; }
.jstore-sort select { border: 1px solid var(--jm-line, rgba(69, 45, 42, .18)); border-radius: 999px; padding: 9px 14px; background: #fff; font-size: 14px; }
.jstore-cats { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 10px; scrollbar-width: none; }
.jstore-cats::-webkit-scrollbar { display: none; }
.jstore-cats a { white-space: nowrap; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--jm-line, rgba(69, 45, 42, .18)); background: #fff; color: inherit; font-size: 14px; font-weight: 600; text-decoration: none; }
.jstore-cats a small { opacity: .6; margin-left: 4px; }
.jstore-cats a.is-on { background: var(--site-navy, #452d2a); color: #fff; border-color: var(--site-navy, #452d2a); }
.jstore-count { font-size: 13px; opacity: .75; margin: 0 0 10px; }
.jstore-count a { color: inherit; text-decoration: underline; }
.jstore-empty { background: #fff; border: 1px solid var(--jm-line, rgba(69, 45, 42, .18)); padding: 40px 24px; text-align: center; max-width: 760px; margin: 0 auto; }
.jstore-empty p { max-width: 560px; margin: 8px auto 18px; opacity: .8; }
.jstore-empty-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
@media (max-width: 640px) {
    .jstore-hero { padding: 26px 0 20px; }
    .jstore-id { flex-direction: column; align-items: flex-start; gap: 14px; }
    .jstore-id .jstore-logo { width: 76px !important; height: 76px !important; font-size: 28px !important; }
    .jstore-actions { display: grid; grid-template-columns: 1fr 1fr; }
    .jstore-actions .jm-btn { justify-content: center; padding: 0 10px; font-size: 13px; }
    .jstore-search { max-width: none; }
    .jstore-sort { width: 100%; } .jstore-sort select { flex: 1; }
}

/* Product page: Buy now, and the phone bar with the price and both buttons. */
.jm-buy-now { min-height: 46px; margin-bottom: 12px; }
.jm-product-bar { display: none; }
@media (max-width: 767px) {
    .jm-product-bar { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px; align-items: center; position: fixed; z-index: 1150; left: 0; right: 0; bottom: 0;
        padding: 10px 12px max(10px, env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--jm-line, rgba(69, 45, 42, .18)); box-shadow: 0 -10px 30px -12px rgba(0, 0, 0, .25); }
    .jm-product-bar small { display: block; font-size: 11px; opacity: .7; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .jm-product-bar b { font-size: 17px; }
    .jm-product-bar .jm-btn { min-height: 46px; padding: 0 14px; font-size: 13px; }
    body:has(.jm-product-bar) { padding-bottom: 76px; }
}

/* Product card image frame: identical square on every card; the whole photo, centred, over a soft blurred copy. */
.bb-product-item .jm-pi { position: relative; display: block; aspect-ratio: 1 / 1; overflow: hidden; background: #f6f1ea; isolation: isolate; }
.bb-product-item .jm-pi::before { content: ''; position: absolute; inset: -12%; background: var(--pi) center / cover no-repeat; filter: blur(18px) saturate(1.1); opacity: .55; z-index: -1; transform: scale(1.05); }
.bb-product-item .jm-pi img, .bb-product-item .jm-pi .card-img-top { position: absolute !important; inset: 0; width: 100% !important; height: 100% !important; max-height: none !important; aspect-ratio: auto !important; object-fit: contain !important; padding: 8px !important; background: transparent !important; transition: transform .35s ease; }
.bb-product-item:hover .jm-pi img { transform: scale(1.04); }
.jm-pi-store { margin: 0 0 4px; font-size: 12px; letter-spacing: .04em; text-transform: uppercase; opacity: .6; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bb-product-item .bb-btn-product-actions-icon span { position: static !important; opacity: 1 !important; visibility: visible !important; transform: none !important; background: none !important; color: inherit !important; padding: 0 !important; font-size: 13px; box-shadow: none !important; }
.bb-product-item .bb-btn-product-actions-icon span::before, .bb-product-item .bb-btn-product-actions-icon span::after { display: none !important; }

/* ---------- City guide hub (/jinja-city-guide) ---------- */
.cgh { background: var(--jm-paper, #f2e6d6); padding-bottom: 64px; }
.cgh-hero { position: relative; color: #fff; padding: clamp(56px, 9vw, 120px) 0 clamp(36px, 6vw, 64px); background: var(--site-navy, #452d2a) var(--cgh-img) center / cover no-repeat; isolation: isolate; }
.cgh-hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(37, 22, 20, .25) 0%, rgba(37, 22, 20, .55) 55%, rgba(37, 22, 20, .85) 100%); }
.cgh-eyebrow { margin: 0 0 8px; text-transform: uppercase; letter-spacing: .16em; font-size: 12px; font-weight: 700; color: #f3d9b8; }
.cgh-hero h1 { color: #fff; font-size: clamp(34px, 6vw, 72px); line-height: 1.02; margin: 0 0 14px; max-width: 900px; text-transform: none; }
.cgh-lead { max-width: 720px; font-size: clamp(15px, 1.6vw, 18px); line-height: 1.6; color: rgba(255, 255, 255, .9); margin: 0 0 22px; }
.cgh-section { padding-top: clamp(36px, 5vw, 64px); scroll-margin-top: 90px; }
.cgh-section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 14px; margin-bottom: 18px; }
.cgh-section-head h2 { margin: 0 0 6px; font-size: clamp(24px, 3vw, 36px); text-transform: none; }
.cgh-section-head p { margin: 0; max-width: 640px; opacity: .8; }
.cgh-map .cg { margin: 0; }
.cgh-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.cgh-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--jm-line, rgba(69, 45, 42, .18)); color: inherit; text-decoration: none; overflow: hidden; transition: transform .2s, box-shadow .2s; }
.cgh-card:hover { transform: translateY(-3px); box-shadow: 0 20px 40px -24px rgba(69, 45, 42, .6); color: inherit; text-decoration: none; }
.cgh-card-img { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: #e8ddd0; }
.cgh-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.cgh-card:hover .cgh-card-img img { transform: scale(1.05); }
.cgh-card-body { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px 16px; flex: 1; }
.cgh-card-body b { font-size: 17px; line-height: 1.3; font-family: var(--jm-display, Archivo, sans-serif); }
.cgh-card-body span { font-size: 14px; opacity: .8; line-height: 1.5; flex: 1; }
.cgh-card-body em { font-style: normal; font-weight: 700; color: var(--site-gold, #af522a); font-size: 14px; }
.cgh-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.cgh-facts > div { background: #fff; border: 1px solid var(--jm-line, rgba(69, 45, 42, .18)); border-top: 3px solid var(--site-gold, #af522a); padding: 16px 18px; }
.cgh-facts span { display: block; text-transform: uppercase; letter-spacing: .12em; font-size: 11px; font-weight: 800; color: var(--site-gold, #af522a); margin-bottom: 6px; }
.cgh-facts p { margin: 0; font-size: 15px; line-height: 1.5; }
.cgh-cta { margin-top: clamp(36px, 5vw, 64px); background: var(--site-navy, #452d2a); color: var(--jm-paper, #f2e6d6); padding: clamp(24px, 4vw, 40px); display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center; }
.cgh-cta h2 { color: #fff; margin: 0 0 6px; text-transform: none; }
.cgh-cta p { margin: 0; opacity: .85; }
.cgh-cta-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.cgh-cta .jm-btn:not(.jm-btn-light) { background: var(--site-gold, #af522a); border-color: var(--site-gold, #af522a); color: #fff; }
.cgh-cta .jm-btn-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .4); }
.cgh-cta .jm-btn-light:hover { background: #fff; color: var(--site-navy, #452d2a); }
@media (max-width: 767px) {
    .cgh-cta { grid-template-columns: 1fr; }
    .cgh-cta-links { justify-content: flex-start; }
    .cgh-cards { grid-template-columns: 1fr; }
    .cgh-card { flex-direction: row; }
    .cgh-card-img { flex: 0 0 120px; aspect-ratio: auto; }
    .cgh-card-body span { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
}

/* City guide hub — legibility: the theme clears every section background (body #app section … !important),
   which left the call to action as white text on the light page. */
body #app .cgh .cgh-cta, body .cgh .cgh-cta { background-color: var(--site-navy, #452d2a) !important; color: #fff; }
body #app .cgh .cgh-cta p, body .cgh .cgh-cta p { color: rgba(255, 255, 255, .88); opacity: 1; }
body #app .cgh .cgh-hero, body .cgh .cgh-hero { background-color: #2b1a17 !important; }
.cgh-hero::before { background: linear-gradient(90deg, rgba(30, 18, 16, .88) 0%, rgba(30, 18, 16, .72) 45%, rgba(30, 18, 16, .35) 100%), linear-gradient(180deg, rgba(30, 18, 16, .1) 0%, rgba(30, 18, 16, .55) 100%); }
.cgh-hero h1, .cgh-lead, .cgh-eyebrow { text-shadow: 0 2px 18px rgba(0, 0, 0, .45); }
.cgh-lead { color: #fff; }
body #app .cgh, body .cgh { background-color: var(--jm-paper, #f2e6d6) !important; }
@media (max-width: 767px) { .cgh-hero::before { background: linear-gradient(180deg, rgba(30, 18, 16, .55) 0%, rgba(30, 18, 16, .85) 100%); } }

/* City guide hub: section bar, edge to edge under the site header. */
.cgh-nav { position: sticky; z-index: 1020; top: calc(var(--jm-top, 0px) + var(--jm-header)); background: var(--jm-paper, #f2e6d6); border-bottom: 1px solid var(--jm-line, rgba(69, 45, 42, .18)); box-shadow: 0 10px 24px -20px rgba(0, 0, 0, .5); transition: top .4s; }
body:has(.jm-header.is-hidden) .cgh-nav { top: 0; }
.cgh-nav-in { display: flex; align-items: stretch; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.cgh-nav-in::-webkit-scrollbar { display: none; }
body #app .cgh-nav a { flex: 1 0 auto; display: flex; align-items: center; justify-content: center; min-height: 56px; padding: 0 22px; color: var(--site-navy, #452d2a); font-weight: 600; font-size: 14px; letter-spacing: .02em; text-decoration: none; white-space: nowrap; border-bottom: 3px solid transparent; transition: color .2s, border-color .2s, background .2s; }
body #app .cgh-nav a + a { border-left: 1px solid var(--jm-line, rgba(69, 45, 42, .12)); }
body #app .cgh-nav a:hover { background: rgba(255, 255, 255, .55); color: var(--site-gold, #af522a); text-decoration: none; }
body #app .cgh-nav a.is-on { color: var(--site-gold, #af522a); border-bottom-color: var(--site-gold, #af522a); background: rgba(255, 255, 255, .45); }
body #app .cgh-nav a:focus-visible { outline: 2px solid var(--site-gold, #af522a); outline-offset: -4px; }
body #app .cgh-nav a.cgh-nav-tour { flex: 0 0 auto; background: var(--site-gold, #af522a); color: #fff; letter-spacing: .08em; text-transform: uppercase; font-size: 13px; padding: 0 28px; }
body #app .cgh-nav a.cgh-nav-tour:hover { background: var(--site-navy, #452d2a); color: #fff; }
.cgh-section { scroll-margin-top: calc(var(--jm-header) + 72px); }
.cgh-section:focus { outline: none; }
@media (max-width: 767px) {
    body #app .cgh-nav a { flex: 0 0 auto; min-height: 50px; padding: 0 16px; font-size: 13px; }
}

/* City guide hub — all screen sizes. */
.cgh-hero .container, .cgh > .container { padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }
.cgh-hero h1 { overflow-wrap: anywhere; }
.cgh-cards { grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.cgh-nav-in { scroll-snap-type: x proximity; scroll-padding: 0 16px; }
body #app .cgh-nav a { scroll-snap-align: start; }
.cgh-nav.is-scrollable .cgh-nav-in { padding-right: 8px; }
@media (min-width: 1600px) {
    .cgh-hero .container, .cgh > .container { max-width: 1480px; }
    .cgh-cards { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 1199px) {
    body #app .cgh-nav a { flex: 0 0 auto; padding: 0 18px; }
    body #app .cgh-nav a.cgh-nav-tour { margin-left: auto; }
}
@media (max-width: 1023px) {
    .cgh-hero { padding: 48px 0 36px; }
    .cgh-cta { grid-template-columns: 1fr; }
    .cgh-cta-links { justify-content: flex-start; }
}
@media (max-width: 767px) {
    .cgh-hero { padding: 36px 0 28px; }
    .cgh-hero h1 { font-size: clamp(30px, 9vw, 40px); }
    .cgh-lead { font-size: 15px; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
    .cgh-section-head { align-items: stretch; }
    .cgh-section-head .jm-btn { width: 100%; }
    .cgh-map .cg-map-wrap { height: 60vh; min-height: 340px; }
    .cgh-cta-links { display: grid; grid-template-columns: 1fr 1fr; }
    .cgh-cta-links .jm-btn { width: 100%; padding: 0 12px; min-height: 48px; font-size: 12px; letter-spacing: .06em; text-align: center; }
    .cgh-cta-links .jm-btn:first-child { grid-column: 1 / -1; }
    .cgh-facts { grid-template-columns: 1fr 1fr; gap: 10px; }
    .cgh-facts > div { padding: 12px 14px; }
    .cgh-facts p { font-size: 14px; }
}
@media (max-width: 420px) {
    .cgh-card-img { flex-basis: 96px; }
    .cgh-card-body { padding: 12px; }
    .cgh-card-body b { font-size: 16px; }
    .cgh-facts { grid-template-columns: 1fr; }
    .cgh-cta-links { grid-template-columns: 1fr; }
}
@media (max-height: 500px) and (orientation: landscape) {
    .cgh-map .cg-map-wrap { height: 80vh; min-height: 260px; }
    .cgh-hero { padding: 24px 0; }
}

/* /projects: advertise your project, free. */
body #app section.jm-advertise { padding: clamp(32px, 5vw, 64px) 0; }
.jm-advertise-in { display: grid; grid-template-columns: 1fr auto; gap: 24px 40px; align-items: center; padding: clamp(22px, 4vw, 44px); background: var(--site-navy, #452d2a) !important; color: #fff; }
.jm-advertise h2 { color: #fff; margin: 0 0 10px; text-transform: none; font-size: clamp(26px, 3.4vw, 40px); }
.jm-advertise p { margin: 0 0 14px; color: rgba(255, 255, 255, .88); max-width: 680px; line-height: 1.6; }
.jm-advertise-eyebrow { text-transform: uppercase; letter-spacing: .16em; font-size: 12px; font-weight: 700; color: #f3d9b8 !important; margin-bottom: 6px !important; }
.jm-advertise-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 14px; }
.jm-advertise-steps b { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--site-gold, #af522a); margin-right: 6px; font-size: 12px; }
.jm-advertise-actions { display: grid; gap: 10px; }
body #app .jm-advertise .jm-btn:not(.jm-btn-light) { background: var(--site-gold, #af522a); border-color: var(--site-gold, #af522a); color: #fff; }
body #app .jm-advertise .jm-btn-light { border-color: rgba(255, 255, 255, .5); color: #fff; }
body #app .jm-advertise .jm-btn-light:hover { background: #fff; color: var(--site-navy, #452d2a); }
@media (max-width: 767px) { .jm-advertise-in { grid-template-columns: 1fr; } .jm-advertise-actions .jm-btn { width: 100%; } .jm-advertise-steps { flex-direction: column; } }

/* Client requests: hero link, floating button and the step form in a dialog. */
.jm-hero-looking { display: inline-block; margin: 14px 0 4px; color: var(--jm-paper, #f2e6d6); font-weight: 600; font-size: 15px; text-decoration: underline; text-underline-offset: 5px; }
.jm-hero-looking:hover { color: #fff; }
.jm-looking-fab { position: fixed; z-index: 1018; right: max(16px, env(safe-area-inset-right)); bottom: calc(max(16px, env(safe-area-inset-bottom)) + 56px); display: inline-flex; align-items: center; min-height: 46px; padding: 0 20px; border: 0; border-radius: 999px; background: var(--site-gold, #af522a); color: #fff; font: 500 13px/1 var(--jm-text, inherit); letter-spacing: .1em; text-transform: uppercase; cursor: pointer; box-shadow: 0 6px 18px -8px rgba(55, 37, 34, .55); transition: background .2s; }
.jm-looking-fab:hover { background: var(--site-navy, #452d2a); }
.jm-looking-fab:focus-visible { outline: 3px solid var(--site-navy, #452d2a); outline-offset: 3px; }
.jm-looking-fab svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
body:has(.jm-product-bar) .jm-looking-fab { bottom: calc(max(16px, env(safe-area-inset-bottom)) + 140px); }
body.jm-menu-open .jm-looking-fab, body:has(dialog.jlf[open]) .jm-looking-fab { display: none; }

/* The form: header and button bar stay put, the questions scroll between them. Same look as the site:
   paper background, square edges, the display font for headings, clay for actions. */
dialog.jlf { --c: var(--site-gold, #af522a); --ink: var(--site-navy, #452d2a); --line: rgba(69, 45, 42, .2); --paper: var(--jm-paper-2, #fcf0e0);
    width: min(680px, calc(100vw - 48px)); max-height: min(800px, calc(100dvh - 48px)); margin: auto; padding: 0; border: 0; border-radius: 0;
    background: var(--paper); color: var(--ink); box-shadow: 0 24px 60px -20px rgba(20, 10, 8, .5); overflow: hidden; }
dialog.jlf[open] { display: flex; flex-direction: column; }
dialog.jlf::backdrop { background: rgba(30, 18, 16, .55); }
.jlf-x { position: absolute; z-index: 3; top: 14px; right: 14px; width: 40px; height: 40px; border: 0; background: transparent; color: var(--ink); font-size: 28px; line-height: 1; cursor: pointer; }
.jlf-x:hover { color: var(--c); }
.jlf-x:focus-visible { outline: 2px solid var(--c); }
.jlf-form { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; }
.jlf-head { flex: 0 0 auto; padding: 26px 32px 0; }
.jlf-head .jlf-kicker, .jlf-head .jlf-title { padding-right: 40px; }
.jlf-kicker { margin: 0 0 8px; font: 500 12px/1.2 var(--jm-text, inherit); letter-spacing: .12em; text-transform: uppercase; color: rgba(69, 45, 42, .65); }
.jlf-title { margin: 0 0 18px; font-family: var(--jm-display, inherit); font-size: clamp(24px, 3.2vw, 32px); line-height: 1.12; font-weight: 600; text-transform: none; color: var(--ink); }
.jlf-progress { height: 2px; background: var(--line); }
.jlf-progress i { display: block; height: 100%; background: var(--c); transform-origin: left; transform: scaleX(.25); }
.jlf-error { flex: 0 0 auto; margin: 14px 32px 0; padding: 10px 12px; background: #f7dcd4; color: #7a1f10; font-size: 14px; }
.jlf-body { flex: 0 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scroll-behavior: auto; }
.jlf-step { padding: 22px 32px 26px; }

.jlf-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.jlf-tile { position: relative; margin: 0; cursor: pointer; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.jlf-tile input, .jlf-chips input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.jlf-tile-in { display: block; height: 100%; padding: 16px 16px 18px; background: transparent; }
.jlf-tile-in b { display: block; font-size: 15px; line-height: 1.3; font-weight: 600; }
.jlf-tile-in small { display: block; margin-top: 4px; font-size: 13px; line-height: 1.35; color: rgba(69, 45, 42, .65); }
.jlf-tile:hover .jlf-tile-in { background: rgba(255, 255, 255, .6); }
.jlf-tile input:checked + .jlf-tile-in { background: var(--ink); color: var(--paper); }
.jlf-tile input:checked + .jlf-tile-in small { color: rgba(252, 240, 224, .75); }
.jlf-tile input:focus-visible + .jlf-tile-in, .jlf-chips input:focus-visible + span { outline: 2px solid var(--c); outline-offset: -2px; }

.jlf-kind { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: 22px; }
.jlf-q-label { display: block; margin: 0 0 8px; font-size: 14px; font-weight: 600; color: var(--ink); }
.jlf-opt { font-weight: 400; font-size: 13px; color: rgba(69, 45, 42, .55); }
.jlf-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.jlf-chips label { margin: 0; cursor: pointer; }
.jlf-chips span { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border: 1px solid var(--line); background: #fff; font-size: 14px; }
.jlf-chips label:hover span { border-color: var(--ink); }
.jlf-chips input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.jlf-form input:not([type=radio]):not([type=checkbox]), .jlf-form textarea { display: block; width: 100%; min-height: 48px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 0; background: #fff; color: var(--ink); font: 400 16px/1.4 var(--jm-text, inherit); }
.jlf-form textarea { min-height: 120px; resize: vertical; }
.jlf-form input::placeholder, .jlf-form textarea::placeholder { color: rgba(69, 45, 42, .42); }
.jlf-form input:focus, .jlf-form textarea:focus { outline: 0; border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.jlf-form .is-bad { border-color: #b3321f !important; box-shadow: inset 0 0 0 1px #b3321f !important; }

.jlf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.jlf-grid label { display: grid; gap: 6px; margin: 0; font-size: 14px; font-weight: 600; }
.jlf-nav[hidden] { display: none; }
.jlf-wide { grid-column: 1 / -1; }
.jlf-check { display: flex; gap: 10px; align-items: flex-start; margin: 16px 0 0; font-size: 14px; line-height: 1.5; font-weight: 400; cursor: pointer; }
.jlf-check input { width: 18px; height: 18px; margin: 2px 0 0; flex: 0 0 auto; accent-color: var(--ink); }
.jlf-check a { color: inherit; text-decoration: underline; }
.jlf-summary { margin: 0 0 20px; padding: 0 0 16px; border-bottom: 1px solid var(--line); font-size: 15px; line-height: 1.5; }
.jlf-summary:empty { display: none; }
.jlf-summary button { padding: 0; border: 0; background: none; color: var(--c); font: inherit; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.jlf-small { margin: 14px 0 0; font-size: 13px; line-height: 1.5; color: rgba(69, 45, 42, .7); }
.jlf-note { margin: 14px 0 0; font-size: 13px; color: rgba(69, 45, 42, .7); }

.jlf-nav { flex: 0 0 auto; min-height: 0; display: flex; align-items: center; gap: 16px; padding: 14px 32px; padding-bottom: max(14px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--paper); }
.jlf-back { padding: 8px 0; border: 0; background: none; color: var(--ink); font: 500 15px/1 var(--jm-text, inherit); text-decoration: underline; text-underline-offset: 4px; white-space: nowrap; cursor: pointer; }
.jlf-back:hover { color: var(--c); }
.jlf-spacer { flex: 1; }
.jlf .jlf-btn, body #app .jlf .jlf-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 26px; border: 0; border-radius: 6px; background: var(--ink); color: #fff; font: 600 15px/1 var(--jm-text, inherit); letter-spacing: 0; text-transform: none; text-decoration: none; white-space: nowrap; cursor: pointer; }
.jlf .jlf-btn:hover, body #app .jlf .jlf-btn:hover { background: var(--c); color: #fff; }
.jlf .jlf-btn:focus-visible { outline: 2px solid var(--c); outline-offset: 2px; }
.jlf .jlf-send:disabled { opacity: .7; cursor: progress; }

.jlf-done { padding: 44px 32px 40px; overflow-y: auto; }
.jlf-done p { max-width: 500px; margin: 0 0 10px; line-height: 1.6; }
.jlf-done-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 22px; }
.jlf-link { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; font-size: 14px; }
.jlf-hp, .jlf-sr { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Tablets */
@media (max-width: 860px) { .jlf-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* Phones: the form fills the screen */
@media (max-width: 600px) {
    .jm-looking-fab { bottom: calc(max(12px, env(safe-area-inset-bottom)) + 54px); right: 12px; min-height: 44px; padding: 0 16px; font-size: 13px; }
    body:has(.jm-product-bar) .jm-looking-fab { bottom: calc(max(12px, env(safe-area-inset-bottom)) + 130px); }
    dialog.jlf { width: 100%; max-width: 100%; height: 100%; max-height: 100%; }
    .jlf-body { flex: 1 1 auto; }
    .jlf-head { padding: 18px 18px 0; padding-top: max(18px, env(safe-area-inset-top)); }
    .jlf-title { font-size: 24px; margin-bottom: 14px; }
    .jlf-error { margin: 12px 18px 0; }
    .jlf-step { padding: 18px; }
    .jlf-tile-in { padding: 14px 12px; }
    .jlf-tile-in small { display: none; }
    .jlf-grid { grid-template-columns: 1fr; gap: 14px; }
    .jlf-nav { padding: 12px 18px; padding-bottom: max(12px, env(safe-area-inset-bottom)); }
    .jlf .jlf-next, .jlf .jlf-send { flex: 0 1 auto; min-width: 140px; }
    .jlf-done { padding: 36px 20px; }
}
@media (max-width: 360px) { .jlf-tile-in b { font-size: 14px; } .jlf-chips span { padding: 0 11px; font-size: 13px; } }
/* Short screens (phones held sideways) */
@media (max-height: 560px) {
    dialog.jlf { width: 100%; max-width: 100%; height: 100%; max-height: 100%; }
    .jlf-head { padding-top: 12px; }
    .jlf-kicker { display: none; }
    .jlf-title { margin-bottom: 10px; font-size: 20px; }
    .jlf-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .jlf-tile-in small { display: none; }
}

/* Header: one size for every item — Business, Cart and Menu are 44 px pills with the same small capitals as
   "Book a site visit", so nothing in the bar looks bigger or smaller than the rest. */
body .jm-header .jm-header-cta, body .jm-header .jm-cart { min-height: 44px; padding: 0 20px; font: 500 12px/1 var(--jm-text); letter-spacing: .14em; text-transform: uppercase; transform: none; }
body .jm-header .jm-header-cta { background: var(--jm-clay, #af522a); border: 1px solid var(--jm-clay, #af522a); color: #fff !important; }
body .jm-header .jm-header-cta:hover { background: var(--jm-ink, #452d2a); border-color: var(--jm-ink, #452d2a); transform: none; }
body .jm-header .jm-cart { padding: 0 16px; gap: 8px; border-color: color-mix(in srgb, currentColor 45%, transparent); }
body .jm-header .jm-cart-count { letter-spacing: 0; }

/* Empty cart: the second and third buttons were pale text on the white card. */
body #app .jcart-empty .jm-btn-light { border-color: var(--jm-ink, #452d2a); color: var(--jm-ink, #452d2a); background: transparent; }
body #app .jcart-empty .jm-btn-light:hover { background: var(--jm-ink, #452d2a); color: var(--jm-paper, #f2e6d6); }
body #app .jcart-empty .jm-btn:not(.jm-btn-light) { background: var(--jm-ink, #452d2a); border-color: var(--jm-ink, #452d2a); color: var(--jm-paper, #f2e6d6); }
body #app .jcart-empty .jm-btn:not(.jm-btn-light):hover { background: var(--site-gold, #af522a); border-color: var(--site-gold, #af522a); color: #fff; }

/* Header "Shop now" (after the phone number): large screens only, same pill as Cart and Menu. */
.jm-header-shop { display: none; }
@media (min-width: 1200px) {
    body .jm-header .jm-header-shop { display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; border: 1px solid var(--site-gold, #af522a); border-radius: 999px; color: var(--site-gold, #af522a); font: 500 12px/1 var(--jm-text); letter-spacing: .14em; text-transform: uppercase; text-decoration: none; white-space: nowrap; }
    body .jm-header .jm-header-shop:hover { background: var(--site-gold, #af522a); color: #fff; }
    body .jm-header .jm-header-shop:focus-visible { outline: 2px solid var(--site-gold, #af522a); outline-offset: 3px; }
    .jm-has-hero .jm-header:not(.is-solid) .jm-header-shop { border-color: currentColor; color: inherit; }
}

/* Header "Short stays" (between the logo and Properties): a filled pill on every screen size. */
body .jm-header .jm-header-stays { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border: 1px solid var(--site-gold, #af522a); border-radius: 999px; background: var(--site-gold, #af522a); color: #fff !important; font: 500 12px/1 var(--jm-text); letter-spacing: .14em; text-transform: uppercase; text-decoration: none; white-space: nowrap; }
body .jm-header .jm-header-stays:hover { background: var(--jm-ink, #2a1d1b); border-color: var(--jm-ink, #2a1d1b); }
body .jm-header .jm-header-stays:focus-visible { outline: 2px solid var(--site-gold, #af522a); outline-offset: 3px; }
@media (max-width: 575px) { body .jm-header .jm-header-stays { min-height: 36px; padding: 0 12px; letter-spacing: .06em; font-size: 11px; } }
@media (max-width: 380px) { body .jm-header .jm-header-stays { padding: 0 9px; letter-spacing: 0; } }

/* ================================================================== client-first home (jmx) */
/* Hero: a normal photo (no pinned clay-line sequence), with service tabs and search. */
.jm-motion .jmx-hero { overflow: hidden; }
.jm-motion .jmx-hero .jm-hero-img, .jm-motion .jmx-hero .jm-hero-shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.jmx-hero { min-height: min(100svh, 860px); }
.jmx-hero .jm-hero-title { max-width: 18ch; }
.jmx-sub { max-width: 640px; margin: 0 0 22px; color: var(--jm-paper); font: 400 clamp(15px, 1.5vw, 19px)/1.5 var(--jm-text); }
.jmx-search { max-width: 820px; background: rgba(28, 18, 16, .55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 1px solid rgba(242, 230, 214, .25); border-radius: 18px; padding: 8px; }
.jmx-tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; padding-bottom: 6px; }
.jmx-tabs::-webkit-scrollbar { display: none; }
.jmx-tabs button { flex: none; border: 0; border-radius: 999px; background: transparent; color: var(--jm-paper); padding: 9px 14px; font: 500 12px/1 var(--jm-text); letter-spacing: .1em; text-transform: uppercase; cursor: pointer; white-space: nowrap; }
.jmx-tabs button[aria-selected="true"] { background: var(--jm-paper); color: var(--jm-ink); }
.jmx-tabs button:focus-visible { outline: 2px solid var(--jm-clay-2); outline-offset: 2px; }
.jmx-panel { display: flex; gap: 6px; background: var(--jm-paper); border-radius: 12px; padding: 6px; }
.jmx-panel[hidden] { display: none; }
.jmx-panel input[type=search], .jmx-panel select { min-width: 0; border: 0; background: transparent; color: var(--jm-ink); font: 400 16px/1.2 var(--jm-text); padding: 12px 12px; }
.jmx-panel input[type=search] { flex: 1; }
.jmx-panel input::placeholder { color: rgba(69, 45, 42, .55); }
.jmx-panel select { border-left: 1px solid rgba(69, 45, 42, .2); }
.jmx-panel button, .jmx-panel-move a { flex: none; border: 0; border-radius: 9px; background: var(--jm-clay); color: #fff; padding: 0 22px; min-height: 46px; font: 600 13px/1 var(--jm-text); letter-spacing: .08em; text-transform: uppercase; cursor: pointer; display: inline-flex; align-items: center; text-decoration: none; }
.jmx-panel button:hover, .jmx-panel-move a:hover { background: var(--jm-ink); color: #fff; }
.jmx-panel-move { align-items: center; justify-content: space-between; flex-wrap: wrap; }
.jmx-panel-move p { margin: 0 8px; color: var(--jm-ink); font: 400 15px/1.4 var(--jm-text); flex: 1 1 240px; }
.jmx-paths { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.jmx-path { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid rgba(242, 230, 214, .7); background: transparent; color: var(--jm-paper); font: 500 13px/1.2 var(--jm-text); text-decoration: none; cursor: pointer; }
.jmx-path:hover { background: var(--jm-paper); color: var(--jm-ink); text-decoration: none; }
.jmx-path-main { background: var(--jm-clay); border-color: var(--jm-clay); color: #fff; font-weight: 600; }
.jmx-path-ghost { border-style: dashed; }
@media (max-width: 575px) {
    .jmx-panel { flex-wrap: wrap; }
    .jmx-panel input[type=search] { flex: 1 1 100%; }
    .jmx-panel select { border-left: 0; flex: 1; }
    .jmx-panel button { flex: 1; justify-content: center; }
    .jmx-path { flex: 1 1 100%; justify-content: center; }
}

/* Shared section heads */
.jmx section, .jmx > section { scroll-margin-top: calc(var(--jm-header, 80px) + 10px); }
.jmx-listings, .jmx-services, .jmx-safe, .jmx-reviews, .jmx-app { padding: clamp(48px, 7vw, 96px) var(--jm-gutter); background: var(--jm-paper); position: relative; z-index: 1; }
.jmx-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 18px; flex-wrap: wrap; margin-bottom: 26px; }
.jmx-title { margin: 0; font: 500 clamp(28px, 3.6vw, 52px)/1.02 var(--jm-display); font-stretch: 125%; text-transform: uppercase; color: var(--jm-ink); }

/* Trust strip */
.jmx-trust { position: relative; z-index: 1; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; padding: 18px var(--jm-gutter); background: var(--jm-ink); color: var(--jm-paper); font: 500 13px/1.3 var(--jm-text); letter-spacing: .04em; }
.jmx-trust span { display: inline-flex; align-items: center; gap: 8px; }
.jmx-trust svg { width: 20px; height: 20px; color: var(--jm-clay-2); flex: none; }

/* Listings */
.jmx-counts { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.jmx-counts li { border: 1px solid rgba(69, 45, 42, .2); border-radius: 999px; padding: 8px 14px; font: 400 13px/1 var(--jm-text); color: var(--jm-ink); }
.jmx-counts b { font-weight: 700; }
.jmx-ltabs { display: flex; gap: 8px; margin-bottom: 22px; overflow-x: auto; scrollbar-width: none; }
.jmx-ltabs button { flex: none; border: 1px solid var(--jm-ink); border-radius: 999px; background: transparent; color: var(--jm-ink); padding: 10px 16px; font: 500 12px/1 var(--jm-text); letter-spacing: .1em; text-transform: uppercase; cursor: pointer; }
.jmx-ltabs button span { opacity: .6; margin-left: 4px; }
.jmx-ltabs button[aria-selected="true"] { background: var(--jm-ink); color: var(--jm-paper); }
.jmx-lpanel[hidden] { display: none; }
.jmx-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px 18px; margin-bottom: 26px; }
@media (max-width: 1100px) { .jmx-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 767px) { .jmx-grid { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 74%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; margin-right: calc(-1 * var(--jm-gutter)); padding-right: var(--jm-gutter); } .jmx-card { scroll-snap-align: start; } }
.jmx-card { display: flex; flex-direction: column; gap: 4px; color: var(--jm-ink); text-decoration: none; }
.jmx-card:hover { text-decoration: none; color: var(--jm-ink); }
.jmx-card-img { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden; background: var(--jm-paper-2); margin-bottom: 8px; }
.jmx-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.jmx-card:hover .jmx-card-img img { transform: scale(1.04); }
.jmx-card-img em { position: absolute; top: 10px; left: 10px; background: var(--jm-paper); color: var(--jm-ink); border-radius: 999px; padding: 4px 10px; font: 600 11px/1.2 var(--jm-text); font-style: normal; letter-spacing: .04em; }
.jmx-card-meta { font: 500 11px/1.3 var(--jm-text); letter-spacing: .1em; text-transform: uppercase; opacity: .7; }
.jmx-card-name { font: 600 16px/1.3 var(--jm-text); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.jmx-card-price { font: 700 15px/1.3 var(--jm-text); color: var(--jm-clay); }

/* Six service cards */
.jmx-services { background: var(--jm-paper-2); }
.jmx-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 991px) { .jmx-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 575px) { .jmx-cards { grid-template-columns: 1fr; } }
.jmx-svc { display: flex; flex-direction: column; gap: 8px; padding: 22px; border-radius: 18px; background: #fff; color: var(--jm-ink); text-decoration: none; border: 1px solid rgba(69, 45, 42, .1); transition: transform .2s, box-shadow .2s; }
.jmx-svc:hover { text-decoration: none; color: var(--jm-ink); transform: translateY(-3px); box-shadow: 0 14px 30px rgba(69, 45, 42, .12); }
.jmx-svc-ico { width: 48px; height: 48px; border-radius: 14px; background: rgba(175, 82, 42, .12); color: var(--jm-clay); display: flex; align-items: center; justify-content: center; }
.jmx-svc-ico svg { width: 26px; height: 26px; }
.jmx-svc-title { font: 700 19px/1.25 var(--jm-text); margin-top: 6px; }
.jmx-svc-text { font: 400 14.5px/1.5 var(--jm-text); opacity: .8; flex: 1; }
.jmx-svc-cta { font: 600 13px/1.2 var(--jm-text); letter-spacing: .06em; text-transform: uppercase; color: var(--jm-clay); margin-top: 6px; }

/* Safe deal */
.jmx-safe-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid rgba(69, 45, 42, .2); }
@media (max-width: 991px) { .jmx-safe-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 575px) { .jmx-safe-list { grid-template-columns: 1fr; } }
.jmx-safe-list a { display: flex; flex-direction: column; gap: 6px; padding: 22px 18px 22px 0; color: var(--jm-ink); text-decoration: none; border-bottom: 1px solid rgba(69, 45, 42, .2); height: 100%; }
.jmx-safe-list a:hover { color: var(--jm-clay); text-decoration: none; }
.jmx-safe-list b { font: 500 13px/1 var(--jm-text); color: var(--jm-clay); letter-spacing: .1em; }
.jmx-safe-t { font: 700 18px/1.25 var(--jm-text); }
.jmx-safe-x { font: 400 14.5px/1.5 var(--jm-text); opacity: .8; }

/* App strip */
.jmx-app { display: flex; justify-content: space-between; align-items: center; gap: 22px; flex-wrap: wrap; background: var(--jm-ink); color: var(--jm-paper); }
.jmx-app .jmx-title { color: var(--jm-paper); margin-bottom: 8px; }
.jmx-app p { margin: 0; max-width: 620px; }
.jmx-play { display: inline-flex; align-items: center; min-height: 52px; padding: 0 24px; border-radius: 12px; background: var(--jm-paper); color: var(--jm-ink); font: 600 14px/1 var(--jm-text); text-decoration: none; }
.jmx-play:hover { background: #fff; color: var(--jm-ink); text-decoration: none; }

/* Floating WhatsApp (bottom left, so it never covers "Tell us what you need" on the right) */
.jmx-wa { position: fixed; z-index: 1018; left: max(16px, env(safe-area-inset-left)); bottom: calc(max(16px, env(safe-area-inset-bottom)) + 56px); display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 16px 0 12px; border-radius: 999px; background: #25d366; color: #fff !important; font: 600 14px/1 var(--jm-text, Arial); text-decoration: none; box-shadow: 0 8px 22px rgba(0, 0, 0, .25); }
.jmx-wa svg { width: 26px; height: 26px; }
.jmx-wa:hover { background: #1ebe5b; text-decoration: none; }
@media (max-width: 575px) { .jmx-wa span { display: none; } .jmx-wa { padding: 0; width: 52px; justify-content: center; } }
body.jm-menu-open .jmx-wa, body:has(dialog[open]) .jmx-wa { display: none; }
body:has(.jm-product-bar) .jmx-wa { bottom: calc(max(16px, env(safe-area-inset-bottom)) + 140px); }

/* Tap-to-call in the header on phones and tablets (the number itself shows on large screens) */
.jmx-call { display: none; }
@media (max-width: 991px) { .jmx-call { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid currentColor; color: inherit; } .jmx-call svg { width: 20px; height: 20px; } }

/* ------------------------------------------------------------------ home: reviews, scrolling and animation */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.jmx-reviews { background: var(--jm-paper); }
.jmx-rating { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; color: var(--jm-ink); }
.jmx-rating b { font: 600 clamp(40px, 5vw, 64px)/1 var(--jm-display); font-stretch: 125%; }
.jmx-rating small { font: 400 14px/1.3 var(--jm-text); opacity: .75; }
.jmx-stars { --r: 5; position: relative; display: inline-block; font-size: 18px; letter-spacing: 2px; line-height: 1; color: rgba(69, 45, 42, .2); }
.jmx-stars::before { content: '★★★★★'; position: absolute; left: 0; top: 0; width: calc(var(--r) / 5 * 100%); overflow: hidden; color: #f5a623; white-space: nowrap; }
.jmx-reviews-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 991px) { .jmx-reviews-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 575px) { .jmx-reviews-grid { grid-template-columns: 1fr; } }
.jmx-review { margin: 0; display: flex; flex-direction: column; gap: 14px; padding: 24px; border-radius: 18px; background: #fff; border: 1px solid rgba(69, 45, 42, .1); color: var(--jm-ink); }
.jmx-review blockquote { margin: 0; font: 400 17px/1.5 var(--jm-text); flex: 1; }
.jmx-review figcaption { display: flex; align-items: center; gap: 12px; }
.jmx-review figcaption small { display: block; opacity: .7; font-size: 12.5px; }
.jmx-review-av { width: 40px; height: 40px; border-radius: 50%; background: var(--jm-clay); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; flex: none; }
.jmx-review-cta { background: var(--jm-ink); color: var(--jm-paper); border: 0; }
.jmx-review-cta b { font: 600 22px/1.2 var(--jm-display); font-stretch: 125%; text-transform: uppercase; }
.jmx-review-cta p { margin: 0; opacity: .85; }
.jmx-review-cta .jm-btn { border-color: var(--jm-paper); color: var(--jm-paper); align-self: flex-start; }
.jmx-review-cta .jm-btn:hover { background: var(--jm-paper); color: var(--jm-ink); }
.jmx-review-links { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 22px 0 0; font: 500 13px/1.4 var(--jm-text); }
.jmx-review-links a { color: var(--jm-ink); text-decoration: underline; text-underline-offset: 4px; }

/* Reveal on scroll (only once the script has started, so content never hides without JavaScript) */
.jmx-anim .jmx-rv { opacity: 0; transform: translate3d(0, 26px, 0); transition: opacity .7s cubic-bezier(.2, .7, .2, 1) var(--d, 0ms), transform .7s cubic-bezier(.2, .7, .2, 1) var(--d, 0ms); }
.jmx-anim .jmx-rv.is-in { opacity: 1; transform: none; }
.jmx-anim .jmx-svc.jmx-rv.is-in:hover { transform: translateY(-3px); }
.jmx-fade { animation: jmx-fade .45s ease both; }
@keyframes jmx-fade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
/* Hero content rises in on load */
.jmx-hero .jmx-sub, .jmx-hero .jmx-search, .jmx-hero .jmx-paths { animation: jmx-rise .9s cubic-bezier(.2, .7, .2, 1) both; }
.jmx-hero .jmx-sub { animation-delay: .35s; }
.jmx-hero .jmx-search { animation-delay: .5s; }
.jmx-hero .jmx-paths { animation-delay: .65s; }
@keyframes jmx-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.jmx-hero .jm-hero-img { will-change: transform; }
.jmx-card-img img, .jmx-svc, .jmx-review { transition: transform .35s ease, box-shadow .35s ease; }
.jmx-review:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(69, 45, 42, .12); }
@media (prefers-reduced-motion: reduce) {
    .jmx-hero .jmx-sub, .jmx-hero .jmx-search, .jmx-hero .jmx-paths, .jmx-fade { animation: none; }
    .jmx-anim .jmx-rv { opacity: 1; transform: none; transition: none; }
}

/* The theme clears every section background (body #app section … !important) and pads every home section:
   give the new home bands their own colours and spacing back. */
body #app .jm-home .jmx-trust { background-color: var(--jm-ink) !important; color: var(--jm-paper); padding: 16px var(--jm-gutter); }
body #app .jm-home .jmx-services { background-color: var(--jm-paper-2) !important; }
body #app .jm-home .jmx-app { background-color: var(--jm-ink) !important; color: var(--jm-paper); }
body #app .jm-home .jmx-listings, body #app .jm-home .jmx-safe, body #app .jm-home .jmx-reviews { background-color: var(--jm-paper) !important; }
.jm-home .jmx-listings, .jm-home .jmx-services, .jm-home .jmx-safe, .jm-home .jmx-reviews, .jm-home .jmx-app { padding: clamp(48px, 7vw, 96px) var(--jm-gutter); }
.jm-home .jmx-trust span { color: var(--jm-paper); }
@media (max-width: 575px) { body #app .jm-home .jmx-trust { justify-content: flex-start; gap: 10px 18px; font-size: 12.5px; } }

/* ================================================================== clean-up pass (apple-design principles) */
/* Header buttons: one filled primary ("List free"); "Short stays" and "Shop now" share the outline style. */
body .jm-header .jm-header-stays { background: transparent; color: inherit !important; border-color: currentColor; }
body .jm-header .jm-header-stays:hover { background: var(--jm-clay); border-color: var(--jm-clay); color: #fff !important; }
.jm-has-hero .jm-header:not(.is-solid) .jm-header-stays { border-color: rgba(242, 230, 214, .7); }
/* Frosted header once scrolled: content shows softly underneath instead of an opaque strip. */
.jm-header.is-solid, body:not(.jm-has-hero) .jm-header { background: rgba(242, 230, 214, .82); -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%); }
@media (prefers-reduced-transparency: reduce) { .jm-header.is-solid, body:not(.jm-has-hero) .jm-header { background: var(--jm-paper); -webkit-backdrop-filter: none; backdrop-filter: none; } }

/* Floating buttons, right side only: WhatsApp (round) above "Tell us what you need", back-to-top below.
   The left corner stays for the privacy choices pill. */
.jmx-wa { left: auto; right: max(16px, env(safe-area-inset-right)); bottom: calc(max(16px, env(safe-area-inset-bottom)) + 112px); width: 52px; height: 52px; min-height: 52px; padding: 0; justify-content: center; }
.jmx-wa span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
body:has(.jm-product-bar) .jmx-wa { bottom: calc(max(16px, env(safe-area-inset-bottom)) + 196px); }
body .jm-action-footer a.cd-top { width: 44px; height: 44px; border-radius: 50%; }

/* Instant press feedback (on pointer-down, not on release). */
.jm-btn, .jmx-path, .jmx-panel button, .jmx-tabs button, .jmx-ltabs button, .jm-header-cta, .jm-header-stays, .jm-header-shop, .jmx-wa, .jm-looking-fab, .jmx-play { transition: transform 100ms ease-out, background-color .2s, color .2s, border-color .2s; }
.jm-btn:active, .jmx-path:active, .jmx-panel button:active, .jmx-tabs button:active, .jmx-ltabs button:active, .jm-header-cta:active, .jm-header-stays:active, .jm-header-shop:active, .jmx-wa:active, .jm-looking-fab:active, .jmx-play:active { transform: scale(.97); }
.jmx-card:active, .jmx-svc:active, .jmx-review:active { transform: scale(.985); transition-duration: 100ms; }

/* Typography: large display text gets slightly negative tracking; small labels keep their positive tracking. */
.jmx-title, .jm-hero-title, .jm-display { letter-spacing: -.01em; }
.jmx-sub, .jmx-svc-text, .jmx-safe-x, .jmx-review blockquote { letter-spacing: 0; }
@media (prefers-reduced-motion: reduce) { .jm-btn:active, .jmx-path:active, .jmx-card:active, .jmx-svc:active { transform: none; } }

/* ------------------------------------------------------------------ home: closing panel, guides head */
body #app .jm-home .jmx-close { background-color: var(--jm-ink) !important; color: var(--jm-paper); }
.jm-home .jmx-close { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); padding: clamp(56px, 8vw, 110px) var(--jm-gutter); }
@media (max-width: 991px) { .jm-home .jmx-close { grid-template-columns: 1fr; } }
.jmx-close .jmx-title { color: var(--jm-paper); margin: 6px 0 16px; }
.jmx-close .jm-eyebrow { color: var(--jm-clay-2); }
.jmx-close p { color: rgba(242, 230, 214, .85); max-width: 60ch; }
.jmx-close-lead { font-size: clamp(16px, 1.5vw, 19px); color: var(--jm-paper) !important; }
.jmx-close-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0; }
.jmx-close-btn { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid rgba(242, 230, 214, .6); color: var(--jm-paper) !important; font: 500 13px/1.2 var(--jm-text); text-decoration: none; transition: transform 100ms ease-out, background-color .2s; }
.jmx-close-btn:hover { background: var(--jm-paper); color: var(--jm-ink) !important; text-decoration: none; }
.jmx-close-btn:active { transform: scale(.97); }
.jmx-close-wa { background: #25d366; border-color: #25d366; color: #fff !important; font-weight: 600; }
.jmx-close-wa:hover { background: #1ebe5b; color: #fff !important; }
.jmx-offices { list-style: none; margin: 8px 0 18px; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.jmx-offices li { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border: 1px solid rgba(242, 230, 214, .2); border-radius: 12px; font-size: 13.5px; }
.jmx-offices b { color: var(--jm-paper); }
.jmx-offices span { color: rgba(242, 230, 214, .75); }
.jmx-close .jm-link { color: var(--jm-paper); }
.jmx-close-form { background: var(--jm-paper); color: var(--jm-ink); border-radius: 20px; padding: clamp(18px, 3vw, 32px); align-self: start; }
.jmx-close-form-title { margin: 0 0 12px; font: 600 18px/1.3 var(--jm-text); color: var(--jm-ink) !important; }
.jmx-close-form p { color: inherit; }
.jm-home .jm-journal .jmx-head { margin-bottom: 22px; }
.jm-home .jm-journal .jmx-head .jm-btn { align-self: flex-end; }
.jm-home .jm-hero-title { letter-spacing: -.01em; }

/* ------------------------------------------------------------------ trust strip: four columns, own icon each */
body #app .jm-home .jmx-trust { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; padding: 0 var(--jm-gutter); font: inherit; letter-spacing: 0; }
.jmx-trust-item { display: flex; align-items: center; gap: 14px; padding: 22px 20px; border-left: 1px solid rgba(242, 230, 214, .14); }
.jmx-trust-item:first-child { border-left: 0; padding-left: 0; }
.jmx-trust-ico { flex: none; width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: rgba(192, 109, 48, .18); color: var(--jm-clay-2); }
.jmx-trust-ico svg { width: 22px; height: 22px; }
.jmx-trust-txt { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.jmx-trust-txt b { color: var(--jm-paper); font: 600 15px/1.25 var(--jm-text); letter-spacing: 0; }
.jmx-trust-txt small { color: rgba(242, 230, 214, .68); font: 400 13px/1.4 var(--jm-text); letter-spacing: 0; }
@media (max-width: 991px) {
    body #app .jm-home .jmx-trust { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .jmx-trust-item:nth-child(odd) { border-left: 0; padding-left: 0; }
    .jmx-trust-item:nth-child(n + 3) { border-top: 1px solid rgba(242, 230, 214, .14); }
}
@media (max-width: 480px) {
    body #app .jm-home .jmx-trust { grid-template-columns: 1fr; }
    .jmx-trust-item { border-left: 0 !important; padding: 16px 0; }
    .jmx-trust-item + .jmx-trust-item { border-top: 1px solid rgba(242, 230, 214, .14); }
}

/* ------------------------------------------------------------------ closing panel: one clean form card */
.jmx-close-lead { margin-bottom: 4px; }
.jmx-close-actions { gap: 10px; }
.jmx-close-actions .jmx-close-btn { min-height: 48px; padding: 0 20px; font-weight: 600; }
.jmx-close-main { background: var(--jm-clay); border-color: var(--jm-clay); color: #fff !important; cursor: pointer; }
.jmx-close-main:hover { background: var(--jm-paper); border-color: var(--jm-paper); color: var(--jm-ink) !important; }
.jmx-offices li { background: rgba(242, 230, 214, .05); }
.jmx-close-form { box-shadow: 0 24px 60px -30px rgba(0, 0, 0, .6); }
.jmx-close-form-title { margin-bottom: 2px !important; font-size: 20px !important; }
.jmx-close-form-hint { margin: 0 0 16px !important; font-size: 13.5px; opacity: .7; }
/* The contact-form block brings its own "Contact information" column and heading: both repeat what is beside it. */
.jmx-close-form #contact > .row { margin: 0; display: block; }
.jmx-close-form #contact > .row > [class*="col-"]:first-child { display: none; }
.jmx-close-form #contact > .row > [class*="col-"] { width: 100%; max-width: 100%; flex: none; padding: 0; }
.jmx-close-form #contact .wrapper { padding: 0; margin: 0; background: none; box-shadow: none; border: 0; }
.jmx-close-form #contact .wrapper > .h2, .jmx-close-form #contact .wrapper > h2 { display: none; }
.jmx-close-form .contact-form-row { margin: 0 -6px; }
.jmx-close-form .contact-form-row > [class*="col-"] { padding: 0 6px; }
.jmx-close-form .form-group { margin-bottom: 12px; }
.jmx-close-form .form-control { height: auto; min-height: 48px; padding: 12px 14px; border: 1px solid rgba(69, 45, 42, .22); border-radius: 12px; background: #fff; color: var(--jm-ink); font: 400 15px/1.4 var(--jm-text); box-shadow: none; transition: border-color .2s, box-shadow .2s; }
.jmx-close-form textarea.form-control { min-height: 110px; resize: vertical; }
.jmx-close-form .form-control::placeholder { color: rgba(69, 45, 42, .5); }
.jmx-close-form .form-control:focus { border-color: var(--jm-clay); box-shadow: 0 0 0 3px rgba(175, 82, 42, .15); outline: 0; }
.jmx-close-form .form-actions { display: flex; flex-direction: column; align-items: stretch; gap: 10px; margin-top: 6px !important; }
.jmx-close-form .btn-special { width: 100%; min-height: 50px; border: 0; border-radius: 12px; background: var(--jm-ink); color: var(--jm-paper); font: 600 15px/1 var(--jm-text); letter-spacing: 0; text-transform: none; cursor: pointer; transition: transform 100ms ease-out, background-color .2s; }
.jmx-close-form .btn-special:hover { background: var(--jm-clay); color: #fff; }
.jmx-close-form .btn-special:active { transform: scale(.98); }
.jmx-close-form .ld-note { display: flex; gap: 8px; align-items: flex-start; font-size: 12.5px; line-height: 1.4; color: rgba(69, 45, 42, .75); }
.jmx-close-form .ld-note input { margin-top: 2px; }

/* ------------------------------------------------------------------ reviews: summary card + review cards */
.jmx-rv-layout { display: grid; grid-template-columns: minmax(260px, 340px) minmax(0, 1fr); gap: 20px; align-items: start; }
@media (max-width: 991px) { .jmx-rv-layout { grid-template-columns: 1fr; } }
.jmx-rv-summary { display: grid; gap: 18px; padding: 24px; border-radius: 20px; background: var(--jm-ink); color: var(--jm-paper); }
.jmx-rv-score { display: grid; justify-items: start; gap: 6px; }
.jmx-rv-g { width: 34px; height: 34px; border-radius: 50%; background: #fff; display: flex; align-items: center; justify-content: center; }
.jmx-rv-g svg { width: 20px; height: 20px; }
.jmx-rv-score b { font: 700 56px/1 var(--jm-display); letter-spacing: -.02em; color: var(--jm-paper); }
.jmx-rv-score small { color: rgba(242, 230, 214, .7); font-size: 13.5px; }
.jmx-stars-lg { font-size: 24px; letter-spacing: 3px; color: rgba(242, 230, 214, .25); }
.jmx-rv-places { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.jmx-rv-places li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; background: rgba(242, 230, 214, .07); }
.jmx-rv-places li > span { display: flex; flex-direction: column; gap: 2px; }
.jmx-rv-places b { color: var(--jm-paper); font-size: 15px; }
.jmx-rv-places em { font-style: normal; font-size: 12.5px; color: #f5c56a; }
.jmx-rv-places a { color: var(--jm-paper); font-size: 13px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.jmx-rv-write { display: grid; gap: 8px; padding-top: 14px; border-top: 1px solid rgba(242, 230, 214, .14); }
.jmx-rv-write p { margin: 0 0 4px; color: rgba(242, 230, 214, .8); font-size: 13.5px; line-height: 1.5; }
.jmx-rv-write-btn { display: flex; align-items: center; justify-content: center; min-height: 44px; border-radius: 12px; background: var(--jm-paper); color: var(--jm-ink) !important; font: 600 14px/1 var(--jm-text); text-decoration: none; transition: transform 100ms ease-out, background-color .2s; }
.jmx-rv-write-btn:hover { background: #fff; text-decoration: none; }
.jmx-rv-write-btn:active { transform: scale(.98); }
.jmx-rv-write-btn + .jmx-rv-write-btn { background: transparent; color: var(--jm-paper) !important; border: 1px solid rgba(242, 230, 214, .4); }
.jmx-rv-list { min-width: 0; }
.jmx-rv-track { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(280px, calc(50% - 8px)); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px; }
.jmx-rv-track::-webkit-scrollbar { display: none; }
@media (max-width: 575px) { .jmx-rv-track { grid-auto-columns: 86%; } }
.jmx-rv-card { position: relative; margin: 0; scroll-snap-align: start; display: flex; flex-direction: column; gap: 14px; padding: 26px 24px 22px; border-radius: 20px; background: #fff; border: 1px solid rgba(69, 45, 42, .1); color: var(--jm-ink); min-height: 100%; }
.jmx-rv-quote { position: absolute; top: 6px; right: 18px; font: 700 84px/1 Georgia, serif; color: rgba(175, 82, 42, .14); pointer-events: none; }
.jmx-rv-card blockquote { margin: 0; flex: 1; font: 400 18px/1.55 var(--jm-text); }
.jmx-rv-card-mini blockquote { font-size: 15px; color: rgba(69, 45, 42, .7); }
.jmx-rv-card figcaption { display: flex; align-items: center; gap: 12px; padding-top: 14px; border-top: 1px solid rgba(69, 45, 42, .08); }
.jmx-rv-card figcaption > span:nth-child(2) { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.jmx-rv-card figcaption b { font-size: 15px; }
.jmx-rv-card figcaption small { font-size: 12.5px; opacity: .65; }
.jmx-rv-av { width: 42px; height: 42px; border-radius: 50%; flex: none; object-fit: cover; background: var(--jm-clay); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; }
.jmx-rv-src svg { width: 18px; height: 18px; display: block; }
.jmx-rv-nav { display: flex; gap: 8px; justify-content: flex-end; margin-top: 12px; }
.jmx-rv-nav button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--jm-ink); background: transparent; color: var(--jm-ink); font-size: 18px; cursor: pointer; transition: transform 100ms ease-out, background-color .2s; }
.jmx-rv-nav button:hover { background: var(--jm-ink); color: var(--jm-paper); }
.jmx-rv-nav button:active { transform: scale(.95); }

/* Phones: bottom bar and comfortable tap targets */
.jmx-bottombar { display: none; }
@media (max-width: 768px) {
    body:has(.jmx-bottombar) { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
    .jmx-bottombar { position: fixed; z-index: 1017; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); padding-bottom: env(safe-area-inset-bottom); background: #fff; box-shadow: 0 -1px 0 rgba(0, 0, 0, .08), 0 -8px 24px rgba(0, 0, 0, .06); }
    .jmx-bottombar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 60px; color: #5b6470; font-size: 11.5px; font-weight: 600; text-decoration: none; transition: color .2s; }
    .jmx-bottombar a:active { background: rgba(0, 0, 0, .04); }
    .jmx-bottombar a.on { color: var(--primary-color, #0b5ed7); }
    .jmx-bottombar a.talk { color: #128c4b; }
    .jmx-bottombar svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
    body:has(.jmx-bottombar) .jmx-wa { display: none; }
    body:has(.jmx-bottombar) .jm-action-footer, body:has(.jmx-bottombar) .cd-top { bottom: calc(76px + env(safe-area-inset-bottom)); }
    body:has(dialog[open]) .jmx-bottombar { display: none; }
    input:not([type=checkbox]):not([type=radio]), select, textarea { font-size: 16px; }
    select.form-control, .jch-filter-btn, .jch-filters-x, .js-site-notice-agree, .ae-anno-announcement__button { min-height: 44px; }
    .ae-anno-announcement__arrow { min-width: 44px; min-height: 44px; }
    .jm-logo, .jm-header-stays { display: inline-flex; align-items: center; min-height: 44px; }
    footer a, .jm-footer a { display: inline-flex; align-items: center; min-height: 44px; }
}

@media (max-width: 768px) {
    body:has(.jmx-bottombar) #jcp-consent-settings { bottom: calc(74px + env(safe-area-inset-bottom)) !important; }
    body:has(.jmx-bottombar) .jm-looking-fab { bottom: calc(74px + env(safe-area-inset-bottom)); }
    .ae-anno-announcement-wrapper { padding: 6px 12px; }
    .ae-anno-announcement-wrapper .ae-anno-announcement__controls { display: none; }
    .ae-anno-announcement-wrapper .ae-anno-announcement__content { font-size: 13px; line-height: 1.35; }
}
