:root {
  --bg: #202227;
  --panel: #202227;
  --line: #07506a;
  --gold: #f4be57;
  --cyan: #1fd6eb;
  --muted: #a9c3d0;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: radial-gradient(circle at 80% 0, #202227, transparent 40%), var(--bg);
  color: #f4f8fb;
  font:
    15px/1.5 Inter,
    Arial,
    sans-serif;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select {
  font: inherit;
}
.top {
  height: 66px;
  padding: 0 2.5%;
  background: #202227;
  border-bottom: 1px solid #07506a;
  display: flex;
  align-items: center;
  gap: 35px;
  position: sticky;
  top: 0;
  z-index: 20;
}
.logo {
  color: var(--gold);
  font-size: 23px;
  white-space: nowrap;
}
.logo b {
  color: #fff;
}
.top nav {
  display: flex;
  gap: 27px;
  margin: auto;
  font-size: 13px;
  white-space: nowrap;
}
.top nav a {
  padding: 23px 0;
}
.top nav .current {
  border-bottom: 2px solid var(--gold);
}
.account,
.actions button {
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 9px 12px;
  background: transparent;
  color: #fff;
  white-space: nowrap;
}
.wrap {
  max-width: 1500px;
  margin: auto;
  padding: 20px 24px 70px;
}
.crumb {
  color: var(--muted);
  font-size: 13px;
}
.titlebar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.titlebar h1 {
  font-size: 37px;
  margin: 8px 0;
}
.titlebar h1 small {
  font-size: 11px;
  background: #008b79;
  padding: 8px 12px;
  border-radius: 20px;
  vertical-align: middle;
}
.titlebar p {
  margin: 0 0 16px;
}
.titlebar p a {
  color: var(--cyan);
}
.gold {
  color: var(--gold);
}
.actions {
  display: flex;
  gap: 10px;
}
.actions button {
  cursor: pointer;
}
.actions button.active {
  color: var(--gold);
  border-color: var(--gold);
}
.gallery {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 10px;
  height: 380px;
}
.hero-photo {
  position: relative;
  overflow: hidden;
  border: 1px solid #427f90;
  border-radius: 10px;
}
.hero-photo img,
.thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero-photo button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #202227c9;
  color: #fff;
  border: 0;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 26px;
  cursor: pointer;
}
.hero-photo .prev {
  left: 15px;
}
.hero-photo .next {
  right: 15px;
}
.hero-photo span {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: #202227c9;
  padding: 5px 10px;
  border-radius: 7px;
}
.thumbs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 10px;
  min-height: 0;
}
.thumbs button {
  position: relative;
  padding: 0;
  background: #202227;
  border: 1px solid #427f90;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
}
.thumbs span {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  text-align: left;
  padding: 12px;
  background: linear-gradient(transparent, #000b);
  color: #fff;
}
.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
  padding: 16px;
  margin: 13px 0;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 9px;
}
.badges span {
  border: 1px solid #184356;
  border-radius: 7px;
  padding: 7px 10px;
  white-space: nowrap;
}
.columns {
  display: grid;
  grid-template-columns: minmax(0, 1.9fr) minmax(320px, 0.9fr);
  gap: 20px;
  align-items: start;
}
.main-col section {
  margin-bottom: 24px;
}
.main-col h2 {
  font-size: 23px;
  margin: 0 0 10px;
}
.main-col p {
  color: #c9dce4;
  margin: 0 0 12px;
}
.facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 8px;
  margin-top: 13px;
}
.facts span {
  padding: 12px;
  border-right: 1px solid #163e4d;
  color: var(--muted);
  font-size: 12px;
}
.facts span:last-child {
  border: 0;
}
.facts b {
  display: block;
  color: #fff;
  font-size: 14px;
}
.amenities {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px 8px;
}
.amenities span {
  font-size: 13px;
}
.extras {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 7px;
}
.extras button {
  padding: 0 0 8px;
  text-align: left;
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 8px;
  color: #fff;
  overflow: hidden;
  position: relative;
  cursor: pointer;
}
.extras button.selected {
  border-color: var(--gold);
}
.extras img {
  width: 100%;
  height: 74px;
  object-fit: cover;
  display: block;
}
.extras span,
.extras b {
  display: block;
  padding: 0 7px;
  font-size: 11px;
}
.extras span {
  margin-top: 6px;
}
.extras i {
  position: absolute;
  right: 6px;
  bottom: 6px;
  font-size: 18px;
  color: var(--cyan);
  font-style: normal;
}
.reviews {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
}
.reviews article {
  padding: 13px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.reviews b,
.reviews small,
.reviews em {
  display: block;
}
.reviews small {
  color: var(--muted);
}
.reviews em {
  font-style: normal;
  color: var(--gold);
  margin: 8px 0;
}
.reviews p {
  font-size: 12px;
}
.location {
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 9px;
  overflow: hidden;
}
.location > div {
  padding: 20px;
}
.location .map {
  min-height: 170px;
  background: linear-gradient(135deg, #879faa, #dbe6e5);
  color: #092535;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 25px;
}
.location .map b,
.location .map small {
  font-size: 13px;
}
.location a {
  color: var(--gold);
}
aside {
  position: sticky;
  top: 80px;
}
.book-card,
.side-card {
  background: linear-gradient(135deg, #202227, #202227);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 17px;
  margin-bottom: 12px;
}
.price strong {
  font-size: 31px;
}
.book-card > p,
.book-card > small,
.side-card p {
  color: var(--muted);
}
.book-card label {
  display: block;
  margin: 12px 0 6px;
}
.book-card input,
.book-card select {
  width: 100%;
  background: #202227;
  color: #fff;
  border: 1px solid #0c6882;
  border-radius: 7px;
  padding: 9px;
}
.duo {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 9px;
}
.book-card fieldset {
  border: 0;
  padding: 10px 0;
  margin: 0;
}
.book-card legend {
  padding: 0 0 9px;
}
.slots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
}
.slots button {
  background: #07594d;
  border: 1px solid #0c7166;
  border-radius: 6px;
  color: #fff;
  padding: 10px 3px;
  cursor: pointer;
}
.slots button.selected {
  background: var(--gold);
  color: #171717;
  border-color: var(--gold);
  font-weight: 800;
}
.slots button:disabled {
  background: #202227;
  border-color: #553236;
  opacity: 0.6;
}
.total {
  border-top: 1px solid #18556a;
  padding: 13px 0;
  display: flex;
  justify-content: space-between;
  align-items: end;
}
.total small {
  display: block;
  color: var(--muted);
}
.total strong {
  color: var(--gold);
  font-size: 22px;
}
.gold-button {
  width: 100%;
  padding: 12px;
  background: linear-gradient(#ffdb82, #e7ad4e);
  color: #1d1a13;
  border: 1px solid #ffdb82;
  border-radius: 7px;
  font-weight: 800;
  cursor: pointer;
}
.gold-button:disabled {
  opacity: 0.6;
}
.book-card [role='status'] {
  color: #ffe6a1;
  min-height: 20px;
  font-size: 12px;
}
.side-card h3 {
  margin: 0 0 6px;
}
.side-card p {
  margin: 0;
  font-size: 13px;
}
@media (max-width: 1050px) {
  .top nav {
    gap: 12px;
  }
  .gallery {
    height: 310px;
  }
  .amenities {
    grid-template-columns: repeat(3, 1fr);
  }
  .extras {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 800px) {
  .top {
    height: auto;
    flex-wrap: wrap;
    padding: 10px 15px;
    gap: 8px;
  }
  .top nav {
    order: 3;
    width: 100%;
    overflow: auto;
    margin: 0;
  }
  .top nav a {
    padding: 9px 0;
  }
  .account {
    margin-left: auto;
  }
  .wrap {
    padding: 15px;
  }
  .titlebar {
    display: block;
  }
  .gallery {
    height: auto;
    grid-template-columns: 1fr;
  }
  .hero-photo {
    height: 310px;
  }
  .thumbs {
    height: 170px;
  }
  .columns {
    grid-template-columns: 1fr;
  }
  .columns aside {
    position: static;
    grid-row: 1;
  }
  .facts {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 520px) {
  .titlebar h1 {
    font-size: 29px;
  }
  .titlebar h1 small {
    display: inline-block;
    margin: 7px 0;
  }
  .actions {
    margin-bottom: 10px;
  }
  .hero-photo {
    height: 240px;
  }
  .thumbs {
    height: 95px;
    gap: 5px;
  }
  .thumbs span {
    font-size: 10px;
    padding: 4px;
  }
  .badges {
    gap: 5px;
  }
  .badges span {
    font-size: 11px;
  }
  .amenities,
  .extras,
  .reviews,
  .location {
    grid-template-columns: repeat(2, 1fr);
  }
  .reviews,
  .location {
    grid-template-columns: 1fr;
  }
  .duo {
    grid-template-columns: 1fr;
  }
}

/* Readable bath detail and hourly booking controls */
body {
  font-size: 16px;
}
.wrap {
  max-width: 1700px;
  padding-left: 32px;
  padding-right: 32px;
}
.columns {
  grid-template-columns: minmax(0, 2.2fr) minmax(360px, 0.8fr);
  gap: 32px;
}
.main-col h2 {
  font-size: 26px;
  margin-bottom: 15px;
}
.main-col p {
  font-size: 16px;
  line-height: 1.65;
}
.badges span,
.amenities span {
  font-size: 15px;
}
.facts span {
  font-size: 14px;
  padding: 17px;
}
.facts b {
  font-size: 16px;
}
.extras {
  gap: 12px;
}
.extras img {
  height: 115px;
}
.extras span,
.extras b {
  font-size: 14px;
  line-height: 1.35;
  padding: 0 10px;
}
.extras button {
  padding-bottom: 16px;
}
.reviews article {
  padding: 18px;
}
.reviews p,
.side-card p {
  font-size: 14px;
}
.book-card {
  padding: 22px;
}
.step-field {
  margin: 10px 0;
}
.step-field > span {
  display: block;
  font-size: 14px;
  margin-bottom: 7px;
}
.stepper {
  display: grid;
  grid-template-columns: 38px 1fr 38px;
  min-height: 42px;
  align-items: center;
  border: 1px solid #0c6882;
  border-radius: 7px;
  background: #202227;
  overflow: hidden;
}
.stepper button {
  height: 100%;
  border: 0;
  background: transparent;
  color: var(--cyan);
  font-size: 21px;
  cursor: pointer;
}
.stepper button:hover,
.stepper button:focus-visible {
  background: #202227;
  outline: 0;
}
.stepper output {
  text-align: center;
  white-space: nowrap;
  font-size: 14px;
}
.slot-legend {
  display: flex;
  justify-content: space-between;
  gap: 7px;
  margin-bottom: 12px;
  color: #c8d8e0;
  font-size: 12px;
}
.slot-legend span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.slot-legend i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #0c806c;
}
.slot-legend span:nth-child(2) i {
  background: #b84e58;
}
.slot-legend span:nth-child(3) i {
  background: var(--gold);
}
.slots {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.slots button {
  background: #064b44;
  border-color: #148476;
  color: #fff;
  font-size: 14px;
}
.slots button.busy,
.slots button.busy:disabled {
  background: #702f37;
  border-color: #b64b55;
  color: #fff;
  opacity: 1;
  cursor: not-allowed;
}
.slots button.unavailable,
.slots button.unavailable:disabled {
  background: #202227;
  border-color: #315469;
  color: #8aabb9;
  opacity: 0.7;
  cursor: not-allowed;
}
.slots button.selected {
  background: var(--gold);
  border-color: var(--gold);
  color: #211c12;
}
.schedule-note {
  display: block;
  color: var(--muted);
  margin-top: 7px;
}
.closing-hour {
  display: grid;
  place-items: center;
  border: 1px dashed #45687a;
  border-radius: 6px;
  color: #98b2bd;
  font-size: 14px;
  min-height: 41px;
}
@media (max-width: 1100px) {
  .columns {
    grid-template-columns: minmax(0, 1.7fr) minmax(340px, 1fr);
  }
  .extras {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 800px) {
  .columns {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .wrap {
    padding-left: 18px;
    padding-right: 18px;
  }
}
@media (max-width: 520px) {
  .duo {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .stepper {
    grid-template-columns: 32px 1fr 32px;
  }
  .stepper output {
    font-size: 12px;
  }
  .slots {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .slot-legend {
    font-size: 11px;
  }
  .extras {
    grid-template-columns: repeat(2, 1fr);
  }
}

.gallery {
  display: block;
  height: 440px;
}
.hero-photo {
  height: 100%;
}
.hero-photo img {
  object-position: center;
}
.all-reviews {
  display: inline-block;
  color: var(--gold);
  font-size: 15px;
  margin: -4px 0 13px;
}
.slots button.selected {
  background: var(--gold);
  border-color: var(--gold);
  color: #211c12;
}
.slots button.selected:disabled {
  opacity: 1;
}
@media (max-width: 800px) {
  .gallery {
    height: 330px;
  }
}
@media (max-width: 520px) {
  .gallery {
    height: 245px;
  }
}

.gallery {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  height: 440px;
}
.slots button.selected:disabled,
.closing-hour.selected {
  background: var(--gold);
  border: 1px solid var(--gold);
  color: #211c12;
  opacity: 1;
  font-weight: 800;
}
.reviews:empty:after {
  content: 'Пока нет опубликованных отзывов';
  color: var(--muted);
}
@media (max-width: 800px) {
  .gallery {
    display: grid;
    grid-template-columns: 1fr;
    height: auto;
  }
  .hero-photo {
    height: 310px;
  }
  .thumbs {
    height: 170px;
  }
}
@media (max-width: 520px) {
  .hero-photo {
    height: 245px;
  }
  .thumbs {
    height: 95px;
  }
}

.services-controls {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin: 0 0 12px;
}
.services-controls button {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--gold);
  border-radius: 8px;
  font-size: 26px;
  cursor: pointer;
}
.services-controls button:disabled {
  opacity: 0.4;
  cursor: default;
}
.extras {
  display: flex;
  overflow-x: auto;
  gap: 14px;
  scroll-snap-type: x mandatory;
  scroll-padding: 2px;
  padding: 2px 2px 14px;
  overscroll-behavior-x: contain;
}
.extras button {
  flex: 0 0 clamp(180px, 27%, 260px);
  scroll-snap-align: start;
}
.extras img {
  height: 145px;
}
.extras span,
.extras b {
  font-size: 16px;
}
.extras button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: -2px;
}

.gallery {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  height: 420px;
}
.bath-video-panel {
  min-width: 0;
  border: 1px solid #427f90;
  border-radius: 10px;
  overflow: hidden;
  background: #202227;
  display: flex;
  flex-direction: column;
}
.video-title {
  padding: 12px 16px;
  font-size: 18px;
  font-weight: bold;
}
.bath-video-panel video {
  width: 100%;
  flex: 1;
  min-height: 0;
  object-fit: contain;
  background: #000;
}
.bath-video-panel [hidden] {
  display: none !important;
}
#bathVideoEmpty {
  flex: 1;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 30px;
  color: #aac9da;
}
#bathVideoChoices {
  display: flex;
  gap: 8px;
  padding: 10px;
}
#bathVideoChoices:empty {
  display: none;
}
#bathVideoChoices button {
  padding: 8px 12px;
  background: #202227;
  color: #fff;
  border: 1px solid #16718c;
  border-radius: 7px;
  cursor: pointer;
}
@media (max-width: 800px) {
  .gallery {
    grid-template-columns: 1fr;
    height: auto;
  }
  .bath-video-panel {
    min-height: 280px;
  }
  .bath-video-panel video {
    min-height: 240px;
  }
}

#bathVideoChoices {
  align-items: center;
  flex-wrap: wrap;
}
#bathVideoChoices button {
  min-width: 44px;
  height: 44px;
  font-size: 24px;
}
.video-description {
  font-size: 14px;
  color: #aac9da;
  margin-left: auto;
}

.bath-video-panel {
  position: relative;
  display: block;
  min-height: 0;
  background: #000;
}
.bath-video-panel video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
}
.bath-video-panel .video-title {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2;
  background: linear-gradient(#202227cc, transparent);
  padding: 14px 18px;
  pointer-events: none;
}
.bath-video-panel #bathVideoEmpty {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
}
.bath-video-panel #bathVideoChoices {
  position: absolute;
  inset: 0;
  display: block;
  padding: 0;
  pointer-events: none;
}
.bath-video-panel #bathVideoChoices button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 40px;
  height: 40px;
  min-width: 40px;
  padding: 0;
  background: #202227c9;
  color: #fff;
  border: 0;
  border-radius: 50%;
  font-size: 26px;
  pointer-events: auto;
  cursor: pointer;
}
.bath-video-panel #bathVideoChoices button:first-child {
  left: 15px;
}
.bath-video-panel #bathVideoChoices button:last-child {
  right: 15px;
}
.bath-video-panel #bathVideoChoices button:hover {
  background: #202227;
}
.bath-video-panel #bathVideoChoices button:disabled {
  opacity: 0.35;
  cursor: default;
}
@media (max-width: 800px) {
  .bath-video-panel {
    height: 310px;
    min-height: 0;
  }
}
@media (max-width: 520px) {
  .bath-video-panel {
    height: 240px;
  }
}
