/* En Bici per Lleida — estils propis complementaris al CSS base.
   Sobretot per al mapa de punts negres (Leaflet). */

/* Conté el z-index intern de Leaflet perquè no tapi la capçalera fixa */
#map { position: relative; z-index: 0; }
.leaflet-container { font: inherit; background: var(--bg-subtle); }

/* Marcadors personalitzats */
.pn-marker { background: transparent; border: 0; }
.pn-pin {
  display: block;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 3px solid #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .45);
}
.dark .pn-pin { border-color: #181615; }
.leaflet-marker-icon:focus-visible { outline: 3px solid #2563eb; outline-offset: 3px; }

/* Popups amb la identitat del lloc */
.leaflet-popup-content-wrapper {
  border-radius: var(--radius-card);
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 8px 30px rgba(0, 0, 0, .18);
}
.leaflet-popup-tip { background: var(--surface); }
.leaflet-popup-content { margin: 14px 16px; }
.pn-pop-title { margin: 0 0 .35rem; font-size: 1rem; font-weight: 700; color: var(--text); }
.pn-pop-desc { margin: 0 0 .5rem; font-size: .82rem; color: var(--text-muted); line-height: 1.45; }
.pn-pop-meta { margin: .1rem 0; font-size: .8rem; color: var(--text-muted); }
.pn-pop-meta strong { color: var(--text); font-weight: 600; }
.pn-pop-cta {
  display: inline-block;
  margin-top: .6rem;
  padding: .4rem .85rem;
  border-radius: 999px;
  background: var(--brand-cta, #9e2a2a);
  color: #fff !important;
  font-size: .8rem;
  font-weight: 600;
  text-decoration: none;
}
.pn-pop-cta:hover { background: #842424; }
.leaflet-container a.leaflet-popup-close-button { color: var(--text-muted); }

/* Atribució llegible en fosc */
.dark .leaflet-control-attribution { background: rgba(24,22,21,.8); color: #a8a29e; }
.dark .leaflet-control-attribution a { color: #cd7070; }

@media (prefers-reduced-motion: reduce) {
  .leaflet-fade-anim .leaflet-tile,
  .leaflet-zoom-anim .leaflet-zoom-animated { transition: none !important; }
}

/* ------------------------------------------------------------------
   Utilitats complementàries.
   Tailwind (build original) només va generar les classes que s'hi feien
   servir. Aquestes són utilitats estàndard que necessiten les pàgines
   noves i que no hi eren. Valors idèntics als de Tailwind v4.
   ------------------------------------------------------------------ */
.p-4 { padding: 1rem; }
.pb-8 { padding-bottom: 2rem; }
.pb-16 { padding-bottom: 4rem; }
.px-2\.5 { padding-left: .625rem; padding-right: .625rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.gap-0\.5 { gap: .125rem; }
.gap-x-5 { column-gap: 1.25rem; }
.gap-x-6 { column-gap: 1.5rem; }
.gap-y-1 { row-gap: .25rem; }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.font-normal { font-weight: 400; }
.h-3 { height: .75rem; }
.w-3 { width: .75rem; }
.h-full { height: 100%; }
.h-\[420px\] { height: 420px; }
.leading-\[1\.1\] { line-height: 1.1; }
.underline { text-decoration-line: underline; }
.inline { display: inline; }
.inline-block { display: inline-block; }
.border-white\/40 { border-color: rgba(255, 255, 255, .4); }
.space-y-1 > * + * { margin-top: .25rem; }
.space-y-3 > * + * { margin-top: .75rem; }
.space-y-12 > * + * { margin-top: 3rem; }
.hover\:bg-white:hover { background-color: #fff; }
.hover\:bg-white\/90:hover { background-color: rgba(255, 255, 255, .9); }
.dark .dark\:bg-brand-900\/20 { background-color: rgba(92, 31, 31, .2); }
@media (min-width: 640px) {
  .sm\:p-5 { padding: 1.25rem; }
  .sm\:h-\[540px\] { height: 540px; }
}
@media (min-width: 1024px) {
  .lg\:hidden { display: none; }
  .lg\:grid-cols-\[1\.4fr_1fr\] { grid-template-columns: 1.4fr 1fr; }
  .lg\:grid-cols-\[1\.6fr_1fr\] { grid-template-columns: 1.6fr 1fr; }
}

.p-8 { padding: 2rem; }
.w-fit { width: fit-content; }
.py-0\.5 { padding-top: .125rem; padding-bottom: .125rem; }
@media (min-width:640px){ .sm\:p-8 { padding: 2rem; } }
