/* =====================================================
   COOKIE / PRIVACY CONSENT — Galenia Estate
   ===================================================== */

/* ---- Banner ---- */
#cc-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 99998;
  background: #FFFFFF;
  border-top: 2px solid #1B4332;
  padding: 1.1rem 1.5rem;
  transform: translateY(105%);
  transition: transform 0.42s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.10);
}

#cc-banner.cc-visible  { transform: translateY(0); }
#cc-banner.cc-exit     { transform: translateY(105%); }

.cc-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.cc-content {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  flex: 1;
  min-width: 250px;
}

.cc-icon {
  width: 20px;
  height: 20px;
  fill: #1B4332;
  flex-shrink: 0;
  margin-top: 3px;
}

.cc-headline {
  font-family: 'Cinzel', Georgia, serif;
  font-size: 0.78rem;
  font-weight: 600;
  color: #1B4332;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.cc-desc {
  font-size: 0.80rem;
  color: #4A4A4A;
  line-height: 1.6;
}

.cc-desc strong { color: #1A1A1A; }

.cc-link-btn {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: #1B4332;
  text-decoration: underline;
  font-size: inherit;
  font-family: inherit;
  line-height: inherit;
}
.cc-link-btn:hover { color: #C9A84C; }

.cc-btns {
  display: flex;
  gap: 0.65rem;
  align-items: center;
  flex-shrink: 0;
}

/* ---- Shared buttons ---- */
.cc-btn {
  font-family: 'Cinzel', Georgia, serif;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 4px;
  padding: 0.6rem 1.25rem;
  cursor: pointer;
  transition: all 0.22s ease;
  white-space: nowrap;
}

.cc-btn--solid {
  background: #1B4332;
  color: #FAF6F0;
  border: 1.5px solid #1B4332;
}
.cc-btn--solid:hover {
  background: #2D6A4F;
  border-color: #2D6A4F;
}

.cc-btn--outline {
  background: transparent;
  color: #1B4332;
  border: 1.5px solid #1B4332;
}
.cc-btn--outline:hover {
  background: #1B4332;
  color: #FAF6F0;
}

/* ---- Footer "Cookie Settings" link ---- */
.cc-footer-btn {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  opacity: 0.6;
  transition: opacity 0.2s;
}
.cc-footer-btn:hover { opacity: 1; }

/* =====================================================
   PRIVACY MODAL
   ===================================================== */

#cc-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(0, 0, 0, 0.60);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  backdrop-filter: blur(3px);
  animation: cc-fade-in 0.22s ease both;
}

#cc-modal-overlay.cc-exit {
  animation: cc-fade-out 0.22s ease both;
}

@keyframes cc-fade-in  { from { opacity: 0; } to { opacity: 1; } }
@keyframes cc-fade-out { from { opacity: 1; } to { opacity: 0; } }

.cc-modal-card {
  background: #FAF6F0;
  border-radius: 14px;
  max-width: 680px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  padding: 2.5rem 2.75rem;
  position: relative;
  box-shadow: 0 28px 72px rgba(0, 0, 0, 0.38);
  animation: cc-slide-up 0.28s cubic-bezier(0.4, 0, 0.2, 1) both;
}

@keyframes cc-slide-up {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

.cc-modal-close {
  position: absolute;
  top: 1.1rem;
  right: 1.1rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #888;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.18s, color 0.18s;
  line-height: 1;
}
.cc-modal-close:hover { background: #F0E9DE; color: #1A1A1A; }

.cc-modal-title {
  font-family: 'Cinzel', Georgia, serif;
  font-size: 1.4rem;
  font-weight: 600;
  color: #1B4332;
  margin-bottom: 0.2rem;
  padding-right: 2rem;
}

.cc-modal-date {
  font-size: 0.75rem;
  color: #888;
  margin-bottom: 1.75rem;
}

/* Body text */
.cc-modal-body h3 {
  font-family: 'Cinzel', Georgia, serif;
  font-size: 0.78rem;
  font-weight: 600;
  color: #1B4332;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  margin: 1.5rem 0 0.45rem;
}
.cc-modal-body h3:first-child { margin-top: 0; }

.cc-modal-body p {
  font-size: 0.865rem;
  color: #4A4A4A;
  line-height: 1.65;
  margin-bottom: 0.6rem;
}

.cc-modal-body a       { color: #1B4332; text-decoration: underline; }
.cc-modal-body a:hover { color: #C9A84C; }

.cc-modal-body code {
  font-family: 'Courier New', monospace;
  font-size: 0.80rem;
  background: #F0E9DE;
  padding: 1px 5px;
  border-radius: 3px;
  color: #1B4332;
}

/* Service cards inside modal */
.cc-service-card {
  background: #F0E9DE;
  border-left: 3px solid #C9A84C;
  border-radius: 0 7px 7px 0;
  padding: 0.85rem 1rem;
  margin-bottom: 0.65rem;
}

.cc-service-card strong {
  font-family: 'Cinzel', Georgia, serif;
  font-size: 0.80rem;
  color: #1B4332;
}

.cc-service-card p {
  margin: 0.3rem 0 0;
  font-size: 0.835rem;
}

.cc-tag {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 20px;
  margin-left: 0.4rem;
  vertical-align: middle;
}

.cc-tag--pref {
  background: rgba(201, 168, 76, 0.15);
  color: #7a5e18;
  border: 1px solid rgba(201, 168, 76, 0.40);
}

.cc-tag--necessary {
  background: rgba(27, 67, 50, 0.09);
  color: #1B4332;
  border: 1px solid rgba(27, 67, 50, 0.22);
}

/* Modal action buttons */
.cc-modal-actions {
  display: flex;
  gap: 0.7rem;
  justify-content: flex-end;
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid #F0E9DE;
  flex-wrap: wrap;
}

.cc-modal-actions .cc-btn--solid {
  background: #1B4332;
  color: #FAF6F0;
  border-color: #1B4332;
}
.cc-modal-actions .cc-btn--solid:hover {
  background: #2D6A4F;
  border-color: #2D6A4F;
}

.cc-modal-actions .cc-btn--outline {
  color: #4A4A4A;
  border-color: #ccc;
}
.cc-modal-actions .cc-btn--outline:hover {
  border-color: #1B4332;
  color: #1B4332;
}

/* =====================================================
   RESPONSIVE
   ===================================================== */

@media (max-width: 660px) {
  .cc-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.9rem;
  }

  .cc-btns {
    width: 100%;
    justify-content: flex-end;
  }

  .cc-modal-card {
    padding: 1.75rem 1.25rem;
    border-radius: 12px 12px 0 0;
    max-height: 92vh;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    border-radius: 18px 18px 0 0;
    animation: cc-slide-up-mobile 0.3s cubic-bezier(0.4, 0, 0.2, 1) both;
  }

  @keyframes cc-slide-up-mobile {
    from { transform: translateY(40px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
  }

  #cc-modal-overlay {
    align-items: flex-end;
    padding: 0;
  }

  .cc-modal-actions {
    flex-direction: column-reverse;
  }

  .cc-modal-actions .cc-btn {
    width: 100%;
    text-align: center;
    padding: 0.75rem;
  }
}
