:root {
  --ink: #222;
  --muted: #6a6a6a;
  --line: #ddd;
  --coral: #ff385c;
  --coral-deep: #e31c5f;
  --bg: #fff;
  --shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
  --soft: 0 1px 2px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(0, 0, 0, 0.05);
  color: var(--ink);
  background: var(--bg);
  font-family: Manrope, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.4;
}

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; height: 100%; object-fit: cover; }

.app { min-height: 100vh; }
main { padding: 0 40px 96px; max-width: 1440px; margin: 0 auto; }

.top {
  position: sticky; top: 0; z-index: 20;
  display: grid; grid-template-columns: 120px 1fr auto;
  gap: 24px; align-items: center;
  padding: 16px 40px 12px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
}
.logo { font-weight: 800; font-size: 28px; letter-spacing: -0.06em; color: var(--coral); }
.top-actions { display: flex; align-items: center; gap: 16px; font-weight: 600; font-size: 14px; }
.avatar, .signin {
  width: 40px; height: 40px; border-radius: 999px; border: 1px solid var(--line);
  background: #fff; display: grid; place-items: center; font-weight: 700;
}
.signin { width: auto; padding: 0 16px; }

.pill {
  display: grid; grid-template-columns: 1.4fr 0.8fr 0.8fr 0.5fr auto;
  align-items: center; border: 1px solid var(--line); border-radius: 999px;
  box-shadow: var(--soft); background: #fff; padding: 6px 6px 6px 8px; min-height: 64px;
}
.pill label { display: flex; flex-direction: column; padding: 4px 16px; border-right: 1px solid var(--line); font-size: 12px; font-weight: 700; }
.pill label:nth-child(4) { border-right: 0; }
.pill input { border: 0; padding: 2px 0 0; outline: none; font-weight: 500; background: transparent; width: 100%; }
.find {
  width: 48px; height: 48px; border: 0; border-radius: 999px; background: var(--coral); color: #fff; font-weight: 700; font-size: 13px;
}
.find:hover { background: var(--coral-deep); }

.kinds { display: flex; justify-content: center; gap: 8px; padding: 8px 0 4px; }
.kind { background: none; border: 0; padding: 10px 16px 12px; color: var(--muted); font-weight: 600; border-bottom: 2px solid transparent; }
.kind.on { color: var(--ink); border-bottom-color: var(--ink); }

.filters { display: flex; align-items: center; gap: 12px; padding: 8px 0; }
.chip, .state {
  border: 1px solid var(--line); background: #fff; border-radius: 999px;
  padding: 8px 14px; white-space: nowrap; font-weight: 600; font-size: 14px;
}
.chip.on, .state.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.hint { color: var(--muted); font-size: 13px; }
.map-toggle { margin-left: auto; }

.states {
  display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 16px;
  scrollbar-width: none; flex-wrap: nowrap;
}
.states::-webkit-scrollbar { display: none; }

.place-intro { padding: 8px 0 20px; max-width: 720px; }
.place-intro h1 { margin: 0 0 6px; font-size: 32px; letter-spacing: -0.03em; }
.place-intro p { margin: 0; }

.split { display: block; }
.split.map-open { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 24px; }
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px 16px; }
.split.map-open .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.card { position: relative; }
.card a { display: block; }
.photo, .gallery { position: relative; aspect-ratio: 1 / 0.96; border-radius: 20px; overflow: hidden; background: #f3f3f3; }
.gallery { aspect-ratio: 20 / 11; border-radius: 16px; }
.ph { width: 100%; height: 100%; background: linear-gradient(145deg, #ffe4ea, #f7f7f7 55%, #e7e7e7); }
.badge {
  position: absolute; left: 12px; top: 12px; background: #fff; border-radius: 999px;
  padding: 6px 10px; font-size: 13px; font-weight: 700; box-shadow: var(--soft);
}
.heart {
  position: absolute; right: 12px; top: 12px; width: 36px; height: 36px; border: 0; border-radius: 999px;
  background: rgba(255, 255, 255, 0.92); display: grid; place-items: center; padding: 0;
}
.heart svg { width: 20px; height: 20px; fill: rgba(0, 0, 0, 0.45); stroke: #fff; stroke-width: 1.5; }
.heart.on svg { fill: var(--coral); }
.card-copy { padding-top: 10px; }
.card-copy .row { display: flex; justify-content: space-between; gap: 8px; }
.card-copy p { margin: 2px 0; color: var(--muted); }
.card-copy strong { font-weight: 600; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.price { color: var(--ink) !important; font-weight: 600; padding-top: 4px; }
.rate { color: var(--ink); font-size: 14px; white-space: nowrap; }
.meta { color: var(--muted); }

.skel { height: 280px; border-radius: 20px; background: linear-gradient(90deg, #f2f2f2, #e6e6e6, #f2f2f2); background-size: 200% 100%; animation: shine 1.2s linear infinite; }
.skel.tall { height: 420px; margin-top: 16px; }
@keyframes shine { to { background-position: -200% 0; } }

.map { position: sticky; top: 96px; }
.map-canvas {
  position: relative; height: 520px; border-radius: 20px; overflow: hidden;
  background:
    radial-gradient(circle at 30% 70%, rgba(255, 56, 92, 0.08), transparent 40%),
    linear-gradient(180deg, #f7f4ef, #e7f0ea);
  border: 1px solid var(--line);
}
.map-key { color: var(--muted); font-size: 13px; }
.pin {
  position: absolute; transform: translate(-50%, -50%);
  background: #fff; border: 1px solid var(--ink); border-radius: 999px;
  padding: 4px 8px; font-size: 12px; font-weight: 700; white-space: nowrap;
  box-shadow: var(--soft);
}
.pin:hover { background: var(--ink); color: #fff; }

.empty, .banner, .warn { margin: 16px 0; }
.empty h2, .empty h1 { margin-bottom: 6px; }
.banner, .warn { background: #fff4f6; border: 1px solid #ffd0da; border-radius: 12px; padding: 12px 14px; }
.banner button, .trip button, .texty, .back, .navpic {
  border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 8px 12px; margin-right: 8px;
}

.room { padding-top: 12px; }
.room h1 { font-size: 28px; letter-spacing: -0.03em; margin: 16px 0 4px; }
.room-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 48px; align-items: start; margin-top: 20px; }
.book {
  position: sticky; top: 96px; border: 1px solid #ddd; border-radius: 16px; box-shadow: var(--shadow); padding: 24px;
}
.book-price { font-size: 22px; font-weight: 700; margin: 0 0 8px; }
.book label, .host label, .sheet label, .review label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 13px; margin: 10px 0; }
.book input, .host input, .host textarea, .sheet input, .review textarea, .note-form textarea, .inbox textarea, .inline input {
  border: 1px solid var(--line); border-radius: 8px; padding: 12px; font-weight: 500;
}
.reserve {
  width: 100%; margin-top: 8px; height: 48px; border: 0; border-radius: 8px;
  background: var(--coral); color: #fff; font-weight: 700;
}
.reserve:disabled { opacity: 0.6; }
.why { font-weight: 600; }
.amenities { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; padding: 0; list-style: none; }
.amenities li { padding: 8px 0; border-bottom: 1px solid #eee; }
.similar { display: grid; gap: 12px; }
.similar a, .inbox-grid a { display: grid; gap: 2px; padding: 12px 0; border-bottom: 1px solid #eee; }
.navpic { position: absolute; right: 12px; bottom: 12px; }

.page { padding-top: 12px; max-width: 980px; }
.page h1 { font-size: 32px; letter-spacing: -0.03em; }
.compare { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.compare article { border: 1px solid var(--line); border-radius: 16px; padding: 16px; min-height: 120px; }
.trip { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; padding: 16px 0; border-bottom: 1px solid #eee; }
.inbox-grid { display: grid; grid-template-columns: 280px 1fr; gap: 24px; }
.bubble { background: #f7f7f7; border-radius: 16px; padding: 10px 14px; }
.account { display: grid; justify-items: start; gap: 8px; }
.avatar.lg { width: 72px; height: 72px; font-size: 28px; }
.amenity-picks { display: flex; flex-wrap: wrap; gap: 8px; }
.pick { display: flex; gap: 8px; align-items: center; font-weight: 600; }

.sheet-bg { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.4); z-index: 40; display: grid; place-items: end center; }
.sheet { background: #fff; width: min(480px, 100%); border-radius: 16px 16px 0 0; padding: 24px 24px 32px; }
.toast {
  position: fixed; left: 50%; bottom: 88px; transform: translateX(-50%);
  background: var(--ink); color: #fff; border-radius: 999px; padding: 12px 18px; z-index: 50;
}
.bottom {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  background: #fff; border-top: 1px solid var(--line);
  padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
  grid-template-columns: repeat(5, 1fr);
}
.tab { border: 0; background: none; font-size: 11px; font-weight: 700; color: var(--muted); }

@media (max-width: 1100px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .split.map-open { grid-template-columns: 1fr; }
  .map { position: relative; top: 0; }
}
@media (max-width: 900px) {
  main { padding: 0 20px 108px; }
  .top { grid-template-columns: auto 1fr; padding: 12px 16px; gap: 12px; }
  .top-actions a { display: none; }
  .pill { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; border-radius: 16px; }
  .pill label { border-right: 0; }
  .grid, .split.map-open .grid { grid-template-columns: 1fr 1fr; gap: 16px 10px; }
  .room-grid, .inbox-grid, .compare { grid-template-columns: 1fr; }
  .book { position: static; }
  .bottom { display: grid; }
  .hint { display: none; }
  .place-intro h1, .page h1 { font-size: 26px; }
}
@media (max-width: 560px) {
  .grid, .split.map-open .grid { grid-template-columns: 1fr; }
}
