/* ── Reset & base ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:         #F7F0e7;
  --primary:    #1C3F3F;
  --primary-15: rgba(28, 63, 63, 0.15);
  --accent:     #D4A55A;
  --white:      #FFFFFF;
  --text-dark:  #1A2E2E;
  --text-mid:   #4A6060;
  --text-light: #8AA0A0;
  --border:     rgba(28, 63, 63, 0.12);
  --shadow-sm:  0 2px 12px rgba(0, 0, 0, 0.06);
  --shadow-md:  0 4px 24px rgba(0, 0, 0, 0.10);
  --radius:     16px;
  --radius-sm:  10px;
}

html, body {
  height: 100%;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text-dark);
  -webkit-font-smoothing: antialiased;
}

/* ── Header ───────────────────────────────────────────────────────────────── */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 28px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: relative;
  z-index: 1000;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  background: var(--primary);
  color: var(--white);
  text-decoration: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  flex-shrink: 0;
  transition: opacity 0.15s;
}
.nav-link:hover { opacity: 0.85; }

.credits-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px 6px 6px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dark);
  flex-shrink: 0;
}
.credits-badge[hidden] { display: none; }
.credits-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #D6EBD8;
  color: #3F8348;
  font-size: 14px;
}


/* ── Search ───────────────────────────────────────────────────────────────── */
.search-container {
  position: relative;
  width: 100%;
  max-width: 460px;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 50px;
  padding: 10px 18px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.search-box:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-15), var(--shadow-sm);
}

.search-icon {
  color: var(--text-light);
  flex-shrink: 0;
}

#searchInput {
  flex: 1;
  border: none;
  outline: none;
  font-family: inherit;
  font-size: 15px;
  font-weight: 400;
  color: var(--text-dark);
  background: transparent;
  min-width: 0;
}

#searchInput::placeholder {
  color: var(--text-light);
}

.spinner {
  flex-shrink: 0;
  color: var(--primary);
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ── Suggestions dropdown ─────────────────────────────────────────────────── */
.suggestions {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  list-style: none;
  overflow: hidden;
  z-index: 2000;
  max-height: 320px;
  overflow-y: auto;
}

.suggestions li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 18px;
  cursor: pointer;
  transition: background 0.15s;
  border-bottom: 1px solid rgba(0,0,0,0.04);
}

.suggestions li:last-child { border-bottom: none; }

.suggestions li:hover,
.suggestions li.active {
  background: #F5EDE4;
}

.sug-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dark);
}

.sug-meta {
  font-size: 13px;
  color: var(--text-light);
  text-align: right;
  white-space: nowrap;
  margin-left: 8px;
}

/* ── Main layout ──────────────────────────────────────────────────────────── */
main {
  display: flex;
  flex-direction: row;
  height: calc(100vh - 69px);
  overflow: hidden;
}

.right-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* ── Map ──────────────────────────────────────────────────────────────────── */
.map-wrap {
  position: relative;
  flex-shrink: 0;
}
#map {
  height: 75vh;
  background: #E8E0D6;
}

.below-map {
  display: flex;
  flex-direction: row;
  flex: 1;
  border-top: 1px solid var(--border);
  overflow: hidden;
}

#blocVentePanel {
  flex: 1;
  background: var(--bg);
  border-right: 1px solid var(--border);
  padding: 0 20px;
  overflow-y: auto;
}

#map * {
  font-family: 'DM Sans', sans-serif;
}

/* Suppress Google Maps InfoWindow default chrome */
.gm-style-iw-d { overflow: visible !important; }
.gm-style-iw   { padding: 0 !important; background: transparent !important; box-shadow: none !important; }
.gm-style-iw-tc, .gm-ui-hover-effect { display: none !important; }

.commune-tooltip {
  background: var(--white);
  border: none;
  border-radius: 6px;
  padding: 4px 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-dark);
  box-shadow: var(--shadow-sm);
}

/* ── Info panel ───────────────────────────────────────────────────────────── */
.info-panel {
  flex: 1;
  min-width: 0;
  background: var(--bg);
  border-left: 1px solid var(--border);
  overflow-y: auto;
  padding: 28px 28px 32px;
}

.info-placeholder {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  text-align: center;
  color: var(--text-light);
  font-size: 14px;
  line-height: 1.6;
  padding: 40px 20px;
}

/* Info content */
.info-header {
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.info-header-left {
  display: flex;
  align-items: baseline;
  gap: 10px;
  min-width: 0;
  flex-wrap: wrap;
  row-gap: 6px;
}

.info-header h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.5px;
  line-height: 1.2;
}

.code-insee {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-light);
  background: rgba(28, 63, 63, 0.07);
  padding: 4px 9px;
  border-radius: 20px;
  white-space: nowrap;
  flex-shrink: 0;
}

.info-header-buyers {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  flex-shrink: 0;
  line-height: 1;
  gap: 3px;
}

.info-header-buyers-value {
  font-size: 22px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.5px;
  line-height: 1;
}

.info-header-buyers-label {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.info-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 8px;
}

.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
}

.info-item {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  box-shadow: var(--shadow-sm);
  border-top: 3px solid var(--border);
}

.info-label {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: var(--text-light);
}

.info-value {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* ── Badges ───────────────────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.2px;
}

.badge-red        { background: #FEE2E2; color: #B91C1C; }
.badge-orange     { background: #FEF3C7; color: #92400E; }
.badge-green      { background: #D1FAE5; color: #065F46; }
.badge-blue       { background: #DBEAFE; color: #1E40AF; }
.badge-dark-green { background: var(--primary); color: #FFFFFF; }
.badge-light-green{ background: #CCEBE5; color: #0F5245; }
.badge-grey       { background: #F1F5F4; color: var(--text-mid); }

/* ── Data source note ─────────────────────────────────────────────────────── */
.data-source {
  margin-top: 20px;
  font-size: 11px;
  color: var(--text-light);
  line-height: 1.5;
  text-align: center;
  padding: 12px;
  background: rgba(28, 63, 63, 0.04);
  border-radius: var(--radius-sm);
}

/* ── Loading state for info panel ─────────────────────────────────────────── */
.info-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  color: var(--text-light);
  font-size: 14px;
  gap: 10px;
}

.info-loading svg {
  animation: spin 0.8s linear infinite;
  color: var(--primary);
}

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 700px) {
  header { padding: 12px 16px; }

  .logo-text { display: none; }

  main {
    flex-direction: column;
    height: calc(100vh - 61px);
  }

  .right-col {
    flex: none;
    height: 45%;
  }

  #map {
    height: 70%;
    flex-shrink: 0;
  }

  #blocVentePanel {
    border-top: none;
    border-bottom: 1px solid var(--border);
    padding: 0 16px;
  }

  .info-panel {
    width: 100%;
    flex: 1;
    border-left: none;
    border-top: 1px solid var(--border);
    padding: 16px;
  }

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

/* ── Potentiel de vente en bloc ─────────────────────────────────────────── */
.bloc-vente-section {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 20px 0 4px;
  padding: 16px 18px;
  background: #fffbf5;
  border: 1.5px solid var(--accent);
  border-radius: 10px;
}

.bloc-vente-icon {
  font-size: 2.4rem;
  line-height: 1;
  flex-shrink: 0;
  filter: drop-shadow(0 0 4px rgba(217, 119, 6, 0.5));
}

.bloc-vente-content {
  flex: 1;
  min-width: 0;
}

.bloc-vente-title {
  margin: 0 0 6px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 0.01em;
}

.bloc-vente-desc {
  margin: 0 0 12px;
  font-size: 0.85rem;
  color: #6b6355;
  line-height: 1.5;
}

.bloc-vente-link {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.bloc-vente-link:hover {
  color: #b8893f;
}

.bloc-astuce {
  margin-top: 8px;
  padding: 14px 16px;
  background: #145156;
  border: 1px solid #0d3a3e;
  border-radius: 8px;
  font-size: 0.83rem;
  color: #d6f0f1;
  line-height: 1.5;
}

.astuce-commune-link {
  color: #7dd8db;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

.astuce-commune-link:hover {
  color: #a8e8ea;
}

/* ── Modale questionnaire ───────────────────────────────────────────────── */
.bloc-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.bloc-modal-overlay[hidden] { display: none; }

.bloc-modal {
  position: relative;
  background: #fff;
  border-radius: 14px;
  width: 100%;
  max-width: 460px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2rem 2rem 1.75rem;
  box-shadow: 0 8px 40px rgba(0,0,0,0.18);
}

.bloc-modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  font-size: 1.1rem;
  color: #999;
  cursor: pointer;
  line-height: 1;
  padding: 4px 6px;
  border-radius: 6px;
}

.bloc-modal-close:hover {
  background: #f0ede8;
  color: #333;
}

.bloc-step-counter,
.bloc-step-label {
  margin: 0 0 6px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #999;
}

.bloc-step h3 {
  margin: 0 0 20px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary);
  line-height: 1.4;
}

.bloc-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bloc-option-btn {
  width: 100%;
  padding: 12px 16px;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--primary);
  cursor: pointer;
  text-align: left;
  transition: border-color 0.15s, background 0.15s;
}

.bloc-option-btn:hover {
  border-color: var(--primary);
  background: #f3f8f6;
}

.bloc-input-row {
  display: flex;
  gap: 10px;
  align-items: center;
}

.bloc-input-row input[type="number"] {
  flex: 1;
  padding: 10px 12px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.92rem;
  color: var(--primary);
  outline: none;
}

.bloc-input-row input[type="number"]:focus {
  border-color: var(--primary);
}

.bloc-next-btn {
  padding: 10px 16px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.bloc-next-btn:hover {
  background: #142e2e;
}

.bloc-input-error {
  margin: 8px 0 0;
  font-size: 0.82rem;
  color: #B91C1C;
}

.bloc-result-text {
  padding: 14px 16px;
  background: #fffbf5;
  border-left: 3px solid var(--accent);
  border-radius: 0 8px 8px 0;
  font-size: 0.9rem;
  line-height: 1.6;
  color: #3a332a;
  margin-bottom: 20px;
  min-height: 60px;
}

.bloc-result-text p { margin: 0 0 0.6em; }
.bloc-result-text p:last-child { margin-bottom: 0; }

.bloc-result-text ul,
.bloc-result-text ol {
  margin: 0.5em 0 0.8em;
  padding-left: 1.4em;
}

.bloc-result-text li {
  margin-bottom: 0.35em;
  line-height: 1.5;
}

.bloc-result-text li:last-child { margin-bottom: 0; }

.bloc-result-text a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.bloc-result-text a:hover {
  color: #b8893f;
}

.bloc-signature {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #E2D8CD;
}

.bloc-signature-photo {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top;
  flex-shrink: 0;
}

.bloc-signature-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.bloc-signature-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: #1C3F3F;
}

.bloc-signature-role {
  font-size: 0.78rem;
  color: #888;
}

.bloc-cta-btn {
  display: block;
  text-align: center;
  padding: 12px 20px;
  background: var(--accent);
  color: #fff;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: background 0.15s;
}

.bloc-cta-btn:hover {
  background: #b8893f;
}

/* ── Offers section ───────────────────────────────────────────────────────── */
.offers-section {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.offers-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 4px;
}

.offers-subtitle {
  font-size: 12px;
  color: var(--text-light);
  line-height: 1.5;
  margin-bottom: 16px;
}

.offers-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 20px;
}

.offers-stat-card {
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.stat-label {
  font-size: 11px;
  color: var(--text-light);
  line-height: 1.4;
}

.stat-value {
  font-size: 26px;
  font-weight: 700;
  color: var(--text-dark);
  letter-spacing: -0.5px;
  line-height: 1;
}

.offers-divider {
  height: 1px;
  background: var(--border);
  margin-bottom: 16px;
}

/* Non-client teaser : popup contact au-dessus des prix floutés */
.offer-categories-wrapper {
  position: relative;
}
.contact-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(420px, calc(100vw - 24px));
  max-height: calc(100vh - 24px);
  overflow: auto;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  background: linear-gradient(135deg, #145156 0%, #1c6f76 100%);
  border-radius: var(--radius-sm);
  box-shadow: 0 12px 32px rgba(20, 81, 86, 0.4), 0 2px 8px rgba(0, 0, 0, 0.15);
  color: #fff;
}
.contact-popup[hidden] { display: none; }
.contact-popup-close {
  position: absolute;
  top: 6px;
  right: 8px;
  width: 24px;
  height: 24px;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s;
}
.contact-popup-close:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}
.contact-card-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}
.contact-card-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}
.contact-card-eyebrow {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: rgba(255, 255, 255, 0.75);
}
.contact-card-title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
}
.contact-card-subtitle {
  margin: 2px 0 8px 0;
  font-size: 12px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.85);
}
.contact-card-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.contact-card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  transition: opacity 0.15s;
}
.contact-card-link:hover { opacity: 0.8; }
.contact-card-link i {
  font-size: 11px;
  width: 14px;
  text-align: center;
  color: rgba(255, 255, 255, 0.8);
}

.offer-categories-blurred .cat-avg-price,
.offer-categories-blurred .cat-range {
  filter: blur(5px);
  user-select: none;
}

/* CTA "Vous avez un projet ?" quand aucune offre */
.study-cta {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 28px 24px;
  margin-top: 8px;
  background: linear-gradient(135deg, #145156 0%, #1c6f76 60%, #2a8d96 100%);
  border-radius: var(--radius-sm);
  box-shadow: 0 10px 28px rgba(20, 81, 86, 0.32), 0 2px 6px rgba(0, 0, 0, 0.1);
  color: #fff;
}
.study-cta-glow {
  position: absolute;
  inset: -40% -20% auto auto;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(211, 135, 46, 0.35) 0%, rgba(211, 135, 46, 0) 70%);
  pointer-events: none;
}
.study-cta-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.25);
  margin-bottom: 14px;
  font-size: 20px;
  color: #fff;
}
.study-cta-title {
  position: relative;
  margin: 0 0 6px 0;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: #fff;
}
.study-cta-subtitle {
  position: relative;
  margin: 0 auto 18px auto;
  max-width: 320px;
  font-size: 13px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.88);
}
.study-cta-actions {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}
.study-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 220px;
  padding: 11px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}
.study-cta-btn-primary {
  background: #d3872e;
  color: #fff;
  box-shadow: 0 4px 12px rgba(211, 135, 46, 0.45);
}
.study-cta-btn-primary:hover {
  background: #e0922f;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(211, 135, 46, 0.55);
}
.study-cta-btn-ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.4);
}
.study-cta-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.6);
}
.study-cta-btn i { font-size: 12px; }

/* Category rows */
.offer-category {
  background: var(--white);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  margin-bottom: 10px;
}

.offer-category-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  cursor: pointer;
  transition: background 0.15s;
}

.offer-category-header:hover {
  background: #F7F5F2;
}

.cat-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}

.cat-social        { background: #ffedd8; color: #d3872e; }
.cat-intermediaire { background: #e1edff; color: #0567f8; }
.cat-libre         { background: #e6ecef; color: #145156; }

.cat-price-block {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  gap: 2px;
  min-width: 0;
}

.cat-avg-price {
  font-size: 19px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.3px;
}

.cat-range {
  font-size: 12px;
  color: var(--text-light);
}

.cat-chevron {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-mid);
  transition: transform 0.2s, background 0.15s;
}

.cat-chevron:hover {
  background: #F0EDEA;
}

.cat-chevron.chevron-open svg {
  transform: rotate(180deg);
}

.cat-chevron svg {
  transition: transform 0.2s;
}

/* Individual offers list */
.offer-list {
  border-top: 1px solid var(--border);
  padding: 8px 0;
}

.offer-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(0,0,0,0.04);
}

.offer-row:last-child {
  border-bottom: none;
}

.offer-num {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

.offer-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.offer-date-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark);
}

.offer-price {
  flex-shrink: 0;
  font-size: 15px;
  font-weight: 700;
  text-align: right;
  margin-left: auto;
}

.offer-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.offer-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  background: #F1F5F4;
  color: var(--text-mid);
  border-radius: 20px;
  font-size: 11.5px;
  font-weight: 500;
  border: 1px solid var(--border);
}

/* ── No credits inline (offers-section replacement) ───────────────────────── */
.no-credits-inline {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-top: 20px;
  padding: 20px 22px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.no-credits-inline-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #FBE9D6;
  color: var(--accent);
  font-size: 16px;
  flex-shrink: 0;
}

.no-credits-inline-body {
  flex: 1;
  min-width: 0;
}

.no-credits-inline-title {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.2px;
}

.no-credits-inline-subtitle {
  margin: 0 0 14px;
  font-size: 13.5px;
  color: var(--text-mid);
  line-height: 1.5;
}

.no-credits-inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.no-credits-inline-cta,
.no-credits-inline-phone {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.15s, background 0.15s, border-color 0.15s;
}

.no-credits-inline-cta {
  background: var(--primary);
  color: var(--white);
}
.no-credits-inline-cta:hover { opacity: 0.9; }

.no-credits-inline-phone {
  background: var(--white);
  color: var(--primary);
  border: 1.5px solid var(--border);
}
.no-credits-inline-phone:hover {
  border-color: var(--primary);
  background: #f3f8f6;
}
