:root {
  --ink: #14181f;
  --muted: #6a7383;
  --paper: #f4f6f8;
  --line: #d7dde6;
  --forest: #0b6e4f;
  --forest-deep: #08553d;
  --sold: #8a9099;
  --font-display: "Syne", "Avenir Next", sans-serif;
  --font-body: "Source Sans 3", "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100svh;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(800px 420px at 10% 0%, rgba(11, 110, 79, 0.08), transparent 55%),
    linear-gradient(180deg, #eef2f6 0%, var(--paper) 40%, #f7f8fa 100%);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--forest);
}

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

code {
  font-size: 0.9em;
}

.page-header {
  width: min(720px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.5rem 0 1.25rem;
}

.eyebrow {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.eyebrow a {
  color: var(--muted);
  text-decoration: none;
}

.eyebrow a:hover {
  color: var(--forest);
}

.page-header h1 {
  margin: 0 0 0.6rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 9vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
}

.lede {
  margin: 0;
  max-width: 34ch;
  color: var(--muted);
  font-size: 1.05rem;
}

main {
  width: min(720px, calc(100% - 2rem));
  margin: 0 auto;
  padding-bottom: 2rem;
}

.items {
  display: grid;
  gap: 1.25rem;
}

.loading,
.empty {
  margin: 0;
  color: var(--muted);
}

.item {
  display: grid;
  gap: 0.9rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--line);
}

.gallery {
  position: relative;
  overflow: hidden;
  border-radius: 0.4rem;
  background: #e4e9ef;
  aspect-ratio: 4 / 3;
  touch-action: pan-y;
}

.viewport {
  width: 100%;
  height: 100%;
}

.slide {
  display: none;
  width: 100%;
  height: 100%;
  margin: 0;
}

.slide.is-active {
  display: block;
}

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

.gallery .nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  transform: translateY(-50%);
  width: 2.25rem;
  height: 2.25rem;
  border: 0;
  border-radius: 999px;
  background: rgba(20, 24, 31, 0.55);
  color: #fff;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.gallery .prev { left: 0.5rem; }
.gallery .next { right: 0.5rem; }

.gallery .count {
  position: absolute;
  right: 0.6rem;
  bottom: 0.55rem;
  z-index: 2;
  margin: 0;
  padding: 0.2rem 0.45rem;
  border-radius: 0.3rem;
  background: rgba(20, 24, 31, 0.55);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
}

.dots {
  position: absolute;
  left: 50%;
  bottom: 0.55rem;
  z-index: 2;
  display: flex;
  gap: 0.35rem;
  transform: translateX(-50%);
}

.dot {
  width: 0.45rem;
  height: 0.45rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
}

.dot.is-active {
  background: #fff;
}

.empty-media {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  border-radius: 0.4rem;
  background: #e4e9ef;
  color: var(--muted);
}


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

.item-body h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.price {
  margin: 0;
  flex-shrink: 0;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.details {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.status {
  margin: 0.45rem 0 0.85rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--forest);
}

.status-reserved .status,
.status-sold .status {
  color: var(--sold);
}

.status-sold {
  opacity: 0.72;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.7rem 1.1rem;
  border-radius: 0.35rem;
  background: var(--forest);
  color: #f4faf7;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.cta:hover {
  background: var(--forest-deep);
  color: #fff;
  transform: translateY(-1px);
}

.cta-disabled {
  background: #cfd5dd;
  color: #5c6573;
  pointer-events: none;
}

.page-footer {
  width: min(720px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 0 0 2rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.page-footer p {
  margin: 0 0 0.4rem;
}

.page-footer p:last-child {
  margin-bottom: 0;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink);
}

@media (min-width: 640px) {
  .item {
    grid-template-columns: 260px 1fr;
    align-items: start;
    gap: 1.25rem;
  }

  .gallery,
  .empty-media {
    aspect-ratio: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cta {
    transition: none;
  }

  .cta:hover {
    transform: none;
  }
}
