:root {
  --bg: #f4f1ea;
  --panel: #fffdf8;
  --ink: #1c2430;
  --muted: #5c6773;
  --accent: #0f5c4c;
  --accent-soft: #d8ebe4;
  --border: #d9d2c5;
  --danger: #9b2c2c;
  --shadow: 0 18px 40px rgba(28, 36, 48, 0.08);
  --wa: #25d366;
  --wa-hover: #1fb855;
  --font-serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --font-ui: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-family: var(--font-serif);
}
* { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at top right, #efe2c8 0, transparent 32%),
    linear-gradient(180deg, #f8f5ef 0%, var(--bg) 100%);
  min-height: 100vh;
}
.header {
  border-bottom: 1px solid var(--border);
  background: rgba(255, 253, 248, 0.9);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.header-inner,
.layout,
.footer {
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}
.header-inner {
  padding: 1.5rem 1.25rem;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
}
.brand-lockup {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}
.brand-unicorn {
  font-size: 2.75rem;
  line-height: 1;
  filter: drop-shadow(0 2px 4px rgba(28, 36, 48, 0.12));
  -webkit-user-select: none;
  user-select: none;
}
.eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  color: var(--muted);
}
h1, h2, h3 { margin: 0.2rem 0 0; line-height: 1.15; }
.subtitle { margin: 0.5rem 0 0; color: var(--muted); max-width: 38rem; }
.header-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.65rem;
  flex: 1 1 auto;
  min-width: 0;
  max-width: none;
}
.lang-picker-wrap {
  flex: 0 0 auto;
  align-self: center;
}
.lang-picker {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.2rem;
  align-items: center;
  width: 11.75rem;
  padding: 0.1rem 0;
}
.lang-btn {
  flex-shrink: 0;
  font-size: 1.05rem;
  line-height: 1;
  padding: 0.18rem 0.3rem;
  border: 2px solid transparent;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  opacity: 0.72;
}
.lang-btn:hover {
  opacity: 1;
  background: #f5f2eb;
}
.lang-btn.is-active {
  opacity: 1;
  border-color: var(--accent);
  background: var(--accent-soft);
}
.header-top-bar {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  min-width: 0;
}
.site-nav {
  display: inline-flex;
  flex-shrink: 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}
.site-nav-btn {
  border: none;
  background: transparent;
  padding: 0.45rem 0.7rem;
  font-family: var(--font-ui);
  font-size: 0.82rem;
  cursor: pointer;
  color: var(--muted);
  white-space: nowrap;
}
.site-nav-btn.is-active {
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
}
.assistant-btn {
  display: inline-flex;
  flex-shrink: 0;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0.1rem;
  min-height: 2.75rem;
  padding: 0.45rem 0.85rem 0.45rem 2.5rem;
  background: var(--wa);
  color: #fff !important;
  text-decoration: none;
  font-family: var(--font-ui);
  border-radius: 12px;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.28);
  position: relative;
  transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.assistant-btn::before {
  content: "";
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.25rem;
  height: 1.25rem;
  background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M17.472 14.382c-.297-.149-1.758-.867-2.03-.967-.273-.099-.471-.148-.67.15-.197.297-.767.966-.94 1.164-.173.199-.347.223-.644.075-.297-.15-1.255-.463-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.298-.347.446-.52.149-.174.198-.298.298-.497.099-.198.05-.371-.025-.52-.075-.149-.669-1.612-.916-2.207-.242-.579-.487-.5-.669-.51-.173-.008-.371-.01-.57-.01-.198 0-.52.074-.792.372-.272.297-1.04 1.016-1.04 2.479 0 1.462 1.065 2.875 1.213 3.074.149.198 2.096 3.2 5.077 4.487.709.306 1.262.489 1.694.625.712.227 1.36.195 1.871.118.571-.085 1.758-.719 2.006-1.413.248-.694.248-1.289.173-1.413-.074-.124-.272-.198-.57-.347m-5.421 7.403h-.004a9.87 9.87 0 01-5.031-1.378l-.361-.214-3.741.982.998-3.648-.235-.374a9.86 9.86 0 01-1.51-5.26c.001-5.45 4.436-9.884 9.888-9.884 2.64 0 5.122 1.03 6.988 2.898a9.825 9.825 0 012.893 6.994c-.003 5.45-4.435 9.884-9.881 9.884m8.413-18.297A11.815 11.815 0 0012.05 0C5.495 0 .16 5.335.157 11.892c0 2.096.547 4.142 1.588 5.945L.057 24l6.305-1.654a11.882 11.882 0 005.683 1.448h.005c6.554 0 11.89-5.335 11.893-11.893a11.821 11.821 0 00-3.48-8.413z'/%3E%3C/svg%3E");
}
.assistant-btn:hover {
  background: var(--wa-hover);
  transform: translateY(-1px);
}
.assistant-btn.is-unconfigured {
  background: linear-gradient(135deg, #3d8f7a 0%, #2d6f5f 100%);
  box-shadow: 0 2px 10px rgba(15, 92, 76, 0.2);
}
.assistant-btn-label {
  font-weight: 700;
  font-size: 0.92rem;
  line-height: 1.1;
}
.assistant-btn-sub {
  font-size: 0.68rem;
  opacity: 0.92;
  font-weight: 500;
  line-height: 1.1;
}
.assistant-btn-large {
  align-items: center;
  text-align: center;
  padding: 0.85rem 1.5rem 0.85rem 3rem;
  min-width: 14rem;
}
.assistant-btn-large .assistant-btn-label {
  font-size: 1rem;
}
.assistant-fab {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 40;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.7rem 1rem 0.7rem 0.85rem;
  background: var(--wa);
  color: #fff !important;
  text-decoration: none;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: 999px;
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.4);
  transition: transform 0.15s ease, background 0.15s ease;
}
.assistant-fab:hover {
  background: var(--wa-hover);
  transform: scale(1.03);
}
.assistant-fab.is-unconfigured {
  background: linear-gradient(135deg, #3d8f7a 0%, #2d6f5f 100%);
}
.assistant-fab-icon {
  width: 1.35rem;
  height: 1.35rem;
  background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M17.472 14.382c-.297-.149-1.758-.867-2.03-.967-.273-.099-.471-.148-.67.15-.197.297-.767.966-.94 1.164-.173.199-.347.223-.644.075-.297-.15-1.255-.463-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.298-.347.446-.52.149-.174.198-.298.298-.497.099-.198.05-.371-.025-.52-.075-.149-.669-1.612-.916-2.207-.242-.579-.487-.5-.669-.51-.173-.008-.371-.01-.57-.01-.198 0-.52.074-.792.372-.272.297-1.04 1.016-1.04 2.479 0 1.462 1.065 2.875 1.213 3.074.149.198 2.096 3.2 5.077 4.487.709.306 1.262.489 1.694.625.712.227 1.36.195 1.871.118.571-.085 1.758-.719 2.006-1.413.248-.694.248-1.289.173-1.413-.074-.124-.272-.198-.57-.347m-5.421 7.403h-.004a9.87 9.87 0 01-5.031-1.378l-.361-.214-3.741.982.998-3.648-.235-.374a9.86 9.86 0 01-1.51-5.26c.001-5.45 4.436-9.884 9.888-9.884 2.64 0 5.122 1.03 6.988 2.898a9.825 9.825 0 012.893 6.994c-.003 5.45-4.435 9.884-9.881 9.884m8.413-18.297A11.815 11.815 0 0012.05 0C5.495 0 .16 5.335.157 11.892c0 2.096.547 4.142 1.588 5.945L.057 24l6.305-1.654a11.882 11.882 0 005.683 1.448h.005c6.554 0 11.89-5.335 11.893-11.893a11.821 11.821 0 00-3.48-8.413z'/%3E%3C/svg%3E");
}
.sync-banner {
  font-family: var(--font-ui);
  font-size: 0.82rem;
  color: var(--muted);
  background: var(--accent-soft);
  padding: 0.55rem 0.85rem;
  border-radius: 10px;
  width: 100%;
  text-align: right;
}
.sync-banner.warn { background: #fff3d6; color: #7a5b00; }
.pagination {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-top: 1rem;
}
.pagination button {
  cursor: pointer;
  background: var(--panel);
}
.pagination button:disabled { opacity: 0.4; cursor: not-allowed; }
.back-to-top {
  position: fixed;
  right: 1.25rem;
  bottom: 5.25rem;
  z-index: 39;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.55rem 0.9rem;
  font-family: var(--font-ui);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 999px;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: opacity 0.15s ease, transform 0.15s ease;
}
.back-to-top:hover {
  transform: translateY(-2px);
  background: var(--accent-soft);
}
.back-to-top.hidden {
  display: none;
}
@media (min-width: 901px) {
  .back-to-top {
    bottom: 1.25rem;
  }
}
.hint code { font-size: 0.85em; }
.source-toggle {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
  background: var(--panel);
}
.source-btn {
  border: 0;
  background: transparent;
  padding: 0.65rem 1rem;
  cursor: pointer;
  color: var(--muted);
  font: inherit;
}
.source-btn.active {
  background: var(--accent);
  color: white;
}
.layout {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  width: 100%;
}
.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 1.25rem;
}
.filters-bar-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem 1.5rem;
  margin-bottom: 1rem;
}
.filters-bar-head h2 { margin: 0; }
.filters-bar-head .hint { margin: 0; }

.search-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.filter-row {
  width: 100%;
}

.filter-row-main {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem 1rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1 1 10rem;
  min-width: 8.5rem;
  max-width: 14rem;
  margin: 0;
}
.field-narrow { flex: 0 1 6.5rem; min-width: 5.5rem; max-width: 7rem; }
.field-wide { flex: 2 1 14rem; min-width: 12rem; max-width: 22rem; }
.field-action {
  flex: 0 0 auto;
  min-width: auto;
  max-width: none;
}
.field-action-label { visibility: hidden; height: 0; margin: 0; overflow: hidden; }
.field span { font-size: 0.85rem; color: var(--muted); }
input, select, button {
  font-family: var(--font-ui);
  font-size: 0.92rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  padding: 0.65rem 0.75rem;
}
input:focus-visible,
select:focus-visible,
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.primary {
  width: 100%;
  min-width: 6.5rem;
  background: var(--accent);
  color: white;
  border-color: var(--accent);
  cursor: pointer;
  white-space: nowrap;
}
.primary:hover { filter: brightness(1.05); }
.hint { color: var(--muted); font-size: 0.85rem; }
.results-header {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 1rem;
}
.results-head-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 1.5rem;
}
.results-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.65rem;
  flex: 1 1 auto;
  min-width: min(100%, 20rem);
}
.results-title-row h2 {
  margin: 0;
  flex: 0 0 auto;
  white-space: nowrap;
}
.listing-type-actions {
  display: flex;
  gap: 0.5rem;
  flex: 0 0 auto;
}
.listing-types-inline {
  flex: 1 1 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
}
.results-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  width: 100%;
}
.results-meta,
#results-meta {
  color: var(--muted);
  margin: 0;
  font-size: 0.9rem;
  flex: 1 1 auto;
}
.view-toggle {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}
.view-btn {
  border: none;
  background: transparent;
  padding: 0.45rem 0.9rem;
  font: inherit;
  font-size: 0.85rem;
  cursor: pointer;
  color: var(--muted);
}
.view-btn.is-active {
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
}
.view-btn-shortlist.has-items {
  border-color: var(--accent);
}
.shortlist-count {
  font-size: 0.8em;
  opacity: 0.85;
}
.card-aside {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.5rem;
  width: 168px;
}
.card-aside .shortlist-btn {
  width: 100%;
  text-align: center;
  padding: 0.4rem 0.35rem;
  font-size: 0.78rem;
  line-height: 1.25;
}
.summary-btn,
.summary-refresh {
  cursor: pointer;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 8px;
  padding: 0.45rem 0.75rem;
  font: inherit;
  font-size: 0.85rem;
  color: var(--accent);
}
.summary-btn:hover,
.summary-refresh:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
}
.doc-summary {
  margin: 0.75rem 0 0;
  padding: 0.85rem 1rem;
  background: #f8faf9;
  border: 1px solid var(--accent-soft);
  border-radius: 10px;
  font-size: 0.92rem;
  line-height: 1.45;
}
.doc-summary.hidden {
  display: none;
}
.summary-overview {
  margin: 0 0 0.65rem;
}
.summary-facts {
  margin: 0 0 0.75rem;
  padding-left: 1.2rem;
}
.summary-by-doc section {
  margin-bottom: 0.65rem;
}
.summary-by-doc h4 {
  margin: 0 0 0.25rem;
  font-size: 0.88rem;
  color: var(--muted);
}
.summary-caveats,
.summary-warnings {
  margin: 0.5rem 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}
.summary-warnings {
  color: #7a5b00;
}
.summary-meta {
  margin: 0.5rem 0 0;
  font-size: 0.78rem;
  color: var(--muted);
}
.summary-disclaimer {
  margin: 0.65rem 0 0;
  font-size: 0.78rem;
  color: var(--muted);
  font-style: italic;
}
.summary-loading {
  margin: 0;
  color: var(--muted);
}
.summary-error {
  margin: 0;
  color: var(--danger);
}
body.summary-lightbox-open {
  overflow: hidden;
}
.summary-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}
.summary-lightbox[hidden] {
  display: none;
}
.summary-lightbox-backdrop {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 0;
  border: none;
  background: rgba(28, 36, 48, 0.52);
  cursor: pointer;
}
.summary-lightbox-panel {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: min(560px, 100%);
  max-height: min(85vh, 720px);
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.summary-lightbox-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1rem 0.75rem;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.summary-lightbox-header h2 {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.3;
  padding-right: 0.5rem;
}
.summary-lightbox-close {
  flex: 0 0 auto;
  width: 2.25rem;
  height: 2.25rem;
  margin: -0.15rem -0.15rem 0 0;
  padding: 0;
  border: none;
  border-radius: 8px;
  background: transparent;
  font-size: 1.65rem;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
}
.summary-lightbox-close:hover {
  background: #f5f2eb;
  color: var(--ink);
}
.summary-lightbox-body {
  padding: 1rem 1.15rem 1.15rem;
  overflow-y: auto;
  font-size: 0.92rem;
  line-height: 1.45;
}
.summary-lightbox-pdf {
  margin: 0 0 0.75rem;
  font-size: 0.85rem;
}
.summary-lightbox-pdf a {
  color: var(--accent);
}
.summary-lightbox-body .summary-refresh {
  margin-top: 0.75rem;
}
.shortlist-btn {
  cursor: pointer;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 8px;
  padding: 0.45rem 0.75rem;
  font: inherit;
  font-size: 0.85rem;
  color: var(--muted);
}
.shortlist-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.shortlist-btn.is-saved {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
  font-weight: 600;
}
.results-meta-row .text-btn {
  flex: 0 0 auto;
}
.view-btn:hover:not(.is-active) {
  background: #f5f2eb;
}
.results-map {
  height: min(70vh, 640px);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  background: #e8e4dc;
  margin-bottom: 1rem;
}
.results-map .leaflet-container {
  height: 100%;
  width: 100%;
  font-family: inherit;
}
.map-popup {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
}
.map-popup-media {
  flex: 0 0 auto;
}
.map-popup-thumb-wrap {
  margin: 0;
}
.map-popup-thumb {
  width: 88px;
  height: 66px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}
.map-popup-thumb-cap {
  margin: 0.2rem 0 0;
  font-size: 0.62rem;
  color: var(--muted);
  text-align: center;
  max-width: 88px;
}
.map-popup-body {
  flex: 1 1 auto;
  min-width: 0;
}
.map-popup h4 {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
}
.map-popup p {
  margin: 0.15rem 0;
  font-size: 0.82rem;
  color: var(--muted);
}
.map-popup-value {
  color: var(--ink) !important;
  font-weight: 600;
}
.map-popup-label {
  font-weight: 500;
  color: var(--muted);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  display: block;
  margin-bottom: 0.1rem;
}
.map-popup-links a {
  color: var(--accent);
  font-size: 0.82rem;
}
.leaflet-popup-content .doc-links {
  margin-top: 0.5rem;
}
.results-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.65rem 1rem;
  flex: 1 1 auto;
  justify-content: flex-end;
}
.toolbar-field {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 6.5rem;
}
.toolbar-field span {
  font-size: 0.75rem;
  color: var(--muted);
}
.toolbar-field input,
.toolbar-field select {
  min-width: 7.5rem;
}
.toolbar-field-sort select {
  min-width: 11rem;
}
.toolbar-apply {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
  cursor: pointer;
  padding: 0.65rem 1rem;
  white-space: nowrap;
}
.toolbar-apply:hover { filter: brightness(1.05); }
.status {
  padding: 0.75rem 1rem;
  border-radius: 10px;
  margin-bottom: 1rem;
  background: var(--accent-soft);
}
.status.error { background: #f8e4e4; color: var(--danger); }
.hidden { display: none !important; }
.services-panel {
  padding: 1.5rem 1.25rem 2rem;
}
.services-hero {
  margin-bottom: 1.5rem;
  max-width: 42rem;
}
.services-lead {
  margin: 0.5rem 0 0;
  color: var(--muted);
  line-height: 1.5;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.service-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem 1.1rem;
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.service-card:hover {
  border-color: #b8d4cc;
  box-shadow: 0 6px 18px rgba(15, 92, 76, 0.07);
}
.service-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}
.service-card p {
  margin: 0 0 0.5rem;
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--ink);
}
.service-tag {
  margin: 0.65rem 0 0 !important;
  font-size: 0.75rem !important;
  color: var(--accent) !important;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.services-package {
  border: 1px solid var(--accent-soft);
  background: var(--accent-soft);
  border-radius: 12px;
  padding: 1.1rem 1.25rem;
  margin-bottom: 1.25rem;
  max-width: 40rem;
}
.services-package h3 {
  margin: 0 0 0.5rem;
}
.services-package ol {
  margin: 0.5rem 0 0;
  padding-left: 1.25rem;
  line-height: 1.5;
}
.services-guidance {
  border: 1px solid var(--accent-soft);
  background: #f6fbf9;
  border-radius: 12px;
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
  max-width: 42rem;
}
.services-guidance h3 {
  margin: 0 0 0.5rem;
  color: var(--accent);
  font-size: 1rem;
}
.services-guidance p {
  margin: 0 0 0.5rem;
  line-height: 1.5;
}
.services-guidance ul {
  margin: 0.5rem 0 0;
  padding-left: 1.2rem;
  line-height: 1.5;
  color: var(--muted);
}
.services-boundary {
  border: 1px solid #e8d4d4;
  background: #fdf8f8;
  border-radius: 12px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  max-width: 42rem;
}
.services-boundary h3 {
  margin: 0 0 0.5rem;
  color: var(--danger);
  font-size: 1rem;
}
.services-boundary ul {
  margin: 0;
  padding-left: 1.2rem;
  line-height: 1.5;
  color: var(--muted);
}
.services-cta-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.35rem 1.5rem;
  background: linear-gradient(165deg, #f6fbf9 0%, #fff 55%);
  max-width: 36rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.85rem;
}
.services-cta-card h3 {
  margin: 0;
  font-size: 1.15rem;
}
.services-cta-copy p {
  margin: 0.35rem 0 0;
  line-height: 1.5;
  color: var(--muted);
}
.services-cta-note {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0;
}
.btn-secondary {
  font-family: var(--font-ui);
  background: #fff;
  border: 1px solid var(--border);
  color: var(--accent);
  padding: 0.55rem 1rem;
  border-radius: 10px;
  cursor: pointer;
  font-size: 0.88rem;
}
.btn-secondary:hover {
  background: var(--accent-soft);
}
.cards {
  display: grid;
  gap: 1rem;
  min-width: 0;
}
.card {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
  gap: 1rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1rem;
  background: #fff;
  min-width: 0;
  max-width: 100%;
}
.card-body {
  min-width: 0;
  overflow: hidden;
}
.card-has-photo {
  grid-template-columns: 168px 1fr;
}
.thumb-wrap {
  margin: 0;
}
.thumb-wrap a {
  display: block;
  border-radius: 10px;
  overflow: hidden;
  background: #eef2f0;
}
.thumb {
  width: 168px;
  height: 126px;
  object-fit: cover;
  border-radius: 10px;
  display: block;
  background: #eef2f0;
}
.thumb-cap {
  margin: 0.35rem 0 0;
  font-size: 0.72rem;
  color: var(--muted);
  text-align: center;
  max-width: 168px;
  line-height: 1.25;
}
img.pdf-thumb-loading {
  background: linear-gradient(110deg, #eef2f0 8%, #f8faf9 18%, #eef2f0 33%);
  background-size: 200% 100%;
  animation: pdf-thumb-shimmer 1.2s linear infinite;
}
img.pdf-thumb-fallback {
  background: #eef2f0 center / 2rem no-repeat;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='1.5'%3E%3Cpath d='M4 7h16v12H4z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3Cpath d='M8 7l1.5-3h5L16 7'/%3E%3C/svg%3E");
}
@keyframes pdf-thumb-shimmer {
  to { background-position-x: -200%; }
}
.card header {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  align-items: start;
}
.badge {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
}
dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem 1rem;
  margin: 0.75rem 0;
}
dt { font-size: 0.75rem; color: var(--muted); margin: 0; }
dd { margin: 0.1rem 0 0; }
.card-links {
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.card-links-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.card-links-label {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin: 0;
}
.card-official-link {
  color: var(--accent);
  font-family: var(--font-ui);
  font-size: 0.88rem;
  font-weight: 600;
}
.doc-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
}
.doc-link-row {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.doc-link-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}
.doc-link-actions .doc-link {
  margin-right: 0;
}
.doc-summary-btn {
  cursor: pointer;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 6px;
  padding: 0.2rem 0.55rem;
  font: inherit;
  font-size: 0.78rem;
  color: var(--accent);
}
.doc-summary-btn:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
}
.doc-summary-btn:disabled {
  opacity: 0.6;
  cursor: wait;
}
.card-links .doc-summary {
  margin-top: 0.15rem;
}
.photo-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.35rem;
  width: 100%;
  max-width: 100%;
}
.photo-gallery-item {
  flex: 0 0 auto;
  display: block;
  line-height: 0;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #eef2f0;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.photo-gallery-item:hover {
  border-color: var(--accent);
  box-shadow: 0 2px 8px rgba(15, 92, 76, 0.15);
}
.photo-gallery-img,
.photo-gallery-item img,
.photo-gallery-placeholder {
  width: 80px;
  height: 60px;
  object-fit: cover;
  display: block;
}
.photo-gallery-placeholder {
  background: #eef2f0 center / 1.75rem no-repeat;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='1.5'%3E%3Cpath d='M4 7h16v12H4z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3Cpath d='M8 7l1.5-3h5L16 7'/%3E%3C/svg%3E");
}
.photo-gallery-more {
  flex: 1 1 100%;
  font-size: 0.78rem;
  color: var(--muted);
  padding: 0.15rem 0 0;
}
.card-skeleton .skeleton-block,
.card-skeleton .skeleton-line {
  background: linear-gradient(110deg, #eef2f0 8%, #f8faf9 18%, #eef2f0 33%);
  background-size: 200% 100%;
  animation: pdf-thumb-shimmer 1.2s linear infinite;
  border-radius: 8px;
}
.card-skeleton .skeleton-block {
  width: 168px;
  height: 126px;
}
.card-skeleton .skeleton-line {
  height: 0.85rem;
  margin-bottom: 0.5rem;
}
.card-skeleton .skeleton-line-lg {
  height: 1.1rem;
  width: 70%;
}
.map-popup-photos {
  margin: 0.5rem 0;
}
.card-links .doc-link {
  display: inline-block;
  margin-right: 0.75rem;
  margin-top: 0.25rem;
}
.empty { color: var(--muted); }
.footer {
  margin-top: 0.75rem;
  padding: 0 1.25rem 5rem;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}
.footer-nav {
  margin: 0.5rem 0 0;
  font-family: var(--font-ui);
}
.footer-link {
  background: none;
  border: none;
  padding: 0;
  color: var(--accent);
  cursor: pointer;
  font: inherit;
  font-size: inherit;
  text-decoration: underline;
}
@media (min-width: 901px) {
  .header-inner {
    flex-wrap: nowrap;
    align-items: center;
  }
  .brand-lockup {
    flex: 1 1 auto;
    min-width: 0;
    max-width: 48%;
  }
  .header-actions {
    flex: 0 1 auto;
    align-items: flex-end;
  }
}
@media (min-width: 901px) and (max-width: 1280px) {
  .assistant-btn .assistant-btn-sub { display: none; }
  .assistant-btn {
    padding: 0.45rem 0.75rem 0.45rem 2.45rem;
    min-height: 2.5rem;
  }
}
@media (max-width: 900px) {
  .header-inner { flex-direction: column; }
  .header-actions { max-width: none; width: 100%; }
  .header-top-bar {
    flex-wrap: wrap;
    justify-content: flex-start;
    width: 100%;
    row-gap: 0.5rem;
  }
  .lang-picker-wrap {
    flex: 1 1 100%;
    order: 4;
  }
  .lang-picker {
    width: 100%;
    justify-content: flex-start;
  }
  .sync-banner { text-align: left; }
  .assistant-btn .assistant-btn-sub { display: none; }
  .assistant-btn { padding-left: 2.45rem; min-height: 2.5rem; }
  .results-head-row { flex-direction: column; align-items: stretch; }
  .results-toolbar { justify-content: flex-start; }
  .filter-row-main { justify-content: flex-start; }
  .field { max-width: none; flex: 1 1 45%; }
  .field-wide { flex: 1 1 100%; }
  .field-action { flex: 1 1 100%; }
  .field-action .primary { width: 100%; }
  .card { grid-template-columns: 1fr; }
  .card-aside { width: 100%; }
  .thumb { width: 100%; height: 200px; }
  .thumb-cap { max-width: none; }
}
@media (min-width: 901px) {
  .assistant-fab { display: none; }
}

.property-types-field {
  border: 0;
  padding: 1rem 0 0;
  margin: 0;
  border-top: 1px solid var(--border);
}
.property-types-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  margin-bottom: 0.65rem;
  width: 100%;
}
.property-types-field legend {
  font-size: 0.85rem;
  color: var(--muted);
  padding: 0;
  margin: 0;
  float: none;
}
.legend-hint { font-weight: normal; opacity: 0.85; }
.property-type-actions {
  display: flex;
  gap: 0.75rem;
}
.text-btn {
  background: none;
  border: 0;
  padding: 0;
  color: var(--accent);
  cursor: pointer;
  font-size: 0.8rem;
  text-decoration: underline;
}
.property-type-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-start;
  align-items: stretch;
  width: 100%;
}
.type-chip {
  display: grid;
  grid-template-columns: 2rem 1fr;
  gap: 0.4rem 0.5rem;
  align-items: center;
  padding: 0.4rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  background: #fff;
  flex: 0 1 auto;
  min-width: 11rem;
  transition: border-color 0.15s, background 0.15s;
}
.type-chip-inline {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.3rem 0.55rem;
  min-width: 0;
  grid-template-columns: none;
}
.type-chip-inline .type-icon {
  font-size: 1rem;
}
.type-chip-inline .type-en {
  font-size: 0.78rem;
  line-height: 1.1;
  white-space: nowrap;
}
.type-chip:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.type-chip input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.type-icon {
  font-size: 1.25rem;
  line-height: 1;
  text-align: center;
}
.type-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}
.type-en {
  font-size: 0.82rem;
  line-height: 1.2;
}
.type-de {
  font-size: 0.72rem;
  color: var(--muted);
  line-height: 1.2;
}
.type-count {
  font-size: 0.7rem;
  color: var(--muted);
}

.auth-cluster {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 1;
  min-width: 0;
  flex-wrap: nowrap;
}
.auth-user-label {
  font-size: 0.78rem;
  color: var(--muted);
  max-width: 9rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.btn-ghost {
  font-family: var(--font-ui);
  font-size: 0.82rem;
  padding: 0.35rem 0.65rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text);
  cursor: pointer;
}
.btn-ghost:hover {
  background: var(--accent-soft);
}
body.app-locked {
  overflow: hidden;
}
.app-shell[hidden] {
  display: none !important;
}
.auth-splash {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: linear-gradient(165deg, #e8f0ec 0%, var(--bg) 42%, #dce8e2 100%);
}
.auth-splash[hidden] {
  display: none;
}
.auth-splash-inner {
  width: min(440px, 100%);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.auth-splash-brand {
  text-align: center;
}
.auth-splash-brand h1 {
  margin: 0.35rem 0 0.5rem;
  font-size: 1.65rem;
}
.auth-splash-lead {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.45;
  max-width: 36ch;
  margin-inline: auto;
}
.lang-picker-splash {
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
  max-width: 14rem;
  margin-inline: auto;
}
.auth-splash-panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.12);
  padding: 1.1rem 1.25rem 1.25rem;
}
.auth-splash-header {
  margin-bottom: 1rem;
}
.auth-splash-header h2 {
  margin: 0;
  font-size: 1.15rem;
  text-align: center;
}
.auth-form .field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 0.85rem;
}
.auth-form .field input {
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font: inherit;
}
.auth-error {
  min-height: 1.2rem;
  color: #a33;
  font-size: 0.85rem;
  margin: 0 0 0.5rem;
}
.auth-submit {
  width: 100%;
  margin-bottom: 0.5rem;
}
.auth-mode-toggle {
  width: 100%;
  text-align: center;
}


body.ai-settings-open {
  overflow: hidden;
}
.ai-settings-dialog {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 1rem;
}
.ai-settings-dialog[hidden] {
  display: none !important;
}
.ai-settings-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(15, 23, 42, 0.45);
  cursor: pointer;
}
.ai-settings-panel {
  position: relative;
  width: min(100%, 28rem);
  max-height: 90vh;
  overflow: auto;
  background: #fff;
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.18);
  padding: 1.25rem 1.25rem 1.5rem;
}
.ai-settings-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}
.ai-settings-header h2 {
  margin: 0;
  font-size: 1.15rem;
}
.ai-settings-close {
  border: 0;
  background: transparent;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  color: var(--muted);
}
.ai-settings-lead {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.45;
}
.ai-settings-form .field {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 0.85rem;
}
.ai-settings-form input,
.ai-settings-form select {
  width: 100%;
  font: inherit;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: 8px;
}
.ai-settings-status {
  min-height: 1.25rem;
  margin: 0 0 0.75rem;
  font-size: 0.85rem;
  color: var(--accent);
}
.ai-settings-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.summary-ai-settings-btn {
  margin-top: 0.75rem;
}

.footer-donate {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
  padding: 0 0 0.5rem;
}
.footer-donate-card {
  position: relative;
  width: min(100%, 36rem);
  border-radius: 22px;
  padding: 1px;
  background: linear-gradient(
    145deg,
    rgba(15, 92, 76, 0.35) 0%,
    rgba(217, 210, 197, 0.9) 45%,
    rgba(255, 221, 0, 0.45) 100%
  );
  box-shadow: var(--shadow);
}
.footer-donate-glow {
  position: absolute;
  inset: -20% -10% auto;
  height: 55%;
  background: radial-gradient(ellipse at center, rgba(15, 92, 76, 0.12) 0%, transparent 70%);
  pointer-events: none;
}
.footer-donate-card-inner {
  position: relative;
  background: var(--panel);
  border-radius: 21px;
  padding: 1.35rem 1.35rem 1.15rem;
  font-family: var(--font-ui);
}
.footer-donate-header {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  margin-bottom: 1rem;
}
.footer-donate-icon {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 14px;
  background: linear-gradient(145deg, var(--accent-soft) 0%, #fff 100%);
  border: 1px solid var(--border);
  font-size: 1.35rem;
  line-height: 1;
  box-shadow: 0 4px 14px rgba(15, 92, 76, 0.1);
}
.footer-donate-header-text {
  min-width: 0;
}
.footer-donate-title {
  margin: 0 0 0.35rem;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.2;
}
.footer-donate-lead {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.5;
  color: var(--muted);
}
.footer-donate-actions {
  margin-bottom: 1rem;
}
.footer-donate-bmc {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffe033 0%, #ffdd00 100%);
  color: #1a1a1a;
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 14px rgba(255, 221, 0, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.footer-donate-bmc:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(255, 221, 0, 0.45);
}
.footer-donate-bmc-icon {
  font-size: 1rem;
  line-height: 1;
}
.footer-donate-crypto {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}
.footer-donate-crypto-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.65rem;
  padding: 0.55rem 0.65rem;
  border-radius: 12px;
  background: linear-gradient(180deg, #faf8f4 0%, #f3efe8 100%);
  border: 1px solid var(--border);
}
.footer-donate-chip {
  flex-shrink: 0;
  display: inline-block;
  min-width: 2.6rem;
  padding: 0.2rem 0.45rem;
  border-radius: 6px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-align: center;
  color: #fff;
}
.footer-donate-chip-btc {
  background: linear-gradient(135deg, #f7931a 0%, #e2760f 100%);
}
.footer-donate-chip-eth {
  background: linear-gradient(135deg, #627eea 0%, #4a5fc7 100%);
}
.footer-donate-chip-sol {
  background: linear-gradient(135deg, #9945ff 0%, #14f195 100%);
}
.footer-donate-addr-wrap {
  flex: 1 1 12rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
}
.footer-donate-addr {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.7rem;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.85);
  padding: 0.35rem 0.5rem;
  border-radius: 8px;
  border: 1px solid rgba(217, 210, 197, 0.8);
}
.footer-donate-copy {
  flex-shrink: 0;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 8px;
  padding: 0.3rem 0.55rem;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--accent);
  transition: background 0.15s ease, border-color 0.15s ease;
}
.footer-donate-copy:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
}
@media (max-width: 520px) {
  .footer-donate-card-inner {
    padding: 1.1rem;
  }
  .footer-donate-addr-wrap {
    flex-basis: 100%;
  }
  .footer-donate-copy {
    margin-left: auto;
  }
}
