/* ============================================================
   cookie-banner.css  –  Cimpó-hegyi málna
   A weboldal arculatához hangolva (Montserrat + málnapiros tokenek).
   A style.css :root változóira épít, ezért az index.html-en a
   style.css UTÁN töltsd be.
   ============================================================ */

#cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 9999;
  padding: 0 20px 20px; pointer-events: none;
  display: flex; justify-content: center;
  transform: translateY(120%);
  transition: transform .45s cubic-bezier(.22, 1, .36, 1);
}
#cookie-banner.cb-visible { transform: translateY(0); pointer-events: auto; }

.cb-card {
  background: color-mix(in srgb, var(--plum-2) 95%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(244, 136, 155, .30);
  border-radius: var(--r-lg, 28px);
  box-shadow: 0 -6px 50px rgba(0, 0, 0, .5);
  max-width: 820px; width: 100%;
  padding: 22px 26px;
  display: flex; align-items: center; gap: 22px; flex-wrap: wrap;
}

.cb-icon { color: var(--pink); flex-shrink: 0; display: grid; place-items: center; }
.cb-icon svg { width: 34px; height: 34px; }

.cb-text { flex: 1 1 280px; }
.cb-text strong { display: block; font-family: var(--display); font-weight: 800; font-size: 1rem; color: var(--paper); margin-bottom: 4px; }
.cb-text p { font-family: var(--body); font-size: .84rem; color: var(--muted-light); line-height: 1.55; margin: 0; }
.cb-text a { color: var(--pink); text-decoration: underline; text-underline-offset: 2px; }
.cb-text a:hover { color: var(--blush); }

.cb-actions { display: flex; gap: 10px; flex-shrink: 0; flex-wrap: wrap; }
.cb-btn {
  font-family: var(--display); font-size: .85rem; font-weight: 700;
  border-radius: 999px; padding: 11px 22px; min-height: 44px;
  cursor: pointer; border: none; white-space: nowrap;
  display: inline-flex; align-items: center; justify-content: center;
  transition: transform .2s, background .2s, border-color .2s;
}
.cb-btn:hover { transform: translateY(-2px); }
.cb-btn:active { transform: translateY(0); }
.cb-btn--accept { background: linear-gradient(135deg, var(--brand-2), var(--brand)); color: var(--on-brand); box-shadow: 0 12px 30px rgba(215, 45, 74, .4); }
.cb-btn--accept:hover { background: var(--wine); }
.cb-btn--decline { background: transparent; color: var(--blush); border: 2px solid rgba(244, 136, 155, .42); }
.cb-btn--decline:hover { border-color: var(--pink); color: var(--paper); }

/* ── Térkép helyőrző (ha visszautasítják) ── */
.cb-map-placeholder {
  width: 100%; height: 100%; min-height: 420px;
  background: var(--plum-2);
  border-radius: var(--r-lg, 28px);
  border: 1px solid rgba(244, 136, 155, .18);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 16px; padding: 32px; text-align: center;
}
.cb-map-placeholder svg { opacity: .55; }
.cb-map-placeholder p { font-family: var(--body); font-size: .86rem; color: var(--blush); line-height: 1.55; max-width: 300px; }
.cb-map-placeholder button {
  font-family: var(--display); font-size: .82rem; font-weight: 700;
  color: var(--on-brand); background: linear-gradient(135deg, var(--brand-2), var(--brand));
  border: none; border-radius: 999px; padding: 11px 20px; min-height: 44px;
  cursor: pointer; transition: background .2s;
}
.cb-map-placeholder button:hover { background: var(--wine); }

/* ── "Cookie-beállítások" újranyitás (footer) ── */
#cb-reopen {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--body); font-size: 14.5px; font-weight: 600;
  color: inherit; text-decoration: none; cursor: pointer;
  background: none; border: none; padding: 0; transition: color .2s var(--ease, ease);
}
#cb-reopen:hover { color: var(--pink); }

/* ── Reszponzív ── */
@media (max-width: 580px) {
  .cb-card { padding: 18px 16px; gap: 14px; }
  .cb-actions { width: 100%; }
  .cb-btn { flex: 1; }
}
