/* ============================================================
   Haven Stays — vacation-rental demo (demo2)
   Plain CSS, shared across catalog / listing / booking pages.
   Calm, design-led travel theme (teal accent), distinct from demo1.
   ============================================================ */
:root {
  --ink: #16201d;
  --muted: #5d6b66;
  --line: #e6ece9;
  --bg: #f6f8f7;
  --card: #ffffff;
  --accent: #0d9488;       /* teal-600 */
  --accent-dark: #0f766e;  /* teal-700 */
  --accent-ink: #ffffff;
  --accent-soft: #e6f5f2;
  --star: #f59e0b;
  --warn: #dc6a4b;
  --radius: 18px;
  --shadow: 0 12px 34px rgba(16, 32, 29, .07);
  --maxw: 1140px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

/* ---------- top bar ---------- */
.bar {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 255, 255, .85);
  backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.bar__inner { display: flex; align-items: center; gap: 18px; height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.2rem; letter-spacing: -.01em; }
.brand__mark {
  width: 30px; height: 30px; border-radius: 9px;
  background: linear-gradient(135deg, var(--accent), #2dd4bf);
  display: grid; place-items: center; color: #fff; font-size: 1rem;
}
.bar nav { display: flex; gap: 20px; margin-left: 10px; }
.bar nav a { color: var(--muted); font-weight: 600; font-size: .95rem; }
.bar nav a:hover, .bar nav a.is-active { color: var(--ink); }
.bar__spacer { flex: 1; }
.trip-link {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent-soft); color: var(--accent-dark);
  padding: 9px 15px; border-radius: 999px; font-weight: 700; font-size: .92rem;
}
.trip-link .count {
  min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px;
  background: var(--accent); color: #fff; font-size: .75rem;
  display: inline-grid; place-items: center;
}

/* ---------- hero ---------- */
.hero { padding: 66px 0 32px; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); letter-spacing: -.025em; line-height: 1.07; }
.hero h1 span { color: var(--accent); }
.hero p { color: var(--muted); font-size: 1.12rem; margin-top: 14px; max-width: 580px; }

/* ---------- section ---------- */
.section { padding: 30px 0 60px; }
.section__head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 22px; }
.section__head h2 { font-size: 1.45rem; letter-spacing: -.01em; }
.section__head a { color: var(--accent-dark); font-weight: 700; font-size: .92rem; }

/* ---------- stay grid ---------- */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 900px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 580px) { .grid { grid-template-columns: 1fr; } }

.stay-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.stay-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: #cfe3df; }
.stay-card__art { height: 180px; display: grid; place-items: center; font-size: 3.6rem; position: relative; }
.stay-card__cat {
  position: absolute; top: 12px; left: 12px;
  background: rgba(255,255,255,.9); color: var(--accent-dark);
  font-size: .7rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  padding: 4px 9px; border-radius: 999px;
}
.stay-card__body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 5px; flex: 1; }
.stay-card__name { font-size: 1.08rem; font-weight: 700; }
.stay-card__loc { color: var(--muted); font-size: .9rem; display: flex; align-items: center; gap: 5px; }
.stay-card__row { display: flex; align-items: baseline; justify-content: space-between; margin-top: 10px; }
.rate { font-weight: 800; font-size: 1.05rem; }
.rate span { color: var(--muted); font-weight: 500; font-size: .85rem; }
.stars { color: var(--star); font-size: .85rem; letter-spacing: 1px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 700; font-size: .94rem; border: 1px solid transparent;
  padding: 11px 18px; border-radius: 12px; cursor: pointer; transition: filter .15s ease, background .15s ease;
}
.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { filter: brightness(1.06); }
.btn--ghost { background: #fff; border-color: var(--line); color: var(--ink); }
.btn--ghost:hover { border-color: #c4d8d3; }
.btn--block { width: 100%; }
.btn--sm { padding: 8px 13px; font-size: .86rem; border-radius: 10px; }
.btn--lg { padding: 13px 22px; font-size: 1rem; }

/* ---------- listing detail ---------- */
.crumbs { color: var(--muted); font-size: .88rem; padding: 22px 0 0; }
.crumbs a:hover { color: var(--accent-dark); }
.detail { display: grid; grid-template-columns: 1.05fr 1fr; gap: 42px; padding: 24px 0 50px; align-items: start; }
@media (max-width: 860px) { .detail { grid-template-columns: 1fr; gap: 26px; } }
.detail__art { border-radius: 22px; height: 380px; display: grid; place-items: center; font-size: 7.5rem; }
.detail__cat { font-size: .74rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--accent-dark); }
.detail h1 { font-size: clamp(1.7rem, 4vw, 2.4rem); letter-spacing: -.02em; margin: 8px 0 6px; }
.detail__loc { color: var(--muted); margin-bottom: 14px; }
.detail__rate { font-size: 1.5rem; font-weight: 800; margin: 4px 0 16px; }
.detail__rate span { color: var(--muted); font-size: .95rem; font-weight: 500; }
.detail__lead { color: var(--muted); font-size: 1.04rem; margin-bottom: 20px; }
.detail__actions { display: flex; gap: 12px; margin-bottom: 26px; flex-wrap: wrap; }

.amenities { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 18px; margin: 4px 0 22px; }
.amenities li { list-style: none; color: var(--ink); font-size: .94rem; display: flex; gap: 8px; align-items: center; }
.amenities li::before { content: "✓"; color: var(--accent); font-weight: 800; }

.specs { border-top: 1px solid var(--line); }
.specs__row { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: .94rem; }
.specs__row span:first-child { color: var(--muted); }
.specs__row span:last-child { font-weight: 600; }
h2.block { font-size: 1.15rem; margin: 4px 0 12px; letter-spacing: -.01em; }

/* art tints */
.tint-a { background: linear-gradient(135deg, #cdeeff, #a7d8f0); }
.tint-b { background: linear-gradient(135deg, #d7eede, #b6e0c4); }
.tint-c { background: linear-gradient(135deg, #e7e9ff, #cdd3fb); }
.tint-d { background: linear-gradient(135deg, #d5f1f3, #b6e6e2); }
.tint-e { background: linear-gradient(135deg, #ffe9cf, #ffd2a8); }
.tint-f { background: linear-gradient(135deg, #ffe1d6, #ffc6b0); }

/* ---------- booking ---------- */
.booking { padding: 30px 0 60px; }
.booking h1 { font-size: 1.9rem; letter-spacing: -.02em; margin-bottom: 22px; }
.booking__grid { display: grid; grid-template-columns: 1fr 340px; gap: 30px; align-items: start; }
@media (max-width: 860px) { .booking__grid { grid-template-columns: 1fr; } }
.booking-stay { display: flex; gap: 16px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 16px; }
.booking-stay__art { width: 96px; height: 96px; border-radius: 12px; display: grid; place-items: center; font-size: 2.6rem; flex: none; }
.booking-stay__name { font-weight: 700; font-size: 1.1rem; }
.booking-stay__loc { color: var(--muted); font-size: .9rem; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 20px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: .82rem; color: var(--muted); font-weight: 600; }
.field input, .field select {
  border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font: inherit; background: #fff; color: var(--ink);
}
.summary { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; position: sticky; top: 86px; }
.summary h3 { font-size: 1.1rem; margin-bottom: 14px; }
.summary__row { display: flex; justify-content: space-between; padding: 7px 0; color: var(--muted); font-size: .95rem; }
.summary__row--total { color: var(--ink); font-weight: 800; font-size: 1.2rem; border-top: 1px solid var(--line); margin-top: 8px; padding-top: 14px; }
.booking-empty { color: var(--muted); padding: 30px 0; }

.toast {
  position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%) translateY(20px);
  background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 12px;
  font-weight: 600; font-size: .92rem; opacity: 0; pointer-events: none;
  transition: opacity .2s ease, transform .2s ease; z-index: 50;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--line); padding: 30px 0; color: var(--muted); font-size: .9rem; }
.foot__inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.foot a { color: var(--muted); margin-left: 16px; }
.foot a:hover { color: var(--ink); }
