

:root {
  --hub-bg: #0f1419;
  --hub-bg-2: #1a2330;
  --hub-surface: #f4f1ea;
  --hub-ink: #14202b;
  --hub-muted: #5c6b7a;
  --hub-accent: #c45c26;
  --hub-accent-2: #2a6f6b;
  --hub-line: rgba(20, 32, 43, 0.12);
  --hub-max: 1280px;
}

body.hub-page {
  margin: 0;
  font-family: "Source Serif 4", "Iowan Old Style", Georgia, serif;
  background: var(--hub-surface);
  color: var(--hub-ink);
  min-height: 100%;
}

body.hub-page .local-banner {
  background: var(--hub-bg);
  color: #b8c4ce;
  text-align: center;
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  padding: 0.4rem;
}

.hub-header {
  background: #fff;
  border: 1px solid #c8c8c8;
  border-left: none;
  border-right: none;
  position: sticky;
  top: 0;
  z-index: 100;
  overflow: visible;
}

.hub-header-inner {
  max-width: min(1280px, 100%);
  margin: 0 auto;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  overflow: visible;
}

.hub-header-top {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 0.4rem 1rem 0.35rem;

  min-height: 5.75rem;
  width: 100%;
  box-sizing: border-box;
  position: relative;
  z-index: 4;
}

/* 801–900: site-desk-header kezeli a logót (ne balra/apróra) */

.hub-logo:hover {
  color: #000;
}

.bymy-logo-img {
  display: block;
  height: 36px;
  width: auto;
  max-width: min(150px, 28vw);
  object-fit: contain;
}

.bymy-logo-img--nav {
  height: clamp(24px, 6.5vw, 34px);
  max-width: min(110px, 35vw);
  width: auto;
  object-fit: contain;
}

.bymy-logo-img--hero {
  height: clamp(52px, 10vw, 78px);
  max-width: min(280px, 70vw);
}

.hub-home-logo {
  margin: 0 0 1rem;
  text-align: center;
}

.bymy-logo-img--home {
  height: clamp(64px, 12vw, 96px);
  max-width: min(320px, 70vw);
  margin: 0 auto;
}

@media (min-width: 801px) and (max-width: 900px) {
  .hub-nav-band {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.75rem;

  height: 3.35rem;
  min-height: 3.35rem;
  max-height: 3.35rem;
  padding: 0.15rem 1rem;
  padding-left: min(14rem, 42vw);
  border-top: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
  box-sizing: border-box;
  width: 100%;
  overflow: visible;
}

.hub-nav {
  display: flex;
  flex-wrap: nowrap;
  gap: 1.35rem;
  align-items: center;
  justify-content: center;
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  margin: 0;
  padding: 0.2rem 0;
  border: 0;
  overflow-x: auto;
  scrollbar-width: none;
  pointer-events: none;
}
}

.hub-nav::-webkit-scrollbar {
  display: none;
}

.hub-nav .hub-nav-link {
  pointer-events: auto;
}

.hub-nav-link {
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 1.07rem;
  font-weight: 700;
  color: #111;
  text-decoration: none;
  padding: 0.7rem 0.1rem 0.65rem;
  border-radius: 0;
  background: transparent;
  opacity: 1;
  white-space: nowrap;
  line-height: 1.2;
  border-bottom: 3px solid transparent;
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
}

.hub-nav-link:hover {
  color: #111;
  background: transparent;
  text-decoration: none;
}

.hub-nav-link.active {
  color: #f0c52c;
  font-weight: 700;
  background: transparent;
  text-decoration: none;
  border-bottom-color: #f0c52c;
}

.hub-nav-link .nav-count {
  font-size: 0.94rem;
  font-weight: 500;
  color: #9ca3af;
}

.hub-nav-link.active .nav-count {
  color: #f0c52c;
}

.hub-nav--tools .hub-nav-link {
  font-weight: 500;
  font-size: 0.8rem;
}

.hub-header-actions {
  margin-left: auto;
  display: flex;
  flex-wrap: nowrap;
  flex-direction: row;
  gap: 0.65rem;
  align-items: center;
  flex: 0 0 auto;
}

.hub-header .site-header-actions,
.hub-header-actions.site-header-actions {
  flex-direction: row !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
}

.hub-header .site-header-auth-row {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.4rem;
}

.hub-header .site-header-auth-row[hidden],
.hub-header .site-header-avatar-wrap[hidden],
.hub-header [data-auth-guest][hidden],
.hub-header [data-auth-member][hidden] {
  display: none !important;
}

.hub-header-msg {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: Inter, system-ui, sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  color: #333;
  text-decoration: none;
  white-space: nowrap;
  line-height: 1;
}

.hub-header-msg:hover {
  color: #111;
  text-decoration: none;
}

.hub-header-msg svg {
  flex: 0 0 auto;
  color: #555;
}

.hub-btn {
  font-family: Inter, system-ui, sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
  padding: 0.4rem 0.75rem;
  border: 1px solid #c8c8c8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 2.2rem;
  box-sizing: border-box;
  white-space: nowrap;
  line-height: 1;
}

.hub-btn--ghost {
  color: #111;
  border-color: #c8c8c8;
  background: #fff;
}

.hub-btn--ghost:hover {
  border-color: #999;
}

.hub-btn--primary {
  color: #111;
  background: #f0c52c;
  border-color: #f0c52c;
  font-weight: 700;
}

.hub-btn--primary:hover {
  filter: brightness(1.04);
  background: #e8bb20;
  border-color: #e8bb20;
  color: #111;
}

.hub-btn--post {
  color: #000;
  background: #f0c52c;
  border-color: #f0c52c;
  border-radius: 16px;
  font-weight: 700;
  padding: 0.5rem 1.05rem;
  height: auto;
  min-height: 2.35rem;
}

.hub-btn--post:hover {
  filter: brightness(1.04);
  background: #e8bb20;
  border-color: #e8bb20;
  color: #000;
  text-decoration: none;
}

.hub-theme-toggle {
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 999px;
  border: 1px solid #c8c8c8;
  background: linear-gradient(90deg, #fff 50%, #4b5563 50%);
  cursor: pointer;
  padding: 0;
  flex: 0 0 auto;
  box-sizing: border-box;
}

.hub-theme-toggle:hover {
  border-color: #999;
}

.hub-theme-toggle:focus-visible {
  outline: 2px solid #e3a861;
  outline-offset: 2px;
}

.hub-header .site-header-profile {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 0;
  background: transparent;
  padding: 0.1rem 0.15rem;
  cursor: pointer;
  font-family: "DM Sans", system-ui, sans-serif;
  color: #333;
}

.hub-header .site-header-profile:hover {
  color: #111;
}

.hub-header .site-header-firstname {
  font-size: 0.92rem;
  font-weight: 700;
  max-width: 8rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hub-header .site-header-caret {
  flex: 0 0 auto;
  opacity: 0.7;
}

.hub-header .site-header-avatar {
  width: 2.2rem;
  height: 2.2rem;
  margin-left: 0;
  border: 1px solid #c8c8c8;
  box-shadow: none;
  border-radius: 999px;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #dbeafe;
  font-size: 0.85rem;
  font-weight: 700;
  color: #1e3a5f;
  position: relative;
}

.hub-header .site-header-avatar-wrap {
  display: inline-flex;
  align-items: center;
}

.hub-header .site-header-profile .site-header-avatar {
  pointer-events: none;
}

.hub-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(196, 92, 38, 0.35), transparent 55%),
    radial-gradient(900px 420px at 90% 0%, rgba(42, 111, 107, 0.4), transparent 50%),
    linear-gradient(160deg, var(--hub-bg) 0%, var(--hub-bg-2) 100%);
  color: #f7f3ec;
  padding: 3.5rem 1.25rem 3.25rem;
}

.hub-hero--empty {
  background: #fff;
  color: inherit;
  padding: 0;
  min-height: 7.5rem;
  border: 1px solid #c8c8c8;
}

.hub-hero-inner {
  max-width: var(--hub-max);
  margin: 0 auto;
}

.hub-brand {
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: clamp(2.8rem, 7vw, 4.6rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  margin: 0 0 0.65rem;
  line-height: 0.95;
}

.hub-lead {
  margin: 0;
  max-width: 34rem;
  font-size: 1.15rem;
  line-height: 1.45;
  color: rgba(247, 243, 236, 0.82);
}

.hub-main {
  max-width: var(--hub-max);
  margin: -2.5rem auto 0;
  padding: 0 1.25rem 3.5rem;
  position: relative;
  z-index: 1;
}

body.hub-page:has(.hub-hero--empty) .hub-main {
  margin-top: 1.5rem;
}

.hub-verticals {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  align-items: stretch;
  /* Folyamatos szélesség: 800px-en a mobil 86%-ot adja, 1200px-től a megszokott 70% */
  width: min(868px, max(70%, calc(37.9vw + 357px)));
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

.hub-promo {
  --promo-accent: #c45c26;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: minmax(8.4rem, 0.9fr) minmax(0, 1.35fr);
  grid-template-rows: 1fr;
  align-items: stretch;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
  text-decoration: none;
  color: #111;
  background: #fff;
  border: 1px solid #d4d4d4;
  border-radius: 11px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.hub-promo[data-promo="auto"] {
  --promo-accent: #e31c23;
}

.hub-verticals:has(.hub-promo--banner),
.hub-verticals--banner {
  grid-template-columns: minmax(0, 1fr);
  /* Banner: feed szélesség (1120), alacsony 1024/180 arány */
  width: min(1120px, 100%);
  max-width: 100%;
}

.hub-promo.hub-promo--banner {
  display: block;
  /* Natúr arány: a teljes feltöltött banner látszik, a magasság a képhez igazodik. */
  aspect-ratio: auto;
  grid-template-columns: none;
  border: 0;
  border-radius: 16px;
  background: transparent;
  box-shadow: none;
  overflow: hidden;
}

.hub-promo.hub-promo--banner:hover {
  border-color: transparent;
  box-shadow: none;
}

.hub-promo.hub-promo--banner img {
  display: block;
  width: 100%;
  /* Teljes kép, natúr arányban — nincs levágás. */
  height: auto;
  border-radius: 16px;
}

.hub-promo--fullimg {
  display: block;
  position: relative;
  padding: 0;
  background: #fff;
}

.hub-promo--nolink {
  cursor: default;
}

.hub-promo--fullimg .hub-promo__full {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 0;
  transform: none;
}

.hub-promo:hover {
  border-color: #bdbdbd;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.09);
}

.hub-promo__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0;
  padding: clamp(0.6rem, 1.55vw, 0.95rem) clamp(0.6rem, 1.4vw, 0.88rem);
  min-width: 0;
  background: #fff;
}

.hub-promo__kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  margin: 0 0 0.35rem;
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 0.48rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #333;
}

.hub-promo__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 0.91rem;
  height: 0.91rem;
  border-radius: 0.21rem;
  background: var(--promo-accent);
  flex: 0 0 auto;
}

.hub-promo__title {
  display: flex;
  flex-direction: column;
  margin: 0 0 0.28rem;
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: clamp(0.77rem, 1.5vw, 1.09rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.12;
  color: #111;
}

.hub-promo__accent {
  color: var(--promo-accent);
}

.hub-promo__text {
  margin: 0;
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: clamp(0.55rem, 0.8vw, 0.63rem);
  line-height: 1.35;
  color: #6b7280;
}

.hub-promo__cta {
  margin-top: 0.63rem;
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 0.6rem;
  font-weight: 700;
  color: var(--promo-accent);
  text-decoration: underline;
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}

.hub-promo__media {
  position: relative;
  min-width: 0;
  min-height: 0;
  height: 100%;
  align-self: stretch;
  overflow: hidden;
  background: #e8e8e8;
}

.hub-promo__media img {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover !important;
  object-position: center center;
}

.hub-promo__media::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: min(42%, 7.5rem);
  z-index: 1;
  background: linear-gradient(90deg, #fff 0%, rgba(255, 255, 255, 0) 100%);
  pointer-events: none;
}

.hub-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 220px;
  padding: 1.5rem 1.4rem;
  border-radius: 18px;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border: 1px solid #c8c8c8;
  box-shadow: none;
  transition: border-color 0.2s ease;
}

.hub-card:hover {
  transform: none;
  box-shadow: none;
  border-color: #999;
}

.hub-card-kicker {
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--hub-muted);
  margin: 0 0 0.55rem;
}

.hub-card-title {
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 0.45rem;
  color: var(--hub-ink);
}

.hub-card-text {
  margin: 0;
  color: var(--hub-muted);
  font-size: 1rem;
  line-height: 1.4;
}

.hub-card-cta {
  margin-top: 1.4rem;
  font-family: "DM Sans", system-ui, sans-serif;
  font-weight: 700;
  font-size: 0.92rem;
  color: #333;
}

.hub-card--ingatlan .hub-card-cta {
  color: #333;
}

.hub-more {
  margin-top: 2.25rem;
}

.hub-more h2 {
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 1rem;
  margin: 0 0 0.75rem;
  color: var(--hub-muted);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hub-more-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.hub-more a {
  font-family: "DM Sans", system-ui, sans-serif;
  text-decoration: none;
  color: var(--hub-ink);
  background: #fff;
  border: 1px solid var(--hub-line);
  border-radius: 12px;
  padding: 0.9rem 1rem;
  font-weight: 650;
  font-size: 0.9rem;
}

.hub-more a:hover {
  border-color: var(--hub-ink);
}

.hub-more a span {
  display: block;
  margin-top: 0.2rem;
  font-weight: 500;
  font-size: 0.78rem;
  color: var(--hub-muted);
}

@media (max-width: 800px) {
  .hub-verticals,
  .hub-more-grid {
    grid-template-columns: 1fr;
  }

  .hub-verticals {
    width: 86%;
    max-width: 86%;
    margin-left: auto;
    margin-right: auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .hub-promo {
    aspect-ratio: 16 / 9;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.2fr);
  }

  .hub-promo__media {
    background: #fff;
  }

  .hub-promo__media::before {
    display: none;
  }

  .hub-promo__media img,
  .hub-promo--fullimg .hub-promo__full {
    transform: none !important;
    object-fit: contain !important;
    object-position: center center !important;
  }

  .hub-intro {
    padding: 0.5rem 0 0.35rem;
  }

  .hub-home-logo {
    display: none;
  }

  .hub-nav {
    gap: 0.55rem;
  }

  .hub-header {
    overflow-x: clip;
  }

  .hub-header-inner {
    gap: 0;
    padding: 0;
    max-width: 100%;
    display: grid;
    grid-template-areas:
      "logo"
      "actions"
      "nav";
  }

  .hub-header-top {
    grid-area: actions;
    padding: 0.3rem 0.65rem 0.25rem;
    min-height: 2.75rem;
  }

  .hub-nav-band {
    display: contents;
  }

  .hub-logo {
    grid-area: logo;
    position: relative;
    left: auto;
    bottom: auto;
    justify-self: center;
    max-width: none;
    padding: 0.45rem 3.25rem 0.15rem;
  }

  .bymy-logo-img--nav {
    height: clamp(24px, 6.5vw, 34px);
    max-width: min(110px, 35vw);
    width: auto;
  }

  .hub-nav {
    grid-area: nav;
    position: static;
    left: auto;
    right: auto;
    top: auto;
    bottom: auto;
    height: 2.85rem;
    padding: 0.15rem 0.55rem;
    justify-content: flex-start;
    pointer-events: auto;
    border-top: 1px solid #e5e7eb;
  }

  .bymy-logo-img--home {
    height: clamp(48px, 16vw, 72px);
    max-width: min(240px, 70vw);
  }

  .hub-nav {
    position: static;
    left: auto;
    right: auto;
    top: auto;
    bottom: auto;
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
    gap: 0.75rem;
    padding: 0 0.35rem 0 0;
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    pointer-events: auto;
  }

  .hub-nav-link {
    font-size: 0.92rem;
    padding: 0.5rem 0.05rem 0.45rem;
    flex: 0 0 auto;
  }

  .hub-btn {
    font-size: 0.75rem;
    padding: 0.32rem 0.5rem;
    height: 1.9rem;
  }

  .hub-btn--post {
    min-height: 1.95rem;
    border-radius: 12px;
    padding: 0.32rem 0.55rem;
  }

  .hub-header-msg span {
    display: none;
  }

  .hub-header .site-header-firstname {
    max-width: 4.5rem;
    font-size: 0.8rem;
  }

  .hub-header .site-header-avatar {
    width: 1.85rem;
    height: 1.85rem;
  }

  .hub-header-actions,
  .hub-header-actions.site-header-actions {
    gap: 0.35rem;
    max-width: 100%;
  }

  .hf-head,
  .hf-rail,
  .hub-verticals {
    padding-left: 16px;
    padding-right: 16px;
  }
}

@media (max-width: 480px) {
  .hub-header-top {
    min-height: 2.5rem;
    padding: 0.25rem 0.5rem 0.2rem;
  }

  .bymy-logo-img--nav {
    height: 52px;
    max-width: min(70vw, 12rem);
  }

  .hub-header-actions a[data-auth-register] {
    display: none !important;
  }

  .hub-btn--post {
    font-size: 0.72rem;
    padding: 0.3rem 0.45rem;
  }
}

body.hub-page--feed {
  background: #fff;
  font-family: "DM Sans", system-ui, sans-serif;
  color: #111;
}

.hub-feed {
  max-width: 1120px;
  margin: 0 auto;
  padding: 1.25rem 0 3rem;
}

.hf-section {
  margin: 0 0 3.5rem;
  padding: 0;
}

/* Keresés a térképen — térképes sáv (demó design) */
.hub-map-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  margin: 0;
  padding: 12px 14px;
  min-height: 88px;
  border-radius: 14px;
  border: 2px solid #f0c52c;
  text-decoration: none;
  color: inherit;
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0.05) 40%, transparent 70%),
    url("/images/hub-map-strip-bg.jpg") center / cover no-repeat;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
}

.hub-map-strip:hover {
  border-color: #e0b420;
  filter: brightness(1.01);
}

.hub-map-strip__card {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  max-width: min(78%, 420px);
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(210, 208, 204, 0.9);
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.1);
}

.hub-map-strip__icon {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #e5e7eb;
  display: grid;
  place-items: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.hub-map-strip__pin-svg {
  display: block;
}

.hub-map-strip__copy {
  flex: 1;
  min-width: 0;
}

.hub-map-strip__copy strong {
  display: block;
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #111;
  line-height: 1.2;
}

.hub-map-strip__copy span {
  display: block;
  margin-top: 3px;
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  color: #334;
  line-height: 1.25;
}

.hub-map-strip__cta {
  flex: 0 0 auto;
  background: linear-gradient(180deg, #f6d24a 0%, #f0c52c 55%, #e8b71a 100%);
  border: 1px solid #e0b420;
  border-radius: 12px;
  padding: 0.7rem 1.05rem;
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 0.88rem;
  font-weight: 800;
  color: #111;
  box-shadow: 0 3px 0 #c9a012, 0 6px 14px rgba(15, 23, 42, 0.14);
}

/* Szekció = maga a C kártya (ne legyen dupla bézs sáv keret) */
@media (min-width: 801px) {
  body.hub-page--feed .hf-section--map-strip {
    background: transparent;
    border: 0;
    border-radius: 0;
    padding: 0 1.25rem;
    margin: 0 0 2.5rem;
  }
}

@media (max-width: 800px) {
  body.hub-page--feed .hf-section--map-strip {
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    padding: 0 var(--hf-gutter, 16px) !important;
    margin: 0 0 28px !important;
  }
}

.hf-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 1.25rem;
  margin-bottom: 0.75rem;
}

.hf-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #111;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.hf-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.6rem;
  padding: 0.12rem 0.48rem;
  border-radius: 999px;
  background: #0d9488;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.2;
}

.hf-all {
  font-size: 0.9rem;
  font-weight: 600;
  color: #111;
  text-decoration: none;
  white-space: nowrap;
}

.hf-all:hover {
  text-decoration: underline;
}

.hf-rail {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0 1.25rem 0.35rem;
  scroll-snap-type: none;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  -ms-overflow-style: none;
  cursor: grab;
  touch-action: pan-x pan-y;
}

body.hub-page--feed .hf-rail {
  scroll-snap-type: none;
  scroll-padding: 0;
}

body.hub-page--feed .hf-card {
  scroll-snap-align: none;
}

.hf-rail::-webkit-scrollbar {
  width: 0;
  height: 0;
  background: transparent;
}

.hf-rail.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
  user-select: none;
}

.hf-rail.is-dragging a {
  pointer-events: none;
}

.hf-section--pager {
  position: relative;
}

/* Lapozó nyilak: asztalon és mobilon is. */
@media (min-width: 0px) {
  .hf-rail-nav {
    position: absolute;
    z-index: 4;
    top: var(--hf-pager-y, 46%);
    transform: translateY(-50%);
    display: grid;
    place-items: center;
    width: 36px;
    height: 54px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.62);
    color: #3c4454;
    box-shadow: 0 1px 5px rgba(15, 23, 42, 0.16);
    cursor: pointer;
    backdrop-filter: blur(2px);
  }

  .hf-rail-nav[hidden] {
    display: none !important;
  }

  .hf-rail-nav:hover {
    background: rgba(255, 255, 255, 0.86);
  }

  .hf-rail-nav--prev {
    left: 1.15rem;
  }

  .hf-rail-nav--next {
    right: 1.15rem;
  }

  .hf-rail-nav--prev svg {
    transform: scaleX(-1);
  }
}

.hf-card {
  flex: 0 0 220px;
  scroll-snap-align: start;
  text-decoration: none;
  color: #111;
  display: flex;
  flex-direction: column;
  gap: 0;
  box-sizing: border-box;
  background: #fff;
  border: 1px solid #d4d4d4;
  border-radius: 14px;
  overflow: hidden;
  padding: 0 0 0.72rem;
}

.hf-card--wide {
  flex-basis: 220px;
}

.hf-card-media {
  display: block;
  position: relative;
  aspect-ratio: 16 / 10;
  width: 100%;
  flex: 0 0 auto;
  background: #e8ebef;
  border: 0;
  border-radius: 0;
  overflow: hidden;
}

.hf-card-media img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.hf-card-label {
  font-size: 0.99rem;
  font-weight: 800;
  color: #111;
  line-height: 1.25;
  margin: 0.6rem 0.72rem 0;
  text-align: left;
}

.hf-rail--ajanlas {
  gap: 0.85rem;
}

.hf-card--ajanlas {
  gap: 0;
}

.hf-card--ajanlas .hf-card-media {
  background: #e8ebef;
  box-shadow: none;
}

.hf-card--ajanlas .hf-card-label {
  font-size: 0.99rem;
  font-weight: 800;
  text-align: left;
  line-height: 1.25;
  color: #111;
  margin: 0.6rem 0.72rem 0;
}

.hf-card--kategoria {
  gap: 0;
}

.hf-card--kategoria .hf-card-media {
  aspect-ratio: 16 / 10;
  background: #fff;
  border: 0;
}

.hf-card--kategoria .hf-card-media img {
  object-fit: contain;
  object-position: center center;
  padding: 0.55rem 0.45rem;
  box-sizing: border-box;
  transform: none;
  border: 0;
  outline: 0;
  box-shadow: none;
}

.hf-card--kategoria .hf-card-label {
  font-size: 0.99rem;
  font-weight: 800;
  text-align: left;
  margin: 0.55rem 0.72rem 0;
  color: #111;
}

.hf-card-sub {
  display: block;
  font-size: 0.78rem;
  font-weight: 500;
  color: #6b7280;
  line-height: 1.25;
  text-align: left;
  margin: 0.2rem 0.72rem 0;
  min-height: 1.25em;
}

.hf-status {
  margin: 0 0 0.55rem;
  padding: 0 1.25rem;
  font-size: 0.82rem;
  color: #6b7280;
  line-height: 1.35;
}

.hf-empty {
  margin: 0 0 0.75rem;
  padding: 0 1.25rem;
  font-size: 0.92rem;
  color: #374151;
  line-height: 1.45;
}

.hf-empty a {
  color: inherit;
  font-weight: 650;
}

.hf-card--listing {
  flex: 0 0 220px;
  gap: 0;
  align-self: stretch;
  box-sizing: border-box;
  background: #fff;
  border: 1px solid #d4d4d4;
  border-radius: 14px;
  overflow: hidden;
  padding: 0 0 0.72rem;
  display: flex;
  flex-direction: column;
}

.hf-card--listing .hf-card-media {
  position: relative;
  aspect-ratio: 16 / 10;
  width: 100%;
  flex: 0 0 auto;
  background-color: #e8ebef;
  border: 0;
  border-radius: 0;
  overflow: hidden;
}

.hf-card--listing .hf-card-media img,
.hf-card--listing .hf-card-media-img {
  display: block !important;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  padding: 0;
  margin: 0;
  border: 0;
  object-fit: cover;
  object-position: center center;
  transform: scale(1.14);
  transform-origin: center center;
}

.hf-card--listing .hf-card-label {
  margin: 0.6rem 0.72rem 0;
  padding: 0;
  font-size: 0.99rem;
  font-weight: 800;
  color: #111;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.25;
  min-height: 1.25em;
}

.hf-card--listing .hf-card-sub {
  display: block;
  margin: 0.13rem 0.72rem 0;
  padding: 0;
  font-size: 0.79rem;
  font-weight: 400;
  color: #111;
  text-align: left;
  line-height: 1.25;
  min-height: 1.25em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hf-card--listing .hf-card-price {
  display: block;
  margin: 0.44rem 0.72rem 0;
  padding: 0;
  font-size: 1.16rem;
  font-weight: 800;
  color: #111;
  text-align: left;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hf-card--listing .hf-card-meta {
  display: none;
}

.hf-card--listing .hf-card-specs {
  display: block;
  margin: 0.44rem 0.72rem 0;
  min-width: 0;
}

.hf-card--listing .hf-card-specs-row {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-start;
  gap: 0.55rem;
  min-width: 0;
  overflow: hidden;
  line-height: 1;
}

.hf-card--listing .hf-card-spec {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 0.28rem;
  min-width: 0;
  min-height: 1em;
  font-size: 0.77rem;
  font-weight: 500;
  color: #111;
  line-height: 1;
  white-space: nowrap;
}

.hf-card--listing .hf-card-spec svg {
  display: block;
  width: 13px;
  height: 13px;
  flex: 0 0 auto;
  margin: 0;
  padding: 0;
  overflow: visible;
}

.hf-card--listing .hf-card-spec > span {
  display: block;
  line-height: 1;
}

.hf-card--prompt .hf-card-media {
  background: linear-gradient(135deg, #eef2f7 0%, #f8fafc 100%);
}

.hf-card--prompt-all .hf-card-media {
  background: linear-gradient(145deg, #f6d57f 0%, #e6a800 100%);
}

.hf-card--prompt-all .hf-card-label {
  font-weight: 700;
  color: #111;
}

.hf-card--prompt .hf-card-label {
  font-size: 0.82rem;
  line-height: 1.25;
  padding-bottom: 0.45rem;
}

.hf-rail--tiles {
  gap: 0.85rem;
}

.hf-tile {
  flex: 0 0 120px;
  min-height: 110px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  text-decoration: none;
  color: #111;
  background: #f3f3f3;
  border: 1px solid #c8c8c8;
  border-radius: 12px;
  padding: 0.85rem 0.5rem;
}

.hf-tile-icon {
  color: #555;
  display: flex;
}

.hf-tile-label {
  font-size: 0.95rem;
  font-weight: 600;
}

@media (max-width: 640px) {
  .hf-title {
    font-size: 1.1rem;
  }

  .hf-card,
  .hf-card--wide,
  .hf-card--listing,
  .hf-card--kategoria,
  .hf-card--ajanlas {
    flex-basis: 194px;
  }
}

/* Kezdőlap sávok: 800px-en a mobil féloldalas kártya, 1100px-től a megszokott 220px */
@media (min-width: 801px) {
  body.hub-page--feed .hf-card,
  body.hub-page--feed .hf-card--wide,
  body.hub-page--feed .hf-card--listing,
  body.hub-page--feed .hf-card--kategoria,
  body.hub-page--feed .hf-card--ajanlas {
    flex: 0 0 max(220px, calc(803px - 53vw));
  }

  /* Szekciósáv / csempe-közti vonalak — ugyanaz, mint mobilon (hub-mobile-app) */
  body.hub-page--feed .hf-section {
    padding: 1rem 0.85rem 1.15rem;
    margin: 0 0 2.5rem;
    background: #f6f5f2;
    border: 1px solid #d2d0cc;
    border-radius: 16px;
  }

  html[data-theme="dark"] body.hub-page--feed .hf-section {
    background: #1a1f26;
    border-color: rgba(255, 255, 255, 0.08);
  }
}

.hub-intro {
  max-width: var(--hub-max);
  margin: 0 auto;
  padding: 1.25rem 1.25rem 0.5rem;
}

body.hub-page--feed .hub-feed {
  padding-top: 0.75rem;
}

html[data-theme="dark"] body.hub-page {
  --hub-surface: #12161c;
  --hub-ink: #e8eaed;
  --hub-muted: #9aa3ad;
  --hub-line: rgba(255, 255, 255, 0.12);
  background: #12161c;
  color: #e8eaed;
}

html[data-theme="dark"] body.hub-page--feed {
  background: #12161c;
  color: #e8eaed;
}

html[data-theme="dark"] .hub-header {
  background: #1a1f26;
  border-color: #2a313c;
}

html[data-theme="dark"] .hub-nav-band {
  border-color: #2a313c;
}

html[data-theme="dark"] .hub-nav-link {
  color: #e8eaed;
}

html[data-theme="dark"] .hub-nav-link:hover {
  color: #fff;
}

html[data-theme="dark"] .hub-nav-link.active {
  color: #f0c52c;
  border-bottom-color: #f0c52c;
}

html[data-theme="dark"] .hub-header-msg {
  color: #d1d5db;
}

html[data-theme="dark"] .hub-header-msg:hover {
  color: #fff;
}

html[data-theme="dark"] .hub-header-msg svg {
  color: #9ca3af;
}

html[data-theme="dark"] .hub-btn--ghost {
  background: #1a1f26;
  color: #e8eaed;
  border-color: #3b4450;
}

html[data-theme="dark"] .hub-header .site-header-profile {
  color: #e8eaed;
}

html[data-theme="dark"] .hub-header .site-header-avatar {
  border-color: #3b4450;
  background: #243044;
  color: #bfdbfe;
}

html[data-theme="dark"] .hub-theme-toggle {
  border-color: #3b4450;
  background: linear-gradient(90deg, #e5e7eb 50%, #111827 50%);
}

html[data-theme="dark"] .hf-title,
html[data-theme="dark"] .hub-home-logo {
  color: #e8eaed;
}

html[data-theme="dark"] .hf-all {
  color: #9ca3af;
}

html[data-theme="dark"] .hf-card,
html[data-theme="dark"] .hf-card--listing,
html[data-theme="dark"] .hf-card--kategoria,
html[data-theme="dark"] .hf-card--ajanlas {
  background: #fff;
  border-color: #d4d4d4;
  color: #111;
}

html[data-theme="dark"] .hf-card-label,
html[data-theme="dark"] .hf-card--ajanlas .hf-card-label,
html[data-theme="dark"] .hf-card--kategoria .hf-card-label,
html[data-theme="dark"] .hf-card--listing .hf-card-label,
html[data-theme="dark"] .hf-card--listing .hf-card-price,
html[data-theme="dark"] .hf-card--listing .hf-card-spec,
html[data-theme="dark"] .hf-tile-label {
  color: #111;
}

html[data-theme="dark"] .hf-card-sub,
html[data-theme="dark"] .hf-card--listing .hf-card-sub {
  color: #6b7280;
}

html[data-theme="dark"] .hf-card-media,
html[data-theme="dark"] .hf-card--kategoria .hf-card-media,
html[data-theme="dark"] .hf-card--ajanlas .hf-card-media,
html[data-theme="dark"] .hf-card--listing .hf-card-media {
  background: #fff;
  border: 0;
  border-color: transparent;
}

html[data-theme="dark"] .hf-card--listing .hf-card-media {
  background: #e8ebef;
}

html[data-theme="dark"] .hf-tile {
  background: #1a1f26;
  border-color: #3b4450;
  color: #e8eaed;
}

html[data-theme="dark"] .hf-tile-icon {
  color: #9ca3af;
}

html[data-theme="dark"] .hub-promo {
  background: #fff;
  border-color: #d4d4d4;
  color: #111;
}

html[data-theme="dark"] .hub-promo__kicker,
html[data-theme="dark"] .hub-promo__title {
  color: #111;
}

html[data-theme="dark"] .hub-promo__text {
  color: #6b7280;
}

.hub-promo-band {
  max-width: var(--hub-max, 1120px);
  margin: 0 auto;
  padding: 1rem 1.25rem 0.35rem;
}
.hub-promo-band .hub-verticals {
  margin-left: auto;
  margin-right: auto;
}
body.home-page .hub-promo-band,
body.hub-page .hub-promo-band {
  padding-top: 0.75rem;
}

/* Feed: a band ne adjon külön vízszintes paddinget (csempe-szél) */
body.hub-page--feed .hub-promo-band {
  max-width: none;
  margin: 0;
  padding: 0.5rem 0 0.25rem;
}

/* Kis csempe: képlapozás + kedvencekhez adás (mint az autós rácsban) */
.hf-card-fav,
.hf-card-photo-nav {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.96);
  color: #111;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18);
  cursor: pointer;
}
.hf-card-fav {
  top: 8px;
  right: 8px;
  width: 32px;
  height: 32px;
}
.hf-card-fav svg {
  width: 18px;
  height: 18px;
}
.hf-card-fav.is-on {
  color: #e11d48;
}
.hf-card-fav.is-on path {
  fill: currentColor;
}
.hf-card-photo-nav {
  top: 50%;
  width: 30px;
  height: 30px;
  transform: translateY(-50%);
  opacity: 0;
  transition: opacity 0.15s ease;
}
.hf-card-photo-nav svg {
  width: 18px;
  height: 18px;
}
.hf-card-photo-nav--prev {
  left: 8px;
}
.hf-card-photo-nav--next {
  right: 8px;
}
.hf-card:hover .hf-card-photo-nav,
.hf-card:focus-within .hf-card-photo-nav {
  opacity: 1;
}
@media (hover: none) {
  .hf-card-photo-nav {
    opacity: 1;
  }
}
.hf-card-photo-count {
  position: absolute;
  right: 8px;
  bottom: 8px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.72);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.5;
}
.hf-card-photo-count svg {
  width: 12px;
  height: 12px;
}

/* Asztal (egér / trackpad): a csempesávok ne görgessenek a görgő vagy a trackpad gesztus alatt —
   függőlegesen mindig az oldal megy (mint a willhaben-en). Lapozás: nyilak és egérrel húzás. */
@media (hover: hover) and (pointer: fine) {
  html body .hf-rail.hf-rail {
    overflow-x: hidden !important;
    overscroll-behavior-x: none;
  }
}

/* Autó találati lista: kereskedő neve + értékelés a csempén (seller-dealer-line.js) — mint a hirdetés oldalán. */
.dealer-line {
  display: none;
}
.dealer-line.is-filled {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  margin-top: 0.45rem;
  text-align: left;
}
.dealer-line__name {
  font-weight: 800;
  font-size: 0.95rem;
  line-height: 1.25;
  color: #101828;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dealer-line__rating {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.2rem 0.4rem;
  font-size: 0.85rem;
  line-height: 1.25;
  font-weight: 600;
  color: #344054;
}
.dealer-line__stars {
  display: inline-flex;
  gap: 0.05rem;
}
.dealer-line__star {
  color: #d0d5dd;
  font-size: 1rem;
}
.dealer-line__star.is-on {
  color: #f5a524;
}
.dealer-line__avg {
  font-weight: 800;
  color: #101828;
}
.dealer-line__scale,
.dealer-line__count {
  color: #667085;
}
.dealer-line__count {
  font-weight: 500;
}
html[data-theme="dark"] .dealer-line__name,
html[data-theme="dark"] .dealer-line__avg { color: #f1f5f9; }
html[data-theme="dark"] .dealer-line__rating { color: #cbd5e1; }
html[data-theme="dark"] .dealer-line__star { color: #475569; }
html[data-theme="dark"] .dealer-line__star.is-on { color: #f5a524; }
/* Listanézetben a kártya alján már ott a hirdető sáv — ott ne legyen kétszer. */
#home-grid-track.is-list-view .home-grid-card-dealer { display: none !important; }

/* Admin által feltöltött főoldali banner: mindig ugyanakkora sáv, mint az alap banner (1024∶180),
   bármilyen arányú képet töltenek fel — nem lehet óriási. A kép kitölti a sávot, középre igazítva. */
.hub-promo.hub-promo--banner.hub-promo--custom {
  aspect-ratio: 1024 / 180;
}
.hub-promo.hub-promo--banner.hub-promo--custom img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
/* Mobilon is ugyanaz a sáv-arány (a mobil stílus !important-tal natúr magasságot adna). */
html body .hub-promo.hub-promo--banner.hub-promo--custom.hub-promo--custom {
  aspect-ratio: 1024 / 180 !important;
}
html body .hub-promo.hub-promo--banner.hub-promo--custom.hub-promo--custom img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
}

/* Mobilon kisebb, a széléhez közelebbi lapozó nyíl. */
@media (max-width: 800px) {
  html body .hf-rail-nav {
    width: 30px;
    height: 44px;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.78);
  }
  html body .hf-rail-nav--prev { left: 0.4rem; }
  html body .hf-rail-nav--next { right: 0.4rem; }
}
