:root {
  --ink: #16181b;
  --ink-2: #4a4f57;
  --muted: #7a808a;
  --line: #e7e5e1;
  --bg: #ffffff;
  --bg-alt: #f6f5f2;
  --accent: #b5532f;
  --accent-ink: #ffffff;
  --accent-soft: #f6e9e3;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 8px 24px rgba(0,0,0,.06);
  --font: "Inter", system-ui, -apple-system, sans-serif;
  --font-head: "Inter Tight", "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.75rem); font-weight: 600; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); font-weight: 600; max-width: 22ch; }
h3 { font-size: 1.25rem; font-weight: 600; }
h4 { font-size: 1rem; font-weight: 600; margin-bottom: .2em; }
p { margin: 0 0 1em; }

.container { width: min(1160px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 32px); }
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section-alt { background: var(--bg-alt); }
.eyebrow {
  font-size: .78rem; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: var(--accent); margin-bottom: .8em;
}
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.lead { font-size: 1.15rem; color: var(--ink-2); max-width: 52ch; }
.todo { background: #fff3c4; padding: 0 .3em; border-radius: 4px; font-weight: 600; }
.todo-val { color: var(--muted); font-weight: 500; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4em;
  padding: .85em 1.4em; border-radius: 999px; font-weight: 600; font-size: .95rem;
  text-decoration: none; border: 1px solid var(--ink); background: transparent; color: var(--ink);
  cursor: pointer; transition: transform .15s ease, background .15s ease, color .15s ease;
  font-family: inherit;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: #9e4626; border-color: #9e4626; }
.btn-ghost { background: rgba(255,255,255,.85); border-color: rgba(255,255,255,.85); }
.btn-sm { padding: .5em 1.1em; font-size: .875rem; background: var(--ink); color: #fff; }
.btn-block { width: 100%; }

/* ---------- Placeholder images ---------- */
.placeholder-img {
  position: relative;
  background:
    linear-gradient(135deg, #e9e6e0 0%, #d9d4cb 100%);
  margin: 0;
}
.placeholder-img::after {
  content: attr(data-label);
  position: absolute; left: 14px; bottom: 12px;
  font-size: .75rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: rgba(22,24,27,.45);
}
.placeholder-img.has-img::after { content: none; }
.placeholder-img.has-img { background-size: cover; background-position: center; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 1000;
  transition: background .2s ease, box-shadow .2s ease;
}
.nav.scrolled { background: rgba(255,255,255,.92); backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { font-family: var(--font-head); font-weight: 700; font-size: 1.3rem; letter-spacing: -0.02em; text-decoration: none; }
/* The bouncing "l" — idles most of the cycle, then hops once */
.logo-bounce {
  display: inline-block; transform-origin: 50% 100%;
  animation: logo-hop 7s ease-in-out 2s infinite;
}
.logo:hover .logo-bounce { animation: logo-hop-once .7s ease-in-out; }
/* Crossword logo: word across, short word down through one shared letter */
.logo-cross {
  display: inline-block; font-size: 1.05rem; font-weight: 700; letter-spacing: .14em;
  line-height: 1; white-space: nowrap;
}
.cross-col { position: relative; display: inline-block; }
.cross-above, .cross-below {
  position: absolute; left: 50%; transform: translateX(-50%);
  line-height: 1.05; text-align: center; letter-spacing: 0;
}
.cross-above { bottom: 100%; padding-bottom: 2px; }
.cross-below { top: 100%; padding-top: 2px; }
.cross-mid {
  display: inline-block; color: var(--accent);
  animation: cross-flip 7s ease-in-out 2s infinite;
}
.nav-over-hero:not(.scrolled):not(.menu-open) .cross-mid { color: #f0b9a2; }
.logo:hover .cross-mid { animation: cross-flip-once .8s ease-in-out; }
@keyframes cross-flip {
  0%, 88%, 100% { transform: rotateY(0); }
  96% { transform: rotateY(360deg); }
}
@keyframes cross-flip-once {
  from { transform: rotateY(0); }
  to   { transform: rotateY(360deg); }
}

@keyframes logo-hop {
  0%, 86%, 100% { transform: translateY(0) scale(1, 1); }
  89%  { transform: translateY(0) scale(1.12, .86); }   /* crouch */
  92%  { transform: translateY(-9px) scale(.92, 1.1); } /* jump */
  95%  { transform: translateY(0) scale(1.14, .84); }   /* land */
  97%  { transform: translateY(-2px) scale(.97, 1.03); }
}
@keyframes logo-hop-once {
  0%, 100% { transform: translateY(0) scale(1, 1); }
  20%  { transform: translateY(0) scale(1.12, .86); }
  45%  { transform: translateY(-9px) scale(.92, 1.1); }
  70%  { transform: translateY(0) scale(1.14, .84); }
  85%  { transform: translateY(-2px) scale(.97, 1.03); }
}
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a:not(.btn) { text-decoration: none; font-size: .925rem; font-weight: 500; color: var(--ink-2); }
.nav-links a:not(.btn):hover { color: var(--ink); }
.nav-links a[aria-current="page"]:not(.btn) { color: var(--ink); box-shadow: inset 0 -2px 0 var(--accent); padding-bottom: 4px; }
.nav-over-hero:not(.scrolled):not(.menu-open) .nav-links a[aria-current="page"] { box-shadow: inset 0 -2px 0 #fff; }
.nav:not(.nav-over-hero) { background: rgba(255,255,255,.92); backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--line); }
.nav-toggle { display: none; background: none; border: 0; width: 40px; height: 40px; cursor: pointer; padding: 10px; }
.nav-toggle span { display: block; height: 2px; background: var(--ink); margin: 5px 0; transition: transform .2s; }

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 8px 16px 16px; display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 0; }
  .nav-links a[aria-current="page"]:not(.btn) { box-shadow: none; padding-bottom: 12px; color: var(--accent); }
  .nav-links .btn { margin-top: 8px; }
  .nav.menu-open { background: #fff; }
  .nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
}

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 92vh; display: flex; align-items: flex-end; padding: 120px 0 72px; }
.hero { overflow: hidden; }
.hero-media { position: absolute; inset: 0; }
.hero-photo { background: #8a8f86 url('images/hero-sm.jpg') center 62% / cover no-repeat; }
@media (min-width: 761px) { .hero-photo { background-image: url('images/hero.jpg'); } }
.hero-media::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,.0) 30%, rgba(255,255,255,.85) 100%);
}
.hero-media.has-img::before {
  background:
    linear-gradient(90deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.15) 55%, rgba(0,0,0,0) 75%),
    linear-gradient(180deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,0) 25%, rgba(0,0,0,.1) 50%, rgba(0,0,0,.55) 100%);
}
.hero-media::after { top: 84px; bottom: auto; left: 16px; }
.hero-content { position: relative; }
.hero.has-photo .hero-content { color: #fff; }
.hero.has-photo .lead { color: rgba(255,255,255,.88); }
.hero.has-photo .eyebrow { color: #fff; opacity: .85; }
.nav-over-hero:not(.scrolled):not(.menu-open) .logo,
.nav-over-hero:not(.scrolled):not(.menu-open) .nav-links a:not(.btn) { color: #fff; }
.nav-over-hero:not(.scrolled):not(.menu-open) .nav-toggle span { background: #fff; }
.hero-content h1 { max-width: 16ch; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }

/* ---------- Inner page header ---------- */
.page-head { padding: 132px 0 8px; }
.page-head h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); max-width: 20ch; }
.page-head .lead { margin-bottom: 0; }
.section-tight { padding-top: 40px; }
.inner .section-tight .amenities { margin-top: 16px; }
.inner .chips { margin-top: 0; }
.inner .accordion { max-width: 760px; margin-top: 0; }

/* ---------- Explore cards (home) ---------- */
.explore { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 32px; }
.explore-card {
  display: flex; flex-direction: column; text-decoration: none;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px;
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
.explore-card:hover { border-color: #cfcbc4; transform: translateY(-2px); box-shadow: var(--shadow); }
.explore-card h3 { margin-bottom: .4em; }
.explore-card p { color: var(--ink-2); font-size: .95rem; flex: 1; }
.explore-link { font-weight: 600; font-size: .9rem; color: var(--accent); }
.explore-card-accent { background: var(--ink); border-color: var(--ink); }
.explore-card-accent h3 { color: #fff; }
.explore-card-accent p { color: rgba(255,255,255,.75); }
.explore-card-accent .explore-link { color: #f0b9a2; }
@media (max-width: 960px) { .explore { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .explore { grid-template-columns: 1fr; } }

/* ---------- Facts ---------- */
.facts { border-bottom: 1px solid var(--line); }
.facts-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.fact { padding: 28px 8px; text-align: center; border-right: 1px solid var(--line); }
.fact:last-child { border-right: 0; }
.fact-num { display: block; font-family: var(--font-head); font-size: 2rem; font-weight: 600; }
.fact-label { font-size: .8rem; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
@media (max-width: 560px) {
  .facts-grid { grid-template-columns: repeat(2, 1fr); }
  .fact:nth-child(2) { border-right: 0; }
  .fact:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

/* ---------- Stay ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.prose p { color: var(--ink-2); font-size: 1.05rem; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 16px; } }

.gallery {
  display: grid; gap: 12px;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 240px 240px;
}
.gallery { position: relative; }
.g-item {
  border-radius: var(--radius); overflow: hidden; cursor: zoom-in;
  padding: 0; border: 0; background: #e9e6e0; display: block; width: 100%; height: 100%;
}
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.g-item:hover img { transform: scale(1.03); }
.g-item:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.gallery-all {
  position: absolute; right: 14px; bottom: 14px; z-index: 1;
  background: #fff; color: var(--ink); border: 1px solid var(--ink); border-radius: 999px;
  padding: .55em 1.1em; font: 600 .875rem var(--font); cursor: pointer; box-shadow: var(--shadow);
}
.gallery-all:hover { background: var(--ink); color: #fff; }
.g-large { grid-row: span 2; }
@media (max-width: 760px) {
  .gallery { grid-template-columns: 1fr 1fr; grid-template-rows: 240px 150px 150px; }
  .g-large { grid-column: span 2; grid-row: auto; }
}

/* ---------- Amenities ---------- */
.amenities {
  display: grid; gap: 14px; margin-top: 32px;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}
.amenity {
  display: flex; gap: 14px; align-items: flex-start;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px;
}
.amenity .ico { width: 24px; height: 24px; flex: none; fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; margin-top: 2px; }
.amenity p { margin: 0; font-size: .9rem; color: var(--muted); }

.floorplan {
  margin-top: 56px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
}
.fp-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 24px; }
.fp-head p { margin: 0; max-width: 52ch; }
.fp-tabs { display: inline-flex; background: var(--bg-alt); border-radius: 999px; padding: 4px; gap: 2px; }
.fp-tab {
  border: 0; background: transparent; color: var(--ink-2); font: 500 .9rem var(--font);
  padding: .55em 1.1em; border-radius: 999px; cursor: pointer; white-space: nowrap; transition: background .15s, color .15s;
}
.fp-tab:hover { color: var(--ink); }
.fp-tab[aria-selected="true"] { background: var(--ink); color: #fff; }
.fp-panel { display: grid; grid-template-columns: 1fr 1.6fr; gap: 32px; align-items: start; }
.fp-panel[hidden] { display: none; }
.fp-rooms { list-style: none; margin: 0; padding: 0; }
.fp-rooms li {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  padding: 14px 0; border-bottom: 1px solid var(--line);
}
.fp-rooms li:first-child { padding-top: 0; }
.fp-rooms strong { display: block; font-weight: 600; font-size: .98rem; }
.fp-rooms span { display: block; font-size: .85rem; color: var(--muted); }
.fp-rooms em { font-style: normal; font-size: .85rem; color: var(--ink-2); white-space: nowrap; font-variant-numeric: tabular-nums; }
.fp-img {
  display: block; width: 100%; padding: 16px; border: 1px solid var(--line); border-radius: 10px;
  background: #fff; cursor: zoom-in; transition: border-color .15s;
}
.fp-img:hover { border-color: #cfcbc4; }
.fp-img img { width: 100%; height: auto; max-height: 520px; object-fit: contain; }
.fp-hint { font-size: .8rem; color: var(--muted); margin: 12px 0 0; text-align: right; }
@media (max-width: 860px) {
  .fp-panel { grid-template-columns: 1fr; }
  .fp-img { order: -1; }
}
@media (max-width: 480px) {
  .floorplan { padding: 20px 16px; }
  .fp-tabs { width: 100%; }
  .fp-tab { flex: 1; padding: .55em .5em; font-size: .82rem; }
  .fp-hint { text-align: left; }
}

/* ---------- Guide ---------- */
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 28px 0 20px; }
.chip {
  border: 1px solid var(--line); background: #fff; color: var(--ink-2);
  padding: .5em 1em; border-radius: 999px; font: 500 .9rem var(--font); cursor: pointer;
  transition: all .15s ease;
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: .5em; vertical-align: 1px; }
.chip[aria-selected="true"] .dot { box-shadow: 0 0 0 1.5px #fff; }
.chip .count { opacity: .55; margin-left: .35em; font-size: .8em; }

.guide { display: grid; grid-template-columns: 380px 1fr; gap: 20px; height: 620px; }
.guide-list { overflow-y: auto; padding-right: 6px; display: flex; flex-direction: column; gap: 10px; }
.guide-map-wrap { display: flex; flex-direction: column; min-height: 0; }
.guide-map { flex: 1; border-radius: var(--radius); border: 1px solid var(--line); z-index: 0; }
.map-note { font-size: .8rem; color: var(--muted); margin: 8px 0 0; }

.place {
  text-align: left; width: 100%; border: 1px solid var(--line); background: #fff;
  border-radius: 12px; padding: 14px 16px; cursor: pointer; font: inherit; color: inherit;
  transition: border-color .15s, box-shadow .15s;
}
.place:hover { border-color: #cfcbc4; }
.place.active { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.place-top { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.place h4 { margin: 0; font-size: .98rem; }
.place .dist { font-size: .78rem; color: var(--muted); white-space: nowrap; }
.place p { margin: 6px 0 0; font-size: .875rem; color: var(--ink-2); line-height: 1.5; }
.place .tag {
  display: inline-block; margin-top: 8px; font-size: .7rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .08em; color: var(--muted);
}
.place .dir { margin-left: 10px; font-size: .78rem; font-weight: 600; color: var(--accent); text-decoration: none; }
.place .dir:hover { text-decoration: underline; }

@media (max-width: 900px) {
  .guide { grid-template-columns: 1fr; height: auto; }
  .guide-map-wrap { order: -1; }
  .guide-map { height: 360px; flex: none; }
  .guide-list { max-height: 520px; }
}

/* map markers */
.muted-tiles { filter: grayscale(.85) contrast(.92) brightness(1.06); }
.pin {
  width: 16px; height: 16px; border-radius: 50%;
  border: 2.5px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.35);
}
.home-pin {
  background: var(--ink); color: #fff; font: 600 12px var(--font);
  padding: 6px 10px; border-radius: 999px; white-space: nowrap; box-shadow: 0 2px 8px rgba(0,0,0,.25);
  transform: translate(-50%, -50%); display: inline-block;
}
.leaflet-popup-content { font-family: var(--font); margin: 12px 14px; }
.leaflet-popup-content h4 { margin: 0 0 4px; }
.leaflet-popup-content p { margin: 0; font-size: .85rem; color: var(--ink-2); }

/* ---------- Accordion ---------- */
.accordion { margin-top: 28px; border-top: 1px solid var(--line); }
.accordion details { border-bottom: 1px solid var(--line); }
.accordion summary {
  list-style: none; cursor: pointer; padding: 20px 0;
  font-family: var(--font-head); font-weight: 600; font-size: 1.1rem;
  display: flex; justify-content: space-between; align-items: center;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: "+"; font-size: 1.5rem; font-weight: 400; color: var(--muted); transition: transform .2s; }
.accordion details[open] summary::after { transform: rotate(45deg); }
.acc-body { padding: 0 0 20px; color: var(--ink-2); }
.kv { list-style: none; padding: 0; margin: 0; }
.kv li {
  display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 16px; align-items: baseline;
  padding: 10px 0; border-bottom: 1px dashed var(--line);
}
.kv li > span { color: var(--ink-2); }
.kv li > strong { text-align: right; font-weight: 600; }
/* Phones: stack label over value so long answers get the full width */
@media (max-width: 560px) {
  .kv li { grid-template-columns: 1fr; gap: 2px; }
  .kv li > span { font-size: .8rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
  .kv li > strong { text-align: left; }
}
.kv li:last-child { border-bottom: 0; }
.doc-link { display: inline-block; margin-top: 4px; font-size: .9rem; font-weight: 600; color: var(--accent); text-decoration: none; }
.doc-link:hover { text-decoration: underline; }

/* ---------- Book ---------- */
.book-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 20px; margin-top: 32px; align-items: start; }
.book-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; background: #fff; }
.book-airbnb { background: var(--bg-alt); }
@media (max-width: 860px) { .book-grid { grid-template-columns: 1fr; } }
.book-side { display: flex; flex-direction: column; gap: 20px; }
.book-card .eyebrow { margin-bottom: .5em; }
.check-list { list-style: none; padding: 0; margin: 0 0 16px; }
.check-list li { position: relative; padding: 4px 0 4px 22px; color: var(--ink-2); font-size: .95rem; }
.check-list li::before {
  content: ""; position: absolute; left: 2px; top: 11px; width: 10px; height: 5px;
  border-left: 1.5px solid var(--accent); border-bottom: 1.5px solid var(--accent); transform: rotate(-45deg);
}
.book-card .kv { margin-bottom: 20px; font-size: .95rem; }

/* Request-type switch */
.form fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.mode-fields { display: flex; flex-direction: column; gap: 14px; }
.mode-fields[hidden] { display: none; }
.seg { display: flex; background: var(--bg-alt); border-radius: 999px; padding: 4px; gap: 2px; }
.seg label { flex: 1; display: block; cursor: pointer; position: relative; }
.seg input { position: absolute; inset: 0; margin: 0; opacity: 0; pointer-events: none; }
.seg span {
  display: block; text-align: center; padding: .6em 1em; border-radius: 999px;
  font-size: .9rem; font-weight: 500; color: var(--ink-2); transition: background .15s, color .15s;
}
.seg input:checked + span { background: var(--ink); color: #fff; }
.seg input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

.form { display: flex; flex-direction: column; gap: 14px; margin-top: 8px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-size: .85rem; font-weight: 500; color: var(--ink-2); }
.form input, .form select, .form textarea {
  font: inherit; font-size: 1rem; color: var(--ink);
  padding: 0 .85em; border: 1px solid var(--line); border-radius: 10px; background-color: #fff;
  display: block; min-width: 0; width: 100%; max-width: 100%;
  -webkit-appearance: none; appearance: none;
}
/* Same height for every one-line field (phones size date/time/select fields differently otherwise) */
.form input:not([type="radio"]), .form select { height: 48px; line-height: 46px; }
.form textarea { padding: .7em .85em; line-height: 1.5; resize: vertical; min-height: 110px; }
.form input[type="date"], .form input[type="time"] { text-align: left; }
.form input::-webkit-date-and-time-value { text-align: left; margin: 0; }
.form input::-webkit-datetime-edit { padding: 0; }
.form select {
  padding-right: 2.4em; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%237a808a' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .9em center;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--accent-soft); border-color: var(--accent); }
.form input[readonly] { background: var(--bg-alt); color: var(--ink-2); }
.form .invalid { border-color: #c0392b; }
.form-status { margin: 0; font-size: .9rem; min-height: 1.4em; }
.form-status.ok { color: #2e7d4f; }
.form-status.err { color: #c0392b; }
@media (max-width: 480px) { .form .row { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 36px 0; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer p { margin: 4px 0 0; }
.footer-meta { text-align: right; }
.footer-meta a { color: inherit; }
.footer-meta a:hover { color: var(--ink); }
@media (max-width: 560px) { .footer-meta { text-align: left; } }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-terms { margin: 0; font-size: .8rem; color: var(--muted); line-height: 1.5; }
.form-terms a { color: var(--ink-2); }
.policy { max-width: 680px; }
.policy h3 { margin-top: 2em; }
.policy ul { padding-left: 1.2em; color: var(--ink-2); }
.policy li { margin-bottom: .5em; }
.policy a { color: var(--accent); }

/* ---------- Photo viewer ---------- */
.viewer {
  position: fixed; inset: 0; z-index: 2000; background: rgba(12,12,14,.96);
  display: grid; grid-template-rows: auto 1fr auto; color: #fff;
}
.viewer[hidden] { display: none; }
.viewer-top { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; }
.viewer-count { font-size: .9rem; color: rgba(255,255,255,.7); font-variant-numeric: tabular-nums; }
.viewer-stage { position: relative; display: grid; place-items: center; min-height: 0; padding: 0 64px; touch-action: pan-y; }
.viewer-stage img {
  max-width: 100%; max-height: calc(100vh - 150px); max-height: calc(100dvh - 150px);
  width: auto; height: auto; object-fit: contain; border-radius: 6px; user-select: none; -webkit-user-drag: none;
}
.viewer-caption { text-align: center; padding: 14px 16px 22px; font-size: .95rem; color: rgba(255,255,255,.85); }
.viewer button {
  background: rgba(255,255,255,.12); color: #fff; border: 0; border-radius: 999px; cursor: pointer;
  width: 44px; height: 44px; display: grid; place-items: center; font: 400 1.4rem/1 var(--font);
  transition: background .15s;
}
.viewer button:hover { background: rgba(255,255,255,.24); }
.viewer button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.viewer-prev, .viewer-next { position: absolute; top: 50%; transform: translateY(-50%); }
.viewer-prev { left: 12px; }
.viewer-next { right: 12px; }
@media (max-width: 640px) {
  .viewer-stage { padding: 0 8px; }
  .viewer-stage img { max-height: calc(100vh - 210px); max-height: calc(100dvh - 210px); }
  .viewer-prev, .viewer-next { top: auto; bottom: -58px; transform: none; }
  .viewer-prev { left: 16px; }
  .viewer-next { right: 16px; }
  .viewer-caption { padding: 14px 72px 22px; }
}
body.viewer-open { overflow: hidden; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; background: rgba(10,10,12,.88); z-index: 2000;
  display: grid; place-items: center; padding: 24px;
}
.lightbox img { max-height: 88vh; border-radius: 10px; }
.lightbox.light { background: rgba(255,255,255,.97); }
.lightbox.light img { max-height: 92vh; max-width: 100%; border-radius: 0; }
.lightbox.light button { background: var(--ink); color: #fff; }
.lightbox button {
  position: absolute; top: 16px; right: 16px; background: #fff; border: 0; border-radius: 999px;
  width: 40px; height: 40px; font-size: 1.2rem; cursor: pointer;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
  .logo-bounce, .logo:hover .logo-bounce, .cross-mid, .logo:hover .cross-mid { animation: none; }
}
