:root {
  --accent: #2f6f5e;        /* change to your own brand colour */
  --accent-dark: #24574a;
  --text: #222;
  --muted: #6a6a6a;
  --line: #ddd;
  --bg: #fff;
  --radius: 12px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  line-height: 1.5;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2 { margin: 0; line-height: 1.25; }
h2 { font-size: 1.375rem; margin-bottom: 1rem; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.center { text-align: center; }

.title { font-size: 1.75rem; font-weight: 600; padding-top: 24px; }
.subtitle { margin: 4px 0 20px; font-weight: 500; text-decoration: underline; }

/* ---- Gallery: 1 large + 4 small ---- */
.gallery {
  position: relative;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 8px;
  height: min(56vw, 460px);
  border-radius: var(--radius);
  overflow: hidden;
}
.gallery__item { border: 0; padding: 0; cursor: pointer; background: #eee; overflow: hidden; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: filter .2s; }
.gallery__item:hover img { filter: brightness(.85); }
.gallery__item:first-child { grid-row: span 2; }
.gallery--simple { grid-template-columns: 1fr; grid-template-rows: 1fr; }
.gallery--simple .gallery__item:not(:first-child) { display: none; }
.gallery__empty { grid-column: 1 / -1; grid-row: 1 / -1; display: grid; place-items: center; background: #f3f3f3; color: var(--muted); }
.gallery__all {
  position: absolute; right: 20px; bottom: 20px;
  background: #fff; border: 1px solid var(--text); border-radius: 8px;
  padding: 7px 14px; font: inherit; font-size: .875rem; font-weight: 600; cursor: pointer;
}

/* ---- Two-column layout ---- */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 370px; gap: 80px; margin-top: 32px; }
.layout > *, .form__grid > * { min-width: 0; }
.section { padding: 32px 0; border-bottom: 1px solid var(--line); }
.section:first-child { padding-top: 0; }
.stats { margin: 4px 0 0; }

.host { display: flex; gap: 16px; align-items: center; }
.avatar {
  width: 48px; height: 48px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  background: var(--accent); color: #fff; font-weight: 600; font-size: 1.25rem;
}
.highlight + .highlight { margin-top: 20px; }
.description p { margin: 0 0 1em; }
.description p:last-child { margin-bottom: 0; }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; }
.card { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }

.amenities, .rules { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.amenities { grid-template-columns: 1fr 1fr; }
.amenities li::before { content: "✓"; color: var(--accent); margin-right: 12px; font-weight: 700; }
.rules li::before { content: "•"; margin-right: 12px; }

.map { width: 100%; height: 360px; border: 0; border-radius: var(--radius); margin-bottom: 8px; }

/* ---- Booking card ---- */
.booking { position: relative; }
.booking__card {
  position: sticky; top: 24px;
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: 0 6px 16px rgba(0,0,0,.12);
}
.booking__price { font-size: 1.125rem; margin-bottom: 20px; }
.booking__price strong { font-size: 1.375rem; }

.form { display: grid; gap: 12px; }
.form__grid {
  display: grid; grid-template-columns: 1fr 1fr;
  border: 1px solid #b0b0b0; border-radius: 8px; overflow: hidden;
}
.form__grid .field { border: 0; border-radius: 0; }
.form__grid .field:first-child { border-right: 1px solid #b0b0b0; }
.form__grid .field--full { grid-column: 1 / -1; border-top: 1px solid #b0b0b0; }
.field {
  display: block; border: 1px solid #b0b0b0; border-radius: 8px; padding: 8px 12px;
}
.field:focus-within { outline: 2px solid var(--text); outline-offset: -1px; }
.field span { display: block; font-size: .625rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.field input, .field select, .field textarea {
  width: 100%; border: 0; padding: 2px 0; font: inherit; font-size: .9375rem;
  background: transparent; color: inherit; outline: none; resize: vertical;
}
.btn {
  display: inline-block; width: 100%; padding: 14px; border: 0; border-radius: 8px;
  background: var(--accent); color: #fff; font: inherit; font-weight: 600; font-size: 1rem;
  cursor: pointer; text-align: center; text-decoration: none;
}
.btn:hover { background: var(--accent-dark); }
.btn--small { width: auto; padding: 10px 20px; }
.form .small { margin: 0; }
.summary { border-top: 1px solid var(--line); padding-top: 12px; }
.summary div { display: flex; justify-content: space-between; font-weight: 600; }
.hp { position: absolute; left: -9999px; }

.notice { border-radius: 8px; padding: 12px 14px; margin-bottom: 16px; font-size: .9375rem; }
.notice--ok { background: #e7f4ee; color: #1d5b45; }
.notice--err { background: #fdecec; color: #8a1c1c; }

.footer { padding-block: 40px; border-top: 1px solid var(--line); margin-top: 48px; }

/* ---- Lightbox ---- */
.lightbox {
  position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,.92);
  display: flex; align-items: center; justify-content: center;
}
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 90vw; max-height: 85vh; object-fit: contain; }
.lightbox button { position: absolute; background: none; border: 0; color: #fff; cursor: pointer; font-size: 2.5rem; line-height: 1; padding: 16px; }
.lightbox__close { top: 8px; right: 12px; }
.lightbox__prev { left: 8px; }
.lightbox__next { right: 8px; }
.lightbox__count { position: absolute; top: 20px; left: 50%; transform: translateX(-50%); color: #fff; font-size: .875rem; }

/* ---- Mobile ---- */
.mobile-bar { display: none; }
@media (max-width: 900px) {
  .layout { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .wrap { padding: 0 16px; }
  .booking__card { position: static; box-shadow: none; }
  .booking { padding: 32px 0; }
  .gallery { grid-template-columns: 1fr; grid-template-rows: 1fr; height: 62vw; margin: 0 -16px; border-radius: 0; }
  .gallery__item:not(:first-child) { display: none; }
  .amenities { grid-template-columns: 1fr; }
  body { padding-bottom: 76px; }
  .mobile-bar {
    display: flex; justify-content: space-between; align-items: center;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
    padding: 12px 24px calc(12px + env(safe-area-inset-bottom, 0px));
    background: #fff; border-top: 1px solid var(--line); text-decoration: none;
  }
}

/* ---- Admin ---- */
.admin { padding-block: 32px; }
.login { max-width: 360px; margin: 10vh auto; display: grid; gap: 16px; }
.admin__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.table-scroll { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: .875rem; }
.table th, .table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table .msg { max-width: 280px; }
.status-confirmed { background: #f0f8f4; }
.status-declined { color: var(--muted); }
