/* ============================================
   Cookie Consent Popup – Las'immo
   ============================================ */

/* Overlay */
.cookie-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100000;
  padding: 1em;
  opacity: 0;
  transition: opacity 0.3s ease, background 0.3s ease;
  pointer-events: none;
}

.cookie-overlay--visible {
  opacity: 1;
  background: rgba(0, 0, 0, 0.4);
  pointer-events: auto;
}

/* Popup card */
.cookie-popup {
  background: #f9f6f2;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
  max-width: 420px;
  width: 100%;
  padding: 2em 2em 1.5em;
  text-align: center;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.cookie-overlay--visible .cookie-popup {
  transform: translateY(0);
}

/* Header */
.cookie-popup-header {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.3em;
  font-weight: 700;
  color: #4a4a4a;
  margin-bottom: 0.6em;
}

/* Text */
.cookie-popup-text {
  font-family: 'Inter', Arial, sans-serif;
  font-size: 0.92em;
  line-height: 1.55;
  color: #666;
  margin: 0 0 1.4em;
}

/* Buttons container */
.cookie-popup-buttons {
  display: flex;
  gap: 0.75em;
  justify-content: center;
  margin-bottom: 1em;
}

/* Shared button styles */
.cookie-btn {
  font-family: 'Inter', Arial, sans-serif;
  font-size: 0.92em;
  font-weight: 600;
  padding: 0.7em 1.8em;
  border-radius: 50px;
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s, border-color 0.3s;
  border: 2px solid #c2b280;
  min-width: 120px;
}

/* Accept */
.cookie-btn-accept {
  background: #c2b280;
  color: #fff;
}

.cookie-btn-accept:hover {
  background: #d4c2a4;
  border-color: #d4c2a4;
}

/* Refuse */
.cookie-btn-refuse {
  background: transparent;
  color: #c2b280;
}

.cookie-btn-refuse:hover {
  background: #c2b280;
  color: #fff;
}

/* Settings button (reopen) */
.cookie-settings-btn {
  position: fixed;
  bottom: 16px;
  right: 16px;
  z-index: 9998;
  background: rgba(249, 246, 242, 0.75);
  color: rgba(194, 178, 128, 0.9);
  border: 1px solid rgba(194, 178, 128, 0.4);
  border-radius: 50px;
  padding: 0.4em 0.9em;
  font-family: 'Inter', Arial, sans-serif;
  font-size: 0.72em;
  font-weight: 600;
  cursor: pointer;
  box-shadow: none;
  transition: background-color 0.3s, color 0.3s, opacity 0.3s;
  opacity: 0.78;
}

.cookie-settings-btn:hover {
  background: rgba(194, 178, 128, 0.85);
  color: #fff;
  opacity: 1;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .cookie-popup {
    padding: 1.5em 1.2em 1.2em;
    border-radius: 12px;
  }

  .cookie-popup-header {
    font-size: 1.15em;
  }

  .cookie-popup-text {
    font-size: 0.85em;
  }

  .cookie-popup-buttons {
    flex-direction: column;
  }

  .cookie-btn {
    width: 100%;
    min-width: unset;
  }

  /* Place settings button above the sticky mobile bar */
  .cookie-settings-btn {
    bottom: 80px;
    right: 12px;
    font-size: 0.68em;
    padding: 0.35em 0.7em;
  }
}
