/* Henley Stays — global styles */

:root {
  --bg: #faf7f1;
  --bg-warm: #f3ede0;
  --bg-card: #ffffff;
  --ink: #1a2733;
  --ink-soft: #4a5663;
  --ink-mute: #7a8390;
  --rule: #e3dbc9;
  --rule-soft: #ece4d2;
  --accent: #234738;      /* deep Thames green */
  --accent-dark: #15302a;
  --warm: #b86340;         /* terracotta CTA */
  --warm-dark: #9a4f31;
  --sand: #ece4d2;
  --paper: #f4eedf;

  --font-serif: 'Fraunces', 'EB Garamond', Georgia, serif;
  --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;

  --max: 1240px;
  --gutter: clamp(20px, 4vw, 56px);

  --radius: 2px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Type */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-variation-settings: "opsz" 144, "SOFT" 50;
  letter-spacing: -0.01em;
  line-height: 1.08;
  text-wrap: balance;
  margin: 0;
}

.h-display {
  font-size: clamp(44px, 6.4vw, 92px);
  font-weight: 380;
  line-height: 1.02;
  letter-spacing: -0.025em;
}

.h-1 { font-size: clamp(36px, 4.4vw, 60px); }
.h-2 { font-size: clamp(28px, 3vw, 42px); }
.h-3 { font-size: clamp(22px, 2vw, 28px); }

.eyebrow {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.lede {
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.5;
  color: var(--ink-soft);
  text-wrap: pretty;
  max-width: 62ch;
}

.prose p { text-wrap: pretty; max-width: 64ch; }
.prose p + p { margin-top: 1em; }

/* Container */
.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.wrap-wide {
  width: 100%;
  max-width: 1440px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 247, 241, 0.92);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, background .25s ease;
}
.site-header.scrolled { border-color: var(--rule); }
.site-header .row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 18px;
}
.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  font-family: var(--font-serif);
  font-size: 22px;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.brand-mark {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  align-self: center;
}
.brand:hover { text-decoration: none; }
.brand .ampers {
  font-style: italic;
  color: var(--accent);
}

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links {
  display: flex;
  gap: 28px;
  font-size: 14px;
  letter-spacing: 0.02em;
}
.nav-links a {
  color: var(--ink);
  position: relative;
  padding-block: 6px;
}
.nav-links a[aria-current="page"] { color: var(--accent); }
.nav-links a[aria-current="page"]::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--accent);
}
.nav-links a:hover { text-decoration: none; color: var(--accent); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform .15s ease, background .2s ease, color .2s ease, border-color .2s ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn-primary {
  background: var(--ink);
  color: var(--bg);
}
.btn-primary:hover { background: var(--accent); }
.btn-warm {
  background: var(--warm);
  color: #fff;
}
.btn-warm:hover { background: var(--warm-dark); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: var(--bg); }
.btn-sm { padding: 10px 16px; font-size: 13px; }
.btn-lg { padding: 17px 28px; font-size: 15px; }

.btn-arrow::after {
  content: '→';
  font-family: var(--font-sans);
  transition: transform .2s ease;
}
.btn:hover .btn-arrow::after,
.btn-arrow:hover::after { transform: translateX(3px); }

/* Hamburger (mobile) */
.menu-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.menu-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--ink);
  margin: 5px 0;
  transition: transform .2s ease, opacity .2s ease;
}

@media (max-width: 880px) {
  .nav-links { display: none; }
  .nav .btn { display: none; }
  .menu-toggle { display: inline-block; }
  .nav.open .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    padding: 24px var(--gutter) 32px;
    gap: 20px;
    border-bottom: 1px solid var(--rule);
    font-size: 18px;
  }
}

/* Footer */
.site-footer {
  margin-top: 120px;
  padding: 80px 0 40px;
  background: var(--ink);
  color: #c8cfd6;
  font-size: 14px;
  line-height: 1.7;
}
.site-footer .grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 56px;
  margin-bottom: 60px;
}
.site-footer h4 {
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 18px;
  font-weight: 500;
}
.site-footer a { color: #c8cfd6; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 10px; }
.site-footer .brand { color: #fff; font-size: 26px; margin-bottom: 14px; }
.site-footer .brand .ampers { color: #d6b08e; }
.site-footer .legal {
  border-top: 1px solid #2a3946;
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  color: #8896a3;
  font-size: 13px;
}
.site-footer .legal-links { display: flex; gap: 24px; }

@media (max-width: 880px) {
  .site-footer .grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}

/* Best-price guarantee callout — reusable */
.direct10 {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 10px 18px 10px 14px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  font-size: 13px;
  color: var(--ink);
}
.direct10 .code {
  font-family: 'JetBrains Mono', ui-monospace, 'Menlo', monospace;
  font-weight: 600;
  background: var(--ink);
  color: var(--paper);
  padding: 5px 10px;
  letter-spacing: 0.05em;
  font-size: 12px;
}

/* Booking bar */
.booking-bar {
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 8px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr auto;
  gap: 1px;
  background: var(--rule);
  box-shadow: 0 1px 0 rgba(26,39,51,0.04), 0 24px 60px -32px rgba(26,39,51,0.18);
}
.booking-bar > * {
  background: var(--bg-card);
  padding: 14px 18px;
}
.booking-bar label {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 500;
  display: block;
  margin-bottom: 4px;
}
.booking-bar .value {
  font-family: var(--font-serif);
  font-size: 18px;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.booking-bar select,
.booking-bar input {
  border: 0;
  background: transparent;
  font-family: var(--font-serif);
  font-size: 18px;
  color: var(--ink);
  width: 100%;
  padding: 0;
  outline: none;
  cursor: pointer;
}
.booking-bar .bar-cta {
  background: var(--ink);
  color: var(--bg);
  padding: 18px 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border: 0;
  transition: background .2s ease;
}
.booking-bar .bar-cta:hover { background: var(--accent); }

@media (max-width: 880px) {
  .booking-bar {
    grid-template-columns: 1fr 1fr;
  }
  .booking-bar .bar-cta { grid-column: 1 / -1; padding: 16px; }
}

/* Cards */
.prop-card {
  background: var(--bg-card);
  display: flex;
  flex-direction: column;
  transition: transform .35s ease;
  text-decoration: none;
  color: inherit;
  position: relative;
}
.prop-card:hover { text-decoration: none; }
.prop-card .photo {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  position: relative;
  background: var(--sand);
}
.prop-card .photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .9s cubic-bezier(0.2, 0.7, 0.2, 1), opacity .4s ease;
}
.prop-card:hover .photo img { transform: scale(1.04); }
.prop-card .photo img.alt {
  position: absolute;
  inset: 0;
  opacity: 0;
}
.prop-card:hover .photo img.alt { opacity: 1; }

.prop-card .label {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--bg);
  color: var(--ink);
  padding: 6px 12px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
}

.prop-card .body { padding: 22px 4px 0; }
.prop-card .body .title {
  font-family: var(--font-serif);
  font-size: 26px;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}
.prop-card .body .pitch {
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.5;
  margin-bottom: 16px;
  text-wrap: pretty;
}
.prop-card .body .facts {
  display: flex;
  gap: 18px;
  font-size: 13px;
  color: var(--ink-soft);
  padding-top: 14px;
  border-top: 1px solid var(--rule);
  align-items: center;
  flex-wrap: wrap;
}
.prop-card .body .facts .dot { color: var(--ink-mute); }
.prop-card .body .facts .arrow {
  margin-left: auto;
  color: var(--ink);
  transition: transform .2s ease;
}
.prop-card:hover .body .facts .arrow { transform: translateX(4px); }

/* Section heads */
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 56px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--rule);
}
.section-head .left { max-width: 70ch; }
.section-head .left .eyebrow { margin-bottom: 12px; }
.section-head .right { flex-shrink: 0; }

/* Property hero gallery */
.gallery-hero {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 6px;
  height: 64vh;
  min-height: 480px;
  max-height: 720px;
}
.gallery-hero > * { overflow: hidden; position: relative; background: var(--sand); }
.gallery-hero img { width: 100%; height: 100%; object-fit: cover; cursor: pointer; transition: transform .6s ease; }
.gallery-hero img:hover { transform: scale(1.02); }
.gallery-hero > *:first-child { grid-row: span 2; }

@media (max-width: 880px) {
  .gallery-hero { grid-template-columns: 1fr; grid-template-rows: 1fr; height: 50vh; }
  .gallery-hero > *:not(:first-child) { display: none; }
}

.gallery-cta {
  position: absolute;
  bottom: 18px;
  right: 18px;
  background: var(--bg);
  color: var(--ink);
  border: 0;
  padding: 12px 18px;
  font-family: var(--font-sans);
  font-size: 13px;
  letter-spacing: 0.04em;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background .2s;
}
.gallery-cta:hover { background: var(--ink); color: var(--bg); }

/* Fact strip */
.facts-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  margin: 64px 0;
}
.facts-strip .cell {
  padding: 28px 18px;
  text-align: left;
  border-left: 1px solid var(--rule);
}
.facts-strip .cell:first-child { border-left: 0; }
.facts-strip .lbl {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 8px;
}
.facts-strip .val {
  font-family: var(--font-serif);
  font-size: 22px;
}
@media (max-width: 880px) {
  .facts-strip { grid-template-columns: repeat(2, 1fr); }
  .facts-strip .cell { border-top: 1px solid var(--rule); }
  .facts-strip .cell:nth-child(odd) { border-left: 0; }
}

/* Side-by-side content */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
@media (max-width: 880px) { .split { grid-template-columns: 1fr; } }

/* Two-column long form */
.two-col-prose {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 80px;
  align-items: start;
}
.two-col-prose .sticky-col {
  position: sticky;
  top: 100px;
}
@media (max-width: 880px) {
  .two-col-prose { grid-template-columns: 1fr; gap: 32px; }
  .two-col-prose .sticky-col { position: static; }
}

/* Good to know panel */
.gtk {
  background: var(--paper);
  padding: 36px;
  border-radius: var(--radius);
}
.gtk h3 { font-size: 22px; margin-bottom: 18px; }
.gtk ul { padding: 0; margin: 0; list-style: none; }
.gtk li {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid var(--rule);
  font-size: 14px;
  line-height: 1.5;
}
.gtk li:first-child { border-top: 0; padding-top: 0; }
.gtk li .ico {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  color: var(--accent);
}
.gtk li strong { color: var(--ink); }

/* Smoobu widget placeholder */
.smoobu-frame {
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  min-height: 580px;
  padding: 40px;
  position: relative;
  overflow: hidden;
}
.smoobu-frame .placeholder-stripe {
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(45deg, var(--rule-soft) 0 1px, transparent 1px 14px);
  opacity: 0.5;
}
.smoobu-frame .pill {
  position: absolute;
  top: 20px;
  left: 20px;
  background: var(--ink);
  color: var(--bg);
  padding: 6px 12px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(15, 22, 30, 0.97);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 40px;
  flex-direction: column;
  gap: 16px;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
}
.lightbox .controls {
  display: flex;
  align-items: center;
  gap: 24px;
  color: #fff;
  font-size: 13px;
}
.lightbox .lb-btn {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
}
.lightbox .lb-btn:hover { background: rgba(255,255,255,0.16); }
.lightbox .close {
  position: absolute;
  top: 24px;
  right: 24px;
}

/* Anim utilities */
.fade-in {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .8s ease, transform .8s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: none;
}

/* Mono accents */
.mono {
  font-family: 'JetBrains Mono', ui-monospace, 'Menlo', monospace;
  font-size: 13px;
  letter-spacing: 0.02em;
}

hr.rule {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 64px 0;
}

.hidden { display: none !important; }

/* tabular figures for prices/dates */
.tabular { font-feature-settings: "tnum"; }

/* Form */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.form-grid .full { grid-column: 1 / -1; }
.form-field label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 8px;
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 14px 16px;
  font-family: var(--font-sans);
  font-size: 16px;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--bg-card);
  color: var(--ink);
  outline: none;
  transition: border-color .2s;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus { border-color: var(--ink); }
.form-field textarea { min-height: 140px; resize: vertical; font-family: var(--font-sans); }
@media (max-width: 700px) { .form-grid { grid-template-columns: 1fr; } }

/* Tweaks anchor */
#tweaks-panel-root { z-index: 200; }
