:root {
  --fp-green-main: #3f8600;       /* левый фон */
  --fp-green-right: #7bc600;      /* правый фон */
  --fp-green-panel: #b5d67b;      /* светло-зеленая карточка */
  --fp-green-button: #93ff00;     /* кнопка */
  --fp-green-dark: #2f6d00;
  --fp-white: #ffffff;
  --fp-text: #2d2d2d;
  --fp-text-soft: #4a4a4a;
  --fp-line: rgba(0, 0, 0, 0.12);

  --fp-pill-bg: #ececec;
  --fp-pill-border: rgba(0,0,0,0.05);

  --fp-radius-xl: 28px;
  --fp-radius-lg: 21px;
  --fp-radius-md: 15px;
  --fp-radius-sm: 10px;

  --fp-shadow-soft: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.fp-lite_container{
  padding: 40px 0;
}
.fp-lite-map__modules{
    max-width: 600px;
    aspect-ratio: 1;
    position: relative;
    margin: 0 auto;
}
.map__module_m1{
    position: absolute;
    z-index: 1;
    top: 3%;
    left: 3%;
    width: 65%;
}
.map__module_m2{
    position: absolute;
    z-index: 1;
    top: 49%;
    left: 3%;
    width: 65%;
}
.map__module_m3{
    position: absolute;
    z-index: 1;
    top: 3%;
    left: 70%;
    width: 28%;
}

/* Общий layout */
.fp-lite-layout {
  background: var(--fp-green-main);
  border: 0;
  overflow: hidden;
}
.fp-lite-layout__wrap{
  min-height: 730px;
  display: grid;
  grid-template-columns: 1.45fr 1fr;
}

/* ЛЕВАЯ ЧАСТЬ: карты */
.fp-lite-layout__left {
  background: var(--fp-green-main);
  position: relative;
  padding: 0px 28px 0px 0px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.fp-maps {
  position: relative;
  background-color: #fff;
  aspect-ratio: 1.1;
  /* height: calc(100% - 30px); */
  border-radius: var(--fp-radius-xl);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 10px;
}
.fp-maps__ttl {
    color: #fff;
    line-height: 1.05;
    margin: 0 0 16px;
    text-align: center;
}

.js-map-module {
  width: 100%;
  display: none;
}
.js-map-module-wrap{
  position: relative;
  width: 100%;
  margin-top: 20px;
}

.js-map-module.is-active {
  display: block;
}

/* если SVG внутри контейнера */
.js-map-module svg {
  width: 100%;
  height: 100%;
  display: block;
  max-height: 720px;
  object-fit: contain;
}

/* если карты рендерятся как div/img в будущем */
.js-map-module img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ПРАВАЯ ЧАСТЬ: ractive sidebar */
.fp-lite-layout__right {
  background: var(--fp-green-right);
  padding: 28px 22px 28px;
  box-sizing: border-box;
  display: flex;
  align-items: flex-start;
  border-left: 6px solid rgba(145, 220, 0, 0.45);
  overflow: hidden;
  border-radius: var(--fp-radius-xl);
}

.fp-lite-layout__title{
  text-align: center;
  font-size: 200%;
  line-height: 1.2;
  margin-bottom: 5px;
  margin-top: 10px;
  font-family: var(--font-a);
}
.fp-lite-layout__desc{
  text-align: center;
  font-weight: bold;
  font-size: 120%;
}

.fp-side {
  width: 100%;
}

.fp-side__top{
  display: flex;
  flex-wrap: wrap;
  background: var(--fp-green-panel);
  margin-bottom: 12px;
  overflow: hidden;
}

/* Миникарта */


.fp-side__minimap {
  background: rgba(55, 112, 0, 0.55);
  border-radius: 0;
  padding: 16px;
  min-height: 170px;
  max-width: 280px;
  aspect-ratio: 1;
  width: 50%;
  box-sizing: border-box;
  position: relative;
}

.map__module_btn{
  appearance: none;
  border: 2px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  border-radius: 3px;
  padding: 0;
  cursor: pointer;
  transition: transform .12s ease, border-color .12s ease, box-shadow .12s ease;
}


.map__module_btn:hover {
  transform: translateY(-1px);
  border-color: rgba(255,255,255,0.28);
}

.map__module_btn.is-active {
  border-color: #d4ff63;
  box-shadow: 0 0 0 2px rgba(147,255,0,0.28) inset;
  background: rgba(255,255,255,0.1);
}

.fp-side__miniImg {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.fp-side__miniLabel {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 64px;
  color: #fff;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: .04em;
}

/* Карточка справа */
.fp-side__card {
  background: transparent;
  width: 100%;
}

.fp-side__cardTitle {
  color: #fff;
  font-size: clamp(24px, 2.4vw, 36px);
  margin: 0 0 16px;
  font-family: var(--font-a);
}

/* Верх карточки помещения */
.fp-side__roomHead {
  padding: 16px 20px 12px;
  margin-bottom: 12px;
  width: 50%;
}

.fp-side__roomName {
  color: var(--fp-text);
  font-weight: 800;
  font-size: 20px;
  line-height: 1.15;
  margin-bottom: 4px;
}

.fp-side__roomMeta {
  color: var(--fp-text-soft);
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* Основной светлый блок карточки */
.fp-side__top,
.fp-side__stats {
  background: var(--fp-green-panel);
  border-radius: var(--fp-radius-sm);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.14);
}


/* Статусы */
.fp-side__status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 24px;
  padding: 0 10px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 700;
  border: 1px solid rgba(0,0,0,0.08);
}

.fp-side__status.is-free {
  background: #e7ffd0;
  color: #295f00;
}

.fp-side__status.is-reserved {
  background: #ffe0e0;
  color: #8a1d1d;
}

/* Блок характеристик */
.fp-side__stats {
  padding: 14px;
  margin-bottom: 12px;
  display: grid;
  gap: 12px;
}

/* строка в стиле макета: светлый pill */
.fp-side__stat {
  background: #ebebeb;
  border: 1px solid var(--fp-pill-border);
  border-radius: var(--radius-sm);
  min-height: 58px;
  box-sizing: border-box;
  padding: 10px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  box-shadow: inset 0 -1px 0 rgba(0,0,0,0.04);
}

.fp-side__stat > span {
  color: var(--fp-text);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
}

.fp-side__stat > b {
  color: var(--fp-text);
  font-size: 18px;
  font-weight: 900;
  line-height: 1.2;
  text-align: right;
  white-space: nowrap;
}

/* Форма */
.fp-side__field {
  display: block;
}

.fp-side__field input {
  width: 100%;
  height: 50px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(0,0,0,0.1);
  background: #f6f6f6;
  padding: 0 16px;
  box-sizing: border-box;
  color: var(--fp-text);
  font-size: 15px;
  outline: none;
  transition: border-color .12s ease, box-shadow .12s ease;
}

.fp-side__field input:focus {
  border-color: rgba(35, 90, 0, 0.35);
  box-shadow: 0 0 0 3px rgba(147,255,0,0.18);
}

.fp-side__field input::placeholder {
  color: #7a7a7a;
}

.fp-side__submit {
  width: 100%;
  padding: var(--space-sm) var(--space-md);
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--fp-green-button);
  color: #132600;
  font-weight: 900;
  font-size: 16px;
  letter-spacing: .02em;
  cursor: pointer;
  transition: transform .12s ease, filter .12s ease, opacity .12s ease;
  box-shadow: 0 6px 14px rgba(72, 120, 0, 0.25);
  text-transform: uppercase;
}

.fp-side__submit:hover:not(:disabled) {
  transform: translateY(-1px);
  filter: brightness(1.02);
}

.fp-side__submit:active:not(:disabled) {
  transform: translateY(0);
}

.fp-side__submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Служебные сообщения */
.fp-side__error,
.fp-side__success {
  border-radius: var(--fp-radius-sm);
  padding: 10px 12px;
  font-size: 13px;
  line-height: 1.35;
}

.fp-side__error {
  background: #ffe5e5;
  color: #8f1f1f;
  border: 1px solid rgba(143, 31, 31, 0.15);
}

.fp-side__success {
  background: #ebffd8;
  color: #275f00;
  border: 1px solid rgba(39, 95, 0, 0.15);
}

.fp-side__empty {
  background: var(--fp-green-panel);
  border-radius: var(--fp-radius-xl);
  padding: 18px;
  color: var(--fp-text-soft);
  font-weight: 600;
}

.floorplan-lite{
  width: 100%;
}

/* SVG комнаты: интерактивность */
.js-map-module .area-item,
.js-map-module [data-room-id],
.js-map-module [id^="room-"] {
  cursor: pointer;
  transition: filter .12s ease, opacity .12s ease;
}

.js-map-module .area-item:hover,
.js-map-module [data-room-id]:hover,
.js-map-module [id^="room-"]:hover {
  filter: brightness(1.04);
}

/* Выбранная комната (если класс ставится на g) */
.js-map-module .is-room-selected {
  filter: brightness(1.03);
}

/* Выбранная комната (если shape внутри g) */
.js-map-module .is-room-selected path,
.js-map-module .is-room-selected polygon,
.js-map-module .is-room-selected rect,
.js-map-module .is-room-selected circle,
.js-map-module .is-room-selected ellipse,
.js-map-module .is-room-selected polyline,
.js-map-module path.is-room-selected,
.js-map-module polygon.is-room-selected,
.js-map-module rect.is-room-selected,
.js-map-module circle.is-room-selected,
.js-map-module ellipse.is-room-selected,
.js-map-module polyline.is-room-selected {
  stroke: #1f1f1f !important;
  stroke-width: 3px !important;
  vector-effect: non-scaling-stroke;
}

/* Лого слой */
.fp-logoLayer{
  position: absolute;
  inset: 0;
  z-index: 6;
  pointer-events: none;
}

.fp-logoLayer__img{
  position: absolute;
  max-width: 100%;
  pointer-events: none;
  user-select: none;
  touch-action: none;
}

/* В админ-режиме лого становятся интерактивными */
.fp-lite-layout.is-logo-admin .fp-logoLayer__img{
  pointer-events: auto;
  cursor: move;
}

.fp-lite-layout.is-logo-admin .fp-logoLayer__img.is-logo-selected{
  outline: 2px dashed rgba(147,255,0,0.85);
  outline-offset: 2px;
}

.fp-lite-layout.is-logo-admin .fp-logoLayer__img.is-logo-changed{
  box-shadow: 0 0 0 2px rgba(255, 230, 0, 0.85) inset;
}

.fp-logoHandle{
  position: absolute;
  right: -6px;
  bottom: -6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--fp-green-button);
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
  cursor: nwse-resize;
  display: none;
}

.fp-lite-layout.is-logo-admin .fp-logoLayer__img.is-logo-selected .fp-logoHandle{
  display: block;
}

.fp-logoLayer__img img{
  width: 100%;
}

/* Значения меты (если выводишь под стоимостью) */
.fp-logoVal{
  display: inline-block;
  padding: 2px 6px;
  border-radius: 8px;
  background: rgba(0,0,0,0.06);
  margin-left: 6px;
}

.fp-logoVal.is-changed{
  background: rgba(147,255,0,0.28);
  box-shadow: inset 0 0 0 1px rgba(147,255,0,0.35);
}

.modal__subtitle{
  margin: 6px 0 10px;
  font-weight: 700;
  color: var(--color-accent);
  text-align: center;
}

/* Адаптив */
@media (max-width: 1200px) {
  .fp-lite-layout__wrap {
    grid-template-columns: 1.2fr 0.9fr;
    min-height: 680px;
    padding: 0 15px;
  }

  .fp-side__cardTitle {
    font-size: clamp(20px, 2vw, 28px);
  }

  .fp-side__stat > span {
    font-size: 14px;
  }

  .fp-side__stat > b {
    font-size: 16px;
  }
}

@media (max-width: 980px) {
  .fp-lite-layout__wrap {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .fp-lite-layout__left {
    border-right: 0;
    min-height: 420px;
    padding-right: 0;
    width: 100%;
  }

  .fp-lite-layout__right {
    border-top: 6px solid rgba(145, 220, 0, 0.45);
    padding: 18px;
    border-left: none;
    width: 100%;
  }

  .fp-side__minimap {
    min-height: 0;
  }

  .fp-side__minimapGrid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr;
  }

  .fp-side__miniBtn:nth-child(1),
  .fp-side__miniBtn:nth-child(2),
  .fp-side__miniBtn:nth-child(3) {
    grid-column: auto;
    grid-row: auto;
  }
}