/* Публичная бронь зала: тот же график занятости, что у админа, но обезличенный. */
.rent-ask { display: flex; gap: 12px; flex-wrap: wrap; }
.rent-ask label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--muted); }
.rent-ask input { margin: 0; width: auto; min-width: 140px; }

/* Полоса суток: серый фон — время, которое уже не занять онлайн, поверх него
   точные блоки занятости и свободных окон. Часовая сетка нарисована фоном. */
.rent-bar { position: relative; height: 32px; margin: 12px 0 0; border-radius: 8px;
  background: #232228; overflow: hidden; }
.rent-bar b { position: absolute; top: 0; bottom: 0; display: flex;
  align-items: center; justify-content: center; font-size: 11px; font-weight: 600;
  white-space: nowrap; overflow: hidden; }
.rent-bar b.busy { background: rgba(224,86,72,.55); color: #ffe3e0; }
.rent-bar b.free { background: rgba(140,245,91,.6); color: #0f1410; }
/* Метка «сейчас» — точка отсчёта, без неё шкала читается хуже. */
.rent-bar u { position: absolute; top: -2px; bottom: -2px; width: 2px;
  background: #ffd166; box-shadow: 0 0 0 1px rgba(0,0,0,.45); z-index: 2; }
.rent-bar u::after { content: ""; position: absolute; top: 2px; left: -3px;
  width: 8px; height: 8px; border-radius: 50%; background: #ffd166; }

/* Подписи часов под полосой — без них полоса нечитаема. */
.rent-marks { position: relative; height: 16px; margin-bottom: 6px; }
.rent-marks span { position: absolute; top: 0; transform: translateX(-50%);
  font-size: 11px; color: var(--muted); white-space: nowrap; }

.rent-status { font-size: 13px; color: var(--muted); margin-bottom: 2px; }
.rent-note { font-size: 13px; color: #ffd166; margin: 6px 0 0; line-height: 1.4; }
.rent-note a { color: inherit; font-weight: 600; }

.rent-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.rent-chip { background: rgba(140,245,91,.14); color: var(--accent);
  border: 1px solid rgba(140,245,91,.45); border-radius: 14px;
  padding: 10px 16px; font-size: 15px; font-weight: 700; cursor: pointer;
  min-height: 48px; display: flex; flex-direction: column; align-items: flex-start; gap: 1px; }
.rent-chip em { font-style: normal; font-size: 11px; font-weight: 500; opacity: .75; }
.rent-chip:hover { background: rgba(140,245,91,.24); }

.rent-price { background: var(--sunk, #1b1a20); border-radius: 10px;
  padding: 10px 12px; margin: 10px 0 4px; font-size: 15px; }
.rent-check { display: flex; align-items: center; gap: 8px; margin: 10px 0; }
.rent-check input { width: auto; margin: 0; }

.rent-legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 12px;
  color: var(--muted); padding: 0 2px 10px; }
.rent-legend i { display: inline-block; width: 14px; height: 8px; border-radius: 4px;
  margin-right: 5px; vertical-align: middle; }
.rent-legend i.free { background: rgba(140,245,91,.55); }
.rent-legend i.busy { background: rgba(224,86,72,.45); }
.rent-legend i.gone { background: #1b1a20; border: 1px solid var(--line); }

/* Вход на бронь зала с главной: гость должен видеть, что зал можно взять сам. */
.rent-cta { display: flex; align-items: center; justify-content: space-between;
  gap: 12px; text-decoration: none; color: var(--text);
  background: linear-gradient(135deg, rgba(140,245,91,.16), rgba(140,245,91,.05));
  border: 1px solid rgba(140,245,91,.4); border-radius: 14px; padding: 14px 16px; }
.rent-cta em { display: block; font-style: normal; font-size: 13px; color: var(--muted); margin-top: 2px; }
.rent-cta-go { color: var(--accent); font-size: 22px; font-weight: 700; }
.rent-cta:hover { background: linear-gradient(135deg, rgba(140,245,91,.24), rgba(140,245,91,.08)); }

.rent-price em { display: block; font-style: normal; font-size: 12px;
  color: var(--muted); margin-top: 3px; }



/* Пока открыто окно, фон не прокручивается — иначе на телефоне
   уезжаешь от кнопок и кажется, что выхода нет. */
body.modal-open { overflow: hidden; }

/* Главная кнопка всегда на виду: на телефоне форма длиннее экрана, и без
   этого «Забронировать» уезжает под край — кажется, что кнопки нет. */
.rent-submit { position: sticky; bottom: -20px; margin: 14px -20px -20px;
  padding: 12px 20px calc(16px + env(safe-area-inset-bottom));
  background: linear-gradient(to top, var(--card) 72%, transparent);
  backdrop-filter: blur(2px); }
.rent-submit .btn { width: 100%; min-height: 52px; font-size: 16px; }

/* Зал, ради которого гость пришёл по ссылке с сайта: подсвечиваем, чтобы
   не искать его в списке заново. */
.list-item.is-wanted {
  outline: 2px solid var(--accent, #8cf55b);
  outline-offset: 2px;
  border-radius: 10px;
}

/* Шапка карточки зала — кнопка галереи: миниатюра, название, «N фото». */
.rent-head {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 0;
  margin: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: zoom-in;
}
.rent-head > span { flex: 1; min-width: 0; }
.rent-thumb {
  width: 64px;
  height: 48px;
  object-fit: cover;
  border-radius: 8px;
  flex: none;
}
.rent-photos {
  font-style: normal;
  font-size: 12px;
  white-space: nowrap;
  padding: 4px 10px;
  border-radius: 20px;
  background: rgba(255, 255, 255, .08);
}
.rent-head:hover .rent-photos { background: rgba(140, 245, 91, .18); }

/* Окно галереи. */
.rent-lb { max-width: 920px; width: calc(100% - 24px); }
.rent-lb__stage {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}
.rent-lb__stage img {
  flex: 1;
  min-width: 0;
  max-height: 70vh;
  object-fit: contain;
  border-radius: 10px;
}
.rent-lb__nav {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .15);
  background: rgba(255, 255, 255, .06);
  color: inherit;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

/* «Перезвоните мне» — для тех, кто ещё не выбрал дату */
.rent-cb { display: flex; align-items: center; justify-content: space-between; gap: 10px;
  flex-wrap: wrap; margin-top: 12px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.08);
  font-size: 13px; color: var(--muted); }
.rent-cb .btn { margin: 0; }
/* ловушка для ботов: человек поле не видит и не заполняет */
.rent-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

