/*
Theme Name: Total Child Theme
Theme URI: https://frisianancestors.com
Description: Frisian Ancestors theme.
Author: Frisian Ancestors
Author URI: https://frisianancestors.com
Template: Total
Version: 1.0
*/

@import url('https://fonts.googleapis.com/css2?family=Jaro:opsz@6..72&display=swap');

html:has(body.single-familie) {
  overflow-y: hidden !important;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image: url("https://frisianancestors.com/wp-content/uploads/2025/12/26130-scaled.jpg");
    background-size: cover;
    background-position: center -180px;
    background-repeat: no-repeat;
    opacity: 0.27;
    z-index: -1;
}

.fa-title{
  text-align: center;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}
h1 {
  font-family: 'Jaro', sans-serif;
  color: #fff;
}

.fa-familie-grid{
  display: grid;
  grid-template-columns: repeat(var(--fa-cols, 4), minmax(0, 1fr));
  gap: 64px;
}

#site-header-inner {
  margin-left: 20px;
}

/* Contact email rechts boven in header (desktop: Jaro, wit, geen achtergrond) */
.fa-header-contact {
  position: absolute;
  top: 45px;
  right: 0px;
  font-size: 24px;
  font-family: 'Jaro', sans-serif;
  color: #fff;
  z-index: 100;
  text-align: right;
  line-height: 1.4;
  background: transparent;
  padding: 6px;
}

.fa-header-contact a {
  color: #fff;
  text-decoration: underline;
  font-weight: 600;
}

.fa-header-contact a:hover {
  color: #0275C6;
  text-decoration: underline;
}

.fa-header-contact-note {
  margin-top: 4px;
  font-size: 0.65em;
  color: #fff;
  font-style: italic;
}

@media (max-width: 1062px) {
  .fa-header-contact {
    font-size: 11px;
    font-family: inherit;
    color: #333;
    top: 5px;
    right: 10px;
    background: rgba(255, 255, 255, 0.8);
    border-bottom-left-radius: 8px;
  }

  .fa-header-contact a {
    color: #0155A5;
  }

  .fa-header-contact-note {
    font-size: 10px;
    color: #666;
  }
}

/* Tablet */
@media (max-width: 1024px){
  .fa-familie-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .fa-familie-grid-9[style*="--fa-cols: 5"] .fa-familie-card-wrap {
    grid-column: auto !important;
  }
}

/* Mobiel */
@media (max-width: 767px){
  .fa-familie-grid{
    grid-template-columns: 1fr !important;
  }
  .fa-familie-grid-9 .fa-familie-card-wrap.fa-familie-card-last{
    grid-column: 1 / 2 !important;
  }
  .fa-familie-grid-9[style*="--fa-cols: 5"] .fa-familie-card-wrap {
    grid-column: auto !important;
  }
}

.fa-familie-card-wrap{
  display: flex;
  flex-direction: column;
}

.fa-familie-updated{
  background-color: #c8e1fff2;
  padding: 4px 10px;
  font-size: 12px;
  line-height: 1.3;
  text-align: center;
  border-radius: 4px;
  color: #0155A5;
  font-family: 'Jaro', sans-serif;
}

.fa-familie-card{
  position: relative;
  background-color: #0155A5;
  color: #fff;
  padding: 40px 40px 40px 40px;
  font-family: 'Jaro', sans-serif;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none !important;
  transition: background-color 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.fa-familie-card,
.fa-familie-card *{
  text-decoration: none !important;
}

.fa-familie-card:hover{
  background-color: #0275C6;
}

/* Nummer kleuren */
.fa-familie-card-nummer-1 {
  background-color: #0155A5 !important;
}

.fa-familie-card-nummer-1:hover {
  background-color: #0275C6 !important;
}

.fa-familie-card-nummer-2 {
  background-color: #DC143C !important;
}

.fa-familie-card-nummer-2:hover {
  background-color: #E63950 !important;
}

/* Laatste item bij 9 items - in het midden eronder */
.fa-familie-grid-9 {
  position: relative;
}

/* Voor 5 kolommen: rij 1–2 elk 4 kaarten (midden leeg), rij 3 één kaart gecentreerd */
.fa-familie-grid-9[style*="--fa-cols: 5"] .fa-familie-card-wrap:nth-child(1) {
  grid-column: 1;
}
.fa-familie-grid-9[style*="--fa-cols: 5"] .fa-familie-card-wrap:nth-child(2) {
  grid-column: 2;
}
.fa-familie-grid-9[style*="--fa-cols: 5"] .fa-familie-card-wrap:nth-child(3) {
  grid-column: 4;
}
.fa-familie-grid-9[style*="--fa-cols: 5"] .fa-familie-card-wrap:nth-child(4) {
  grid-column: 5;
}
.fa-familie-grid-9[style*="--fa-cols: 5"] .fa-familie-card-wrap:nth-child(5) {
  grid-column: 1;
}
.fa-familie-grid-9[style*="--fa-cols: 5"] .fa-familie-card-wrap:nth-child(6) {
  grid-column: 2;
}
.fa-familie-grid-9[style*="--fa-cols: 5"] .fa-familie-card-wrap:nth-child(7) {
  grid-column: 4;
}
.fa-familie-grid-9[style*="--fa-cols: 5"] .fa-familie-card-wrap:nth-child(8) {
  grid-column: 5;
}
.fa-familie-grid-9[style*="--fa-cols: 5"] .fa-familie-card-wrap.fa-familie-card-last {
  grid-column: 3;
}

/* Voor 4 kolommen: laatste item in het midden (kolom 2) */
.fa-familie-grid-9[style*="--fa-cols: 4"] .fa-familie-card-wrap.fa-familie-card-last {
  grid-column: 2 / 3;
}

/* Voor 3 kolommen: laatste item in het midden (kolom 2) */
.fa-familie-grid-9[style*="--fa-cols: 3"] .fa-familie-card-wrap.fa-familie-card-last {
  grid-column: 2 / 3;
  max-width: 100%;
}

/* Voor 2 kolommen: laatste item normaal (kolom 1) */
.fa-familie-grid-9[style*="--fa-cols: 2"] .fa-familie-card-wrap.fa-familie-card-last {
  grid-column: 1 / 2;
  max-width: 100%;
}

/* Voor 1 kolom: normale breedte */
.fa-familie-grid-9[style*="--fa-cols: 1"] .fa-familie-card-wrap.fa-familie-card-last {
  grid-column: 1 / 2;
  max-width: 100%;
}


.fa-familie-content{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.fa-familie-title{
  margin: 0;
  text-align: center;
  font-size: 24px;
  line-height: 1.2;
  color: #fff !important;
  pointer-events: none;
  text-decoration: none !important;
}

.fa-familie-year{
  margin-top: 2px;
  text-align: center;
  font-size: 18px;
  line-height: 1.2;
  opacity: .95;
  pointer-events: none;
  text-decoration: none !important;
  color: #fff !important;
}

.fa-familie-meta{
  position: absolute;
  right: 6px;
  bottom: 2px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.fa-familie-meta-row{
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  line-height: 1;
  white-space: nowrap;
  color: #fff;
}

.fa-familie-meta-row img{
  width: 22px;
  height: 22px;
  object-fit: contain;
  display: block;
}

.fa-familie-meta-value{
  pointer-events: qne;
  color: #fff !important;
}

/* ── Oriëntatie knoppen ── */
#fa-orientation-btns {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 14px;
  background: rgba(200, 225, 255, 0.95);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  user-select: none;
}

.fa-orient-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 700;
  color: #0155A5;
  background: transparent;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
  white-space: nowrap;
  line-height: 1;
}

.fa-orient-btn:hover {
  background-color: rgba(1, 85, 165, 0.12);
}

.fa-orient-btn:active {
  background-color: rgba(1, 85, 165, 0.25);
}

.fa-orient-btn.active {
  background-color: #0155A5;
  color: #fff;
  border-radius: 4px;
}

.fa-orient-btn.active:hover {
  background-color: #0275C6;
}

.fa-orient-btn svg {
  flex-shrink: 0;
}

/* ── Oriëntatie dropdown ── */
.fa-orient-wrapper {
  position: relative;
}

.fa-orient-chevron {
  margin-left: 2px;
  transition: transform 0.2s ease;
}

.fa-orient-wrapper.open .fa-orient-chevron {
  transform: rotate(180deg);
}

.fa-orient-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 4px;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
  overflow: hidden;
  z-index: 1100;
  min-width: 120px;
}

.fa-orient-wrapper.open .fa-orient-dropdown {
  display: block;
}

.fa-orient-dropdown-item {
  display: block;
  width: 100%;
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 600;
  color: #0155A5;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: background-color 0.15s ease;
}

.fa-orient-dropdown-item:hover {
  background-color: rgba(1, 85, 165, 0.08);
}

.fa-orient-dropdown-item.active {
  background-color: #0155A5;
  color: #fff;
}

.fa-orient-dropdown-item.active:hover {
  background-color: #0275C6;
}

/* ── Zoom slider ── */
#fa-zoom-container {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: rgba(200, 225, 255, 0.95);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  position: absolute;
  top: -100px;
  left: 0px;
  z-index: 1000;
  user-select: none;
}

.fa-zoom-label {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  font-size: 20px;
  font-weight: bold;
  color: #0155A5;
  cursor: pointer;
  border-radius: 4px;
  transition: background-color 0.15s ease;
  line-height: 1;
}

.fa-zoom-label:hover {
  background-color: rgba(1, 85, 165, 0.12);
}

.fa-zoom-label:active {
  background-color: rgba(1, 85, 165, 0.25);
}

#fa-zoom-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 160px;
  height: 6px;
  background: #b0c8e8;
  border-radius: 3px;
  outline: none;
  cursor: pointer;
}

#fa-zoom-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  background: #0155A5;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
  transition: transform 0.1s ease;
}

#fa-zoom-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

#fa-zoom-slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  background: #0155A5;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

#fa-zoom-value {
  font-size: 12px;
  font-weight: 700;
  color: #0155A5;
  min-width: 40px;
  text-align: center;
  white-space: nowrap;
}

#fa-reset-tree-btn {
  display: none;
  align-items: center;
  gap: 4px;
  margin-left: 6px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background-color: #EE3E34;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.15s ease;
}

#fa-reset-tree-btn:hover {
  background-color: #d63029;
}

#fa-reset-tree-btn:active {
  background-color: #b82e26;
}

#familytree {
  background: transparent !important;
  padding: 20px;
  overflow: auto;
  touch-action: none;
}

#familytree > svg {
  background: transparent !important;
  touch-action: none;
}

.bft-search {
  display: none !important;
}

/* Card kleuren worden in de SVG template gedefinieerd (blauw/rood header + witte body) */

/* Verbeterde verbindingslijnen */
#familytree path {
  stroke: #555 !important;
  stroke-width: 3px !important;
  fill: none !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
}

/* Hover effect voor nodes */
#familytree .bft-node {
  cursor: pointer;
  transition: transform 0.2s ease, filter 0.2s ease;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.25));
}

#familytree .bft-node:hover {
  transform: scale(1.03);
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.4));
}

/* Zoekbalk styling */
#fa-search-container {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 1000;
  padding: 10px;
  max-width: 100%;
  background: rgba(200, 225, 255, 0.95);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  top: -100px;
}

/* Zoekbalk styling voor persoon pagina */
#fa-search-container-2 {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 1000;
  padding: 10px;
  max-width: 100%;
  background: rgba(200, 225, 255, 0.95);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  top: -30px!important;
}

#fa-search-input:focus {
  outline: none;
  border-color: #0275C6;
  box-shadow: 0 0 0 3px rgba(1, 85, 165, 0.1);
}

#fa-search-btn:hover {
  background-color: #0275C6;
}

#fa-search-btn:active {
  background-color: #003d7a;
}

/* Highlight voor gevonden node */
#familytree .bft-node.fa-search-highlight {
  filter: drop-shadow(0 0 12px rgba(255, 215, 0, 0.8)) drop-shadow(0 0 4px rgba(255, 215, 0, 0.6)) !important;
  animation: fa-pulse 2s ease-in-out infinite;
}

@keyframes fa-pulse {
  0%, 100% {
    filter: drop-shadow(0 0 12px rgba(255, 215, 0, 0.8)) drop-shadow(0 0 4px rgba(255, 215, 0, 0.6));
  }
  50% {
    filter: drop-shadow(0 0 18px rgba(255, 215, 0, 1)) drop-shadow(0 0 8px rgba(255, 215, 0, 0.8));
  }
}

/* Resultatenlijst styling */
#fa-search-results-list {
  margin-top: 8px;
  background: #fff;
  border: none;
  border-radius: 6px;
  max-height: 400px;
  overflow-y: auto;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Groepskopje (achternaam) */
.fa-search-group-header {
  padding: 8px 14px 6px;
  font-size: 13px;
  font-weight: 700;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 2px solid #ccc;
  background: transparent;
}

.fa-search-result-item {
  display: flex;
  align-items: center;
  padding: 8px 14px 8px 14px;
  cursor: pointer;
  border-bottom: 1px solid #e8e8e8;
  transition: background-color 0.15s ease;
}

.fa-search-result-item:last-child {
  border-bottom: none;
}

.fa-search-result-item:hover {
  background-color: #e8f0fe;
}

.fa-search-result-item.active {
  background-color: #e8e8e8;
}

.fa-search-result-item.active .fa-search-result-name {
  color: #333;
}

.fa-search-result-item.active .fa-search-result-date {
  color: #777;
}

.fa-search-result-dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  min-width: 12px;
  border-radius: 2px;
  margin-right: 8px;
}

.fa-search-result-name {
  font-size: 14px;
  font-weight: 600;
  color: #333;
}

.fa-search-result-date {
  font-size: 12px;
  color: #777;
  margin-left: auto;
  padding-left: 12px;
  white-space: nowrap;
}

/* Responsive zoekbalk + zoom + oriëntatie */
@media (max-width: 768px) {
  #fa-orientation-btns {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    margin: 0 0 6px 0;
    justify-content: center;
    border-radius: 6px;
  }

  .fa-orient-btn {
    flex: 1;
    justify-content: center;
  }

  #fa-zoom-container {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    margin: 0 0 6px 0;
    justify-content: center;
    border-radius: 6px;
  }

  #fa-zoom-slider {
    width: 120px;
  }

  #fa-search-container {
    position: relative !important;
    padding: 10px !important;
    margin-bottom: 10px;
    top: -120px!important;
  }
  
  #fa-search-container > div {
    flex-direction: column !important;
    align-items: stretch !important;
  }
  
  #fa-search-input {
    max-width: 100% !important;
    width: 100% !important;
  }
  
  #fa-search-btn {
    width: 100%;
  }
  
  #fa-search-results {
    text-align: center;
    margin-top: 5px;
  }

  #fa-search-results-list {
    max-height: 300px;
  }

  #familytree {
    margin-top: -140px;
  }
}

/* ══════════════════════════════════════
   Persoonspagina
   ══════════════════════════════════════ */

.fa-person-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 20px;
}

.fa-person-search-wrap {
  position: relative;
  width: 100%;
  margin-bottom: 20px;
}

/* Laden / Fout */
.fa-person-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  color: #666;
}

.fa-person-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #e0e0e0;
  border-top-color: #0155A5;
  border-radius: 50%;
  animation: fa-spin 0.8s linear infinite;
  margin-bottom: 16px;
}

@keyframes fa-spin {
  to { transform: rotate(360deg); }
}

.fa-person-error {
  text-align: center;
  padding: 40px;
  color: #EE3E34;
}

/* ── Header ── */
.fa-person-header {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 30px;
  background: rgba(255, 255, 255, 0.88);
  border-radius: 12px;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
  margin-bottom: 24px;
}

.fa-person-avatar {
  position: relative;
  width: 120px;
  height: 120px;
  min-width: 120px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.fa-person-avatar svg {
  width: 80px;
  height: 80px;
}

.fa-person-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

/* Camera overlay (alleen voor admin) */
.fa-person-avatar-upload {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.45);
  border-radius: 12px;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.fa-person-avatar-upload svg {
  width: 32px;
  height: 32px;
}

.fa-person-avatar:hover .fa-person-avatar-upload {
  opacity: 1;
}

/* Verwijder knop (kruisje rechtsboven) */
.fa-person-photo-delete {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 26px;
  height: 26px;
  background: #EE3E34;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.15s ease;
  z-index: 2;
}

.fa-person-photo-delete svg {
  width: 14px;
  height: 14px;
}

.fa-person-avatar:hover .fa-person-photo-delete {
  opacity: 1;
}

.fa-person-photo-delete:hover {
  transform: scale(1.15);
  background: #d63029;
}

.fa-person-header-info {
  flex: 1;
}

.fa-person-name {
  font-family: 'Jaro', sans-serif;
  font-size: 36px;
  color: #222 !important;
  margin: 0 0 8px !important;
  line-height: 1.2;
  text-shadow: none !important;
}

.fa-person-dates {
  font-size: 15px;
  color: #555;
  margin-bottom: 4px;
}

.fa-person-age {
  color: #888;
  font-style: italic;
}

.fa-person-children-badge {
  display: inline-block;
  font-size: 13px;
  color: #fff;
  background: #0155A5;
  padding: 3px 12px;
  border-radius: 12px;
  font-weight: 600;
  margin-top: 6px;
}

/* ── Grid layout ── */
.fa-person-grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 24px;
}

/* ── Secties (kaarten) ── */
.fa-person-section {
  background: rgba(255, 255, 255, 0.88);
  border-radius: 12px;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
  padding: 24px;
  margin-bottom: 24px;
}

.fa-person-section:last-child {
  margin-bottom: 0;
}

.fa-person-section-title {
  font-family: 'Jaro', sans-serif;
  font-size: 20px;
  color: #0155A5 !important;
  margin: 0 0 16px !important;
  padding-bottom: 10px;
  border-bottom: 2px solid #dde3eb;
  text-shadow: none !important;
}

/* ── Velden grid ── */
.fa-person-fields-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.fa-person-field label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: #8a94a6;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.fa-person-field-value {
  background: #f5f7fa;
  border: 1.5px solid #dde3eb;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 14px;
  color: #333;
  min-height: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ── Gender stip ── */
.fa-person-gender-dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  min-width: 12px;
  border-radius: 3px;
}

/* ── Gebeurtenissen ── */
.fa-person-events {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.fa-person-event {
  border-bottom: 1px solid #e8ecf2;
  padding-bottom: 16px;
}

.fa-person-event:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.fa-person-event-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.fa-person-event-detail {
  margin-top: 8px;
  font-size: 13px;
  color: #666;
  padding-left: 2px;
}

/* ── Familie items ── */
.fa-person-family-group {
  margin-bottom: 16px;
}

.fa-person-family-group:last-child {
  margin-bottom: 0;
}

.fa-person-family-subtitle {
  font-size: 12px;
  font-weight: 700;
  color: #8a94a6;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0 0 8px;
}

.fa-person-family-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: #f5f7fa;
  border: 1.5px solid #dde3eb;
  border-radius: 10px;
  margin-bottom: 6px;
  font-size: 14px;
}

.fa-person-family-item:last-child {
  margin-bottom: 0;
}

.fa-person-family-empty {
  color: #aab;
  font-style: italic;
}

.fa-person-family-date {
  margin-left: auto;
  font-size: 12px;
  color: #8a94a6;
  white-space: nowrap;
}

.fa-person-child-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  min-width: 22px;
  background: #dde3eb;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
  color: #555;
}

/* ── Links ── */
.fa-person-link {
  color: #0155A5 !important;
  text-decoration: none !important;
  font-weight: 600;
  transition: color 0.15s ease;
}

.fa-person-link:hover {
  color: #0275C6 !important;
  text-decoration: underline !important;
}

/* ── Kinderen lijst ── */
.fa-person-children-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* ── Zoekbalk op persoonspagina ── */
#fa-person-search-container {
  background: rgba(200, 225, 255, 0.95);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  padding: 10px 14px;
  margin-bottom: 20px;
}

#fa-person-search-input:focus {
  outline: none;
  border-color: #0275C6;
  box-shadow: 0 0 0 3px rgba(1, 85, 165, 0.1);
}

#fa-person-search-btn:hover {
  background-color: #0275C6;
}

#fa-person-search-btn:active {
  background-color: #003d7a;
}

#fa-person-search-results-list {
  margin-top: 8px;
  background: #fff;
  border: none;
  border-radius: 6px;
  max-height: 400px;
  overflow-y: auto;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* ── Responsive persoonspagina ── */
@media (max-width: 768px) {

  .fa-person-container {
    padding: 16px 12px;
  }

  /* Zoekbalk */
  #fa-search-container-2 {
    position: relative !important;
    top: 0 !important;
    right: auto !important;
    padding: 10px 0 !important;
    margin-bottom: 10px;
    box-shadow: none !important;
    background: transparent !important;
  }

  #fa-search-container-2 > div {
    flex-direction: column !important;
    align-items: stretch !important;
  }

  #fa-search-container-2 #fa-search-input {
    max-width: 100% !important;
    width: 100% !important;
  }

  #fa-search-container-2 #fa-search-btn {
    width: 100%;
  }

  /* Header */
  .fa-person-header {
    flex-direction: column;
    text-align: center;
    padding: 20px 16px;
    gap: 16px;
    margin-bottom: 16px;
  }

  .fa-person-avatar {
    width: 90px;
    height: 90px;
    min-width: 90px;
  }

  .fa-person-avatar svg {
    width: 60px;
    height: 60px;
  }

  .fa-person-name {
    font-size: 24px !important;
  }

  .fa-person-dates {
    font-size: 13px;
  }

  .fa-person-children-badge {
    font-size: 12px;
    padding: 2px 10px;
  }

  /* Grid layout */
  .fa-person-grid {
    grid-template-columns: 1fr !important;
    gap: 0;
  }

  /* Secties (kaarten) */
  .fa-person-section {
    padding: 16px;
    margin-bottom: 12px;
    border-radius: 10px;
  }

  .fa-person-section-title {
    font-size: 18px;
    margin-bottom: 12px !important;
    padding-bottom: 8px;
  }

  /* Velden grid */
  .fa-person-fields-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .fa-person-field-value {
    padding: 8px 12px;
    font-size: 13px;
  }

  /* Gebeurtenissen */
  .fa-person-event-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  /* Familie items */
  .fa-person-family-item {
    flex-wrap: wrap;
    padding: 8px 12px;
    font-size: 13px;
  }

  .fa-person-family-date {
    width: 100%;
    margin-left: 0;
    padding-left: 20px;
    margin-top: 2px;
  }

  /* Foto modal */
  .fa-photo-modal-content {
    max-width: 95% !important;
    max-height: 80% !important;
  }

  .fa-photo-modal-image {
    max-height: 65vh !important;
  }
}