/* ==========================================================
   VIVER EQUIPAMIENTOS APP
   - /equipamientos: modo app global
   - .equip-app--embedded: paragraph integrado
========================================================== */

/* ----------------------------------------------------------
   Base
---------------------------------------------------------- */

html,
body {
  min-height: 100%;
}

body.path-equipamientos {
  background: #f3f6f9;
}

body.path-equipamientos .site-header,
body.path-equipamientos .site-header__top,
body.path-equipamientos .site-header__main {
  transform: none !important;
}

/* ----------------------------------------------------------
   /equipamientos desktop app mode
---------------------------------------------------------- */

@media (min-width: 981px) {
  html,
  body {
    height: 100%;
  }

  body.path-equipamientos {
    height: 100vh;
    overflow: hidden !important;
  }

  body.path-equipamientos .site-header {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    z-index: 2000;
    width: 100%;
    margin: 0 !important;
  }

  body.path-equipamientos .site-footer,
  body.path-equipamientos footer,
  body.path-equipamientos .footer-landscape,
  body.path-equipamientos [class*="prefooter"],
  body.path-equipamientos [class*="pre-footer"] {
    display: none !important;
  }

  body.path-equipamientos main,
  body.path-equipamientos .main-content,
  body.path-equipamientos .region-content {
    height: calc(100vh - 140px);
    overflow: hidden !important;
  }

  body.path-equipamientos .equip-app:not(.equip-app--embedded) {
    position: fixed;
    top: 140px;
    left: 0;
    right: 0;
    bottom: 0;
    height: auto;
    min-height: 0;
    overflow: hidden;
  }

  body.path-equipamientos .equip-app:not(.equip-app--embedded) .equip-app__sidebar {
    height: 100%;
    min-height: 0;
    overflow: hidden;
  }

  body.path-equipamientos .equip-app:not(.equip-app--embedded) .equip-app__results {
    min-height: 0;
    overflow-y: auto;
  }

  body.path-equipamientos .equip-app:not(.equip-app--embedded) .equip-app__map,
  body.path-equipamientos .equip-app:not(.equip-app--embedded) .equip-map-instance {
    height: 100%;
    min-height: 0;
  }
}

/* ----------------------------------------------------------
   /equipamientos mobile app mode
---------------------------------------------------------- */

@media (max-width: 980px) {
  html,
  body {
    height: 100%;
  }

  body.path-equipamientos {
    height: 100dvh;
    overflow: hidden !important;
    overscroll-behavior: none;
    padding-top: 0 !important;
  }

  body.path-equipamientos .site-header,
  body.path-equipamientos .site-header--mobile-sticky {
    position: fixed !important;
    top: 0 !important;
    left: 0;
    right: 0;
    z-index: 3000 !important;
    width: 100%;
    margin: 0 !important;
    transform: none !important;
  }

  body.path-equipamientos .site-footer,
  body.path-equipamientos footer,
  body.path-equipamientos .footer-landscape,
  body.path-equipamientos [class*="prefooter"],
  body.path-equipamientos [class*="pre-footer"] {
    display: none !important;
  }

  body.path-equipamientos main,
  body.path-equipamientos .main-content,
  body.path-equipamientos .region-content,
  body.path-equipamientos .dialog-off-canvas-main-canvas {
    height: 100dvh;
    overflow: hidden !important;
  }

  body.path-equipamientos .equip-app:not(.equip-app--embedded) {
    position: fixed;
    top: var(--mobile-header-height, 76px);
    left: 0;
    right: 0;
    bottom: 0;
    display: block;
    height: auto;
    min-height: 0;
    overflow: hidden;
    background: #dfe8ef;
  }

  body.path-equipamientos .equip-app:not(.equip-app--embedded) .equip-app__map {
    position: absolute;
    inset: 0;
    z-index: 1;
    height: 100%;
    min-height: 0;
  }

  body.path-equipamientos .equip-app:not(.equip-app--embedded) .equip-map-instance {
    height: 100%;
    min-height: 0;
  }

  body.path-equipamientos .equip-app:not(.equip-app--embedded) .equip-app__sidebar {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 500;
    height: auto;
    max-height: 72dvh;
    overflow: hidden;
    border: 0;
    border-radius: 28px 28px 0 0;
    background: rgba(255, 255, 255, .96);
    backdrop-filter: blur(18px);
    box-shadow: 0 -12px 42px rgba(17, 53, 85, .16);
    transition: transform .28s ease, max-height .28s ease;
    touch-action: none;
    will-change: transform;
  }

  body.path-equipamientos .equip-app:not(.equip-app--embedded).is-sheet-collapsed .equip-app__sidebar {
    transform: translateY(calc(100% - 54px));
  }

  body.path-equipamientos .equip-app:not(.equip-app--embedded).is-sheet-collapsed .equip-app__map-overlay {
    opacity: 0;
  }

  body.path-equipamientos .equip-app:not(.equip-app--embedded) .equip-app__search {
    padding: .75rem 1rem 1rem;
    border-bottom: 1px solid #e3ebf1;
    background: transparent;
  }

  body.path-equipamientos .equip-app:not(.equip-app--embedded) .equip-app__results {
    max-height: 42dvh;
    overflow-y: auto;
    background: transparent;
    overscroll-behavior: contain;
    touch-action: pan-y;
  }

  body.path-equipamientos .equip-app:not(.equip-app--embedded) .equip-results {
    padding: .75rem 1rem 1.25rem;
  }

  body.path-equipamientos .equip-app:not(.equip-app--embedded) .equip-app__detail {
    position: fixed;
    inset: var(--mobile-header-height, 72px) 0 0 0;
    z-index: 2000;
    width: 100%;
    height: calc(100dvh - var(--mobile-header-height, 72px));
    overflow-y: auto;
    border-right: 0;
    border-radius: 28px 28px 0 0;
    box-shadow: 0 -18px 52px rgba(17, 53, 85, .22);
    animation: equip-mobile-sheet-in .28s ease;
    overscroll-behavior: contain;
    touch-action: pan-y;
  }
}

/* ----------------------------------------------------------
   Layout base
---------------------------------------------------------- */

.equip-app {
  display: grid;
  grid-template-columns: 420px minmax(0, 1fr);
  height: calc(100vh - 140px);
  min-height: 520px;
  background: #f3f6f9;
}

.equip-app__sidebar {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: #fff;
  border-right: 1px solid #d9e2ea;
}

.equip-app__search {
  padding: 1.25rem;
  background: #fff;
  border-bottom: 1px solid #d9e2ea;
}

.equip-app__brand {
  margin-bottom: 1.25rem;
}

.equip-app__brand span {
  display: block;
  color: #113555;
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  font-weight: 650;
  line-height: 1.15;
  letter-spacing: -.035em;
}

.equip-app__form {
  display: grid;
  gap: 1rem;
}

.equip-app__field label {
  display: block;
  margin-bottom: .45rem;
  color: #113555;
  font-size: .98rem;
  font-weight: 680;
}

.equip-app__field input,
.equip-app__field select {
  width: 100%;
  min-height: 52px;
  border: 1px solid #d9e2ea;
  border-radius: 14px;
  padding: .85rem 1rem;
  background: #fff;
  color: #243746;
  font: inherit;
}

.equip-app__field input:focus-visible,
.equip-app__field select:focus-visible,
.equip-result-card:focus-visible,
.equip-detail__back:focus-visible,
.equip-detail__button:focus-visible {
  outline: 3px solid #ffbf47;
  outline-offset: 3px;
}

/* ----------------------------------------------------------
   Mobile sheet toggle: solo /equipamientos, no paragraph
---------------------------------------------------------- */

.equip-app__sheet-toggle {
  display: none;
}

@media (max-width: 980px) {
  body.path-equipamientos .equip-app:not(.equip-app--embedded) .equip-app__sheet-toggle {
    display: grid;
    place-items: center;
    gap: .45rem;
    width: 100%;
    min-height: 48px;
    border: 0;
    padding: .6rem 1rem .35rem;
    background: transparent;
    cursor: pointer;
  }

  body.path-equipamientos .equip-app:not(.equip-app--embedded) .equip-app__sheet-toggle-handle {
    display: block;
    width: 54px;
    height: 5px;
    border-radius: 999px;
    background: rgba(17, 53, 85, .22);
    transition: width .18s ease, background-color .18s ease;
  }

  body.path-equipamientos .equip-app:not(.equip-app--embedded) .equip-app__sheet-toggle-label {
    color: #113555;
    font-size: .82rem;
    font-weight: 800;
    letter-spacing: -.01em;
    opacity: .78;
    transition: opacity .18s ease;
  }

  body.path-equipamientos .equip-app:not(.equip-app--embedded) .equip-app__sheet-toggle:active .equip-app__sheet-toggle-handle {
    width: 68px;
    background: rgba(17, 53, 85, .36);
  }

  body.path-equipamientos .equip-app:not(.equip-app--embedded).is-sheet-collapsed .equip-app__sheet-toggle-label {
    opacity: 1;
  }
}

/* ----------------------------------------------------------
   Results
---------------------------------------------------------- */

.equip-app__results {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  background: #f6f8fb;
}

.equip-app__empty {
  padding: 2rem;
  color: #4d6475;
  font-size: .98rem;
  line-height: 1.6;
}

.equip-results {
  padding: 1rem;
}

.equip-results__summary {
  margin-bottom: .85rem;
  color: #4d6475;
  font-size: .9rem;
  font-weight: 750;
}

.equip-results__list {
  display: grid;
  gap: .85rem;
}

/* ----------------------------------------------------------
   Result cards
---------------------------------------------------------- */

.equip-result-card {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  width: 100%;
  overflow: hidden;
  padding: 0;
  background: #fff;
  border: 1px solid #d9e2ea;
  border-radius: 18px;
  box-shadow: 0 8px 22px rgba(17, 53, 85, .06);
  text-align: left;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background-color .18s ease;
}

.equip-result-card:hover,
.equip-result-card.is-hovered {
  transform: translateY(-2px);
  border-color: rgba(17, 53, 85, .32);
  box-shadow: 0 16px 34px rgba(17, 53, 85, .12);
}

.equip-result-card.is-hovered {
  transform: translateY(-3px);
  box-shadow: 0 18px 42px rgba(17, 53, 85, .16);
}

.equip-result-card__media {
  display: block;
  min-height: 128px;
  background: linear-gradient(135deg, #eaf3f8, #dbe8f0);
}

.equip-result-card__media img {
  width: 100%;
  height: 100%;
  min-height: 128px;
  display: block;
  object-fit: cover;
}

.equip-result-card__media--empty::before {
  content: "\\f3c5";
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  min-height: 128px;
  color: #113555;
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 1.8rem;
  opacity: .45;
}

.equip-result-card__content {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: .95rem 1rem;
}

.equip-result-card__badges,
.equip-detail__badges {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}

.equip-result-card__badges {
  margin-bottom: .55rem;
}

.equip-detail__badges {
  margin-bottom: .75rem;
}

.equip-result-card__badges span,
.equip-detail__badges span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: #eef5f9;
  color: #113555;
  font-weight: 850;
  line-height: 1;
}

.equip-result-card__badges span {
  min-height: 24px;
  padding: .25rem .55rem;
  font-size: .72rem;
}

.equip-detail__badges span {
  min-height: 28px;
  padding: .3rem .65rem;
  font-size: .78rem;
}

.equip-result-card__title {
  color: #113555;
  font-size: 1.08rem;
  font-weight: 650;
  line-height: 1.18;
  letter-spacing: -.02em;
}

.equip-result-card__address {
  display: flex;
  gap: .45rem;
  margin-top: .55rem;
  color: #40576a;
  font-size: .88rem;
  line-height: 1.4;
}

.equip-result-card__address i {
  margin-top: .15rem;
  color: #113555;
}

.equip-result-card__more {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  margin-top: auto;
  padding-top: .8rem;
  color: #113555;
  font-size: .88rem;
  font-weight: 650;
}

.equip-result-card__more i {
  transition: transform .18s ease;
}

.equip-result-card:hover .equip-result-card__more i {
  transform: translateX(3px);
}

/* ----------------------------------------------------------
   Map
---------------------------------------------------------- */

.equip-app__map {
  position: relative;
  min-width: 0;
  min-height: 0;
}

.equip-map-instance {
  width: 100%;
  height: 100%;
  min-height: 520px;
  background: #dfe8ef;
}

.leaflet-container {
  font-family: inherit;
}

.equip-app__map-overlay {
  position: absolute;
  inset: 0;
  z-index: 450;
  pointer-events: none;
  background: radial-gradient(circle at center, rgba(255,255,255,0) 0%, rgba(17,53,85,.10) 100%), linear-gradient(90deg, rgba(17,53,85,.18), rgba(17,53,85,.02));
  opacity: 0;
  transition: opacity .25s ease;
}

.equip-app.is-detail-open .equip-app__map-overlay {
  opacity: 1;
}

.leaflet-marker-icon {
  transition: transform .18s ease, filter .18s ease, opacity .18s ease;
}

.leaflet-marker-icon.viver-marker-hover {
  transform: scale(1.12);
  z-index: 999 !important;
}

.leaflet-marker-icon.viver-marker-selected {
  transform: scale(1.18);
  z-index: 1200 !important;
  filter: drop-shadow(0 10px 22px rgba(17, 53, 85, .35));
}

.equip-app.is-detail-open .leaflet-marker-icon {
  filter: saturate(.85);
}

.equip-app.is-detail-open .leaflet-marker-icon.viver-marker-selected {
  filter: none;
  transform-origin: bottom center;
}

.equip-app.is-detail-open .leaflet-marker-icon:not(.viver-marker-selected) {
  opacity: .72;
}

/* ----------------------------------------------------------
   Detail panel
---------------------------------------------------------- */

.equip-app__detail {
  position: absolute;
  inset: 0 auto 0 0;
  z-index: 20;
  width: 420px;
  max-width: 100%;
  overflow-y: auto;
  background: #fff;
  border-right: 1px solid #d9e2ea;
  box-shadow: 14px 0 40px rgba(17, 53, 85, .12);
  animation: equip-detail-in .24s ease both;
}

.equip-app__detail[hidden] {
  display: none;
}

.equip-detail {
  min-height: 100%;
  background: #fff;
}

.equip-detail__handle {
  display: none;
}

.equip-detail__back {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  min-height: 42px;
  margin: 1rem 1rem 0;
  border: 0;
  border-radius: 999px;
  padding: .55rem .85rem;
  background: #eef5f9;
  color: #113555;
  font: inherit;
  font-size: .9rem;
  font-weight: 650;
  cursor: pointer;
}

.equip-detail__back:hover {
  background: #dfeef6;
}

.equip-detail__media {
  margin: 1rem;
  overflow: hidden;
  border-radius: 20px;
  background: #eaf3f8;
}

.equip-detail__media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  display: block;
  object-fit: cover;
}

.equip-detail__body {
  padding: 0 1.25rem 1.5rem;
}

.equip-detail h2 {
  margin: 0;
  color: #113555;
  font-size: clamp(1.65rem, 3vw, 2.2rem);
  line-height: 1.05;
  letter-spacing: -.045em;
}

.equip-detail__address {
  display: flex;
  gap: .55rem;
  margin: 1rem 0 0;
  color: #31485a;
  font-size: 1rem;
  line-height: 1.45;
}

.equip-detail__address i {
  margin-top: .2rem;
  color: #113555;
}

.equip-detail__info {
  display: grid;
  gap: .75rem;
  margin-top: 1.25rem;
}

.equip-detail__info-item {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: .7rem;
  align-items: start;
  color: #31485a;
  font-size: .95rem;
}

.equip-detail__info-item i {
  margin-top: .2rem;
  color: #113555;
}

.equip-detail__info-item a {
  color: inherit;
  text-decoration: none;
}

.equip-detail__info-item a:hover {
  color: #113555;
  text-decoration: underline;
}

.equip-detail__schedule {
  margin-top: 1.5rem;
  padding: 1rem;
  border-radius: 18px;
  background: #f6f8fb;
  border: 1px solid #d9e2ea;
}

.equip-detail__schedule h3 {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin: 0 0 .85rem;
  color: #113555;
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.2;
}

.equip-detail__schedule-content {
  line-height: 1.5;
}

.equip-detail__actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: .75rem;
  margin-top: 1.35rem;
}

.equip-detail__button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: .5rem;
  min-height: 50px;
  border-radius: 14px;
  padding: .8rem 1rem;
  background: #113555;
  color: #fff;
  font-weight: 650;
  text-decoration: none;
}

.equip-detail__button:hover {
  background: #1f5f86;
  color: #fff;
  text-decoration: none;
}

.equip-detail__button--secondary {
  background: #eef5f9;
  color: #113555;
}

.equip-detail__button--secondary:hover {
  background: #dfeef6;
  color: #113555;
}

/* ----------------------------------------------------------
   Skeleton loading
---------------------------------------------------------- */

.equip-results--loading {
  display: grid;
  gap: .85rem;
}

.equip-skeleton-card {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  overflow: hidden;
  min-height: 128px;
  background: #fff;
  border: 1px solid #d9e2ea;
  border-radius: 18px;
  box-shadow: 0 8px 22px rgba(17, 53, 85, .05);
}

.equip-skeleton-card__media,
.equip-skeleton-card__line {
  background: linear-gradient(90deg, #e8eff5 25%, #f4f8fb 37%, #e8eff5 63%);
  background-size: 400% 100%;
  animation: equip-skeleton 1.25s ease-in-out infinite;
}

.equip-skeleton-card__content {
  display: grid;
  align-content: center;
  gap: .7rem;
  padding: 1rem;
}

.equip-skeleton-card__line {
  display: block;
  height: 12px;
  border-radius: 999px;
}

.equip-skeleton-card__line--small {
  width: 38%;
  height: 20px;
}

.equip-skeleton-card__line--title {
  width: 82%;
  height: 18px;
}

.equip-skeleton-card__line--short {
  width: 55%;
}

/* ----------------------------------------------------------
   Paragraph embedded mode
---------------------------------------------------------- */

.equip-embed__intro {
  max-width: 72ch;
  margin-bottom: 2rem;
}

.equip-app--embedded {
  height: 600px;
  overflow: hidden;
  border: 1px solid #d9e2ea;
  border-radius: var(--radius-md, 22px);
}

.equip-app--embedded .equip-app__sidebar {
  min-height: 0;
}

.equip-app--embedded .equip-app__results {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}

.equip-app--embedded .equip-app__map,
.equip-app--embedded .equip-map-instance,
.equip-app--embedded .leaflet-container {
  border-radius: inherit;
}

.equip-app--embedded .equip-app__results::-webkit-scrollbar,
.equip-app:not(.equip-app--embedded) .equip-app__results::-webkit-scrollbar,
.equip-app__detail::-webkit-scrollbar {
  width: 10px;
}

.equip-app--embedded .equip-app__results::-webkit-scrollbar-track,
.equip-app:not(.equip-app--embedded) .equip-app__results::-webkit-scrollbar-track {
  background: transparent;
}

.equip-app--embedded .equip-app__results::-webkit-scrollbar-thumb,
.equip-app:not(.equip-app--embedded) .equip-app__results::-webkit-scrollbar-thumb,
.equip-app__detail::-webkit-scrollbar-thumb {
  background: rgba(17, 53, 85, .18);
  border-radius: 999px;
}

.equip-app--embedded .equip-app__results::-webkit-scrollbar-thumb:hover,
.equip-app:not(.equip-app--embedded) .equip-app__results::-webkit-scrollbar-thumb:hover {
  background: rgba(17, 53, 85, .32);
}

/* ----------------------------------------------------------
   PARAGRAPH DETAIL FIX DESKTOP
---------------------------------------------------------- */

@media (min-width: 981px) {

  .equip-app--embedded {
    position: relative;
  }

  .equip-app--embedded .equip-app__detail {
    position: absolute;
    inset: 0 auto 0 0;
    width: 420px;
    height: 100%;
    z-index: 30;
    border-radius: 0;
  }

}

/* ----------------------------------------------------------
   Responsive general + paragraph mobile clásico
---------------------------------------------------------- */

@media (max-width: 980px) {
  .equip-app {
    grid-template-columns: 1fr;
    height: auto;
    min-height: 100vh;
  }

  .equip-app__sidebar {
    border-right: 0;
    border-bottom: 1px solid #d9e2ea;
  }

  .equip-app__results {
    max-height: none;
    overflow: visible;
  }

  .equip-app__map {
    height: 52vh;
    min-height: 360px;
  }

  .equip-map-instance {
    height: 100%;
    min-height: 360px;
  }

  .equip-app__detail {
    position: fixed;
    top: var(--mobile-header-height, 72px);
    left: 0;
    z-index: 1200;
    width: 100%;
    height: calc(100dvh - var(--mobile-header-height, 72px));
    border-right: 0;
  }

  .equip-detail__back {
    margin-top: 1rem;
  }

  .equip-app--embedded {
    display: grid;
    grid-template-columns: 1fr;
    height: auto;
    min-height: 720px;
  }

  .equip-app--embedded .equip-app__sidebar {
    position: relative;
    border-bottom: 1px solid #d9e2ea;
  }

  .equip-app--embedded .equip-app__results {
    max-height: 340px;
    overflow-y: auto;
  }

  .equip-app--embedded .equip-app__map {
    position: relative;
    height: 360px;
    min-height: 360px;
  }

  .equip-app--embedded .equip-map-instance {
    min-height: 360px;
  }
}

@media (max-width: 640px) {
  .equip-app__search {
    padding: 1rem;
  }

  .equip-app__brand {
    margin-bottom: 1rem;
  }

  .equip-app__field input,
  .equip-app__field select {
    min-height: 50px;
    border-radius: 12px;
  }

  .equip-app__empty {
    padding: 1.25rem;
  }

  .equip-results {
    padding: .85rem;
  }

  .equip-result-card,
  .equip-skeleton-card {
    grid-template-columns: 86px minmax(0, 1fr);
    border-radius: 16px;
  }

  .equip-result-card__media,
  .equip-result-card__media img,
  .equip-result-card__media--empty::before {
    min-height: 118px;
  }

  .equip-result-card__content {
    padding: .85rem;
  }

  .equip-detail__media {
    margin: .85rem;
  }

  .equip-detail__body {
    padding-inline: 1rem;
  }
}

/* ----------------------------------------------------------
   /equipamientos mobile-only premium refinements
---------------------------------------------------------- */

@media (max-width: 980px) {
  body.path-equipamientos .equip-app:not(.equip-app--embedded) .equip-results__list {
    gap: .75rem;
  }

  body.path-equipamientos .equip-app:not(.equip-app--embedded) .equip-result-card {
    grid-template-columns: 92px minmax(0, 1fr);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(17, 53, 85, .08);
  }

  body.path-equipamientos .equip-app:not(.equip-app--embedded) .equip-result-card__media,
  body.path-equipamientos .equip-app:not(.equip-app--embedded) .equip-result-card__media img,
  body.path-equipamientos .equip-app:not(.equip-app--embedded) .equip-result-card__media--empty::before {
    min-height: 110px;
  }

  body.path-equipamientos .equip-app:not(.equip-app--embedded) .equip-result-card__content {
    padding: .85rem;
  }

  body.path-equipamientos .equip-app:not(.equip-app--embedded) .equip-result-card__title {
    font-size: 1rem;
  }

  body.path-equipamientos .equip-app:not(.equip-app--embedded) .equip-detail {
    padding-bottom: 4rem;
  }

  body.path-equipamientos .equip-app:not(.equip-app--embedded) .equip-detail__handle {
    display: block;
    width: 54px;
    height: 5px;
    margin: .85rem auto .35rem;
    border-radius: 999px;
    background: rgba(17, 53, 85, .18);
  }

  body.path-equipamientos .equip-app:not(.equip-app--embedded) .equip-detail__back {
    margin-top: .25rem;
  }

  body.path-equipamientos .equip-app:not(.equip-app--embedded) .equip-detail__media {
    border-radius: 24px;
  }

  body.path-equipamientos .equip-app:not(.equip-app--embedded) .equip-detail h2 {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
  }

  body.path-equipamientos .equip-app:not(.equip-app--embedded) .equip-app__map-overlay {
    backdrop-filter: blur(2px);
  }
}

/* ----------------------------------------------------------
   Animations
---------------------------------------------------------- */

@keyframes equip-detail-in {
  from {
    opacity: 0;
    transform: translateX(-18px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes equip-mobile-sheet-in {
  from {
    opacity: 0;
    transform: translateY(32px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes equip-skeleton {
  0% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0 50%;
  }
}

@media (max-width: 980px) {
  body.path-equipamientos
  .equip-app:not(.equip-app--embedded)
  .equip-detail {
    padding-bottom: calc(10rem + env(safe-area-inset-bottom));
  }

  body.path-equipamientos
  .equip-app:not(.equip-app--embedded)
  .equip-detail__actions {
    padding-bottom: env(safe-area-inset-bottom);
  }
}

@media (max-width: 980px) {
  html,
  body,
  body.path-equipamientos {
    background: #fff;
  }

  body.path-equipamientos::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: env(safe-area-inset-top);
    z-index: 4000;
    background: #fff;
    pointer-events: none;
  }
}

.equip-detail__handle {
  display: none;
}

@media (max-width: 980px) {
  .equip-detail__handle {
    display: block;
    width: 54px;
    height: 5px;
    margin: .85rem auto .35rem;
    border: 0;
    border-radius: 999px;
    padding: 0;
    background: rgba(17,53,85,.18);
    cursor: pointer;
    transition:
      width .18s ease,
      background-color .18s ease;
  }

  .equip-detail__handle:active {
    width: 68px;
    background: rgba(17,53,85,.36);
  }
}

.leaflet-bar a:hover {
  text-decoration: none;
}

@media (max-width: 980px) {

  body.path-equipamientos
  .equip-app:not(.equip-app--embedded)
  .equip-app__sidebar {
    max-height: 72dvh;
  }

  body.path-equipamientos
  .equip-app:not(.equip-app--embedded)
  .equip-app__detail {
    position: absolute !important;
    inset: auto 0 0 0 !important;
    width: 100% !important;
    height: auto !important;
    max-height: 72dvh !important;
    border-radius: 28px 28px 0 0;
  }

}