/* ============================================================
   Площадки для мероприятий (листинг) — изолированные стили
   Префикс: vnl- (всё под .vnl-root)
   Перенос из src/app/venues/venues.module.css
   ============================================================ */

/* standalone-превью: убираем дефолтный отступ body и красим фон под страницу,
   иначе ниже контента видна белая область (на сайте body/фон задаёт шаблон) */
html, body {
  margin: 0;
  background: #F6F6F6;
}

.vnl-root {
  --vnl-accent: #FE5D26;
  --vnl-accent-hover: #D95427;
  --vnl-black: #312D2B;
  --vnl-text: #272F3D;
  --vnl-bg: #F6F6F6;
  --vnl-white: #FFFFFF;
  --vnl-border: rgba(49, 45, 43, 0.1);

  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--vnl-text);
  background-color: var(--vnl-bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.vnl-root *,
.vnl-root *::before,
.vnl-root *::after {
  box-sizing: border-box;
}

.vnl-root a {
  text-decoration: none;
  color: inherit;
}

.vnl-root img {
  max-width: 100%;
  height: auto;
  display: block;
}

.vnl-container {
  max-width: 1327px; /* контент 1297 (как у каталога 121 и др. страниц 2026) */
  margin: 0 auto;
  padding: 24px 15px 0; /* верхний отступ крошек как на канон-страницах (.cnt-hero 24px) */
}

/* Header */
.vnl-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2px 0 28px;
}

.vnl-title {
  font-size: 32px;
  font-weight: 500;
  line-height: 40px;
  color: var(--vnl-black);
  margin: 0;
}

/* .vnl-root перед классом — перебить сброс `.vnl-root a { color: inherit }`
   (кнопка стала ссылкой <a>, иначе иконка+текст тёмные вместо оранжевых) */
.vnl-root .vnl-map-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 12px;
  border: 2px solid var(--vnl-accent);
  background: var(--vnl-white);
  color: var(--vnl-accent);
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
}

.vnl-root .vnl-map-btn:hover {
  background: var(--vnl-accent);
  color: var(--vnl-white);
}

.vnl-map-btn svg {
  transition: color 0.2s;
}

.vnl-map-btn:hover svg {
  color: var(--vnl-white);
}

/* Category pills */
.vnl-categories {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.vnl-cat-btn {
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid var(--vnl-border);
  background: transparent;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  color: var(--vnl-black);
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.vnl-cat-btn:hover {
  border-color: var(--vnl-accent);
  color: var(--vnl-accent);
}

.vnl-cat-btn--active {
  background: var(--vnl-accent);
  border-color: var(--vnl-accent);
  color: var(--vnl-white);
}

.vnl-cat-btn--active:hover {
  background: var(--vnl-accent-hover);
  border-color: var(--vnl-accent-hover);
  color: var(--vnl-white);
}

/* hidden categories until "Ещё" */
.vnl-cat-hidden {
  display: none;
}

/* "More" / "Collapse" button */
.vnl-cat-more {
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px dashed rgba(49, 45, 43, 0.2);
  background: transparent;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  color: rgba(49, 45, 43, 0.5);
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.vnl-cat-more:hover {
  border-color: var(--vnl-accent);
  color: var(--vnl-accent);
}

/* Dropdown filters row */
.vnl-filters {
  display: flex;
  gap: 8px;
  margin-bottom: 32px;
  flex-wrap: wrap;
  align-items: center;
}

.vnl-filter-wrap {
  position: relative;
}

.vnl-filter-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  border-radius: 12px;
  border: 1px solid var(--vnl-border);
  background: var(--vnl-white);
  color: var(--vnl-black);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
  white-space: nowrap;
}

.vnl-filter-btn:hover {
  border-color: var(--vnl-accent);
}

.vnl-filter-btn--open,
.vnl-filter-btn--set {
  border-color: var(--vnl-accent);
  color: var(--vnl-accent);
}

.vnl-filter-btn--open svg {
  transform: rotate(180deg);
}

.vnl-filter-btn svg {
  transition: transform 0.2s;
}

.vnl-filter-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 200px;
  border-radius: 12px;
  background: var(--vnl-white);
  box-shadow: 0 8px 24px rgba(49, 45, 43, 0.12);
  border: 1px solid rgba(49, 45, 43, 0.05);
  padding: 8px;
  z-index: 10;
  display: none;
}

.vnl-filter-dropdown--open {
  display: block;
}

.vnl-filter-option {
  display: block;
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: var(--vnl-black);
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  transition: background 0.15s;
}

.vnl-filter-option:hover {
  background: rgba(49, 45, 43, 0.05);
}

.vnl-filter-option--active {
  color: var(--vnl-accent);
  font-weight: 500;
}

/* Metro dropdown — мультивыбор с чекбоксами */
.vnl-metro-dropdown {
  max-height: 280px;
  overflow-y: auto;
}

.vnl-metro-all {
  margin-bottom: 4px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--vnl-border);
  border-radius: 8px 8px 0 0;
}

.vnl-metro-opt {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* счётчик станций (сколько площадок у метро) */
.vnl-metro-count {
  margin-left: auto;
  font-size: 13px;
  font-weight: 400;
  color: rgba(49, 45, 43, 0.4);
}

/* Кнопка «Сбросить фильтры» — в ряду фильтров, видна при активном фильтре */
.vnl-reset {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--vnl-accent);
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
}

.vnl-reset:hover {
  background: rgba(254, 93, 38, 0.08);
}

.vnl-reset svg {
  flex-shrink: 0;
}

.vnl-reset[hidden] {
  display: none;
}

.vnl-metro-opt::before {
  content: "";
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  border: 1.5px solid rgba(49, 45, 43, 0.25);
  border-radius: 5px;
  background-position: center;
  background-repeat: no-repeat;
  transition: all 0.15s;
}

/* у станций активность = только галочка, текст не красим */
.vnl-metro-opt.vnl-filter-option--active {
  color: var(--vnl-black);
  font-weight: 400;
}

.vnl-metro-opt.vnl-filter-option--active::before {
  background-color: var(--vnl-accent);
  border-color: var(--vnl-accent);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
}

/* === Навигация листинга: «Показать ещё» + пагинация (порт шаблона 121) === */
.vnl-navigation-block {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 8px 0 48px;
}

/* .vnl-root перед классом — перебить сброс `.vnl-root a { color: inherit }` */
.vnl-root .vnl-show-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 10px;
  background: var(--vnl-white);
  box-shadow: 0 1px 4px 0 rgba(49, 45, 43, 0.08);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  color: var(--vnl-text);
  white-space: nowrap;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.vnl-root .vnl-show-more:hover {
  background-color: var(--vnl-accent);
  color: var(--vnl-white);
}

.vnl-pagination {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  /* держим пагинацию справа даже когда «Показать ещё» нет */
  margin-left: auto;
}

@media (max-width: 768px) {
  .vnl-navigation-block {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }
  .vnl-pagination {
    margin-left: 0;
    justify-content: center;
  }
}

/* .vnl-root перед классом — чтобы перебить сброс `.vnl-root a { color: inherit }` */
.vnl-root .vnl-pagination-link {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--vnl-white);
  box-shadow: 0 1px 4px 0 rgba(49, 45, 43, 0.08);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  color: var(--vnl-text);
  transition: background-color 0.15s ease, color 0.15s ease;
}

.vnl-root .vnl-pagination-link:hover {
  background-color: var(--vnl-accent);
  color: var(--vnl-white);
}

.vnl-root .vnl-pagination-link--active {
  background-color: var(--vnl-accent);
  color: var(--vnl-white);
  pointer-events: none;
}

.vnl-pagination-arrow svg {
  display: block;
}

/* Price range slider */
.vnl-price-dropdown {
  min-width: 280px;
  padding: 16px;
}

.vnl-price-inputs {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.vnl-price-input-wrap {
  flex: 1;
  position: relative;
}

.vnl-price-input-label {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 13px;
  color: rgba(49, 45, 43, 0.4);
  pointer-events: none;
}

.vnl-price-input {
  width: 100%;
  padding: 10px 10px 10px 28px;
  font-size: 14px;
  border-radius: 10px;
  border: 1px solid var(--vnl-border);
  background: var(--vnl-white);
  outline: none;
  font-family: inherit;
  color: var(--vnl-black);
  box-sizing: border-box;
  -moz-appearance: textfield;
}

.vnl-price-input::-webkit-outer-spin-button,
.vnl-price-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.vnl-price-input:focus {
  border-color: var(--vnl-accent);
}

.vnl-price-slider {
  position: relative;
  height: 20px;
  width: 100%;
}

.vnl-price-track {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  height: 6px;
  background: #e0e0e0;
  border-radius: 3px;
}

.vnl-price-fill {
  position: absolute;
  top: 0;
  height: 100%;
  background: var(--vnl-accent);
  border-radius: 3px;
}

.vnl-price-range {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  pointer-events: none;
  outline: none;
  margin: 0;
}

.vnl-price-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--vnl-white);
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  pointer-events: all;
  transition: transform 0.2s;
}

.vnl-price-range::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.vnl-price-range::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--vnl-white);
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  pointer-events: all;
  border: none;
}

/* Grid */
.vnl-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 16px;
  margin-bottom: 48px;
}

/* Venue card */
.vnl-card {
  border-radius: 16px;
  background: var(--vnl-white);
  box-shadow: 0 1px 4px rgba(49, 45, 43, 0.08);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}

.vnl-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(49, 45, 43, 0.1);
}

.vnl-card-img-box {
  position: relative;
  padding: 8px;
}

.vnl-card-tag {
  position: absolute;
  top: 20px;
  left: 20px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(4px);
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
  color: var(--vnl-black);
  z-index: 4;
  pointer-events: none;
}

/* Card Slider (hover zones) */
.vnl-card-slider {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 1 / 1;
}

/* .vnl-root перед классом — чтобы перебить сброс `.vnl-root img { height:auto }`,
   иначе object-fit:cover не работает и картинка не замощает контейнер */
.vnl-root .vnl-card-slider-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  opacity: 0;
  transition: opacity 0.15s;
}

.vnl-root .vnl-card-slider-img--active {
  opacity: 1;
}

/* Bubbles on image */
.vnl-card-bubbles {
  position: absolute;
  bottom: 16px;
  left: 16px;
  display: flex;
  gap: 6px;
  z-index: 3;
  pointer-events: none;
}

.vnl-card-bubble {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  color: #FFF;
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
}

.vnl-card-bubble svg {
  color: rgba(255, 255, 255, 0.7);
}

/* Card Content (compact) */
.vnl-card-content {
  padding: 8px 12px 12px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.vnl-card-title {
  font-size: 16px;
  font-weight: 500;
  line-height: 22px;
  color: var(--vnl-black);
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.vnl-card-address {
  display: flex;
  align-items: flex-start;
  gap: 4px;
  font-size: 13px;
  font-weight: 400;
  line-height: 18px;
  color: rgba(49, 45, 43, 0.5);
  margin-bottom: 2px;
}

.vnl-card-address svg {
  flex-shrink: 0;
  color: rgba(49, 45, 43, 0.3);
  margin-top: 2px;
}

.vnl-card-metro {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 500;
  line-height: 18px;
  color: rgba(49, 45, 43, 0.6);
  margin-bottom: 10px;
}

.vnl-card-metro-icon {
  flex-shrink: 0;
  margin-top: 1px;
}

.vnl-card-price {
  font-size: 16px;
  font-weight: 500;
  line-height: 22px;
  color: var(--vnl-accent);
  margin-top: auto;
}

/* Empty state */
.vnl-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 64px 0;
  color: rgba(49, 45, 43, 0.4);
  font-size: 16px;
}

/* Disclaimer */
.vnl-disclaimer {
  margin: 0 0 56px;
  padding-top: 28px;
  border-top: 1px solid rgba(49, 45, 43, 0.08);
  font-size: 13px;
  line-height: 20px;
  color: rgba(49, 45, 43, 0.45);
}

.vnl-disclaimer p {
  margin: 0 0 12px;
}

.vnl-disclaimer p:last-child {
  margin-bottom: 0;
}

/* ============================================================
   Responsive
   ============================================================ */
@media screen and (max-width: 991px) {
  .vnl-grid {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 12px;
  }
}

@media screen and (max-width: 768px) {
  .vnl-header {
    padding: 16px 0 20px;
  }

  .vnl-title {
    font-size: 24px;
    line-height: 32px;
  }

  .vnl-map-btn {
    padding: 10px 18px;
    font-size: 14px;
  }

  .vnl-categories {
    flex-wrap: nowrap;
    overflow-x: auto;
    -ms-overflow-style: none;
    scrollbar-width: none;
    padding-bottom: 4px;
  }

  .vnl-categories::-webkit-scrollbar {
    display: none;
  }

  .vnl-cat-btn {
    padding: 8px 16px;
    font-size: 13px;
  }

  .vnl-cat-more {
    padding: 8px 16px;
    font-size: 13px;
  }

  .vnl-filters {
    margin-bottom: 24px;
  }

  .vnl-price-dropdown {
    position: fixed;
    left: 15px;
    right: 15px;
    top: auto;
    width: auto;
    min-width: 0;
    max-width: none;
  }

  .vnl-filter-btn {
    padding: 8px 12px;
    font-size: 13px;
  }

  .vnl-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .vnl-disclaimer {
    margin-bottom: 40px;
    padding-top: 20px;
    font-size: 12px;
    line-height: 18px;
  }
}

@media screen and (max-width: 480px) {
  .vnl-title {
    font-size: 20px;
    line-height: 28px;
  }

  .vnl-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .vnl-grid {
    grid-template-columns: 1fr;
  }
}
