/* ============================================================
   Entertainment Page
   ============================================================ */

/* ── Hero Banner ── */

.ent-hero {
  position: relative;
  width: 100%;
  min-height: 700px;
  overflow: hidden;
  background-image: linear-gradient(182.76deg, rgba(0, 0, 0, 0.6) 4.53%, rgba(0, 0, 0, 0) 30.8%), linear-gradient(0deg, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.45)), url("../images/cinema/Banner.webp");
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Mobile hero banner */
@media (max-width: 768px) {
  .ent-hero {
    background-image: linear-gradient(182.76deg, rgba(0, 0, 0, 0.6) 4.53%, rgba(0, 0, 0, 0) 30.8%), linear-gradient(0deg, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.45)), url("../images/gaming/Entertainment%20Mobile.png");
  }
}

.ent-hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 768px;
  text-align: center;
}

.ent-hero-heading {
  position: relative;
  width: 1030px;
  height: 200px;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ent-hero-heading-glow,
.ent-hero-heading-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 80px;
  line-height: 100px;
  text-transform: uppercase;
  text-align: center;
}

.ent-hero-heading-glow {
  color: rgba(194, 27, 181, 0.6);
  filter: blur(15px);
}

.ent-hero-heading-text {
  color: #ffffff;
}

.ent-hero-subtitle {
  width: 768px;
  margin: 0;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 20px;
  line-height: 30px;
  color: #ffffff;
  text-align: center;
}

/* ── Entertainment Grid ── */

.ent-grid {
  background: var(--color-page-bg);
  padding: 80px 80px 0 80px;
}

.ent-grid-wrap {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.ent-grid-heading {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 32px;
  line-height: 40px;
  color: var(--color-purple);
  margin: 0;
  text-transform: capitalize;
}

.ent-grid-layout {
  display: flex;
  gap: 38px;
  align-items: flex-start;
}

/* Sidebar */

.ent-sidebar {
  width: 370px;
  flex-shrink: 0;
  /* Hug the filter content instead of stretching to the results column height,
     which would leave a large empty gap below the last pill. */
  align-self: flex-start;
}

.ent-sidebar-inner {
  background: #ffffff;
  border-radius: 16px;
  padding: 40px 24px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.ent-filter-mobile-header { display: none; }
.ent-filter-mobile-body { display: contents; }

.ent-filter-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Search */

.ent-search-label {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  height: 44px;
  background: #ffffff;
  border: 1px solid #d5d7da;
  box-shadow: 0px 1px 2px rgba(10, 13, 18, 0.05);
  border-radius: 12px;
  padding: 10px 14px;
  box-sizing: border-box;
  cursor: text;
}

.ent-search-icon {
  flex-shrink: 0;
}

.ent-search {
  flex: 1;
  border: none;
  outline: none;
  font-family: var(--font-body);
  font-size: 16px;
  color: #333333;
  background: transparent;
  appearance: none;
}

.ent-search::placeholder {
  color: #717680;
}

/* Filter heading */

.ent-filter-heading {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 24px;
  line-height: 26px;
  letter-spacing: -0.5px;
  color: #111111;
  margin: 0;
}

/* Filter pills */

.ent-filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ent-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 20px;
  height: 48px;
  border-radius: 100px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 16px;
  line-height: 20px;
  letter-spacing: -0.5px;
  cursor: pointer;
  border: 1px solid #131211;
  background: transparent;
  color: #131211;
  transition:
    background 0.2s,
    color 0.2s,
    border-color 0.2s;
  white-space: nowrap;
}

.ent-pill.ent-pill-active,
.ent-pill:hover {
  background: var(--color-purple);
  color: #ffffff;
  border-color: var(--color-purple);
}

/* Main content area */

.ent-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Floor tabs */

.ent-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ent-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 20px;
  height: 48px;
  border-radius: 100px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 16px;
  line-height: 20px;
  letter-spacing: -0.5px;
  cursor: pointer;
  border: 1px solid #131211;
  background: transparent;
  color: #131211;
  transition:
    background 0.2s,
    color 0.2s,
    border-color 0.2s;
  white-space: nowrap;
}

.ent-tab.ent-tab-active,
.ent-tab:hover {
  background: var(--color-purple);
  color: #ffffff;
  border-color: var(--color-purple);
}

/* Floor plan */

.ent-floor-plan[hidden] {
  display: none;
}

.ent-floor-plan-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
}

/* Results bar */

.ent-results-bar {
  display: flex;
  align-items: center;
  gap: 24px;
}

.ent-results-count {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 26px;
  letter-spacing: -0.5px;
  color: #000000;
  white-space: nowrap;
}

.ent-sort-wrap {
  position: relative;
  width: 213px;
  height: 44px;
  flex-shrink: 0;
}

.ent-sort {
  width: 100%;
  height: 100%;
  padding: 10px 36px 10px 14px;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 24px;
  color: #717680;
  background: #ffffff;
  border: 1px solid #d5d7da;
  box-shadow: 0px 1px 2px rgba(10, 13, 18, 0.05);
  border-radius: 8px;
  appearance: none;
  cursor: pointer;
  box-sizing: border-box;
}

.ent-sort-chevron {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

/* Card grid */

.ent-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

/* Card */

.ent-card {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.ent-card[hidden] {
  display: none;
}

.ent-card-img {
  display: block;
  width: 100%;
  height: 340px;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.ent-card-img::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-size: cover;
  background-position: center;
  transition: transform 80ms ease-out;
}

.ent-card:hover .ent-card-img::after,
.ent-card:focus-visible .ent-card-img::after {
  transform: scale(1.08);
}

.ent-card-img::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(331.19deg, rgba(87, 8, 150, 0.2) 24.33%, rgba(173, 20, 191, 0) 58.71%), linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.2) 77.9%);
}

/* Dynamic cards (hcm_place featured image supplied via --store-img). */
.ent-card-img[style*="--store-img"]::after {
  background-image: var(--store-img);
}

.ent-card-img--scope::after {
  background-image: url("../images/cinema/Image.webp");
}
.ent-card-img--kids::after {
  background-image: url("../images/kids-play-area/Image.webp");
}
.ent-card-img--avr::after {
  background-image: url("../images/gaming/shops/KFC.webp");
}
.ent-card-img--miika::after {
  background-image: url("../images/gaming/shops/Miika.webp");
}

.ent-card-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ent-card-name {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 20px;
  line-height: 22px;
  color: #131211;
}

.ent-card-floor {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 14px;
  line-height: 20px;
  color: #717680;
}

/* ── Responsive ── */

@media (max-width: 1024px) {
  .ent-grid-layout {
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
  }

  .ent-sidebar {
    width: 100%;
  }

  .ent-content {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .ent-grid {
    padding: 80px 16px 0;
  }

  .ent-grid-wrap {
    gap: 32px;
  }

  .ent-grid-heading {
    font-size: 24px;
    line-height: 32px;
    text-align: center;
  }

  .ent-grid-layout {
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
  }

  .ent-sidebar {
    width: 100%;
  }

  .ent-content {
    width: 100%;
  }

  .ent-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .ent-card-img {
    height: 500px;
  }

  .ent-tabs {
    gap: 6px;
  }

  .ent-tab {
    font-size: 14px;
    padding: 6px 14px;
    height: 40px;
  }

  /* When floor tabs are moved inside the sidebar filter on mobile they should wrap */
  .ent-sidebar-inner .ent-tabs {
    overflow-x: visible;
    flex-wrap: wrap;
    padding-bottom: 0;
  }
}

@media (max-width: 480px) {
  .ent-cards {
    grid-template-columns: 1fr;
  }
  .ent-results-bar {
    justify-content: space-between;
  }
  .ent-sort-wrap {
    width: 213px;
    max-width: 100%;
  }
}

/* ── Hero Responsive ── */

@media (max-width: 768px) {
  .ent-hero {
    height: 720px;
    min-height: 720px;
    padding: 48px 24px;
  }

  .ent-hero-content {
    width: 100%;
    gap: 12px;
  }

  .ent-hero-heading {
    width: 100%;
    height: auto;
    min-height: 18px;
  }

  .ent-hero-heading-glow,
  .ent-hero-heading-text {
    font-size: 30px;
    line-height: 1.2;
  }

  .ent-hero-subtitle {
    width: 100%;
    font-size: 16px;
    line-height: 24px;
  }
}

/* ── Mobile Filter Toggle ── */

@media (max-width: 768px) {
  .ent-sidebar-inner {
    gap: 16px;
    padding: 20px 16px;
  }

  .ent-filter-mobile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .ent-filter-mobile-label {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 24px;
    color: #111111;
  }

  .ent-filter-mobile-toggle {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #111111;
  }

  .ent-filter-mobile-toggle svg {
    transition: transform 0.25s ease;
  }

  .ent-filter-mobile-toggle[aria-expanded="false"] svg {
    transform: rotate(-90deg);
  }

  .ent-filter-mobile-body {
    display: flex;
    flex-direction: column;
    gap: 24px;
  }

  .ent-filter-mobile-body.hcm-filter-collapsed {
    display: none;
  }
}
