﻿﻿/* Стили для страницы списка залов */

/* Убираем стрелки у input type="number" */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type="number"] {
  appearance: textfield;
  -moz-appearance: textfield;
}

.price-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fd7e14;
  cursor: pointer;
  border: 3px solid #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  transition: all 0.2s ease;
}

.price-slider::-webkit-slider-thumb:hover {
  transform: scale(1.1);
  box-shadow: 0 3px 10px rgba(253, 126, 20, 0.5);
}

.price-slider::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fd7e14;
  cursor: pointer;
  border: 3px solid #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  transition: all 0.2s ease;
}

.price-slider::-moz-range-thumb:hover {
  transform: scale(1.1);
  box-shadow: 0 3px 10px rgba(253, 126, 20, 0.5);
}

.price-slider-minmax {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  font-size: 14px;
  color: #6c757d;
}

.price-slider-minmax span {
  font-weight: 500;
}

.price-slider-header {
  display: flex;
  align-items: center;
  gap: 15px;
}

.price-slider-title {
  font-size: 1rem;
  font-family: "Montserrat", sans-serif;
  font-weight: 500;
  color: #9a9a9a;
}

.price-slider-value {
  font-size: 1rem;
  font-family: "Montserrat", sans-serif;
  font-weight: 500;
  color: #fff4f4;
}

.price-reset-btn {
  font-size: 14px;
  color: #6c757d;
  text-decoration: underline;
  margin-left: auto;
}

.price-reset-btn:hover {
  color: #0d6efd;
}

.price-slider-wrapper {
  width: 100%;
  position: relative;
}

.price-slider {
  width: 100%;
  height: 4px;
  border-radius: 2px;
  background: #dee2e6;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}

.price-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fd7e14;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  transition: all 0.2s ease;
}

.price-slider::-webkit-slider-thumb:hover {
  transform: scale(1.1);
  box-shadow: 0 3px 10px rgba(253, 126, 20, 0.5);
}

.price-slider::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #ff8348;
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  transition: all 0.2s ease;
}

.price-slider-minmax {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  font-size: 14px;
  color: #6c757d;
}

.price-slider-minmax span {
  font-weight: 500;
}

/* Стили для оборудования */
.equipment-category {
  margin-bottom: 15px;
}

.equipment-category strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 8px;
  font-family: "Montserrat", sans-serif;
}

.sub-equipment .form-check {
  margin-bottom: 4px;
  margin-left: 0;
  display: flex;
  align-items: center;
}

.sub-equipment .form-check-input {
  width: 16px;
  height: 16px;
  margin-right: 8px;
  margin-top: 0;
  border: 1px solid #fff;
  border-radius: 5px;
  background: #fff;
  cursor: pointer;
  flex-shrink: 0;
}

.sub-equipment .form-check-input:checked {
  background-color: #ff8348;
  border-color: #ff8348;
}

.sub-equipment .form-check-label {
  font-size: 13px;
  color: #fff;
  cursor: pointer;
  font-family: "Montserrat", sans-serif;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.equipment-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.equipment-card {
  flex: 1 1 200px;
  min-width: 200px;
}

.equipment-card strong {
  display: block;
  margin-bottom: 0.5rem;
}

.sub-equipment {
  display: block;
}

.sub-equipment .form-check {
  margin-bottom: 4px;
  margin-left: 0;
  display: flex;
  align-items: center;
  width: 100%;
}
.p-options-venues {
  font-family: "Montserrat", sans-serif;
  color: white;
  font-weight: 500;
  font-size: 1rem;
}
.equipment-name {
  font-family: "Montserrat", sans-serif;
  color: #9a9a9a;
  font-weight: 700;
  font-size: 0.9rem;
  line-height: 1.2;
}

.form-check-label-sub {
  font-family: "Montserrat", sans-serif;
  color: #9a9a9a;
  font-weight: 500;
  font-size: 0.8rem;
}

.filter-col {
  display: flex;
  flex-direction: column;
}

/* Процентная ширина колонок */
.filter-col-category {
  width: 15%;
  min-width: 180px;
}

.filter-col-capacity {
  width: 15%;
  min-width: 150px;
}

.filter-col-metro {
  width: 20%;
  min-width: 200px;
}

.filter-col-price {
  width: 25%;
  min-width: 250px;
}

.filter-col-button {
  width: 10%;
  margin-left: auto;
  margin-right: 15px;
  padding-bottom: 23px;
}
.equipment-accordion {
  display: none;
}

.mobile-show {
  display: none;
}

/* === МОБИЛЬНАЯ ВЕРСИЯ (≤900px) === */
@media (max-width: 1242px) {
  /* Фильтры — по одному в ряд, 100% ширины */
  .mobile-filter-full {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    width: 100% !important;
  }
  .filter-col-button {
    padding-bottom: 0px;
  }
  .equipment-grid {
    display: none;
  }
  .equipment-accordion {
    display: block;
  }
  .accordion-item:first-of-type,
  .accordion-item:last-of-type {
    border-radius: 20px;
  }
  .filter-label {
    font-size: 0.8rem;
  }

  .filter-input {
    width: 100%;
    border-radius: 15px;
    padding: 10px 44px 10px 12px;
    font-size: 0.9rem;
  }

  .input-button {
    width: 44px;
    height: 42px;
    border-radius: 15px;
  }

  /* Слайдер цены — 100% ширины */
  .price-slider-container {
    width: 100%;
  }

  .price-slider {
    width: 100%;
  }

  .price-slider-minmax span {
    font-size: 0.75rem;
  }

  .price-slider-title {
    font-size: 0.85rem;
  }

  .price-slider-value {
    font-size: 0.85rem;
  }

  /* Кнопка НАЙТИ — 100% ширины */
  .filter-button-container-venues {
    width: 100%;
  }

  .filter-button {
    width: 100%;
    height: 48px;
    font-size: 1rem;
    border-radius: 20px;
    padding: 12px 0;
  }

  /* Сброс фильтров — рядом с кнопкой НАЙТИ на мобильном */
  .filter-reset-btn {
    margin-top: 10px;
  }

  .filters-row.mt-2 {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  /* Скрыть/показать кнопки на мобильной версии */
  .mobile-hide {
    display: none !important;
  }
  .mobile-show {
    display: block;
  }

  /* Аккордеон оборудования — мобильная версия */
  .equipment-accordion {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .accordion-item {
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    overflow: hidden;
    background: transparent;
  }

  .accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: transparent;
    border: none;
    color: #ffffff;
    font-family: "Montserrat", sans-serif;
    font-weight: 500;
    font-size: clamp(0.7rem, 1vw, 0.8rem);
    cursor: pointer;
  }

  .accordion-arrow {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
    color: #ffffff;
  }

  .accordion-header[aria-expanded="true"] .accordion-arrow {
    transform: rotate(180deg);
  }

  .accordion-body {
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
  }

  .sub-equipment {
    display: flex;
    flex-direction: column;
    gap: 6px;
  }

  .form-check-label-sub {
    color: #ffffff;
    font-size: clamp(0.7rem, 1vw, 0.8rem);
  }

  /* Карточки залов — 2 в ряд на мобильной (col-6) */
  /* размеры карточек адаптированы ниже */

  .card {
    border-radius: 15px;
  }

  .card-img-top {
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
    object-fit: cover;
  }

  .card-body {
    padding: 8px;
  }

  .card-title {
    font-size: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-clamp: 2;
  }

  .card-label-venue {
    font-size: 0.7rem;
  }

  .card-label-venue img.icon-calendar {
    width: 14px;
    height: 14px;
  }

  .card-price-venue {
    font-size: 0.75rem;
  }

  .buy-button {
    font-size: 0.7rem;
    padding: 8px 6px;
    border-radius: 15px;
  }

  .icon-calendar {
    width: 14px;
    height: 14px;
  }
}
