/* Seffro — supplemental styles */
html {
  scroll-behavior: smooth;
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid #E30613;
  outline-offset: 2px;
  border-radius: 6px;
}

body {
  overflow-x: hidden;
}

.shadow-card,
.shadow-soft {
  will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

.pms-dot-bg {
  background-image: radial-gradient(circle, #FFCDD2 1.5px, transparent 1.5px);
  background-size: 18px 18px;
}

@keyframes btn-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(227, 6, 19, 0.45); }
  70%  { box-shadow: 0 0 0 12px rgba(227, 6, 19, 0); }
  100% { box-shadow: 0 0 0 0 rgba(227, 6, 19, 0); }
}

.btn--pulse {
  animation: btn-pulse 0.7s ease 2;
}

/* Society management page */

.hero-card::before {
  content: "";
  position: absolute;
  top: -20px;
  right: -20px;
  width: 160px;
  height: 160px;
  background-image: radial-gradient(circle, rgba(227, 6, 19, 0.15) 1.5px, transparent 1.5px);
  background-size: 12px 12px;
  pointer-events: none;
  z-index: 0;
}

.faq-answer {
  overflow: hidden;
  max-height: 200px;
  transition: max-height 0.25s ease, opacity 0.2s ease, padding 0.25s ease;
  opacity: 1;
}

.faq-answer[hidden] {
  display: block;
  max-height: 0;
  opacity: 0;
  padding-top: 0;
  padding-bottom: 0;
}

.faq-chevron {
  transition: transform 0.2s ease;
  display: inline-block;
}

.faq-question[aria-expanded="true"] .faq-chevron {
  transform: rotate(0deg);
}

/* Properties page — request loader */
.request-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(2px);
}

.request-loader.show {
  display: flex;
}

/* Properties page — category filter list */
#categories .list-item a {
  display: block;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 500;
  color: #4b5563;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

#categories .list-item a:hover {
  background: #fef2f2;
  color: #E30613;
}

#categories .list-item a.active {
  background: #E30613;
  color: #fff;
}

/* Properties page — pagination (Bootstrap markup, Tailwind look) */
.pagination {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;
}

.pagination li {
  list-style: none;
}

.pagination .page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #15151A;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

.pagination .page-link:hover {
  border-color: #E30613;
  color: #E30613;
}

.pagination .page-item.active .page-link {
  background: #E30613;
  border-color: #E30613;
  color: #fff;
}

.pagination .page-item.disabled .page-link {
  opacity: 0.45;
  pointer-events: none;
}
