/* ── Turismo Cultural ── */

/* Header */
.tc-header {
  margin-bottom: 1.1rem;
}
.tc-header__title {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 4vw, 2rem);
  color: var(--blue-deep);
  margin: 0 0 .5rem;
  line-height: 1.2;
}
.tc-header__desc {
  color: var(--gray);
  font-size: 1rem;
  line-height: 1.6;
  margin: 0 0 .4rem;
  max-width: 52rem;
}
.tc-header__count {
  font-size: .88rem;
  font-weight: 600;
  color: var(--coral);
  margin: 0;
}
.tc-header__empty {
  font-size: .92rem;
  color: var(--gray);
  background: var(--off-white);
  border: 1px solid var(--gray-light);
  border-radius: var(--radius);
  padding: .75rem 1rem;
  margin: .75rem 0 0;
}

/* Full-bleed map wrapper */
.tc-map-wrap {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-bottom: 2rem;
}

#turismo-map {
  width: 100%;
  height: clamp(420px, 70vh, 750px);
  display: block;
}

/* Custom pin marker */
.tc-marker__dot {
  width: 22px;
  height: 22px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  background: var(--coral, #e85d4a);
  border: 2px solid #fff;
  box-shadow: 0 3px 10px rgba(0,0,0,.35);
  transition: transform .15s;
}
.tc-marker:hover .tc-marker__dot {
  transform: rotate(-45deg) scale(1.18);
}

/* Popup */
.tc-popup {
  min-width: 190px;
  max-width: 250px;
  font-family: var(--font-sans, sans-serif);
}
.tc-popup__img {
  display: block;
  width: 100%;
  height: 110px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: .6rem;
}
.tc-popup__cat {
  display: block;
  font-size: .72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--coral, #e85d4a);
  margin-bottom: .25rem;
}
.tc-popup__title {
  font-size: .95rem;
  font-weight: 700;
  color: var(--blue-deep, #1e3a5f);
  margin: 0 0 .75rem;
  line-height: 1.3;
}
.tc-popup__actions {
  display: flex;
  gap: .4rem;
  flex-wrap: wrap;
}
.tc-popup__btn {
  display: inline-flex;
  align-items: center;
  padding: .32rem .75rem;
  border-radius: 6px;
  font-size: .78rem;
  font-weight: 600;
  text-decoration: none;
  transition: opacity .15s;
}
.tc-popup__btn:hover { opacity: .82; }
.tc-popup__btn--topic   { background: var(--blue-deep, #1e3a5f); color: #fff; }
.tc-popup__btn--reading { background: var(--coral, #e85d4a); color: #fff; }

/* Place list */
.tc-list {
  margin-top: .5rem;
  margin-bottom: 2rem;
}
.tc-list__heading {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--blue-deep);
  margin: 0 0 .9rem;
}
.tc-list__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: .85rem;
}

/* Place card */
.tc-place-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--gray-light);
  background: var(--white);
  color: inherit;
  transition: box-shadow .15s, transform .15s;
}
.tc-place-card:hover {
  box-shadow: 0 6px 18px rgba(0,0,0,.1);
  transform: translateY(-2px);
}
.tc-place-card__img-link {
  display: block;
  line-height: 0;
}
.tc-place-card__img {
  display: block;
  width: 100%;
  height: 110px;
  object-fit: cover;
}
.tc-place-card__img-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 110px;
  background: var(--off-white);
  color: var(--gray-light);
}
.tc-place-card__body {
  padding: .75rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: .25rem;
}
.tc-place-card__cat {
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--coral);
}
.tc-place-card__title {
  font-size: .88rem;
  font-weight: 600;
  color: var(--blue-deep);
  margin: 0;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
.tc-place-card__title-link {
  color: var(--blue-deep);
  text-decoration: none;
}
.tc-place-card__title-link:hover {
  text-decoration: underline;
}
.tc-place-card__map-btn {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  margin-top: auto;
  padding-top: .5rem;
  padding: .38rem .75rem;
  border-radius: 999px;
  border: 1.5px solid var(--coral, #e85d4a);
  background: transparent;
  color: var(--coral, #e85d4a);
  font-size: .75rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s, color .15s;
  align-self: flex-start;
  margin-top: auto;
  line-height: 1;
}
.tc-place-card__map-btn:hover {
  background: var(--coral, #e85d4a);
  color: #fff;
}


/* ══════════════════════════════════════════════
   Rutas culturales — /turismo-cultural
   ══════════════════════════════════════════════ */


/* ══════════════════════════════════════════════
   Rutas culturales
   ══════════════════════════════════════════════ */

.tc-routes {
  margin: 0 0 2.5rem;
}
.tc-routes__heading {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--blue-deep);
  margin: 0 0 .25rem;
}
.tc-routes__intro {
  color: var(--gray);
  font-size: .9rem;
  margin: 0 0 1.25rem;
}
.tc-routes__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}
@media (max-width: 860px) {
  .tc-routes__grid { grid-template-columns: 1fr; }
}
@media (min-width: 540px) and (max-width: 860px) {
  .tc-routes__grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── Card ── */
.tc-route-card {
  display: flex;
  flex-direction: column;
  gap: .9rem;
  border-radius: 12px;
  background: var(--white);
  border: 1px solid #e2e8f0;
  border-top: 4px solid var(--rc, var(--coral));
  padding: 1.2rem 1.1rem 1rem;
  box-shadow: 0 2px 10px rgba(0,0,0,.05);
  transition: box-shadow .18s, transform .18s;
}
.tc-route-card:hover {
  box-shadow: 0 6px 22px rgba(0,0,0,.1);
  transform: translateY(-2px);
}

/* Header: circle number + title */
.tc-route-card__header {
  display: flex;
  gap: .85rem;
  align-items: flex-start;
}
.tc-route-card__circle {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--rc, var(--coral));
  color: #fff;
  font-size: .85rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}
.tc-route-card__title-block { flex: 1; min-width: 0; }
.tc-route-card__name {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 700;
  color: var(--blue-deep);
  margin: 0 0 .2rem;
  line-height: 1.25;
}
.tc-route-card__tagline {
  font-size: .78rem;
  color: var(--gray);
  margin: 0;
  line-height: 1.45;
}

/* Pills row */
.tc-route-card__pills {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
}
.tc-route-card__pill {
  display: inline-block;
  padding: .22rem .65rem;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 600;
  background: #f1f5f9;
  color: #475569;
  white-space: nowrap;
}
.tc-route-card__pill--easy   { background: #dcfce7; color: #166534; }
.tc-route-card__pill--medium { background: #fef3c7; color: #92400e; }
.tc-route-card__pill--hard   { background: #fee2e2; color: #991b1b; }

/* Stops list */
.tc-route-card__stops {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  flex: 1;
  border-top: 1px solid #f1f5f9;
  padding-top: .5rem;
}
.tc-route-card__stops li + li {
  border-top: 1px dashed #f1f5f9;
}
.tc-route-card__stop {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .3rem 0;
  text-decoration: none;
  color: inherit;
  transition: color .12s;
}
.tc-route-card__stop:hover .tc-route-card__stop-name {
  color: var(--rc, var(--coral));
  text-decoration: underline;
}
.tc-route-card__stop-n {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--rc, var(--coral));
  color: #fff;
  font-size: .65rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: .75;
}
.tc-route-card__stop-name {
  font-size: .82rem;
  color: #334155;
  line-height: 1.3;
}

/* CTA button */
.tc-route-card__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  padding: .6rem 1rem;
  border-radius: 8px;
  border: 2px solid var(--rc, var(--coral));
  background: transparent;
  color: var(--rc, var(--coral));
  font-size: .85rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s, color .15s;
  width: 100%;
  margin-top: auto;
}
.tc-route-card__cta:hover {
  background: var(--rc, var(--coral));
  color: #fff;
}

/* Numbered pins on map */
.tc-route-pin {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2.5px solid #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: .72rem;
  font-weight: 800;
  line-height: 1;
}
/* City badge on section headings */
.tc-routes__city-badge {
  display: inline-block;
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  padding: .2rem .65rem;
  border-radius: 999px;
  background: var(--coral);
  color: #fff;
  margin-right: .5rem;
  vertical-align: middle;
  font-family: var(--font-sans, sans-serif);
}
.tc-routes__city-badge--benidorm { background: #0891b2; }

/* 2-col variant for Benidorm (only 2 cards) */
.tc-routes__grid--2col {
  grid-template-columns: repeat(2, 1fr);
  max-width: 720px;
}
@media (max-width: 600px) {
  .tc-routes__grid--2col { grid-template-columns: 1fr; max-width: none; }
}
.tc-routes__city-badge--provincia { background: #6d28d9; }

/* Auto-fill grid for Alicante section (4 cards) */
.tc-routes__grid--auto {
  grid-template-columns: repeat(auto-fill, minmax(245px, 1fr));
}

/* ══════════════════════════════════════════════
   Barra de filtros del mapa
   ══════════════════════════════════════════════ */
.tc-filter-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .6rem 1rem;
  padding: .85rem 0 1.1rem;
  border-bottom: none;
  margin-bottom: 1.4rem;
}
.tc-filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  flex: 1;
}
.tc-fchip {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .35rem .85rem;
  border-radius: 999px;
  border: 1.5px solid #e2e8f0;
  background: var(--white, #fff);
  color: #475569;
  font-size: .82rem;
  font-weight: 500;
  cursor: pointer;
  transition: border-color .15s, background .15s, color .15s, transform .12s;
  white-space: nowrap;
  line-height: 1.4;
}
.tc-fchip:hover {
  border-color: var(--coral);
  color: var(--coral);
  transform: translateY(-1px);
}
.tc-fchip--active {
  background: var(--coral);
  border-color: var(--coral);
  color: #fff;
  font-weight: 600;
}
.tc-fchip--active:hover { color: #fff; transform: none; }
.tc-fchip__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: rgba(255,255,255,.28);
  font-size: .7rem;
  font-weight: 700;
  line-height: 1;
}
.tc-fchip--active .tc-fchip__count { background: rgba(255,255,255,.3); }
.tc-fchip:not(.tc-fchip--active) .tc-fchip__count {
  background: #f1f5f9;
  color: #64748b;
}
.tc-filter-count {
  font-size: .82rem;
  color: var(--gray, #64748b);
  white-space: nowrap;
  padding-left: .25rem;
}
