:root {
  --bg: #f7f4ef;
  --paper: #fffdf8;
  --ink: #1f2a2e;
  --muted: #667273;
  --line: #e4ddd0;
  --accent: #1e6f68;
  --accent-dark: #15544f;
  --warm: #d98548;
  --danger: #c44b3d;
  --shadow: 0 18px 50px rgba(34, 39, 37, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Manrope", "Segoe UI", sans-serif;
}

.body_locked {
  overflow: hidden;
}

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

a {
  color: inherit;
}

.page {
  min-height: 100vh;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr);
  gap: 28px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px 20px 12px;
}

.hero__gallery {
  display: grid;
  grid-template-columns: 1.35fr 0.9fr;
  grid-template-rows: repeat(2, minmax(180px, 1fr));
  gap: 10px;
  min-height: 470px;
}

.hero__gallery button {
  overflow: hidden;
  border: 0;
  padding: 0;
  background: #ddd;
  cursor: pointer;
}

.hero__gallery button:first-child {
  grid-row: span 2;
}

.hero__gallery img {
  height: 100%;
  object-fit: cover;
  transition: transform 180ms ease;
}

.hero__gallery button:hover img {
  transform: scale(1.025);
}

.hero__content {
  align-self: end;
  padding: 26px 0 20px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 62px);
  line-height: 0.98;
  letter-spacing: 0;
}

.lead {
  max-width: 520px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.hero__meta span,
.feature,
.contact-link {
  border: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.72);
}

.hero__meta span {
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 700;
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 32px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px 20px 64px;
}

.section {
  padding: 26px 0;
  border-top: 1px solid var(--line);
}

.section h2 {
  margin: 0 0 18px;
  font-size: 25px;
}

.features {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.feature {
  padding: 9px 12px;
  color: var(--accent-dark);
  font-size: 14px;
  font-weight: 800;
}

.description {
  display: grid;
  gap: 14px;
  max-width: 760px;
}

.description p {
  margin: 0;
  color: #3f4b4d;
  font-size: 16px;
  line-height: 1.7;
}

.contact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.contact-link {
  padding: 13px 15px;
  color: var(--accent-dark);
  font-weight: 800;
  text-decoration: none;
}

.my-bookings[hidden] {
  display: none;
}

.my-bookings__list {
  display: grid;
  gap: 10px;
}

.my-booking {
  border: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.76);
  padding: 13px;
}

.my-booking div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.my-booking strong,
.my-booking span {
  font-size: 14px;
}

.my-booking span {
  color: var(--accent-dark);
  font-weight: 900;
}

.my-booking p,
.empty {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.my-booking__pay {
  margin-top: 10px;
  border: 0;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 900;
  padding: 10px 12px;
  width: 100%;
}

.my-booking__pay:disabled {
  cursor: wait;
  opacity: 0.7;
}

.booking {
  position: sticky;
  top: 18px;
  align-self: start;
  border: 1px solid var(--line);
  background: var(--paper);
  box-shadow: var(--shadow);
  padding: 18px;
}

.booking__head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.booking__head p,
.booking__head strong {
  margin: 0;
}

.booking__head p {
  color: var(--muted);
  font-weight: 800;
}

.booking__head strong {
  color: var(--warm);
  font-size: 22px;
}

.booking-form {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  padding: 12px;
  outline: none;
}

textarea {
  resize: vertical;
}

input:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(30, 111, 104, 0.12);
}

.booking-calendar {
  border: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.72);
  padding: 10px;
}

.booking-total {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
  border: 1px solid var(--line);
  background: #fff;
  padding: 12px;
}

.booking-total span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.booking-total strong {
  color: var(--accent-dark);
  font-size: 16px;
  text-align: right;
}

.booking-calendar__head {
  display: grid;
  grid-template-columns: 34px 1fr 34px;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.booking-calendar__head button {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 24px;
  line-height: 1;
  height: 34px;
}

.booking-calendar__head strong {
  text-align: center;
  font-size: 15px;
}

.booking-calendar__grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
}

.calendar-weekday {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-align: center;
  padding: 4px 0;
}

.calendar-day {
  position: relative;
  border: 1px solid transparent;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  min-height: 34px;
}

.calendar-day:hover {
  border-color: var(--accent);
}

.calendar-day_range {
  background: rgba(30, 111, 104, 0.12);
}

.calendar-day_selected {
  background: var(--accent);
  color: #fff;
}

.calendar-day_unavailable {
  color: var(--danger);
  cursor: not-allowed;
  opacity: 0.55;
  text-decoration: line-through;
}

.calendar-day_unavailable::after {
  content: "×";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--danger);
  font-size: 18px;
  font-weight: 900;
  pointer-events: none;
}

.date_unavailable {
  border-color: var(--danger);
}

.submit {
  border: 0;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  padding: 14px 16px;
  transition: background 160ms ease, transform 160ms ease;
}

.submit:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
}

.submit:disabled {
  cursor: wait;
  opacity: 0.7;
  transform: none;
}

.status {
  min-height: 20px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.status_success {
  color: var(--accent-dark);
  font-weight: 800;
}

.status_error {
  color: var(--danger);
  font-weight: 800;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.lightbox_open {
  display: flex;
}

.lightbox__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(15, 19, 20, 0.86);
  cursor: zoom-out;
}

.lightbox__panel {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: min(1080px, 100%);
  height: min(760px, 86vh);
}

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

.lightbox__close,
.lightbox__nav {
  position: absolute;
  z-index: 2;
  border: 0;
  background: rgba(255, 253, 248, 0.92);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.22);
}

.lightbox__close {
  top: 0;
  right: 0;
  width: 44px;
  height: 44px;
  font-size: 30px;
  line-height: 1;
}

.lightbox__nav {
  top: 50%;
  width: 48px;
  height: 56px;
  transform: translateY(-50%);
  font-size: 42px;
  line-height: 1;
}

.lightbox__nav_prev {
  left: 0;
}

.lightbox__nav_next {
  right: 0;
}

.lightbox__counter {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  background: rgba(255, 253, 248, 0.92);
  color: var(--ink);
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 800;
}

.success-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.success-modal_open {
  display: flex;
}

.success-modal__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(15, 19, 20, 0.6);
}

.success-modal__panel {
  position: relative;
  z-index: 1;
  width: min(360px, 100%);
  border: 1px solid var(--line);
  background: var(--paper);
  box-shadow: var(--shadow);
  padding: 22px;
  text-align: center;
}

.success-modal__panel strong {
  display: block;
  color: var(--accent-dark);
  font-size: 22px;
  margin-bottom: 10px;
}

.success-modal__panel p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

.success-modal__panel button {
  border: 0;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  padding: 12px 18px;
  width: 100%;
}

@media (max-width: 900px) {
  .hero,
  .layout {
    grid-template-columns: 1fr;
  }

  .hero__gallery {
    grid-template-columns: 1fr 1fr;
    min-height: 360px;
  }

  .booking {
    position: static;
  }
}

@media (max-width: 560px) {
  .hero {
    padding: 12px 12px 0;
    gap: 16px;
  }

  .hero__gallery {
    grid-template-rows: 230px 112px;
    gap: 7px;
    min-height: auto;
  }

  .hero__content {
    padding: 6px 0 10px;
  }

  h1 {
    font-size: 38px;
  }

  .lead {
    font-size: 16px;
  }

  .layout {
    padding: 18px 12px 38px;
    gap: 18px;
  }

  .lightbox {
    padding: 10px;
  }

  .lightbox__panel {
    height: 82vh;
  }

  .lightbox__close {
    top: 8px;
    right: 8px;
  }

  .lightbox__nav {
    width: 42px;
    height: 52px;
  }
}
