﻿/*
 * File: styles/css/bath-view.css
 * Project: avrora26
 * Role: Styles for single bath page
 */

.bath-view-body {
  background: #f3f5f6;
}

.bath-view-page {
  color: #1f2937;
}

.bath-view-hero {
  position: relative;
  min-height: 360px;
  background-image: var(--cover);
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid rgba(15, 23, 42, 0.12);
}

.bath-view-hero__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.36), rgba(0,0,0,0.5));
}

.bath-view-hero__content {
  position: relative;
  z-index: 2;
  color: #fff;
  padding-top: 26px;
  padding-bottom: 26px;
}

.bath-view-back {
  display: inline-block;
  color: #fff;
  text-decoration: none;
  margin-bottom: 12px;
  opacity: 0.95;
}

.bath-view-hero h1 {
  margin: 0;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.06;
}

.bath-view-hero p {
  margin: 10px 0 0;
  max-width: 760px;
  font-size: 16px;
}

.bath-view-main {
  padding: 18px 0;
}

.bath-view-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.bath-view-card {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.07);
  padding: 16px;
}

.bath-view-card h2 {
  text-align: left;
  margin: 0 0 10px;
}

.bath-view-card p {
  margin: 0;
  line-height: 1.5;
}

.bath-view-meta {
  margin-top: 14px;
  display: grid;
  gap: 8px;
}

.bath-view-meta div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px dashed rgba(15, 23, 42, 0.15);
  padding-bottom: 6px;
}

.bath-view-meta span {
  color: #64748b;
}

.bath-view-meta strong {
  color: #0f172a;
}

.bath-view-actions {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.bath-view-extras {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.bath-view-extras li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px dashed rgba(15, 23, 42, 0.15);
  padding-bottom: 7px;
}

.bath-view-extras strong {
  color: #0f766e;
  white-space: nowrap;
}

.bath-view-extras em {
  color: #64748b;
  font-style: normal;
  text-align: right;
}

.bath-view-note {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(15, 23, 42, 0.12);
  display: grid;
  gap: 6px;
}

.bath-view-note p {
  margin: 0;
  color: #334155;
}

.bath-view-gallery-wrap {
  padding: 6px 0 34px;
}

.bath-view-gallery-wrap h2 {
  text-align: left;
  margin: 0 0 10px;
}

.bath-view-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.bath-view-gallery a {
  display: block;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #fff;
}

.bath-view-gallery img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.bath-view-muted {
  color: #64748b;
}

.bath-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
}

.bath-lightbox.is-open {
  display: block;
}

.bath-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
}

.bath-lightbox__dialog {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 66px;
}

.bath-lightbox__image {
  max-width: min(1200px, 100%);
  max-height: calc(100vh - 60px);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  background: #111827;
}

.bath-lightbox__close,
.bath-lightbox__nav {
  position: absolute;
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.76);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease;
}

.bath-lightbox__close:hover,
.bath-lightbox__nav:hover {
  background: rgba(30, 41, 59, 0.92);
}

.bath-lightbox__close {
  top: 14px;
  right: 16px;
  width: 42px;
  height: 42px;
  font-size: 20px;
}

.bath-lightbox__nav {
  top: 50%;
  width: 44px;
  height: 44px;
  font-size: 24px;
  transform: translateY(-50%);
}

.bath-lightbox__nav--prev {
  left: 14px;
}

.bath-lightbox__nav--next {
  right: 14px;
}

@media (max-width: 960px) {
  .bath-view-grid {
    grid-template-columns: 1fr;
  }

  .bath-view-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .bath-view-gallery {
    grid-template-columns: 1fr;
  }

  .bath-lightbox__dialog {
    padding: 18px;
  }

  .bath-lightbox__nav {
    width: 38px;
    height: 38px;
    font-size: 20px;
  }

  .bath-lightbox__nav--prev {
    left: 8px;
  }

  .bath-lightbox__nav--next {
    right: 8px;
  }

  .bath-view-extras li {
    flex-direction: column;
  }

  .bath-view-extras strong,
  .bath-view-extras em {
    text-align: left;
    white-space: normal;
  }
}
