/* El mapa por capas y subsecciones (14-nov): panel al lado del mapa, de barrio y de ciudad. */
.rtc-cuerpo { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 1.25rem; align-items: start; margin: .75rem 0 0; }
.rtc-cuerpo > .rt-mapa__vivo, .rtc-cuerpo > .rt-barrios-mapa__vivo { margin: 0; min-width: 0; }
@media (max-width: 1024px) { .rtc-cuerpo { grid-template-columns: minmax(0, 1fr); } .rtc-panel { order: -1; } .rtc-tit { display: none; } }
.rt-mapa--rtc .rt-mapa__capas, .rt-mapa--rtc .rt-mapa__form, .rt-mapa--rtc .rt-mapa__sin { display: none !important; }

.rtc-panel { display: grid; gap: .6rem; min-width: 0; padding: .9rem; border: 1px solid rgb(29 29 31 / 12%); border-radius: 14px; background: #fff; color: #1d1d1f; font-size: .88rem; }
.rtc-cab { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; flex-wrap: wrap; }
.rtc-tit { margin: 0; font-size: 1rem; font-weight: 800; }
.rtc-quitar { border: 0; background: none; padding: 0; color: #9e0f17; font-weight: 700; font-size: .8rem; cursor: pointer; }
.rtc-abiertos { display: inline-flex; align-items: center; gap: .4rem; font-size: .82rem; font-weight: 600; cursor: pointer; }
.rtc-grupo { border-top: 1px solid rgb(29 29 31 / 10%); padding-top: .45rem; }
.rtc-grupo summary { list-style: none; display: flex; align-items: center; gap: .5rem; cursor: pointer; padding: .15rem 0; }
.rtc-grupo summary::-webkit-details-marker { display: none; }
.rtc-todo { display: flex; align-items: center; gap: .5rem; min-height: 44px; margin: .35rem 0 .1rem 2.1rem; font-weight: 700; cursor: pointer; }
.rtc-grupo input[type="checkbox"] { accent-color: var(--c); width: 1.05rem; height: 1.05rem; margin: 0; flex: none; }
.rtc-mk { width: 1.65rem; height: 1.65rem; border-radius: 50%; background: var(--c); display: grid; place-items: center; flex: none; }
.rtc-nom { flex: 1; min-width: 0; font-weight: 800; }
.rtc-num { font-size: .76rem; color: #6a6560; }
.rtc-fl { width: .5rem; height: .5rem; border-right: 2px solid #6a6560; border-bottom: 2px solid #6a6560; transform: rotate(-45deg); transition: transform .15s; }
.rtc-grupo[open] .rtc-fl { transform: rotate(45deg); }
.rtc-subs { display: flex; flex-wrap: wrap; gap: .4rem; padding: .45rem 0 .25rem 2.1rem; }
.rtc-sub { display: inline-flex; align-items: center; gap: .35rem; padding: .25rem .6rem .25rem .45rem; border: 1px solid rgb(29 29 31 / 14%); border-radius: 999px; font-size: .8rem; cursor: pointer; background: #f6f5f3; user-select: none; }
.rtc-sub:has(input:checked) { border-color: var(--c); background: color-mix(in srgb, var(--c) 12%, #fff); }
.rtc-sub i { font-style: normal; font-size: .7rem; color: #6a6560; }
.rtc-sub[hidden], .rtc-ninguno[hidden] { display: none; }
.rtc-grupo .rtc-bus { flex: 1 1 100%; width: 100%; height: auto; padding: .4rem .6rem; border: 1px solid rgb(29 29 31 / 14%); border-radius: 8px; font-size: .84rem; background: #f6f5f3; min-width: 0; }
.rtc-ninguno { flex: 1 1 100%; margin: 0; color: #6a6560; font-size: .8rem; }
.rtc-total { margin: 0; padding-top: .45rem; border-top: 1px solid rgb(29 29 31 / 10%); color: #6a6560; font-size: .8rem; }
.rt-pop__tipo { margin: .1rem 0 0; font-size: .72rem; font-weight: 700; letter-spacing: .03em; color: #6a6560; }

/* En el mapa de toda Terrassa el lienzo no tiene la altura del de un barrio. */
.rt-barrios-mapa .rtc-cuerpo .rt-barrios-mapa__vivo { aspect-ratio: 3 / 2; }
@media (max-width: 820px) { .rt-barrios-mapa .rtc-cuerpo .rt-barrios-mapa__vivo { aspect-ratio: 1 / 1.1; } }

.rtc-panel label, .rtc-panel .rtc-sub, .rtc-panel .rtc-abiertos, .rtc-panel summary { text-transform: none; letter-spacing: 0; }
.rt-mapa--rtc .rt-mapa__leyenda { display: none; }

/* Desplegable: en ancho es el panel de siempre; en móvil y tableta se cierra y queda encima del mapa. */
.rtc-desp > summary { list-style: none; }
.rtc-desp > summary::-webkit-details-marker { display: none; }
.rtc-desp-c { display: grid; gap: .6rem; margin-top: .6rem; }
@media (min-width: 1025px) { .rtc-desp-t { display: none; } .rtc-desp-c { margin-top: 0; } }
@media (max-width: 1024px) {
  .rtc-desp-t { display: flex; justify-content: space-between; align-items: center; gap: .5rem; padding: .15rem 0; font-weight: 800; font-size: 1rem; cursor: pointer; }
  .rtc-desp-t::after { content: ''; width: .55rem; height: .55rem; border-right: 2px solid #6a6560; border-bottom: 2px solid #6a6560; transform: rotate(45deg); transition: transform .15s; }
  .rtc-desp[open] > .rtc-desp-t::after { transform: rotate(225deg); }
}
.rtc-nota { margin: .1rem 0 0; font-size: .76rem; color: #6a6560; }
.rt-oferta-pin[hidden] { display: none !important; }
