/* IronClad Industrial — public site styles */

* { box-sizing: border-box; }
:root {
  --brand: #ff8c00;
  --brand-dark: #cc6600;
  --bg-0: #0d1117;
  --bg-1: #161b22;
  --bg-2: #1c232c;
  --bg-3: #232b35;
  --text: #e6edf3;
  --text-dim: #8b949e;
  --text-mute: #6e7681;
  --border: #30363d;
  --border-strong: #3a4350;
  --danger: #d93025;
  --warn: #f5a524;
  --good: #34c759;
  --radius: 6px;
  --shadow-sm:  0 1px 2px rgba(0,0,0,.18);
  --shadow-md:  0 6px 20px rgba(0,0,0,.30);
  --shadow-lg:  0 18px 36px rgba(0,0,0,.45), 0 4px 8px rgba(0,0,0,.20);
  --shadow-card-hover: 0 14px 28px rgba(0,0,0,.40);
  --hero-tint: rgba(255,140,0,.13);
}
html[data-theme="light"] {
  --bg-0: #ffffff;
  --bg-1: #f3f5f8;
  --bg-2: #e8ecf0;
  --bg-3: #dde2e8;
  --text: #1a1f29;
  --text-dim: #4a5868;
  --text-mute: #7a8493;
  --border: #d8dee5;
  --border-strong: #b6bfca;
  --shadow-sm:  0 1px 2px rgba(15,30,50,.06);
  --shadow-md:  0 8px 24px rgba(15,30,50,.10);
  --shadow-lg:  0 12px 30px rgba(15,30,50,.12), 0 3px 6px rgba(15,30,50,.06);
  --shadow-card-hover: 0 8px 20px rgba(15,30,50,.12);
  --hero-tint: rgba(255,140,0,.18);
}

html { color-scheme: dark; }
html[data-theme="light"] { color-scheme: light; }

/* Selection highlight — brand-orange background + white text reads cleanly
   over any color content (links, headings, body text) in either theme. */
::selection { background: var(--brand); color: #fff; }
::-moz-selection { background: var(--brand); color: #fff; }

.theme-toggle {
  background: transparent; border: 1px solid var(--border);
  color: var(--text); padding: 6px 10px; border-radius: 6px;
  font-size: 16px; line-height: 1; cursor: pointer;
}
.theme-toggle:hover { background: var(--bg-2); border-color: var(--border-strong); }
html, body {
  margin: 0; padding: 0;
  background: var(--bg-0);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, system-ui, Helvetica, Arial, sans-serif;
  font-size: 16px; line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; color: var(--brand-dark); }
h1, h2, h3, h4 { color: var(--text); margin: 0 0 .4em; line-height: 1.2; }
h1 { font-size: clamp(28px, 4vw, 44px); font-weight: 800; letter-spacing: -.02em; }
h2 { font-size: clamp(22px, 3vw, 32px); font-weight: 700; letter-spacing: -.01em; margin: 0 0 .8em; }
h3 { font-size: 18px; font-weight: 600; }
h4 { font-size: 14px; text-transform: uppercase; letter-spacing: 1px; color: var(--text-dim); }
p, ul, ol, dl { margin: 0 0 1em; }
.lead { font-size: 18px; color: var(--text-dim); }
.empty { color: var(--text-dim); font-style: italic; padding: 40px 0; text-align: center; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ── Header ─────────────────────────────────────────────────────────── */
.site-header {
  background: var(--bg-1);
  border-bottom: 2px solid var(--brand);
  position: sticky; top: 0; z-index: 100;
  box-shadow: var(--shadow-sm);
}
.header-row { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 20px; }
.brand {
  display: flex; flex-direction: column; line-height: 1; gap: 2px;
  position: relative;
  transition: transform .25s ease, filter .25s ease;
}
.brand:hover { text-decoration: none; transform: translateY(-1px); filter: brightness(1.15); }
.brand-mark {
  color: var(--brand); font-weight: 900; letter-spacing: 2px; font-size: 22px;
  background: linear-gradient(120deg, var(--brand) 0%, #ffb155 50%, var(--brand) 100%);
  background-size: 200% 100%; background-position: 100% 0;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: background-position .6s ease, letter-spacing .25s ease;
}
.brand:hover .brand-mark { background-position: 0 0; letter-spacing: 3px; }
.brand-suffix { color: var(--text-dim); font-size: 10px; letter-spacing: 4px; font-weight: 600; transition: color .25s ease, letter-spacing .25s ease; }
.brand:hover .brand-suffix { color: var(--brand); letter-spacing: 6px; }

.main-nav { display: flex; gap: 6px; align-items: center; }
.main-nav a {
  color: var(--text); font-weight: 600; font-size: 15px;
  padding: 8px 16px; border-radius: 6px;
  text-transform: uppercase; letter-spacing: 1.2px; font-size: 13px;
  position: relative;
  transition: color .15s ease, background-color .15s ease;
}
.main-nav a::after {
  content: ''; position: absolute; left: 16px; right: 16px; bottom: 4px;
  height: 2px; background: var(--brand); border-radius: 2px;
  transform: scaleX(0); transform-origin: center;
  transition: transform .2s ease;
}
.main-nav a:hover { color: var(--brand); text-decoration: none; background: rgba(255,140,0,0.08); }
.main-nav a:hover::after { transform: scaleX(1); }

.header-contact {
  display: flex; align-items: center; gap: 12px;
}
.header-address {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--text-dim); font-size: 13px; line-height: 1.3;
  padding: 6px 10px; border-radius: var(--radius);
  transition: color .15s ease, background-color .15s ease;
  text-align: left;
  max-width: 260px;
}
.header-address:hover { color: var(--brand); background: rgba(255,140,0,0.08); text-decoration: none; }
.header-address-icon { font-size: 14px; opacity: 0.85; flex-shrink: 0; }
.header-address-text { font-weight: 500; }
.header-phone {
  color: var(--brand); font-weight: 700; font-size: 14px; padding: 8px 14px;
  border: 1.5px solid var(--brand); border-radius: var(--radius);
  display: inline-flex; align-items: center; gap: 6px;
  transition: background-color .15s ease, color .15s ease;
}
.header-phone:hover { background: var(--brand); color: #fff; text-decoration: none; }
.header-phone::before { content: '☎'; font-size: 13px; }
@media (max-width: 900px) {
  .header-address { display: none; }   /* hide on small screens — address still in footer */
}
@media (max-width: 720px) {
  .header-row { gap: 12px; }
  .main-nav { gap: 14px; }
  .main-nav a { font-size: 14px; }
  .header-phone { display: none; }
}

/* ── Hero / page heads ─────────────────────────────────────────────── */
.hero {
  padding: 80px 0 64px;
  background:
    radial-gradient(ellipse at top right, var(--hero-tint), transparent 60%),
    linear-gradient(180deg, var(--bg-1), var(--bg-0));
  border-bottom: 1px solid var(--border);
}
.hero h1 { max-width: 800px; }
.hero .lead { max-width: 640px; margin-bottom: 28px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }

.page-head { padding: 48px 0 28px; border-bottom: 1px solid var(--border); background: var(--bg-1); }
.page-head .lead { margin-bottom: 16px; }
.page-head .meta { color: var(--text-dim); font-size: 14px; }
.breadcrumb { font-size: 13px; color: var(--text-dim); margin-bottom: 12px; }
.breadcrumb a { color: var(--text-dim); }
.breadcrumb a:hover { color: var(--brand); }

/* ── Buttons ───────────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 12px 22px;
  font-size: 15px; font-weight: 600;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background-color .15s, border-color .15s, color .15s;
  font-family: inherit;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); color: #fff; }
.btn-outline { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn-outline:hover { border-color: var(--brand); color: var(--brand); }
.btn-block { display: block; width: 100%; text-align: center; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

.row-between { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 12px; }
.link-arrow { font-size: 14px; font-weight: 600; }

/* ── Categories grid ───────────────────────────────────────────────── */
.categories { padding: 48px 0; background: var(--bg-0); }
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.cat-card {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 28px 16px; min-height: 140px;
  background: var(--bg-1); border-radius: 10px;
  color: var(--text); font-weight: 600;
  box-shadow: var(--shadow-sm);
  transition: transform .22s ease, box-shadow .22s ease;
}
.cat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card-hover), 0 0 0 1px rgba(255,140,0,.5);
  text-decoration: none;
}
.cat-card--bare {
  border: 1px solid var(--border-strong);
  font-size: 18px; letter-spacing: 0.5px;
}
.cat-card--bare:hover { border-color: var(--brand); }
.cat-card-name { font-size: 16px; }
.cat-card img { width: 64px; height: 64px; object-fit: cover; border-radius: 4px; margin-bottom: 12px; }

/* ── Listing grid + cards ──────────────────────────────────────────── */
.listings-block { padding: 48px 0; }
.listings-block.alt { background: var(--bg-1); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.listing-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px; }
.listing-card {
  display: flex; flex-direction: column;
  background: var(--bg-1);
  border-radius: 10px;
  overflow: hidden;
  color: var(--text);
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: transform .22s ease, box-shadow .22s ease;
}
.listing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255,140,0,.5);
  text-decoration: none;
}
.listing-card.is-featured {
  box-shadow: var(--shadow-sm), 0 0 0 2px rgba(255,140,0,.6);
}
.listing-card.is-featured:hover {
  box-shadow: var(--shadow-lg), 0 0 0 2px var(--brand);
}
.listing-card.status-sold { opacity: .82; }
.listing-card.status-sold:hover { opacity: 1; }
.listing-card-img { aspect-ratio: 4/3; background: var(--bg-2); position: relative; overflow: hidden; }
.listing-card-img img { width: 100%; height: 100%; object-fit: cover; }
.listing-card-img .img-placeholder {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  color: var(--text-mute); font-size: 14px; text-transform: uppercase; letter-spacing: 2px;
  background: repeating-linear-gradient(45deg, var(--bg-2), var(--bg-2) 8px, var(--bg-3) 8px, var(--bg-3) 16px);
}
.status-badge {
  position: absolute; top: 12px; right: 12px;
  padding: 4px 10px; font-size: 11px; font-weight: 800; letter-spacing: 1.5px;
  border-radius: 3px; box-shadow: var(--shadow-sm);
}
.status-badge.sold { background: var(--danger); color: #fff; }
.status-badge.pending { background: var(--warn); color: #1a1410; }
.featured-badge {
  position: absolute; top: 12px; left: 12px;
  padding: 4px 10px; font-size: 11px; font-weight: 800; letter-spacing: 1.5px;
  background: var(--brand); color: #fff; border-radius: 3px; box-shadow: var(--shadow-sm);
}

.listing-card-body { padding: 16px; flex: 1; display: flex; flex-direction: column; }
.listing-card-title { font-size: 16px; font-weight: 600; margin: 0 0 8px; line-height: 1.3; color: var(--text); }
.listing-card-meta { font-size: 13px; color: var(--text-dim); display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.listing-card-meta span:not(:last-child)::after { content: '·'; margin-left: 12px; color: var(--text-mute); }
.listing-card-foot { display: flex; justify-content: space-between; align-items: center; margin-top: auto; gap: 8px; }
.price { font-weight: 700; color: var(--brand); font-size: 16px; }
.cat-tag { font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: var(--text-mute); }

/* ── Listing detail ────────────────────────────────────────────────── */
.listing-detail { padding: 32px 0 64px; }
/* Unified outer card that wraps gallery + summary + description + specs + inquire,
   so the whole listing reads as one cohesive page instead of disconnected blocks. */
.listing-card-outer {
  background: var(--bg-1);
  border-radius: 14px;
  padding: 32px;
  box-shadow: var(--shadow-md);
  margin-bottom: 0;
}
@media (max-width: 720px) { .listing-card-outer { padding: 20px; border-radius: 10px; } }
.listing-detail-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 32px; margin-bottom: 32px; }
@media (max-width: 880px) { .listing-detail-grid { grid-template-columns: 1fr; } }

/* Gallery layout: main image dictates the height (via aspect-ratio).
   Thumb strip is absolutely positioned in the left gutter so its
   38-thumb natural height doesn't stretch the row. */
.listing-gallery { position: relative; }
.listing-gallery.has-thumbs {
  padding-left: 92px;   /* space for the absolute thumb strip */
}
@media (max-width: 720px) {
  .listing-gallery.has-thumbs { padding-left: 0; padding-bottom: 8px; }
}

/* Main image — dark-themed. Transparent product cutouts get flattened onto
   white at upload time so they read clean against this dark surface. */
.gallery-main {
  position: relative;
  background: var(--bg-2);
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: zoom-in;
}
.gallery-main img { width: 100%; height: 100%; object-fit: contain; transition: transform .25s ease; }
.gallery-main:hover img { transform: scale(1.015); }
.gallery-main.no-images { display: flex; align-items: center; justify-content: center; min-height: 320px; cursor: default; }
.gallery-main.no-images:hover img { transform: none; }
.gallery-main .img-placeholder.large {
  color: var(--text-mute); font-size: 18px; letter-spacing: 3px;
  background: repeating-linear-gradient(45deg, var(--bg-1), var(--bg-1) 14px, var(--bg-2) 14px, var(--bg-2) 28px);
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
}

.status-overlay {
  position: absolute; top: 16px; right: 16px;
  font-size: 22px; font-weight: 900; letter-spacing: 5px;
  padding: 6px 14px; border-radius: 3px;
  box-shadow: var(--shadow-md);
  pointer-events: none;
}
.status-overlay.sold { background: var(--danger); color: #fff; }
.status-overlay.pending { background: var(--warn); color: #1a1410; }

.gallery-counter {
  position: absolute; bottom: 12px; left: 12px;
  background: rgba(0,0,0,0.55); color: #fff;
  padding: 4px 10px; border-radius: 12px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.5px;
  pointer-events: none;
}
.gallery-zoom {
  position: absolute; bottom: 10px; right: 10px;
  background: rgba(0,0,0,0.55); color: #fff;
  border: 0; padding: 6px 10px; border-radius: 4px;
  font-size: 16px; cursor: pointer; line-height: 1;
  transition: background-color .15s;
}
.gallery-zoom:hover { background: var(--brand); }

/* Vertical thumb strip — absolute-positioned in the left gutter so it
   inherits the gallery's height (= main image height) without inflating it. */
.gallery-thumbs {
  position: absolute;
  top: 0; bottom: 0; left: 0;
  width: 80px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow-y: auto;
  scroll-behavior: smooth;
  padding-right: 4px;
}
.gallery-thumbs::-webkit-scrollbar { width: 6px; }
.gallery-thumbs::-webkit-scrollbar-track { background: rgba(255,255,255,0.04); border-radius: 3px; }
.gallery-thumbs::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 3px; }
.gallery-thumbs::-webkit-scrollbar-thumb:hover { background: var(--brand); }
@media (max-width: 720px) {
  .gallery-thumbs {
    position: static;
    flex-direction: row;
    width: auto;
    max-height: 80px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0 0 4px;
    margin-top: 8px;
  }
}

.thumb {
  flex: 0 0 auto;
  width: 100%;              /* fill the strip width — no horizontal squish */
  aspect-ratio: 3 / 2;      /* matches the source camera ratio so no cropping */
  padding: 0;
  border: 0;
  background: var(--bg-2);  /* shows behind any letterboxing */
  cursor: pointer;
  border-radius: 5px;
  overflow: hidden;
  position: relative;
  opacity: 0.55;
  transition: opacity .15s ease, transform .15s ease;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 720px) {
  /* Horizontal mobile strip: fixed width + height, ignore the 100% above */
  .thumb { width: 90px; height: 60px; aspect-ratio: auto; }
}
.thumb:hover { opacity: 1; }
.thumb.is-active { opacity: 1; }
.thumb.is-active::after {
  content: ''; position: absolute; left: 0; top: 0; right: 0; bottom: 0;
  border: 2px solid var(--brand); border-radius: 5px;
  pointer-events: none;
}

/* Lightbox / fullscreen viewer with bottom thumbnail strip */
.gallery-lightbox {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(0,0,0,0.94);
  display: flex; flex-direction: column;
  padding: 40px 60px 16px;
}
.gallery-lightbox[hidden] { display: none; }

.gallery-lightbox .lb-stage {
  flex: 1; min-height: 0;     /* important: lets image shrink so thumb strip stays visible */
  display: flex; align-items: center; justify-content: center;
  cursor: zoom-out;
}
.gallery-lightbox .lb-img {
  max-width: 100%; max-height: 100%; object-fit: contain;
  cursor: default;
}
.gallery-lightbox .lb-close,
.gallery-lightbox .lb-nav {
  position: absolute; background: rgba(255,255,255,0.08); color: #fff;
  border: 0; cursor: pointer; font-size: 28px;
  width: 48px; height: 48px; border-radius: 24px;
  display: flex; align-items: center; justify-content: center;
  transition: background-color .15s;
  z-index: 2;
}
.gallery-lightbox .lb-close { top: 20px; right: 20px; font-size: 24px; }
.gallery-lightbox .lb-prev { left: 20px; top: calc(50% - 60px); transform: translateY(-50%); }
.gallery-lightbox .lb-next { right: 20px; top: calc(50% - 60px); transform: translateY(-50%); }
.gallery-lightbox .lb-close:hover,
.gallery-lightbox .lb-nav:hover { background: var(--brand); }
.gallery-lightbox .lb-counter {
  position: absolute; top: 28px; left: 50%; transform: translateX(-50%);
  background: rgba(0,0,0,0.6); color: #fff;
  padding: 6px 14px; border-radius: 16px; font-size: 13px;
  pointer-events: none;
}

/* Lightbox bottom thumbnail strip — horizontal scroll, click to navigate */
.gallery-lightbox .lb-thumbs {
  display: flex; gap: 6px; flex-shrink: 0;
  margin-top: 12px;
  overflow-x: auto; overflow-y: hidden;
  padding: 4px 4px 8px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.2) transparent;
}
.gallery-lightbox .lb-thumbs::-webkit-scrollbar { height: 6px; }
.gallery-lightbox .lb-thumbs::-webkit-scrollbar-track { background: transparent; }
.gallery-lightbox .lb-thumbs::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.2); border-radius: 3px; }
.gallery-lightbox .lb-thumb {
  flex: 0 0 auto;
  width: 96px; aspect-ratio: 3 / 2;   /* matches source so cover-crop is minimal */
  padding: 0; border: 0; background: rgba(255,255,255,0.05);
  border-radius: 4px; overflow: hidden;
  cursor: pointer; opacity: 0.5;
  transition: opacity .15s, transform .15s;
  position: relative;
}
.gallery-lightbox .lb-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-lightbox .lb-thumb:hover { opacity: 0.85; }
.gallery-lightbox .lb-thumb.is-active { opacity: 1; transform: scale(1.04); }
.gallery-lightbox .lb-thumb.is-active::after {
  content: ''; position: absolute; inset: 0;
  border: 2px solid var(--brand); border-radius: 4px; pointer-events: none;
}
@media (max-width: 720px) {
  .gallery-lightbox { padding: 20px 12px 12px; }
  .gallery-lightbox .lb-thumb { width: 64px; aspect-ratio: 3 / 2; }
  .gallery-lightbox .lb-prev, .gallery-lightbox .lb-next { top: calc(50% - 50px); }
}

.listing-summary {
  background: var(--bg-2); border-radius: var(--radius);
  padding: 24px; align-self: start;
}
.listing-summary h1 { font-size: clamp(22px, 3vw, 28px); margin-bottom: 12px; }
.listing-summary .lead { font-size: 15px; margin-bottom: 16px; color: var(--text-dim); }
.price-block { background: var(--bg-2); border-radius: var(--radius); padding: 16px; margin-bottom: 20px; }
.price-large { font-size: 28px; font-weight: 800; color: var(--brand); }
.sold-banner { background: var(--danger); color: #fff; padding: 8px 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; font-size: 13px; margin-bottom: 12px; border-radius: 3px; }

.quick-specs { display: grid; grid-template-columns: 1fr 2fr; gap: 4px 12px; font-size: 14px; margin-bottom: 20px; }
.quick-specs dt { color: var(--text-dim); }
.quick-specs dd { margin: 0; color: var(--text); font-weight: 600; }

.listing-summary .btn { margin-bottom: 8px; }

/* Inside the unified card, sections are separated by a top border instead of
   each being its own elevated card. Cleaner reading flow. */
.listing-description, .listing-specs, .listing-inquire {
  margin: 32px 0 0;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.listing-description h2,
.listing-specs h2,
.listing-inquire h2 {
  margin: 0 0 16px;
}
.prose {
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  white-space: pre-wrap;
  max-width: 70ch;          /* readable line length */
}
.prose p, .prose ul, .prose ol { margin: 0 0 1em; }
.prose strong { color: var(--text); }

.full-specs {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0;
  font-size: 14px;
  background: var(--bg-2);
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.full-specs dt, .full-specs dd {
  padding: 11px 18px;
  margin: 0;
  border-bottom: 1px solid var(--border);
}
.full-specs dt {
  background: var(--bg-3);
  color: var(--text-dim);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .8px;
  font-size: 11px;
  border-right: 2px solid rgba(255,140,0,.4);
}
.full-specs dd {
  background: var(--bg-1);
  color: var(--text);
  font-weight: 500;
}
/* Subtle striping — every odd row darkens slightly for scannability */
.full-specs > dt:nth-of-type(odd),
.full-specs > dt:nth-of-type(odd) + dd {
  filter: brightness(1.06);
}
/* Last row: drop bottom border for a clean edge */
.full-specs > dt:last-of-type,
.full-specs > dd:last-of-type { border-bottom: none; }
@media (max-width: 540px) {
  .full-specs { grid-template-columns: 1fr; }
  .full-specs dt { padding-bottom: 4px; border-right: 0; border-left: 2px solid rgba(255,140,0,.4); }
  .full-specs dd { padding-top: 4px; padding-bottom: 14px; }
}

/* ── Inquiry form ──────────────────────────────────────────────────── */
.inquire-form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; max-width: 720px; }
.inquire-form label { display: flex; flex-direction: column; font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: var(--text-dim); }
.inquire-form input, .inquire-form textarea {
  background: var(--bg-1); color: var(--text);
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 10px 12px; font-size: 15px; font-family: inherit; margin-top: 6px;
}
.inquire-form input:focus, .inquire-form textarea:focus { border-color: var(--brand); outline: 2px solid rgba(255,140,0,.25); outline-offset: 0; }
.inquire-form .full { grid-column: 1 / -1; }
.inquire-form .hpot { position: absolute; left: -9999px; }
.inquire-thanks { background: var(--bg-1); border: 1px solid var(--good); border-left-width: 4px; padding: 16px 20px; border-radius: var(--radius); }

/* ── Search bar ────────────────────────────────────────────────────── */
.search-bar { display: flex; gap: 8px; max-width: 540px; }
.search-bar input { flex: 1; padding: 12px 14px; font-size: 15px; background: var(--bg-1); border: 1px solid var(--border); color: var(--text); border-radius: var(--radius); font-family: inherit; }
.search-bar input:focus { border-color: var(--brand); outline: 2px solid rgba(255,140,0,.25); outline-offset: 0; }

/* ── Pager ─────────────────────────────────────────────────────────── */
.pager { display: flex; gap: 6px; margin: 32px 0; flex-wrap: wrap; justify-content: center; }
.pager-page { padding: 8px 14px; background: var(--bg-2); border: 1px solid var(--border-strong); border-radius: 4px; color: var(--text); font-weight: 600; }
.pager-page:hover { border-color: var(--brand); background: var(--bg-3); text-decoration: none; }
.pager-page.is-current { background: var(--brand); color: #fff; border-color: var(--brand); }

/* ── Contact ───────────────────────────────────────────────────────── */
.contact-block { padding: 48px 0; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
@media (max-width: 720px) { .contact-grid { grid-template-columns: 1fr; gap: 32px; } }
.big-link { font-size: 22px; font-weight: 700; }
.stock-status { font-weight: 600; }
.stock-sold { color: var(--danger); }
.stock-low  { color: var(--warn); }

.contact-map {
  margin-top: 16px; margin-bottom: 32px;
  border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; line-height: 0;
}
.contact-map iframe { display: block; }

/* ── Footer ────────────────────────────────────────────────────────── */
.site-footer { background: var(--bg-1); border-top: 1px solid var(--border); margin-top: 48px; padding: 48px 0 16px; color: var(--text-dim); }
.footer-row { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; padding-bottom: 32px; border-bottom: 1px solid var(--border); }
@media (max-width: 720px) { .footer-row { grid-template-columns: 1fr; } }
.site-footer h4 { color: var(--text); margin-bottom: 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: var(--text); }
.site-footer a:hover { color: var(--brand); }
.tagline { color: var(--text-mute); font-style: italic; margin-top: 12px; }
.footer-map {
  display: inline-block; line-height: 1.45;
  border-bottom: 1px dashed var(--text-mute);
  padding-bottom: 1px; transition: color .15s, border-color .15s;
}
.footer-map:hover { color: var(--brand); border-bottom-color: var(--brand); text-decoration: none; }
.footer-map-icon { font-size: 11px; opacity: .7; }
.footer-map-thumb {
  display: inline-block; margin-top: 12px;
  background: var(--brand); border: 1px solid var(--brand);
  color: #fff; padding: 6px 12px; border-radius: 4px;
  font-size: 12px; font-weight: 600;
  transition: background-color .15s, border-color .15s;
}
.footer-map-thumb:hover { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; text-decoration: none; }
.footer-meta { display: flex; justify-content: space-between; padding-top: 16px; flex-wrap: wrap; gap: 8px; }
.footer-meta a { color: var(--text-mute); }
.footer-meta a:hover { color: var(--brand); }
