@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/Barlow-400-ext.woff2') format('woff2'); unicode-range: U+0100-02FF,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/Barlow-400.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+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/Barlow-500-ext.woff2') format('woff2'); unicode-range: U+0100-02FF,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/Barlow-500.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+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/Barlow-600-ext.woff2') format('woff2'); unicode-range: U+0100-02FF,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/Barlow-600.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+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/Barlow-700-ext.woff2') format('woff2'); unicode-range: U+0100-02FF,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/Barlow-700.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+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/BarlowCondensed-500-ext.woff2') format('woff2'); unicode-range: U+0100-02FF,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/BarlowCondensed-500.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+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/BarlowCondensed-600-ext.woff2') format('woff2'); unicode-range: U+0100-02FF,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/BarlowCondensed-600.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+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/BarlowCondensed-700-ext.woff2') format('woff2'); unicode-range: U+0100-02FF,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/BarlowCondensed-700.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+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }

/* Power & Sail foundations, adapted for the Készlethajók identity. */
:root {
    --navy: #003056;
    --navy-deep: #001b30;
    --teal: #046985;
    --copper: #a44e29;
    --sand: #efc597;
    --page: #f8f6f2;
    --mist: #f2f6f8;
    --ink: #10202c;
    --muted: #4a5b66;
    --line: #dbe3e9;
    --radius: 20px;
    font-family: 'Barlow', sans-serif;
    color: var(--ink);
    background: var(--page);
    font-size: 17px;
    line-height: 1.55;
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: var(--teal); text-underline-offset: .2em; }
a:hover { color: var(--navy); }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; }
button, select, input[type='checkbox'] { cursor: pointer; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 4px; }
[hidden] { display: none !important; }
h1, h2, h3 { font-family: 'Barlow Condensed', sans-serif; color: var(--navy); text-transform: uppercase; line-height: 1.05; font-weight: 600; letter-spacing: -.015em; }
h1 { font-size: clamp(2.8rem, 5vw, 4.5rem); margin: .25em 0 .6em; }
h2 { font-size: clamp(2rem, 3vw, 3rem); margin: 0 0 .65em; }
h3 { font-size: 1.8rem; }
.container { width: min(1240px, calc(100% - 64px)); margin-inline: auto; }
.site-header { background: #fff; border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 32px; min-height: 100px; }
.logo { display: block; flex: 0 0 auto; width: 264px; max-width: 100%; color: var(--navy); text-decoration: none; line-height: 1; }
.logo img { width: 100%; height: auto; }
.logo small { display: block; font-family: 'Barlow', sans-serif; font-size: .65rem; font-weight: 500; letter-spacing: .13em; margin: 0 0 0 28%; }
.site-header nav, .header-tools, .footer-links { display: flex; align-items: center; gap: 24px; }
.site-header nav a, .header-tools a { text-decoration: none; color: var(--navy); font-size: .88rem; font-weight: 600; }
.site-header nav a:hover { color: var(--copper); }
.site-header .seller-link { padding: 10px 16px; border: 1px solid var(--line); border-radius: 8px; }
.header-tools { gap: 12px; }
.header-tools a[aria-current] { color: var(--copper); text-decoration: underline; text-underline-offset: 6px; }
.header-tools select { min-height: 40px; padding: 4px 8px; background: var(--mist); border: 0; }
.hero { background: var(--page); color: var(--ink); padding: 32px 0; }
.hero-intro { margin-bottom: 16px; }
.landing-links { margin: 0 0 8px; font-size: .9rem; color: var(--muted); }
.hero-intro h1 { margin: 0; color: var(--navy); font-size: clamp(1.8rem, 3vw, 2.6rem); line-height: 1.05; }
.eyebrow { text-transform: uppercase; letter-spacing: .15em; font-size: .72rem; font-weight: 700; color: var(--teal); margin: 0 0 12px; }
.hero-visual { position: relative; isolation: isolate; overflow: hidden; min-height: 360px; border-radius: var(--radius); background: var(--navy-deep); }
.hero-image { display: block; width: 100%; height: clamp(360px, 44vw, 560px); object-fit: cover; }
.hero-gradient { position: absolute; z-index: 0; inset: 24% 0 0; background: linear-gradient(0deg, rgb(3 20 32 / 94%) 0%, rgb(3 20 32 / 76%) 34%, rgb(3 20 32 / 0%) 100%); }
.hero-offer { position: absolute; z-index: 1; right: 32px; bottom: 28px; left: 32px; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 24px; }
.hero-offer-details { min-width: 0; }
.hero-offer-heading { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 14px; margin-bottom: 8px; }
.hero-offer-heading h2 { min-width: 0; margin: 0; color: #fff; font-size: clamp(1.7rem, 3vw, 2.7rem); line-height: 1.05; overflow-wrap: anywhere; }
.hero-propulsion { flex: 0 0 auto; border: 1px solid #ffffff80; border-radius: 999px; padding: 4px 10px; color: #fff; font-size: .76rem; }
.hero-price { margin: 0; color: #fff; font-family: 'Barlow Condensed', sans-serif; font-size: clamp(1.7rem, 3vw, 2.5rem); font-weight: 600; line-height: 1.1; overflow-wrap: anywhere; }
.hero-price span { color: #fff; font-family: 'Barlow', sans-serif; font-size: .88rem; font-weight: 500; }
.hero-price small { display: block; margin-top: 4px; color: #e0e7ec; font-family: 'Barlow', sans-serif; font-size: .72rem; font-weight: 400; }
.hero-empty { margin-top: 16px; color: var(--muted); }
#quick-search { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)) auto auto; gap: 16px; align-items: end; margin-top: 24px; padding: 18px 20px; border-radius: 14px; background: #fff; color: var(--navy); }
#quick-search label { display: grid; gap: 8px; font-size: .8rem; font-weight: 600; }
#quick-search-count { margin: 0; font-size: .8rem; color: var(--muted); white-space: nowrap; }
#quick-search .button { align-self: center; }
.button, .cookie-panel button { display: inline-flex; justify-content: center; align-items: center; min-height: 48px; border: 0; border-radius: 8px; padding: 12px 24px; background: var(--copper); color: #fff; font-weight: 600; text-decoration: none; cursor: pointer; transition: background 160ms ease; }
.button:hover, .cookie-panel button:hover { background: #833a1b; color: #fff; }
.section { padding-block: 64px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.section-heading h2 { margin-bottom: 0; }
.section-heading > a { font-size: .9rem; font-weight: 600; white-space: nowrap; }
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.boat-card { min-width: 0; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; overflow: hidden; transition: box-shadow 160ms ease, border-color 160ms ease; }
.boat-card:hover { border-color: #c3d0d8; box-shadow: 0 8px 24px #00305612; }
.boat-card > a { display: flex; flex-direction: column; height: 100%; color: var(--ink); text-decoration: none; }
.boat-card img, .image-placeholder { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.image-placeholder { display: grid; place-items: center; background: var(--mist); color: var(--muted); font-family: 'Barlow Condensed', sans-serif; font-size: 1.8rem; text-transform: uppercase; }
.card-content { display: flex; flex-wrap: wrap; align-content: start; gap: 8px; padding: 24px; flex: 1; }
.card-content .eyebrow, .card-content h3, .spec-line, .card-content .price, .card-content > small { width: 100%; margin: 0; }
.card-content .eyebrow { font-size: .67rem; }
.card-content h3 { font-size: 1.85rem; margin-bottom: 8px; overflow-wrap: anywhere; }
.spec-line { font-size: .88rem; color: var(--muted); line-height: 1.6; }
.price { color: var(--navy); font-family: 'Barlow Condensed', sans-serif; font-size: 2rem; font-weight: 600; line-height: 1.2; }
.card-content .price { margin-top: 12px; padding-top: 16px; border-top: 1px solid var(--line); }
.price del { display: block; color: var(--muted); font-family: 'Barlow', sans-serif; font-size: .8rem; font-weight: 400; margin-bottom: 4px; }
.price small { display: block; font-family: 'Barlow', sans-serif; font-size: .75rem; font-weight: 400; color: var(--muted); margin-top: 6px; }
.card-content > small { color: var(--muted); font-size: .7rem; }
.badge { display: inline-block; border-radius: 999px; padding: 5px 12px; background: #ddeef2; color: var(--teal); font-size: .7rem; font-weight: 600; }
input:not([type='checkbox']), select, textarea { width: 100%; min-width: 0; min-height: 48px; padding: 10px 12px; border: 1px solid #c3d0d8; border-radius: 8px; background: #fff; color: var(--ink); }
textarea { resize: vertical; min-height: 120px; }
input[type='checkbox'] { width: 18px; height: 18px; flex: 0 0 auto; accent-color: var(--teal); }
.filters { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; align-items: end; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin: 32px 0 24px; }
.filters label, .contact-card label, .intake-form label { display: grid; gap: 8px; font-size: .85rem; font-weight: 500; }
.filters label:has(input[type='checkbox']) { display: flex; align-items: center; min-height: 48px; }
.filters > a { align-self: center; font-size: .85rem; }
.sail-filters { display: contents; }
.filter-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-block: 20px; }
.filter-chips a { border: 1px solid var(--line); border-radius: 999px; background: #fff; padding: 6px 14px; text-decoration: none; font-size: .8rem; }
.boat-detail > nav { font-size: .8rem; color: var(--muted); margin-bottom: 32px; }
.boat-detail h1 { max-width: 1000px; }
.gallery { display: flex; overflow-x: auto; gap: 16px; margin: 32px 0 48px; scroll-snap-type: x mandatory; padding-bottom: 12px; }
.gallery a { flex: 0 0 auto; max-width: 100%; scroll-snap-align: start; border-radius: var(--radius); overflow: hidden; }
.gallery img { height: 440px; width: auto; max-width: 100%; object-fit: cover; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; align-items: start; gap: 64px; }
.detail-grid > div > h2:not(:first-child) { margin-top: 40px; }
.specs { display: grid; grid-template-columns: 1fr 1fr; background: #fff; border-radius: 14px; padding: 12px 24px; }
.specs dt, .specs dd { margin: 0; padding: 14px 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.specs dt { color: var(--muted); }
.specs dd { font-weight: 600; text-align: right; padding-left: 16px; }
.specs dt:nth-last-child(2), .specs dd:last-child { border: 0; }
.contact-card { background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--navy); padding: 28px; border-radius: var(--radius); }
.contact-card > .price { font-size: 2.8rem; margin: 20px 0 8px; }
.contact-card > p { overflow-wrap: anywhere; }
.contact-card form { display: grid; gap: 16px; margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--line); }
.check { display: flex !important; align-items: start; }
.honeypot { position: absolute; left: -10000px; }
.notice { padding: 16px 20px; border-radius: 8px; background: #def0e7; color: #174b3a; }
.prose { line-height: 1.8; max-width: 75ch; overflow-wrap: anywhere; }
.prose h2, .prose h3 { margin-top: 32px; }
.boat-detail > h2 { margin-top: 64px; }
.intake-form { display: grid; gap: 20px; max-width: 720px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; margin-top: 32px; }
.intake-form label:has(input[type='checkbox']) { display: block; }
footer { background: var(--navy-deep); color: #dbe3e9; padding: 56px 0; }
footer strong { font-family: 'Barlow Condensed', sans-serif; font-size: 2rem; text-transform: uppercase; color: #fff; }
footer p { max-width: 700px; font-size: .85rem; }
.footer-links { flex-wrap: wrap; margin-top: 32px; gap: 16px 24px; font-size: .8rem; }
.footer-links a, .footer-links button { color: #dbe3e9; }
.footer-links button { padding: 0; background: none; border: 0; text-decoration: underline; cursor: pointer; }
.cookie-panel { position: fixed; bottom: 20px; left: 20px; width: min(440px, calc(100% - 40px)); max-height: calc(100dvh - 40px); overflow: auto; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 24px; box-shadow: 0 12px 32px #00305624; z-index: 10; font-size: .85rem; }
.cookie-panel button { font-size: .85rem; margin: 4px 8px 0 0; padding: 10px 18px; }
.cookie-panel button:first-of-type { background: var(--mist); color: var(--navy); }
nav[role='navigation'] { margin-top: 32px; }
nav[role='navigation'] svg { display: inline-block; width: 20px; height: 20px; vertical-align: middle; }
nav[role='navigation'] a, nav[role='navigation'] [aria-current] { display: inline-block; padding: 8px 12px; }
nav[role='navigation'] .hidden { display: none; }
@media (max-width: 1050px) {
    .header-row { gap: 20px; flex-wrap: wrap; padding-block: 20px; }
    .site-header nav { order: 3; width: 100%; justify-content: center; }
    .hero-image { height: 420px; }
    .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .detail-grid { grid-template-columns: minmax(0, 1fr) 330px; gap: 32px; }
    .filters { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    #quick-search { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    #quick-search .button { justify-self: start; }
}
@media (max-width: 760px) {
    .container { width: calc(100% - 32px); }
    .header-row { gap: 16px; }
    .logo { width: 220px; }
    .header-tools { gap: 8px; }
    .header-tools a { font-size: .75rem; }
    .site-header nav { gap: 16px; justify-content: space-between; }
    .site-header nav a { font-size: .8rem; }
    .site-header .seller-link { border: 0; padding: 0; }
    .hero { padding: 24px 0; }
    .hero-intro { margin-bottom: 14px; }
    .hero-intro h1 { font-size: clamp(1.7rem, 7vw, 2.25rem); }
    .hero-visual { min-height: 320px; }
    .hero-image { height: clamp(320px, 92vw, 390px); }
    .hero-gradient { inset: 16% 0 0; }
    .hero-offer { right: 16px; bottom: 16px; left: 16px; grid-template-columns: minmax(0, 1fr); gap: 12px; }
    .hero-offer-heading { gap: 6px 10px; margin-bottom: 6px; }
    .hero-offer-heading h2 { font-size: clamp(1.45rem, 6vw, 1.9rem); }
    .hero-propulsion { font-size: .7rem; }
    .hero-price { font-size: 1.8rem; }
    .hero-price span { font-size: .78rem; }
    .hero-offer > .button { justify-self: start; max-width: 100%; }
    #quick-search { grid-template-columns: 1fr; padding: 18px; gap: 14px; margin-top: 20px; }
    #quick-search .button { justify-self: stretch; }
    .section { padding-block: 40px; }
    .section-heading { gap: 16px; align-items: start; }
    .section-heading > a { font-size: .8rem; }
    .card-grid { gap: 16px; }
    .card-content { padding: 20px; }
    .filters { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; padding: 20px; }
    .detail-grid { grid-template-columns: 1fr; gap: 32px; }
    .gallery { margin-block: 24px; }
    .gallery img { height: 280px; }
    .contact-card { padding: 24px; }
    .intake-form { padding: 24px; }
    .cookie-panel { bottom: 12px; left: 12px; width: calc(100% - 24px); padding: 20px; }
}
@media (max-width: 520px) {
    .card-grid { grid-template-columns: 1fr; }
    .filters { grid-template-columns: 1fr; }
    .header-tools select { padding-inline: 4px; }
    .section-heading { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}

/* Catalogue and boat-detail layouts. */
.inventory-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 40px; align-items: start; }
.filter-sidebar { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.filter-sidebar h2, #filter-panel h2 { font-size: 1.8rem; margin-bottom: 24px; }
#inventory-filters { display: grid; grid-template-columns: 1fr; border: 0; padding: 0; margin: 0; background: transparent; }
.inventory-results { min-width: 0; }
.inventory-results .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.results-toolbar { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; margin-bottom: 24px; }
.results-toolbar > p { margin: 0 auto 0 0; color: var(--navy); font-weight: 600; }
.results-toolbar label { display: flex; gap: 12px; align-items: center; font-size: .85rem; }
.results-toolbar select { width: auto; max-width: 230px; }
.sort-submit, .dialog-heading button, .photo-controls button { border: 1px solid var(--line); border-radius: 8px; color: var(--navy); background: #fff; padding: 10px 16px; min-height: 44px; cursor: pointer; }
.sort-submit { font-size: .8rem; }
.filter-toggle { display: none; margin-bottom: 24px; }
dialog { color: var(--ink); background: #fff; border: 0; border-radius: var(--radius); padding: 24px; max-height: calc(100dvh - 32px); max-width: calc(100% - 32px); box-shadow: 0 12px 32px #00305624; }
dialog::backdrop { background: #001b30b8; }
body:has(dialog[open]) { overflow: hidden; }
.dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 20px; }
.dialog-heading h2, .dialog-heading p { margin: 0; }
#filter-dialog { width: 420px; }
#filter-dialog #filter-panel h2 { display: none; }
.key-specs { display: flex; flex-wrap: wrap; gap: 16px; margin: 24px 0 32px; }
.key-specs > div { background: #fff; border-radius: 14px; padding: 16px 24px; min-width: 140px; }
.key-specs dt { font-size: .75rem; color: var(--muted); }
.key-specs dd { font-family: 'Barlow Condensed', sans-serif; font-size: 1.65rem; color: var(--navy); margin: 4px 0 0; font-weight: 600; }
.boat-gallery { margin-bottom: 48px; }
.gallery-main { display: block; position: relative; border-radius: 22px; overflow: hidden; background: var(--navy-deep); }
.gallery-main > img { width: 100%; height: min(56vw, 610px); object-fit: contain; }
.gallery-expand { position: absolute; right: 20px; bottom: 20px; padding: 10px 18px; border-radius: 8px; background: #fff; color: var(--navy); font-size: .85rem; font-weight: 600; }
.gallery-thumbnails { display: flex; gap: 12px; overflow-x: auto; padding: 12px 4px; }
.gallery-thumbnails a { flex: 0 0 110px; border: 3px solid transparent; border-radius: 12px; overflow: hidden; }
.gallery-thumbnails a[aria-current] { border-color: var(--copper); }
.gallery-thumbnails img { width: 100%; height: 76px; object-fit: cover; }
.gallery-empty { padding: 64px 24px; text-align: center; border-radius: var(--radius); background: var(--mist); margin-block: 32px; }
#photo-dialog { width: min(1100px, calc(100% - 32px)); background: var(--navy-deep); color: #fff; }
#photo-dialog > img { width: 100%; height: min(65dvh, 760px); object-fit: contain; }
.photo-controls { display: flex; justify-content: space-between; gap: 16px; margin-top: 16px; }
.contact-card { position: sticky; top: 24px; max-height: calc(100dvh - 48px); overflow-y: auto; scroll-margin-top: 24px; }
.enquiry-choice { border: 0; margin: 0; padding: 0; display: grid; gap: 8px; }
.enquiry-choice legend { font-weight: 600; margin-bottom: 12px; }
.enquiry-choice label { display: flex; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; }
.enquiry-choice label:has(:checked) { background: var(--mist); border-color: var(--teal); color: var(--navy); }
.enquiry-choice input[type='radio'] { width: 18px; height: 18px; min-height: 0; padding: 0; margin: 0; accent-color: var(--teal); }
.viewing-note { font-size: .8rem; color: var(--muted); margin-top: 0; }
.mobile-enquiry { display: none; }
.check span { min-width: 0; font-weight: 400; }
.card-content { flex-direction: column; flex-wrap: nowrap; align-items: start; }
.card-content .badge { width: auto; }
.card-content .price { margin-top: auto; }
.card-content .spec-line { margin-bottom: 12px; }
.site-header .seller-link { background: var(--copper); color: #fff; border-color: var(--copper); }
.site-header .seller-link:hover { background: #833a1b; color: #fff; }
.site-header nav a[aria-current='page'] { text-decoration: underline; text-underline-offset: 6px; }
@media (max-width: 1050px) {
    .inventory-layout { grid-template-columns: 230px minmax(0, 1fr); gap: 24px; }
    .filter-sidebar { padding: 20px; }
}
@media (max-width: 900px) {
    .inventory-layout { grid-template-columns: 1fr; }
    .filter-drawer-ready .filter-sidebar { display: none; }
    .filter-drawer-ready .filter-toggle { display: inline-flex; }
    #filter-dialog { margin: 0 0 0 auto; max-height: 100dvh; height: 100dvh; max-width: 100%; border-radius: 20px 0 0 20px; }
}
@media (max-width: 760px) {
    .contact-card { position: static; max-height: none; overflow: visible; }
    .gallery-main > img { height: 65vw; min-height: 220px; }
    .gallery-expand { right: 12px; bottom: 12px; padding: 8px 12px; }
    .gallery-thumbnails a { flex-basis: 84px; }
    .gallery-thumbnails img { height: 60px; }
    .key-specs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .key-specs > div { min-width: 0; padding: 14px 18px; }
    .mobile-enquiry { position: fixed; bottom: 0; left: 0; right: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 16px max(12px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: #fff; box-shadow: 0 -4px 20px #0030560d; }
    .mobile-enquiry > span { font-family: 'Barlow Condensed', sans-serif; font-size: 1.6rem; font-weight: 600; color: var(--navy); line-height: 1.1; }
    .mobile-enquiry small { display: block; font-family: 'Barlow', sans-serif; font-size: .7rem; font-weight: 400; margin-top: 4px; }
    body:has(.mobile-enquiry) { padding-bottom: 100px; }
    .site-header .seller-link { padding: 8px 12px; }
    .site-header nav { flex-wrap: wrap; }
    .results-toolbar label { flex-wrap: wrap; }
}
@media (max-width: 520px) {
    .inventory-results .card-grid { grid-template-columns: 1fr; }
    .results-toolbar > p { flex-basis: 100%; }
    .results-toolbar select { max-width: 100%; }
    .photo-controls button { padding-inline: 12px; }
}
.card-specs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; width: 100%; margin: 8px 0 20px; }
.card-specs dt { color: var(--muted); font-size: .7rem; }
.card-specs dd { margin: 2px 0 0; font-size: .9rem; font-weight: 500; overflow-wrap: anywhere; }

/* Brand quicklinks replace the homepage brand select. */
#quick-search { grid-template-columns: repeat(2, minmax(0, 1fr)) auto auto; }
@media (max-width: 1050px) {
    #quick-search { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    #quick-search-count { grid-column: 1; }
    #quick-search .button { grid-column: 2; grid-row: 2; }
}
.brand-section { padding-block: 40px; background: #fff; border-bottom: 1px solid var(--line); }
.brand-section h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); }
.brand-controls { display: flex; gap: 8px; }
.brand-controls button { width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 8px; background: var(--mist); color: var(--navy); cursor: pointer; }
.brand-controls button:disabled { opacity: .4; cursor: default; }
.brand-links { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 80px) / 6); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 4px 16px; }
.brand-link { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 20px 12px; border: 1px solid transparent; border-radius: 14px; text-align: center; text-decoration: none; color: var(--navy); font-size: .9rem; scroll-snap-align: start; }
.brand-link:hover, .brand-link:focus-visible { border-color: var(--line); background: var(--mist); color: var(--copper); }
.brand-logo { display: flex; align-items: center; justify-content: center; width: 100%; height: 80px; }
.brand-logo img { width: 100%; height: 80px; object-fit: contain; }
.brand-wordmark { font-family: 'Barlow Condensed', sans-serif; text-transform: uppercase; font-weight: 600; font-size: 1.7rem; }
@media (max-width: 1050px) {
    .brand-links { grid-auto-columns: calc((100% - 48px) / 4); }
}
@media (max-width: 760px) {
    #quick-search { grid-template-columns: 1fr; }
    #quick-search-count, #quick-search .button { grid-column: auto; grid-row: auto; }
    .brand-section { padding-block: 28px; }
    .brand-section .section-heading { flex-wrap: nowrap; }
    .brand-links { grid-auto-columns: 145px; gap: 12px; }
    .brand-link { padding: 16px 12px; }
}

/* Homepage quick search: price and length fields */
#quick-search { display: grid; grid-template-columns: 1fr; gap: 16px; }
.quick-search-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; }
#quick-search input { width: 100%; min-width: 0; }
.quick-search-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
@media (max-width: 520px) { .quick-search-actions .button { flex: 1 1 100%; } }

/* Homepage: sell banner and how-to-buy */
.sell-banner { background: var(--navy); color: #fff; padding-block: 36px; }
.sell-banner .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.sell-banner h2 { margin: 0 0 6px; color: #fff; }
.sell-banner p { margin: 0; max-width: 620px; color: #dbe3e9; }
.how-to-buy { padding-block: 64px; }
.steps { list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 0; padding: 0; }
.steps li { counter-increment: step; position: relative; padding: 24px; border-radius: 14px; background: #fff; border: 1px solid #dde4ea; }
.steps li::before { content: counter(step); display: inline-grid; place-items: center; width: 36px; height: 36px; margin-bottom: 12px; border-radius: 50%; background: var(--teal); color: #fff; font-weight: 700; }
.steps h3 { margin: 0 0 8px; }
.steps p { margin: 0; }
.how-to-buy-note { margin-top: 20px; font-size: .85rem; color: var(--muted); }
@media (max-width: 760px) {
    .steps { grid-template-columns: 1fr; gap: 16px; }
    .how-to-buy { padding-block: 40px; }
    .sell-banner .container .button { width: 100%; text-align: center; }
}

/* Footer contact details */
.footer-contact { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 16px; font-style: normal; font-size: .85rem; }
.footer-contact a { color: #dbe3e9; }
