/* Florence Accommodation Apartments, shared styles */

:root {
  --paper: #ffffff;
  --mist: #f1f3f5;
  --ink: #15181d;
  --graphite: #2a2f36;          /* gunmetal */
  --steel: #4a525c;
  --muted: #5b636d;
  --line: #dde2e7;
  --on-dark: #b4bcc5;           /* muted text on metal surfaces */

  /* Fresh deep blue */
  --blue: #0b4f9c;
  --blue-deep: #072f5f;
  --blue-bright: #1e6fd0;

  /* Polished silver: cool, with bright highlights like brushed metal */
  --silver: linear-gradient(90deg, #7a838e 0%, #c9d0d7 22%, #f4f6f8 42%, #a7b0ba 62%, #e3e7eb 80%, #7a838e 100%);
  --silver-v: linear-gradient(180deg, #7a838e 0%, #d5dbe1 22%, #f4f6f8 38%, #8f98a3 56%, #e6eaee 76%, #7a838e 100%);
  --silver-text: linear-gradient(100deg, #20252c 0%, #5e6874 30%, #8a949f 46%, #3a424c 62%, #6f7985 100%);

  /* Gunmetal surfaces */
  --metal: linear-gradient(135deg, #1b1f25 0%, #2e343c 38%, #3b424b 52%, #262b32 70%, #1a1e23 100%);
  --metal-deep: linear-gradient(160deg, #111418 0%, #1e2329 55%, #13161a 100%);
  --metal-btn: linear-gradient(180deg, #424a54 0%, #2a2f36 55%, #20242a 100%);
  --display: "Cormorant Garamond", "Cormorant", Garamond, "Times New Roman", serif;
  --body: "Rubik", "Segoe UI", system-ui, sans-serif;
  --gutter: clamp(16px, 5vw, 72px);
  --max: 1320px;
  --header-h: 104px;
}

* { box-sizing: border-box; }
/* Hidden stays hidden, even on elements that set their own display */
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-weight: 300;
  font-size: 1.0625rem;
  line-height: 1.65;
}

img { display: block; max-width: 100%; }
a { color: inherit; }
strong { font-weight: 500; }

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

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 16px; top: -60px;
  z-index: 100;
  padding: 10px 18px;
  background: var(--ink);
  color: #fff;
  border-radius: 999px;
  text-decoration: none;
}
.skip-link:focus { top: 16px; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* ---------- Type ---------- */
/* All titles use the light classical serif; body text stays in the sans. */
h1, h2, h3, h4,
.display {
  font-family: var(--display);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.03em;
  text-wrap: balance;
}
.display { margin: 0; }

/* Cormorant has a small x-height, so sizes run larger than a sans would need. */
.display-xl { font-size: clamp(2.375rem, 1.5rem + 3vw, 4.25rem); font-weight: 400; letter-spacing: 0.05em; line-height: 1.1; }
.display-lg { font-size: clamp(1.875rem, 1.25rem + 1.8vw, 3rem); letter-spacing: 0.04em; }
.display-md { font-size: clamp(1.5rem, 1.2rem + 0.9vw, 2rem); }
.display-sm { font-size: clamp(1.25rem, 1.1rem + 0.4vw, 1.5rem); letter-spacing: 0.02em; }

.silver-text {
  background: var(--silver-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  font-size: clamp(1.125rem, 1rem + 0.4vw, 1.3125rem);
  line-height: 1.6;
  color: var(--graphite);
  max-width: 34em;
}

.muted { color: var(--muted); }

.silver-dash {
  width: 72px;
  height: 6px;
  background: var(--silver);
  border: 0;
  margin: 28px 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 28px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}
.btn-dark {
  background: var(--metal-btn);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.16), 0 6px 16px rgba(21,24,29,0.18);
}
.btn-dark:hover { background: linear-gradient(180deg, var(--blue-bright) 0%, var(--blue) 60%, #0a4588 100%); }
.btn-line { border-color: currentColor; background: transparent; color: var(--ink); }
.btn-line:hover { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--mist); }
.btn-ghost-light { border-color: rgba(255,255,255,0.75); color: #fff; background: transparent; }
.btn-ghost-light:hover { background: rgba(255,255,255,0.14); }

@media (prefers-reduced-motion: no-preference) {
  .btn { transition: background-color .2s ease, color .2s ease, border-color .2s ease; }
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--header-h);
  color: #fff;
}
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--paper);
  box-shadow: 0 1px 0 var(--line);
  opacity: 0;
}
.site-header.is-solid { color: var(--ink); }
.site-header.is-solid::before { opacity: 1; }

@media (prefers-reduced-motion: no-preference) {
  .site-header::before { transition: opacity .3s ease; }
}

.site-header .wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 100%;
}

.brand { display: block; line-height: 0; }
.brand img { height: 92px; width: auto; }
.brand .logo-dark { display: none; height: 92px; }
.site-header.is-solid .logo-light { display: none; }
.site-header.is-solid .logo-dark { display: block; }

.nav {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 40px);
  margin-left: auto;
}

/* Language switch: EN | IT, always visible in the header */
.lang-switch {
  display: inline-flex;
  align-items: center;
  flex: none;
  gap: 2px;
  padding: 3px;
  border: 1px solid rgba(255,255,255,0.45);
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.06em;
}
.lang-switch a {
  display: inline-grid;
  place-items: center;
  min-width: 38px;
  min-height: 32px;
  padding: 0 10px;
  border-radius: 999px;
  color: inherit;
  text-decoration: none;
  opacity: 0.8;
}
.lang-switch a:hover { opacity: 1; }
.lang-switch a[aria-current="true"] { background: #fff; color: var(--ink); opacity: 1; }
.site-header.is-solid .lang-switch { border-color: var(--line); }
.site-header.is-solid .lang-switch a[aria-current="true"] { background: var(--metal-btn); color: #fff; }
.nav a {
  position: relative;
  padding: 6px 0;
  font-size: 0.9375rem;
  font-weight: 400;
  text-decoration: none;
}
.nav a:not(.btn)[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--silver);
}
.nav .btn { min-height: 44px; padding: 0 22px; }
.site-header:not(.is-solid) .nav .btn { background: #fff; color: var(--ink); }

.nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border: 1px solid currentColor;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

@media (max-width: 860px) {
  :root { --header-h: 84px; }
  .brand img { height: 60px; }
  .brand .logo-dark { height: 68px; }
  .nav-toggle { display: inline-grid; place-items: center; order: 3; }
  .lang-switch { order: 2; margin-left: auto; }
  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--gutter) 24px;
    background: var(--paper);
    color: var(--ink);
    box-shadow: 0 18px 30px rgba(7,47,95,0.12);
  }
  .nav:not(.is-open) { display: none; }
  .nav a { padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 1.0625rem; }
  .nav a:not(.btn)[aria-current="page"]::after { display: none; }
  .nav a[aria-current="page"] { font-weight: 500; }
  .nav .btn { margin-top: 18px; border-bottom: 0; }
  .site-header:not(.is-solid) .nav .btn { background: var(--metal-btn); color: #fff; }
}

/* ---------- Hero (duotone, as in the company profile) ---------- */
.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: min(92vh, 900px);
  padding: calc(var(--header-h) + 48px) 0 clamp(96px, 14vh, 160px);
  overflow: hidden;
  background: var(--blue-deep);
  color: #fff;
  isolation: isolate;
}
.hero.hero-short { min-height: min(68vh, 680px); padding-bottom: clamp(56px, 9vh, 96px); }

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.08) brightness(1.05);
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--blue-bright);
  mix-blend-mode: multiply;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(4,22,46,0.5) 0%, rgba(4,22,46,0) 32%, rgba(4,22,46,0) 50%, rgba(4,22,46,0.6) 100%);
}

.hero-lines {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  color: rgba(255,255,255,0.85);
  pointer-events: none;
}

.hero > .wrap { width: 100%; }
.hero h1 { max-width: 12em; }
.hero p {
  max-width: 32em;
  margin: 28px 0 0;
  font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.25rem);
  color: rgba(255,255,255,0.9);
}
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

@media (prefers-reduced-motion: no-preference) {
  .hero-lines .draw {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    animation: draw 2.2s cubic-bezier(.65,0,.35,1) .3s forwards;
  }
  @keyframes draw { to { stroke-dashoffset: 0; } }
}

/* ---------- Scroll reveal (only when motion is allowed; see site.js) ---------- */
.motion [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1);
  transition-delay: calc(var(--i, 0) * 90ms);
}
.motion [data-reveal].is-in { opacity: 1; transform: none; }
.motion [data-reveal="fade"] { transform: none; }

/* ---------- Line icons ---------- */
.icon-line {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
@media (prefers-reduced-motion: no-preference) {
  .redraw .icon-line > * {
    stroke-dasharray: 1;
    animation: icon-draw 1.1s cubic-bezier(.65,0,.35,1) both;
  }
  @keyframes icon-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
}

/* ---------- Sections ---------- */
.section { padding: clamp(80px, 11vw, 150px) 0; }
.section-mist { background: var(--mist); }
.section-dark { background: var(--metal); color: #fff; }
.section-dark .muted { color: var(--on-dark); }

.section-head { max-width: 760px; margin-bottom: clamp(48px, 6vw, 80px); }
.section-head p { margin: 0; }

.split {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
}
/* Twelve columns of gaps are wider than a small phone, so collapse to one column. */
@media (max-width: 960px) {
  .split { grid-template-columns: minmax(0, 1fr); }
  .split > * { grid-column: 1 / -1 !important; }
}

/* ---------- Blog: cards ---------- */
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.post-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: var(--paper);
  color: var(--ink);
  text-decoration: none;
}
.post-card .thumb { aspect-ratio: 4 / 3; overflow: hidden; background: var(--graphite); }
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-card .body { display: flex; flex-direction: column; gap: 12px; flex: 1; padding: 26px 26px 28px; }
.post-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0; font-size: 0.8125rem; color: var(--muted); }
.post-meta .cat { color: var(--blue); font-weight: 500; }
.post-card h2,
.post-card h3 { margin: 0; font-size: 1.625rem; line-height: 1.2; }
.post-card p.excerpt { margin: 0; color: var(--graphite); font-size: 0.9375rem; }
.post-card .read { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 8px; color: var(--blue); font-weight: 500; font-size: 0.9375rem; }
.post-card .read svg { width: 16px; height: 16px; }
.post-card:hover { border-color: #c3d2e2; box-shadow: 0 22px 44px rgba(7, 47, 95, 0.12); }
.post-card:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
@media (prefers-reduced-motion: no-preference) {
  .post-card { transition: transform .5s cubic-bezier(.2,.7,.2,1), box-shadow .5s ease, border-color .4s ease; }
  .post-card:hover { transform: translateY(-6px); }
  .post-card .thumb img { transition: transform 1s cubic-bezier(.2,.7,.2,1); }
  .post-card:hover .thumb img { transform: scale(1.05); }
}
@media (max-width: 960px) { .post-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .post-grid { grid-template-columns: 1fr; } }

/* ---------- Blog: article ---------- */
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; padding: 0; list-style: none; font-size: 0.875rem; color: rgba(255,255,255,0.85); }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; opacity: 0.6; }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; text-underline-offset: 3px; }
.hero .post-meta { margin-top: 22px; color: rgba(255,255,255,0.85); font-size: 0.9375rem; }
.hero .post-meta .cat { color: #fff; }

.article-wrap { max-width: 760px; margin: 0 auto; padding: clamp(56px, 8vw, 96px) var(--gutter) clamp(72px, 9vw, 120px); }

.toc {
  margin: 0 0 48px;
  padding: 26px 28px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--mist);
}
.toc h2 { margin: 0 0 12px; font-size: 1.375rem; }
.toc ol { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; }
.toc a { color: var(--graphite); text-decoration: none; }
.toc a:hover { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }

.prose { font-size: 1.0625rem; line-height: 1.8; color: var(--graphite); }
.prose > * { margin: 0 0 1.25em; }
.prose .lead { margin-bottom: 1.6em; }
.prose h2 { margin: 2em 0 0.6em; font-size: clamp(1.75rem, 1.4rem + 1vw, 2.25rem); color: var(--ink); scroll-margin-top: calc(var(--header-h) + 20px); }
.prose h3 { margin: 1.6em 0 0.4em; font-size: 1.5rem; color: var(--ink); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: 0.45em; }
.prose li::marker { color: var(--blue); }
.prose strong { color: var(--ink); }
.prose a:not(.btn) { color: var(--blue); text-underline-offset: 3px; }
.prose a:not(.btn):hover { color: var(--blue-deep); }
.prose figure { margin: 2em 0; }
.prose figure img { width: 100%; height: auto; border-radius: 14px; }
.prose figure.fig-portrait { max-width: 440px; margin-inline: auto; }
.prose figcaption { margin-top: 10px; font-size: 0.875rem; color: var(--muted); }
.prose .tip {
  padding: 20px 24px;
  border-left: 3px solid var(--blue);
  border-radius: 0 12px 12px 0;
  background: #eef4fb;
  color: var(--ink);
}

.faq { margin-top: 2.4em; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  font-family: var(--display);
  font-size: 1.3125rem;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--blue); font-family: var(--body); font-size: 1.5rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 20px; }

.article-cta {
  margin-top: 56px;
  padding: clamp(28px, 4vw, 44px);
  border-radius: 20px;
  background: var(--metal);
  color: #fff;
}
.article-cta h2 { margin: 0 0 10px; font-size: clamp(1.625rem, 1.3rem + 1vw, 2.125rem); color: #fff; }
.article-cta p { margin: 0 0 24px; color: var(--on-dark); }
.article-cta .actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  background: var(--metal-deep);
  color: var(--on-dark);
  font-size: 0.9375rem;
}
.site-footer::before {
  content: "";
  display: block;
  height: 6px;
  background: var(--silver);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1.2fr;
  gap: 40px;
  padding: 72px 0 56px;
}
.footer-grid img { height: 76px; width: auto; margin-bottom: 20px; }
.footer-grid h2 {
  margin: 0 0 16px;
  font-size: 1.25rem;
  color: #fff;
}
.footer-grid ul { margin: 0; padding: 0; list-style: none; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a { text-decoration: none; }
.footer-grid a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.footer-grid p { margin: 0 0 10px; }
.footer-motto { font-family: var(--display); font-size: 1.375rem; letter-spacing: 0.03em; line-height: 1.3; color: #fff; max-width: 16em; }
.footer-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding: 24px 0 32px;
  border-top: 1px solid rgba(255,255,255,0.12);
  font-size: 0.8125rem;
  color: #8b949e;
}

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; padding-top: 56px; }
}

/* ---------- Forms ---------- */
.field { display: grid; gap: 8px; }
.field label { font-size: 0.875rem; font-weight: 400; color: var(--graphite); }
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 54px;
  padding: 14px 18px;
  border: 1px solid #cbd2d9;
  border-radius: 10px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  font-weight: 400;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:hover,
.field select:hover,
.field textarea:hover { border-color: #9aa4af; }
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible { outline: 2px solid var(--blue); outline-offset: 0; border-color: var(--blue); }
.field .hint { font-size: 0.8125rem; color: var(--muted); }
.field.has-error input,
.field.has-error select,
.field.has-error textarea { border-color: #b3261e; }
.field .error { font-size: 0.8125rem; color: #b3261e; }

/* ---------- Floating WhatsApp button ---------- */
.wa-float {
  position: fixed;
  right: max(18px, env(safe-area-inset-right, 0px));
  bottom: max(18px, env(safe-area-inset-bottom, 0px));
  z-index: 60;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  box-shadow: 0 10px 26px rgba(7, 47, 95, 0.28), inset 0 1px 0 rgba(255,255,255,0.3);
}
.wa-float svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; }
.wa-float svg .fill { fill: currentColor; stroke: none; }
.wa-float:hover { background: #1ebe5a; }
.wa-float:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
@media (prefers-reduced-motion: no-preference) {
  .wa-float { transition: transform .3s ease, background-color .3s ease; }
  .wa-float:hover { transform: scale(1.07); }
}
@media (max-width: 560px) { .wa-float { width: 52px; height: 52px; } .wa-float svg { width: 27px; height: 27px; } }

/* ---------- Photo carousel (home and apartments pages) ---------- */
.h-car {
  position: relative;
  aspect-ratio: 4 / 3;
  max-width: 100%;
  overflow: hidden;
  background: var(--graphite);
}
.h-car-track {
  display: flex;
  height: 100%;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
}
.h-car-track::-webkit-scrollbar { display: none; }
.h-car-track:focus-visible { outline: 3px solid var(--blue-bright); outline-offset: -3px; }
.h-car-slide {
  flex: 0 0 100%;
  height: 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}
.h-car-slide img { width: 100%; height: 100%; object-fit: cover; user-select: none; }
.h-car::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(4,22,46,0.18) 0%, rgba(4,22,46,0) 30%, rgba(4,22,46,0) 62%, rgba(4,22,46,0.5) 100%);
  pointer-events: none;
}
.h-car-btn {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-top: -21px;
  padding: 0;
  border: 1px solid rgba(255,255,255,0.7);
  border-radius: 50%;
  background: rgba(255,255,255,0.88);
  color: var(--blue-deep);
  box-shadow: 0 6px 18px rgba(4,22,46,0.22);
  cursor: pointer;
  transition: background .25s ease, opacity .25s ease, transform .25s ease;
}
.h-car-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.h-car-btn.prev { left: 12px; }
.h-car-btn.next { right: 12px; }
.h-car-btn:hover { background: #fff; transform: scale(1.06); }
.h-car-btn:focus-visible { outline: 3px solid var(--blue-bright); outline-offset: 2px; }
.h-car-btn:disabled { opacity: 0; pointer-events: none; }
.h-car-count {
  position: absolute;
  right: 16px;
  bottom: 14px;
  z-index: 2;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(4,22,46,0.45);
  color: #fff;
  font-size: 0.8125rem;
  font-variant-numeric: tabular-nums;
  pointer-events: none;
}
.h-car-thumbs {
  display: flex;
  gap: 6px;
  padding: 8px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}
.h-car-thumbs::-webkit-scrollbar { display: none; }
.h-car-thumbs button {
  flex: 0 0 64px;
  height: 46px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  overflow: hidden;
  background: var(--line);
  opacity: 0.55;
  scroll-snap-align: center;
  cursor: pointer;
  box-shadow: inset 0 0 0 2px transparent;
  transition: opacity .25s ease;
}
.h-car-thumbs button img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.h-car-thumbs button:hover { opacity: 0.85; }
.h-car-thumbs button[aria-current] { opacity: 1; outline: 2px solid var(--blue); outline-offset: -2px; }
.h-car-thumbs button:focus-visible { opacity: 1; outline: 3px solid var(--blue-bright); outline-offset: -3px; }
@media (hover: hover) {
  .h-car-btn { opacity: 0; }
  .h-car:hover .h-car-btn:not(:disabled), .h-car:focus-within .h-car-btn:not(:disabled) { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .h-car-track, .h-car-thumbs { scroll-behavior: auto; }
}
.h-car .motif {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  color: rgba(255,255,255,0.85);
  pointer-events: none;
}
/* Opens the full-screen photo viewer (apartments page) */
.h-car-zoom {
  position: absolute;
  left: 16px;
  bottom: 12px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid rgba(255,255,255,0.75);
  border-radius: 999px;
  background: rgba(4,22,46,0.35);
  color: #fff;
  font: inherit;
  font-size: 0.8125rem;
  cursor: pointer;
  transition: background .25s ease;
}
.h-car-zoom svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.h-car-zoom:hover { background: rgba(255,255,255,0.18); }
.h-car-zoom:focus-visible { outline: 3px solid var(--blue-bright); outline-offset: 2px; }