/* ============================================================
   Redlight District Canal View Amsterdam — shared design system
   Extracted and extended from the original Canal Villa page.
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --black: #111111;
  --white: #ffffff;
  --cream: #faf9f7;
  --grey-light: #f2f0ed;
  --grey-mid: #e0ddd8;
  --grey-text: #6b6560;
  --accent: #c8a96e;
  --accent-dark: #a98b52;
  --green: #2e7d5b;
  --red: #b3403a;
  --radius: 10px;
  --shadow-sm: 0 1px 3px rgba(17,17,17,0.07);
  --shadow-md: 0 6px 24px rgba(17,17,17,0.09);
  --shadow-lg: 0 18px 48px rgba(17,17,17,0.14);
  --nav-h: 64px;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--black);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 { line-height: 1.2; font-weight: 600; letter-spacing: -0.02em; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: 1.15rem; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.container-wide { max-width: 1440px; margin: 0 auto; padding: 0 2rem; }

.section-eyebrow {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 0.6rem;
}
.muted { color: var(--grey-text); }
.small { font-size: 0.85rem; }
.tiny { font-size: 0.76rem; }
.strike { text-decoration: line-through; color: var(--grey-text); }

/* ── NAV ── */
nav.site-nav {
  position: sticky; top: 0; z-index: 200;
  height: var(--nav-h);
  padding: 0 2rem;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--grey-mid);
}
nav.site-nav.transparent {
  position: fixed; left: 0; right: 0;
  background: transparent; border-color: transparent; backdrop-filter: none;
}
nav.site-nav.transparent .nav-logo,
nav.site-nav.transparent .nav-links a { color: var(--white); }
nav.site-nav.transparent.scrolled {
  background: rgba(255,255,255,0.96);
  border-bottom: 1px solid var(--grey-mid);
  backdrop-filter: blur(10px);
}
nav.site-nav.transparent.scrolled .nav-logo,
nav.site-nav.transparent.scrolled .nav-links a { color: var(--black); }

.nav-logo {
  font-size: 0.88rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; text-decoration: none; color: var(--black);
  white-space: nowrap; transition: color 0.3s;
}
.nav-links { display: flex; align-items: center; gap: 1.6rem; }
.nav-links a {
  font-size: 0.85rem; text-decoration: none; color: var(--black);
  transition: color 0.2s, opacity 0.2s;
}
.nav-links a:hover { opacity: 0.6; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  background: var(--accent); color: var(--white); border: none;
  padding: 0.7rem 1.5rem; border-radius: var(--radius);
  font-family: var(--font); font-size: 0.9rem; font-weight: 600;
  letter-spacing: 0.02em; cursor: pointer; text-decoration: none;
  transition: background 0.2s, opacity 0.2s, transform 0.1s;
}
.btn:hover { background: var(--accent-dark); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-lg { padding: 0.95rem 2rem; font-size: 1rem; width: 100%; }
.btn-dark { background: var(--black); }
.btn-dark:hover { background: #333; }
.btn-outline {
  background: transparent; color: var(--black); border: 1px solid var(--grey-mid);
}
.btn-outline:hover { background: var(--grey-light); }
.btn-sm { padding: 0.45rem 0.95rem; font-size: 0.8rem; }

/* ── FORM CONTROLS ── */
/* min-width:0 lets a field shrink inside a flex row. Without it a date
   input refuses to go below its intrinsic width and spills out of narrow
   panels like the booking box. */
label.field { display: block; min-width: 0; }
.field-label {
  display: block; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--grey-text); margin-bottom: 0.35rem;
}
input, select, textarea {
  font-family: var(--font); font-size: 0.92rem; color: var(--black);
  width: 100%; min-width: 0; padding: 0.65rem 0.8rem;
  border: 1px solid var(--grey-mid); border-radius: 8px; background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(200,169,110,0.18);
}
/* The sizing above is for fields you type into. Checkboxes, radios and
   sliders are controls, not text boxes — left on width:100% a radio grows
   to fill the sidebar and shoves its own label off the edge. */
input[type="checkbox"], input[type="radio"] {
  width: auto; flex: none; padding: 0; border: 0; background: none;
  border-radius: 0; box-shadow: none; accent-color: var(--accent);
}
input[type="checkbox"]:focus, input[type="radio"]:focus { box-shadow: none; outline: 2px solid var(--accent); outline-offset: 2px; }
input[type="range"] { padding: 0; border: 0; background: none; accent-color: var(--accent); }
.field-error { color: var(--red); font-size: 0.78rem; margin-top: 0.3rem; display: none; }
.has-error input, .has-error select { border-color: var(--red); }
.has-error .field-error { display: block; }

/* ── SEARCH BAR ── */
.searchbar {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr auto;
  gap: 0.6rem; align-items: end;
  background: var(--white);
  padding: 0.9rem;
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--grey-mid);
}
.searchbar .btn { height: 42px; padding-inline: 1.8rem; }

/* ── CARDS ── */
.card {
  background: var(--white); border: 1px solid var(--grey-mid);
  border-radius: var(--radius); overflow: hidden;
  transition: box-shadow 0.25s, transform 0.25s;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

.pill {
  display: inline-block; padding: 0.22rem 0.65rem; border-radius: 100px;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  background: var(--grey-light); color: var(--grey-text);
}
.pill-accent { background: rgba(200,169,110,0.16); color: var(--accent-dark); }
.pill-green { background: rgba(46,125,91,0.12); color: var(--green); }
.pill-dark { background: var(--black); color: var(--white); }

.score-badge {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--black); color: var(--white);
  font-weight: 700; font-size: 0.9rem;
  padding: 0.35rem 0.6rem; border-radius: 8px 8px 8px 0;
  min-width: 42px;
}

/* ── LAYOUT HELPERS ── */
.grid { display: grid; gap: 1.5rem; }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }
.row { display: flex; align-items: center; gap: 0.75rem; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.stack { display: flex; flex-direction: column; gap: 1rem; }
.wrap { flex-wrap: wrap; }
section.pad { padding: 5rem 0; }
section.pad-sm { padding: 3rem 0; }
.bg-cream { background: var(--cream); }
.divider { height: 1px; background: var(--grey-mid); border: 0; margin: 1.5rem 0; }

/* ── FOOTER ── */
footer.site-footer {
  background: var(--black); color: var(--white);
  padding: 3.5rem 0 2rem; margin-top: 5rem;
}
footer.site-footer a { color: rgba(255,255,255,0.7); text-decoration: none; font-size: 0.86rem; }
footer.site-footer a:hover { color: var(--white); }
.footer-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem; margin-bottom: 2.5rem;
}
.footer-heading {
  font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 0.9rem; font-weight: 700;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.14); padding-top: 1.5rem;
  font-size: 0.78rem; color: rgba(255,255,255,0.55);
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
}

/* ── UTILITIES ── */
.skeleton {
  background: linear-gradient(90deg, var(--grey-light) 25%, #e8e5e0 50%, var(--grey-light) 75%);
  background-size: 200% 100%; animation: shimmer 1.2s infinite;
  border-radius: var(--radius);
}
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* Photo not in /img yet — show a neutral panel rather than a broken tile. */
.img-missing {
  background-image: none !important;
  background: repeating-linear-gradient(45deg, var(--grey-light), var(--grey-light) 12px, #eae7e2 12px, #eae7e2 24px);
  position: relative;
}
.img-missing::after {
  content: 'Photo coming soon';
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--grey-text); background: rgba(250,249,247,0.72);
}

.empty-state { text-align: center; padding: 4rem 1rem; color: var(--grey-text); }
.notice {
  background: var(--grey-light); border-left: 3px solid var(--accent);
  padding: 0.9rem 1.1rem; border-radius: 0 8px 8px 0; font-size: 0.88rem;
}

@media (max-width: 900px) {
  .searchbar { grid-template-columns: 1fr 1fr; }
  .searchbar .btn { grid-column: 1 / -1; width: 100%; }
  .container, .container-wide { padding: 0 1.25rem; }
  section.pad { padding: 3rem 0; }
  .nav-links { gap: 1rem; }
}
@media (max-width: 560px) {
  .searchbar { grid-template-columns: 1fr; }
  .nav-links a.hide-sm { display: none; }
}

/* The language picker and the labels only screen readers should see.
   These belong to the nav, which every page has — they used to live in
   the card stylesheet, so any page without property cards showed the
   picker full-width with its label hanging out of the bar. */
.lang-picker select {
  width: auto; padding: 0.3rem 1.6rem 0.3rem 0.5rem; font-size: 0.82rem;
  border-radius: 999px; background-color: transparent;
  border: 1px solid currentColor; color: inherit;
}
.lang-picker select option { color: #111; }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
