:root {
  --brand: #f15f5f;
  --brand-dark: #d44b4b;
  --ink: #1c1917;
  --muted: #57534e;
  --line: #e7e5e4;
  --paper: #f7f5f3;
  --card: #fff;
  --shadow: 0 10px 30px rgba(28, 25, 23, 0.06);
  --radius: 16px;
  --max: 1120px;
  color-scheme: light;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Poppins, system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.5;
}

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

a { color: inherit; }

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: #fff;
  padding: 0.5rem 0.8rem;
  z-index: 10;
}

.skip:focus { top: 0.5rem; }

.top {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1.25rem;
  background: rgba(247, 245, 243, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.logo {
  font-weight: 600;
  font-size: 1.35rem;
  color: var(--brand);
  text-decoration: none;
  letter-spacing: 0.01em;
}

.menu {
  display: none;
  margin-left: auto;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
  font: inherit;
}

#nav {
  display: flex;
  gap: 0.35rem;
  align-items: center;
}

#nav a {
  text-decoration: none;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.95rem;
}

#nav a[aria-current="page"],
#nav a:hover { background: #fff; color: var(--ink); }

#account-slot { margin-left: auto; }

.signin {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  background: var(--brand);
  color: #fff;
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  font-weight: 600;
  font-size: 0.92rem;
}

.signin:hover { background: var(--brand-dark); }

.wrap {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
}

main { padding: 1.5rem 0 3rem; }

.hero {
  padding: 2.5rem 0 1rem;
}

.eyebrow {
  margin: 0 0 0.4rem;
  color: var(--brand);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

h1 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.15;
  margin: 0 0 0.6rem;
  letter-spacing: -0.03em;
}

.lede { font-size: 1.05rem; color: var(--muted); max-width: 42rem; }

.hero-search,
.search-form,
.stack-form {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.hero-search {
  grid-template-columns: 1.4fr 1fr 1fr auto;
  align-items: end;
  background: var(--card);
  padding: 1rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

label { display: grid; gap: 0.3rem; font-size: 0.85rem; font-weight: 600; }

input, select, textarea {
  font: inherit;
  color: inherit;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.7rem 0.75rem;
  background: #fff;
  width: 100%;
}

textarea { min-height: 8rem; resize: vertical; }

button, .button {
  font: inherit;
  font-weight: 600;
  border: 0;
  border-radius: 12px;
  background: var(--brand);
  color: #fff;
  padding: 0.75rem 1rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  justify-content: center;
  align-items: center;
}

button:hover, .button:hover { background: var(--brand-dark); }

button:disabled { opacity: 0.6; cursor: progress; }

.section { margin-top: 2.2rem; }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}

.section-head h2 { margin: 0; font-size: 1.35rem; }

.section-head a { color: var(--brand-dark); font-weight: 600; }

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1rem;
}

.card {
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.card a { display: block; text-decoration: none; height: 100%; }

.card img, .ph {
  aspect-ratio: 4 / 3;
  width: 100%;
  object-fit: cover;
  background: #efe8e4;
}

.ph {
  display: grid;
  place-items: center;
  color: var(--muted);
  padding: 1rem;
  text-align: center;
}

.card-body, .prose, .panel { padding: 0.9rem 1rem 1.1rem; }

.card h3 { margin: 0 0 0.25rem; font-size: 1.02rem; }

.price { margin: 0; color: var(--brand-dark); font-weight: 600; }

.meta, .muted { color: var(--muted); margin: 0.2rem 0 0; }

.empty {
  margin: 1rem 0 0;
  color: var(--muted);
}

.more { margin-top: 1rem; background: #fff; color: var(--ink); border: 1px solid var(--line); }

.property { display: grid; grid-template-columns: 1.4fr 0.8fr; gap: 1.25rem; align-items: start; }

.gallery { display: grid; gap: 0.6rem; }

.gallery img:first-child { border-radius: var(--radius); width: 100%; max-height: 520px; object-fit: cover; }

.thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.5rem; }

.thumbs img { border-radius: 10px; aspect-ratio: 1; object-fit: cover; width: 100%; }

.panel {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.panel h2 { margin-top: 0; font-size: 1.1rem; }

.facts { display: flex; flex-wrap: wrap; gap: 0.4rem; padding: 0; margin: 0.8rem 0; list-style: none; }

.facts li {
  background: var(--paper);
  border-radius: 999px;
  padding: 0.25rem 0.7rem;
  font-size: 0.88rem;
}

.stay-section { margin-top: 1.75rem; }

.stay-section h2 { margin: 0 0 0.75rem; font-size: 1.25rem; }

.amenities {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.amenities li {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
  padding: 0.45rem 0.75rem;
}

#stay-book { display: grid; gap: 0.75rem; max-width: 40rem; }

.cal-nav { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }

.cal-nav button {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 999px;
  min-width: 2.5rem;
  min-height: 2.5rem;
}

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.25rem;
}

.cal-dow, .cal-day { text-align: center; }

.cal-dow { color: var(--muted); font-size: 0.75rem; padding: 0.25rem 0; }

.cal-day {
  border: 0;
  background: transparent;
  color: var(--ink);
  border-radius: 10px;
  min-height: 2.75rem;
  padding: 0.2rem 0.1rem;
}

.cal-day .amt { display: block; font-size: 0.62rem; color: var(--muted); line-height: 1.1; }

.cal-day:disabled { color: #c4bfba; text-decoration: line-through; }

.cal-day.in-range { background: #fde8e8; }

.cal-day.start, .cal-day.end { background: var(--brand); color: #fff; }

.cal-day.start .amt, .cal-day.end .amt { color: #fff; }

.quote { display: grid; gap: 0.35rem; }

.quote div { display: flex; justify-content: space-between; gap: 1rem; }

.quote .total { font-weight: 600; }

.review { padding: 0.75rem 0; border-top: 1px solid var(--line); }

.review h3 { margin: 0; font-size: 1rem; }

.stay { display: grid; gap: 0.25rem; }

.carousel-stage {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: #1c1917;
}

.carousel-empty .carousel-stage {
  min-height: 220px;
  display: grid;
  place-items: center;
  background: #fff;
  color: var(--muted);
}

.carousel-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  aspect-ratio: 16 / 10;
  max-height: 560px;
}

.carousel-track::-webkit-scrollbar { display: none; }

.carousel-track img {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  scroll-snap-align: start;
  cursor: zoom-in;
}

.carousel:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }

button.carousel-arrow,
button.carousel-thumb,
button.lightbox-close {
  background: #fff;
  color: var(--ink);
  border: 0;
  padding: 0;
}

button.carousel-arrow {
  position: absolute;
  top: 50%;
  z-index: 1;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  font-size: 1.5rem;
  box-shadow: var(--shadow);
}

button.carousel-arrow.prev { left: 0.75rem; transform: translateY(-50%); }
button.carousel-arrow.next { right: 0.75rem; transform: translateY(-50%); }
button.carousel-arrow:hover,
button.lightbox-close:hover { background: #fff; }

.carousel-count {
  position: absolute;
  left: 50%;
  bottom: 0.75rem;
  transform: translateX(-50%);
  margin: 0;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  border-radius: 999px;
  padding: 0.2rem 0.7rem;
  font-size: 0.82rem;
}

.carousel-thumbs {
  display: flex;
  gap: 0.45rem;
  overflow-x: auto;
  padding: 0.7rem 0 0.15rem;
}

button.carousel-thumb {
  width: 4.6rem;
  height: 3.3rem;
  border-radius: 10px;
  border: 2px solid transparent;
  overflow: hidden;
  flex: 0 0 auto;
}

button.carousel-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

button.carousel-thumb[aria-current="true"] { border-color: var(--brand); }

.stay-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 0.5rem 1.5rem;
  align-items: start;
  margin-top: 1.1rem;
}

.stay-intro { grid-column: 1; }
.stay-details { grid-column: 1; }
.stay-book { grid-column: 2; grid-row: 1 / span 2; }

.stay-intro h1 { font-size: clamp(1.7rem, 3vw, 2.5rem); }

.stay-book {
  position: sticky;
  top: 5.25rem;
  background: #fff;
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 1rem 1rem 1.15rem;
}

.stay-book h2 { margin: 0 0 0.35rem; font-size: 1.15rem; }

.stay-book #stay-book { max-width: none; }

.host-card { display: flex; gap: 0.85rem; align-items: center; }

.host-avatar {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 600;
  overflow: hidden;
  flex: 0 0 auto;
}

.host-avatar img { width: 100%; height: 100%; object-fit: cover; }

.stay-host-actions .button { width: 100%; max-width: 22rem; background: #fff; color: var(--ink); border: 1px solid var(--line); }
.stay-host-actions .button:hover { background: #f6f6f6; }

.lightbox {
  width: 100vw;
  height: 100vh;
  max-width: 100vw;
  max-height: 100vh;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.lightbox::backdrop { background: rgba(28, 25, 23, 0.86); }

body:has(#stay-lightbox[open]) .carousel-stage .carousel-arrow,
body:has(#stay-lightbox[open]) .carousel-stage .carousel-count { visibility: hidden; }

.lightbox img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.lightbox .carousel-arrow,
.lightbox .carousel-count,
button.lightbox-close { position: fixed; }

button.lightbox-close {
  top: 1rem;
  right: 1rem;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 999px;
  font-size: 1.5rem;
}

.chat-pop {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 40;
  width: min(22.5rem, calc(100vw - 1.5rem));
  height: min(32rem, calc(100vh - 5.5rem));
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 18px 50px rgba(28, 25, 23, 0.28);
  overflow: hidden;
}

.chat-pop[hidden] { display: none; }

.chat-head {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.75rem 0.8rem;
  background: #1877f2;
  color: #fff;
  flex: 0 0 auto;
}

.chat-head > div { min-width: 0; flex: 1; }

.chat-head strong,
.chat-head .meta {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-head strong { font-size: 0.95rem; }
.chat-head .meta { color: rgba(255, 255, 255, 0.85); font-size: 0.78rem; }

.chat-avatar {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.2);
  font-weight: 600;
  flex: 0 0 auto;
  overflow: hidden;
}

.chat-avatar img { width: 100%; height: 100%; object-fit: cover; }

.chat-head button {
  margin-left: auto;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border-radius: 999px;
  background: transparent;
  color: #fff;
  font-size: 1.4rem;
}

.chat-head button:hover { background: rgba(255, 255, 255, 0.16); }

.chat-log {
  flex: 1;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 0.8rem;
  background: #f0f2f5;
}

.chat-bubble {
  max-width: 80%;
  margin: 0;
  padding: 0.5rem 0.75rem;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.06);
}

.chat-bubble.mine {
  margin-left: auto;
  background: #1877f2;
  color: #fff;
  border-bottom-right-radius: 4px;
}

.chat-quick {
  display: flex;
  gap: 0.4rem;
  overflow-x: auto;
  padding: 0.55rem 0.7rem 0;
  background: #fff;
}

.chat-quick button {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  font-size: 0.78rem;
  font-weight: 500;
  white-space: nowrap;
}

.chat-quick button:hover { background: #f6f6f6; }

.chat-compose {
  display: flex;
  gap: 0.45rem;
  align-items: center;
  padding: 0.6rem 0.7rem 0.7rem;
  background: #fff;
}

.chat-compose input { border-radius: 999px; }

.chat-compose button {
  width: 2.6rem;
  height: 2.6rem;
  padding: 0;
  border-radius: 999px;
  flex: 0 0 auto;
}

@media (max-width: 900px) {
  .cards { grid-template-columns: 1fr 1fr; }
  .property, .hero-search { grid-template-columns: 1fr; }
  .stay-grid { grid-template-columns: 1fr; }
  .stay-intro, .stay-book, .stay-details { grid-column: 1; grid-row: auto; }
  .stay-book { position: static; }
}

.catalog { display: grid; gap: 0.35rem; }

.catalog a { color: var(--brand-dark); }

.alert { color: var(--brand-dark); min-height: 1.25rem; }

.stores { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1rem; }

.foot {
  border-top: 1px solid var(--line);
  padding: 1.5rem;
  display: grid;
  gap: 0.6rem;
  color: var(--muted);
}

.foot nav { display: flex; flex-wrap: wrap; gap: 0.8rem 1rem; }

.foot a { color: var(--ink); }

.foot-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
}

.foot-bar p { margin: 0; }

.foot-apps { display: flex; gap: 0.5rem; }

.foot a.store {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
}

.foot a.store:hover { background: var(--brand-dark); }

.narrow { max-width: 40rem; }

.soon {
  background: var(--card);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
}

.tabs { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1rem 0; }
.tabs button {
  background: #fff;
  color: inherit;
  border: 1px solid var(--line);
}
.tabs button[aria-current="true"] {
  background: var(--brand);
  color: #fff;
  border-color: transparent;
}
.inbox, .stack { display: grid; gap: 0.75rem; }
.thread-link, .booking {
  display: grid;
  gap: 0.25rem;
  background: #fff;
  color: inherit;
  text-decoration: none;
  border-radius: 16px;
  padding: 0.9rem 1rem;
  box-shadow: var(--shadow);
}
.thread-log {
  display: grid;
  gap: 0.5rem;
  max-height: 28rem;
  overflow: auto;
  margin: 1rem 0;
}
.bubble {
  justify-self: start;
  max-width: min(36rem, 100%);
  background: #fff;
  border-radius: 14px;
  padding: 0.65rem 0.8rem;
  box-shadow: var(--shadow);
}
.bubble p { margin: 0; }
.bubble.mine { justify-self: end; background: #fde8e8; }
.composer { display: flex; gap: 0.5rem; align-items: center; }
.composer input { flex: 1; }
.booking-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.35rem; }
button.ghost, .ghost {
  background: #fff;
  color: inherit;
  border: 1px solid var(--line);
}
button.ghost:hover { background: #f6f6f6; }
.notice { color: #9b1c1c; margin: 0.4rem 0 0; }

@media (max-width: 700px) {
  .menu { display: inline-flex; }
  #nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 0.5rem;
  }
  #nav.open { display: flex; }
  #account-slot { margin-left: 0; }
  .top { flex-wrap: wrap; }
  .cards { grid-template-columns: 1fr; }
}
