/* ==============================
   HUB PAGE BASE
================================= */

.hub-page {
    padding-bottom: 0;
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 40px;
}

.hub-top-dark {
    background: #000;
    padding: 40px 0 40px;
    color: #fff;
}

.hub-inner {
    width: 100%;
    max-width: 1082px;
    margin: 0 auto;

}

.hub-breadcrumbs {
    font-size: 14px;
    opacity: 0.7;
    margin-bottom: 20px;
}

.hub-main-title {
    font-size: 34px;
    font-weight: 700;
    margin-bottom: 20px;
}

/* Breadcrumbs */

body.category:has(.hub-layout-broadway) .afisha-breadcrumbs {
    background: #000;
}

body.category:has(.hub-layout-broadway) .afisha-breadcrumbs::after {
    display: none;
}

body.category:has(.hub-layout-broadway) .afisha-breadcrumbs a {
    color: rgba(255,255,255,0.7);
}

body.category:has(.hub-layout-broadway) .afisha-breadcrumbs span {
    color: rgba(255,255,255,0.4);
}

/* =============================
   FEATURED CAROUSEL (HERO)
============================= */

.hub-featured-carousel {
    padding: 10px 0 0;
    position: relative;
    overflow: visible;
}

.seo-hidden {
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0;
}

.hub-featured-inner {

    max-width: 1082px;

    margin: 0 auto;

    position: relative;

    padding-left: 0;

    padding-right: 0;

}

.hub-featured-slider {
    display: flex;
    gap: 32px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 20px;
}

.hub-featured-slide {
    flex: 0 0 240px;
    scroll-snap-align: start;
    border-radius: 16px;
    overflow: hidden;
    transition: transform .3s ease;
}

.hub-featured-slide img {
    width: 100%;
    height: 340px;
    object-fit: cover;
    border-radius: 16px;
}

.hub-featured-slide:hover {
    transform: translateY(-6px);
}

.hub-featured-prev,

.hub-featured-next {

    position: absolute;

    top: -70px;

    width: 42px;

    height: 42px;

    border: 0;

    border-radius: 50%;

    background: #111;

    color: #fff;

    font-size: 24px;

    display: flex;

    align-items: center;

    justify-content: center;

    cursor: pointer;

    transition: background .2s ease, transform .2s ease;

}

.hub-featured-prev {
    right: 80px;        /* left arrow sits before next arrow */
    left: auto;

}

.hub-featured-next {
    right: 30px;        /* near edge */
    left: auto;

}

.hub-featured-prev:hover,

.hub-featured-next:hover {

    background: #d81f2a;

    transform: scale(1.06);

}

/* ==============================
   DYNAMIC FEATURED ROWS
================================= */

.hub-dynamic-row {
    background: #fff;
    padding: 40px 0;
}

.hub-dynamic-layout {

    display: grid;

    grid-template-columns: 220px 1fr;

    gap: 40px;

    align-items: start;

}

.hub-dynamic-left {
    flex: 0 0 auto;
    padding-top: 20px;

}

.hub-dynamic-left h2 {
    font-size: 36px;
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
}

.hub-dynamic-right {
    flex: 1;
    position: relative; /* needed for arrows */
    overflow: hidden;
}

.hub-dynamic-scroll {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
}

/* exactly 6 visible */
.hub-dynamic-card {
    flex: 0 0 calc((100% - 5 * 20px) / 6);
    min-width: 150px; /* prevents collapse if fewer items */
}

.hub-dynamic-card img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 14px;
    display: block;
}

/* ===== PRICE BADGE ===== */

.hub-dynamic-price {
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hub-price-label {
    font-size: 11px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #999;
    margin-bottom: 4px;
}

.hub-price-value {
    background: #d72631;
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    padding: 4px 10px;
    border-radius: 6px;
}

/* =============================
   HUB ROW ARROWS — SHOW STYLE
============================= */

.hub-row-prev,
.hub-row-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;

    width: 42px;
    height: 42px;

    border: 0;
    border-radius: 50%;

    background: #111;
    color: #fff;

    font-size: 24px;
    line-height: 1;

    display: flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;

    transition: background .2s ease, transform .2s ease;
}

/* Red hover exactly like show page */
.hub-row-prev:hover,
.hub-row-next:hover {
    background: #d81f2a;
    transform: translateY(-50%) scale(1.06);
}

/* Positioning */
.hub-row-prev {
    left: 8px;
}

.hub-row-next {
    right: 8px;
}

/* Hidden by default — JS controls visibility */
.hub-row-prev,
.hub-row-next {
    display: none;
}

/* ===== VIEW ALL TILE ===== */

.hub-view-all-box {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f3f3;
    border-radius: 12px;
    font-weight: 600;
}

html {
    scroll-behavior: smooth;
}

#hubMainGrid {

    scroll-margin-top: 20px;

}

/* =============================
   HIDE SCROLLBARS — ALL HUB GALLERIES
============================= */

.hub-dynamic-scroll,
.hub-featured-slider,
.af-show-related-grid {

    scrollbar-width: none;           /* Firefox */
    -ms-overflow-style: none;        /* IE/Edge */

}

.hub-dynamic-scroll::-webkit-scrollbar,
.hub-featured-slider::-webkit-scrollbar,
.af-show-related-grid::-webkit-scrollbar {
    display: none;                   /* Chrome / Safari */
}

/* ==============================
   MAIN GRID
================================= */

.hub-main-grid {
    margin: 30px 0 15px;
}

.hub-grid-wrapper {

    display: grid;

    grid-template-columns: repeat(5, 1fr);

    gap: 28px 22px;

}

.hub-grid-image img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 14px;
    display: block;
}

.hub-pagination {
    margin-top: 40px;
    text-align: center;
}

/* =============================
   HUB GRID INTRO (Under Title)
============================= */

.hub-grid-intro {
    width: 100%;
    margin: 12px 0 28px;
}

.hub-grid-intro p {
    max-width: 100%;
    font-size: 15px;
    line-height: 1.7;
    color: #555;
    margin: 0 0 12px;
}

/* =============================

   MAIN GRID CARDS

============================= */

.hub-grid-card {

    background: #fff;

    transition: transform .25s ease, box-shadow .25s ease;

}

.hub-grid-image {

    overflow: hidden;

}

.hub-grid-image img {

    width: 100%;

    aspect-ratio: 2 / 3;

    object-fit: cover;

    transition: transform .45s ease;

}

.hub-grid-title {

    margin: 14px 0 0;

    font-family: Georgia, "Times New Roman", serif;

    font-size: 18px;

    line-height: 1.2;

    font-weight: 700;

    color: #111;

}

.hub-grid-card:hover {

    transform: translateY(-4px);

}

.hub-grid-card:hover img {

    transform: scale(1.06);

}

/* =============================

   MAIN GRID HEADER

============================= */

.hub-section-header {

    margin-bottom: 24px;

}

.hub-section-title {

    margin: 0;

    font-family: Georgia, "Times New Roman", serif;

    font-size: 32px;

    line-height: 1.15;

    font-weight: 800;

    color: #111;

    position: relative;

}

.hub-section-title::after {

    content: "";

    display: block;

    width: 42px;

    height: 2px;

    margin-top: 10px;

    background: #d81f2a;

}

.hub-section-header h2 {

    font-family: var(--font-display);

    font-size: 32px;

    font-weight: 600;

    position: relative;

    display: inline-block;

    margin: 0;

}

.hub-section-header h2::after {

    content: "";

    display: block;

    width: 48px;

    height: 3px;

    background: #d21f2b;

    margin-top: 10px;

}

/* =============================
   HUB FILTERS — EDITORIAL REFINED
============================= */

.hub-filters-wrap {
    margin: 22px 0 36px;
}

.hub-desktop-filters {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  margin: 24px 0 36px;

}

.hub-filter-group {
  flex: 0 0 auto;         /* prevent weird flex stretching */
  min-width: 120px;       /* consistent width */

}

.hub-desktop-filters .hub-filter-group select {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: #555;
  background: transparent;
  border: none;
  border-bottom: 1px solid #ccc;
  padding: 6px 22px 6px 0;
  appearance: none;
}

/* Select */
.hub-filters-wrap select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;

    background: transparent;
    border: none;

    font-size: 15px;              /* was 13px */
    line-height: 1.6;             /* slightly taller */
    text-transform: uppercase;
    letter-spacing: .05em;

    color: #444;                  /* darker for better contrast */
    font-weight: 600;

    padding: 8px 24px 8px 0;      /* taller */
    cursor: pointer;

    border-bottom: 2px solid rgba(0,0,0,.18); /* thicker line */
    transition: color .2s ease, border-color .2s ease;
}

/* Hover */
.hub-filters-wrap select:hover {
    color: var(--color-accent-red);
    border-bottom-color: var(--color-accent-red);
}

/* Focus */
.hub-filters-wrap select:focus {
    outline: none;
    color: var(--color-accent-red);
    border-bottom-color: var(--color-accent-red);
}

/* Custom arrow (adjusted for larger size) */
.hub-filters-wrap select {
    background-image:
        linear-gradient(45deg, transparent 50%, #888 50%),
        linear-gradient(135deg, #888 50%, transparent 50%);
    background-position:
        calc(100% - 12px) 14px,
        calc(100% - 6px) 14px;
    background-size: 6px 6px;
    background-repeat: no-repeat;
}

.hub-filter-reset {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    background: var(--color-accent-red);
    color: #fff;

    border: none;
    border-radius: 6px;

    padding: 8px 16px;

    font-size: 12px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;

    cursor: pointer;
    transition: background .2s ease, transform .15s ease, box-shadow .2s ease;
}

.hub-filter-reset:hover {
    background: #b91c2b; /* slightly darker red */
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0,0,0,.08);
}

/* Active filter only when non-default option selected */
.hub-filters-wrap select:has(option:checked:not([value=""])) {
    color: var(--color-accent-red);
    border-bottom-color: var(--color-accent-red);
}

/* ==============================
   HUB LATEST NEWS — SIMPLE GRID
================================= */

.hub-latest-news {
    padding: 6px 0 18px;
}

.hub-latest-news__inner {
    max-width: 1082px;
    margin: 0 auto;
}

.hub-latest-news__header {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 26px;
}

.hub-latest-news__title {
    margin: 0;
    font-family: "Tinos", Georgia, serif;
    font-size: 28px;
    font-weight: 700;
    color: #111;
    white-space: nowrap;
}

.hub-latest-news__header::after {
    content: "";
    flex: 1 1 auto;
    height: 1px;
    background: #1a1a1a;
    opacity: .22;
}

.hub-news-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
}

.hub-news-card img {

    width: 100%;

    height: 148px;   /* match homepage */

    object-fit: cover;

    display: block;

    margin-bottom: 12px;

}

.hub-news-card__category {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-weight: 700;
    color: var(--color-accent-red);
    margin-bottom: 6px;
}

.hub-news-card__title {
    font-family: "Tinos", Georgia, serif;
    font-size: 17px;
    line-height: 1.2;
    font-weight: 700;
    margin: 0 0 6px;
}

.hub-news-card__title a {
    color: #111;
    text-decoration: none;
}

.hub-news-card__title a:hover {
    color: var(--color-accent-red);
}

.hub-news-card__readmore {
    margin-top: 8px;
}

.hub-news-card__readmore a {
    font-size: 11px;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #999;
    text-decoration: none;
}

.hub-news-card__readmore a:hover {
    color: var(--color-accent-red);
}

.hub-news-card__excerpt {

    font-size: 13px;

    line-height: 1.58;

    color: #555;

    display: -webkit-box;

    -webkit-line-clamp: 4;

    -webkit-box-orient: vertical;

    overflow: hidden;

}

@media (max-width: 991px) {
    .hub-news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .hub-news-grid {
        grid-template-columns: 1fr;
    }
}

/* =============================
   HUB GUIDE ACCORDION
============================= */

.hub-guide-section {
    padding: 40px 0 20px;
}

.hub-guide-inner {
    max-width: 1082px;
    margin: 0 auto;
}

.hub-guide-accordion {
    max-width: 900px;
    margin: 0 auto;
}

.hub-guide-item:last-child {
    border-bottom: none;
}

.hub-guide-item {
    border-bottom: 1px solid rgba(0,0,0,.06);
}

.hub-guide-question {
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    padding: 18px 0;
    font-family: "Tinos", Georgia, serif;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hub-guide-question:hover {
    color: var(--color-accent-red);
}

/* Chevron Arrow (same logic as filters) */

.hub-guide-icon {

    width: 10px;

    height: 10px;

    border-right: 2px solid #111;

    border-bottom: 2px solid #111;

    transform: rotate(45deg);

    transition: transform .3s ease;

}

/* Rotate when open */

.hub-guide-item.active .hub-guide-icon {

    transform: rotate(225deg);

}

.hub-guide-answer {
    height: 0;
    overflow: hidden;
    transition: height .35s ease;
    font-size: 15px;
    line-height: 1.7;
    color: #444;
}

.hub-guide-item.active .hub-guide-answer {
    /* height controlled by JS */
}

.hub-guide-answer-inner {
    padding-bottom: 18px;
}

/* Inherit global editorial link style inside accordion */
.hub-guide-answer a {
  color:#111;
  text-decoration:underline;
  text-underline-offset:3px;
  text-decoration-color:rgba(17,17,17,.35);
}

.hub-guide-answer a:hover {
  color:var(--color-accent-red);
  text-decoration-color:var(--color-accent-red);
}

/* =============================
   HUB BOTTOM SEO CONTENT
============================= */

.hub-bottom-seo {
    padding: 30px 0 40px;
}

.hub-bottom-seo__inner {
    max-width: 900px;
    margin: 0 auto;
}

.hub-bottom-seo__text {
    font-size: 16px;
    line-height: 1.85;
    color: #444;
}

.hub-bottom-seo__text p {
    margin-bottom: 16px;
}

/* Use global editorial link style */
.hub-bottom-seo__text a {
    color:#111;
    text-decoration:underline;
    text-underline-offset:3px;
    text-decoration-color:rgba(17,17,17,.35);
}

.hub-bottom-seo__text a:hover {
    color:var(--color-accent-red);
    text-decoration-color:var(--color-accent-red);
}

.hub-bottom-seo__text p:last-child {
    margin-bottom: 0;
}

/* =========================================
   MOBILE RESPONSIVE LAYER — CLEAN FINAL
========================================= */

@media (max-width: 991px) {

  /* ----------------------------------
     GLOBAL CONTAINERS
  ---------------------------------- */

  .container,
  .hub-inner,
  .hub-featured-inner,
  .hub-latest-news__inner,
  .hub-guide-inner,
  .hub-bottom-seo__inner {
    padding: 0 16px;
  }

  /* ----------------------------------
     HERO
  ---------------------------------- */

  .hub-main-title {
    font-size: 26px;
    margin-bottom: 18px;
  }

  .hub-featured-prev,
  .hub-featured-next {
    display: none !important;
  }

  .hub-featured-slide {
    flex: 0 0 72%;
  }

  .hub-featured-slide img {
    height: auto;
    aspect-ratio: 2 / 3;
  }

  /* ----------------------------------
     TYPE ROWS
  ---------------------------------- */

  .hub-dynamic-layout {
    display: block;
  }

  .hub-dynamic-left {
    padding-top: 0;
    margin-bottom: 16px;
  }

  .hub-dynamic-left h2 {
    font-size: 22px;
  }

  .hub-row-prev,
  .hub-row-next {
    display: none !important;
  }

  .hub-dynamic-card {
    flex: 0 0 140px;
  }

  /* ----------------------------------
     MAIN GRID
  ---------------------------------- */

  .hub-grid-wrapper {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px 14px;
  }

  .hub-grid-title {
    font-size: 15px;
  }

  .hub-price-value {
    font-size: 12px;
    padding: 4px 8px;
  }

  /* ==================================
     FILTER SYSTEM — MOBILE ONLY
  ================================== */

  /* Hide desktop inline filters */
  .hub-desktop-filters {
    display: none;
  }

  /* Show mobile bubbles */
  .hub-mobile-bubbles {
    display: block;
  }

  /* Mobile Fixed Filter Button */

.hub-mobile-filter-trigger {
  position: relative;
}

.hub-mobile-filter-trigger.is-fixed {
  position: fixed;
  top: 110px; /* match header height */
  left: 0;
  right: 0;

  padding: 10px 16px;

  background: #fff;

  z-index: 1500;

  box-shadow: 0 6px 18px rgba(0,0,0,.08);
}

/* Spacer to prevent layout jump */
body.filter-fixed-active {
  margin-top: 70px; /* approximate height of filter button */
}

  .hub-mobile-filter-trigger button {
    width: 100%;
    background: #111;
    color: #fff;
    border: none;
    padding: 14px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
  }

  /* Bottom Sheet Modal */

  .hub-filter-modal {
    position: fixed;
    left: 0;
    bottom: -100%;
    width: 100%;
    background: #fff;
    z-index: 9999;
    transition: bottom .3s ease;
    border-radius: 18px 18px 0 0;
    box-shadow: 0 -10px 40px rgba(0,0,0,.25);
  }

  .hub-filter-modal.active {
    bottom: 0;
  }

  .hub-filter-modal-inner {
    padding: 22px 18px 28px;
  }

  .hub-filter-header {
    position: relative;
    margin-bottom: 20px;
    text-align: center;
  }

  .hub-filter-header::before {
    content: "";
    width: 36px;
    height: 4px;
    background: #ddd;
    border-radius: 4px;
    display: block;
    margin: 0 auto 14px;
  }

  .hub-filter-header button {
    position: absolute;
    right: 0;
    top: 0;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
  }

  /* =============================
     BUBBLE SYSTEM
  ============================= */

  .hub-bubble-group {
    margin-bottom: 24px;
  }

  .hub-bubble-group h4 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 12px;
  }

  .hub-bubbles {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }

  .hub-bubble {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 20px;
    border: 1px solid #ddd;
    background: #f7f7f7;
    font-size: 13px;
    text-decoration: none;
    color: #111;
    transition: all .2s ease;
  }

  .hub-bubble:hover {
    border-color: var(--color-accent-red);
    color: var(--color-accent-red);
  }

  .hub-bubble.active {
    background: var(--color-accent-red);
    color: #fff;
    border-color: var(--color-accent-red);
  }

  /* Reset Button */

  .hub-reset-mobile {
    display: block;
    margin-top: 12px;
    text-align: center;
    padding: 10px;
    border-radius: 10px;
    background: #eee;
    text-decoration: none;
    color: #111;
    font-weight: 600;
  }


  /* ----------------------------------
     NEWS
  ---------------------------------- */

  .hub-news-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }

  .hub-news-card img {
    height: 120px;
  }

  .hub-news-card__title {
    font-size: 15px;
  }

  .hub-news-card__excerpt {
    -webkit-line-clamp: 2;
    font-size: 13px;
  }

  /* ----------------------------------
     FAQ
  ---------------------------------- */

  .hub-guide-accordion {
    max-width: 100%;
  }

  .hub-guide-question {
    font-size: 16px;
    padding: 14px 0;
  }

  .hub-guide-answer {
    font-size: 14px;
  }

  /* ----------------------------------
     SEO TEXT
  ---------------------------------- */

  .hub-bottom-seo__text {
    font-size: 14px;
    line-height: 1.7;
  }
}

/* =========================================
   DESKTOP FILTER RULES
========================================= */

@media (min-width: 992px) {

  .hub-mobile-filter-trigger {
    display: none;
  }

  .hub-filter-modal {
    display: none !important;
  }

  .hub-mobile-bubbles {
    display: none;
  }

}
