@import url("../base.css");

/* ── PAGE WRAPPER ────────────────────── */
.venue-page {
  width: 100%;
  max-width: 1000px;
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2rem);
}

/* ══════════════════════════════════════
       TOP BAR
    ══════════════════════════════════════ */
.venue-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--color-border-subtle);
  margin-bottom: 1.75rem;
}

.venue-topbar__title {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 700;
  color: var(--color-text-primary);
  line-height: 1.15;
}

.venue-topbar__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.venue-topbar__btn {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  padding: 0.375rem 0.75rem;
  border-radius: var(--radius-sm);
  transition:
    color var(--transition),
    background var(--transition);
}
.venue-topbar__btn:hover {
  color: var(--color-text-primary);
  background: var(--color-hover-subtle);
}
.venue-topbar__btn svg {
  width: 16px;
  height: 16px;
}

/* ══════════════════════════════════════
       SLIDER
    ══════════════════════════════════════ */
.slider {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 7;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 2rem;
  background: var(--color-bg);
}

.slider__track {
  display: flex;
  height: 100%;
  transition: transform 500ms cubic-bezier(0.4, 0, 0.2, 1);
}

.slider__slide {
  min-width: 100%;
  height: 100%;
  flex-shrink: 0;
}

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

/* Prev / Next arrows */
.slider__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: background var(--transition);
}
.slider__arrow:hover {
  background: rgba(255, 255, 255, 0.22);
}
.slider__arrow svg {
  width: 16px;
  height: 16px;
}
.slider__arrow--prev {
  left: 14px;
}
.slider__arrow--next {
  right: 14px;
}

/* Dots */
.slider__dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 10;
}

.slider__dot {
  width: 22px;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.35);
  transition:
    background var(--transition),
    width var(--transition);
}
.slider__dot.is-active {
  background: #fff;
  width: 28px;
}

/* ══════════════════════════════════════
       MAIN LAYOUT  — content | sidebar
    ══════════════════════════════════════ */
.venue-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2rem;
  align-items: start;
}

/* ══════════════════════════════════════
       LEFT — CONTENT
    ══════════════════════════════════════ */
.venue-content {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* ── Title row ───────────────────────── */
.venue-content__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.375rem;
}

.venue-content__name {
  font-size: 1.625rem;
  font-weight: 700;
  color: var(--color-text-primary);
}

.venue-content__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
  margin-top: 4px;
}

.venue-content__action {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.8125rem;
  color: var(--color-text-secondary);
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  transition:
    color var(--transition),
    background var(--transition);
}
.venue-content__action:hover {
  color: var(--color-text-primary);
  background: var(--color-hover-subtle);
}
.venue-content__action svg {
  width: 14px;
  height: 14px;
}

/* Subtitle */
.venue-content__sub {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  margin-bottom: 0.625rem;
}

/* Meta row */
.venue-content__meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.venue-meta-item {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.8125rem;
  color: var(--color-text-secondary);
}
.venue-meta-item svg {
  width: 14px;
  height: 14px;
  color: var(--color-text-muted);
}

/* Rating badge */
.rating-badge {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-text-primary);
  background: var(--color-hover-medium);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  padding: 0.25rem 0.625rem;
  .rate {
    color: rgb(248, 163, 6);
  }
}
.rating-badge svg {
  width: 13px;
  height: 13px;
  color: var(--color-primary);
}
.rating-badge span {
  color: var(--color-text-muted);
  font-weight: 400;
}

/* Description */
.venue-content__desc {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  line-height: 1.75;
  margin-bottom: 1.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Divider */
.divider {
  height: 1px;
  background: var(--color-border-subtle);
  margin-block: 1.25rem;
}

/* ── Host ────────────────────────────── */
.venue-host {
  display: flex;
  align-items: center;
  gap: 0.875rem;
}

.venue-host__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #2a2a2a;
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-text-secondary);
}

.venue-host__name {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-text-primary);
}

.venue-host__verified {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.75rem;
  color: var(--color-success);
  margin-top: 2px;
}
.venue-host__verified svg {
  width: 12px;
  height: 12px;
}

/* ── About ───────────────────────────── */
.venue-about__title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: 0.625rem;
}

.venue-about__text {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  line-height: 1.75;
}

/* ── Amenities ───────────────────────── */
.venue-amenities__title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: 0.875rem;
}

.amenities-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.625rem 1rem;
}

.amenity {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--color-text-secondary);
}
.amenity svg {
  width: 15px;
  height: 15px;
  color: var(--color-success);
  flex-shrink: 0;
}

/* ══════════════════════════════════════
       RIGHT — BOOKING FORM
    ══════════════════════════════════════ */
.booking-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  position: sticky;
  top: 1.5rem;
}

.booking-card__price {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: 1.25rem;
}

.booking-card__price span {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--color-text-muted);
  margin-left: 0.25rem;
}

/* Form */
.booking-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.form-field label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--color-text-secondary);
}

.form-field input,
.form-field textarea {
  background: var(--color-bg-input);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 0.625rem 0.875rem;
  font-size: 0.875rem;
  color: var(--color-text-primary);
  width: 100%;
  outline: none;
  transition: border-color var(--transition);
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: var(--color-text-muted);
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: rgba(212, 146, 26, 0.5);
}

.form-field textarea {
  resize: none;
  height: 68px;
}

/* Note under describe event */
.form-note {
  font-size: 0.6875rem;
  color: var(--color-text-muted);
  text-align: center;
  margin-top: -0.5rem;
}

/* Submit btn */
.booking-submit {
  width: 100%;
  padding: 0.875rem;
  background: var(--color-primary);
  color: #000;
  font-size: 0.9375rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition:
    background var(--transition),
    box-shadow var(--transition),
    transform var(--transition);
  margin-top: 0.25rem;
}
.booking-submit:hover {
  background: var(--color-primary-light);
  box-shadow: 0 6px 20px rgba(212, 146, 26, 0.3);
}
.booking-submit:active {
  transform: scale(0.98);
}

/* ══════════════════════════════════════
       VENUE MAP
    ══════════════════════════════════════ */
.venue-map-section {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border-subtle);
}

.venue-map-section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

.venue-map-section__title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-text-primary);
}

.venue-map-section__link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.venue-map-section__link:hover {
  color: var(--color-primary-light);
}

.venue-map-section__address {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  margin-bottom: 1rem;
}

.venue-map-section__map {
  width: 100%;
  height: 320px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border-subtle);
  background: var(--color-bg);
  z-index: 0;
}

/* ── RESPONSIVE ──────────────────────── */
@media (max-width: 780px) {
  .venue-layout {
    grid-template-columns: 1fr;
  }
  .booking-card {
    position: static;
  }
  .slider {
    aspect-ratio: 16 / 9;
  }
}

@media (max-width: 480px) {
  .venue-topbar {
    flex-wrap: wrap;
  }
  .venue-content__head {
    flex-wrap: wrap;
  }
  .amenities-grid {
    grid-template-columns: 1fr;
  }
}
