/* ============================================================
   Napvitorla Színminta – Publikus oldal CSS
   ============================================================ */

/* ── Változók ──────────────────────────────────────────────── */
:root {
  --primary:        #1F646B;
  --primary-dark:   #174e54;
  --primary-mid:    #256d74;
  --primary-light:  #e8f4f5;
  --accent:         #FF411B;
  --accent-dark:    #cc3416;
  --accent-light:   #fff0ed;
  --white:          #ffffff;
  --gray-50:        #f8fafc;
  --gray-100:       #f1f5f9;
  --gray-200:       #e2e8f0;
  --gray-300:       #cbd5e1;
  --gray-400:       #94a3b8;
  --gray-500:       #64748b;
  --gray-600:       #475569;
  --gray-700:       #334155;
  --gray-800:       #1e293b;
  --gray-900:       #0f172a;

  --font:           'DM Sans', sans-serif;
  --font-mono:      'Space Mono', monospace;

  --radius:         16px;
  --radius-sm:      10px;
  --radius-xs:      6px;

  --shadow-sm:      0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md:      0 4px 6px -1px rgba(0,0,0,.07), 0 2px 4px rgba(0,0,0,.04);
  --shadow-lg:      0 10px 25px rgba(0,0,0,.1), 0 4px 6px rgba(0,0,0,.05);
  --shadow-xl:      0 20px 40px rgba(0,0,0,.12);

  --tr:             .2s cubic-bezier(.4,0,.2,1);
  --nav-top-h:      60px;
  --nav-sub-h:      46px;
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html   { scroll-behavior: smooth; height: 100%; }
body   {
  font-family: var(--font);
  background: #e0e0e0;
  color:       var(--gray-800);
  min-height:  100%;
  overflow-x:  hidden;
  display:     flex;
  flex-direction: column;
}
a { color: inherit; text-decoration: none; }

/* ── Loading ───────────────────────────────────────────────── */
#loadingScreen {
  position: fixed; inset: 0; background: white;
  z-index: 9999;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 20px;
}
.loading-logo {
  width: 72px; height: 72px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 20px;
  display: flex; align-items: center; justify-content: center;
  font-size: 30px; color: white;
  animation: logoPulse 1.6s ease-in-out infinite;
}
@keyframes logoPulse {
  0%,100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(31,100,107,.3); }
  50%     { transform: scale(1.05); box-shadow: 0 0 0 12px rgba(31,100,107,0); }
}
.loading-text  { color: var(--gray-500); font-size: 14px; font-weight: 500; }
.loading-bar   { width: 220px; height: 4px; background: var(--gray-100); border-radius: 2px; overflow: hidden; }
.loading-fill  { height: 100%; background: linear-gradient(90deg, var(--primary), var(--accent)); border-radius: 2px; animation: loadFill 1.6s ease-in-out infinite; }
@keyframes loadFill { 0%{width:0;margin-left:0} 50%{width:100%;margin-left:0} 100%{width:0;margin-left:100%} }

/* ── Navbar ─────────────────────────────────────────────────── */
.nav-wrapper {
  position: sticky; top: 0; z-index: 100;
  background: white;
  box-shadow: 0 2px 20px rgba(0,0,0,.07);
}

.nav-top {
  height: var(--nav-top-h);
  display: flex; align-items: center;
  padding: 0 20px; gap: 10px;
  border-bottom: 1px solid var(--gray-100);
}

.nav-logo {
  display: flex; align-items: center; gap: 10px;
  flex-shrink: 0;
  font-weight: 800; font-size: 15px;
  color: var(--primary); letter-spacing: .4px;
}
.nav-logo-icon {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 15px; flex-shrink: 0;
}

.nav-cats {
  display: flex; align-items: center; gap: 4px;
  flex: 1; overflow-x: auto; scrollbar-width: none;
}
.nav-cats::-webkit-scrollbar { display: none; }

.nav-btn {
  flex-shrink: 0;
  padding: 7px 14px;
  border: 1.5px solid var(--gray-200);
  border-radius: 50px;
  background: transparent;
  color: var(--gray-500);
  font-family: var(--font); font-size: 13px; font-weight: 500;
  cursor: pointer;
  transition: all var(--tr); white-space: nowrap;
}
.nav-btn:hover  { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }
.nav-btn.active { background: var(--primary); border-color: var(--primary); color: white; font-weight: 600; }

.nav-search {
  display: flex; align-items: center; gap: 8px;
  background: var(--gray-100); border: 1.5px solid var(--gray-200);
  border-radius: 50px; padding: 7px 14px;
  margin-left: auto; flex-shrink: 0;
  transition: all var(--tr);
}
.nav-search:focus-within {
  border-color: var(--primary); background: white;
  box-shadow: 0 0 0 3px rgba(31,100,107,.1);
}
.nav-search i  { color: var(--gray-400); font-size: 13px; }
.nav-search input {
  border: none; background: none; outline: none;
  font-family: var(--font); font-size: 13px; color: var(--gray-700); width: 160px;
}
.nav-search input::placeholder { color: var(--gray-400); }

/* Hamburger (mobil) */
.nav-hamburger {
  display: none; width: 36px; height: 36px;
  background: var(--gray-100); border: none; border-radius: 8px;
  cursor: pointer; align-items: center; justify-content: center;
  font-size: 16px; color: var(--gray-600); flex-shrink: 0;
}

/* Sub navbar */
.nav-sub {
  height: var(--nav-sub-h);
  display: flex; align-items: center;
  padding: 0 20px; gap: 6px;
  overflow-x: auto; scrollbar-width: none;
  background: var(--gray-50); border-bottom: 1px solid var(--gray-100);
}
.nav-sub::-webkit-scrollbar { display: none; }

.sub-group { display: none; align-items: center; gap: 5px; }
.sub-group.active { display: flex; }
.sub-group .nav-btn { font-size: 12px; padding: 5px 11px; }

.nav-version {
  margin-left: auto; flex-shrink: 0;
  font-size: 11px; color: var(--gray-400); white-space: nowrap;
}

/* ── Alert banner ───────────────────────────────────────────── */
.alert-bar {
  display: flex; align-items: flex-start; gap: 12px;
  margin-bottom: 30px;
  padding: 11px 20px;
  font-size: 13px; border-bottom: 1px solid transparent;
}
.alert-bar.info    { background: linear-gradient(135deg,#fff8e1,#fffde7); border-color: #ffd54f; }
.alert-bar.warning { background: linear-gradient(135deg,#fff3e0,#fff8f0); border-color: #fb8c00; }
.alert-bar.danger  { background: linear-gradient(135deg,#fff3f0,#ffe8e5); border-color: var(--accent); }
.alert-bar.success { background: linear-gradient(135deg,#e8f5e9,#f0fdf4); border-color: #66bb6a; }
.alert-bar i { margin-top: 2px; flex-shrink: 0; }
.alert-bar.info i    { color: #f59e0b; }
.alert-bar.warning i { color: #fb8c00; }
.alert-bar.danger i  { color: var(--accent); }
.alert-bar.success i { color: #388e3c; }
.alert-msg { font-weight: 600; color: var(--gray-700); }
.alert-sub { display: block; font-weight: 400; color: var(--gray-500); font-size: 12px; margin-top: 2px; }

/* ── Szekció fejléc ─────────────────────────────────────────── */
/* ── Szekció wrapper kiemelés ───────────────────────────────── */
.section-wrapper {
  background: white;
  margin-left: 10px;
  margin-right: 10px;
  margin-bottom: 30px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}

.section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px 16px;
  flex-wrap: nowrap;
  background: linear-gradient(135deg, #3F888F 50%, #f8fafc 60%, #eff6ff 100%);
  border-bottom: 1px solid rgba(31,100,107,.12);
}

.section-head-left {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 14px;
}

.section-chapter {
  font-size: 22px;
  font-weight: 800;
  color: rgba(31, 100, 107, .18);
  font-family: var(--font-mono);
  line-height: 1;
  flex-shrink: 0;
}

.section-head-left h2 {
  font-size: 20px; font-weight: 800; color: var(--gray-900);
}
.section-collection {
  font-size: 11px; font-weight: 600; color: #1F646B;
  text-transform: uppercase; letter-spacing: 1px; margin-top: 3px;
}

.section-head-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  flex: 1;
  min-width: 0;
}

/* ── Szín rács ──────────────────────────────────────────────── */
main { flex: 1; }
.color-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
  gap: 14px;
  padding: 16px 24px 32px;
}

/* ── Szín kártya ────────────────────────────────────────────── */
.color-card {
  background: white;
  border-radius: var(--radius-xs);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid #3a3a3a;
  cursor: pointer;
  position: relative;
  animation: cardIn .35s ease both;
  transition: transform var(--tr), box-shadow var(--tr), border-color var(--tr);
  display: flex;
  flex-direction: column;
}
@keyframes cardIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.color-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: var(--gray-200);
}
.color-card.hidden { display: none; }

/* Szín minta terület */
.card-swatch       { height: 140px; position: relative; overflow: hidden; }
.card-swatch.duo   { background: linear-gradient(135deg, var(--c1) 50%, var(--c2) 50%); }
/* striped/microstriped/dotted: inline style-ként renderelődnek (pattern_size alapján) */
.card-swatch.striped, .card-swatch.microstriped, .card-swatch.dotted {
  background-repeat: repeat;
}

/* NEM RENDELHETŐ – szurke csikozas az EGESZ kartyara (szin blokk + info resz) */
.color-card.unavailable {
  position: relative;
  overflow: hidden;
}
.color-card.unavailable::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 10;
  pointer-events: none;
  border-radius: inherit;
  /* background: repeating-linear-gradient(
    -45deg,
    rgba(148, 163, 184, 0.22) 0px,
    rgba(148, 163, 184, 0.22) 7px,
    rgba(255, 255, 255, 0.10) 7px,
    rgba(255, 255, 255, 0.10) 16px
  ); */
  background: repeating-linear-gradient(135deg,
        rgba(0, 0, 0, 0.1),
        /* Halványabb szürke, hogy a szöveg olvasható maradjon */
        rgba(0, 0, 0, 0.1) 5px,
        transparent 5px,
        transparent 10px);
}
/* Regi szin-blokk overlay torolve – a teljes kartya overlay valtja ki */
.color-card.unavailable .card-swatch::after {
  display: none;
}

/* Badge-k */
.card-badges {
  position: absolute; top: 8px; left: 8px;
  z-index: 5; display: flex; flex-wrap: wrap; gap: 4px;
}
.badge {
  display: inline-flex; align-items: center;
  padding: 3px 8px; border-radius: 50px;
  font-size: 9.5px; font-weight: 800; letter-spacing: .4px;
  text-transform: uppercase; color: white; backdrop-filter: blur(8px);
}
.badge.duo    { background: rgba(31,100,107,.88); }
.badge.stripe       { background: rgba(100,116,139,.88); }
.badge.microstripe  { background: rgba(71,85,105,.88); }
.badge.dotted { background: rgba(120,83,15,.85); color: #fef3c7; }
.badge.new    { background: rgba(255,65,27,.9); }
.badge.b1     { background: rgba(220,38,38,.88); }
.badge.slow   { background: rgba(245,158,11,.9); }
.badge.custom { gap: 4px; } /* szin inline style-bol jon */

/* Kedvenc gomb */
.card-fav {
  position: absolute; top: 8px; right: 8px; z-index: 5;
  width: 30px; height: 30px;
  background: rgba(255,255,255,.88); border: none; border-radius: 50%;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  font-size: 12px; color: var(--gray-400);
  transition: all var(--tr); backdrop-filter: blur(6px);
}
.card-fav:hover, .card-fav.active { color: #ef4444; }
.card-fav.active { background: #fff0ef; }

/* Nincs minta jelzés */


/* Kártya adatok */
.card-body    { padding: 11px 13px; display: flex;
  flex-direction: column;
  flex: 1;}
.card-name    { font-size: 13.5px; font-weight: 700; color: var(--gray-800); line-height: 1.2; }
.card-sub     { font-size: 11.5px; color: var(--gray-400); margin-top: 2px; }
.card-codes   { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 7px; margin-bottom: 10px}
.code-pill    {
  display: inline-flex; align-items: center;
  padding: 2.5px 7px;
  background: var(--gray-100); border-radius: 50px;
  font-size: 10px; font-family: var(--font-mono); font-weight: 700; color: var(--gray-600);
}
.code-pill.blue   { background: #e0f2fe; color: #0369a1; }
.code-pill.orange { background: #fff7ed; color: #c2410c; }
.code-pill.purple { background: #f3e8ff; color: #7c3aed; }

.card-footer {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding-top: 10px; margin-top: auto; border-top: 2px solid var(--gray-100);
}
/* Nincs mintadarab – külön sor a footer alatt */
.card-no-sample {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 8px;
  padding: 5px 10px;
  background: #fef3c7;
  color: #92400e;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .3px;
  border: 1px solid #fde68a;
}
.card-no-sample i {
  font-size: 11px;
  opacity: .8;
}

.status-dot  {
  width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0;
}
.status-dot.available   { background: #22c55e; }
.status-dot.unavailable { background: #ef4444; }
.status-dot.slow        { background: #f59e0b; }
.status-dot.new         { background: var(--primary); }

.status-text { font-size: 11px; font-weight: 600; color: var(--gray-500); }
.status-left { display: flex; align-items: center; gap: 5px; }

.card-shop-btn {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 9px;
  background: var(--accent); color: white; border-radius: 50px;
  font-size: 10px; font-weight: 700;
  transition: background var(--tr); flex-shrink: 0;
}
.card-shop-btn:hover { background: var(--accent-dark); }

/* ── Nincs találat ──────────────────────────────────────────── */
.no-results {
  grid-column: 1/-1; text-align: center;
  padding: 64px 20px; color: var(--gray-400);
}
.no-results i { font-size: 52px; margin-bottom: 16px; display: block; opacity: .3; }
.no-results p { font-size: 15px; }

/* ── Szín részletes modal ───────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.45); z-index: 500;
  display: none; align-items: center; justify-content: center;
  padding: 16px; backdrop-filter: blur(4px);
}
.modal-overlay.open { display: flex; }
.modal-box {
  background: white; border-radius: 22px; overflow: hidden;
  width: 100%; max-width: 460px;
  box-shadow: var(--shadow-xl);
  animation: modalIn .22s cubic-bezier(.4,0,.2,1);
}
@keyframes modalIn {
  from { opacity: 0; transform: scale(.95) translateY(8px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
.modal-swatch  { height: 180px; position: relative; }
.modal-close   {
  position: absolute; top: 12px; right: 12px;
  width: 32px; height: 32px;
  background: rgba(0,0,0,.3); border: none; color: white;
  border-radius: 50%; cursor: pointer; font-size: 15px;
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(4px); transition: background var(--tr);
}
.modal-close:hover { background: rgba(0,0,0,.5); }
.modal-body    { padding: 22px; }
.modal-name    { font-size: 22px; font-weight: 800; color: var(--gray-900); }
.modal-sub     { font-size: 14px; color: var(--gray-400); margin-top: 2px; }
.modal-codes   { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0; }
.modal-status  { display: flex; align-items: center; gap: 8px; margin-bottom: 18px; font-size: 13px; font-weight: 600; color: var(--gray-600); }
.modal-cta     {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 14px;
  background: var(--accent); color: white;
  border-radius: var(--radius-sm); font-weight: 700; font-size: 15px;
  transition: background var(--tr);
}
.modal-cta:hover { background: var(--accent-dark); }
.modal-cta.hidden { display: none; }

/* ── Kedvenc panel ──────────────────────────────────────────── */
.fav-btn {
  position: fixed; bottom: 24px; right: 24px; z-index: 200;
  width: 54px; height: 54px;
  background: var(--accent); color: white; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 20px;
  box-shadow: var(--shadow-lg); cursor: pointer;
  transition: transform var(--tr);
}
.fav-btn:hover { transform: scale(1.08); }
.fav-badge {
  position: absolute; top: -3px; right: -3px;
  width: 20px; height: 20px;
  background: var(--primary); color: white;
  border-radius: 50%; font-size: 10px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.fav-badge[data-n="0"] { display: none; }

.fav-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.35);
  z-index: 190; display: none; backdrop-filter: blur(2px);
}
.fav-overlay.open { display: block; }

.fav-panel {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: 360px; max-width: 95vw;
  background: white; z-index: 195;
  display: flex; flex-direction: column;
  box-shadow: -10px 0 40px rgba(0,0,0,.14);
  transform: translateX(100%);
  transition: transform .32s cubic-bezier(.4,0,.2,1);
}
.fav-panel.open { transform: translateX(0); }
.fav-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 22px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white; flex-shrink: 0;
}
.fav-head span { font-size: 16px; font-weight: 700; }
.fav-head button {
  background: rgba(255,255,255,.2); border: none; color: white;
  width: 32px; height: 32px; border-radius: 50%; cursor: pointer;
  font-size: 16px; display: flex; align-items: center; justify-content: center;
  transition: background var(--tr);
}
.fav-head button:hover { background: rgba(255,255,255,.3); }
.fav-body  { flex: 1; overflow-y: auto; padding: 14px; }
.fav-item  {
  display: flex; align-items: center; gap: 11px;
  padding: 9px; background: var(--gray-50);
  border-radius: var(--radius-sm); margin-bottom: 7px;
}
.fav-swatch { width: 44px; height: 44px; border-radius: 8px; flex-shrink: 0; border: 1px solid var(--gray-200); }
.fav-info   { flex: 1; }
.fav-iname  { font-size: 13px; font-weight: 600; }
.fav-icode  { font-size: 11px; color: var(--gray-400); font-family: var(--font-mono); }
.fav-del    {
  background: none; border: none; cursor: pointer;
  color: var(--gray-400); font-size: 14px; padding: 4px;
  transition: color var(--tr);
}
.fav-del:hover { color: #ef4444; }
.fav-foot  {
  padding: 14px; border-top: 1px solid var(--gray-100);
  display: flex; flex-direction: column; gap: 8px; flex-shrink: 0;
}
.fav-print {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  padding: 12px; background: var(--primary); color: white;
  border: none; border-radius: var(--radius-sm);
  font-family: var(--font); font-size: 14px; font-weight: 600;
  cursor: pointer; transition: background var(--tr);
}
.fav-print:hover { background: var(--primary-dark); }
.fav-clear {
  background: none; border: none; color: var(--gray-400);
  font-family: var(--font); font-size: 13px; cursor: pointer;
  text-align: center; padding: 6px; transition: color var(--tr);
}
.fav-clear:hover { color: #ef4444; }

/* ── Back to top ────────────────────────────────────────────── */
.back-top {
  position: fixed; bottom: 90px; right: 24px; z-index: 100;
  width: 44px; height: 44px;
  background: white; color: var(--gray-600);
  border: 1.5px solid var(--gray-200); border-radius: 50%;
  display: none; align-items: center; justify-content: center; font-size: 15px;
  box-shadow: var(--shadow-md); cursor: pointer; transition: all var(--tr);
}
.back-top.visible { display: flex; }
.back-top:hover   { border-color: var(--primary); color: var(--primary); transform: translateY(-2px); }

/* ── Footer ─────────────────────────────────────────────────── */
.main-footer {
  background: var(--gray-800); color: var(--gray-400);
  padding: 24px; margin-top: auto;
}
.footer-grid {
  display: flex; flex-wrap: wrap; gap: 14px 28px; margin-bottom: 16px;
}
.footer-item { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.footer-item i { color: var(--primary); width: 16px; text-align: center; }
.footer-divider { height: 1px; background: var(--gray-700); margin-bottom: 12px; }
.footer-copy   { font-size: 12px; color: var(--gray-500); }

/* ── Print terület ──────────────────────────────────────────── */
#printArea { display: none; }
@media print {
  .nav-wrapper,
    .fav-btn,
    .back-top,
    .fav-overlay,
    .fav-panel,
    .alert-bar,
    #loadingScreen,
    .main-footer,
    #mainContent {
      display: none !important;
    }
  
    #printArea {
      display: block !important;
    }
  
    .card-swatch {
      -webkit-print-color-adjust: exact;
      print-color-adjust: exact;
    }
  
    body {
      margin: 0;
      padding: 0;
    }
}

/* ── Reszponzív ─────────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-top    { padding: 0 12px; }
  .nav-sub    { padding: 0 12px; }
  .nav-hamburger { display: flex; }
  .nav-search input { width: 120px; }

  .color-grid { grid-template-columns: repeat(auto-fill, minmax(150px,1fr)); padding: 12px 12px 24px; gap: 10px; }

  .section-head         { padding: 16px 16px 12px; flex-wrap: wrap; }
  .section-head-right   { align-items: flex-start; }

  .fav-panel { width: 100%; max-width: 100%; }
}

@media (max-width: 480px) {
  .color-grid { grid-template-columns: repeat(2,1fr); }
  .nav-logo span { display: none; }
  .nav-search input { width: 90px; }
}

/* ── Publikus szekció pill-ek (tulajdonságok, kompatibilis) ── */
.pub-pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    justify-content: flex-end;
    align-items: center;
}

.pub-pill-row.compat-row {
    align-items: center;
}

.pub-pill-label {
    font-size: 10px;
    font-weight: 700;
    color: var(--gray-400, #94a3b8);
    text-transform: uppercase;
    letter-spacing: .5px;
    white-space: nowrap;
    flex-shrink: 0;
}

.pub-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .3px;
    color: #fff;
    white-space: nowrap;
    flex-shrink: 0;
    box-shadow: 0 1px 3px rgba(0,0,0,.15);
}

.pub-pill i {
    font-size: 10px;
    opacity: .9;
}

.section-head-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
}

/* ── Anchor copy gomb ── */
.anchor-copy-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #ffffff;
    padding: 2px 4px;
    border-radius: 6px;
    font-size: 16px;
    transition: color .2s, background .2s;
    vertical-align: middle;
    display: inline-flex;
    align-items: center;
    margin-left: 4px;
    position: relative;
    top: -1px;
}
.anchor-copy-btn:hover {
    color: var(--primary);
    background: #fff700;
}

/* ── Szűrő sáv ── */
.filter-bar { background:#fff; border-bottom:1px solid var(--gray-100); position:sticky; top:56px; z-index:90; box-shadow:0 1px 4px rgba(0,0,0,.04); }
.filter-bar-inner { display:flex; align-items:center; gap:8px; padding:0 16px; max-width:1400px; margin:0 auto; }
.filter-scroll { display:flex; align-items:center; gap:6px; overflow-x:auto; padding:7px 0; flex:1; scrollbar-width:none; }
.filter-scroll::-webkit-scrollbar { display:none; }
.filter-group { display:flex; align-items:center; gap:4px; flex-shrink:0; }
.filter-label { font-size:10px; font-weight:700; color:var(--gray-400); text-transform:uppercase; letter-spacing:.05em; margin-right:2px; white-space:nowrap; }
.filter-sep { width:1px; height:20px; background:var(--gray-100); flex-shrink:0; margin:0 4px; }
.filter-chip { background:var(--gray-50); border:1px solid var(--gray-200); border-radius:20px; padding:3px 10px; font-size:11px; font-weight:500; color:var(--gray-600); cursor:pointer; white-space:nowrap; transition:all .15s; display:inline-flex; align-items:center; gap:4px; }
.filter-chip:hover { border-color:var(--primary); color:var(--primary); background:rgba(31,100,107,.05); }
.filter-chip.active { background:var(--primary); border-color:var(--primary); color:#fff; }
.filter-dot { width:7px; height:7px; border-radius:50%; display:inline-block; }
.filter-dot.available { background:#22c55e; }
.filter-dot.unavailable { background:#ef4444; }
.filter-dot.slow { background:#f59e0b; }
.filter-dot.new { background:#3b82f6; }
.filter-clear { background:none; border:1px solid var(--gray-200); border-radius:20px; padding:3px 12px; font-size:11px; color:#ef4444; cursor:pointer; white-space:nowrap; transition:all .15s; flex-shrink:0; }
.filter-clear:hover { background:#fef2f2; border-color:#ef4444; }
.filter-clear.hidden { display:none; }

/* ══════════════════════════════════════════════
   FILTER MODAL (javított 2026-04)
   ══════════════════════════════════════════════ */

/* Szűrők gomb a navban */
.filter-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: 20px;
    padding: 5px 14px;
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-700);
    cursor: pointer;
    transition: all .15s;
    white-space: nowrap;
}
.filter-toggle-btn:hover,
.filter-toggle-btn.has-filters {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}
.filter-badge {
    background: #ef4444;
    color: #fff;
    border-radius: 10px;
    padding: 1px 6px;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.4;
}

/* A #filterBar maga csak egy container, alapból hidden */
#filterBar {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 500;
}
#filterBar.open {
    display: block;
}

/* Modal overlay */
.filter-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.45);
    display: flex;
    align-items: flex-end;       /* mobilon alulról jön */
    justify-content: center;
    padding: 0;
}
@media (min-width: 600px) {
    .filter-modal-overlay {
        align-items: center;
    }
}

/* Modal box */
.filter-modal-box {
    background: #fff;
    border-radius: 20px 20px 0 0;
    width: 100%;
    max-width: 540px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 -4px 32px rgba(0,0,0,.15);
    animation: slideUp .22s ease;
}
@media (min-width: 600px) {
    .filter-modal-box {
        border-radius: 16px;
        max-height: 80vh;
    }
}
@keyframes slideUp {
    from { transform: translateY(60px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

/* Modal header */
.filter-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px 12px;
    border-bottom: 1px solid var(--gray-100);
    flex-shrink: 0;
}
.filter-modal-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--gray-800);
    display: flex;
    align-items: center;
    gap: 8px;
}
.filter-modal-title i { color: var(--primary); }
.filter-modal-close {
    background: var(--gray-100);
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--gray-600);
    font-size: 14px;
    transition: background .15s;
}
.filter-modal-close:hover { background: var(--gray-200); }

/* Modal body */
.filter-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Szekció */
.filter-section {
    padding: 10px 0;
}
.filter-section-label {
    font-size: 10px;
    font-weight: 700;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: .07em;
    margin-bottom: 10px;
}
.filter-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.filter-divider {
    height: 1px;
    background: var(--gray-100);
    margin: 4px 0;
}

/* Chip-ek (újrahasznosítjuk a régi .filter-chip stílust) */
.filter-chip {
    background: var(--gray-50);
    border: 1.5px solid var(--gray-200);
    border-radius: 20px;
    padding: 5px 13px;
    font-size: 12px;
    font-weight: 500;
    color: var(--gray-700);
    cursor: pointer;
    white-space: nowrap;
    transition: all .15s;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.filter-chip:hover  { border-color: var(--primary); color: var(--primary); background: rgba(31,100,107,.05); }
.filter-chip.active { background: var(--primary); border-color: var(--primary); color: #fff; }

/* Modal footer */
.filter-modal-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px 20px;
    border-top: 1px solid var(--gray-100);
    flex-shrink: 0;
    gap: 10px;
}
.filter-clear-all {
    background: none;
    border: 1.5px solid var(--gray-200);
    border-radius: 20px;
    padding: 7px 16px;
    font-size: 13px;
    color: #ef4444;
    cursor: pointer;
    font-weight: 600;
    transition: all .15s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.filter-clear-all:hover { background: #fef2f2; border-color: #ef4444; }
.filter-clear-all.hidden { display: none; }

.filter-apply-btn {
    background: var(--primary);
    border: none;
    border-radius: 20px;
    padding: 8px 22px;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    cursor: pointer;
    transition: background .15s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
}
.filter-apply-btn:hover { background: var(--primary-dark, #155e63); }

/* ESC to close */
.filter-share-btn {
    background: var(--gray-50);
    border: 1.5px solid var(--gray-200);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--gray-600);
    font-size: 14px;
    transition: all .15s;
    flex-shrink: 0;
}
.filter-share-btn:hover { background: var(--primary); border-color: var(--primary); color: #fff; }

/* filter-toggle-btn nav-top pozícióban */
.nav-top .filter-toggle-btn {
    flex-shrink: 0;
    padding: 6px 14px;
    font-size: 13px;
}
@media (max-width: 480px) {
    .nav-top .filter-toggle-btn span:not(.filter-badge) { display: none; }
    .nav-top .filter-toggle-btn { padding: 6px 10px; }
}
