/* Kaleidoscope Hill — site styles
   Airbnb-inspired layout with neutral typography and a single accent color
   derived from the Airbnb "Rausch" brand pink (the booking CTA color). */

:root {
  --text: #222222;
  --text-subtle: #6a6a6a;
  --text-muted: #9a9a9a;
  --border: #ebebeb;
  --border-strong: #dddddd;
  --bg: #ffffff;
  --bg-subtle: #f7f7f7;
  --bg-elev: #ffffff;
  --primary: #1c1c1c;
  --primary-hover: #000000;
  --shadow-card: 0 6px 16px rgba(0, 0, 0, 0.08);
  --shadow-card-hover: 0 10px 28px rgba(0, 0, 0, 0.14);
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --max-width: 1120px;
  --gap: 24px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, "Noto Sans", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

button {
  font-family: inherit;
  cursor: pointer;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.01em;
}

h1 {
  font-size: 32px;
  line-height: 1.15;
}

h2 {
  font-size: 22px;
  line-height: 1.25;
}

h3 {
  font-size: 18px;
}

p {
  margin: 0 0 1em;
}

hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 32px 0;
}

/* ---------- shared header / footer ---------- */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.site-header__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 18px;
}

.site-header__logo {
  width: 32px;
  height: 32px;
}

.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 64px;
  padding: 24px 32px;
  font-size: 14px;
  color: var(--text-subtle);
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
}

.site-footer a:hover {
  color: var(--text);
}

/* ---------- homepage ---------- */

.home {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 64px 24px 32px;
  text-align: center;
}

.home__logo {
  width: 160px;
  height: 160px;
  margin: 0 auto 24px;
}

.home__title {
  font-size: 48px;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.home__subtitle {
  font-size: 18px;
  color: var(--text-subtle);
  max-width: 560px;
  margin: 0 auto 56px;
}

.home__choices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  text-align: left;
}

.home__card {
  display: block;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--bg);
  text-decoration: none;
  color: inherit;
  transition: transform 200ms ease, box-shadow 200ms ease;
  box-shadow: var(--shadow-card);
}

.home__card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
  text-decoration: none;
}

.home__card-photo {
  aspect-ratio: 4 / 3;
  width: 100%;
  object-fit: cover;
  background: var(--bg-subtle);
}

.home__card-body {
  padding: 20px 24px 24px;
}

.home__card-name {
  font-size: 24px;
  margin-bottom: 4px;
}

.home__card-meta {
  font-size: 14px;
  color: var(--text-subtle);
  margin-bottom: 12px;
}

.home__card-meta .star {
  color: var(--text);
  font-weight: 600;
}

.home__card-blurb {
  color: var(--text-subtle);
  font-size: 15px;
  line-height: 1.5;
}

@media (max-width: 720px) {
  .home {
    padding: 32px 16px 16px;
  }
  .home__logo {
    width: 120px;
    height: 120px;
  }
  .home__title {
    font-size: 36px;
  }
  .home__subtitle {
    font-size: 16px;
    margin-bottom: 32px;
  }
  .home__choices {
    grid-template-columns: 1fr;
  }
}

/* ---------- listing page ---------- */

.listing {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 32px 24px 0;
}

.listing__title {
  font-size: 30px;
  margin-bottom: 8px;
}

.listing__subtitle {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-size: 14px;
  color: var(--text-subtle);
  margin-bottom: 24px;
}

.listing__subtitle .dot {
  color: var(--text-muted);
}

.listing__subtitle .star {
  color: var(--text);
  font-weight: 600;
}

.listing__subtitle .badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--bg-subtle);
  padding: 2px 8px;
  border-radius: 999px;
  color: var(--text);
  font-weight: 500;
}

/* ---------- gallery (Airbnb-style 1+4 grid) ---------- */

.gallery {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 8px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 32px;
  aspect-ratio: 16 / 9;
  max-height: 540px;
}

.gallery__photo {
  position: relative;
  background: var(--bg-subtle);
  cursor: pointer;
  overflow: hidden;
}

.gallery__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 300ms ease, filter 200ms ease;
}

.gallery__photo:hover img {
  filter: brightness(0.95);
}

.gallery__photo:nth-child(1) {
  grid-row: 1 / 3;
}

.gallery__more {
  position: absolute;
  right: 16px;
  bottom: 16px;
  background: var(--bg);
  border: 1px solid var(--text);
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

@media (max-width: 720px) {
  .gallery {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    aspect-ratio: auto;
    max-height: none;
  }
  .gallery__photo {
    aspect-ratio: 4 / 3;
  }
  .gallery__photo:not(:nth-child(1)) {
    display: none;
  }
}

/* ---------- two-column body ---------- */

.listing__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 64px;
}

.listing__main > section {
  padding: 32px 0;
  border-bottom: 1px solid var(--border);
}

.listing__main > section:first-child {
  padding-top: 0;
}

.listing__main > section:last-child {
  border-bottom: none;
}

.listing__main h2 {
  margin-bottom: 16px;
}

.summary__line {
  font-size: 15px;
  color: var(--text-subtle);
  margin: 0;
}

.host-blurb {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  font-size: 15px;
  color: var(--text-subtle);
}

.host-blurb .superhost {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
  color: var(--text);
  background: var(--bg-subtle);
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 13px;
}

.highlights {
  display: grid;
  gap: 20px;
}

.highlight {
  display: flex;
  gap: 16px;
}

.highlight__icon {
  font-size: 22px;
  line-height: 1;
  flex-shrink: 0;
  width: 28px;
}

.highlight__title {
  font-weight: 600;
  font-size: 16px;
  color: var(--text);
}

.highlight__subtitle {
  color: var(--text-subtle);
  font-size: 14px;
  margin-top: 2px;
}

.description__item + .description__item {
  margin-top: 24px;
}

.description__item-title {
  font-weight: 600;
  margin-bottom: 8px;
}

.description__item-body {
  white-space: pre-line;
}

.sleeping {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.sleeping__card {
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 20px;
}

.sleeping__card-title {
  font-weight: 600;
  margin-bottom: 4px;
}

.sleeping__card-subtitle {
  color: var(--text-subtle);
  font-size: 14px;
}

.amenities {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 32px;
}

.amenity {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 8px 0;
  font-size: 15px;
}

.amenity--unavailable {
  color: var(--text-muted);
  text-decoration: line-through;
}

.amenity__icon {
  font-size: 18px;
  line-height: 1.4;
  flex-shrink: 0;
  width: 22px;
}

.amenities__group + .amenities__group {
  margin-top: 24px;
}

.amenities__group-title {
  font-weight: 600;
  font-size: 16px;
  margin: 0 0 8px;
}

.amenities__toggle {
  margin-top: 16px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--bg);
  border: 1px solid var(--text);
  border-radius: 8px;
  padding: 10px 18px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.amenities__toggle:hover {
  background: var(--bg-subtle);
}

@media (max-width: 720px) {
  .amenities {
    grid-template-columns: 1fr;
  }
}

/* ---------- reviews ---------- */

.reviews-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 32px;
  margin-bottom: 24px;
  font-size: 14px;
}

.reviews-summary__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
}

.reviews-summary__row .label {
  color: var(--text-subtle);
}

.reviews-summary__row .value {
  font-weight: 600;
  color: var(--text);
}

.reviews-overall {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 8px;
}

.reviews-overall .star {
  color: var(--text);
}

.reviews-overall small {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-subtle);
}

.reviews-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  max-width: 720px;
}

.review {
  display: grid;
  gap: 8px;
}

.review__head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.review__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-subtle);
  object-fit: cover;
  flex-shrink: 0;
}

.review__avatar-fallback {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 18px;
}

.review__name {
  font-weight: 600;
  font-size: 15px;
}

.review__meta {
  color: var(--text-subtle);
  font-size: 13px;
}

.review__rating {
  font-size: 13px;
  color: var(--text);
}

.review__body {
  font-size: 15px;
  color: var(--text);
  line-height: 1.5;
}

.review__body--clamped {
  display: -webkit-box;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.review__expand {
  background: none;
  border: none;
  padding: 0;
  text-decoration: underline;
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
}

.reviews__toggle {
  margin-top: 24px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--bg);
  border: 1px solid var(--text);
  border-radius: 8px;
  padding: 10px 18px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.reviews__toggle:hover {
  background: var(--bg-subtle);
}

@media (max-width: 720px) {
  .reviews-summary {
    grid-template-columns: 1fr;
  }
}

/* ---------- booking card ---------- */

.book-card {
  position: sticky;
  top: 24px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
  background: var(--bg);
  align-self: start;
}

.book-card__price {
  font-size: 14px;
  color: var(--text-subtle);
  margin-bottom: 16px;
}

.book-card__price strong {
  color: var(--text);
  font-size: 20px;
  font-weight: 600;
}

.book-card__cta {
  display: block;
  width: 100%;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 14px 20px;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  transition: background 150ms ease;
}

.book-card__cta:hover {
  background: var(--primary-hover);
  text-decoration: none;
  color: #fff;
}

.book-card__note {
  margin-top: 14px;
  text-align: center;
  font-size: 13px;
  color: var(--text-subtle);
}

.book-card__highlights {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  display: grid;
  gap: 12px;
  font-size: 14px;
}

.book-card__highlight {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-subtle);
}

.book-card__highlight strong {
  color: var(--text);
  font-weight: 600;
}

@media (max-width: 960px) {
  .listing__body {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .book-card {
    position: static;
    margin-top: 32px;
  }
}

/* On mobile, stick the book CTA to the bottom of the viewport. */
.mobile-book-bar {
  display: none;
}

@media (max-width: 960px) {
  .mobile-book-bar {
    display: flex;
    position: fixed;
    inset: auto 0 0 0;
    z-index: 50;
    padding: 12px 16px;
    background: var(--bg);
    border-top: 1px solid var(--border);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.04);
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }
  .mobile-book-bar__price {
    font-size: 14px;
    color: var(--text-subtle);
  }
  .mobile-book-bar__price strong {
    color: var(--text);
    font-weight: 600;
    font-size: 16px;
  }
  .mobile-book-bar__cta {
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 12px 22px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
  }
  body {
    padding-bottom: 80px;
  }
}

/* ---------- modal (photo gallery + reviews) ---------- */

.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 100;
  overflow-y: auto;
}

.modal[open] {
  display: block;
}

.modal__close {
  position: fixed;
  top: 16px;
  left: 16px;
  background: var(--bg);
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  z-index: 101;
}

.modal__inner {
  max-width: 900px;
  margin: 64px auto;
  padding: 0 16px;
}

.modal__photos {
  display: grid;
  gap: 16px;
}

.modal__photo {
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
}

.modal__photo img {
  width: 100%;
  display: block;
}

.modal__caption {
  color: #ddd;
  font-size: 14px;
  padding: 8px 4px 0;
  text-align: center;
}

.modal--reviews .modal__inner {
  background: var(--bg);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin: 32px auto;
  max-width: 720px;
}

.modal--reviews .modal__close {
  background: var(--bg);
}

.modal--reviews .reviews-list {
  grid-template-columns: 1fr;
  gap: 32px;
}
