/* ═══════════════════════════════════════════════
    COOKIE BANNER — CNIL/RGPD compliant
═══════════════════════════════════════════════ */

/* ─── Banner ─── */
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: var(--footer-bg);
  border-top: 1px solid rgba(201, 150, 58, 0.35);
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.3);
  padding: 20px clamp(16px, 4vw, 40px);
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

#cookie-banner.cookie-banner--visible {
  transform: translateY(0);
}

#cookie-banner.cookie-banner--hiding {
  transform: translateY(100%);
}

.cookie-banner__inner {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.cookie-banner__content {
  flex: 1;
  min-width: 200px;
}

.cookie-banner__title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(0.9rem, 2vw, 1rem);
  color: var(--header-text);
  margin-bottom: 6px;
}

.cookie-banner__text {
  font-size: clamp(0.75rem, 1.8vw, 0.82rem);
  color: var(--header-text);
  line-height: 1.6;
}

.cookie-banner__link {
  color: var(--gold);
  text-decoration: underline;
  transition: opacity 0.2s ease;
}

.cookie-banner__link:hover {
  opacity: 0.8;
}

/* ─── Pulsanti banner ─── */
.cookie-banner__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  flex-shrink: 0;
}

.cookie-btn-sm {
  padding: 10px 20px !important;
  font-size: 0.68rem !important;
}

#cookie-banner .btn-ll-outline {
  color: #2D1F0E;
  border-color: rgba(45, 31, 14, 0.35);
}

#cookie-banner .btn-ll-outline:hover {
  color: #2D1F0E;
  border-color: #2D1F0E;
  background: rgba(45, 31, 14, 0.08);
}

/* ─── Pannello personalizzazione ─── */
.cookie-custom-panel {
  width: 100%;
  border-top: 1px solid rgba(201, 150, 58, 0.2);
  padding-top: 16px;
  margin-top: 4px;
}

.cookie-custom-panel.hidden { display: none; }

.cookie-option {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid rgba(201, 150, 58, 0.1);
  gap: 16px;
}

.cookie-option__name {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--header-text);
  display: block;
  margin-bottom: 2px;
}

.cookie-option__desc {
  font-size: 0.72rem;
  color: var(--header-text);
}

.cookie-toggle {
  width: 18px;
  height: 18px;
  accent-color: var(--gold);
  cursor: pointer;
  flex-shrink: 0;
}

.cookie-toggle:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.cookie-custom-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  padding-top: 14px;
}

/* ─── Mappa placeholder (senza consenso) ─── */
.map-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  height: 420px;
  background: var(--section-alt);
  border-radius: 2px;
  text-align: center;
  padding: 32px;
}

.map-placeholder-icon {
  font-size: 2.5rem;
}

.map-placeholder-text {
  font-size: 0.9rem;
  color: var(--gold);
  max-width: 300px;
  line-height: 1.6;
}

/* ─── Responsive ─── */
@media (max-width: 576px) {
  .cookie-banner__buttons {
    width: 100%;
    justify-content: stretch;
  }

  .cookie-banner__buttons .btn-ll {
    flex: 1;
    justify-content: center;
  }

  .cookie-custom-actions {
    justify-content: stretch;
  }

  .cookie-custom-actions .btn-ll {
    flex: 1;
    justify-content: center;
  }
}
