/* ===========================================================
   Casa Vita Bonalba — implementation of design handoff
   Tokens, scale and structure mirror project/site.jsx + shared.css
   =========================================================== */

:root {
  /* Warm sand palette */
  --bg:        #faf6ee;
  --surface:   #f4ede2;
  --surface2:  #ebe0cd;
  --ink:       #2b231a;
  --ink2:      #4a3f31;
  --muted:     #75685a;
  --soft:      #9a8d7d;
  --line:      #d8cdb9;

  --serif:  'Marcellus', Georgia, serif;
  --mono:   'DM Mono', ui-monospace, monospace;
  --sans:   'Inter', system-ui, sans-serif;

  --max-1100: 1100px;
  --max-1080: 1080px;
  --max-920:  920px;
  --max-760:  760px;
  --max-720:  720px;
  --max-560:  560px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body.cv {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

.cv h1, .cv h2, .cv h3 { margin: 0; font-weight: 400; letter-spacing: -0.01em; color: var(--ink); }
.cv p { margin: 0; }
.cv button { font: inherit; cursor: pointer; }
.cv a { color: inherit; text-decoration: none; }

::selection { background: var(--ink); color: var(--bg); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

/* Typography primitives */

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

.display {
  font-family: var(--serif);
  line-height: 1.0;
  font-weight: 400;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.display em {
  font-style: italic;
  font-weight: 400;
}

/* Subtle photo placeholder (matches shared.css) */
.photo-ph {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  overflow: hidden;
  background:
    repeating-linear-gradient(135deg, rgba(0,0,0,0.025) 0 1px, transparent 1px 14px),
    linear-gradient(180deg, #e8dcc4 0%, #d8c8a9 100%);
  color: #5a4a35;
  width: 100%;
  height: 100%;
}
.photo-ph::after {
  content: attr(data-label);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(70, 55, 35, 0.55);
  padding: 10px 12px;
}
.photo-ph[data-tone="dusk"] {
  background:
    repeating-linear-gradient(135deg, rgba(0,0,0,0.04) 0 1px, transparent 1px 14px),
    linear-gradient(180deg, #e8c9a5 0%, #c89a78 100%);
}
.photo-ph[data-tone="sea"] {
  background:
    repeating-linear-gradient(135deg, rgba(0,0,0,0.03) 0 1px, transparent 1px 14px),
    linear-gradient(180deg, #cfd8d2 0%, #a9bcb6 100%);
}
.photo-ph[data-tone="terrace"] {
  background:
    repeating-linear-gradient(135deg, rgba(0,0,0,0.03) 0 1px, transparent 1px 14px),
    linear-gradient(180deg, #efe2c9 0%, #d2bb96 60%, #b89c75 100%);
}
.photo-ph[data-tone="interior"] {
  background:
    repeating-linear-gradient(135deg, rgba(0,0,0,0.03) 0 1px, transparent 1px 14px),
    linear-gradient(180deg, #f3eadb 0%, #d9c9ad 100%);
}
.photo-ph[data-tone="green"] {
  background:
    repeating-linear-gradient(135deg, rgba(0,0,0,0.03) 0 1px, transparent 1px 14px),
    linear-gradient(180deg, #d8d8c0 0%, #a8b298 100%);
}

/* =========================================================== */
/* Masthead                                                     */
/* =========================================================== */

.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 32px 56px;
  border-bottom: 1px solid var(--line);
}
.brand {
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
}
.nav {
  display: flex;
  gap: 28px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
}
.nav a { color: inherit; }
.nav a:hover { color: var(--muted); }

.lang {
  display: flex;
  gap: 14px;
  font-size: 11px;
  font-family: var(--mono);
  letter-spacing: 0.16em;
  color: var(--ink2);
}
.lang button {
  background: none;
  border: 0;
  color: var(--muted);
  padding: 0 0 2px;
  cursor: pointer;
  border-bottom: 1px solid transparent;
}
.lang button.is-active {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  width: 36px;
  height: 36px;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block;
  height: 1.5px;
  background: var(--ink);
  margin: 6px 0;
  transition: transform .25s ease;
}
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child  { transform: translateY(-4px) rotate(-45deg); }

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 8px;
  padding: 4px 56px 20px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--line);
}
.mobile-nav:not([hidden]) { display: flex; }
.mobile-nav a { padding: 6px 0; }

@media (max-width: 980px) {
  .masthead { padding: 24px 24px; gap: 16px; flex-wrap: wrap; }
  .nav { display: none; }
  .lang { order: 2; }
  .nav-toggle { display: block; order: 3; }
}

/* =========================================================== */
/* Hero — split: title-card left, photo right                   */
/* =========================================================== */

.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 640px;
}
.hero-text {
  padding: 88px 56px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 48px;
}
.hero-text > div:first-child .eyebrow { margin-bottom: 28px; display: block; }
.hero-text h1 {
  font-family: var(--serif);
  font-size: 84px;
  line-height: 1.0;
  font-weight: 400;
  letter-spacing: -0.015em;
  margin: 0;
  color: var(--ink);
}
.hero-text h1 em { font-style: italic; }

.hero-intro {
  margin-top: 32px;
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink2);
  max-width: 440px;
}

.hero-ctas {
  display: flex;
  align-items: center;
  gap: 16px;
}

.cv .btn-solid {
  background: var(--ink2);
  color: var(--bg);
  padding: 14px 26px;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-family: var(--mono);
  transition: background .2s ease, color .2s ease;
}
.cv .btn-solid:hover { background: var(--ink); color: var(--bg); }

.cv .btn-underline {
  color: var(--ink);
  padding: 14px 0;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-family: var(--mono);
  border-bottom: 1px solid var(--ink);
}
.cv .btn-underline:hover { color: var(--ink2); border-bottom-color: var(--ink2); }

.hero-photo {
  margin: 0;
  position: relative;
  padding: 88px 56px 88px 0;
  display: flex;
  align-items: center;
}
.hero-photo img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  filter: saturate(1.02) brightness(1.0);
}

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-text { padding: 56px 24px; }
  .hero-text h1 { font-size: clamp(44px, 11vw, 72px); }
  .hero-photo { padding: 0 24px 56px; }
  .hero-photo img { aspect-ratio: 4 / 3; }
}

/* =========================================================== */
/* Stats strip                                                  */
/* =========================================================== */

.stats {
  max-width: var(--max-1100);
  margin: 0 auto;
  padding: 0 56px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--line);
}
.stat {
  padding: 36px 24px;
  border-right: 1px solid var(--line);
  text-align: center;
}
.stat:last-child { border-right: 0; }
.stat-label {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}
.stat-num {
  font-family: var(--serif);
  font-size: 44px;
  line-height: 1;
  color: var(--ink);
  letter-spacing: -0.01em;
}

@media (max-width: 720px) {
  .stats { grid-template-columns: repeat(2, 1fr); padding: 0 24px; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .stat-num { font-size: 36px; }
}

/* =========================================================== */
/* Section scaffolding                                          */
/* =========================================================== */

.section {
  padding: 120px 56px;
  border-top: 1px solid var(--line);
}
.section:first-of-type { border-top: 0; }
.section-tonal { background: var(--surface); }

.section-head {
  text-align: center;
  max-width: var(--max-760);
  margin: 0 auto 56px;
}
.section-head .eyebrow { display: block; }
.section-head h2 {
  font-family: var(--serif);
  font-size: 56px;
  line-height: 1.05;
  font-weight: 400;
  letter-spacing: -0.005em;
  margin: 24px 0 0;
}
.section-head .lede {
  margin: 24px auto 0;
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink2);
  max-width: var(--max-560);
}

@media (max-width: 720px) {
  .section { padding: 72px 24px; }
  .section-head h2 { font-size: clamp(34px, 8vw, 48px); }
}

/* =========================================================== */
/* Apartment gallery (1 hero + 2x2 thumbs)                      */
/* =========================================================== */

/* Airbnb-style 5-photo gallery: 1 hero (left, 2:1 wide) + 2x2 thumbs (right).
   The whole composition is a single 4-column, 2-row grid so heights align
   automatically. Outer corners of the composition are rounded, inside corners
   square — same as Airbnb's listing-page hero. */
.gallery {
  max-width: var(--max-1100);
  margin: 0 auto;
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, 1fr);
  aspect-ratio: 2 / 1;
  gap: 8px;
  border-radius: 14px;
  overflow: hidden;
}
.gallery button {
  background: var(--surface);
  border: 0;
  padding: 0;
  margin: 0;
  display: block;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  min-height: 0;
}

/* Hero spans 2 cols × 2 rows (left half) */
.g-hero { grid-column: span 2; grid-row: span 2; }

/* Thumbs flow into the remaining 2 cols × 2 rows on the right */
.g-thumbs { display: contents; }

.gallery img,
.gallery .photo-ph {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .6s cubic-bezier(.2,.7,.2,1), filter .25s ease;
}
.gallery button:hover img { filter: brightness(0.92); }

/* Outer corners of the composition only — Airbnb's signature look */
.g-hero { border-top-left-radius: 14px; border-bottom-left-radius: 14px; }
.g-thumbs button:nth-child(2) { border-top-right-radius: 14px; }
.g-thumbs button:last-child   { border-bottom-right-radius: 14px; }

/* "Show all photos" button — centered beneath the gallery */
.g-show-all-wrap {
  max-width: var(--max-1100);
  margin: 24px auto 0;
  display: flex;
  justify-content: center;
}
.g-show-all {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg);
  color: var(--ink);
  border: 1px solid var(--ink);
  padding: 11px 18px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .2s ease, color .2s ease;
}
.g-show-all:hover { background: var(--ink); color: var(--bg); }
.g-show-all svg { display: block; }

@media (max-width: 760px) {
  .gallery {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    aspect-ratio: auto;
    gap: 8px;
    border-radius: 12px;
  }
  .g-hero {
    grid-column: 1; grid-row: auto;
    aspect-ratio: 4 / 3;
    border-radius: 12px;
  }
  .g-thumbs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 8px;
  }
  .g-thumbs button {
    grid-column: auto; grid-row: auto;
    aspect-ratio: 4 / 3;
    border-radius: 12px !important;
  }
  .g-show-all-wrap { margin-top: 16px; }
  .g-show-all { padding: 9px 14px; font-size: 10px; }
}

/* Amenity pills */
.amenities {
  list-style: none;
  margin: 64px auto 0;
  padding: 0;
  max-width: var(--max-1100);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.amenities li {
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  color: var(--ink2);
  background: var(--bg);
}

/* =========================================================== */
/* Area cards                                                   */
/* =========================================================== */

.area-grid {
  max-width: var(--max-1100);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.area-grid article { display: flex; flex-direction: column; gap: 10px; }
.area-grid .photo-ph { height: 200px; }
.area-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}
.area-grid h3 {
  font-family: var(--serif);
  font-size: 22px;
  margin-top: 6px;
}
.area-grid p {
  font-size: 14px;
  color: var(--ink2);
  line-height: 1.6;
}
.area-grid .dist {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

@media (max-width: 980px) { .area-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .area-grid { grid-template-columns: 1fr; } }

/* =========================================================== */
/* Editorial map                                                */
/* =========================================================== */

.map-card {
  max-width: var(--max-1100);
  margin: 88px auto 0;
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 48px;
}
.editorial-map { width: 100%; height: auto; display: block; }
.map-land  { fill: var(--surface); }
.map-sea   { fill: var(--surface2); opacity: 0.6; }
.map-coast { fill: none; stroke: var(--ink2); stroke-width: 1.5; }
.map-wave  { fill: none; stroke: var(--muted); stroke-width: 1; opacity: 0.35; }
.map-hill  { fill: none; stroke: var(--muted); stroke-width: 1; opacity: 0.4; }
.map-tram  { fill: none; stroke: var(--ink2); stroke-width: 1; stroke-dasharray: 4 6; opacity: 0.55; }
.map-road  { fill: none; stroke: var(--muted); stroke-width: 1; opacity: 0.35; stroke-dasharray: 2 4; }

.map-north circle { fill: none; stroke: var(--muted); stroke-width: 1; }
.map-north text   { font-family: var(--mono); font-size: 14px; fill: var(--ink); }
.map-north line   { stroke: var(--ink); stroke-width: 1.5; }

.map-pin circle { fill: var(--ink2); }
.map-pin .map-pin-name {
  font-family: var(--serif);
  font-size: 16px;
  fill: var(--ink);
}
.map-pin .map-pin-dist {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 1.5px;
  fill: var(--muted);
}
.map-pin-primary .ring { fill: var(--bg); stroke: var(--ink); stroke-width: 1.5; }
.map-pin-primary .dot  { fill: var(--ink); }
.map-pin-primary .map-pin-name {
  font-family: var(--serif);
  font-style: italic;
  font-size: 24px;
}

.map-sea-label {
  font-family: var(--serif);
  font-style: italic;
  font-size: 26px;
  fill: var(--muted);
  opacity: 0.65;
  letter-spacing: 1px;
}

.map-legend {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

@media (max-width: 720px) {
  .map-card { padding: 24px; }
}

/* =========================================================== */
/* Hosts                                                        */
/* =========================================================== */

#hosts { max-width: var(--max-1100); margin: 0 auto; }
.hosts-eye {
  max-width: var(--max-1080);
  margin: 0 auto 28px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
}
.hosts-grid {
  max-width: var(--max-1080);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: center;
}

.hosts-photo { position: relative; }
.hosts-frame {
  position: absolute;
  inset: 0;
  transform: translate(18px, 18px);
  border: 1.5px solid var(--ink);
  pointer-events: none;
}
.hosts-img {
  position: relative;
  width: 100%;
  height: 480px;
  border: 1px solid var(--line);
  object-fit: cover;
  display: block;
}

.hosts-text h2 {
  font-family: var(--serif);
  font-size: 56px;
  line-height: 1.0;
  font-weight: 400;
  margin: 0;
  letter-spacing: -0.01em;
}
.hosts-text h2 em { font-style: italic; }
.hosts-text > p {
  margin-top: 28px;
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink2);
}
.hosts-text > p + p { margin-top: 14px; }

.hosts-stats {
  margin: 36px 0 0;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.hosts-stats > div { display: block; }
.hosts-stats dt {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.hosts-stats dd {
  margin: 0;
  font-family: var(--serif);
  font-size: 18px;
  color: var(--ink);
}

.hosts-sign {
  margin-top: 32px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  color: var(--ink);
}

@media (max-width: 880px) {
  .hosts-grid { grid-template-columns: 1fr; gap: 32px; }
  .hosts-img { height: 360px; }
  .hosts-text h2 { font-size: clamp(34px, 8vw, 48px); }
  .hosts-stats { grid-template-columns: 1fr; gap: 14px; }
}

/* =========================================================== */
/* Rates                                                        */
/* =========================================================== */

.rates-wrap {
  max-width: var(--max-920);
  margin: 0 auto;
}
.rates {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}
.rates article {
  padding: 36px 28px;
  text-align: center;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.rates article:last-child { border-right: 0; }

.rate-season {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}
.rate-price {
  font-family: var(--serif);
  font-size: 56px;
  font-weight: 400;
  margin: 16px 0 0;
  color: var(--ink);
  line-height: 1;
}
.rate-unit {
  font-size: 13px;
  color: var(--muted);
  margin: 4px 0 0;
}
.rate-months {
  font-size: 14px;
  color: var(--ink2);
  margin: 18px 0 0;
}
.rates-fine {
  margin: 24px 0 0;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}

@media (max-width: 720px) {
  .rates { grid-template-columns: 1fr; }
  .rates article { border-right: 0; }
}

/* =========================================================== */
/* Calendar                                                     */
/* =========================================================== */

.calendar {
  max-width: var(--max-1100);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.cal-month-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 14px;
}
.cal-month-name {
  font-family: var(--serif);
  font-size: 22px;
  color: var(--ink);
}
.cal-month-year {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--muted);
  text-transform: uppercase;
}
.cal-dow-row {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 6px;
}
.cal-dow-row span { text-align: center; padding-bottom: 4px; }
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}
.cal-day {
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--ink);
  border-radius: 4px;
}
.cal-day.empty { visibility: hidden; }
.cal-day.busy {
  color: var(--soft);
  background: var(--surface2);
  text-decoration: line-through;
}

.cal-key {
  margin: 32px auto 0;
  max-width: var(--max-1100);
  display: flex;
  gap: 28px;
  align-items: center;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.cal-key span { display: inline-flex; align-items: center; gap: 8px; }
.key-box { width: 14px; height: 14px; border-radius: 3px; display: inline-block; }
.key-busy { background: var(--surface2); }
.key-free { border: 1px solid var(--line); }

@media (max-width: 720px) {
  .calendar { grid-template-columns: 1fr; gap: 28px; max-width: 360px; }
}

/* =========================================================== */
/* Contact                                                      */
/* =========================================================== */

.contact-wrap {
  max-width: var(--max-720);
  margin: 0 auto;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.cv-input {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
  font: 400 15px/1.4 var(--sans);
  color: var(--ink);
  outline: none;
  border-radius: 0;
}
.cv-input::placeholder { color: var(--soft); }
.cv-input:focus { border-bottom-color: var(--ink2); }
.cv-input-textarea { resize: vertical; min-height: 90px; }

.form-row {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
}

.form-submit {
  display: flex;
  justify-content: center;
  margin-top: 32px;
}
.btn-send {
  background: var(--ink);
  color: var(--bg);
  border: 0;
  padding: 16px 36px;
  font-family: var(--serif);
  font-size: 16px;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: background .25s ease;
}
.btn-send:hover { background: var(--ink2); }

.contact-thanks {
  padding: 48px 32px;
  border: 1px solid var(--line);
  text-align: center;
  background: var(--bg);
}
.thanks-h {
  font-family: var(--serif);
  font-size: 36px;
  font-style: italic;
  color: var(--ink);
}
.contact-thanks p:last-child {
  margin-top: 12px;
  font-size: 15px;
  color: var(--ink2);
}

.contact-direct {
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: center;
  gap: 48px;
  font-size: 14px;
  color: var(--ink2);
  flex-wrap: wrap;
}
.cd-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-right: 12px;
}

.hp { position: absolute; left: -9999px; }

/* ----- Flatpickr (date picker) — restyled to match palette ----- */
.flatpickr-calendar {
  background: var(--bg);
  border: 1px solid var(--line);
  box-shadow: 0 12px 32px -12px rgba(43, 35, 26, 0.25);
  font-family: var(--sans);
}
.flatpickr-calendar.arrowTop:before { border-bottom-color: var(--line); }
.flatpickr-calendar.arrowTop:after  { border-bottom-color: var(--bg); }
.flatpickr-months .flatpickr-month,
.flatpickr-current-month {
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 400;
}
.flatpickr-current-month .flatpickr-monthDropdown-months,
.flatpickr-current-month input.cur-year {
  font-family: var(--serif);
  color: var(--ink);
  font-weight: 400;
}
.flatpickr-weekdays { background: transparent; }
span.flatpickr-weekday {
  background: transparent;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 400;
}
.flatpickr-day {
  color: var(--ink);
  border-radius: 4px;
  font-family: var(--sans);
}
.flatpickr-day.today {
  border-color: var(--ink);
  color: var(--ink);
}
.flatpickr-day.today:hover { background: var(--surface); color: var(--ink); }
.flatpickr-day:hover { background: var(--surface); color: var(--ink); }
.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange,
.flatpickr-day.selected:hover,
.flatpickr-day.startRange:hover,
.flatpickr-day.endRange:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
}
.flatpickr-day.inRange {
  background: var(--surface2);
  border-color: var(--surface2);
  color: var(--ink);
  box-shadow: -5px 0 0 var(--surface2), 5px 0 0 var(--surface2);
}
.flatpickr-day.disabled,
.flatpickr-day.flatpickr-disabled,
.flatpickr-day.prevMonthDay,
.flatpickr-day.nextMonthDay { color: var(--soft); }
.flatpickr-months .flatpickr-prev-month,
.flatpickr-months .flatpickr-next-month { color: var(--ink); fill: var(--ink); }
.flatpickr-months .flatpickr-prev-month:hover svg,
.flatpickr-months .flatpickr-next-month:hover svg { fill: var(--ink2); }

@media (max-width: 540px) {
  .form-row { grid-template-columns: 1fr; gap: 4px; }
  .contact-direct { gap: 18px; flex-direction: column; align-items: center; text-align: center; }
}

/* =========================================================== */
/* Footer                                                       */
/* =========================================================== */

.footer {
  padding: 40px 56px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
}
.brand-foot {
  font-family: var(--serif);
  font-size: 14px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

@media (max-width: 540px) {
  .footer { padding: 32px 24px; flex-direction: column; gap: 8px; text-align: center; }
}

/* =========================================================== */
/* Lightbox                                                     */
/* =========================================================== */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(20, 16, 10, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px;
}
.lightbox[hidden] { display: none; }
.lb-close, .lb-prev, .lb-next {
  position: absolute;
  background: transparent;
  border: 0;
  color: var(--bg);
  cursor: pointer;
  padding: 8px;
}
.lb-close { top: 24px; right: 24px; font-size: 24px; }
.lb-prev  { left: 24px;  top: 50%; transform: translateY(-50%); font-family: var(--serif); font-size: 32px; }
.lb-next  { right: 24px; top: 50%; transform: translateY(-50%); font-family: var(--serif); font-size: 32px; }
.lb-stage {
  max-width: 92vw;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.lb-stage img {
  max-width: 100%;
  max-height: 78vh;
  object-fit: contain;
}
.lb-caption {
  margin-top: 16px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(250, 246, 238, 0.7);
}
