/* Публичная страница спортивного объекта */
html:has(.vpd-page) {
  scroll-behavior: smooth;
}

.vpd-page {
  background: #f7f8fa;
  padding: 0 0 3rem;
}

.vpd-page__inner {
  display: flex;
  flex-direction: column;
  gap: 1.875rem;
  max-width: 75rem;
}

#vpd-schedule,
#vpd-media,
#vpd-events {
  scroll-margin-top: 5.5rem;
}

.vpd-hero-shell {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
}

.vpd-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.vpd-tag {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  border-radius: 4px;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.25;
}

.vpd-tag--sport {
  background: #e6f4fc;
  color: #005d96;
}

.vpd-tag--service {
  background: #fff6e1;
  color: #ff8b00;
}

.vpd-tag--price {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem;
  background: #e8f4fc;
  color: #004170;
}

.vpd-tag--price-base {
  background: #f1f5f9;
  color: #475569;
}

.vpd-tag__price {
  font-weight: 600;
}

.vpd-tag__time {
  font-size: 0.8125rem;
  font-weight: 500;
  opacity: 0.9;
}

.vpd-pitch-prices {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin: 0.75rem 0 1rem;
  padding: 0 0.15rem;
}

.vpd-pitch-prices__group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
}

.vpd-pitch-prices__pitch {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #64748b;
  flex-shrink: 0;
}

.vpd-pitch-prices__tags {
  flex: 1;
  min-width: 0;
}

.vpd-hero {
  padding: 2rem;
}

.vpd-hero__row {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
}

.vpd-hero__preview {
  flex-shrink: 0;
  width: 14.5rem;
  height: 14.5rem;
  border-radius: 8px;
  overflow: hidden;
  background: #f0f3f5;
}

.vpd-hero__preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.vpd-hero__preview-placeholder {
  object-fit: contain;
  padding: 1.5rem;
  background: #f7f8fa;
}

.vpd-hero__main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.vpd-hero__lead {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.vpd-hero__title {
  margin: 0;
  font-size: 2rem;
  font-weight: 600;
  color: #001224;
  line-height: 1.25;
}

@media (max-width: 768px) {
  .vpd-hero__row {
    flex-direction: column;
    align-items: center;
  }

  .vpd-hero__main {
    width: 100%;
  }

  .vpd-hero__lead {
    align-items: center;
    text-align: center;
  }
}

.vpd-tags--services {
  margin-top: 0.5rem;
}

.vpd-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

@media (max-width: 900px) {
  .vpd-meta-grid {
    grid-template-columns: 1fr;
  }
}

.vpd-meta--card {
  padding: 0.75rem 1rem;
  background: #f9fafd;
  border-radius: 8px;
}

.vpd-meta__label {
  font-size: 0.875rem;
  color: #acb9c1;
  margin-bottom: 0.35rem;
}

.vpd-meta__value {
  font-weight: 500;
  font-size: 1rem;
  color: #252a2f;
  line-height: 1.5;
}

.vpd-meta__sub {
  margin-top: 0.25rem;
  color: #6c757b;
  font-size: 0.875rem;
}

.vpd-features {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  padding: 0.75rem 1.75rem 1.25rem;
  border-top: 1px solid #e4eaef;
  background: #fff;
}

@media (max-width: 900px) {
  .vpd-features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.vpd-feature {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem;
  background: #e9f5fa;
  border-radius: 8px;
}

.vpd-feature__label {
  font-size: 1rem;
  font-weight: 500;
  color: #252a2f;
}

.vpd-feature__icon {
  flex-shrink: 0;
  display: flex;
}

.vpd-section {
  background: #fff;
  border-radius: 12px;
  padding: 1.5rem 1.75rem;
}

.vpd-section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.vpd-section__title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
  color: #004170;
}

.vpd-section__title--lg {
  font-size: 2rem;
  line-height: 1.25;
}

.vpd-section--schedule {
  padding-top: 1.75rem;
}

.vpd-section__link {
  color: #037cbd;
  font-weight: 600;
  text-decoration: none;
}

.vpd-media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr));
  gap: 0.75rem;
}

.vpd-media-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
}

.vpd-media-all__thumb {
  padding: 0;
  border: none;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  background: #f0f3f5;
}

.vpd-media-all__thumb img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.vpd-media-lightbox__panel {
  position: relative;
  max-width: min(960px, 96vw);
  padding: 0;
  overflow: hidden;
}

.vpd-media-lightbox__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 2;
}

.vpd-media-lightbox__nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #005d96;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
  cursor: pointer;
  transition: background 0.15s ease, box-shadow 0.15s ease;
}

.vpd-media-lightbox__nav:hover {
  background: #fff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.16);
}

.vpd-media-lightbox__nav--prev {
  left: 0.75rem;
}

.vpd-media-lightbox__nav--next {
  right: 0.75rem;
}

.vpd-media-lightbox__nav[hidden] {
  display: none;
}

.vpd-media-lightbox__body {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  max-height: min(88vh, 720px);
  overflow: auto;
}

.vpd-media-lightbox__body img {
  max-width: 100%;
  max-height: min(80vh, 640px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 4px;
}

.vpd-media-lightbox__body--video {
  padding: 0;
  aspect-ratio: 16 / 9;
  width: min(960px, 96vw);
  max-height: none;
}

.vpd-media-lightbox__body--video iframe {
  width: 100%;
  height: 100%;
  min-height: min(54vw, 540px);
  border: 0;
  display: block;
}

.vpd-media-lightbox__caption {
  margin: 0;
  font-size: 0.875rem;
  color: #6c757b;
  text-align: center;
}

.vpd-section--media {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.vpd-media-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}

.vpd-media-head__all {
  padding: 0;
  border: none;
  background: none;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5;
  color: #037cbd;
  cursor: pointer;
  text-decoration: none;
}

.vpd-media-head__all:hover {
  text-decoration: underline;
}

.vpd-media-gallery__viewport {
  overflow: hidden;
}

.vpd-media-gallery__track {
  display: flex;
  align-items: stretch;
  gap: 1.75rem;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.vpd-media-gallery__track::-webkit-scrollbar {
  display: none;
}

.vpd-media-gallery__item {
  flex: 0 0 17.4375rem;
  width: 17.4375rem;
  height: 17.4375rem;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 8px;
  overflow: hidden;
  scroll-snap-align: start;
  position: relative;
  background: #f0f3f5;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.vpd-media-gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.vpd-media-gallery__item--video {
  position: relative;
  padding: 0;
  background: #f0f3f5;
}

.vpd-media-gallery__video-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.vpd-media-gallery__video-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.2);
  pointer-events: none;
}

.vpd-media-gallery__play {
  display: flex;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.35));
}

.vpd-media-gallery__footer {
  display: none;
  align-items: center;
  gap: 1rem;
}

.vpd-media-gallery.is-scrollable .vpd-media-gallery__footer {
  display: flex;
}

.vpd-media-gallery__progress {
  flex: 1;
  height: 4px;
  background: #e4eaef;
  border-radius: 100px;
  overflow: hidden;
}

.vpd-media-gallery__progress-fill {
  height: 100%;
  width: 16%;
  min-width: 2rem;
  background: #037cbd;
  border-radius: 100px;
  transition: width 0.2s ease;
}

.vpd-media-gallery__arrows {
  display: flex;
  align-items: center;
  gap: 0;
  flex-shrink: 0;
}

.vpd-media-gallery__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
}

.vpd-media-all {
  margin-top: 0.5rem;
}

.vpd-media-all__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr));
  gap: 0.75rem;
}

.vpd-media-all__grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
}

.vpd-media-all.is-collapsed {
  display: none;
}

.vpd-events-strip {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}

.vpd-events-strip .vpd-event-card {
  flex: 0 0 min(16rem, 75vw);
}

.vpd-event-card {
  border: 1px solid #e8edf2;
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
}

.vpd-event-card__img {
  aspect-ratio: 16 / 10;
  background: #e8edf2;
  overflow: hidden;
}

.vpd-event-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vpd-event-card__body {
  padding: 0.75rem 1rem;
}

.vpd-event-card__title {
  font-weight: 600;
  margin: 0 0 0.35rem;
}

.vpd-event-card__date {
  font-size: 0.875rem;
  color: #6b7280;
}

.vpd-calendar-wrap {
  margin-top: 0.5rem;
}

.vpd-calendar-wrap .training-cal__item--readonly,
.vpd-calendar-wrap .vpd-cal-booking-mine {
  display: block;
  width: 100%;
  padding: 0.2rem 0.35rem;
  border-radius: 4px;
  margin-bottom: 0.2rem;
  font-size: 0.7rem;
  text-align: left;
}

.vpd-calendar-wrap .training-cal__item--readonly {
  cursor: default;
  text-decoration: none;
  color: inherit;
  background: #e9f5fa;
  border: none;
}

.vpd-calendar-wrap .vpd-cal-booking-mine {
  cursor: pointer;
  color: #005d96;
  background: #dbeafe;
  border: 1px solid #93c5fd;
  font: inherit;
}

.vpd-calendar-wrap .vpd-cal-booking-mine:hover {
  background: #bfdbfe;
  border-color: #037cbd;
}

.vpd-booking-detail {
  margin: 0 0 1rem;
  padding: 0;
}

.vpd-booking-detail__row {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 0.35rem 0.75rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid #e8edf2;
}

.vpd-booking-detail__row:last-child {
  border-bottom: none;
}

.vpd-booking-detail__row dt {
  margin: 0;
  font-size: 0.82rem;
  color: #6b7280;
  font-weight: 500;
}

.vpd-booking-detail__row dd {
  margin: 0;
  font-size: 0.92rem;
  color: #111827;
}

.vpd-calendar-wrap .training-cal__item-meta {
  display: block;
  opacity: 0.85;
  font-size: 0.65rem;
}

.vpd-pitch-tabs .spd-hall-tab:not(.is-active) {
  background: #fff;
  color: #005d96;
}

.vpd-pitch-tabs .spd-hall-tab.is-active {
  background: #037cbd;
  color: #fff;
}

.vpd-cal-book-slot {
  display: block;
  width: 100%;
  margin-top: 0.25rem;
  padding: 0.15rem;
  border: 1px dashed #c5d4de;
  border-radius: 4px;
  background: #fff;
  color: #037cbd;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
}

.vpd-cal-book-slot:hover {
  background: #e9f5fa;
  border-color: #037cbd;
}

.vpd-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.25rem;
  border-radius: 4px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
}

.vpd-btn--primary {
  background: #037cbd;
  color: #fff;
}

.vpd-schedule-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.vpd-schedule-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid #e8edf2;
  font-size: 0.9rem;
}

.venue-owner-bookings-stats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr));
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.venue-owner-bookings-stats .stat-card {
  background: #f0f8fd;
  border-radius: 8px;
  padding: 1rem;
}

.venue-owner-bookings-stats .stat-card strong {
  display: block;
  font-size: 1.35rem;
  color: #004170;
}

.venue-booking-row--pending {
  background: #fffbeb;
}

.venue-booking-row--confirmed-unpaid {
  background: #fef2f2;
}

.venue-booking-status,
.venue-booking-payment {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.25;
  white-space: nowrap;
}

.venue-booking-status--pending {
  background: #fef3c7;
  color: #92400e;
}

.venue-booking-status--confirmed {
  background: #d1fae5;
  color: #065f46;
}

.venue-booking-status--cancelled {
  background: #f1f5f9;
  color: #475569;
}

.venue-booking-payment--unpaid {
  background: #fee2e2;
  color: #991b1b;
}

.venue-booking-payment--paid {
  background: #d1fae5;
  color: #065f46;
}

.venue-booking-payment--refunded {
  background: #e0e7ff;
  color: #3730a3;
}

.venue-booking-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
