:root {
  --bg: #050505;
  --bg-2: #0d0d0d;
  --panel: #121212;
  --panel-2: #171717;
  --line: #2a2a2a;
  --text: #f4f4f4;
  --muted: #a6a6a6;
  --yellow: #ffcf00;
  --yellow-2: #ffe066;
  --yellow-glow: rgba(255, 207, 0, 0.28);
  --ok: #5edf7d;
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Sora", system-ui, -apple-system, sans-serif;
  color: var(--text);
  background:
    radial-gradient(1200px 500px at 12% -12%, rgba(255, 207, 0, 0.2), transparent 55%),
    radial-gradient(900px 420px at 100% 8%, rgba(255, 207, 0, 0.11), transparent 60%),
    linear-gradient(180deg, #080808 0%, #040404 100%);
  min-height: 100vh;
}

.portal-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(
      135deg,
      rgba(255, 207, 0, 0.02) 0 2px,
      transparent 2px 20px
    );
  mask-image: radial-gradient(circle at 50% 15%, #000 42%, transparent 100%);
}

.container {
  width: min(1220px, 92vw);
  margin: 0 auto;
  padding: 26px 0 56px;
  position: relative;
  z-index: 1;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(24, 24, 24, 0.95), rgba(12, 12, 12, 0.95));
  backdrop-filter: blur(8px);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
}

.logo-mark {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 10px 25px rgba(255, 207, 0, 0.28);
  padding: 3px;
}

.logo-text {
  font-family: "Teko", sans-serif;
  letter-spacing: 0.08em;
  font-size: 2rem;
  line-height: 1;
}

.main-nav {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.main-nav a {
  color: #d6d6d6;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: 0.2s ease;
}

.main-nav a:hover {
  color: #101010;
  background: var(--yellow);
}

.hero {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 14px;
}

.hero-copy,
.hero-stats {
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(18, 18, 18, 0.95), rgba(10, 10, 10, 0.95));
}

.hero-copy {
  padding: 34px;
}

.kicker {
  margin: 0 0 10px;
  color: var(--yellow-2);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.74rem;
  font-weight: 700;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Teko", sans-serif;
  letter-spacing: 0.02em;
  line-height: 1.02;
}

h1 {
  font-size: clamp(2.6rem, 5vw, 4.3rem);
}

h2 {
  font-size: clamp(1.7rem, 2.8vw, 2.4rem);
}

h3 {
  font-size: clamp(1.3rem, 2.2vw, 1.7rem);
}

.lead {
  margin: 14px 0 0;
  color: #dfdfdf;
  max-width: 68ch;
  font-size: 0.98rem;
  line-height: 1.7;
}

.hero-ctas {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.btn {
  border: 0;
  text-decoration: none;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 12px;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  color: #0d0d0d;
  background: linear-gradient(135deg, var(--yellow) 0%, #ffe37a 100%);
  box-shadow: 0 8px 24px var(--yellow-glow);
}

.btn-primary:hover {
  box-shadow: 0 10px 28px rgba(255, 207, 0, 0.4);
}

.btn-ghost {
  background: transparent;
  color: var(--yellow-2);
  border: 1px solid rgba(255, 207, 0, 0.48);
}

.btn-ghost:hover {
  background: rgba(255, 207, 0, 0.08);
}

.hero-stats {
  padding: 18px;
  display: grid;
  gap: 10px;
}

.hero-stats article {
  border-radius: var(--radius-md);
  border: 1px solid #2e2e2e;
  background: linear-gradient(180deg, #131313, #0f0f0f);
  padding: 14px 16px;
}

.stat-label {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.stat-value {
  margin: 6px 0 0;
  font-family: "Teko", sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.3rem);
  color: var(--yellow);
  letter-spacing: 0.03em;
}

.panel {
  margin-top: 14px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(18, 18, 18, 0.95), rgba(12, 12, 12, 0.95));
  padding: 22px;
}

.panel p {
  color: #d7d7d7;
}

.search-form {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.search-form label {
  display: grid;
  gap: 7px;
  color: #cccccc;
  font-size: 0.82rem;
}

.search-form input {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid #333;
  border-radius: 10px;
  color: #f4f4f4;
  background: #0f0f0f;
  font: inherit;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-form input:focus {
  border-color: rgba(255, 207, 0, 0.75);
  box-shadow: 0 0 0 3px rgba(255, 207, 0, 0.18);
}

.search-form button {
  align-self: end;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.offer-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.offer-card {
  border: 1px solid #2f2f2f;
  border-radius: 14px;
  background: linear-gradient(160deg, #131313 0%, #0f0f0f 100%);
  padding: 14px;
  display: grid;
  gap: 8px;
  transition: 0.2s ease;
}

.offer-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 207, 0, 0.5);
}

.offer-card header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.offer-card h3 {
  font-size: 1.35rem;
}

.status {
  border: 1px solid #474747;
  color: #cfcfcf;
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  white-space: nowrap;
}

.status.active {
  color: var(--ok);
  border-color: rgba(94, 223, 125, 0.42);
}

.offer-meta,
.offer-details {
  margin: 0;
  color: #b5b5b5;
  font-size: 0.86rem;
}

.offer-price {
  margin: 0;
  font-family: "Teko", sans-serif;
  font-size: 2rem;
  color: var(--yellow);
  letter-spacing: 0.02em;
}

.inline-link {
  color: var(--yellow-2);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.86rem;
}

.inline-link:hover {
  text-decoration: underline;
}

.tech-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.tech-grid article {
  border: 1px solid #2f2f2f;
  border-radius: 14px;
  background: linear-gradient(180deg, #121212, #0f0f0f);
  padding: 14px;
}

.tech-grid ul {
  margin: 10px 0 0;
  padding-left: 18px;
}

.tech-grid li {
  margin: 7px 0;
  color: #cfcfcf;
}

.faq-list {
  margin-top: 12px;
  display: grid;
  gap: 10px;
}

.faq-list article {
  border: 1px solid #2e2e2e;
  border-radius: 14px;
  background: linear-gradient(180deg, #121212, #0f0f0f);
  padding: 14px;
}

.faq-list p {
  margin: 8px 0 0;
  color: #d2d2d2;
}

.empty {
  margin-top: 10px;
  color: #b8b8b8;
}

.site-footer {
  margin-top: 18px;
  padding: 10px 4px 2px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  color: #9d9d9d;
}

.site-footer a {
  color: var(--yellow-2);
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

@media (max-width: 1120px) {
  .search-form {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .offer-grid,
  .tech-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .site-header {
    padding: 12px;
    border-radius: 14px;
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    padding: 24px;
  }

  .search-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .offer-grid,
  .tech-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(1220px, 94vw);
    padding-top: 14px;
  }

  .logo-mark {
    width: 40px;
    height: 40px;
  }

  .logo-text {
    font-size: 1.6rem;
  }

  .search-form {
    grid-template-columns: 1fr;
  }

  .main-nav {
    gap: 8px;
  }
}

.tech-catalog-shell h1 {
  font-size: clamp(2rem, 3vw, 2.8rem);
}

.directory-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.directory-card {
  border: 1px solid #2f2f2f;
  border-radius: 14px;
  background: linear-gradient(160deg, #131313 0%, #0f0f0f 100%);
  padding: 14px;
}

.directory-card-link {
  color: inherit;
  text-decoration: none;
  transition: 0.2s ease;
}

.directory-card-link:hover {
  border-color: rgba(255, 207, 0, 0.5);
  transform: translateY(-2px);
}

.directory-card h3 {
  text-align: center;
}

.directory-card .inline-link {
  display: inline-block;
  width: 100%;
  text-align: center;
}

.directory-card p {
  margin: 7px 0;
  color: #cfcfcf;
  font-size: 0.9rem;
}

.brand-logo-wrap {
  margin: 12px 0 14px;
  min-height: 150px;
  display: grid;
  place-items: center;
  border: 1px solid #262626;
  border-radius: 12px;
  background: #000;
  padding: 10px;
}

.brand-logo-plate {
  width: 100%;
  min-height: 126px;
  border-radius: 10px;
  border: 1px solid #d9d9d9;
  background: #fff;
  display: grid;
  place-items: center;
  padding: 12px;
  overflow: hidden;
}

.brand-logo-tile {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 108px;
  object-fit: contain;
  filter: saturate(1.02) contrast(1.02);
  image-rendering: auto;
}

.brand-logo-placeholder {
  color: #666;
  font-size: 0.84rem;
}

.real-estate-map-page {
  overflow-x: hidden;
  --bg: #f6f8fb;
  --bg-2: #ffffff;
  --panel: #ffffff;
  --panel-2: #f1f5f9;
  --line: #d8e0ea;
  --text: #132033;
  --muted: #64748b;
  --yellow: #d71920;
  --yellow-2: #b51219;
  --yellow-glow: rgba(215, 25, 32, 0.2);
  --ok: #15803d;
  color: var(--text);
  background:
    linear-gradient(135deg, rgba(215, 25, 32, 0.08) 0%, rgba(255, 255, 255, 0) 34%),
    linear-gradient(180deg, #ffffff 0%, #eef3f8 100%);
}

.map-shell {
  width: min(1480px, 94vw);
  min-height: 100vh;
  margin: 0 auto;
  padding: 18px 0 28px;
  position: relative;
  z-index: 1;
}

.map-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 70px;
  padding: 12px 16px;
  border: 1px solid rgba(216, 224, 234, 0.92);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(14px);
}

.real-estate-map-page .logo {
  color: #132033;
}

.cenodom-brand {
  min-width: 0;
}

.cenodom-logo {
  display: block;
  width: auto;
  height: 52px;
  max-width: min(390px, 46vw);
  object-fit: contain;
}

.real-estate-map-page .logo-mark {
  background: #ffffff;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.12);
}

.logo-symbol {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: #ffffff;
  background: #d71920;
  box-shadow: 0 10px 26px rgba(215, 25, 32, 0.22);
  font-size: 0.86rem;
  font-weight: 900;
}

.real-estate-map-page .logo-text {
  font-family: "Sora", system-ui, -apple-system, sans-serif;
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
  font-weight: 800;
  letter-spacing: 0;
}

.real-estate-map-page .main-nav a {
  color: #475569;
}

.real-estate-map-page .main-nav a:hover {
  color: #ffffff;
  background: #d71920;
}

.map-app {
  display: grid;
  gap: 14px;
  margin-top: 14px;
}

.map-app > * {
  min-width: 0;
}

.map-intro {
  min-height: 285px;
  display: grid;
  align-items: center;
  overflow: hidden;
  border: 1px solid rgba(216, 224, 234, 0.92);
  border-radius: 20px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.9) 55%, rgba(255, 255, 255, 0.72) 100%),
    linear-gradient(135deg, rgba(215, 25, 32, 0.12) 0 16%, transparent 16% 100%),
    linear-gradient(120deg, transparent 0 52%, rgba(19, 32, 51, 0.07) 52% 58%, transparent 58% 100%),
    repeating-linear-gradient(90deg, rgba(15, 23, 42, 0.045) 0 1px, transparent 1px 92px),
    repeating-linear-gradient(0deg, rgba(15, 23, 42, 0.035) 0 1px, transparent 1px 72px),
    linear-gradient(135deg, #ffffff 0%, #edf3f8 100%);
  box-shadow: 0 22px 55px rgba(15, 23, 42, 0.11);
}

.map-hero-copy {
  max-width: 780px;
  padding: clamp(28px, 5vw, 58px);
}

.map-intro h1 {
  max-width: 740px;
  color: #101827;
  font-family: "Sora", system-ui, -apple-system, sans-serif;
  font-size: clamp(2.1rem, 4.6vw, 4.65rem);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.02;
}

.real-estate-map-page .kicker {
  color: #d71920;
  letter-spacing: 0.14em;
}

.real-estate-map-page .lead {
  color: #475569;
  font-size: clamp(0.98rem, 1.4vw, 1.12rem);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  gap: 10px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.real-estate-map-page .btn {
  border-radius: 8px;
}

.real-estate-map-page .btn-primary {
  color: #ffffff;
  background: #d71920;
  box-shadow: 0 12px 28px rgba(215, 25, 32, 0.22);
}

.real-estate-map-page .btn-primary:hover {
  box-shadow: 0 14px 34px rgba(215, 25, 32, 0.28);
}

.real-estate-map-page .btn-ghost {
  color: #132033;
  border-color: #cbd5e1;
  background: rgba(255, 255, 255, 0.74);
}

.real-estate-map-page .btn-ghost:hover {
  background: #ffffff;
}

.offer-check-panel {
  min-width: 0;
  overflow: hidden;
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid rgba(216, 224, 234, 0.95);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(215, 25, 32, 0.055), transparent 36%),
    rgba(255, 255, 255, 0.97);
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.09);
}

.offer-check-intro {
  max-width: 820px;
}

.offer-check-intro h2 {
  margin-top: 5px;
  color: #132033;
  font-family: "Sora", system-ui, -apple-system, sans-serif;
  font-size: clamp(1.45rem, 2.7vw, 2.35rem);
  line-height: 1.16;
}

.offer-check-intro p:not(.kicker) {
  margin: 9px 0 0;
  color: #64748b;
  line-height: 1.55;
}

.offer-check-form {
  min-width: 0;
  display: grid;
  grid-template-columns: 0.85fr 1.25fr 0.65fr 0.8fr 0.8fr auto;
  gap: 10px;
  align-items: end;
  margin-top: 20px;
}

.input-with-suffix {
  position: relative;
}

.input-with-suffix input {
  padding-right: 42px;
}

.input-with-suffix span {
  position: absolute;
  top: 50%;
  right: 12px;
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 800;
  pointer-events: none;
  transform: translateY(-50%);
}

.offer-check-submit {
  min-height: 42px;
  white-space: nowrap;
}

.offer-check-submit:disabled {
  cursor: wait;
  opacity: 0.65;
}

.offer-check-status {
  margin: 13px 0 0;
  color: #64748b;
  font-size: 0.8rem;
  line-height: 1.5;
}

.offer-check-result {
  min-width: 0;
  margin-top: 18px;
  padding: clamp(16px, 2.5vw, 24px);
  border: 1px solid #dbe3ec;
  border-radius: 14px;
  background: #f8fafc;
}

.offer-result-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.offer-result-label {
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.offer-result-head h3 {
  margin-top: 6px;
  color: #132033;
  font-family: "Sora", system-ui, -apple-system, sans-serif;
  font-size: clamp(1.25rem, 2.4vw, 1.85rem);
}

.offer-result-head h3.positive {
  color: #15803d;
}

.offer-result-head h3.warning {
  color: #b45309;
}

.offer-result-head h3.negative {
  color: #d71920;
}

.offer-result-head p {
  margin: 9px 0 0;
  color: #475569;
  line-height: 1.55;
}

.confidence-badge {
  min-width: 130px;
  padding: 10px 12px;
  border: 1px solid #dbe3ec;
  border-radius: 10px;
  background: #ffffff;
  text-align: center;
}

.confidence-badge span,
.offer-result-metrics span {
  display: block;
  color: #64748b;
  font-size: 0.65rem;
  font-weight: 850;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.confidence-badge strong {
  display: block;
  margin-top: 5px;
  color: #132033;
  text-transform: capitalize;
}

.offer-result-metrics {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-top: 18px;
}

.offer-result-metrics article {
  min-height: 82px;
  padding: 12px;
  border: 1px solid #dbe3ec;
  border-radius: 10px;
  background: #ffffff;
}

.offer-result-metrics strong {
  display: block;
  margin-top: 8px;
  color: #132033;
  font-size: 0.98rem;
  line-height: 1.35;
}

.offer-comparables {
  min-width: 0;
  max-width: 100%;
  margin-top: 14px;
  border: 1px solid #dbe3ec;
  border-radius: 10px;
  background: #ffffff;
}

.offer-comparables summary {
  padding: 12px 14px;
  color: #132033;
  font-size: 0.82rem;
  font-weight: 850;
  cursor: pointer;
}

.offer-comparables-table {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  border-top: 1px solid #dbe3ec;
}

.offer-comparables table {
  width: 100%;
  border-collapse: collapse;
}

.offer-comparables th,
.offer-comparables td {
  padding: 8px 10px;
  border-bottom: 1px solid #eef2f7;
  color: #334155;
  font-size: 0.74rem;
  text-align: left;
  white-space: nowrap;
}

.offer-comparables th {
  color: #64748b;
  font-weight: 850;
}

.offer-methodology {
  margin: 12px 0 0;
  color: #64748b;
  font-size: 0.72rem;
  line-height: 1.5;
}

.location-analysis-panel {
  min-width: 0;
  overflow: hidden;
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid rgba(216, 224, 234, 0.95);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(14, 165, 233, 0.07), transparent 38%),
    rgba(255, 255, 255, 0.97);
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.09);
}

.location-analysis-intro {
  max-width: 860px;
}

.location-analysis-intro h2 {
  margin-top: 5px;
  color: #132033;
  font-family: "Sora", system-ui, -apple-system, sans-serif;
  font-size: clamp(1.45rem, 2.7vw, 2.35rem);
  line-height: 1.16;
}

.location-analysis-intro p:not(.kicker) {
  margin: 9px 0 0;
  color: #64748b;
  line-height: 1.55;
}

.location-analysis-form {
  display: grid;
  grid-template-columns: minmax(180px, 0.8fr) minmax(240px, 1.15fr) minmax(135px, 0.5fr) minmax(150px, 0.55fr) auto;
  gap: 10px;
  align-items: end;
  margin-top: 20px;
}

.location-analysis-submit {
  min-height: 42px;
  white-space: nowrap;
}

.location-analysis-submit:disabled {
  cursor: wait;
  opacity: 0.65;
}

.location-analysis-status {
  margin: 13px 0 0;
  color: #64748b;
  font-size: 0.8rem;
  line-height: 1.5;
}

.location-analysis-result {
  min-width: 0;
  margin-top: 18px;
  padding: clamp(14px, 2vw, 22px);
  border: 1px solid #dbe3ec;
  border-radius: 14px;
  background: #f8fafc;
}

.location-result-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.location-result-head h3 {
  margin-top: 6px;
  color: #132033;
  font-family: "Sora", system-ui, -apple-system, sans-serif;
  font-size: clamp(1.2rem, 2.25vw, 1.75rem);
}

.location-result-head p {
  margin: 8px 0 0;
  color: #64748b;
  line-height: 1.5;
}

.location-checked {
  min-width: 130px;
  padding: 10px 12px;
  border: 1px solid #dbe3ec;
  border-radius: 10px;
  background: #ffffff;
}

.location-checked span {
  display: block;
  color: #64748b;
  font-size: 0.65rem;
  font-weight: 850;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.location-checked strong {
  display: block;
  margin-top: 5px;
  color: #132033;
}

.location-analysis-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(300px, 0.7fr);
  gap: 12px;
  margin-top: 18px;
}

.location-map-card,
.planning-summary {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #dbe3ec;
  border-radius: 12px;
  background: #ffffff;
}

.location-analysis-map {
  width: 100%;
  min-height: 520px;
  background: #e9eef4;
}

.location-map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  padding: 10px 12px;
  border-top: 1px solid #dbe3ec;
}

.location-map-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #475569;
  font-size: 0.72rem;
  font-weight: 750;
}

.location-map-legend strong {
  margin-left: auto;
  color: #64748b;
  font-size: 0.7rem;
  font-weight: 750;
}

.location-map-legend i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--legend-color);
}

.location-center-marker {
  background: transparent;
  border: 0;
}

.location-center-marker span {
  display: block;
  width: 24px;
  height: 24px;
  border: 4px solid #ffffff;
  border-radius: 50%;
  background: #d71920;
  box-shadow: 0 4px 15px rgba(15, 23, 42, 0.34);
}

.location-map-tooltip {
  display: grid;
  gap: 3px;
  min-width: 185px;
}

.location-map-tooltip strong {
  color: #132033;
}

.location-map-tooltip span {
  color: #64748b;
  font-size: 0.72rem;
}

.planning-summary {
  padding: 16px;
}

.planning-summary.found {
  border-color: rgba(21, 128, 61, 0.35);
}

.planning-summary.unavailable {
  border-color: rgba(180, 83, 9, 0.35);
}

.planning-summary-label {
  color: #64748b;
  font-size: 0.66rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.planning-summary h3 {
  margin-top: 6px;
  color: #132033;
  font-family: "Sora", system-ui, -apple-system, sans-serif;
  font-size: 1.15rem;
  line-height: 1.3;
}

.planning-summary > p {
  margin: 8px 0 0;
  color: #64748b;
  font-size: 0.78rem;
  line-height: 1.5;
}

.planning-records {
  display: grid;
  gap: 7px;
  margin-top: 14px;
}

.planning-signals {
  display: grid;
  gap: 6px;
  margin-top: 12px;
}

.planning-signal {
  margin: 0 !important;
  padding: 8px 9px;
  border-radius: 7px;
  font-size: 0.72rem !important;
  font-weight: 800;
}

.planning-signal.warning {
  color: #92400e !important;
  background: #fff7ed;
}

.planning-signal.negative {
  color: #991b1b !important;
  background: #fef2f2;
}

.planning-signal.positive {
  color: #166534 !important;
  background: #f0fdf4;
}

.planning-record {
  padding: 10px;
  border: 1px solid #dbe3ec;
  border-radius: 9px;
  background: #f8fafc;
}

.planning-record span,
.planning-record small {
  display: block;
  color: #64748b;
  font-size: 0.68rem;
  line-height: 1.4;
}

.planning-record strong {
  display: block;
  margin: 4px 0;
  color: #132033;
  font-size: 0.84rem;
  line-height: 1.35;
}

.planning-record a,
.location-sources a {
  color: #b91c1c;
  font-size: 0.72rem;
  font-weight: 850;
  text-decoration: none;
}

.planning-record a:hover,
.location-sources a:hover {
  text-decoration: underline;
}

.planning-empty {
  margin: 0;
  color: #64748b;
  font-size: 0.75rem;
  line-height: 1.5;
}

.planning-warning {
  margin-top: 14px !important;
  padding: 10px;
  border-radius: 8px;
  color: #92400e !important;
  background: #fff7ed;
}

.location-category-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.location-category-card {
  min-height: 140px;
  padding: 12px;
  border: 1px solid #dbe3ec;
  border-radius: 10px;
  background: #ffffff;
}

.location-category-card span {
  display: block;
  min-height: 30px;
  color: #64748b;
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.04em;
  line-height: 1.35;
  text-transform: uppercase;
}

.location-category-card strong {
  display: block;
  margin: 6px 0;
  color: #132033;
  font-size: 1.5rem;
}

.location-category-card small,
.location-category-card em {
  display: block;
  color: #475569;
  font-size: 0.7rem;
  font-style: normal;
  line-height: 1.5;
}

.location-category-card em {
  margin-top: 6px;
  color: #64748b;
}

.location-risk-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.location-risk-section {
  min-width: 0;
  padding: 14px;
  border: 1px solid #dbe3ec;
  border-radius: 12px;
  background: #ffffff;
}

.location-risk-head h3 {
  margin-top: 5px;
  color: #132033;
  font-family: "Sora", system-ui, -apple-system, sans-serif;
  font-size: 1.05rem;
  line-height: 1.35;
}

.location-risk-head p,
.location-risk-head small {
  display: block;
  margin: 7px 0 0;
  color: #64748b;
  font-size: 0.74rem;
  line-height: 1.5;
}

.location-risk-items,
.environment-documents {
  display: grid;
  gap: 7px;
  max-height: 480px;
  margin-top: 12px;
  overflow-y: auto;
}

.location-risk-item,
.environment-document {
  padding: 10px;
  border: 1px solid #dbe3ec;
  border-left: 4px solid #d97706;
  border-radius: 9px;
  background: #f8fafc;
}

.location-risk-item.negative,
.environment-document.negative {
  border-left-color: #991b1b;
}

.location-risk-item span,
.environment-document span {
  display: block;
  color: #64748b;
  font-size: 0.62rem;
  font-weight: 850;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.location-risk-item strong,
.environment-document strong {
  display: block;
  margin-top: 4px;
  color: #132033;
  font-size: 0.8rem;
  line-height: 1.4;
}

.location-risk-item small,
.location-risk-item em,
.environment-document small,
.environment-document em {
  display: block;
  margin-top: 4px;
  color: #64748b;
  font-size: 0.68rem;
  font-style: normal;
  line-height: 1.45;
}

.location-risk-item em {
  color: #b45309;
  font-weight: 850;
}

.location-risk-item a,
.environment-document a {
  display: inline-block;
  margin-top: 6px;
  color: #b91c1c;
  font-size: 0.68rem;
  font-weight: 850;
  text-decoration: none;
}

.location-risk-item a:hover,
.environment-document a:hover {
  text-decoration: underline;
}

.location-transactions {
  margin-top: 12px;
}

.location-sources {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: center;
  margin-top: 12px;
  padding: 11px 12px;
  border: 1px solid #dbe3ec;
  border-radius: 10px;
  background: #ffffff;
}

.location-sources strong {
  color: #132033;
  font-size: 0.76rem;
}

.map-filters {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(360px, 1.15fr);
  gap: 12px;
  align-items: stretch;
}

.filter-card,
.filter-actions,
.map-canvas-wrap {
  border: 1px solid rgba(216, 224, 234, 0.95);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.08);
}

.filter-card {
  padding: 16px;
}

.filter-head {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  min-height: 64px;
}

.filter-step {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 8px;
  color: #ffffff;
  background: #132033;
  font-size: 0.76rem;
  font-weight: 900;
}

.filter-head h2 {
  color: #132033;
  font-family: "Sora", system-ui, -apple-system, sans-serif;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0;
}

.filter-head p {
  margin: 6px 0 0;
  color: #64748b;
  font-size: 0.82rem;
  line-height: 1.45;
}

.segmented-control {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
  gap: 6px;
  margin-top: 14px;
  padding: 5px;
  border: 1px solid #dbe3ec;
  border-radius: 10px;
  background: #f3f6fa;
}

.segment-button {
  min-height: 40px;
  border: 0;
  border-radius: 7px;
  color: #475569;
  background: transparent;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.segment-button:hover {
  color: #132033;
  background: #ffffff;
}

.segment-button.active {
  color: #ffffff;
  background: #d71920;
  box-shadow: 0 8px 18px rgba(215, 25, 32, 0.18);
}

.location-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.filter-actions {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
}

.map-workbench {
  display: block;
  min-height: min(720px, calc(100vh - 390px));
}

.trend-panel {
  padding: 20px;
  border: 1px solid rgba(216, 224, 234, 0.95);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.08);
}

.trend-panel-head {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(480px, 1.28fr);
  gap: 18px;
  align-items: end;
}

.trend-panel h2 {
  color: #132033;
  font-family: "Sora", system-ui, -apple-system, sans-serif;
  font-size: clamp(1.35rem, 2.2vw, 2rem);
  font-weight: 850;
}

.trend-panel-head p:not(.kicker) {
  margin: 8px 0 0;
  color: #64748b;
  font-size: 0.84rem;
  line-height: 1.5;
}

.trend-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.trend-summary article {
  min-height: 76px;
  padding: 12px;
  border: 1px solid #dbe3ec;
  border-radius: 10px;
  background: #f7f9fc;
}

.trend-summary span {
  display: block;
  color: #64748b;
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.trend-summary strong {
  display: block;
  margin-top: 8px;
  color: #132033;
  font-size: 1.18rem;
  font-weight: 850;
}

.trend-summary strong.positive {
  color: #15803d;
}

.trend-summary strong.negative {
  color: #d71920;
}

.trend-chart-wrap {
  overflow-x: auto;
  margin-top: 16px;
  border: 1px solid #dbe3ec;
  border-radius: 12px;
  background: linear-gradient(180deg, #fbfcfe, #f3f6fa);
}

.trend-chart {
  display: block;
  width: 100%;
  min-width: 720px;
  height: 330px;
}

.trend-grid-line {
  stroke: #dbe3ec;
  stroke-width: 1;
}

.trend-axis-label,
.trend-point-label {
  fill: #64748b;
  font-family: "Sora", system-ui, sans-serif;
  font-size: 11px;
}

.trend-empty {
  fill: #64748b;
  font-family: "Sora", system-ui, sans-serif;
  font-size: 15px;
  font-weight: 750;
}

.trend-area {
  fill: url("#trendAreaGradient");
}

.trend-line {
  fill: none;
  stroke: #d71920;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 4;
}

.trend-point {
  fill: #ffffff;
  stroke: #d71920;
  stroke-width: 3;
}

.trend-count-line {
  fill: none;
  stroke: #1e3a5f;
  stroke-dasharray: 7 5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3;
}

.trend-count-point {
  fill: #ffffff;
  stroke: #1e3a5f;
  stroke-width: 2.5;
}

.trend-count-axis-label {
  fill: #1e3a5f;
  font-family: "Sora", system-ui, sans-serif;
  font-size: 11px;
  font-weight: 750;
}

.trend-legend text {
  fill: #475569;
  font-family: "Sora", system-ui, sans-serif;
  font-size: 11px;
  font-weight: 750;
}

.map-controls {
  padding: 14px;
  display: grid;
  align-content: start;
  gap: 12px;
}

.control-group {
  display: grid;
  gap: 7px;
}

.control-group-wide {
  grid-column: 1 / -1;
}

.control-group label {
  color: #334155;
  font-size: 0.82rem;
  font-weight: 700;
}

.control-group input,
.control-group select {
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  color: #132033;
  background: #ffffff;
  font: inherit;
  outline: none;
}

.control-group input:focus,
.control-group select:focus {
  border-color: rgba(215, 25, 32, 0.72);
  box-shadow: 0 0 0 3px rgba(215, 25, 32, 0.13);
}

.control-group input:disabled {
  color: #94a3b8;
  background: #eef2f7;
}

.map-note {
  margin: 0;
  color: #64748b;
  font-size: 0.84rem;
  line-height: 1.55;
}

.map-canvas-wrap {
  position: relative;
  overflow: hidden;
  min-height: 650px;
}

.map-mode-switch {
  position: absolute;
  top: 12px;
  left: 50%;
  z-index: 640;
  display: flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(203, 213, 225, 0.92);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.15);
  transform: translateX(-50%);
  backdrop-filter: blur(8px);
}

.map-mode-switch button {
  min-height: 36px;
  padding: 0 14px;
  border: 0;
  border-radius: 7px;
  color: #475569;
  background: transparent;
  font: inherit;
  font-size: 0.76rem;
  font-weight: 850;
  cursor: pointer;
}

.map-mode-switch button.active {
  color: #ffffff;
  background: #d71920;
}

.sales-map {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 650px;
  background: #e9eef5;
}

.sales-map::before {
  content: "Mapa załaduje się po kliknięciu „Pokaż mapę” lub „Pokaż wyniki”";
  position: absolute;
  inset: 24px;
  display: grid;
  place-items: center;
  border: 1px dashed #cbd5e1;
  border-radius: 12px;
  color: #64748b;
  background:
    repeating-linear-gradient(90deg, rgba(15, 23, 42, 0.04) 0 1px, transparent 1px 72px),
    repeating-linear-gradient(0deg, rgba(15, 23, 42, 0.035) 0 1px, transparent 1px 56px);
  font-size: 0.95rem;
  font-weight: 800;
  text-align: center;
  padding: 20px;
  pointer-events: none;
}

.sales-map.is-ready::before {
  content: none;
}

.map-popup {
  min-width: 230px;
  color: #1a1a1a;
  font-family: "Sora", system-ui, -apple-system, sans-serif;
}

.map-popup-wide {
  min-width: 340px;
}

.map-popup strong {
  display: block;
  margin-bottom: 8px;
  color: #111;
  font-size: 0.95rem;
}

.popup-summary,
.popup-more {
  margin: 0 0 8px;
  color: #4c4c4c;
  font-size: 0.78rem;
  line-height: 1.45;
}

.popup-more {
  margin: 8px 0 0;
  font-weight: 700;
}

.map-popup dl {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 5px 10px;
  margin: 0;
}

.map-popup dt {
  color: #555;
  font-weight: 700;
}

.map-popup dd {
  margin: 0;
  color: #111;
}

.map-popup table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.76rem;
}

.map-popup th,
.map-popup td {
  padding: 5px 6px;
  border-bottom: 1px solid #e5e5e5;
  text-align: left;
  white-space: nowrap;
}

.map-popup th {
  color: #555;
  font-weight: 800;
}

.marker-preview-tooltip {
  padding: 0;
  border: 1px solid rgba(216, 224, 234, 0.98);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 14px 38px rgba(15, 23, 42, 0.2);
}

.marker-preview-tooltip::before {
  border-top-color: rgba(255, 255, 255, 0.98);
}

.marker-preview {
  width: 270px;
  padding: 13px;
  color: #132033;
  font-family: "Sora", system-ui, -apple-system, sans-serif;
}

.marker-preview-kicker {
  display: block;
  margin-bottom: 5px;
  color: #d71920;
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.marker-preview > strong {
  display: block;
  overflow: hidden;
  color: #132033;
  font-size: 0.92rem;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.marker-preview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin-top: 10px;
}

.marker-preview-grid span {
  padding: 7px;
  border: 1px solid #e2e8f0;
  border-radius: 7px;
  background: #f7f9fc;
}

.marker-preview-grid small {
  display: block;
  color: #64748b;
  font-size: 0.57rem;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.marker-preview-grid b {
  display: block;
  margin-top: 4px;
  overflow: hidden;
  color: #132033;
  font-size: 0.72rem;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.marker-preview em {
  display: block;
  margin-top: 9px;
  color: #d71920;
  font-size: 0.64rem;
  font-style: normal;
  font-weight: 850;
}

.address-marker {
  background: transparent;
  border: 0;
}

.address-marker span {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 2px solid #101010;
  border-radius: 999px;
  background: var(--marker-color, var(--yellow));
  color: #101010;
  box-shadow: 0 2px 9px rgba(0, 0, 0, 0.42);
  font-family: "Sora", system-ui, -apple-system, sans-serif;
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1;
  pointer-events: none;
}

.transaction-cluster-marker {
  background: transparent;
  border: 0;
}

.transaction-cluster-marker > span {
  min-width: 72px;
  min-height: 48px;
  display: grid;
  place-items: center;
  padding: 7px 9px;
  border: 3px solid #ffffff;
  border-radius: 999px;
  color: #ffffff;
  background: #d71920;
  box-shadow: 0 5px 18px rgba(15, 23, 42, 0.32);
  font-family: "Sora", system-ui, sans-serif;
  line-height: 1;
  text-align: center;
}

.transaction-cluster-marker b {
  font-size: 0.82rem;
  font-weight: 900;
}

.transaction-cluster-marker small {
  display: block;
  max-width: 105px;
  overflow: hidden;
  margin-top: 4px;
  font-size: 0.52rem;
  font-weight: 750;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cluster-preview-tooltip {
  padding: 0;
  border: 1px solid #d8e0ea;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.18);
}

.cluster-preview {
  display: grid;
  gap: 4px;
  min-width: 210px;
  padding: 11px;
  color: #475569;
  font-family: "Sora", system-ui, sans-serif;
  font-size: 0.7rem;
}

.cluster-preview strong {
  color: #132033;
  font-size: 0.82rem;
}

.cluster-preview em {
  margin-top: 3px;
  color: #d71920;
  font-style: normal;
  font-weight: 850;
}

.search-center-marker {
  background: transparent;
  border: 0;
}

.search-center-marker span {
  width: 18px;
  height: 18px;
  display: block;
  border: 3px solid #101010;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(255, 207, 0, 0.72), 0 2px 10px rgba(0, 0, 0, 0.35);
}

.building-panel {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 650;
  width: min(430px, calc(100% - 28px));
  max-height: calc(100% - 28px);
  display: grid;
  gap: 12px;
  overflow-y: auto;
  padding: 14px;
  border: 1px solid rgba(216, 224, 234, 0.98);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.22);
  backdrop-filter: blur(14px);
}

.building-panel[hidden] {
  display: none;
}

.building-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.building-kicker {
  margin: 0 0 4px;
  color: #d71920;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.11em;
}

.building-panel h2 {
  margin: 0;
  color: #132033;
  font-size: 1.18rem;
  line-height: 1.2;
}

.building-panel h3 {
  margin: 0 0 8px;
  color: #132033;
  font-size: 0.92rem;
}

.building-panel-head p:not(.building-kicker) {
  margin: 6px 0 0;
  color: #64748b;
  font-size: 0.82rem;
  line-height: 1.45;
}

.building-close {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid #d8e0ea;
  border-radius: 999px;
  color: #132033;
  background: #f7f9fc;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.building-preview {
  position: relative;
  overflow: hidden;
  min-height: 230px;
  border: 1px solid #d8e0ea;
  border-radius: 12px;
  background: #e9eef5;
}

.building-mini-map {
  min-height: 230px;
  width: 100%;
}

.building-map-loading {
  min-height: 230px;
  display: grid;
  place-items: center;
  color: #64748b;
  font-size: 0.82rem;
  font-weight: 800;
}

.building-map-actions {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 2;
  display: flex;
  gap: 8px;
}

.building-map-actions button {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 999px;
  color: #111;
  background: rgba(255, 255, 255, 0.93);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 900;
  cursor: pointer;
}

.building-map-actions button:disabled {
  color: #94a3b8;
  border-color: #d8e0ea;
  background: #eef2f7;
  box-shadow: none;
  cursor: default;
}

.building-outline-notice {
  position: absolute;
  top: 10px;
  right: 10px;
  left: 54px;
  z-index: 4;
  margin: 0;
  padding: 8px 10px;
  border: 1px solid rgba(215, 25, 32, 0.22);
  border-radius: 8px;
  color: #9f1239;
  background: rgba(255, 255, 255, 0.94);
  font-size: 0.7rem;
  font-weight: 750;
  line-height: 1.35;
}

.building-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.building-metrics article {
  min-height: 74px;
  padding: 10px;
  border: 1px solid #dbe3ec;
  border-radius: 10px;
  background: #f7f9fc;
}

.building-metrics span {
  display: block;
  color: #64748b;
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.building-metrics strong {
  display: block;
  margin-top: 7px;
  color: #d71920;
  font-family: "Sora", system-ui, sans-serif;
  font-size: 1.08rem;
  font-weight: 850;
  line-height: 1;
}

.building-section {
  padding: 12px;
  border: 1px solid #dbe3ec;
  border-radius: 12px;
  background: #f7f9fc;
}

.building-table-wrap {
  max-height: 260px;
  overflow: auto;
}

.nearby-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.nearby-item {
  padding: 9px;
  border: 1px solid #dbe3ec;
  border-radius: 10px;
  background: #ffffff;
}

.nearby-item span {
  display: block;
  color: #64748b;
  font-size: 0.64rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nearby-item strong {
  display: block;
  margin-top: 5px;
  color: #132033;
  font-size: 0.76rem;
  line-height: 1.35;
}

.nearby-item em {
  display: block;
  margin-top: 4px;
  color: #d71920;
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 850;
}

.nearby-loading {
  grid-column: 1 / -1;
  margin: 0;
  color: #64748b;
  font-size: 0.78rem;
}

.building-table-wrap table {
  width: 100%;
  border-collapse: collapse;
}

.building-table-wrap th,
.building-table-wrap td {
  padding: 7px 6px;
  border-bottom: 1px solid #e2e8f0;
  color: #334155;
  font-size: 0.74rem;
  text-align: left;
  white-space: nowrap;
}

.building-table-wrap th {
  color: #64748b;
  font-weight: 900;
}

.map-missing-key {
  min-height: 620px;
  display: grid;
  place-content: center;
  gap: 8px;
  padding: 24px;
  text-align: center;
}

.map-missing-key code {
  color: var(--yellow);
}

@media (max-width: 980px) {
  .offer-check-form,
  .location-analysis-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .offer-result-metrics,
  .location-category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .location-analysis-grid {
    grid-template-columns: 1fr;
  }

  .location-risk-grid {
    grid-template-columns: 1fr;
  }

  .map-filters {
    grid-template-columns: 1fr;
  }

  .map-workbench {
    min-height: 0;
  }

  .map-controls {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: end;
  }

  .map-note {
    grid-column: 1 / -1;
  }

  .filter-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .building-panel {
    top: auto;
    right: 10px;
    bottom: 10px;
    left: 10px;
    width: auto;
    max-height: 78%;
  }

  .trend-panel-head {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .map-shell {
    width: min(1500px, 94vw);
    padding-top: 12px;
  }

  .map-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .offer-check-form,
  .offer-result-metrics,
  .location-analysis-form,
  .location-category-grid {
    grid-template-columns: 1fr;
  }

  .offer-result-head,
  .location-result-head {
    flex-direction: column;
  }

  .confidence-badge,
  .location-checked {
    width: 100%;
    text-align: left;
  }

  .cenodom-logo {
    height: auto;
    max-width: min(100%, 340px);
  }

  .location-grid,
  .segmented-control,
  .map-controls {
    grid-template-columns: 1fr;
  }

  .map-intro {
    min-height: 340px;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.97) 0%, rgba(255, 255, 255, 0.86) 100%),
      repeating-linear-gradient(90deg, rgba(15, 23, 42, 0.045) 0 1px, transparent 1px 72px),
      repeating-linear-gradient(0deg, rgba(15, 23, 42, 0.035) 0 1px, transparent 1px 56px),
      linear-gradient(135deg, #ffffff 0%, #edf3f8 100%);
  }

  .map-canvas-wrap,
  .sales-map,
  .map-missing-key {
    min-height: 520px;
  }

  .location-analysis-map {
    min-height: 430px;
  }

  .location-map-legend strong {
    width: 100%;
    margin-left: 0;
  }

  .building-metrics {
    grid-template-columns: 1fr;
  }

  .trend-summary,
  .nearby-grid {
    grid-template-columns: 1fr;
  }

  .building-preview,
  .building-mini-map {
    min-height: 190px;
  }
}

.versions-table-wrap {
  margin-top: 14px;
  overflow-x: auto;
  border: 1px solid #2f2f2f;
  border-radius: 14px;
}

.versions-table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
  background: #111;
}

.versions-table th,
.versions-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid #262626;
  font-size: 0.88rem;
  vertical-align: top;
}

.versions-table th {
  color: #111;
  background: linear-gradient(135deg, var(--yellow) 0%, #ffe37a 100%);
  font-weight: 800;
}

.versions-table td {
  color: #dfdfdf;
}

.versions-table tbody tr:hover td {
  background: #161616;
}

@media (max-width: 1120px) {
  .directory-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .directory-grid {
    grid-template-columns: 1fr;
  }
}
