/* sales.ekmaryachting.com — site styles.
   Brand: Ekmar orange and navy. Type: Archivo (self-hosted), wide cut for headings. */

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("../fonts/archivo-latin-ext-wdth-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("../fonts/archivo-latin-wdth-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --navy: #14263d;
  --navy-soft: #24405f;
  --ink: #1a252f;
  --slate: #55657a;
  --orange: #ff7700;
  --orange-deep: #b04e00;
  --mist: #f1f4f7;
  --line: #d5dde6;
  --white: #ffffff;
  --whatsapp: #075e54;
  --amber-bg: #fff1d6;
  --error: #a4161a;
  --ok: #1d6b45;
  --radius: 4px;
  --wrap: 1240px;
  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--white);
  font-variant-numeric: tabular-nums;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--orange-deep); text-underline-offset: 0.15em; }
a:hover { color: var(--navy); }
h1, h2, h3 { color: var(--navy); line-height: 1.15; margin: 0; }
h1 { font-size: clamp(1.9rem, 1.2rem + 2.6vw, 3.1rem); font-weight: 650; font-stretch: 122%; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.35rem, 1.1rem + 0.9vw, 1.75rem); font-weight: 650; font-stretch: 115%; }
h3 { font-size: 1.05rem; font-weight: 650; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }

:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1.25rem; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}
.skip-link {
  position: absolute; left: 0.5rem; top: -4rem; z-index: 50;
  background: var(--white); color: var(--navy); padding: 0.6rem 1rem; border-radius: var(--radius);
}
.skip-link:focus { top: 0.5rem; }

/* ---- Preview notice ---- */
.sample-notice {
  margin: 0; padding: 0.45rem 1.25rem; text-align: center;
  background: var(--amber-bg); color: #5c3a00; font-size: 0.875rem;
}

/* ---- Header ---- */
.site-header { background: var(--navy); color: var(--white); border-bottom: 3px solid var(--orange); }
.site-header-inner { display: flex; align-items: center; gap: 0.35rem 1.5rem; min-height: 4.25rem; flex-wrap: wrap; padding-top: 0.5rem; padding-bottom: 0.5rem; }
.brand { color: var(--white); text-decoration: none; display: flex; flex-direction: column; line-height: 1.1; margin-right: auto; }
.brand:hover { color: var(--white); }
.brand--logo { flex-direction: row; align-items: center; gap: 0.75rem; }
.brand-logo { height: 5rem; width: auto; max-width: 17rem; object-fit: contain; }
.brand-name { font-size: 1.3rem; font-weight: 700; font-stretch: 125%; }
.brand-section { font-size: 0.85rem; color: #c3d0de; }
.site-nav { display: flex; gap: 1.5rem; }
.site-nav a { color: var(--white); text-decoration: none; padding: 0.4rem 0; border-bottom: 2px solid transparent; white-space: nowrap; }
.site-nav a:hover, .site-nav a[aria-current="page"] { border-bottom-color: var(--orange); color: var(--white); }
/* € / $ switch next to the prices (yacht page and list), on a light background. */
.currency { display: inline-flex; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.currency-btn {
  font: inherit; font-weight: 600; min-width: 2.6rem; min-height: 2.25rem; padding: 0.2rem 0.6rem;
  background: var(--white); color: var(--navy); border: 0; cursor: pointer;
}
.currency-btn + .currency-btn { border-left: 1px solid var(--line); }
.currency-btn:hover { background: var(--mist); }
.currency-btn[aria-pressed="true"] { background: var(--navy); color: var(--white); }
.buy .currency { margin: 0; }
/* Yacht page: € / $ switch and the share buttons in one row (the share boxes wrap below on narrow screens). */
.buy-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1.1rem; margin: -0.4rem 0 1.1rem; }
.buy-tools:empty { display: none; }
.share { display: inline-flex; flex-wrap: wrap; gap: 0.35rem; }
.share-btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 2.25rem; height: 2.25rem; border: 0; border-radius: var(--radius);
  background: #5d6670; color: #fff; text-decoration: none; transition: background 0.15s;
}
/* Dark grey boxes with white icons; on hover / tap each takes its own colour. */
.share-btn:hover, .share-btn:focus-visible, .share-btn:active { color: #fff; }
.share-btn--whatsapp:hover, .share-btn--whatsapp:focus-visible { background: #25d366; }
.share-btn--facebook:hover, .share-btn--facebook:focus-visible { background: #1877f2; }
.share-btn--x:hover, .share-btn--x:focus-visible { background: #000; }
.share-btn--linkedin:hover, .share-btn--linkedin:focus-visible { background: #0a66c2; }
.share-btn--pinterest:hover, .share-btn--pinterest:focus-visible { background: #e60023; }
.share-btn--telegram:hover, .share-btn--telegram:focus-visible { background: #229ed9; }
.share-btn--mail:hover, .share-btn--mail:focus-visible { background: var(--navy); }
.share-btn--link:hover, .share-btn--link:focus-visible { background: var(--orange); }
.share-btn:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
.share-icon { width: 1.1rem; height: 1.1rem; fill: currentColor; }
/* "Link copied": a small note above the link box for two seconds. */
.share-done {
  position: absolute; bottom: calc(100% + 0.4rem); right: 0; white-space: nowrap; pointer-events: none;
  padding: 0.25rem 0.55rem; border-radius: 0.35rem; background: var(--navy); color: var(--white); font-size: 0.8rem; font-weight: 600;
  opacity: 0; transform: translateY(0.25rem); transition: opacity 0.2s, transform 0.2s;
}
.share-done:empty { display: none; }
.share-btn.is-copied { color: var(--white); background: var(--orange); }
.share-btn.is-copied .share-done { opacity: 1; transform: none; }
/* List page: € / $ and share buttons on the left, count and sort box on the right (PC);
   on phones the buttons get the first line and count + sort the second. */
.results-tools { display: flex; align-items: center; gap: 0.6rem 1.1rem; flex-wrap: wrap; }
.results-tools:empty { display: none; }
.results-bar .currency { margin: 0; }
.results-order { display: flex; align-items: center; gap: 0.6rem 1.25rem; margin-left: auto; min-width: 0; }
.results-order .results-count { white-space: nowrap; }
.results-order .sort-form { min-width: 0; }
.results-order .sort-form select { min-width: 0; max-width: 100%; }
@media (max-width: 640px) {
  .results-tools { flex-wrap: nowrap; }
  .results-order { flex-basis: 100%; justify-content: space-between; margin-left: 0; }
}
/* Small phones: slightly smaller boxes so € / $ and all six share buttons stay on one line. */
@media (max-width: 380px) {
  .results-tools, .buy-tools { flex-wrap: nowrap; gap: 0.5rem; }
  .results-tools .share, .buy-tools .share { flex-wrap: nowrap; gap: 0.25rem; }
  .results-tools .share-btn, .buy-tools .share-btn { width: 1.85rem; height: 1.85rem; }
  .results-tools .currency-btn, .buy-tools .currency-btn { min-width: 2rem; min-height: 1.85rem; padding: 0.15rem 0.4rem; }
  .results-order { gap: 0.5rem; }
}
html:not(.js) .currency { display: none; }

/* ---- Drawers: the menu button (visitors, PC and phones) and "Admin tools" (wrench, logged-in admins,
   on public pages and in the admin). Closed, only a tip sticks out from the right edge; one tap pulls
   out a long bar (the full drawer width) with a soft spring and opens the list above it.
   --tip = how much shows when closed, --intro = how much shows during the short intro. ---- */
.drawer {
  --drawer-w: 17rem; --tip: 3.15rem; --intro: 3.15rem;
  position: fixed; right: 0; bottom: calc(0.85rem + env(safe-area-inset-bottom)); z-index: 30; width: var(--drawer-w);
  transition: transform 0.55s cubic-bezier(0.34, 1.4, 0.64, 1), visibility 0.55s;
}
html.js .drawer:not([open]) { transform: translateX(calc(var(--drawer-w) - var(--tip))); }
html.js .drawer.is-intro:not([open]) { transform: translateX(calc(var(--drawer-w) - var(--intro))); }
/* "Once per visit" and already shown in this visit: the menu starts as a tip straight away. */
html.js.menu-intro-done .drawer.is-intro:not([open]) { transform: translateX(calc(var(--drawer-w) - var(--tip))); }
/* After a tap: the long bar slides out first; the list opens after the delay set in Site settings. */
html.js .drawer.drawer.is-sliding:not([open]) { transform: translateX(0); }
.drawer > summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 0.6rem;
  height: 3rem; padding: 0 1rem 0 0.95rem; border-radius: 14rem 0 0 14rem; font-weight: 650;
  background: var(--navy); color: var(--white);
  border: 2px solid var(--orange); border-right: 0;   /* Orange edge like the header line; open on the screen side. */
  box-shadow: 0 4px 14px rgba(20, 38, 61, 0.35); -webkit-tap-highlight-color: transparent;
}
.drawer > summary::-webkit-details-marker { display: none; }
.drawer > summary:hover { background: var(--navy-soft); }
.drawer > summary:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
.drawer-icon { flex: none; transition: transform 0.3s; }
.drawer-label { white-space: nowrap; }
/* While only the tip shows, the text fades out towards the screen edge instead of being cut. */
html.js .drawer:not([open]):not(.is-intro):not(.is-sliding):not(.is-greet) .drawer-label,
html.js.menu-intro-done .drawer:not([open]):not(.is-sliding):not(.is-greet) .drawer-label {
  -webkit-mask-image: linear-gradient(to right, #000 calc(var(--tip) - 3.6rem), transparent calc(var(--tip) - 2.65rem));
  mask-image: linear-gradient(to right, #000 calc(var(--tip) - 3.6rem), transparent calc(var(--tip) - 2.65rem));
}
.drawer-panel {
  position: absolute; right: 0.6rem; bottom: calc(100% + 0.6rem); width: calc(100% - 0.6rem);
  max-height: calc(100dvh - 7rem - var(--lift, 0rem)); overflow-y: auto;
  background: var(--navy); color: var(--white); border-radius: 0.75rem; padding: 0.5rem;
  box-shadow: 0 8px 28px rgba(10, 18, 30, 0.45);
}
.drawer[open] .drawer-panel { animation: drawer-panel-in 0.3s ease-out; }
@keyframes drawer-panel-in { from { opacity: 0; transform: translateY(0.6rem); } to { opacity: 1; transform: none; } }
/* Closing: the list goes down first; the bar slides back after the closing pause (Site settings). */
.drawer.is-closing .drawer-panel { animation: drawer-panel-out 0.25s ease-in forwards; pointer-events: none; }
@keyframes drawer-panel-out { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateY(0.8rem); } }
.drawer-panel a, .drawer-panel button.drawer-item {
  display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; width: 100%; min-height: 2.9rem;
  padding: 0.5rem 0.8rem; border-radius: 0.5rem; color: var(--white); text-decoration: none;
  font: inherit; font-size: 1.05rem; text-align: left; background: none; border: 0; cursor: pointer;
}
.drawer-panel a:hover, .drawer-panel a[aria-current="page"], .drawer-panel button.drawer-item:hover { background: var(--navy-soft); color: var(--white); }
.drawer-panel a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--orange); }
.drawer-panel hr { border: 0; border-top: 1px solid #33506f; margin: 0.4rem 0.5rem; }
.drawer-panel form { margin: 0; }
/* Visitor menu (PC and phones): the arrow and "Me…" show; the intro shows the whole word "Menu". */
.drawer--menu { --tip: 4.4rem; --intro: 7rem; }
.drawer--menu[open] .drawer-icon { transform: rotate(180deg); }
/* Admin tools (wrench): only the orange wrench shows. On public pages it sits just above the menu. */
.drawer--admin { z-index: 31; --drawer-w: 18rem; }
.drawer--admin .drawer-icon { color: var(--orange); }
.drawer--admin[open] .drawer-icon { transform: rotate(-20deg); }
.drawer--on-site { bottom: calc(4.75rem + env(safe-area-inset-bottom)); }
.drawer .count {
  display: inline-block; min-width: 1.4rem; text-align: center; background: var(--orange); color: var(--navy);
  border-radius: 1rem; font-size: 0.8rem; font-weight: 700; padding: 0 0.35rem;
}
/* Sub-menus slide in from the right inside the same box; the list slides out to the left. */
.drawer-panel--admin, .drawer-panel--views { display: flex; flex-direction: column; max-height: calc(100dvh - 8.5rem - var(--lift, 0rem)); overflow: hidden; }
.drawer-views { position: relative; overflow: hidden; flex: 0 1 auto; min-height: 0; }
.drawer-view { transition: transform 0.28s ease, visibility 0.28s; }
.drawer-view[data-view="main"] { overflow-y: auto; max-height: calc(100dvh - 14rem - var(--lift, 0rem)); }
.drawer-view:not([data-view="main"]) {
  position: absolute; inset: 0; overflow-y: auto; transform: translateX(100%); visibility: hidden;
}
.drawer-views.is-sub .drawer-view[data-view="main"] { transform: translateX(-100%); visibility: hidden; }
.drawer-view.is-current:not([data-view="main"]) { transform: translateX(0); visibility: visible; }
.drawer-open-end { display: inline-flex; align-items: center; gap: 0.6rem; color: #b8c6d6; }
.drawer-panel button.drawer-open.is-current-section { background: var(--navy-soft); box-shadow: inset 3px 0 0 var(--orange); }
.drawer-panel button.drawer-open.is-chosen, .drawer-panel button.drawer-open.is-chosen .drawer-open-end { color: var(--orange); }
.drawer-back {   /* The whole row is the Back button, like the rows that open a sub-menu. */
  display: flex; align-items: center; gap: 0.4rem; width: 100%; min-height: 2.9rem; padding: 0.3rem 0.8rem 0.3rem 0.5rem; text-align: left;
  background: none; border: 0; border-radius: 0.5rem; color: #b8c6d6; font: inherit; font-size: 0.95rem; cursor: pointer;
}
.drawer-back:hover, .drawer-back:focus-visible { background: var(--navy-soft); color: var(--white); }
.drawer-view-title { margin: 0.1rem 0.8rem 0.3rem; font-size: 0.8rem; font-weight: 700; color: var(--orange); }
.drawer-fixed { flex: none; }
.drawer-fixed hr { border: 0; border-top: 1px solid #33506f; margin: 0.4rem 0.5rem; }
.drawer-context span { display: inline-flex; align-items: center; gap: 0.55rem; }
.drawer-link-text { display: inline-flex; align-items: center; gap: 0.65rem; }
.drawer-panel .contact-icon, .drawer-panel .brand-icon { fill: #ffb066; }
.drawer-view-title--sub { margin-top: 0.7rem; }

/* ---- "Back to top" lift: a bar like the drawers, as long as its longest text. It peeks out above the
   drawers on long pages; a tap pulls it out ("Engage!"), the page rides up ("Warp speed…") and on arrival
   ("Dropping out of warp") it gives a small bounce, then slides away. Texts: Site settings. ---- */
.to-top {
  --tip: 3.15rem;
  position: fixed; right: 0; bottom: calc(4.75rem + env(safe-area-inset-bottom)); z-index: 29; width: max-content;
  display: flex; align-items: center; gap: 0.6rem; height: 3rem; padding: 0 1.4rem 0 0.95rem;
  border: 2px solid var(--orange); border-right: 0; border-radius: 14rem 0 0 14rem;
  background: var(--navy); color: var(--white); font: inherit; font-size: 0.9rem; font-weight: 600; text-align: left; cursor: pointer;
  box-shadow: 0 4px 14px rgba(20, 38, 61, 0.35); -webkit-tap-highlight-color: transparent;
  transform: translateX(calc(100% + 1rem)); visibility: hidden;
  transition: transform 0.6s cubic-bezier(0.34, 1.4, 0.64, 1), visibility 0.6s, bottom 0.45s ease;
  will-change: transform;   /* Keeps the bar on its own layer, so phones do not redraw it away mid-animation. */
}
/* During a ride all other drawers slide away (the bar drops to the lowest place, see drawer.js);
   at the top Menu comes back showing the whole word for a moment ("is-greet"). */
html.js.lift-riding .drawer.drawer:not([open]) { transform: translateX(calc(100% + 1rem)); visibility: hidden; }
html.js .drawer.drawer--menu.is-greet:not([open]) { transform: translateX(calc(var(--drawer-w) - var(--intro))); }
.to-top.is-shown { transform: translateX(calc(100% - var(--tip))); visibility: visible; }
.to-top.is-shown.is-sliding { transform: translateX(0); }
.to-top:hover { background: var(--navy-soft); }
.to-top:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
.to-top--high { bottom: calc(8.65rem + env(safe-area-inset-bottom)); }   /* Above the wrench as well. */
/* The three texts share one spot, so the bar keeps the width of the longest one. */
.lift-texts { display: inline-grid; white-space: nowrap; }
.lift-texts > span { grid-area: 1 / 1; opacity: 0; transform: translateY(0.35rem); transition: opacity 0.25s, transform 0.25s; }
.to-top.is-sliding .lift-texts > span.is-on { opacity: 1; transform: none; }
.to-top.is-arrived .drawer-icon { color: var(--orange); }
/* Arrival: the bar "sits into place" with a small bounce. */
.to-top.is-arrived { animation: lift-bar-kick 0.55s cubic-bezier(0.3, 1.6, 0.5, 1); }
/* The bounce moves the bar with transform (it is fully out at this moment, translateX(0)). Some phone browsers
   briefly dropped the bar while the separate "translate" property was animated on top of its transform. */
@keyframes lift-bar-kick {
  0% { transform: translateX(0) translateY(0); }
  30% { transform: translateX(0) translateY(-0.45rem); }
  60% { transform: translateX(0) translateY(0.2rem); }
  100% { transform: translateX(0) translateY(0); }
}
.drawer-panel .contact-icon--chat { fill: #4cc97a; }
.drawer-context svg { color: var(--orange); }
html:not(.js) .drawer { transform: none; }

/* ---- Folded enquiry form on pages (e.g. Contact: "Selling your yacht? Tap here") ---- */
.enquiry-fold { margin: 1.75rem 0 0; }
.enquiry-fold > summary {
  list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  min-height: 3.25rem; padding: 0.75rem 1.1rem; cursor: pointer;
  background: var(--mist); color: var(--navy); font-weight: 650; font-size: 1.05rem;
  border: 1px solid var(--line); border-left: 4px solid var(--orange); border-radius: 0.5rem;
}
.enquiry-fold > summary::-webkit-details-marker { display: none; }
.enquiry-fold > summary:hover { border-color: var(--navy); border-left-color: var(--orange); }
.enquiry-fold > summary:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
.enquiry-fold-icon { flex: none; transition: transform 0.25s; }
.enquiry-fold[open] > summary { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.enquiry-fold[open] .enquiry-fold-icon { transform: rotate(180deg); }
.enquiry-fold > .enquiry { margin-top: 0; }

/* ---- Enquiry popup (menu > Get in touch > Send an enquiry, on pages without their own form) ---- */
.enquiry-dialog {
  width: min(42rem, calc(100vw - 2rem)); max-height: calc(100dvh - 2rem); padding: 0; border: 0;
  border-top: 4px solid var(--orange); border-radius: 0.75rem; background: var(--white); color: var(--ink);
  box-shadow: 0 18px 50px rgba(10, 18, 30, 0.45); overflow: auto; overscroll-behavior: contain;
}
.enquiry-dialog::backdrop { background: rgba(20, 38, 61, 0.62); }
.enquiry-dialog[open] { animation: enquiry-dialog-in 0.25s ease-out; }
@keyframes enquiry-dialog-in { from { opacity: 0; transform: translateY(1rem); } to { opacity: 1; transform: none; } }
.enquiry-dialog-head {
  position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1rem 1rem 0.6rem 1.25rem; background: var(--white);
}
.enquiry-dialog-head h2 { margin: 0; color: var(--navy); }
.enquiry-dialog-close {
  flex: none; display: inline-flex; align-items: center; justify-content: center; width: 2.75rem; height: 2.75rem;
  border: 1px solid var(--line); border-radius: 50%; background: var(--white); color: var(--navy); cursor: pointer;
}
.enquiry-dialog-close:hover { background: var(--mist); }
.enquiry-dialog-close:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
.enquiry-form.enquiry-form--popup { background: none; padding: 0 1.25rem 1.25rem; }
.enquiry-form--popup .enquiry-intro { margin-top: 0; color: var(--slate); }
.enquiry-dialog-sent { margin: 0 1.25rem 1.25rem; }
.enquiry-dialog-sent-title { font-weight: 700; color: var(--ok); margin-bottom: 0.35rem !important; }
.enquiry-dialog-sent .btn { margin-top: 1rem; }
.enquiry-dialog [hidden] { display: none !important; }
@media (max-width: 640px) {
  /* Phones: the window fills the screen width and rises from the bottom. */
  .enquiry-dialog { width: 100vw; max-width: 100vw; margin: auto 0 0; max-height: 92dvh; border-radius: 0.9rem 0.9rem 0 0; }
}
@media (prefers-reduced-motion: reduce) {
  .drawer, .drawer-icon, .drawer-view { transition: none; }
  .drawer[open] .drawer-panel { animation: none; }
  .drawer.is-closing .drawer-panel { animation: none; opacity: 0; }
  .enquiry-dialog[open] { animation: none; }
  .to-top, .lift-texts > span, .enquiry-fold-icon, .faq summary::after, .share-btn, .share-done { transition: none; }
  .to-top.is-arrived { animation: none; }
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font: inherit; font-weight: 650; text-decoration: none; text-align: center;
  padding: 0.75rem 1.25rem; min-height: 2.875rem;
  border: 2px solid transparent; border-radius: var(--radius); cursor: pointer;
}
.btn--primary { background: var(--orange); color: var(--navy); }
.btn--primary:hover { background: #ff8a24; color: var(--navy); }
.btn--whatsapp { background: var(--whatsapp); color: var(--white); }
.btn--whatsapp:hover { background: #0a7366; color: var(--white); }
.btn--quiet { background: var(--white); color: var(--navy); border-color: var(--line); padding: 0.45rem 0.9rem; min-height: 2.5rem; }
.btn--quiet:hover { border-color: var(--navy); }

/* ---- Prices and badges ---- */
.price { font-weight: 700; color: var(--navy); }
.price--text { font-weight: 600; }
.price-usd { display: none; }
.price-approx { font-weight: 400; font-size: 0.8em; color: var(--slate); }
html.cur-usd .price-eur { display: none; }
html.cur-usd .price-usd { display: inline; }
.badge {
  display: inline-block; font-size: 0.8rem; font-weight: 650; line-height: 1;
  padding: 0.35rem 0.55rem; border-radius: var(--radius);
}
.badge--under_offer { background: var(--amber-bg); color: #5c3a00; }
.badge--sold { background: var(--navy); color: var(--white); }

/* ---- Form fields ---- */
.field { margin: 0 0 1.1rem; padding: 0; border: 0; min-width: 0; }
.field > label, .field > legend { display: block; font-weight: 600; font-size: 0.925rem; margin-bottom: 0.3rem; padding: 0; color: var(--navy); }
input[type="text"], input[type="email"], input[type="tel"], input[type="number"], select, textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--white);
  border: 1px solid #8a9aad; border-radius: var(--radius); padding: 0.55rem 0.65rem; min-height: 2.75rem;
}
textarea { resize: vertical; min-height: 8rem; }
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--error); border-width: 2px; }
.range { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
.range > legend { grid-column: 1 / -1; }
.check { display: flex; align-items: flex-start; gap: 0.55rem; padding: 0.25rem 0; font-weight: 400; cursor: pointer; }
.check input { width: 1.15rem; height: 1.15rem; margin: 0.2rem 0 0; flex: none; accent-color: var(--navy); }
.check--single { margin-bottom: 1.1rem; }
.field-hint { font-size: 0.85rem; color: var(--slate); margin: 0.3rem 0 0; }
.field-error { font-size: 0.9rem; color: var(--error); font-weight: 600; margin: 0.3rem 0 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---- List page ---- */
.list-head { padding: 2.25rem 0 1.5rem; }
.list-intro { max-width: 60ch; margin: 0.75rem 0 0; color: var(--slate); font-size: 1.075rem; }
.list-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem; padding-bottom: 4rem; }
.filters { background: var(--mist); border-radius: var(--radius); align-self: start; }
.filters > summary {
  cursor: pointer; padding: 0.9rem 1.1rem; font-weight: 650; color: var(--navy); font-size: 1.05rem;
}
.filters-count {
  display: inline-block; min-width: 1.5rem; text-align: center; margin-left: 0.25rem;
  background: var(--navy); color: var(--white); border-radius: 1rem; font-size: 0.8rem; padding: 0.05rem 0.4rem;
}
.filters-form { padding: 0.25rem 1.1rem 1.1rem; }
/* Phones: hidden from the first paint until site.js has closed the panel (no layout shift). */
@media (max-width: 899px) { html.js .filters:not(.is-ready) > .filters-form { display: none; } }
.filters-actions { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.filters-actions .btn { flex: 1 1 auto; }
.results-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.25rem; padding-bottom: 0.9rem; border-bottom: 1px solid var(--line); }
.results-count { margin: 0; font-weight: 650; color: var(--navy); font-size: 1.05rem; }
.sort-form { display: flex; align-items: center; gap: 0.5rem; }
.sort-form label { font-size: 0.925rem; color: var(--slate); white-space: nowrap; }
.sort-form select { width: auto; min-height: 2.5rem; padding-top: 0.35rem; padding-bottom: 0.35rem; }
html.js .sort-submit { display: none; }

.cards { display: grid; gap: 2rem 1.5rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 17.5rem), 1fr)); }
.card-link { display: block; color: inherit; text-decoration: none; height: 100%; }
.card-photo { position: relative; aspect-ratio: 3 / 2; background: var(--mist); border-radius: var(--radius); overflow: hidden; }
.card-photo img { width: 100%; height: 100%; object-fit: cover; }
.card-photo .badge { position: absolute; left: 0.6rem; top: 0.6rem; }
.card--sold .card-photo img { filter: grayscale(0.7); opacity: 0.8; }
/* "Ekmar's Choice": diagonal ribbon in the top right corner, red with a thin white border
   (Turkish flag colours, chosen by the owner). "- 1px" makes up for the border, so the band stays centred. The band's middle sits on the middle of
   the visible diagonal (centre x + centre y = 9rem, the box size), so the text is centred in the corner.
   Centre: x 5.675rem, y 3.325rem; band 12rem long and about 1.54rem high. */
.choice-ribbon {
  position: absolute; top: 0; right: 0; z-index: 2; width: 9rem; height: 9rem; overflow: hidden; pointer-events: none;
}
.choice-ribbon > span {
  position: absolute; top: calc(2.56rem - 1px); right: -2.675rem; width: 12rem; padding: 0.3rem 0; transform: rotate(45deg);
  background: #ff0000; color: var(--white); text-align: center; text-transform: uppercase;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.07em; line-height: 1.3;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55); box-shadow: 0 2px 6px rgba(20, 38, 61, 0.35);
  border: 1px solid var(--white);
}
.card--choice .card-photo { outline: 2px solid var(--orange); outline-offset: -2px; }
.detail-subtitle { margin: 0.35rem 0 0; font-size: 1.1rem; color: var(--slate); }
.card-body { padding: 0.8rem 0 0; }
.card-type { margin: 0 0 0.15rem; font-size: 0.85rem; color: var(--slate); }
.card-title { font-size: 1.2rem; font-stretch: 112%; font-weight: 650; }
.card-link:hover .card-title { text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 2px; text-underline-offset: 0.2em; }
.card-facts { display: flex; flex-wrap: wrap; gap: 0 1.1rem; margin: 0.35rem 0 0.4rem; color: var(--slate); font-size: 0.95rem; }
.card-price { margin: 0; font-size: 1.1rem; }

.pager { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: 2.5rem; }
.empty { padding: 2.5rem 1.5rem; background: var(--mist); border-radius: var(--radius); }
.empty h2, .empty h1 { margin-bottom: 0.6rem; }
.empty--page { margin-top: 3rem; margin-bottom: 4rem; background: none; }

/* ---- Detail page ---- */
.crumbs { display: flex; flex-wrap: wrap; gap: 0.5rem; font-size: 0.9rem; color: var(--slate); padding: 1.25rem 0 0; }
.detail-head { padding: 1rem 0 1.4rem; }
.detail-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.3rem 1.25rem; margin: 0.6rem 0 0; color: var(--slate); }
.detail-top { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
.detail-top > * { min-width: 0; }

.gallery-frame { position: relative; }
.gallery-track {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  aspect-ratio: 3 / 2; background: var(--mist); border-radius: var(--radius); cursor: grab;
}
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-track > li { flex: 0 0 100%; scroll-snap-align: start; scroll-snap-stop: always; min-width: 0; }
.gallery-track a { display: block; width: 100%; height: 100%; cursor: inherit; }
.gallery-track img { width: 100%; height: 100%; object-fit: cover; }
.is-dragging { scroll-snap-type: none !important; scroll-behavior: auto !important; cursor: grabbing !important; user-select: none; }
.gallery-arrow {
  position: absolute; top: calc(50% - 1.375rem); display: inline-grid; place-items: center; width: 2.75rem; height: 2.75rem;
  background: rgba(20, 38, 61, 0.7); color: var(--white); border: 0; border-radius: 50%; cursor: pointer;
}
.gallery-arrow[hidden] { display: none; }
.gallery-arrow:hover:not(:disabled) { background: var(--navy); }
.gallery-arrow:disabled { opacity: 0.3; cursor: default; }
.gallery-arrow--prev { left: 0.6rem; }
.gallery-arrow--next { right: 0.6rem; }
.gallery-thumbs { display: flex; gap: 0.5rem; margin-top: 0.5rem; overflow-x: auto; padding-bottom: 0.25rem; cursor: grab; scrollbar-width: thin; }
.gallery-thumbs li { flex: none; }
.gallery-thumbs a { display: block; width: 6.25rem; aspect-ratio: 3 / 2; border-radius: var(--radius); overflow: hidden; border: 2px solid transparent; opacity: 0.75; cursor: inherit; }
.gallery-thumbs a:hover, .gallery-thumbs a[aria-current="true"] { opacity: 1; }
.gallery-thumbs a[aria-current="true"] { border-color: var(--orange); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
/* "All photos": a round grey button with nine white squares, bottom right. The see-through dark grey
   keeps it visible on bright and on dark photos. */
.gallery-all {
  display: none; position: absolute; right: 0.6rem; bottom: 0.6rem; place-items: center;
  width: 2.75rem; height: 2.75rem; padding: 0; cursor: pointer; border: 0; border-radius: 50%;
  background: rgba(40, 46, 56, 0.72); color: var(--white); box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}
.gallery-all:hover { background: rgba(40, 46, 56, 0.9); }
.gallery-all:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
html.js .gallery-all { display: inline-grid; }

/* ---- Full-screen viewer (photos and layout plans) ---- */
.lightbox {
  border: 0; padding: 0; margin: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none;
  background: #0a121e; color: var(--white);
}
.lightbox[open] { display: flex; flex-direction: column; }
.lightbox::backdrop { background: #0a121e; }
.lightbox-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.5rem 0.75rem; flex: none; }
.lightbox-count { margin: 0; font-size: 0.95rem; }
.lightbox-caption { color: #c3d0de; }
.lightbox-caption:not(:empty)::before { content: "· "; }
.lightbox-tools { display: flex; gap: 0.25rem; }
.lightbox-btn {
  display: inline-grid; place-items: center; width: 2.75rem; height: 2.75rem;
  background: transparent; color: var(--white); border: 0; border-radius: 50%; cursor: pointer;
}
.lightbox-btn[hidden] { display: none; }
.lightbox-btn:hover:not(:disabled), .lightbox-btn[aria-pressed="true"] { background: rgba(255, 255, 255, 0.2); }
.lightbox-btn:disabled { opacity: 0.35; cursor: default; }
/* Grid button: the same round grey button with nine squares as on the page photo. */
.lightbox-btn--grid { background: rgba(255, 255, 255, 0.2); }
.lightbox-btn--grid:hover:not(:disabled), .lightbox-btn--grid[aria-pressed="true"] { background: rgba(255, 255, 255, 0.32); }
.lightbox-stage {
  position: relative; flex: 1; min-height: 0; overflow: hidden; cursor: zoom-in;
  touch-action: none; user-select: none; -webkit-user-select: none;
}
.lightbox-stage.is-zoomed { cursor: grab; }
.lightbox-stage[hidden], .lightbox-grid[hidden] { display: none; }
.lightbox-stage img { width: 100%; height: 100%; object-fit: contain; will-change: transform; -webkit-user-drag: none; }
.lightbox-prev, .lightbox-next { position: absolute; top: calc(50% - 1.4rem); background: rgba(10, 18, 30, 0.55); }
.lightbox-prev { left: 0.6rem; }
.lightbox-next { right: 0.6rem; }
.lightbox-hint {
  position: absolute; left: 50%; bottom: 0.9rem; transform: translateX(-50%); margin: 0; pointer-events: none; white-space: nowrap;
  font-size: 0.85rem; background: rgba(10, 18, 30, 0.7); padding: 0.3rem 0.7rem; border-radius: 1rem;
}
.lightbox-hint[hidden] { display: none; }
.lightbox-grid {
  flex: 1; min-height: 0; overflow-y: auto; margin: 0; padding: 0.5rem 1rem 2rem;
  display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(45%, 15rem), 1fr)); align-content: start;
}
.lightbox-grid button { display: block; width: 100%; padding: 0; border: 2px solid transparent; background: none; cursor: pointer; aspect-ratio: 1 / 1; }
.lightbox-grid button[aria-current="true"] { border-color: var(--orange); }
.lightbox-grid img { width: 100%; height: 100%; object-fit: cover; }

.buy { align-self: start; }
.buy-price { font-size: clamp(1.7rem, 1.3rem + 1.4vw, 2.25rem); line-height: 1.15; margin: 0 0 0.3rem; font-stretch: 112%; }
.buy-vat { color: var(--slate); font-size: 0.925rem; margin-bottom: 1.1rem; }
.facts { display: grid; grid-template-columns: 1fr 1fr; margin: 0 0 1.25rem; border-top: 1px solid var(--line); }
.facts div { padding: 0.7rem 0; border-bottom: 1px solid var(--line); }
.facts div:nth-child(odd) { padding-right: 1rem; }
.facts div:nth-child(even) { padding-left: 1rem; border-left: 1px solid var(--line); }
.facts dt { font-size: 0.85rem; color: var(--slate); }
.facts dd { margin: 0; font-size: 1.35rem; font-weight: 650; color: var(--navy); font-stretch: 112%; }
.buy-actions { display: grid; gap: 0.6rem; }
.buy-pdf { display: flex; width: 100%; margin-top: 0.6rem; min-height: 2.875rem; }
.sold-box { background: var(--mist); padding: 1.1rem; border-radius: var(--radius); }
.sold-title { font-weight: 650; color: var(--navy); font-size: 1.1rem; margin-bottom: 0.4rem; }

.detail-body { max-width: 52rem; padding: 0.5rem 0 1rem; }
.lead { font-size: 1.25rem; line-height: 1.45; color: var(--navy); max-width: 62ch; margin-bottom: 0.5rem; }
.block { padding: 1.75rem 0 0.5rem; }
.block > h2 { margin-bottom: 1.1rem; padding-top: 1.75rem; border-top: 1px solid var(--line); }
.block > h3 { margin: 1.5rem 0 0.5rem; }
.prose { max-width: 100%; }

.specs { display: grid; gap: 1.5rem 2.5rem; }
.spec-group h3 { margin-bottom: 0.4rem; }
.spec-group dl { margin: 0; }
.spec-group dl div { display: grid; grid-template-columns: minmax(8rem, 2fr) 3fr; gap: 1rem; padding: 0.45rem 0; border-bottom: 1px solid var(--line); }
.spec-group dt { color: var(--slate); }
.spec-group dd { margin: 0; font-weight: 550; }
.spec-group--wide { grid-column: 1 / -1; }
.spec-note { margin: 0; padding: 0.45rem 0 0.6rem; border-bottom: 1px solid var(--line); }

.equipment { display: grid; gap: 1.5rem 2.5rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 14rem), 1fr)); }
.equipment-group h3 { margin-bottom: 0.4rem; }
.equipment-group li { padding: 0.2rem 0 0.2rem 1.1rem; position: relative; }
.equipment-group li::before { content: ""; position: absolute; left: 0; top: 0.75em; width: 0.5rem; height: 2px; background: var(--orange); }

.video { background: var(--mist); border-radius: var(--radius); padding: 2rem; text-align: center; }
.video-note { font-size: 0.85rem; color: var(--slate); margin: 0.75rem 0 0; }
.video--playing { padding: 0; aspect-ratio: 16 / 9; }
.video--playing iframe { width: 100%; height: 100%; border: 0; display: block; }
/* One plan: shown large. A tall plan is capped in height so it does not fill several screens. */
.plan-single { margin: 0; }
.plan-single a, .plans a {
  display: block; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  background: var(--white); cursor: zoom-in;
}
.plan-single a:hover, .plans a:hover { border-color: var(--navy); }
.plan-single img { width: 100%; max-height: 38rem; object-fit: contain; }
/* Several plans: equal tiles side by side, the whole plan visible in each. A click opens it full screen. */
.plans { display: grid; gap: 0.75rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.plans a { aspect-ratio: 4 / 5; padding: 0.6rem; }
.plans img { width: 100%; height: 100%; object-fit: contain; }
.plan-label { margin: 0.4rem 0 0; font-weight: 600; color: var(--navy); }
.plans-hint { margin-top: 0.75rem; }

.enquiry { scroll-margin-top: 1rem; }
.contact-drawer { display: none; }   /* Phones only, see the 640 px block. */
.enquiry-intro { color: var(--slate); }
.enquiry-form { background: var(--mist); padding: 1.25rem; border-radius: var(--radius); }
.form-row { display: grid; gap: 0 1.25rem; }
/* Buyer brief and owner form: their extra questions, two per row on wider screens. */
.brief-grid { display: grid; gap: 0 1.25rem; }
@media (min-width: 640px) { .brief-grid { grid-template-columns: 1fr 1fr; } }
.optional { font-weight: 400; color: var(--slate); font-size: 0.9em; }
/* Yacht list: "Can't find the right yacht?" band below the cards. */
.brief-band {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap;
  margin-top: 2.5rem; padding: 1.4rem 1.5rem; border-radius: var(--radius); background: var(--mist); border-left: 4px solid var(--orange);
}
.brief-band h2 { margin: 0 0 0.3rem; font-size: 1.3rem; }
.brief-band p { margin: 0; color: var(--slate); max-width: 38rem; }
.radios .check { display: inline-flex; margin-right: 1.25rem; }
.notice { padding: 1rem 1.25rem; border-radius: var(--radius); margin-bottom: 1.25rem; border-left: 4px solid; }
.notice p { margin: 0; }
.notice h2 { margin-bottom: 0.4rem; }
.notice--ok { background: #e6f4ec; border-color: var(--ok); }
.notice--ok h2 { color: var(--ok); }
.notice--error { background: #fbeaea; border-color: var(--error); color: var(--error); font-weight: 600; }
.legal { font-size: 0.875rem; color: var(--slate); max-width: 68ch; margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }

.similar { padding: 2rem 0 4rem; }
.similar-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; }
.slider-buttons { display: flex; gap: 0.5rem; }
.slider-buttons[hidden] { display: none; }
.slider-btn {
  display: inline-grid; place-items: center; width: 2.75rem; height: 2.75rem; cursor: pointer;
  background: var(--white); color: var(--navy); border: 1px solid var(--line); border-radius: 50%;
}
.slider-btn:hover:not(:disabled) { border-color: var(--navy); }
.slider-btn:disabled { opacity: 0.35; cursor: default; }
.slider-track {
  --per-view: 1.15; --gap: 1.25rem;
  display: flex; gap: var(--gap); overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; padding-bottom: 0.25rem;
}
.slider-track::-webkit-scrollbar { display: none; }
.slider-track { cursor: grab; }
.slider-track .card-link { cursor: pointer; -webkit-user-drag: none; }
.slider-track > li {
  flex: 0 0 calc((100% - (var(--per-view) - 1) * var(--gap)) / var(--per-view));
  scroll-snap-align: start; min-width: 0;
}
.draft-notice { margin: 1rem 0 0; padding: 0.6rem 1rem; background: var(--amber-bg); color: #5c3a00; border-radius: var(--radius); font-weight: 600; }

/* ---- Pages made in the admin panel ---- */
.page { max-width: 52rem; padding-top: 2.25rem; padding-bottom: 4rem; }
.page > h1 { margin-bottom: 1.5rem; }
.page-body > h2 { margin: 2.25rem 0 0.8rem; }
.page-body > h3 { margin: 1.6rem 0 0.5rem; font-size: 1.2rem; }
.page-body > :first-child { margin-top: 0; }
.prose ul, .prose ol { margin: 0 0 1em; padding-left: 1.4rem; }
.prose .page-text-heading { margin: 1.6em 0 0.5em; color: var(--navy); line-height: 1.25; }
.prose h2.page-text-heading { font-size: 1.45rem; }
.prose h3.page-text-heading { font-size: 1.15rem; }
.prose > .page-text-heading:first-child { margin-top: 0; }
.prose ul { list-style: disc; }
/* Separators: "Separator" block in the page maker, or "---" on its own line in a text block. */
.separator { border: 0; margin: 2rem 0; }
.separator--line { height: 1px; background: var(--line); }
.prose .separator--line { margin: 1.6em 0; }
.separator--accent { width: 4rem; height: 3px; background: var(--orange); border-radius: 2px; }
.separator--space { height: 2.5rem; margin: 0; }
.prose li { padding: 0.15rem 0; }
.prose li::marker { color: var(--orange-deep); }
.page-buttons { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 1.25rem 0 1.5rem; }
.page-buttons--center { justify-content: center; }
.page-buttons--right { justify-content: flex-end; }
/* Button widths from the page maker: wide = 70% on PC and full width on phones, full = the whole row. */
.btn--w-wide { flex: 0 1 70%; }
.btn--w-full { flex: 1 1 100%; }
@media (max-width: 640px) { .btn--w-wide { flex-basis: 100%; } }
.page-image { margin: 1.5rem 0; }
.page-image img { border-radius: var(--radius); }
.page-image--small img { max-width: min(100%, 14rem); }
.page-image--medium img { max-width: min(100%, 30rem); }
.page-image--center img { margin-left: auto; margin-right: auto; }
.logo-row { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 1.25rem 2.25rem; margin: 1.75rem 0; padding: 0; list-style: none; }
.logo-row--center { justify-content: center; }
.logo-row li { display: flex; flex-direction: column; align-items: center; gap: 0.4rem; max-width: 12rem; text-align: center; }
.logo-row img { height: 4.5rem; width: auto; max-width: 12rem; object-fit: contain; }
.logo-link { display: inline-flex; flex-direction: column; align-items: center; gap: 0.4rem; text-decoration: none; color: inherit; border-radius: 0.4rem; }
.logo-link:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
.logo-caption { font-size: 0.8rem; line-height: 1.3; color: var(--slate); }
/* Footer: licence and membership logos on small white tiles, one line above the copyright. */
.footer-badges {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0.75rem 1rem;
  margin: 2rem auto 0; padding-top: 1.5rem; padding-bottom: 0.5rem; list-style: none; border-top: 1px solid #33506f;
}
.footer-badges + .footer-copy { margin-top: 1rem; }
.footer-badges li { display: flex; }
.footer-badges img, .footer-badges .logo-link {
  display: block; height: 3.5rem; width: auto; padding: 0.3rem 0.55rem; background: #fff; border-radius: 0.5rem; box-sizing: border-box;
}
.footer-badges .logo-link { padding: 0; }
.footer-badges .logo-link img { padding: 0.3rem 0.55rem; }
.footer-badges .logo-link:hover img { box-shadow: 0 0 0 2px var(--orange); }
@media (max-width: 480px) {
  .footer-badges { gap: 0.6rem 0.5rem; }
  .footer-badges img, .footer-badges .logo-link { height: 2.85rem; }
}
.faq { margin: 1.25rem 0 1.5rem; border-top: 1px solid var(--line); }
.faq details {
  border: 1px solid #d5dde685; border-radius: 5px; padding: 5px 14px; margin-bottom: 5px;
  box-shadow: 1px 1px 5px 0 grey;
}
.faq summary { cursor: pointer; padding: 0.85rem 2rem 0.85rem 0; font-weight: 650; color: var(--navy); font-size: 1.075rem; position: relative; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
/* Arrow like the menus: points down when closed, turns up when open. */
.faq summary::after {
  content: ""; position: absolute; right: 0.5rem; top: 1.05rem; width: 0.55rem; height: 0.55rem;
  border-right: 2px solid var(--orange-deep); border-bottom: 2px solid var(--orange-deep);
  transform: rotate(45deg); transition: transform 0.25s;
}
.faq details[open] summary::after { transform: translateY(0.25rem) rotate(-135deg); }
/* Sliding open and closed (FAQ answers, folded enquiry form). Browsers that cannot animate the
   height yet simply open at once. */
@supports (interpolate-size: allow-keywords) {
  .faq details, .enquiry-fold { interpolate-size: allow-keywords; }
  .faq details::details-content, .enquiry-fold::details-content {
    block-size: 0; overflow: hidden; opacity: 0;
    transition: block-size 0.35s ease, opacity 0.3s ease, content-visibility 0.35s allow-discrete;
  }
  .faq details[open]::details-content, .enquiry-fold[open]::details-content { block-size: auto; opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .faq details::details-content, .enquiry-fold::details-content { transition: none; }
}
.faq .prose { padding: 0 0 0.6rem; }
.download { display: flex; align-items: center; flex-wrap: wrap; gap: 0.75rem; margin: 1.25rem 0; }
.download-note { color: var(--slate); font-size: 0.9rem; }
.page .video { margin: 1.5rem 0; }
.contact-block { margin: 1.25rem 0 1.5rem; max-width: 34rem; }
.contact-block div { display: grid; grid-template-columns: 8.5rem 1fr; gap: 1rem; padding: 0.55rem 0; border-bottom: 1px solid var(--line); }
.contact-block dt { color: var(--slate); }
.contact-block dd { margin: 0; }
/* Phone, WhatsApp and email rows: icon, then the value. */
.contact-icon { flex: none; width: 1.15rem; height: 1.15rem; fill: currentColor; vertical-align: -0.2em; }
.contact-icon--chat { fill: #25a35a; }
/* Social media (footer column "Ekmar Yachting Network" and the Menu). */
.brand-icon { flex: none; width: 1.15rem; height: 1.15rem; fill: currentColor; vertical-align: -0.2em; }
.footer-heading--sub { margin-top: 1.1rem; }
.social-lines { list-style: none; margin: 0; padding: 0; }
.social-lines a { display: inline-flex; align-items: center; gap: 0.55rem; }
.social-lines .brand-icon { fill: #ffb066; }
.social-lines a:hover .brand-icon { fill: currentColor; }
.contact-block div.contact-line { grid-template-columns: 1fr; }
.contact-block .contact-line dd { display: flex; align-items: center; gap: 0.6rem; }
.contact-block .contact-icon { fill: var(--navy); }
.contact-block .contact-icon--chat { fill: #25a35a; }
.contact-lines li { display: flex; align-items: center; gap: 0.6rem; }
.site-footer .contact-icon { fill: #ffb066; }
.site-footer .contact-icon--chat { fill: #4cc97a; }
.page-updated { margin-top: 2.5rem; color: var(--slate); font-size: 0.9rem; }

/* ---- Footer ---- */
.site-footer { background: var(--navy); color: #d3dde8; font-size: 0.95rem; padding: 2.5rem 0 1.25rem; }
.site-footer a { color: var(--white); }
.site-footer a:hover { color: #ffb066; }
.site-footer p { margin-bottom: 0.4rem; }
.site-footer li { padding: 0.15rem 0; }
.site-footer-inner { display: grid; gap: 1.75rem; }
.footer-brand { color: var(--white); font-size: 1.15rem; font-weight: 700; font-stretch: 125%; }
.footer-logo { height: 2.75rem; width: auto; max-width: 12rem; object-fit: contain; margin-bottom: 0.75rem; }
.footer-heading { color: var(--white); font-weight: 650; }
.footer-address, .footer-hours { line-height: 1.55; }
.footer-hours { margin-top: 0.6rem; font-size: 0.9rem; }
.footer-copy { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid #33506f; font-size: 0.85rem; }

/* ---- Small screens: slim top bar, thumb menu, enquiry buttons within reach ---- */
@media (max-width: 899px) {
  .site-footer { padding-bottom: 5.25rem; }
  .site-header-inner { min-height: 0; padding-top: 0.4rem; padding-bottom: 0; }
  .brand-name { font-size: 1.1rem; }
  .brand-section { font-size: 0.75rem; }
  .brand-logo { height: 3rem; max-width: 13rem; }
  .site-nav {
    order: 3; width: 100%; gap: 0.75rem; justify-content: space-between; font-size: 0.9rem; overflow-x: auto; scrollbar-width: none;
    border-top: 1px solid #33506f; margin-top: 0.15rem;
  }
  .site-nav::-webkit-scrollbar { display: none; }
  .site-nav a { padding: 0.35rem 0; }
  /* The two buttons stay in the page (no fixed bar); the drawers on the right edge take over. */
  .buy-actions { grid-template-columns: 1fr 1fr; gap: 0.5rem; }
  .buy-actions .btn { padding-left: 0.5rem; padding-right: 0.5rem; font-size: 0.95rem; }
  /* Message and WhatsApp drawers (yacht pages): only the icon tip shows; they slide in quietly from the
     right edge, and drawer.js stacks them with Menu and Back to top (order: Site settings > Menu drawers). */
  html.js .contact-drawer {
    display: flex; align-items: center; position: fixed; right: 0; z-index: 29;
    bottom: calc(0.85rem + env(safe-area-inset-bottom)); width: 5.5rem; height: 3rem; padding-left: 0.9rem;
    border: 2px solid var(--orange); border-right: 0; border-radius: 14rem 0 0 14rem;
    background: var(--navy); color: var(--white); box-shadow: 0 4px 14px rgba(20, 38, 61, 0.35);
    -webkit-tap-highlight-color: transparent;
    transform: translateX(calc(100% + 1rem)); visibility: hidden;
    transition: transform 0.55s cubic-bezier(0.34, 1.4, 0.64, 1), visibility 0.55s, bottom 0.35s ease;
  }
  /* Longer than the tip that shows, so the spring never opens a gap at the screen edge. */
  html.js .contact-drawer.is-shown { transform: translateX(calc(100% - 3.15rem)); visibility: visible; }
  html.js.lift-riding .contact-drawer.contact-drawer { transform: translateX(calc(100% + 1rem)); visibility: hidden; }
  html.js .contact-drawer:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
  .contact-drawer .contact-icon, .contact-drawer-icon { width: 1.3rem; height: 1.3rem; fill: var(--white); }
  .contact-drawer--whatsapp .contact-drawer-icon { fill: #25d366; }
  /* While the stack is active, the bars glide up and down to their places. */
  html.stack-on .drawer { transition: transform 0.55s cubic-bezier(0.34, 1.4, 0.64, 1), visibility 0.55s, bottom 0.35s ease; }
  .gallery-arrow { display: none; }
  .contact-block div { grid-template-columns: 1fr; gap: 0; }
}

/* ---- Wider screens ---- */
@media (min-width: 640px) {
  .form-row { grid-template-columns: 1fr 1fr; }
  .specs { grid-template-columns: 1fr 1fr; }
  .plans { gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(12rem, 15rem)); }
  .site-footer-inner { grid-template-columns: 1fr 1fr; }
  .slider-track { --per-view: 2; }
}
@media (min-width: 900px) {
  .list-layout { grid-template-columns: 17rem 1fr; gap: 2.5rem; }
  .filters > summary { pointer-events: none; list-style: none; }
  .filters > summary::-webkit-details-marker { display: none; }
  /* Two columns: photos and all page content on the left, the price and enquiry box on the right.
     The box spans the whole height and stays in view while visitors scroll. */
  .detail-top { grid-template-columns: minmax(0, 1.9fr) minmax(17rem, 1fr); column-gap: 2.5rem; row-gap: 0; }
  .detail-top > .gallery { grid-column: 1; grid-row: 1; }
  .detail-top > .buy { grid-column: 2; grid-row: 1 / span 2; position: sticky; top: 1.25rem; }
  .detail-top > .detail-body { grid-column: 1; grid-row: 2; max-width: none; padding-top: 2rem; }
  .detail-top--no-photos > .detail-body { grid-row: 1; padding-top: 0; }
  .detail-top--no-photos > .buy { grid-row: 1; }
  .site-footer-inner { grid-template-columns: 2fr 1fr 1fr 1fr; }
  .slider-track { --per-view: 3; }
}

@media (max-width: 379px) {
  /* Small phones: slightly smaller menu text so five links fit without scrolling. */
  .site-nav { gap: 0.55rem; font-size: 0.82rem; }
}

/* ---- My yachts (build 05.4): hearts, the drawer list, "Recently viewed" row, compare page ---- */
.fav-btn[hidden], .count[hidden], .recent[hidden], .mine [hidden] { display: none !important; }
.fav-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem; cursor: pointer;
  border: 0; background: none; color: var(--navy); font: inherit; -webkit-tap-highlight-color: transparent;
}
.heart-icon { fill: none; stroke: currentColor; stroke-width: 1.8; transition: fill 0.2s, stroke 0.2s; }
.fav-btn[aria-pressed="true"] .heart-icon { fill: var(--orange); stroke: var(--orange); }
.fav-btn.is-popped .heart-icon { animation: heart-pop 0.4s cubic-bezier(0.3, 1.6, 0.5, 1); }
@keyframes heart-pop { 0% { transform: scale(1); } 40% { transform: scale(1.35); } 100% { transform: scale(1); } }
.fav-btn:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
/* On a yacht card: a white round button in the bottom right corner of the photo. The card is a size
   container, so 66.67cqw is the height of its 3:2 photo. */
.card { position: relative; container-type: inline-size; }
.fav-btn--card {
  position: absolute; z-index: 3; right: 0.6rem; top: calc(66.67cqw - 3rem); width: 2.4rem; height: 2.4rem;
  border-radius: 50%; background: rgba(255, 255, 255, 0.92); box-shadow: 0 2px 8px rgba(20, 38, 61, 0.25);
}
/* On the yacht page: "Save" / "Saved" next to the reference. */
.fav-btn--inline {
  padding: 0.25rem 0.75rem 0.25rem 0.55rem; border: 1px solid var(--line); border-radius: 2rem; font-size: 0.95rem; font-weight: 600;
}
.fav-btn--inline:hover { border-color: var(--navy); }
.fav-btn--inline[aria-pressed="true"] { border-color: var(--orange); }
/* In the drawer list: a small heart on navy. */
.fav-btn--mini { width: 2rem; height: 2rem; color: #ffb066; border-radius: 50%; }
.fav-btn--mini .heart-icon { width: 18px; height: 18px; }
.fav-btn--mini:hover { background: var(--navy-soft); }

/* Drawer "My yachts" (builds 06.3, 06.3b): a small table per list. Clean photo, full title with the short
   price under it, then the heart and the compare tick in their own columns (at least 44 px to tap). */
.mine { padding: 0 0.3rem 0.4rem; }
.mine-cols, .mine-row { display: grid; grid-template-columns: minmax(0, 1fr) 2.6rem 3.2rem; align-items: center; column-gap: 0.1rem; }
.mine-cols { margin-top: 0.7rem; align-items: end; }
.mine-cols .drawer-view-title--sub { margin: 0 0.2rem 0.25rem 0.5rem; white-space: nowrap; }
.mine-sec { display: flex; align-items: center; gap: 0.4rem; }
.mine-sec svg { flex: none; }
.mine-sec .heart-icon { width: 15px; height: 15px; fill: currentColor; }
.mine-col { justify-self: center; padding-bottom: 0.3rem; font-size: 0.7rem; color: #b8c6d6; }
.mine-col .heart-icon { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; display: block; }
.mine-list { list-style: none; margin: 0; padding: 0; }
.mine-row { border-top: 1px solid #2c4060; padding: 0.3rem 0; }
.drawer-panel a.mine-link {
  display: grid; grid-template-columns: 5rem minmax(0, 1fr); align-items: center; gap: 0.6rem; min-height: 0; padding: 0.2rem 0.2rem;
}
.mine-photo { position: relative; display: block; width: 5rem; height: 3.35rem; border-radius: 0.4rem; overflow: hidden; background: #33506f; }
.mine-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mine-caption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 0.05rem 0.25rem; background: rgba(10, 18, 34, 0.62);
  color: var(--white); font-size: 0.6rem; line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mine-text { display: grid; gap: 0.15rem; min-width: 0; }
.mine-title {
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
  font-weight: 600; font-size: 0.86rem; line-height: 1.25;
}
.mine-price { font-weight: 650; font-size: 0.86rem; line-height: 1.2; color: #ffb066; }
.mine-row .fav-btn--mini { justify-self: center; width: 2.6rem; height: 2.75rem; }
.mine-row .fav-btn--mini .heart-icon { width: 20px; height: 20px; }
.mine-cmp { justify-self: center; display: flex; align-items: center; justify-content: center; width: 2.9rem; height: 2.75rem; cursor: pointer; }
.mine-cmp input { width: 1.2rem; height: 1.2rem; margin: 0; accent-color: var(--orange); cursor: pointer; }
.mine-empty { margin: 0.1rem 0.5rem 0.5rem; font-size: 0.85rem; color: #b8c6d6; }
.mine-foot { display: flex; justify-content: space-between; align-items: center; margin: 0; padding: 0.35rem 0.3rem 0; border-top: 1px solid #2c4060; }
.mine-link-btn { border: 0; background: none; padding: 0.4rem 0.2rem; color: var(--white); font: inherit; font-size: 0.82rem; text-decoration: underline; cursor: pointer; }
.mine-more { display: inline-flex; align-items: center; gap: 0.5rem; text-decoration: none; }
/* Accordion arrow, like the Q&A on the Buying guide: down = more rows open below, up = fold them again. */
.mine-more::after {
  content: ""; width: 0.45rem; height: 0.45rem; margin-top: -0.2rem;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg); transition: transform 0.25s;
}
.mine-more[aria-expanded="true"]::after { margin-top: 0.15rem; transform: rotate(-135deg); }
.mine-compare { margin: 0.4rem 0 0.2rem; }
.mine-compare .drawer-view-title--sub { margin: 0.9rem 0.5rem 0.5rem; }
.mine-cmp-list { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem; margin: 0 0.5rem 0.8rem; padding: 0; }
.mine-cmp-list:empty { display: none; }
.mine-cmp-item { position: relative; }
.drawer-panel a.mine-cmp-photo { display: block; padding: 0; min-height: 0; width: 100%; height: auto; aspect-ratio: 3 / 2; border-radius: 0.4rem; overflow: hidden; background: #33506f; }
.mine-cmp-img, .mine-cmp-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.mine-cmp-remove {
  position: absolute; top: 0.35rem; right: 0.35rem; display: flex; align-items: center; justify-content: center;
  width: 1.6rem; height: 1.6rem; padding: 0; border: 0; border-radius: 50%; background: var(--white); color: var(--navy); cursor: pointer;
  box-shadow: 0 1px 4px rgba(10, 18, 34, 0.35);
}
.mine-cmp-remove::before { content: ""; position: absolute; inset: -0.45rem; }   /* bigger tap area, inside the photo */
.mine-hint { margin: 0 0.5rem; font-size: 0.82rem; color: #b8c6d6; }
.mine-cmp-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; margin: 0 0.5rem; }
.drawer-panel .mine-cmp-actions a.cmp-go, .drawer-panel .mine-cmp-actions .cmp-clear { justify-content: center; min-height: 2.75rem; }
.drawer-panel .mine-cmp-actions a.cmp-go { background: var(--orange); color: var(--navy); }
.drawer-panel .mine-cmp-actions a.cmp-go[aria-disabled="true"] { background: #33506f; color: #b8c6d6; cursor: default; }
.drawer-panel .mine-cmp-actions .cmp-clear { background: none; border: 1.5px solid var(--orange); color: var(--white); }

/* The compare pair [⇄ 3] [× Clear], in the drawer and in the "Recently viewed" row. */
.cmp-go, .cmp-clear { display: inline-flex; align-items: center; gap: 0.45rem; font-weight: 650; white-space: nowrap; }
.cmp-go [data-compare-count] { font-size: 1.05rem; }
.cmp-clear { background: var(--white); border: 1.5px solid var(--orange); color: var(--navy); cursor: pointer; }
.cmp-clear:hover { background: #fff3e6; }
.recent-actions .cmp-go, .recent-actions .cmp-clear { min-height: 2.5rem; padding: 0.3rem 1rem; font-size: 0.95rem; }
.recent-head h2 { display: flex; align-items: center; gap: 0.45rem; }
.recent-head h2 .history-icon { color: var(--orange); }
.recent-foot { margin: 0.6rem 0 0; }

/* "Recently viewed" row: small photos, smaller than the "Similar yachts" cards. */
.recent { padding: 0.5rem 0 2.5rem; }
.recent-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 0.8rem; }
.recent-head h2 { font-size: 1.2rem; }
.link-btn { border: 0; background: none; padding: 0; color: var(--slate); font: inherit; font-size: 0.9rem; text-decoration: underline; cursor: pointer; }
.link-btn:hover { color: var(--navy); }
.recent-track {
  display: flex; gap: 0.9rem; overflow-x: auto; list-style: none; margin: 0; padding: 0 0 0.4rem;
  scroll-snap-type: x proximity; scrollbar-width: thin; cursor: grab;
}
.recent-track > li { flex: none; width: 7.5rem; scroll-snap-align: start; }
.recent-tile { display: grid; gap: 0.3rem; color: var(--navy); text-decoration: none; -webkit-user-drag: none; }
.recent-photo { display: block; aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; background: var(--mist); }
.recent-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.recent-tile:hover .recent-photo img { transform: scale(1.04); }
.recent-title { font-size: 0.85rem; font-weight: 600; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.recent-price { font-size: 0.8rem; color: var(--slate); }

/* Compare page. Phones: two columns in view, the others slide sideways; a pinned yacht (first column)
   stays put while the others slide past it. Each row's label runs across the full width above its values.
   PC: all yachts side by side, no Pin. */
.compare-page { padding-bottom: 3rem; }
.compare-page h1 { margin: 0.4rem 0 1rem; }
.compare-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.6rem 1rem; margin-bottom: 1.2rem; }
.compare-tools p { margin: 0; color: var(--slate); }
.compare-tools .btn[aria-pressed="true"] { border-color: var(--orange); }
.compare-scroll, .cmp-names { container-type: inline-size; }
.compare-scroll {
  overflow-x: auto; scroll-snap-type: x mandatory; border-top: 1px solid var(--line); -webkit-overflow-scrolling: touch;
}
.compare-scroll:has(.compare--pinned) { scroll-padding-left: 50%; }
.compare-scroll:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
.compare { border-collapse: separate; border-spacing: 0; table-layout: fixed; width: 100cqw; }
.compare--n3 { width: 150cqw; }
.compare--n4 { width: 200cqw; }
.compare th, .compare td { text-align: left; vertical-align: top; padding: 0.55rem 0.75rem; }
.compare td { border-bottom: 1px solid var(--line); font-weight: 600; color: var(--navy); padding-top: 0.15rem; }
.compare thead th { scroll-snap-align: start; padding-top: 1rem; padding-bottom: 0.9rem; font-weight: 400; border-bottom: 2px solid var(--navy); }
/* Pinned (phones): the first column stays at the left edge. */
.compare--pinned td:first-child, .compare--pinned thead th:first-child {
  position: sticky; left: 0; z-index: 2; background: var(--white); box-shadow: 1px 0 0 var(--line);
}
.compare--pinned thead th:first-child { background: #fff8f1; }
.cmp-photo-wrap { position: relative; margin-bottom: 0.5rem; }
.cmp-photo { display: block; aspect-ratio: 3 / 2; border-radius: var(--radius); overflow: hidden; background: var(--mist); }
.cmp-photo img { width: 100%; height: 100%; object-fit: cover; }
/* × in the corner of the photo: takes the yacht out of the comparison. */
.cmp-x {
  position: absolute; top: 0.35rem; right: 0.35rem; display: grid; place-items: center; width: 2rem; height: 2rem;
  border-radius: 50%; background: rgba(255, 255, 255, 0.94); color: var(--navy); box-shadow: 0 2px 6px rgba(20, 38, 61, 0.3);
}
.cmp-x:hover, .cmp-x:focus-visible { background: var(--navy); color: var(--white); }
.cmp-title { display: block; font-weight: 650; color: var(--navy); line-height: 1.25; text-decoration: none; }
.cmp-title:hover { text-decoration: underline; }
.cmp-ref { display: block; font-size: 0.85rem; color: var(--slate); margin-top: 0.2rem; }
/* Pin: an on / off switch (phones only). */
.cmp-pin {
  display: inline-flex; align-items: center; gap: 0.3rem; margin-top: 0.6rem; padding: 0.25rem 0.7rem 0.25rem 0.55rem;
  border: 1px solid var(--line); border-radius: 2rem; color: var(--navy); font-size: 0.88rem; font-weight: 600; text-decoration: none;
}
.cmp-pin.is-on { background: var(--orange); border-color: var(--orange); color: var(--navy); }
.pin-icon { fill: currentColor; }
.cmp-group th { padding-top: 1.4rem; font-size: 1.05rem; color: var(--navy); }
.cmp-label th { padding: 0.6rem 0.75rem 0; font-size: 0.8rem; font-weight: 600; color: var(--slate); }
/* Group and label text stays at the left edge while the columns slide sideways. */
.cmp-group th > span, .cmp-label th > span { position: sticky; left: 0.75rem; }
.cmp-values.is-same td { color: var(--slate); font-weight: 400; }
.cmp-none { color: var(--line); }
.compare-note { font-size: 0.85rem; color: var(--slate); margin-top: 1.2rem; }
/* Slim name bar: sticks to the top once the photos have scrolled away; slides sideways with the table. */
.cmp-names {
  position: sticky; top: 0; z-index: 6; overflow: hidden; height: 0; margin-bottom: 0;
  background: var(--white); box-shadow: 0 2px 6px rgba(20, 38, 61, 0.12); visibility: hidden;
}
.cmp-names.is-shown { height: auto; visibility: visible; }
.cmp-names-row { display: flex; width: 100cqw; }
.cmp-names-row.compare--n3 { width: 150cqw; }
.cmp-names-row.compare--n4 { width: 200cqw; }
.cmp-name {
  flex: 1 1 0; min-width: 0; padding: 0.45rem 0.75rem; font-size: 0.82rem; color: var(--slate); line-height: 1.25;
  border-bottom: 2px solid var(--navy); overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.cmp-name strong { color: var(--navy); }
.cmp-names-row:has(.is-pinned) .cmp-name:first-child { position: sticky; left: 0; z-index: 1; background: #fff8f1; box-shadow: 1px 0 0 var(--line); }
@media (min-width: 900px) {
  .compare, .compare--n3, .compare--n4, .cmp-names-row, .cmp-names-row.compare--n3, .cmp-names-row.compare--n4 { width: 100%; }
  .compare-scroll { scroll-snap-type: none; }
  .cmp-pin, .cmp-pin-hint { display: none; }
  .compare--pinned td:first-child, .compare--pinned thead th:first-child { position: static; box-shadow: none; }
  .compare--pinned thead th:first-child { background: none; }
  .cmp-names-row:has(.is-pinned) .cmp-name:first-child { position: static; background: var(--white); box-shadow: none; }
}

/* Build 05.4b: compare ticks in "Recently viewed", "This yacht", the Compare pill, the short note. */
.recent-actions { display: inline-flex; align-items: center; gap: 0.9rem; }
.btn--small { min-height: 2.2rem; padding: 0.3rem 0.9rem; font-size: 0.9rem; white-space: nowrap; }
.recent-head { flex-wrap: wrap; align-items: center; }
.recent-track > li { display: grid; align-content: start; gap: 0.35rem; }
.recent-cmp { display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.8rem; color: var(--slate); cursor: pointer; }
.recent-cmp input { width: 1rem; height: 1rem; margin: 0; accent-color: var(--orange); }
.recent-photo { position: relative; }
.recent-here {
  position: absolute; left: 0.3rem; bottom: 0.3rem; padding: 0.1rem 0.45rem; border-radius: 1rem;
  background: var(--navy); color: var(--white); font-size: 0.7rem; font-weight: 650;
}
.is-current .recent-photo { outline: 2px solid var(--navy); outline-offset: -2px; }
.cmp-toggle svg { flex: none; }
.cmp-toggle[aria-pressed="true"] { border-color: var(--orange); background: #fff3e6; }
.cmp-go-inline { font-weight: 650; font-size: 0.95rem; color: var(--orange-dark, #c25700); }
.cmp-go-inline[hidden], .recent-actions [hidden] { display: none !important; }
.mini-toast {
  position: fixed; left: 50%; bottom: calc(1.2rem + env(safe-area-inset-bottom)); z-index: 60; max-width: min(26rem, calc(100% - 2rem));
  margin: 0; padding: 0.7rem 1rem; border-radius: 0.6rem; background: var(--navy); color: var(--white); font-size: 0.92rem;
  box-shadow: 0 6px 20px rgba(10, 18, 30, 0.35); transform: translate(-50%, 1rem); opacity: 0; pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
}
.mini-toast.is-shown { opacity: 1; transform: translate(-50%, 0); }

/* Build 05.5: "New" and "Price reduced" badges, the old price, the compare share row, print, page not found. */
.badge--new { background: var(--white); color: var(--navy); box-shadow: inset 0 0 0 2px var(--orange); }
.badge--reduced { background: var(--orange); color: var(--navy); }
.buy-was { margin: -0.2rem 0 0.4rem; color: var(--slate); font-size: 0.95rem; }
.buy-was s { text-decoration-thickness: 2px; text-decoration-color: var(--orange); }
.compare-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1rem; }
.compare-share { display: inline-flex; flex-wrap: wrap; gap: 0.35rem; }
.share-btn--sheet:hover, .share-btn--sheet:focus-visible { background: #1d7044; }
.share-btn--print:hover, .share-btn--print:focus-visible { background: var(--navy); }
button.share-btn { cursor: pointer; }
.share-btn[hidden] { display: none; }
.print-only { display: none; }

/* Page not found: a sailing yacht rocking on two lines of waves. */
.lost { padding-top: 2rem; padding-bottom: 4rem; text-align: center; }
.lost-scene { max-width: 22rem; margin: 0 auto 1rem; overflow: hidden; }
.lost-svg { display: block; width: 100%; height: auto; }
.lost-mast { stroke: var(--navy); stroke-width: 3; stroke-linecap: round; }
.lost-sail { fill: #fff; stroke: var(--navy); stroke-width: 2.5; stroke-linejoin: round; }
.lost-sail--jib { fill: #f1f4f7; }
.lost-flag { fill: var(--orange); }
.lost-hull { fill: var(--navy); }
.lost-stripe { stroke: var(--orange); stroke-width: 3; }
.lost-wave--back { fill: #9fc3e3; }
.lost-wave--front { fill: #3f7bb3; }
.lost-boat { transform-box: fill-box; transform-origin: 50% 85%; animation: lost-rock 4.2s ease-in-out infinite; }
.lost-wave--back { animation: lost-roll 6s linear infinite; }
.lost-wave--front { animation: lost-roll 4s linear infinite reverse; }
@keyframes lost-rock { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(5px) rotate(3deg); } }
@keyframes lost-roll { from { transform: translateX(0); } to { transform: translateX(-80px); } }
@media (prefers-reduced-motion: reduce) { .lost-boat, .lost-wave { animation: none; } }
.lost h1 { max-width: 24ch; margin: 0 auto 0.6rem; }
.lost-text { max-width: 36rem; margin: 0 auto 1.4rem; color: var(--slate); }
.lost-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem; }
.lost-latest { margin-top: 3rem; text-align: left; }
.lost-latest h2 { margin-bottom: 1.2rem; }

/* Printing the comparison ("Print or save as PDF"): only the table, all yachts side by side. */
@media print {
  @page { size: A4 landscape; margin: 12mm; }
  body { background: #fff; }
  .site-header, .drawer, .to-top, .contact-drawer, .enquiry-dialog, .site-footer, .sample-notice, .crumbs,
  .compare-tools, .cmp-names, .cmp-x, .cmp-pin, .mini-toast { display: none !important; }
  .print-only { display: flex; }
  .print-head { align-items: center; justify-content: space-between; gap: 6mm; margin: 0 0 5mm; padding-bottom: 3mm; border-bottom: 1.5pt solid #ff7700; font-size: 9pt; color: #555; }
  .print-head img { height: 12mm; width: auto; }
  .compare-page { padding: 0; }
  .compare-page h1 { font-size: 18pt; margin: 0 0 3mm; }
  .compare-scroll { overflow: visible; border: 0; }
  .compare, .compare--n3, .compare--n4 { width: 100% !important; }
  .compare td:first-child, .compare thead th:first-child { position: static !important; box-shadow: none !important; background: none !important; }
  .compare th, .compare td { padding: 1.2mm 2mm; font-size: 9pt; }
  .compare tr { break-inside: avoid; }
  .cmp-photo { aspect-ratio: auto; height: 32mm; }
}
/* Page not found: smaller yacht cards (three narrow ones on PC, compact rows with the photo left on phones). */
.lost-latest { max-width: 54rem; margin-left: auto; margin-right: auto; }
.lost-latest .cards { grid-template-columns: repeat(auto-fill, minmax(min(100%, 14rem), 1fr)); gap: 1.5rem 1.2rem; }
.lost-latest .card-title { font-size: 1.02rem; }
.lost-latest .card-facts { font-size: 0.85rem; }
.lost-latest .card-price { font-size: 1rem; }
@media (max-width: 640px) {
  .lost-latest .card-link { display: grid; grid-template-columns: 40% 1fr; gap: 0.8rem; align-items: center; }
  .lost-latest .card-body { padding: 0; }
  .lost-latest .card-photo .badge { left: 0.35rem; top: 0.35rem; font-size: 0.7rem; }
  .lost-latest .choice-ribbon { display: none; }
  .lost-latest .fav-btn--card { width: 2rem; height: 2rem; right: auto; left: calc(40cqw - 2.4rem); top: calc(26.67cqw - 2.4rem); }
}

/* Build 06.1b: cookie banner in the style of ekmaryachting.com and charter.ekmaryachting.com (SureCookie):
   a dark bar across the bottom, text on the left, Preferences (outline), Decline and Accept All (gold, equal). */
.consent {
  --consent-bg: #161c2e; --consent-gold: #d8b25c;
  position: fixed; z-index: 70; left: 0; right: 0; bottom: 0; padding-bottom: env(safe-area-inset-bottom);
  background: var(--consent-bg); color: #e9edf3; box-shadow: 0 -6px 24px rgba(10, 18, 30, 0.35);
}
.consent[hidden] { display: none; }
.consent-bar { display: flex; align-items: center; gap: 1rem 2rem; padding: 1.1rem 1.5rem; }
.consent-text { flex: 1; margin: 0; font-size: 0.92rem; line-height: 1.5; }
.consent-actions { display: flex; gap: 0.5rem; flex: none; }
.consent-btn {
  min-height: 2.5rem; padding: 0.45rem 1rem; border-radius: 3px; border: 1px solid var(--consent-gold);
  background: var(--consent-gold); color: #161c2e; font: inherit; font-size: 0.92rem; font-weight: 500; cursor: pointer;
}
.consent-btn:hover, .consent-btn:focus-visible { background: #e6c578; border-color: #e6c578; }
.consent-btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.consent-btn--outline { background: transparent; border-color: #fff; color: #fff; }
.consent-btn--outline:hover, .consent-btn--outline:focus-visible { background: rgba(255, 255, 255, 0.1); border-color: #fff; }
.consent-prefs { padding: 0 1.5rem 1.1rem; border-top: 1px solid rgba(255, 255, 255, 0.12); }
.consent-prefs[hidden] { display: none; }
.consent-row { display: flex; gap: 0.6rem; align-items: flex-start; margin: 0.8rem 0 0; font-size: 0.9rem; line-height: 1.45; }
.consent-row input { flex: none; width: 1.1rem; height: 1.1rem; margin-top: 0.15rem; accent-color: var(--consent-gold); }
.consent-more { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: 0.9rem 0 0; font-size: 0.9rem; }
.consent-more a { color: var(--consent-gold); }
@media (max-width: 760px) {
  /* Phones: text on top, three full-width buttons below (as on the other two sites). */
  .consent-bar { display: block; padding: 1.1rem 1.25rem; }
  .consent-text { margin-bottom: 0.9rem; }
  .consent-actions { display: grid; gap: 0.6rem; }
  .consent-prefs { padding: 0 1.25rem 1rem; }
}
.footer-consent { color: inherit; font-size: inherit; }
.footer-consent[hidden] { display: none; }
/* Test mode (?ekmar_debug=1): a note per Google Analytics event, top left (clear of the cookie banner). */
.ga-note {
  position: fixed; left: 1rem; z-index: 90; max-width: 90vw; padding: 0.6rem 0.9rem; border-radius: 6px;
  color: #fff; font: 0.85rem/1.4 sans-serif; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3); background: #1e3a8a;
}
.ga-note--off { background: #b91c1c; }
@media print { .consent, .ga-note { display: none !important; } }
/* "Save" and "Compare" on the yacht page: space kept from the first paint (my-yachts.js shows them), so the
   line does not move when they appear. */
html.js .fav-btn--inline[hidden] { display: inline-flex !important; visibility: hidden; }

/* Build 06.3c/d: the visitor Menu panel and the Admin tools panel are wide everywhere (owner's choice after trying the three widths):
   almost the full width on phones (a thin strip of the page stays visible; a tap there closes the drawer),
   about 27 rem on computers. On computers the box height follows the list that is showing (drawer.js fitViews). */
[data-menu-drawer] .drawer-panel, .drawer--admin .drawer-panel { width: min(27rem, calc(100vw - 1.4rem)); }
@media (min-width: 900px) {
  .drawer-views { transition: height 0.25s ease; }
  .drawer-view[data-view="main"] { max-height: none; }
}
@media (prefers-reduced-motion: reduce) { .drawer-views { transition: none; } }

/* Build 06.3f: yacht cards and the "Recently viewed" tiles as white cards with a soft, navy-tinted shadow
   (yacht list, "Similar yachts", the 404 page). Text inside the card; on computers a small lift on hover. */
.card {
  background: var(--white); border-radius: var(--radius);
  box-shadow: 0 1px 3px rgba(20, 38, 61, 0.12), 0 6px 16px rgba(20, 38, 61, 0.1);
}
.card-photo { border-radius: var(--radius) var(--radius) 0 0; }
.card-body { padding: 0.8rem 0.95rem 1rem; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .card { transition: transform 0.2s ease, box-shadow 0.2s ease; }
  .card:hover {
    transform: translateY(-3px);
    box-shadow: 0 2px 6px rgba(20, 38, 61, 0.14), 0 12px 28px rgba(20, 38, 61, 0.16);
  }
}
@media (max-width: 640px) {
  .lost-latest .card-photo { border-radius: var(--radius) 0 0 var(--radius); }
  .lost-latest .card-body { padding: 0.5rem 0.7rem 0.5rem 0; }
}
/* "Recently viewed": each tile is a small card (photo, title, price, Compare tick), a lighter shadow.
   The row gets room around it so the shadows are not cut off, and more space above the heading. */
.recent { padding-top: 2rem; }
.recent-track { padding: 0.35rem 0.5rem 0.9rem; margin: 0 -0.5rem; scroll-padding-left: 0.5rem; }
.recent-track > li {
  width: 8.2rem; padding: 0 0 0.6rem; background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 1px 2px rgba(20, 38, 61, 0.1), 0 4px 10px rgba(20, 38, 61, 0.08);
}
/* Build 06.3g: like the big cards, the photo runs to the edges of the tile, the text sits inside. */
.recent-photo { border-radius: var(--radius) var(--radius) 0 0; }
.recent-title, .recent-price { padding: 0 0.55rem; }
.recent-tile { gap: 0.35rem; }
.recent-cmp { margin: 0 0.55rem; }
