/* ========================================
   Room Modal
======================================== */
.room-modal {
  --room-gap: 16px;
  --room-accent: #4d5b2d;
  --room-spec-bg: #e9e9e9;

  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding: 40px 0 20px;
  box-sizing: border-box;
  background: #fff;
  color: #29291f;
}

.room-modal *,
.room-modal *::before,
.room-modal *::after {
  box-sizing: border-box;
}

/* ========================================
   Gallery
======================================== */
.room-gallery {
  display: grid;
  grid-template-columns: 3fr 1fr;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: var(--room-gap);
  aspect-ratio: 800 / 367;
}

.room-gallery__item {
  margin: 0;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

.room-gallery__item--main {
  grid-row: span 2;
}

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

/* ========================================
   RoomInfo
======================================== */
.room-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 28px 20px;
  border-bottom: 1px solid #eee;
}

.room-info__content {
  flex: 1;
  min-width: 0;
}

.room-info__title {
  margin: 0 0 8px;
  font-size: clamp(22px, 2.5vw, 30px);
  font-weight: 400;
  line-height: 1.3;
}

.room-info__description {
  margin: 0;
  font-size: 12px;
  line-height: 1.7;
}

.room-info__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  min-width: 158px;
  min-height: 44px;
  padding: 12px 24px;
  background: var(--room-accent);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.room-info__button:hover {
  opacity: 0.8;
}

/* ========================================
   RoomSpecs
======================================== */
.room-specs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin: 20px 0 0;
  padding: 0;
}

.room-specs__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 50px;
  padding: 10px;
  background: var(--room-spec-bg);
  text-align: center;
}

.room-specs__item dt {
  margin: 0 0 4px;
  color: #777;
  font-size: 11px;
}

.room-specs__item dd {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
}

/* ========================================
   Tablet
======================================== */
@media (max-width: 768px) {
  .room-modal {
    padding: 20px;
  }

  .room-gallery {
    gap: 10px;
  }

  .room-specs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
}

/* ========================================
   Smartphone
======================================== */
@media (max-width: 480px) {
  .room-modal {
    padding: 16px;
  }

  .room-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto auto;
    aspect-ratio: auto;
    gap: 8px;
  }

  .room-gallery__item--main {
    grid-column: 1 / -1;
    grid-row: auto;
    aspect-ratio: 16 / 10;
  }

  .room-gallery__item:not(.room-gallery__item--main) {
    aspect-ratio: 4 / 3;
  }

  .room-info {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding-block: 20px;
  }

  .room-info__button {
    width: 100%;
  }

  .room-specs {
    gap: 8px;
    margin-top: 16px;
  }

  .room-specs__item {
    padding: 12px 6px;
  }
}

.mfp-auto-cursor .mfp-content {
  min-height: 590px;
  max-width: 848px!important;
}

.mfp-content .mfp-close {
  right: 12px;
  top: 12px;
}
