@import url("./core/tokens.css");
@import url("./core/color-system.css");
@import url("./core/reset.css");
@import url("./core/base.css");
@import url("./layout/page-shell.css");
@import url("./components/cards.css");
@import url("./components/buttons.css?v=20260501-ourfamilycapsule-buttons");
@import url("./layout/topbar.css?v=20260505-language-family-slot");
@import url("./components/forms.css");
@import url("./components/summary.css");
@import url("./components/tree.css");
@import url("./components/modal.css");
@import url("./components/page-section-header.css");
@import url("./pages/home.css?v=20260505-section-header-migration-standard");

.tree-card .person-photo-wrapper { padding: 0; margin-bottom: 6px; }
.tree-card .person-photo { width: 100%; height: 140px; object-fit: cover; border-radius: 12px; display: block; }
.tree-card .person-name { margin-top: 4px; margin-bottom: 2px; padding: 0 6px; font-weight: 600; line-height: 1.15; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; text-align: center; }
.tree-card .person-years { margin-top: 4px; margin-bottom: 6px; font-size: 0.8rem; opacity: 0.85; }
.tree-card .person-card { padding: 10px 10px 8px; }

.authenticated-user {
  padding-bottom: 86px;
}

.signed-in-bottom-nav {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 1000;
  width: min(100%, 1040px);
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0;
  padding: 7px 8px calc(7px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, #7a432c, #4e281b);
  border: 1px solid rgba(230, 205, 164, 0.55);
  border-bottom: 0;
  border-radius: 18px 18px 0 0;
  box-shadow: 0 -10px 30px rgba(58, 33, 20, 0.28);
}

.bottom-nav-link {
  min-width: 0;
  color: #f7ead5;
  text-decoration: none;
  text-align: center;
  font-family: Inter, sans-serif;
  font-size: clamp(0.54rem, 1.4vw, 0.72rem);
  font-weight: 700;
  line-height: 1.1;
  display: grid;
  place-items: center;
  gap: 2px;
  padding: 4px 2px;
  border-radius: 12px;
}

.bottom-nav-link img {
  width: 20px;
  height: 20px;
  display: block;
  opacity: 0.92;
}

.bottom-nav-link.is-current,
.bottom-nav-link:hover {
  background: rgba(255, 244, 221, 0.13);
}

.lm-map {
  position: relative;
}

.map-lazy-placeholder {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 0.45rem;
  min-height: 320px;
  padding: clamp(1rem, 4vw, 2rem);
  text-align: center;
  color: #5b3524;
  background:
    radial-gradient(circle at 50% 36%, rgba(255, 247, 232, 0.88), rgba(238, 216, 184, 0.62) 54%, rgba(171, 117, 75, 0.20)),
    linear-gradient(135deg, rgba(255, 250, 238, 0.90), rgba(226, 198, 158, 0.62));
  border: 1px solid rgba(142, 98, 63, 0.24);
  border-radius: var(--radius-md);
}

.map-lazy-placeholder__icon {
  display: grid;
  place-items: center;
  width: 2.3rem;
  height: 2.3rem;
  border-radius: 999px;
  color: #8b5a34;
  background: rgba(255, 247, 232, 0.72);
  border: 1px solid rgba(142, 98, 63, 0.22);
  box-shadow: 0 10px 24px rgba(73, 42, 23, 0.12);
}

.map-lazy-placeholder__title {
  display: block;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.35rem, 4vw, 2rem);
  font-weight: 700;
  line-height: 1;
}

.map-lazy-placeholder__copy {
  display: block;
  max-width: 23rem;
  font-size: clamp(0.8rem, 2.5vw, 0.95rem);
  line-height: 1.35;
  color: rgba(88, 57, 38, 0.82);
}

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