/**
 * tabaco-cerca.css — landing /tabaco-cerca-de-mi/
 * Réutilise le design system home.css, ajoute spécifique map + résultats.
 */

.tc-page { background: var(--eh-bg); }

/* Hero (variant) */
.tc-hero { padding: 56px 20px 48px; }
.tc-hero .eh-hero-inner { grid-template-columns: 1fr; gap: 0; }
.tc-hero-inner { max-width: 1100px; }

/* Fix : pill ne doit pas s'etendre dans le grid item 1fr */
.tc-hero .eh-pill {
  display: inline-block;
  width: auto;
  max-width: max-content;
  justify-self: start;
}

.tc-action-row {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 28px;
  margin-bottom: 12px;
}
.tc-or {
  color: rgba(255,255,255,0.55);
  font-size: 14px;
  font-style: italic;
}
.tc-locate {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
}
.tc-locate svg { stroke: currentColor; }
.tc-search { max-width: 480px; flex: 1; min-width: 280px; margin-bottom: 0; }
.tc-status {
  margin-top: 14px;
  font-size: 14px;
  color: rgba(255,255,255,0.75);
  min-height: 22px;
}
.tc-status-loading { color: var(--eh-oro); }
.tc-status-ok      { color: #6EE7A0; }
.tc-status-err     { color: #F87171; }

/* Map + Résultats */
.tc-map-section {
  background: var(--eh-bg);
  padding: 0 0 0;
  margin-bottom: 0;
}
.tc-map-wrap {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 0;
  background: #fff;
  border: 1px solid var(--eh-line);
  border-top: none;
  min-height: 560px;
}
#tc-map {
  width: 100%;
  min-height: 560px;
  background: #f0f0f0;
}
.tc-results {
  border-left: 1px solid var(--eh-line);
  display: flex;
  flex-direction: column;
  background: #fff;
  max-height: 560px;
  overflow: hidden;
}
.tc-results-head {
  padding: 18px 20px;
  border-bottom: 1px solid var(--eh-line);
  background: var(--eh-bg);
  flex-shrink: 0;
}
.tc-results-head h2 {
  font-family: var(--eh-fdisp);
  font-size: 18px;
  margin: 0 0 4px;
  padding-left: 12px;
  border-left: 3px solid var(--eh-rojo);
  color: var(--eh-text);
}
.tc-count {
  font-size: 12px;
  color: var(--eh-text-soft);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: block;
  padding-left: 12px;
}
.tc-list {
  list-style: none;
  margin: 0;
  padding: 8px 0;
  overflow-y: auto;
  flex: 1;
}
.tc-list-item { padding: 0; margin: 0; }
.tc-list-link {
  display: grid;
  grid-template-columns: 32px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px 18px;
  text-decoration: none;
  color: var(--eh-text);
  border-bottom: 1px solid var(--eh-line);
  transition: background 0.15s;
}
.tc-list-link:hover { background: #fff8f8; }
.tc-list-rank {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--eh-rojo);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.tc-list-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tc-list-num {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--eh-rojo);
}
.tc-list-addr {
  font-weight: 600;
  font-size: 13px;
  color: var(--eh-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tc-list-meta { font-size: 11px; color: var(--eh-text-soft); }
.tc-list-dist {
  font-family: var(--eh-fdisp);
  font-weight: 700;
  font-size: 14px;
  color: var(--eh-rojo);
}
.tc-empty {
  padding: 30px 20px;
  text-align: center;
  color: var(--eh-text-soft);
  font-style: italic;
}

/* Markers Leaflet customisés */
.tc-marker { background: transparent !important; border: 0 !important; }
.tc-marker .tc-mn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  background: var(--eh-rojo);
  color: #fff;
  font-family: var(--eh-fbody);
  font-weight: 700;
  font-size: 13px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  border: 2px solid #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}
.tc-marker .tc-mn::after { content: ''; }
.tc-marker .tc-mn { line-height: 26px; }
.tc-user-marker { background: transparent !important; border: 0 !important; }
.tc-user-marker > div {
  width: 22px;
  height: 22px;
  background: #2563EB;
  border: 4px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(37,99,235,0.25);
  animation: tc-pulse 2s infinite ease-in-out;
}
@keyframes tc-pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(37,99,235,0.25); }
  50% { box-shadow: 0 0 0 12px rgba(37,99,235,0.05); }
}

/* Section Cómo funciona (3 steps) */
.tc-howto { background: #fff; padding-top: 64px; }
.tc-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.tc-step {
  background: var(--eh-bg);
  border: 1px solid var(--eh-line);
  border-radius: var(--eh-radius);
  padding: 32px 28px;
  position: relative;
  transition: border-color 0.2s, transform 0.15s;
}
.tc-step:hover { border-color: var(--eh-rojo); transform: translateY(-3px); }
.tc-step-num {
  position: absolute;
  top: -18px;
  left: 24px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--eh-rojo);
  color: #fff;
  font-family: var(--eh-fdisp);
  font-weight: 700;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(200,16,46,0.3);
}
.tc-step h3 {
  font-size: 19px;
  margin: 14px 0 8px;
  color: var(--eh-text);
  font-family: var(--eh-fdisp);
}
.tc-step p {
  color: var(--eh-text-soft);
  font-size: 14px;
  line-height: 1.55;
  margin: 0;
}
.tc-step em { color: var(--eh-rojo); font-style: normal; font-weight: 700; }

/* Section "Why" hérite de eh-trust-grid déjà défini */

/* Long content SEO */
.tc-content { background: #fff; }
.tc-content-inner { max-width: 880px; }
.tc-content h2.eh-h2 { text-align: left; }
.tc-content h3 {
  font-family: var(--eh-fdisp);
  font-size: 22px;
  font-weight: 700;
  color: var(--eh-text);
  margin: 32px 0 12px;
  padding-left: 14px;
  border-left: 4px solid var(--eh-rojo);
}
.tc-content p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--eh-text);
  margin: 0 0 14px;
}
.tc-content .tc-lead {
  font-size: 17px;
  color: var(--eh-text);
  background: var(--eh-bg);
  border-left: 4px solid var(--eh-oro);
  padding: 18px 22px;
  border-radius: 8px;
  margin-bottom: 28px;
}
.tc-content ul.tc-products,
.tc-content ol.tc-tips {
  padding-left: 22px;
  font-size: 15px;
  line-height: 1.7;
}
.tc-content ul.tc-products li,
.tc-content ol.tc-tips li { margin-bottom: 8px; }
.tc-content em { color: var(--eh-rojo); font-style: italic; }

/* FAQ */
.tc-faq { background: var(--eh-bg); }
.tc-faq-inner { max-width: 880px; }
.tc-faq-list { display: flex; flex-direction: column; gap: 12px; }
.tc-faq-item {
  background: #fff;
  border: 1px solid var(--eh-line);
  border-left: 4px solid var(--eh-rojo);
  border-radius: 10px;
  padding: 18px 22px;
  transition: box-shadow 0.15s;
}
.tc-faq-item[open] { box-shadow: 0 6px 16px rgba(0,0,0,0.06); }
.tc-faq-item summary {
  font-family: var(--eh-fdisp);
  font-weight: 700;
  font-size: 17px;
  color: var(--eh-text);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.tc-faq-item summary::-webkit-details-marker { display: none; }
.tc-faq-item summary::after {
  content: '+';
  font-size: 24px;
  color: var(--eh-rojo);
  font-weight: 300;
  transition: transform 0.2s;
  flex-shrink: 0;
}
.tc-faq-item[open] summary::after { content: '−'; }
.tc-faq-item p {
  margin: 14px 0 0;
  font-size: 15px;
  line-height: 1.65;
  color: var(--eh-text);
}

/* Responsive */
@media (max-width: 960px) {
  .tc-map-wrap { grid-template-columns: 1fr; }
  .tc-results { border-left: 0; border-top: 1px solid var(--eh-line); max-height: 480px; }
  #tc-map { min-height: 380px; }
  .tc-steps { grid-template-columns: 1fr; gap: 22px; }
  .tc-action-row { flex-direction: column; align-items: stretch; }
  .tc-or { text-align: center; }
  .tc-search { max-width: none; }
}
@media (max-width: 560px) {
  .tc-content { padding-left: 18px; padding-right: 18px; }
  .tc-content h3 { font-size: 19px; }
  .tc-content p, .tc-content ul, .tc-content ol { font-size: 15px; }
  .tc-list-link { padding: 10px 14px; }
}
