/* ==========================================================================
   RealEstateCockpit — sector-specific hero visual
   ========================================================================== */

.sec-hero__visual-slot {
  position: relative;
  z-index: 1;
  opacity: 0;
  transform: translateY(18px) scale(0.985);
  transition:
    opacity 0.7s ease,
    transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.sec-hero__visual-slot.is-realestate-cockpit-in,
.no-js .sec-hero__visual-slot {
  opacity: 1;
  transform: none;
}

@media (min-width: 981px) {
  .sec-hero {
    padding-top: clamp(3.95rem, 4.6vw, 5.25rem);
  }

  .sec-hero .sec-container {
    width: min(1380px, calc(100% - 28px));
  }

  .sec-hero__grid {
    grid-template-columns: minmax(0, 0.84fr) minmax(640px, 1.16fr);
    gap: clamp(1.15rem, 2.35vw, 2.25rem);
    align-items: start;
  }

  .sec-hero__copy {
    align-self: center;
    transform: translateY(0.35rem);
  }

  .sec-hero__visual {
    margin-top: 1.25rem;
  }
}

.re-ck {
  --re-panel: rgba(7, 13, 32, 0.84);
  --re-line: rgba(123, 137, 179, 0.24);
  --re-muted: #b0b8cf;
  --re-soft: #d7dcf0;
  --re-white: #ffffff;
  --re-cyan: #5ff6dc;
  --re-pink: #f43f6c;
  --re-amber: #ff941f;
  --re-green: #70e181;
  --re-violet: #a65cff;

  position: relative;
  overflow: hidden;
  width: 100%;
  padding: 16px;
  color: var(--re-soft);
  border: 1px solid rgba(91, 105, 153, 0.28);
  border-radius: 8px;
  background:
    radial-gradient(circle at 8% 0%, rgba(54, 211, 205, 0.11), transparent 30%),
    radial-gradient(circle at 100% 100%, rgba(166, 92, 255, 0.1), transparent 32%),
    linear-gradient(145deg, #061023 0%, #090f25 48%, #0d0a24 100%);
  box-shadow:
    0 36px 100px rgba(2, 6, 23, 0.58),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.re-ck__logo {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  box-shadow:
    0 12px 28px rgba(70, 105, 255, 0.36),
    inset 0 0 0 1px rgba(255, 255, 255, 0.26);
}

.re-ck__panel {
  position: relative;
  padding: 13px 16px 16px;
  border: 1px solid rgba(91, 105, 153, 0.55);
  border-radius: 8px;
  background:
    radial-gradient(circle at 92% 6%, rgba(95, 246, 220, 0.08), transparent 22%),
    linear-gradient(145deg, rgba(11, 22, 45, 0.92), rgba(9, 13, 35, 0.92));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 20px 48px rgba(2, 6, 23, 0.22);
}

.re-ck__panel-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
  margin-bottom: 12px;
}

.re-ck__eyebrow {
  display: block;
  margin-bottom: 5px;
  color: var(--re-cyan);
  font-size: 10.5px;
  font-weight: 900;
  line-height: 1.1;
  text-transform: uppercase;
}

.re-ck__title {
  margin: 0;
  padding-right: 42px;
  color: var(--re-white);
  font-size: clamp(1.55rem, 2.55vw, 2.25rem);
  font-weight: 900;
  line-height: 0.98;
}

.re-ck__priorities {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 15px;
}

.re-ck__priority {
  position: relative;
  min-width: 0;
  padding: 16px 12px 12px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.re-ck__priority-icon {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin: 0 7px 0 0;
  border: 1px solid currentColor;
  border-radius: 50%;
  color: var(--priority-color);
  background: rgba(var(--priority-rgb), 0.12);
  vertical-align: middle;
}

.re-ck__priority-icon svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.re-ck__priority strong {
  display: inline-block;
  vertical-align: middle;
  color: var(--priority-color);
  font-size: 24px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.re-ck__priority-label {
  display: block;
  min-height: 0;
  margin-top: 6px;
  color: var(--re-white);
  font-size: 12px;
  font-weight: 820;
  line-height: 1.24;
}

.re-ck__priority--urgent {
  --priority-color: var(--re-pink);
  --priority-rgb: 244, 63, 108;
}

.re-ck__priority--warning {
  --priority-color: var(--re-amber);
  --priority-rgb: 255, 148, 31;
}

.re-ck__priority--success {
  --priority-color: var(--re-green);
  --priority-rgb: 112, 225, 129;
}

.re-ck__priority--value {
  --priority-color: var(--re-violet);
  --priority-rgb: 166, 92, 255;
}

.re-ck__chart-wrap {
  position: relative;
  height: 118px;
  margin-bottom: 13px;
  overflow: visible;
}

.re-ck__chart {
  display: block;
  width: 100%;
  height: 100%;
}

.re-ck__chart-grid {
  stroke: rgba(215, 220, 240, 0.16);
  stroke-width: 1;
  stroke-dasharray: 2 5;
}

.re-ck__chart-line {
  fill: none;
  stroke: url(#reCkStroke);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 10px rgba(232, 72, 204, 0.22));
}

.re-ck__chart-dot {
  position: absolute;
  top: 15.6%;
  right: 2px;
  width: 14px;
  height: 14px;
  border: 3px solid var(--re-white);
  border-radius: 50%;
  background: #e8488e;
  box-shadow:
    0 0 0 7px rgba(232, 72, 142, 0.2),
    0 0 28px rgba(232, 72, 204, 0.44);
  transform: translate(50%, -50%);
}

.re-ck__chart-delta {
  position: absolute;
  right: 0;
  bottom: 4px;
  display: inline-flex;
  align-items: center;
  min-height: 27px;
  padding: 5px 10px;
  color: #06251d;
  font-size: 11.5px;
  font-weight: 900;
  border-radius: 7px;
  background: linear-gradient(135deg, #86f8d8, #e9ffd8);
  box-shadow: 0 14px 30px rgba(95, 246, 220, 0.14);
}

.re-ck__metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  padding-top: 13px;
  border-top: 1px solid var(--re-line);
}

.re-ck__metric {
  min-width: 0;
  padding: 0 16px;
}

.re-ck__metric:first-child {
  padding-left: 4px;
}

.re-ck__metric:not(:first-child) {
  border-left: 1px solid var(--re-line);
}

.re-ck__metric-label {
  display: block;
  color: #c8cdef;
  font-size: 11.5px;
  line-height: 1.2;
}

.re-ck__metric strong {
  display: block;
  margin-top: 5px;
  color: var(--re-white);
  font-size: 28px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.re-ck__metric span:last-child {
  display: block;
  margin-top: 5px;
  color: var(--re-cyan);
  font-size: 12px;
  font-weight: 900;
}

.re-ck__insights {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
  margin-top: 13px;
}

.re-ck__insight {
  min-width: 0;
  padding: 13px 14px;
  border: 1px solid rgba(91, 105, 153, 0.32);
  border-radius: 8px;
  background: rgba(7, 13, 32, 0.66);
}

.re-ck__insight--alert {
  border-color: rgba(244, 63, 108, 0.26);
  background:
    radial-gradient(circle at 0% 100%, rgba(244, 63, 108, 0.1), transparent 34%),
    rgba(7, 13, 32, 0.66);
}

.re-ck__insight--call {
  border-color: rgba(95, 246, 220, 0.22);
  background:
    radial-gradient(circle at 0% 100%, rgba(95, 246, 220, 0.08), transparent 34%),
    rgba(7, 13, 32, 0.66);
}

.re-ck__insight-title {
  display: block;
  margin-bottom: 9px;
  color: #c8b7ff;
  font-size: 10.5px;
  font-weight: 900;
  line-height: 1.2;
  text-transform: uppercase;
}

.re-ck__insight--alert .re-ck__insight-title {
  color: #ff5f87;
}

.re-ck__insight-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.re-ck__alert-count {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: var(--re-white);
  font-size: 15px;
  font-weight: 900;
  border-radius: 9px;
  background: var(--re-pink);
  box-shadow:
    0 0 0 5px rgba(244, 63, 108, 0.13),
    0 16px 30px rgba(244, 63, 108, 0.18);
}

.re-ck__insight-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.re-ck__insight-copy b {
  color: var(--re-white);
  font-size: 12.5px;
  font-weight: 850;
  line-height: 1.18;
}

.re-ck__insight-copy small {
  color: var(--re-muted);
  font-size: 11px;
  line-height: 1.2;
}

.re-ck__insight-arrow {
  color: var(--re-muted);
}

.re-ck__insight-arrow svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.re-ck__avatar {
  width: 40px;
  height: 40px;
  border: 2px solid rgba(95, 246, 220, 0.72);
  border-radius: 50%;
  object-fit: cover;
  box-shadow:
    0 12px 24px rgba(2, 6, 23, 0.3),
    0 0 0 4px rgba(95, 246, 220, 0.12);
}

.re-ck__score {
  justify-self: end;
  padding: 6px 10px;
  color: var(--re-cyan);
  font-size: 12px;
  font-weight: 900;
  border: 1px solid rgba(95, 246, 220, 0.3);
  border-radius: 8px;
  background: rgba(95, 246, 220, 0.08);
}

.re-ck__foot {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 14px;
  padding: 11px 13px;
  color: var(--re-muted);
  font-size: 11px;
  font-weight: 700;
  border: 1px solid rgba(91, 105, 153, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.re-ck__foot > span:first-child {
  color: var(--re-white);
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.re-ck__foot > span:nth-child(2) {
  white-space: nowrap;
}

.re-ck__report-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  color: #b76dff;
  font-weight: 900;
  white-space: nowrap;
}

.re-ck__report-link svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 760px) {
  .re-ck__priorities,
  .re-ck__insights {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 520px) {
  .re-ck {
    padding: 14px;
  }

  .re-ck__panel-head,
  .re-ck__foot {
    align-items: flex-start;
  }

  .re-ck__panel-head,
  .re-ck__foot {
    flex-wrap: wrap;
  }

  .re-ck__panel-head,
  .re-ck__priorities,
  .re-ck__metrics,
  .re-ck__insights {
    grid-template-columns: 1fr;
  }

  .re-ck__metric,
  .re-ck__metric:first-child {
    padding: 0;
  }

  .re-ck__metric:not(:first-child) {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--re-line);
    border-left: 0;
  }

  .re-ck__report-link {
    margin-left: 0;
  }
}
