/* Public catalog — calm, photo-first, mobile-first. No external fonts, no JavaScript. */
:root {
  color-scheme: light;
  --bg: #f7f6f2;
  --surface: #ffffff;
  --ink: #1a1d21;
  --muted: #555b62;
  --line: #e2e0d9;
  --line-strong: #8d9198;
  --accent: #0f6e56;
  --accent-hover: #0b5a46;
  --accent-soft: #e3f2ec;
  --accent-ink: #0a4f3e;
  --amber-soft: #fbefd9;
  --amber-ink: #6e4205;
  --placeholder: #ebe9e3;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgb(26 29 33 / 6%), 0 4px 16px rgb(26 29 33 / 6%);
  --font: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html,
  .gallery__track {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1rem/1.5 var(--font);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

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

a {
  color: var(--accent-ink);
}

h1,
h2 {
  margin: 0;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(1.625rem, 4.5vw, 2.25rem);
  font-weight: 700;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 10;
  padding: 10px 16px;
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius-sm);
}

.skip-link:focus {
  top: 12px;
}

.icon {
  width: 20px;
  height: 20px;
  flex: none;
  fill: currentColor;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

@media (min-width: 600px) {
  .container {
    padding: 0 24px;
  }
}

/* ---- Header / footer ---- */

.header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgb(247 246 242 / 92%);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
}

.brand__logo {
  width: 36px;
  height: 36px;
  border-radius: 9px;
}

.brand__name {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.header__call {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}

.header__call:hover {
  background: var(--surface);
}

.main {
  flex: 1;
  padding: 24px 0 48px;
}

.footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9375rem;
}

.footer__inner {
  padding-top: 24px;
  padding-bottom: 32px;
}

.footer p {
  margin: 4px 0;
}

.footer__brand {
  color: var(--ink);
  font-weight: 700;
}

.footer a {
  color: inherit;
}

/* ---- Buttons ---- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 10px 20px;
  border-radius: 12px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
}

.button--primary {
  background: var(--accent);
  color: #fff;
}

.button--primary:hover {
  background: var(--accent-hover);
}

.button--secondary {
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
}

.button--secondary:hover {
  border-color: var(--ink);
}

.button__short {
  display: none;
}

.button__number {
  font-weight: 400;
  color: var(--muted);
  white-space: nowrap;
}

.contact-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.contact-buttons .button {
  flex: 1 1 200px;
}

/* ---- Status badges (icon + text, colour is only a cue) ---- */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex: none;
  padding: 3px 10px 3px 7px;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  white-space: nowrap;
}

.badge .icon {
  width: 16px;
  height: 16px;
}

.badge--available {
  background: var(--accent-soft);
  color: var(--accent-ink);
}

.badge--reserved {
  background: var(--amber-soft);
  color: var(--amber-ink);
}

/* ---- Start page ---- */

.intro {
  margin-bottom: 20px;
}

.intro__meta {
  margin: 4px 0 0;
  color: var(--muted);
}

.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 600px) {
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }
}

@media (min-width: 960px) {
  .grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

@media (hover: hover) {
  .card:hover {
    transform: translateY(-2px);
    box-shadow:
      0 2px 4px rgb(26 29 33 / 8%),
      0 10px 28px rgb(26 29 33 / 10%);
  }
}

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

  .card:hover {
    transform: none;
  }
}

.card:focus-within {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--placeholder);
}

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

.card__count {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgb(26 29 33 / 72%);
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 600;
}

.card__count .icon {
  width: 16px;
  height: 16px;
}

.card__body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px 16px;
}

.card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.card__title {
  font-size: 1.1875rem;
  font-weight: 700;
}

.card__link {
  color: var(--ink);
  text-decoration: none;
}

/* The whole card is the link (one tab stop); the focus ring is drawn on the card. */
.card__link::after {
  content: '';
  position: absolute;
  inset: 0;
}

.card__link:focus-visible {
  outline: none;
}

.card__specs {
  margin: 0;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.card__price {
  margin: 6px 0 0;
  font-weight: 600;
}

.placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  height: 100%;
  color: var(--muted);
  font-size: 0.9375rem;
}

.placeholder__icon {
  width: 56px;
  height: 56px;
  fill: #b7b4ab;
}

.empty,
.message {
  max-width: 560px;
  margin: 32px auto;
  padding: 32px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: center;
}

.empty h2,
.message h1 {
  font-size: 1.375rem;
}

.empty p,
.message p {
  color: var(--muted);
}

.empty .contact-buttons {
  justify-content: center;
}

.empty__icon,
.message__icon {
  width: 56px;
  height: 56px;
  margin-bottom: 8px;
  fill: var(--accent);
}

/* ---- Detail page ---- */

.back {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  min-height: 44px;
  margin: -8px 0 8px -6px;
  padding-right: 8px;
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}

.detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
}

@media (min-width: 960px) {
  .detail {
    grid-template-columns: minmax(0, 1fr) 340px;
    align-items: start;
    gap: 40px;
  }
}

.gallery {
  margin: 0 -16px 20px;
}

@media (min-width: 600px) {
  .gallery {
    margin: 0 0 24px;
  }
}

.gallery__track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  background: var(--placeholder);
}

@media (min-width: 600px) {
  .gallery__track,
  .gallery--empty {
    border-radius: var(--radius);
  }
}

.gallery__track::-webkit-scrollbar {
  display: none;
}

.gallery__slide {
  position: relative;
  flex: 0 0 100%;
  margin: 0;
  aspect-ratio: 4 / 3;
  scroll-snap-align: center;
}

.gallery__open,
.gallery__slide img {
  display: block;
  width: 100%;
  height: 100%;
}

.gallery__slide img {
  object-fit: cover;
}

.gallery__count {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgb(26 29 33 / 72%);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.gallery--empty {
  aspect-ratio: 4 / 3;
  background: var(--placeholder);
}

.gallery__thumbs {
  display: flex;
  gap: 8px;
  padding: 10px 16px 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.gallery__thumbs::-webkit-scrollbar {
  display: none;
}

@media (min-width: 600px) {
  .gallery__thumbs {
    padding: 10px 0 0;
  }
}

.gallery__thumbs a {
  flex: none;
  display: block;
  width: 72px;
  height: 54px;
  overflow: hidden;
  border-radius: 8px;
  border: 2px solid transparent;
}

.gallery__thumbs a:hover {
  border-color: var(--line-strong);
}

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

.detail__head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
}

.detail__specs {
  margin: 6px 0 0;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.detail__price {
  margin: 12px 0 0;
  font-size: 1.25rem;
  font-weight: 700;
}

.specs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 20px;
  margin: 24px 0 0;
  padding: 20px 0 0;
  border-top: 1px solid var(--line);
}

@media (min-width: 600px) {
  .specs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.specs dt {
  color: var(--muted);
  font-size: 0.875rem;
}

.specs dd {
  margin: 2px 0 0;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.detail__subhead {
  margin-top: 28px;
  font-size: 1.125rem;
}

.detail__description {
  margin: 8px 0 0;
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.contact {
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

@media (min-width: 960px) {
  .contact {
    position: sticky;
    top: 88px;
  }

  .contact .contact-buttons {
    flex-direction: column;
  }

  .contact .contact-buttons .button {
    flex: none;
  }
}

.contact__title {
  font-size: 1.25rem;
}

.contact__text {
  margin: 4px 0 16px;
  color: var(--muted);
}

/* Phones: the contact buttons stay at the bottom edge while scrolling. */
@media (max-width: 959px) {
  .has-contact-bar .contact {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 6;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    border-radius: 0;
    border-width: 1px 0 0;
    box-shadow: 0 -4px 16px rgb(26 29 33 / 8%);
  }

  .has-contact-bar .contact__title,
  .has-contact-bar .contact__text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .has-contact-bar .contact .contact-buttons {
    flex-wrap: nowrap;
  }

  .has-contact-bar .contact .button {
    flex: 1 1 0;
    padding: 10px 12px;
  }

  .has-contact-bar .contact .button__number,
  .has-contact-bar .contact .button__long {
    display: none;
  }

  .has-contact-bar .contact .button__short {
    display: inline;
  }

  .has-contact-bar .footer {
    padding-bottom: 76px;
  }
}

/* ---- Text pages ---- */

.prose {
  max-width: 720px;
}

.prose h2 {
  margin-top: 28px;
  font-size: 1.25rem;
}

.prose__next {
  margin-top: 48px;
}

.legal {
  margin: 8px 0 0;
}

.legal div {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

@media (min-width: 600px) {
  .legal div {
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 16px;
  }
}

.legal dt {
  color: var(--muted);
  overflow-wrap: anywhere;
}

.legal dd {
  margin: 0;
  overflow-wrap: anywhere;
}
