/* ============================================================
   NUOVO PROGETTO IMMOBILIARE — style.css
   Palette: navy #14384a / petrol #204E63 / azure #41A3D6
   ============================================================ */

:root {
  --bg: #0a1118;
  --bg-2: #0e1822;
  --surface: #13202c;
  --surface-2: #1a2a38;
  --line: rgba(234, 242, 247, 0.08);
  --text: #eaf2f7;
  --text-dim: #9db4c0;
  --accent: #41a3d6;
  --accent-2: #6fc2e8;
  --navy: #204e63;
  --radius: 18px;
  --font-display: "Sora", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --nav-h: 76px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--accent); color: #06121a; }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--surface-2); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.08; letter-spacing: -0.02em; }

.container { width: min(1240px, 92vw); margin-inline: auto; }

/* ---------- grain overlay ---------- */
body::after {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center;
  transition: background 0.4s, box-shadow 0.4s, backdrop-filter 0.4s;
}
.nav.scrolled {
  background: rgba(10, 17, 24, 0.82);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.nav-inner {
  width: min(1360px, 94vw); margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--font-display); }
.brand img { height: 46px; width: auto; }
@media (max-width: 480px) { .brand img { height: 38px; } }
.brand-name { font-weight: 800; font-size: 15px; letter-spacing: 0.06em; text-transform: uppercase; }
.brand-name em { font-style: normal; color: var(--accent); }
.nav-links { display: flex; gap: 30px; align-items: center; list-style: none; }
.nav-links a { font-size: 14px; font-weight: 500; color: var(--text-dim); transition: color 0.25s; position: relative; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0;
  background: var(--accent); transition: width 0.3s;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-cta {
  padding: 11px 22px; border-radius: 99px;
  background: var(--accent); color: #06121a;
  font-weight: 700; font-size: 14px; border: none;
  transition: transform 0.25s, background 0.25s;
}
.nav-cta:hover { background: var(--accent-2); transform: translateY(-2px); }

.nav-toggle { display: none; background: none; border: none; color: var(--text); }

@media (max-width: 860px) {
  .nav-links {
    position: fixed; inset: var(--nav-h) 0 auto 0;
    flex-direction: column; gap: 0;
    background: rgba(10, 17, 24, 0.97); backdrop-filter: blur(20px);
    padding: 10px 0 24px;
    transform: translateY(-130%); transition: transform 0.4s cubic-bezier(0.65, 0, 0.35, 1);
    border-bottom: 1px solid var(--line);
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links li { width: 100%; text-align: center; }
  .nav-links a { display: block; padding: 14px 0; font-size: 17px; }
  .nav-toggle { display: block; font-size: 26px; line-height: 1; }
  .nav-cta { display: none; }
}

/* ---------- hero (scroll sequence) ---------- */
.hero-scroll { position: relative; height: 600vh; }
.hero-sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; }
#heroCanvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(10,17,24,0.55) 0%, rgba(10,17,24,0.12) 40%, rgba(10,17,24,0.75) 100%);
}
.hero-content {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 0 0 11vh;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent-2); margin-bottom: 22px;
}
.hero-eyebrow::before { content: ""; width: 34px; height: 2px; background: var(--accent); }
.hero h1 {
  font-size: clamp(3rem, 9vw, 7.5rem);
  font-weight: 800;
  text-shadow: 0 4px 40px rgba(0, 0, 0, 0.45);
}
.hero h1 .accent { color: var(--accent); }
.hero-sub {
  margin-top: 22px; max-width: 560px;
  font-size: clamp(1rem, 1.4vw, 1.2rem); color: #cfe2ec;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}
.hero-hint {
  position: absolute; right: 4vw; bottom: 5vh;
  display: flex; align-items: center; gap: 12px;
  font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--text-dim);
}
.hero-hint .mouse {
  width: 26px; height: 42px; border: 2px solid var(--text-dim); border-radius: 14px;
  position: relative;
}
.hero-hint .mouse::after {
  content: ""; position: absolute; top: 7px; left: 50%; translate: -50% 0;
  width: 4px; height: 8px; border-radius: 4px; background: var(--accent);
  animation: wheel 1.6s ease-in-out infinite;
}
@keyframes wheel { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(12px); opacity: 0; } 100% { opacity: 0; } }
.hero-progress {
  position: absolute; left: 4vw; bottom: 5vh;
  width: 120px; height: 2px; background: rgba(255,255,255,0.18); overflow: hidden; border-radius: 2px;
}
.hero-progress span { display: block; height: 100%; width: 0; background: var(--accent); }
.hero-loader {
  position: absolute; inset: 0; z-index: 5;
  display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 18px;
  background: var(--bg);
  transition: opacity 0.7s, visibility 0.7s;
}
.hero-loader.done { opacity: 0; visibility: hidden; }
.hero-loader img { height: 60px; animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.45; } }
.hero-loader .bar { width: 180px; height: 2px; background: var(--surface-2); border-radius: 2px; overflow: hidden; }
.hero-loader .bar span { display: block; height: 100%; width: 0; background: var(--accent); transition: width 0.2s; }

/* ---------- marquee ---------- */
.marquee {
  border-block: 1px solid var(--line);
  padding: 20px 0; overflow: hidden; white-space: nowrap;
  background: var(--bg-2);
}
.marquee-track { display: inline-flex; gap: 48px; animation: marquee 28s linear infinite; }
.marquee span {
  font-family: var(--font-display); font-weight: 700; font-size: 15px;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--text-dim);
  display: inline-flex; align-items: center; gap: 48px;
}
.marquee b { color: var(--accent); font-weight: 400; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
section { padding: clamp(80px, 12vh, 140px) 0; position: relative; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 54px; flex-wrap: wrap; }
.sec-label {
  font-size: 13px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--accent); display: flex; align-items: center; gap: 10px; margin-bottom: 16px;
}
.sec-label::before { content: ""; width: 30px; height: 2px; background: var(--accent); }
.sec-title { font-size: clamp(2rem, 4.6vw, 3.6rem); font-weight: 800; }
.sec-title .dim { color: var(--text-dim); }

/* reveal */
.reveal { opacity: 0; transform: translateY(36px); transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1), transform 0.9s cubic-bezier(0.22, 1, 0.36, 1); }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee-track { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- chi siamo ---------- */
.about-grid { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 60px; align-items: start; }
.about-statement { font-family: var(--font-display); font-size: clamp(1.4rem, 2.6vw, 2.1rem); font-weight: 600; line-height: 1.35; }
.about-statement .accent { color: var(--accent); }
.about-text { color: var(--text-dim); margin-top: 26px; max-width: 56ch; }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.stat {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 22px;
}
.stat b { font-family: var(--font-display); font-size: clamp(1.9rem, 3vw, 2.6rem); font-weight: 800; color: var(--accent); display: block; }
.stat small { color: var(--text-dim); font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase; }
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; } }

/* ---------- listings rail (home) ---------- */
.rail-wrap { overflow: hidden; }
.rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(340px, 78vw);
  gap: 22px; overflow-x: auto; padding: 6px 4vw 26px;
  scroll-snap-type: x mandatory; scrollbar-width: none;
}
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; }

/* ---------- property card ---------- */
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; position: relative;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.35s, box-shadow 0.35s;
  cursor: pointer;
}
.card:hover { transform: translateY(-6px); border-color: rgba(65, 163, 214, 0.4); box-shadow: 0 24px 50px -20px rgba(0, 0, 0, 0.6); }
.card-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1); }
.card:hover .card-media img { transform: scale(1.06); }
.card-badge {
  position: absolute; top: 14px; left: 14px;
  padding: 6px 13px; border-radius: 99px; font-size: 11px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  background: rgba(10, 17, 24, 0.78); backdrop-filter: blur(6px); color: var(--accent-2);
  border: 1px solid rgba(65, 163, 214, 0.35);
}
.card-badge.rent { color: #ffd479; border-color: rgba(255, 212, 121, 0.35); }
.card-photos {
  position: absolute; bottom: 14px; right: 14px;
  padding: 5px 11px; border-radius: 99px; font-size: 11px; font-weight: 600;
  background: rgba(10, 17, 24, 0.78); backdrop-filter: blur(6px); color: var(--text-dim);
}
.card-body { padding: 20px 20px 22px; }
.card-price { font-family: var(--font-display); font-size: 1.45rem; font-weight: 800; color: var(--text); }
.card-price small { font-size: 0.85rem; color: var(--text-dim); font-weight: 500; }
.card-title { margin-top: 6px; font-size: 0.95rem; font-weight: 600; color: var(--text); min-height: 2.6em; }
.card-loc { font-size: 0.85rem; color: var(--accent-2); margin-top: 2px; display: flex; align-items: center; gap: 6px; }
.card-specs { display: flex; gap: 16px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--text-dim); font-size: 0.83rem; flex-wrap: wrap; }
.card-specs b { color: var(--text); font-weight: 600; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 30px; border-radius: 99px; border: none;
  font-weight: 700; font-size: 15px; font-family: var(--font-body);
  transition: transform 0.25s, background 0.25s, color 0.25s, border-color 0.25s;
}
.btn-primary { background: var(--accent); color: #06121a; }
.btn-primary:hover { background: var(--accent-2); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid rgba(234, 242, 247, 0.25); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-2); transform: translateY(-2px); }
.btn .arr { transition: transform 0.25s; }
.btn:hover .arr { transform: translateX(4px); }

/* ---------- video section ---------- */
.video-sec { background: var(--bg-2); border-block: 1px solid var(--line); }
.video-frame {
  position: relative; border-radius: calc(var(--radius) + 8px); overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, 0.8);
  cursor: pointer;
}
.video-frame video { width: 100%; display: block; aspect-ratio: 16 / 9; object-fit: cover; }
.video-overlay {
  position: absolute; inset: 0;
  display: flex; align-items: flex-end; justify-content: space-between;
  padding: 26px; pointer-events: none;
  background: linear-gradient(180deg, transparent 55%, rgba(6, 12, 18, 0.65));
  transition: opacity 0.3s;
}
.video-tag {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 11px 20px; border-radius: 99px;
  background: rgba(10, 17, 24, 0.72); backdrop-filter: blur(8px);
  border: 1px solid rgba(65, 163, 214, 0.35);
  font-size: 13px; font-weight: 600; color: var(--accent-2);
}
.video-tag .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: pulse 1.6s infinite; }

/* ---------- services ---------- */
.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.service {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; position: relative; overflow: hidden;
  transition: transform 0.3s, border-color 0.3s;
}
.service:hover { transform: translateY(-5px); border-color: rgba(65, 163, 214, 0.4); }
.service .num {
  font-family: var(--font-display); font-size: 13px; font-weight: 700;
  color: var(--accent); letter-spacing: 0.15em;
}
.service h3 { font-size: 1.25rem; margin: 14px 0 10px; }
.service p { color: var(--text-dim); font-size: 0.92rem; }
@media (max-width: 1000px) { .services { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .services { grid-template-columns: 1fr; } }

/* ---------- zones ---------- */
.zones { display: flex; flex-wrap: wrap; gap: 12px; }
.zone {
  padding: 12px 22px; border-radius: 99px;
  border: 1px solid var(--line); background: var(--surface);
  font-size: 14px; font-weight: 500; color: var(--text-dim);
  transition: all 0.25s;
}
.zone b { color: var(--accent); font-weight: 700; margin-left: 6px; }
.zone:hover { border-color: var(--accent); color: var(--text); transform: translateY(-2px); }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.sede {
  display: flex; gap: 18px; padding: 22px 0; border-bottom: 1px solid var(--line);
}
.sede .pin {
  flex: 0 0 46px; height: 46px; border-radius: 14px;
  background: rgba(65, 163, 214, 0.12); border: 1px solid rgba(65, 163, 214, 0.3);
  display: flex; align-items: center; justify-content: center; font-size: 20px;
}
.sede h4 { font-size: 1.05rem; margin-bottom: 4px; }
.sede p { color: var(--text-dim); font-size: 0.92rem; }
.sede a { color: var(--accent-2); font-size: 0.86rem; font-weight: 600; }
.sede a:hover { text-decoration: underline; }
.contact-quick { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }

.form {
  background: var(--surface); border: 1px solid var(--line); border-radius: calc(var(--radius) + 6px);
  padding: 36px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } .form { padding: 26px 20px; } }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 12.5px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 8px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 14px 16px;
  background: var(--bg); border: 1px solid var(--line); border-radius: 12px;
  color: var(--text); font: inherit; font-size: 15px;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(65, 163, 214, 0.15);
}
.field textarea { resize: vertical; min-height: 120px; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 12.5px; color: var(--text-dim); margin: 6px 0 20px; }
.consent input { margin-top: 3px; accent-color: var(--accent); }
.form-note { font-size: 12px; color: var(--text-dim); margin-top: 14px; }
.form-status { margin-top: 14px; font-size: 14px; font-weight: 600; display: none; }
.form-status.ok { display: block; color: #7ee2a8; }
.form-status.err { display: block; color: #ff9b9b; }

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--line); background: var(--bg-2); padding: 60px 0 30px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 46px; }
@media (max-width: 900px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .foot-grid { grid-template-columns: 1fr; } }
.foot-logo { background: #fff; border-radius: 12px; padding: 12px 16px; display: inline-block; margin-bottom: 18px; }
.foot-logo img { height: 40px; }
footer p, footer li { color: var(--text-dim); font-size: 0.9rem; }
footer h5 { font-family: var(--font-display); font-size: 0.85rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text); margin-bottom: 16px; }
footer ul { list-style: none; display: grid; gap: 9px; }
footer ul a:hover { color: var(--accent-2); }
.foot-bottom {
  border-top: 1px solid var(--line); padding-top: 24px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 0.8rem; color: var(--text-dim);
}
.foot-credit {
  margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line);
  text-align: center; font-size: 0.78rem; color: var(--text-dim);
}
.foot-credit a {
  font-family: var(--font-display); font-weight: 700;
  letter-spacing: 0.14em; color: var(--text);
  border-bottom: 1px solid var(--line); padding-bottom: 2px;
  transition: color 0.25s ease, border-color 0.25s ease;
}
.foot-credit a:hover { color: var(--accent-2); border-bottom-color: var(--accent-2); }

/* ============================================================
   IMMOBILI PAGE
   ============================================================ */
.page-head { padding: calc(var(--nav-h) + 70px) 0 40px; }
.page-head h1 { font-size: clamp(2.4rem, 6vw, 4.5rem); font-weight: 800; }
.page-head p { color: var(--text-dim); margin-top: 14px; max-width: 60ch; }

.toolbar {
  position: sticky; top: var(--nav-h); z-index: 50;
  background: rgba(10, 17, 24, 0.88); backdrop-filter: blur(14px);
  border-block: 1px solid var(--line);
  padding: 16px 0;
}
.toolbar-inner { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.pills { display: flex; gap: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 99px; padding: 4px; }
.pill {
  padding: 8px 18px; border-radius: 99px; border: none; background: transparent;
  color: var(--text-dim); font-size: 13.5px; font-weight: 600; transition: all 0.2s;
}
.pill.active { background: var(--accent); color: #06121a; }
.tool-select, .tool-input {
  padding: 10px 14px; background: var(--surface); border: 1px solid var(--line);
  border-radius: 12px; color: var(--text); font: inherit; font-size: 14px;
}
.tool-select:focus, .tool-input:focus { outline: none; border-color: var(--accent); }
.tool-input { width: 110px; }
.tool-reset { background: none; border: none; color: var(--text-dim); font-size: 13px; text-decoration: underline; }
.tool-reset:hover { color: var(--accent-2); }
.results-bar { padding: 22px 0 6px; color: var(--text-dim); font-size: 14px; }
.results-bar b { color: var(--text); }

.grid-immobili {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px; padding: 20px 0 90px;
}
.empty-state { text-align: center; padding: 90px 20px; color: var(--text-dim); grid-column: 1 / -1; }
.empty-state b { display: block; font-family: var(--font-display); font-size: 1.5rem; color: var(--text); margin-bottom: 8px; }

/* ---------- modal ---------- */
.modal {
  position: fixed; inset: 0; z-index: 200;
  display: none; align-items: center; justify-content: center; padding: 20px;
}
.modal.open { display: flex; }
.modal-back { position: absolute; inset: 0; background: rgba(4, 8, 12, 0.86); backdrop-filter: blur(8px); }
.modal-panel {
  position: relative; width: min(1060px, 100%); max-height: 92vh; overflow-y: auto;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: calc(var(--radius) + 8px);
  animation: modalIn 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes modalIn { from { opacity: 0; transform: translateY(26px) scale(0.985); } }
.modal-close {
  position: absolute; top: 16px; right: 16px; z-index: 5;
  width: 42px; height: 42px; border-radius: 50%;
  background: rgba(10, 17, 24, 0.8); border: 1px solid var(--line); color: var(--text);
  font-size: 18px; backdrop-filter: blur(6px);
}
.modal-close:hover { border-color: var(--accent); color: var(--accent-2); }
.modal-gallery { position: relative; }
.modal-gallery .main { aspect-ratio: 16 / 9; overflow: hidden; }
.modal-gallery .main img { width: 100%; height: 100%; object-fit: cover; }
.gal-nav {
  position: absolute; top: 50%; translate: 0 -50%;
  width: 46px; height: 46px; border-radius: 50%;
  background: rgba(10, 17, 24, 0.72); border: 1px solid var(--line); color: var(--text);
  font-size: 18px; backdrop-filter: blur(6px);
}
.gal-nav:hover { border-color: var(--accent); color: var(--accent-2); }
.gal-prev { left: 16px; } .gal-next { right: 16px; }
.thumbs { display: flex; gap: 8px; padding: 12px; overflow-x: auto; }
.thumbs img {
  width: 92px; height: 64px; object-fit: cover; border-radius: 8px;
  cursor: pointer; opacity: 0.45; border: 2px solid transparent; transition: all 0.2s;
}
.thumbs img.active, .thumbs img:hover { opacity: 1; border-color: var(--accent); }
.modal-body { padding: 30px 36px 40px; }
@media (max-width: 640px) { .modal-body { padding: 22px 18px 30px; } }
.modal-price { font-family: var(--font-display); font-size: 2rem; font-weight: 800; color: var(--accent); }
.modal-title { font-size: 1.3rem; margin-top: 6px; }
.modal-loc { color: var(--text-dim); margin-top: 4px; }
.modal-specs { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0; }
.spec-chip {
  padding: 9px 16px; border-radius: 99px; font-size: 13px;
  background: var(--surface); border: 1px solid var(--line); color: var(--text-dim);
}
.modal-desc { color: var(--text-dim); font-size: 0.95rem; white-space: pre-line; }
.modal-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }

/* misc */
.center { text-align: center; }
.mt-40 { margin-top: 40px; }
