.page-template-page-living,
.single-room,
.single-cottage {
  background: var(--gold-50);
}

.page-template-page-living .header,
.single-room .header,
.single-cottage .header {
  background: var(--gold-50);
  color: var(--gold-900);
}

.page-template-page-living .header.is-scrolled,
.single-room .header.is-scrolled,
.single-cottage .header.is-scrolled,
.single-room .header.is-scrolled{
  background: var(--gold-50);
  box-shadow: 0 10px 30px rgba(59, 50, 19, 0.08);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.page-template-page-living .header__topbar,
.single-room .header__topbar,
.single-cottage .header__topbar {
  border-bottom-color: var(--neutral-100);
}

.page-template-page-living .header .phone__toggle,
.single-room .header .phone__toggle,
.single-cottage .header .phone__toggle {
  color: var(--gold-900);
}

.page-template-page-living .header .icon--white,
.single-room .header .icon--white,
.single-cottage .header .icon--white {
  fill: var(--gold-900);
}

.page-template-page-living .header .social__link:hover,
.single-room .header .social__link:hover,
.single-cottage .header .social__link:hover {
  color: var(--gold-500);
}

.page-template-page-living .header .social__link:hover .icon--white,
.single-room .header .social__link:hover .icon--white,
.single-cottage .header .social__link:hover .icon--white {
  fill: var(--gold-500);
}

.page-template-page-living .header .nav__link,
.single-room .header .nav__link,
.single-cottage .header .nav__link {
  color: var(--gold-900);
}

.page-template-page-living .header .nav__link:hover,
.single-room .header .nav__link:hover,
.single-cottage .header .nav__link:hover {
  color: var(--gold-500);
}

.page-template-page-living .header .nav__link::after,
.single-room .header .nav__link::after,
.single-cottage .header .nav__link::after {
  background: var(--gold-500);
}

.page-template-page-living .burger__line,
.single-room .burger__line,
.single-cottage .burger__line {
  background: var(--gold-900);
}

.page-template-page-living .header__book,
.single-room .header__book,
.single-cottage .header__book {
  background: var(--gold-300);
  border-color: var(--gold-500);
  color: var(--gold-500);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.page-template-page-living .header__book:hover,
.single-room .header__book:hover,
.single-cottage .header__book:hover {
  background: var(--gold-500);
  border-color: var(--gold-500);
  color: var(--gold-50);
}

.page-template-page-living .menu,
.single-room .menu,
.single-cottage .menu {
  background: var(--gold-50);
  color: var(--gold-900);
}

/* ============================================================
   Спільні елементи
   ============================================================ */
.room-features {
  display: flex;
  flex-direction: column;
  gap: 23px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.room-features--inline {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
}

.room-features__item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  line-height: 1.5;
  color: var(--gold-900);
}

.room-features__item .icon {
  flex: none;
  width: 24px;
  height: 24px;
  fill: var(--gold-500);
}

.gallery-nav {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-inline: 16px;
  pointer-events: none;
}

.glass-arrow {
  pointer-events: auto;
  flex: none;
  width: 80px;
  height: 80px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.3);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  display: grid;
  place-items: center;
  color: var(--white);
  transition: background-color 0.3s var(--ease);
}

.glass-arrow:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.45);
}

.glass-arrow:disabled,
.glass-arrow.swiper-button-disabled {
  opacity: 0.4;
  cursor: default;
}

.glass-arrow .icon {
  width: 20px;
  height: 20px;
  fill: var(--white);
}

.glass-arrow--prev .icon {
  transform: rotate(90deg);
}

.glass-arrow--next .icon {
  transform: rotate(-90deg);
}

.btn__text-short {
  display: none;
}

.living {
  position: relative;
  background: var(--gold-50);
  color: var(--gold-900);
  padding-top: calc(var(--header-h) + clamp(60px, 6vw, 80px));
  padding-bottom: clamp(100px, 9vw, 150px);
}

.living>.container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(40px, 5vw, 60px);
}

.living__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.living__title {
  max-width: 692px;
  font-size: clamp(36px, 5vw, 60px);
}

.living__lead {
  max-width: 630px;
  font-size: 16px;
  line-height: 1.5;
  color: var(--gold-900);
}

.living__list {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.living__panel {
  display: none;
  flex-direction: column;
  width: 100%;
}

.living__panel.is-active {
  display: flex;
}

.room-row {
  display: flex;
  align-items: stretch;
  gap: 80px;
  padding-block: 80px;
  border-bottom: 1px solid var(--neutral-300);
}

.room-row:first-child {
  border-top: 1px solid var(--neutral-300);
}

.room-row__info {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
}

.room-row__head {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.room-row__name {
  margin: 0;
  font-weight: 500;
  font-size: clamp(26px, 3.6vw, 36px);
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--gold-900);
}

.room-row__price {
  font-weight: 500;
  font-size: clamp(18px, 2.2vw, 24px);
  line-height: 1.2;
  color: var(--gold-500);
}

.room-row__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.room-gallery {
  position: relative;
  flex: 0 1 738px;
  min-width: 0;
  height: 500px;
  overflow: hidden;
}

.room-gallery .swiper,
.room-gallery .swiper-slide {
  height: 100%;
}

.room-gallery img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ============================================================
   Сингл - номер / котедж
   ============================================================ */
.room-single__top {
  background: var(--gold-50);
  color: var(--gold-900);
  padding-top: calc(var(--header-h) + clamp(60px, 6vw, 80px));
  padding-bottom: clamp(40px, 5vw, 60px);
}

.room-single__top-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
}

.room-single__info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 40px;
}

.room-single__title {
  margin: 0;
  font-weight: 500;
  font-size: clamp(36px, 5vw, 60px);
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--gold-800);
}

.room-single__price-box {
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 40px;
}

.room-single__price {
  font-weight: 500;
  font-size: 24px;
  line-height: 1.2;
  color: var(--gold-900);
}

.room-hero {
  position: relative;
  width: 100%;
  height: 700px;
  overflow: hidden;
  background: var(--gold-50);
  --swiper-pagination-bottom: 24px;
}

.room-hero .swiper,
.room-hero .swiper-slide {
  height: 100%;
}

.room-hero img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.room-hero .gallery-nav {
  padding-inline: var(--gutter);
}

.room-hero .room-hero__dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 24px;
  width: 100%;
  transform: none;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.room-hero__dots .swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  margin: 0;
  border-radius: 4px;
  background: var(--white);
  opacity: 0.4;
  transition: width 0.35s var(--ease), opacity 0.35s var(--ease);
}

.room-hero__dots .swiper-pagination-bullet-active {
  width: 40px;
  opacity: 1;
}

.room-about {
  background: var(--gold-50);
  color: var(--gold-900);
  padding-top: clamp(60px, 6vw, 80px);
  padding-bottom: clamp(100px, 9vw, 150px);
}

.room-about__inner {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 40px;
}

.room-about__content {
  flex: 0 0 413px;
  max-width: 413px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 60px;
}

.room-about__text {
  display: flex;
  flex-direction: column;
  gap: 60px;
  width: 100%;
}

.room-about__head {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.room-about__title {
  margin: 0;
  font-weight: 500;
  font-size: clamp(26px, 3vw, 30px);
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--gold-900);
}

.room-about__desc {
  font-size: 16px;
  line-height: 1.5;
  color: var(--gold-900);
}

.room-amenities {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  width: 100%;
}

.room-amenities__col {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 23px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.room-amenity {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  line-height: 1.5;
  color: var(--gold-900);
}

.room-amenity .icon {
  flex: none;
  width: 24px;
  height: 24px;
  fill: var(--gold-500);
}

.room-about__photo {
  flex: 0 1 738px;
  min-width: 0;
  height: 500px;
  overflow: hidden;
}

.room-about__photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ============================================================
   Адаптив
   ============================================================ */

@media (min-width: 769px) {
  .room-row:nth-child(even) {
    flex-direction: row-reverse;
  }
}

@media (max-width: 1024px) {
  .room-row {
    gap: 40px;
  }

  .room-gallery {
    height: 420px;
  }

  .room-hero {
    height: 520px;
  }

  .room-about__photo {
    height: 420px;
  }
}

@media (max-width: 992px) {
  .btn__text-full {
    display: none;
  }

  .btn__text-short {
    display: inline;
  }

  .room-features {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    row-gap: 12px;
    column-gap: 24px;
  }

  .room-features__item {
    gap: 6px;
    font-size: 13px;
    line-height: 1.4;
  }

  .room-features__item .icon {
    width: 16px;
    height: 16px;
  }

  .glass-arrow {
    width: 48px;
    height: 48px;
  }

  .glass-arrow .icon {
    width: 16px;
    height: 16px;
  }

  /* --- Сторінка «Проживання» --- */
  .living {
    padding-top: calc(var(--header-h) + 60px);
    padding-bottom: 100px;
  }

  .living__title {
    font-weight: 600;
  }

  .room-row {
    flex-direction: column;
    gap: 24px;
    padding-block: 60px;
  }

  .room-row__info {
    width: 100%;
    gap: 40px;
  }

  .room-row__head {
    gap: 16px;
  }

  .room-row__price {
    line-height: 1.3;
  }

  .room-row__actions {
    width: 100%;
  }

  .room-row__actions .btn {
    flex: 1 1 0;
    min-width: 0;
    padding-inline: 16px;
  }

  .room-gallery {
    order: -1;
    flex: 1 1 auto;
    width: 100%;
    height: 260px;
  }

  /* --- Сингл --- */
  .room-single__top {
    padding-top: calc(var(--header-h) + 60px);
    padding-bottom: 40px;
  }

  .room-single__top-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 40px;
  }

  .room-single__info {
    width: 100%;
    gap: 32px;
  }

  .room-single__title {
    width: 100%;
    font-weight: 600;
    text-align: center;
  }

  .room-single__price-box {
    width: 100%;
    gap: 32px;
  }

  .room-single__price-box .btn {
    width: 100%;
  }

  .room-hero {
    height: 260px;
    --swiper-pagination-bottom: 20px;
  }

  .room-hero .gallery-nav {
    padding-inline: 16px;
  }

  .room-about {
    padding-top: 60px;
    padding-bottom: 100px;
  }

  .room-about__inner {
    flex-direction: column;
    gap: 60px;
  }

  .room-about__content {
    flex: 1 1 auto;
    max-width: none;
    width: 100%;
  }

  .room-about__content .btn {
    width: 100%;
  }

  .room-about__photo {
    display: none;
  }
}

@media (min-width: 993px) {
  .room-row {
    gap: clamp(32px, 4vw, 80px);
  }

  .room-row__info {
    flex: 1 1 45%;
  }

  .room-gallery {
    flex: 1 1 55%;
    max-width: 738px;
  }

  .room-row__actions {
    flex-wrap: wrap;
  }
}