/* Langebaan Holiday Homes — design tokens + base */

:root {
  /* Palette: Deep Ocean (default) */
  --ink: #0a2540;
  --ocean: #0d3b5c;
  --ocean-soft: #2a5c7e;
  --sand: #e8d8b8;
  --sand-shadow: #d4c298;
  --paper: #fbfaf6;
  --paper-2: #f4efe4;
  --shallow: #c2dee8;
  --rule: rgba(10, 37, 64, 0.10);
  --rule-strong: rgba(10, 37, 64, 0.22);
  --muted: rgba(10, 37, 64, 0.58);
  --muted-2: rgba(10, 37, 64, 0.42);

  /* Density (overridden by tweaks) */
  --pad-card: 22px;
  --pad-section: 64px;
  --gap-grid: 24px;
  --card-img: 320px;
  --radius: 14px;
  --radius-lg: 22px;
}

.den-compact {
  --pad-card: 16px;
  --pad-section: 44px;
  --gap-grid: 16px;
  --card-img: 260px;
  --radius: 10px;
  --radius-lg: 16px;
}
.den-comfy {
  --pad-card: 28px;
  --pad-section: 84px;
  --gap-grid: 32px;
  --card-img: 380px;
  --radius: 18px;
  --radius-lg: 28px;
}

/* Reset within screens */
.sb-screen, .sb-screen * { box-sizing: border-box; }
.sb-screen {
  font-family: 'Manrope', ui-sans-serif, system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-size: 15px;
  line-height: 1.5;
  font-feature-settings: "ss01", "ss02", "cv11";
  -webkit-font-smoothing: antialiased;
}
.sb-screen button { font-family: inherit; }

.sb-serif { font-family: 'Instrument Serif', 'Cormorant Garamond', Georgia, serif; font-weight: 400; letter-spacing: -0.005em; }
.sb-mono  { font-family: 'JetBrains Mono', ui-monospace, Menlo, monospace; }

/* Typographic scale */
.t-eyebrow { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 600; }
.t-display { font-size: 92px; line-height: 0.96; letter-spacing: -0.025em; font-weight: 400; }
.t-h1 { font-size: 56px; line-height: 1.02; letter-spacing: -0.02em; font-weight: 500; }
.t-h2 { font-size: 36px; line-height: 1.08; letter-spacing: -0.018em; font-weight: 500; }
.t-h3 { font-size: 22px; line-height: 1.2;  letter-spacing: -0.012em; font-weight: 600; }
.t-meta { font-size: 12px; letter-spacing: 0.04em; color: var(--muted); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: 14px; cursor: pointer; transition: all .15s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--ocean); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--rule-strong); }
.btn-ghost:hover { background: rgba(10,37,64,0.04); }
.btn-paper { background: var(--paper); color: var(--ink); }
.btn-sand { background: var(--sand); color: var(--ink); }
.btn-sand:hover { background: var(--sand-shadow); }
.btn-sm { padding: 8px 14px; font-size: 12.5px; }
.btn-lg { padding: 16px 26px; font-size: 15px; }

/* Inputs */
.field {
  display: flex; flex-direction: column; gap: 4px; min-width: 0;
}
.field label { font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.field input, .field select {
  background: transparent; border: none; outline: none; font: inherit; color: var(--ink);
  font-size: 15px; padding: 2px 0; width: 100%;
}
.field input::placeholder { color: var(--muted-2); }

/* Striped placeholder image — looks like architectural photography crop */
.sb-img {
  position: relative; overflow: hidden; border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255,255,255,.12) 0%, rgba(0,0,0,.18) 100%),
    repeating-linear-gradient(
      var(--stripe-angle, 18deg),
      var(--stripe-a, #c8b896) 0px,
      var(--stripe-a, #c8b896) 14px,
      var(--stripe-b, #d4c298) 14px,
      var(--stripe-b, #d4c298) 28px
    );
  color: rgba(255,255,255,0.88);
}
.sb-img.tone-ocean { --stripe-a: #1f4a6b; --stripe-b: #285579; }
.sb-img.tone-sand  { --stripe-a: #c8b896; --stripe-b: #d4c298; }
.sb-img.tone-dusk  { --stripe-a: #4a5d72; --stripe-b: #5a6d82; }
.sb-img.tone-sky   { --stripe-a: #8eb5c8; --stripe-b: #9dc1d3; }
.sb-img.tone-shell { --stripe-a: #d8c4a6; --stripe-b: #e0cdb1; }
.sb-img.tone-deep  { --stripe-a: #0d3b5c; --stripe-b: #15466a; }
.sb-img .sb-img-label {
  position: absolute; left: 12px; bottom: 12px;
  font: 10px/1.3 'JetBrains Mono', ui-monospace, monospace;
  letter-spacing: 0.06em;
  background: rgba(0,0,0,0.38);
  color: rgba(255,255,255,0.92);
  padding: 4px 8px; border-radius: 4px;
  backdrop-filter: blur(4px);
}
.sb-img .sb-img-corner {
  position: absolute; right: 12px; top: 12px;
  font: 10px/1 'JetBrains Mono', ui-monospace, monospace;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.7);
}

/* Chip */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 11px; border-radius: 999px;
  font-size: 12px; font-weight: 500;
  background: var(--paper-2); color: var(--ink);
  border: 1px solid var(--rule);
}
.chip-dark { background: rgba(255,255,255,0.12); color: var(--paper); border-color: rgba(255,255,255,0.18); backdrop-filter: blur(8px); }
.chip-on { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* Card */
.card {
  background: var(--paper); border-radius: var(--radius-lg);
  border: 1px solid var(--rule);
  overflow: hidden;
}

/* Divider */
.hr { height: 1px; background: var(--rule); border: 0; margin: 0; }

/* Property card */
.prop {
  display: flex; flex-direction: column; gap: 14px;
  cursor: pointer;
}
.prop .img-wrap { position: relative; aspect-ratio: 4/3; }
.prop .img-wrap .sb-img { position: absolute; inset: 0; height: 100%; width: 100%; }
.prop .heart {
  position: absolute; top: 12px; right: 12px;
  width: 34px; height: 34px; border-radius: 999px;
  background: rgba(255,255,255,0.9); backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  border: none;
}
.prop .heart.on { color: var(--ink); }
.prop .heart svg { width: 16px; height: 16px; }

.prop-meta { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.prop-title { font-weight: 600; font-size: 16px; letter-spacing: -0.005em; }
.prop-loc { color: var(--muted); font-size: 13px; }
.prop-price { font-weight: 600; }
.prop-price small { color: var(--muted); font-weight: 500; }

/* Calendar */
.cal {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px;
  font-size: 13px;
}
.cal-head { font-size: 10.5px; letter-spacing: 0.12em; color: var(--muted); text-transform: uppercase; text-align: center; padding: 6px 0; font-weight: 600; }
.cal-day {
  aspect-ratio: 1; display: flex; align-items: center; justify-content: center;
  border-radius: 8px; cursor: pointer; position: relative;
  font-variant-numeric: tabular-nums; transition: background .12s;
}
.cal-day:hover:not(.is-out):not(.is-disabled) { background: var(--paper-2); }
.cal-day.is-out { color: var(--muted-2); cursor: default; }
.cal-day.is-disabled { color: var(--muted-2); text-decoration: line-through; cursor: not-allowed; }
.cal-day.is-start, .cal-day.is-end { background: var(--ink); color: var(--paper); font-weight: 600; }
.cal-day.is-between { background: var(--sand); border-radius: 0; }
.cal-day.is-start { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.cal-day.is-end   { border-top-left-radius: 0; border-bottom-left-radius: 0; }

/* Tide widget */
.tide {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: 12px;
  background: linear-gradient(180deg, var(--shallow) 0%, #d8e8ef 100%);
  border: 1px solid rgba(13,59,92,0.12);
  font-size: 12px;
}
.tide-bars { display: flex; align-items: flex-end; gap: 2px; height: 22px; }
.tide-bars i { display: block; width: 3px; background: var(--ocean); border-radius: 1px; opacity: 0.75; }

/* Top nav */
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 40px;
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
  position: sticky; top: 0; z-index: 5;
}
.nav-links { display: flex; gap: 28px; }
.nav-links a { color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 500; }
.nav-links a:hover { color: var(--ocean); }

/* Search composer */
.searchbar {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr auto;
  align-items: center; gap: 4px;
  background: var(--paper); border-radius: 999px;
  padding: 8px 8px 8px 24px; border: 1px solid var(--rule);
  box-shadow: 0 18px 40px -22px rgba(10,37,64,0.4);
}
.searchbar > .seg { padding: 10px 18px; border-right: 1px solid var(--rule); min-width: 0; }
.searchbar > .seg:nth-last-child(2) { border-right: 0; }
.searchbar .field label { font-size: 9.5px; }
.searchbar .field input { font-size: 14px; }

/* Tags row */
.tags { display: flex; gap: 10px; flex-wrap: wrap; }

/* Steps indicator */
.steps { display: flex; align-items: center; gap: 8px; font-size: 12px; }
.steps .dot { width: 22px; height: 22px; border-radius: 999px; background: var(--paper-2); display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 11px; color: var(--muted); border: 1px solid var(--rule); }
.steps .dot.is-active { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.steps .dot.is-done { background: var(--sand); color: var(--ink); border-color: var(--sand-shadow); }
.steps .bar { height: 1px; flex: 1; background: var(--rule); }
.steps .bar.is-done { background: var(--sand-shadow); }

/* Stat row */
.stat-row { display: flex; gap: 18px; align-items: center; }
.stat { display: flex; flex-direction: column; gap: 2px; }
.stat .v { font-size: 22px; font-weight: 500; letter-spacing: -0.015em; }
.stat .l { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); font-weight: 600; }

/* Amenities */
.amen-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 28px; }
.amen { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--rule); font-size: 14px; }
.amen svg { color: var(--ocean); flex-shrink: 0; }

/* Map placeholder */
.map {
  background:
    radial-gradient(circle at 30% 30%, rgba(13,59,92,0.05) 0%, transparent 40%),
    radial-gradient(circle at 70% 60%, rgba(13,59,92,0.07) 0%, transparent 35%),
    repeating-linear-gradient(45deg, transparent 0 24px, rgba(13,59,92,0.03) 24px 25px),
    repeating-linear-gradient(-45deg, transparent 0 24px, rgba(13,59,92,0.03) 24px 25px),
    linear-gradient(180deg, #e8eef1 0%, #d6e3ea 100%);
  position: relative; overflow: hidden;
}
.map::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 35% at 20% 80%, var(--shallow) 0%, transparent 60%),
    radial-gradient(ellipse 80% 50% at 90% 30%, var(--shallow) 0%, transparent 70%);
  opacity: 0.7;
}
.map-pin {
  position: absolute; transform: translate(-50%, -100%);
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  cursor: pointer;
}
.map-pin .pin-pill {
  background: var(--paper); padding: 6px 12px; border-radius: 999px;
  font-size: 12px; font-weight: 600; box-shadow: 0 4px 12px rgba(10,37,64,0.25);
  border: 1px solid var(--rule);
}
.map-pin.is-active .pin-pill { background: var(--ink); color: var(--paper); }
.map-pin .pin-stem { width: 0; height: 0; border-left: 5px solid transparent; border-right: 5px solid transparent; border-top: 6px solid var(--paper); }
.map-pin.is-active .pin-stem { border-top-color: var(--ink); }

/* Footer */
.foot { padding: 56px 40px 32px; border-top: 1px solid var(--rule); background: var(--paper); display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; font-size: 13px; }
.foot h4 { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin: 0 0 14px; }
.foot a { color: var(--ink); text-decoration: none; display: block; padding: 4px 0; }
.foot a:hover { color: var(--ocean); }

/* Star/rating */
.star { color: var(--ink); }

/* Logo lockup */
.logo {
  display: flex; align-items: center; gap: 10px;
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 22px; letter-spacing: -0.01em; font-weight: 400;
  color: var(--ink);
}
.logo-mark {
  width: 28px; height: 28px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--sand) 0%, var(--sand-shadow) 60%, var(--ocean) 100%);
  position: relative;
}
.logo-mark::after {
  content: ''; position: absolute; left: 4px; right: 4px; top: 50%; height: 1px;
  background: var(--paper);
  box-shadow: 0 3px 0 0 rgba(255,255,255,0.4), 0 -3px 0 0 rgba(255,255,255,0.5);
}
