/*
Theme Name: Inew - company
Theme URI: https://inew24.ru/
Description: Общая тема
Author: INew - company
Author URI: https://inew24.ru/
Version: 2.3
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/
html, body{
    padding:0;
    margin:auto;
}
.slick-slide img:honer{
	cursor:pointer
}
.room-plan-home {
    padding: 4rem 0;
}

.room-plan-home__inner {
    width: min(1200rem, 92%);
    margin: 0 auto;
}

.room-plan-home__title {
    margin-bottom: 2rem;
}

.room-plan-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.room-plan-list__link {
    text-decoration: none;
    color: inherit;
    font-weight: 600;
}

.room-plan-home__empty {
    margin-top: 2rem;
}

.room-plan {
    padding: 4rem 0 6rem;
}

.room-plan__inner {
    width: min(1400rem, 95%);
    margin: 0 auto;
}

.room-plan__breadcrumbs-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    padding: 0;
    margin: 0 0 2rem;
}

.room-plan__breadcrumbs-link {
    text-decoration: none;
    color: inherit;
}

.room-plan__title {
    margin-bottom: 3rem;
}

.room-plan__map {
    margin-bottom: 3rem;
}

.room-plan__map-controls {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.room-plan__map-control {
    width: 3.6rem;
    height: 3.6rem;
    border-radius: 0.8rem;
    border: 0.1rem solid #d1d1d1;
    background: #ffffff;
    cursor: pointer;
    font-size: 1.8rem;
}

.room-plan__map-viewport {
    width: 100%;
    overflow: hidden;
    border-radius: 1.2rem;
    border: 0.1rem solid #e1e1e1;
}

.room-plan__image-wrapper {
    position: relative;
    width: 100%;
}

.room-plan__map-canvas {
    transform-origin: 0 0;
    cursor: grab;
    touch-action: none;
}

.room-plan__map-canvas.is-dragging {
    cursor: grabbing;
}

.room-plan__image {
    width: 100%;
    height: auto;
    display: block;
}

.room-plan__marker {
    position: absolute;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: #ff5a5a;
    border: 0.2rem solid #ffffff;
    cursor: pointer;
    transform: translate(-50%, -50%);
    box-shadow: 0 0.4rem 1rem rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.room-plan__marker--icon {
    width: 2.6rem;
    height: 2.6rem;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.room-plan__marker-icon {
    width: 2.4rem;
    height: 2.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.room-plan__marker-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.room-plan__marker-icon-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

.room-plan__marker--colored-icon .room-plan__marker-icon svg {
    fill: var(--marker-color);
    stroke: var(--marker-color);
}

.room-plan__gallery-title {
    margin-bottom: 1.5rem;
}

.room-plan__gallery-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.room-plan__modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    z-index: 20;
	max-height:100vh;
}

.room-plan__modal.is-open {
    display: flex;
}

.room-plan__modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
}

.room-plan__modal-content {
    position: relative;
    z-index: 1;
    background: #ffffff;
    border-radius: 1.6rem;
    width: min(900rem, 95%);
    max-height: 90vh;
    overflow: auto;
    padding: 2rem;
}

.room-plan__modal-close {
    border: 0;
    background: transparent;
    font-size: 1.6rem;
    cursor: pointer;
    margin-bottom: 1rem;
}

.room-plan__modal-title {
    margin-bottom: .5rem;
	margin-top: .5rem;
}

.room-plan__modal-open {
    overflow: hidden;
}

.room-plan__slider {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.room-plan__slider-image {
    width: 100%;
    height: auto;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 1rem;
    display: block;
}

.room-plan__slider-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
}

.room-plan__slider-button {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    border: 0.1rem solid #d1d1d1;
    background: #ffffff;
    font-size: 2rem;
    cursor: pointer;
}

.room-plan__slider-button:disabled {
    opacity: 0.5;
    cursor: default;
}

.room-plan__slider-counter {
    font-size: 1.4rem;
}

.room-plan__gallery-image {
    width: min(280rem, 100%);
    height: auto;
    border-radius: 1rem;
    display: block;
}

.room-plan__gallery-empty,
.room-plan__empty {
    color: #666666;
}


.room-plan__modal-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}

.room-plan__modal-actions{
  display:flex;
  gap:10px;
}

.room-plan__modal-action{
  cursor:pointer;
}

/* Zoom overlay */
.room-plan__zoom{
  position:fixed;
  inset:0;
  display:none;
  z-index:99999;
}

.room-plan__zoom.is-open{ display:block; }

.room-plan__zoom-overlay{
  position:absolute;
  inset:0;
  background:rgba(0,0,0,.7);
}

.room-plan__zoom-content{
  position:absolute;
  inset:20px;
  background:#fff;
  border-radius:12px;
  overflow:auto;
  padding:16px;
}

.room-plan__zoom-image{
  display:block;
  max-width:100%;
  height:auto;
  margin:0 auto;
  cursor:zoom-in;
}

/* режим 1:1 */
.room-plan__zoom-image.is-actual{
  max-width:none;
  cursor:zoom-out;
}

.room-plan__zoom-hint{
  margin-top:10px;
  font-size:12px;
  opacity:.7;
  text-align:center;
}

/* lightbox */
.room-plan__lightbox{position:fixed;inset:0;display:none;z-index:99999;}
.room-plan__lightbox.is-open{display:block;}
.room-plan__lightbox-overlay{position:absolute;inset:0;background:rgba(0,0,0,.85);}

.room-plan__lightbox-content{
  position:absolute;inset:24px;
  display:flex;flex-direction:column;
  color:#fff;
}

.room-plan__lightbox-close{
  position:absolute;top:10px;right:14px;
  background:transparent;border:0;color:#fff;
  font-size:32px;line-height:1;cursor:pointer;
}

.room-plan__lightbox-stage{
  position:relative;
  flex:1;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
}

.room-plan__lightbox-image{
  max-width:100%;
  max-height:100%;
  user-select:none;
  touch-action:none;
}

.room-plan__lightbox-nav{
  position:absolute;top:50%;
  transform:translateY(-50%);
  background:rgba(0,0,0,.35);
  border:0;color:#fff;
  width:44px;height:44px;
  border-radius:999px;
  cursor:pointer;
  font-size:28px;
}
.room-plan__lightbox-prev{left:10px;}
.room-plan__lightbox-next{right:10px;}

.room-plan__lightbox-footer{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding-top:10px;
}

.room-plan__lightbox-download{
  color:#fff;
  text-decoration:underline;
}


.room-plan__lightbox{
  position: fixed !important;
  inset: 0;
  display: none;
  z-index: 999999; /* выше модалки, карты, всего */
}

.room-plan__lightbox.is-open{ display: block; }

.room-plan__lightbox-overlay{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.85);
}

.room-plan__lightbox-content{
  position: absolute;
  inset: 24px;
  display: flex;
  flex-direction: column;
  color: #fff;
}

.room-plan__lightbox-close{
  position: absolute;
  top: 10px;
  right: 14px;
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
}

.room-plan__lightbox-stage{
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.room-plan__lightbox-image{
  max-width: 100%;
  max-height: 100%;
  user-select: none;
  touch-action: none;
  transform: translate(0px,0px) scale(1);
  cursor: grab;
}

.room-plan__lightbox-nav{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,.35);
  border: 0;
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 28px;
  z-index: 2;
}
.room-plan__lightbox-prev{ left: 10px; }
.room-plan__lightbox-next{ right: 10px; }

.room-plan__lightbox-footer{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding-top:10px;
}

.room-plan__lightbox-download{
  color:#fff;
  text-decoration: underline;
}

/* запрет прокрутки страницы при открытии */
body.room-plan__lightbox-open{ overflow: hidden; }

