/* Magnetic Centar - traka i postavke kolacica (oblik prema emily-stil.com home.css, boje i fontovi Magnetic Centra). */
.cookiebar {
  position: fixed;
  z-index: 160;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.4rem;
  padding: 1.15rem var(--gut, 24px) 1.25rem;
  background: var(--ivory, #FAF6F0);
  border-top: 3px solid var(--rose, #C49A93);
  box-shadow: 0 -16px 40px -28px rgba(43, 37, 34, 0.55);
  font-family: var(--sans, "Jost", sans-serif);
}
.cookiebar[hidden],
.cookie-settings[hidden] { display: none; }
.cookiebar__copy { max-width: 68ch; }
.cookiebar__title {
  font-family: var(--sans, "Jost", sans-serif);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--rose-deep, #A87C75);
  margin-bottom: 0.35rem;
}
.cookiebar p { color: var(--espresso-soft, #574E48); font-size: 0.92rem; line-height: 1.55; margin: 0; }
.cookiebar p + p { margin-top: 0; }
.cookiebar__actions { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: flex-end; }
.cookiebar .btn,
.cookie-settings .btn { white-space: normal; text-align: center; padding: 0.95em 1.6em; }
body.has-cookiebar { padding-bottom: 9.5rem; }
.cookie-reopen {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
.cookie-reopen:hover { color: var(--rose, #C49A93); }
.cookie-settings {
  position: fixed;
  z-index: 180;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 1.2rem;
  background: rgba(33, 28, 26, 0.46);
  font-family: var(--sans, "Jost", sans-serif);
}
.cookie-settings__card {
  position: relative;
  width: min(640px, 100%);
  max-height: min(86vh, 720px);
  overflow: auto;
  background: var(--ivory, #FAF6F0);
  color: var(--espresso, #2B2522);
  border-radius: var(--radius, 4px);
  padding: clamp(1.3rem, 3vw, 2rem);
  box-shadow: var(--shadow-soft, 0 18px 50px -28px rgba(43,37,34,0.45));
}
.cookie-settings__close {
  position: absolute;
  top: 0.6rem;
  right: 0.8rem;
  background: none;
  border: 0;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  color: var(--espresso-soft, #574E48);
}
.cookie-settings__lead { margin: 0.2rem 0 1.1rem; color: var(--espresso-soft, #574E48); font-size: 0.94rem; }
.cookie-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding: 0.9rem 0;
  border-top: 1px solid var(--line, #E3D8C9);
}
.cookie-row b { display: block; font-weight: 500; color: var(--espresso, #2B2522); font-size: 0.98rem; }
.cookie-row > div span { display: block; color: var(--espresso-soft, #574E48); font-size: 0.86rem; line-height: 1.45; }
.cookie-switch { position: relative; display: grid; justify-items: end; gap: 0.3rem; flex-shrink: 0; cursor: pointer; }
.cookie-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.cookie-switch__face {
  width: 2.6rem;
  height: 1.45rem;
  border-radius: 999px;
  background: var(--line, #E3D8C9);
  position: relative;
  transition: background 0.2s ease;
}
.cookie-switch__face::after {
  content: "";
  position: absolute;
  top: 0.16rem;
  left: 0.16rem;
  width: 1.12rem;
  height: 1.12rem;
  border-radius: 50%;
  background: var(--white, #fff);
  transition: transform 0.2s ease;
}
.cookie-switch input:checked + .cookie-switch__face { background: var(--rose-deep, #A87C75); }
.cookie-switch input:checked + .cookie-switch__face::after { transform: translateX(1.12rem); }
.cookie-switch input:disabled + .cookie-switch__face { background: var(--taupe, #B6A78F); }
.cookie-switch input:focus-visible + .cookie-switch__face { outline: 2px solid var(--gold, #B68D40); outline-offset: 3px; }
.cookie-switch__text { font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--espresso-soft, #574E48); }
.cookie-settings .cookiebar__actions { margin-top: 1.1rem; }

/* placeholder karte do pristanka (naslovnica, .loc__map) */
.map-consent {
  min-height: 420px;
  display: grid;
  place-content: center;
  gap: 1.1rem;
  padding: 2rem;
  text-align: center;
  background: var(--ivory-deep, #F2EAE0);
  color: var(--espresso-soft, #574E48);
}
.map-consent.is-loaded { display: block; padding: 0; min-height: 0; }
.map-consent__text { max-width: 36ch; margin: 0 auto; font-size: 0.95rem; }
.map-consent__actions { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center; }

@media (max-width: 760px) {
  .cookiebar { flex-direction: column; align-items: stretch; }
  .cookiebar__actions { justify-content: stretch; }
  .cookiebar .btn,
  .cookie-settings .btn { width: 100%; justify-content: center; }
  .cookie-row { align-items: flex-start; }
  body.has-cookiebar { padding-bottom: 20rem; }
  .map-consent { min-height: 320px; }
}

/* Poveznice na pravne dokumente (14.11.2026.) */
.cookiebar__more { margin-top: 0.4rem; }
.cookiebar__more a { text-decoration: underline; text-underline-offset: 2px; }
.cookiebar__more a:hover { color: var(--rose-deep, #A87870); }
.footer__legal { display: inline-flex; flex-wrap: wrap; gap: 0.35rem 1rem; }
.footer__legal a:hover { color: var(--rose, #C49A93); }

/* Donja linija podnozja svjetlija (t560u, 14.11.2026.): ista vrijednost kao u styles.css i naslovnica.php;
   ovdje jer se kolacici.css verzionira u inc/footer.php (styles.css nema ?v= na stranicama). Kontrast 11.5:1 na #211C1A. */
.footer .footer__bottom { color: rgba(250,246,240,0.85); }
