/* Anconsul — публичная карточка объекта */
.ac-card {
  --ac-dark: #0d2d1e;
  --ac-gold: #cc9c49;
  --ac-gold-light: #e2b763;
  --ac-bg: #f4f7f9;
  --ac-white: #ffffff;
  --ac-muted: #5a6b63;
  --ac-radius: 16px;
  --ac-shadow: 0 8px 32px rgba(13, 45, 30, 0.08);
  font-family: 'Rubik', Arial, sans-serif;
  color: var(--ac-dark);
  margin-bottom: 40px;
}

.ac-card * { box-sizing: border-box; }

.ac-hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  margin-bottom: 28px;
}

@media (max-width: 991px) {
  .ac-hero { grid-template-columns: 1fr; }
}

.ac-gallery {
  background: var(--ac-white);
  border-radius: var(--ac-radius);
  box-shadow: var(--ac-shadow);
  overflow: hidden;
}

.ac-gallery-main {
  position: relative;
  aspect-ratio: 16/10;
  background: #e8ece9;
  cursor: pointer;
}

.ac-gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ac-gallery-count {
  position: absolute;
  bottom: 14px;
  left: 14px;
  background: rgba(13, 45, 30, 0.75);
  color: #fff;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 13px;
}

.ac-gallery-actions {
  position: absolute;
  top: 14px;
  right: 14px;
  display: flex;
  gap: 8px;
}

.ac-icon-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.92);
  color: var(--ac-dark);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  transition: transform .15s;
}
.ac-icon-btn:hover { transform: scale(1.05); }

.ac-thumbs {
  display: flex;
  gap: 8px;
  padding: 12px;
  overflow-x: auto;
}

.ac-thumb {
  flex: 0 0 88px;
  height: 66px;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  opacity: .85;
}
.ac-thumb.active { border-color: var(--ac-gold); opacity: 1; }
.ac-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ac-thumb.locked img { filter: blur(6px); }

.ac-summary {
  background: var(--ac-white);
  border-radius: var(--ac-radius);
  box-shadow: var(--ac-shadow);
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.ac-price {
  font-size: 36px;
  font-weight: 800;
  color: var(--ac-dark);
  line-height: 1.1;
  margin: 0 0 8px;
}

.ac-price-sub {
  font-size: 15px;
  color: var(--ac-muted);
  margin-bottom: 16px;
}

.ac-title {
  font-size: 22px;
  font-weight: 600;
  margin: 0 0 16px;
  line-height: 1.35;
}

.ac-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.ac-chip {
  background: var(--ac-bg);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 500;
}

.ac-chip strong { color: var(--ac-gold); }

.ac-analytic-invest .val { font-size: 14px !important; color: var(--ac-green); }

.ac-analytic-gold .val { color: var(--ac-gold); }

.ac-invest-reasons {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ac-invest-tag {
  display: inline-block;
  padding: 6px 12px;
  background: var(--ac-bg);
  border-radius: 999px;
  font-size: 13px;
  color: var(--ac-green);
  font-weight: 500;
}

.ac-analytic-muted .val { color: #9aa8a0 !important; font-size: 20px !important; }

.ac-invest-tag-muted {
  color: #5a6b63;
  background: #f4f6f5;
  font-weight: 400;
}

.ac-investor-opt label {
  font-size: 14px;
  color: var(--ac-muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.ac-price-history {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #e8ece9;
}

.ac-price-history-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--ac-muted);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.ac-price-chart-wrap {
  margin-bottom: 12px;
}

.ac-price-spark {
  width: 100%;
  max-width: 320px;
  height: 72px;
  display: block;
}

.ac-price-chart-labels {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--ac-muted);
  margin-top: 4px;
  max-width: 320px;
}

.ac-price-timeline {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ac-price-timeline li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  padding: 6px 0;
  border-bottom: 1px solid #f0f3f1;
}

.ac-price-timeline li:last-child { border-bottom: none; }

.ac-price-timeline .dt { color: var(--ac-muted); white-space: nowrap; }
.ac-price-timeline .pr { text-align: right; color: var(--ac-dark); }

.ac-block {
  background: var(--ac-white);
  border-radius: var(--ac-radius);
  box-shadow: var(--ac-shadow);
  padding: 24px;
  margin-bottom: 24px;
}

.ac-block-title {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.ac-block-title::before {
  content: '';
  width: 4px;
  height: 22px;
  background: var(--ac-gold);
  border-radius: 2px;
}

.ac-specs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}

.ac-spec {
  background: var(--ac-bg);
  border-radius: 12px;
  padding: 14px;
}
.ac-spec label {
  display: block;
  font-size: 12px;
  color: var(--ac-muted);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.ac-spec span { font-size: 16px; font-weight: 600; }

.ac-lead {
  background: linear-gradient(135deg, var(--ac-dark) 0%, #1a4a32 100%);
  color: #fff;
  border-radius: var(--ac-radius);
  padding: 28px;
  margin-bottom: 24px;
}

.ac-lead h3 {
  margin: 0 0 8px;
  font-size: 24px;
  font-weight: 700;
}

.ac-lead p {
  opacity: .85;
  margin: 0 0 20px;
  font-size: 15px;
}

.ac-lead-form .ac-field {
  margin-bottom: 14px;
}

.ac-lead-form input,
.ac-lead-form textarea {
  width: 100%;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.08);
  color: #fff;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 15px;
}
.ac-lead-form input::placeholder,
.ac-lead-form textarea::placeholder { color: rgba(255,255,255,.55); }

.ac-btn-primary {
  display: inline-block;
  background: var(--ac-gold);
  color: var(--ac-dark);
  border: none;
  border-radius: 10px;
  padding: 14px 28px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s;
}
.ac-btn-primary:hover { background: var(--ac-gold-light); }

.ac-lead-msg {
  margin-top: 12px;
  font-size: 14px;
  display: none;
}
.ac-lead-msg.ok { color: #9fe8b8; display: block; }
.ac-lead-msg.err { color: #ffb4b4; display: block; }

.ac-locked {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
}
.ac-locked-overlay {
  position: absolute;
  inset: 0;
  background: rgba(244,247,249,.92);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  z-index: 2;
}
.ac-card.ac-unlocked .ac-locked-overlay { display: none; }

.ac-analytics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
}
.ac-analytic {
  background: var(--ac-bg);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
}
.ac-analytic .val {
  font-size: 22px;
  font-weight: 800;
  color: var(--ac-gold);
}
.ac-analytic .lbl {
  font-size: 12px;
  color: var(--ac-muted);
  margin-top: 4px;
}

.ac-similar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.ac-similar-card {
  background: var(--ac-white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--ac-shadow);
  transition: transform .15s;
}
.ac-similar-card:hover { transform: translateY(-2px); }
.ac-similar-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}
.ac-similar-body { padding: 14px; }
.ac-similar-body h4 {
  margin: 0 0 6px;
  font-size: 16px;
}
.ac-similar-body h4 a { color: var(--ac-dark); text-decoration: none; }
.ac-similar-price { font-weight: 700; color: var(--ac-gold); }

.ac-unlock-extra { display: none; }
.ac-card.ac-unlocked .ac-unlock-extra { display: block; }

#property-map { height: 360px; border-radius: 12px; overflow: hidden; }

.ac-text-block {
  line-height: 1.65;
  color: var(--ac-muted);
  font-size: 15px;
}

.ac-sidebar-card {
  background: var(--ac-white);
  border-radius: var(--ac-radius);
  box-shadow: var(--ac-shadow);
  padding: 20px;
  margin-bottom: 20px;
}

.ac-agent-phone .btn {
  width: 100%;
  margin-top: 10px;
}
