:root {
  --red: #d71920;
  --red-dark: #a90e15;
  --ink: #111;
  --muted: #6d6d70;
  --paper: #f7f6f4;
  --line: rgba(17,17,17,.12);
  --sans: "DM Sans", Arial, sans-serif;
  --display: "Manrope", Arial, sans-serif;
  --serif: Georgia, "Times New Roman", serif;
  font-family: var(--sans);
  color: var(--ink);
  background: #fff;
}

* { box-sizing: border-box; }
body { margin: 0; font-family: var(--sans); line-height: 1.6; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid rgba(215,25,32,.42); outline-offset: 3px; }
.container { width: min(1190px, calc(100% - 48px)); margin-inline: auto; }
.announcement { padding: 8px 20px; background: var(--red); color: #fff; text-align: center; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; }
.site-header { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid rgba(17,17,17,.07); background: rgba(255,255,255,.96); backdrop-filter: blur(16px); }
.nav-wrap { height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 25px; }
.brand { display: inline-flex; align-items: center; gap: 11px; flex-shrink: 0; }
.brand img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; }
.brand-wordmark { font: 800 1.18rem/1 var(--display); letter-spacing: -.055em; }
.brand-wordmark span { color: var(--red); }
.brand-tag { display: block; margin-top: 5px; color: var(--muted); font-size: .53rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.nav-links { display: flex; align-items: center; gap: clamp(13px, 2vw, 26px); }
.nav-links a { font-size: .76rem; font-weight: 600; }
.nav-links a:hover { color: var(--red); }
.nav-cta { padding: 12px 17px; background: var(--ink); color: white; }
.nav-cta:hover { background: var(--red); color: white !important; }
.menu-toggle { display: none; width: 43px; height: 43px; border: 1px solid var(--line); background: white; font-size: 1.25rem; }
.page-hero { position: relative; overflow: hidden; padding: 78px 0 69px; background: var(--ink); color: white; }
.page-hero::after { position: absolute; top: -160px; right: 7%; width: 390px; height: 390px; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; box-shadow: 0 0 0 54px rgba(255,255,255,.025),0 0 0 108px rgba(255,255,255,.02); content: ""; pointer-events: none; }
.eyebrow { color: #ff686d; font-size: .7rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.page-hero h1 { position: relative; z-index: 1; margin: 12px 0 13px; font: 500 clamp(3rem, 7vw, 5.7rem)/1 var(--serif); letter-spacing: -.06em; }
.page-hero h1 span { color: #ff343d; font-style: italic; }
.page-hero p { position: relative; z-index: 1; max-width: 610px; margin: 0; color: rgba(255,255,255,.7); }
.toolbar { padding: 28px 0 0; }
.toolbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.results-count { color: var(--muted); font-size: .77rem; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; }
.filters input, .filters select { min-width: 170px; min-height: 43px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 0; background: white; color: var(--ink); font-size: .78rem; }
.listing-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 22px; padding: 27px 0 80px; }
.listing-card { overflow: hidden; border: 1px solid rgba(17,17,17,.08); background: white; transition: transform .25s, box-shadow .25s; }
.listing-card:hover { transform: translateY(-4px); box-shadow: 0 18px 45px rgba(0,0,0,.1); }
.listing-media { position: relative; aspect-ratio: 1.28; overflow: hidden; background: #e8e5e2; }
.listing-media img, .listing-media video { width: 100%; height: 100%; object-fit: cover; }
.listing-media video { background: #111; }
.media-placeholder { width: 100%; height: 100%; display: grid; place-items: center; padding: 25px; background: linear-gradient(140deg,#211f20,#434042); color: white; text-align: center; }
.media-placeholder span { display: block; color: #ff686d; font-size: .67rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.media-placeholder strong { display: block; margin-top: 8px; font: 500 1.8rem var(--serif); }
.listing-condition { position: absolute; top: 14px; left: 14px; padding: 6px 9px; background: white; font-size: .6rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.media-controls { position: absolute; right: 12px; bottom: 12px; left: 12px; display: flex; align-items: center; justify-content: space-between; pointer-events: none; }
.media-control { width: 35px; height: 35px; border: 0; background: rgba(17,17,17,.8); color: white; cursor: pointer; pointer-events: auto; }
.media-position { padding: 4px 8px; background: rgba(17,17,17,.75); color: white; font-size: .64rem; }
.listing-info { padding: 19px 19px 20px; }
.listing-info h2 { margin: 4px 0 8px; font: 600 1.17rem var(--display); letter-spacing: -.02em; }
.listing-subtitle { color: var(--muted); font-size: .7rem; }
.listing-price { margin: 11px 0 14px; font: 700 1.32rem var(--display); }
.listing-price small { display: block; color: var(--muted); font: 500 .63rem var(--sans); }
.listing-specs { display: flex; flex-wrap: wrap; gap: 7px; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); color: #555; font-size: .67rem; }
.listing-specs span:not(:last-child)::after { margin-left: 7px; color: #c5c5c5; content: "·"; }
.listing-location { margin: 13px 0 0; color: var(--muted); font-size: .7rem; }
.listing-action { width: 100%; min-height: 45px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; margin-top: 15px; border: 1px solid var(--ink); background: var(--ink); color: white; font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; transition: .2s; }
.listing-action:hover { border-color: var(--red); background: var(--red); }
.empty-state, .error-state { grid-column: 1/-1; padding: 56px 25px; border: 1px solid var(--line); background: var(--paper); text-align: center; }
.empty-state h2, .error-state h2 { margin: 0 0 7px; font: 500 2rem var(--serif); }
.empty-state p, .error-state p { margin: 0; color: var(--muted); font-size: .83rem; }
.error-state button { margin-top: 18px; padding: 11px 16px; border: 0; background: var(--ink); color: white; cursor: pointer; }
.trust-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; background: var(--line); border-top: 1px solid var(--line); }
.trust-item { padding: 30px 28px; background: var(--paper); }
.trust-item strong { display: block; margin-bottom: 6px; font: 700 .88rem var(--display); }
.trust-item p { margin: 0; color: var(--muted); font-size: .76rem; }
.site-footer { padding: 25px 0; background: #101010; color: rgba(255,255,255,.65); font-size: .72rem; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.site-footer a:hover { color: white; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.cookie-banner { position: fixed; right: 92px; bottom: 20px; z-index: 40; width: min(590px, calc(100% - 32px)); display: flex; align-items: center; justify-content: space-between; gap: 25px; padding: 19px 21px; border: 1px solid rgba(17,17,17,.1); background: white; box-shadow: 0 12px 45px rgba(0,0,0,.2); }
.cookie-banner[hidden] { display: none; }
.cookie-banner strong { display: block; font: 700 .88rem var(--display); }
.cookie-banner p { margin: 4px 0 0; color: var(--muted); font-size: .73rem; line-height: 1.5; }
.cookie-banner a { color: var(--red-dark); text-decoration: underline; text-underline-offset: 2px; }
.cookie-dismiss { flex: 0 0 auto; min-height: 42px; padding: 0 16px; border: 0; background: var(--ink); color: white; font-size: .69rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; cursor: pointer; }
.cookie-dismiss:hover { background: var(--red); }

.detail-main { padding: 45px 0 85px; }
.breadcrumbs { margin-bottom: 24px; color: var(--muted); font-size: .72rem; }
.breadcrumbs a:hover { color: var(--red); }
.detail-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: start; }
.gallery-stage { position: relative; display: grid; min-height: 330px; aspect-ratio: 1.3; place-items: center; overflow: hidden; background: #e9e7e4; }
.gallery-stage img, .gallery-stage video { width: 100%; height: 100%; max-height: 650px; object-fit: contain; background: #171717; }
.gallery-stage .media-placeholder { position: absolute; inset: 0; }
.gallery-arrow { position: absolute; top: 50%; width: 42px; height: 42px; border: 0; background: rgba(17,17,17,.82); color: white; font-size: 1.25rem; cursor: pointer; transform: translateY(-50%); }
.gallery-arrow.prev { left: 13px; }
.gallery-arrow.next { right: 13px; }
.gallery-count { position: absolute; right: 12px; bottom: 12px; padding: 5px 9px; background: rgba(17,17,17,.78); color: white; font-size: .7rem; }
.gallery-thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; }
.gallery-thumb { width: 82px; height: 62px; flex: 0 0 82px; padding: 0; overflow: hidden; border: 2px solid transparent; background: #eee; cursor: pointer; }
.gallery-thumb[aria-current="true"] { border-color: var(--red); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.detail-kicker { color: var(--red); font-size: .68rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
.detail-copy h1 { margin: 6px 0 3px; font: 500 clamp(2.4rem,4vw,3.8rem)/1.07 var(--serif); letter-spacing: -.05em; }
.detail-meta { color: var(--muted); font-size: .8rem; }
.detail-price { margin: 25px 0 6px; font: 700 1.8rem var(--display); }
.detail-price-note { margin: 0; color: var(--muted); font-size: .72rem; }
.detail-summary { margin: 20px 0; color: #555; font-size: .87rem; }
.detail-cta { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0; }
.button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 17px; border: 1px solid var(--ink); background: var(--ink); color: white; font-size: .7rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.button:hover { border-color: var(--red); background: var(--red); }
.button-secondary { background: white; color: var(--ink); }
.spec-section { margin-top: 36px; }
.spec-section h2 { margin: 0 0 15px; font: 500 1.7rem var(--serif); }
.spec-grid { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.spec-item { padding: 13px 8px 13px 0; border-bottom: 1px solid var(--line); }
.spec-item span { display: block; color: var(--muted); font-size: .64rem; text-transform: uppercase; letter-spacing: .08em; }
.spec-item strong { font-size: .8rem; font-weight: 600; }
.feature-list { display: flex; flex-wrap: wrap; gap: 8px; }
.feature-chip { padding: 7px 10px; background: var(--paper); font-size: .7rem; }
.loan-card { margin-top: 32px; padding: 23px; border: 1px solid var(--line); background: var(--paper); }
.loan-card h2 { margin: 0 0 5px; font: 500 1.65rem var(--serif); }
.loan-card > p { margin: 0 0 18px; color: var(--muted); font-size: .73rem; }
.loan-controls { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.loan-controls label { display: grid; gap: 6px; font-size: .68rem; font-weight: 700; }
.loan-controls select, .loan-controls input { width: 100%; min-height: 41px; padding: 8px; border: 1px solid var(--line); background: white; }
.loan-result { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.loan-result span { display: block; color: var(--muted); font-size: .68rem; }
.loan-result strong { font: 700 1.3rem var(--display); }
.loan-disclaimer { margin: 14px 0 0 !important; font-size: .66rem !important; }
.slot-loading { padding: 40px; color: var(--muted); text-align: center; }
.flash { min-height: 1.3em; margin: 5px 0 0; color: var(--red-dark); font-size: .76rem; }
.no-scroll { overflow: hidden; }
.admin-main { padding: 48px 0 80px; }
.admin-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 27px; }
.admin-heading h1 { margin: 5px 0 0; font: 500 clamp(2.2rem,4vw,3.8rem)/1.08 var(--serif); letter-spacing: -.05em; }
.admin-card { margin-bottom: 22px; padding: 26px; border: 1px solid var(--line); background: white; }
.admin-card h2 { margin: 0 0 7px; font: 500 1.65rem var(--serif); }
.admin-card > p { margin: 0 0 21px; color: var(--muted); font-size: .79rem; }
.admin-form { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.admin-field { display: grid; align-content: start; gap: 6px; }
.admin-field.full { grid-column: 1/-1; }
.admin-field label { font-size: .66rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.admin-field input, .admin-field select, .admin-field textarea { width: 100%; min-height: 44px; padding: 10px 11px; border: 1px solid var(--line); border-radius: 0; background: #fff; }
.admin-field textarea { min-height: 100px; resize: vertical; }
.admin-actions { display: flex; flex-wrap: wrap; gap: 10px; grid-column: 1/-1; }
.admin-actions button, .admin-button { min-height: 43px; padding: 0 16px; border: 0; background: var(--ink); color: white; font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; }
.admin-actions button:hover, .admin-button:hover { background: var(--red); }
.admin-actions .secondary { border: 1px solid var(--line); background: white; color: var(--ink); }
.admin-actions .secondary:hover { border-color: var(--red); background: white; color: var(--red); }
.admin-list { display: grid; gap: 10px; }
.admin-listing { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px; border: 1px solid var(--line); background: #fff; }
.admin-listing strong { display: block; font-size: .85rem; }
.admin-listing span { display: block; color: var(--muted); font-size: .68rem; }
.admin-listing-actions { display: flex; flex-wrap: wrap; gap: 7px; }
.admin-listing-actions button { padding: 8px 10px; border: 1px solid var(--line); background: #fff; font-size: .65rem; cursor: pointer; }
.admin-listing-actions button:hover { border-color: var(--red); color: var(--red); }
.media-manager { display: grid; gap: 7px; grid-column: 1/-1; }
.media-manager label { font-size: .66rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.media-manager p { margin: 0; color: var(--muted); font-size: .68rem; }
.media-queue { display: flex; flex-wrap: wrap; gap: 8px; }
.media-chip { display: inline-flex; align-items: center; gap: 7px; padding: 6px 9px; background: var(--paper); font-size: .67rem; }
.media-chip button { border: 0; background: transparent; color: var(--red); font-weight: 700; cursor: pointer; }
.admin-status { min-height: 1.5em; margin: 8px 0 0; color: var(--red-dark); font-size: .77rem; }

@media (max-width: 900px) {
  .listing-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .nav-links { gap: 13px; }
  .nav-links a { font-size: .7rem; }
  .detail-grid { gap: 30px; }
}
@media (max-width: 700px) {
  .container { width: min(100% - 36px, 550px); }
  .nav-wrap { height: 72px; }
  .brand img { width: 47px; height: 47px; }
  .menu-toggle { display: block; }
  .nav-links { position: absolute; top: 71px; right: 0; left: 0; display: none; align-items: stretch; gap: 0; padding: 9px 22px 17px; border-bottom: 1px solid var(--line); background: white; box-shadow: 0 20px 30px rgba(0,0,0,.08); }
  .nav-links.open { display: flex; flex-direction: column; }
  .nav-links a { padding: 12px 3px; border-bottom: 1px solid var(--line); font-size: .82rem; }
  .nav-links .nav-cta { width: fit-content; margin-top: 10px; padding: 11px 15px; }
  .page-hero { padding: 58px 0 50px; }
  .page-hero::after { right: -210px; }
  .toolbar-inner { align-items: stretch; flex-direction: column; }
  .filters input, .filters select { flex: 1; min-width: 0; }
  .listing-grid { grid-template-columns: 1fr; gap: 16px; padding-bottom: 55px; }
  .listing-media { aspect-ratio: 1.45; }
  .trust-row { grid-template-columns: 1fr; }
  .trust-item { padding: 21px 22px; }
  .detail-grid { grid-template-columns: 1fr; gap: 28px; }
  .gallery-stage { min-height: 250px; aspect-ratio: 1.2; }
  .detail-main { padding-top: 30px; }
  .detail-price { margin-top: 16px; }
  .footer-inner { align-items: flex-start; flex-direction: column; }
  .admin-heading { align-items: flex-start; flex-direction: column; }
  .admin-card { padding: 21px 17px; }
  .cookie-banner { right: 12px; bottom: 20px; left: 12px; width: auto; gap: 14px; padding: 15px; }
  .cookie-banner p { font-size: .68rem; }
  .cookie-dismiss { padding: 0 12px; }
}
@media (max-width: 430px) {
  .filters { display: grid; grid-template-columns: 1fr; }
  .page-hero h1 { font-size: 3.2rem; }
  .loan-controls { grid-template-columns: 1fr; }
  .admin-form { grid-template-columns: 1fr; }
  .admin-field.full, .admin-actions, .media-manager { grid-column: auto; }
  .admin-listing { align-items: flex-start; flex-direction: column; }
}
.admin-listing-actions .admin-button { display: inline-flex; align-items: center; text-decoration: none; }
