/* ============================================================
   Dine Page
   ============================================================ */

/* ── Hero Banner ── */

.dine-hero {
  position: relative;
  width: 100%;
  min-height: 700px;
  overflow: hidden;
  /* --dine-hero-img is overridden inline by JS per selected category.
     Defaults to the built-in desktop banner for "All" / unset categories. */
  --dine-hero-img: url("../images/dine/Desktop.png");
  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)), var(--dine-hero-img);
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Mobile hero banner */
@media (max-width: 768px) {
  .dine-hero {
    /* --dine-hero-img-mobile is overridden inline by JS per category. */
    --dine-hero-img-mobile: url("../images/dine/Mobile.jpg");
    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)), var(--dine-hero-img-mobile);
  }
}

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

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

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

.dine-hero-heading-glow {
  position: absolute;
  inset: 0;
  z-index: 0;
  color: rgba(194, 27, 181, 0.6);
  filter: blur(15px);
}

.dine-hero-heading-text {
  position: relative;
  z-index: 1;
  width: 100%;
  color: #ffffff;
}

.dine-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;
}

/* ── Dines Grid ── */

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

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

.dines-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;
}

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

/* Sidebar */

.dines-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;
}

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

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

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

/* The sub-category section is toggled via the [hidden] attribute in JS. Without
   this override, .dines-filter-section's display:flex beats the UA [hidden]
   rule (equal specificity, author wins), so the empty section stays a flex item
   and its 40px gap leaves a phantom gap at the bottom of the sidebar. */
.dines-filter-section[hidden] {
  display: none;
}

/* Search */

.dines-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;
}

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

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

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

/* Filter headings */

.dines-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 container */

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

/* Pills */

.dines-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;
}

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

/* Main content area */

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

/* Top tabs */

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

.dines-tabs[hidden] {
  display: none;
}

.dines-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;
}

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

/* Floor plan */

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

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

/* Results bar */

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

.dines-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;
}

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

.dines-sort-wrap[hidden] {
  display: none;
}

.dines-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;
}

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

/* Card grid */

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

/* Dine card */

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

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

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

.dines-card-img::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: var(--store-img);
  background-size: cover;
  background-position: center;
  transition: transform 320ms ease-out;
}

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

.dines-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%);
}

.dines-card-img--burger-king::after {
  background-image: url("../images/dine/shops/Burger King.webp");
}
.dines-card-img--kfc::after {
  background-image: url("../images/dine/shops/KFC.webp");
}
.dines-card-img--cheers::after {
  background-image: url("../images/dine/shops/Frame 105-1.webp");
}
.dines-card-img--layards::after {
  background-image: url("../images/dine/shops/Rectangle 14.webp");
}

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

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

.dines-card-floor {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 11px;
  line-height: 17px;
  color: #333333;
}

/* ── Responsive ── */

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

  .dines-sidebar {
    width: 100%;
  }

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

@media (max-width: 768px) {
  .dines-grid {
    padding: 48px 24px;
  }

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

  .dines-grid-heading {
    font-size: 26px;
    line-height: 32px;
  }

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

  .dines-sidebar {
    width: 100%;
  }

  .dines-content {
    width: 100%;
  }

  .dines-tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
  }

  .dines-tab {
    flex-shrink: 0;
  }

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

  .dines-results-bar {
    flex-wrap: wrap;
    gap: 12px;
  }

  .dines-sort-wrap {
    width: 213px;
    max-width: 100%;
  }

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

  .dines-card-img {
    height: 200px;
  }
}

@media (max-width: 480px) {
  .dines-cards {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .dines-card-img {
    height: 240px;
  }

  .dines-card-name {
    font-size: 18px;
  }
}

/* ── Hero Responsive ── */

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

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

  .dine-hero-heading {
    width: 100%;
    height: auto;
  }

  .dine-hero-heading-glow,
  .dine-hero-heading-text {
    font-size: 40px;
    line-height: 1.2;
    position: relative;
    inset: unset;
  }

  .dine-hero-heading-glow {
    position: absolute;
  }

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

/* ── Mobile Filter Toggle ── */

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

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

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

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

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

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

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

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

/* ─── Sub-category drill-down (sidebar) ─── */

.dines-subcats-section {
  border-top: 1px solid #e9eaeb;
  padding-top: 4px;
}

/* ─── Find Us On Map (Cheers Garden landing) ─── */

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

.dines-map-heading {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 32px;
  line-height: 40px;
  color: var(--color-purple);
  text-align: center;
  margin: 0 0 40px;
}

.dines-map-container {
  max-width: 980px;
  margin: 0 auto;
  border-radius: 20px;
  overflow: hidden;
}

.dines-map-body {
  position: relative;
}

.dines-map-img {
  display: block;
  width: 100%;
  height: auto;
}

@media (max-width: 768px) {
  .dines-map {
    padding: 80px 24px 0 24px;
  }

  .dines-map-heading {
    font-size: 26px;
    line-height: 32px;
    margin-bottom: 24px;
  }
}
