/* Стили для модального окна на весь экран */
.floor-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
}

.floor-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
}

.floor-modal-content {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Заголовок с дополнительной секцией */
.floor-modal-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.95);
  padding: 15px 20px;
  border-bottom: 1px solid #ddd; 
  color: #333; 
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.floor-modal-close {
  position: static;
  font-size: 30px;
  background: none;
  border: none;
  color: #ff4444;
  cursor: pointer;
  line-height: 1;
}

.floor-modal-close:hover {
  color: #ccc;
}

.modal-title {
  flex-grow: 1;
  margin: 0;
  text-align: center;
  font-size: 1.25rem;
  font-weight: 600;
}

/* Дополнительная секция в заголовке */
.modal-info-section {
  flex-shrink: 0;
  font-size: 0.9rem;
  color: #aaa;
  white-space: nowrap;
}

/* Контейнер для изображения */
.floor-modal-image-container {
  flex-grow: 1;
  display: flex;
 justify-content: center; 
 /*  align-items: center;*/
  overflow: auto;
  padding: 20px;
}

/* Изображение растягивается на весь контейнер с сохранением пропорций */
.floor-modal-image-container img {
  max-width: 95vw;
  max-height: 95vh;
  object-fit: contain;
  border-radius: 4px;
}

/* Сообщение об ошибке загрузки изображения */
.image-error-message {
  font-size: 18px;
  color: #ff5555;
  font-weight: bold;
  text-align: center;
  padding: 20px;
  color: white;
}
