/* Puntos Veni — layout follows the Figma concept (desktop 1440 / mobile 390).
   Tablet is composed from those two frames. */

.puntos {
  min-height: calc(100vh - 72px);
  display: flex;
  flex-direction: column;
  background: var(--surface-screen);
  color: var(--text-primary);
  font-family: var(--font-ui);
}

.nav-links a[aria-current="page"],
.mobile-menu a[aria-current="page"],
.foot-grid a[aria-current="page"] {
  color: var(--veni-green);
  font-weight: 800;
}

.place-go,
.place-go:hover {
  color: var(--on-green);
}

.puntos-top {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 20px 64px 12px;
}

.puntos-brand {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
  flex: 0 1 auto;
}

.puntos-brand img {
  height: 36px;
  width: auto;
  display: block;
}

.puntos-title {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
  margin: 0;
}

.puntos-title strong {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.puntos-title span {
  color: var(--text-secondary);
  font-size: 15px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.puntos-filters {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  min-width: 0;
}

.puntos-lang {
  display: flex;
  gap: 6px;
  margin-left: 12px;
  flex: 0 0 auto;
}

.puntos-lang a {
  font-size: 12px;
  font-weight: 800;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 6px 8px;
  border-radius: var(--radius-pill);
}

.puntos-lang a[aria-current="true"] {
  color: var(--text-brand);
  background: var(--green-tint-2);
}

.chip,
.barrio-select {
  appearance: none;
  border: 1px solid var(--border-hairline);
  background: var(--surface-screen);
  color: var(--text-primary);
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 13px;
  line-height: 1;
  height: 36px;
  padding: 0 14px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  white-space: nowrap;
}

.chip[aria-pressed="true"] {
  background: var(--veni-green);
  color: var(--on-green);
  border-color: var(--veni-green);
}

.barrio-select {
  padding-right: 28px;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-secondary) 50%),
    linear-gradient(135deg, var(--ink-secondary) 50%, transparent 50%);
  background-position: calc(100% - 16px) 16px, calc(100% - 11px) 16px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

.map-stage {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  min-height: 520px;
  margin: 8px 64px 0;
  border-radius: var(--radius-media);
  overflow: hidden;
  background: var(--green-tint-1);
}

#map {
  position: absolute;
  inset: 0;
  background: #f3eee6;
}

.map-search,
.area-btn,
.map-tools {
  position: absolute;
  z-index: 500;
}

.map-search {
  top: 16px;
  left: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  width: min(310px, calc(100% - 32px));
  height: 50px;
  padding: 0 16px;
  border-radius: var(--radius-pill);
  background: var(--surface-screen);
  box-shadow: var(--elev-2);
}

.map-search input {
  flex: 1;
  border: 0;
  background: transparent;
  font-family: var(--font-ui);
  font-size: 15px;
  color: var(--text-primary);
  min-width: 0;
}

.map-search input:focus {
  outline: none;
}

.map-search:focus-within {
  outline: 2px solid var(--veni-green);
  outline-offset: 2px;
}

.area-btn {
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  height: 42px;
  padding: 0 16px;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--surface-screen);
  box-shadow: var(--elev-2);
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 14px;
  color: var(--text-primary);
  cursor: pointer;
}

.area-btn[aria-pressed="true"] {
  background: var(--veni-green);
  color: var(--on-green);
}

.map-tools {
  top: 78px;
  right: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.map-tools button {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: var(--surface-screen);
  box-shadow: var(--elev-2);
  font-size: 20px;
  line-height: 1;
  color: var(--text-primary);
  cursor: pointer;
}

.pin-wrap,
.cluster-wrap {
  background: transparent !important;
  border: 0 !important;
}

.pin,
.cluster {
  display: grid;
  place-items: center;
  box-sizing: border-box;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  color: var(--veni-green);
  border: 2px solid var(--veni-green);
  box-shadow: 0 1px 3px rgba(13, 15, 11, 0.16);
  font-family: var(--font-ui);
  font-weight: 800;
  font-size: 12px;
  line-height: 1;
}

.pin.is-on {
  width: 46px;
  height: 46px;
  border-width: 3px;
  background: #fff;
  color: var(--veni-green);
}

.cluster {
  width: 44px;
  height: 44px;
  font-size: 13px;
}

.place-card {
  position: absolute;
  z-index: 600;
  right: 28px;
  bottom: 28px;
  width: min(360px, calc(100% - 32px));
  padding: 17px;
  border-radius: var(--radius-feature);
  background: var(--surface-screen);
  box-shadow: var(--elev-3, 0 12px 40px rgba(13, 15, 11, 0.12));
}

.place-card[hidden] {
  display: none;
}

.place-summary {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.place-avatar {
  width: 56px;
  height: 56px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: var(--radius-pill);
  background: var(--veni-green);
  color: var(--on-green);
  font-weight: 800;
  position: relative;
}

.place-avatar.has-logo {
  background-color: transparent;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.place-avatar.has-logo::after {
  content: none;
}

.place-avatar::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -8px;
  transform: translateX(-50%);
  border-width: 7px 6px 0;
  border-style: solid;
  border-color: var(--veni-green) transparent transparent;
}

.place-summary h2 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  margin: 0;
}

.place-summary p {
  margin: 2px 0 0;
  font-size: 14px;
  color: var(--text-secondary);
}

.place-badge {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  font-weight: 800;
  color: var(--text-brand);
}

.place-go {
  display: flex;
  margin-top: 12px;
  align-items: center;
  justify-content: center;
  height: 46px;
  border-radius: var(--radius-pill);
  background: var(--veni-green);
  color: var(--on-green);
  text-decoration: none;
  font-weight: 800;
}

.place-go[hidden] {
  display: none;
}

.place-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: var(--radius-pill);
  background: transparent;
  cursor: pointer;
  color: var(--text-secondary);
  font-size: 18px;
}

.map-empty {
  position: absolute;
  z-index: 550;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
  padding: 12px 16px;
  border-radius: var(--radius-pill);
  background: var(--surface-screen);
  box-shadow: var(--elev-2);
  font-weight: 700;
}

.ticker {
  padding: 18px 64px 28px;
}

.ticker p {
  margin: 0 0 10px;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-secondary);
}

.ticker-row {
  display: flex;
  gap: 8px;
  justify-content: center;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
}

.ticker-row button {
  flex: 0 0 auto;
  height: 42px;
  padding: 0 15px;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--milk-inset);
  color: var(--text-primary);
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
}

.ticker-row button[aria-current="true"] {
  background: var(--veni-green);
  color: var(--on-green);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

button:focus-visible,
a:focus-visible,
select:focus-visible,
.ticker-row button:focus-visible {
  outline: 2px solid var(--veni-green);
  outline-offset: 2px;
}

@media (max-width: 1100px) {
  .puntos-top {
    flex-wrap: wrap;
    padding: 16px 28px 8px;
    gap: 12px;
  }

  .puntos-filters {
    order: 3;
    margin-left: 0;
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .map-stage {
    margin: 8px 28px 0;
    min-height: 560px;
  }

  .ticker {
    padding: 16px 28px 24px;
  }

  .place-card {
    right: 16px;
    left: 16px;
    width: auto;
    bottom: 16px;
  }
}

@media (max-width: 720px) {
  .puntos-top {
    padding: 14px 16px 8px;
  }

  .puntos-brand img {
    height: 27px;
  }

  .puntos-title strong {
    font-size: 18px;
  }

  .puntos-title span {
    font-size: 13px;
  }

  .puntos-title span::before {
    content: "· ";
  }

  .map-stage {
    margin: 0;
    border-radius: 0;
    min-height: 68vh;
  }

  .area-btn {
    top: 74px;
    left: 16px;
    transform: none;
  }

  .ticker {
    padding: 14px 16px 20px;
  }

  .ticker p,
  .ticker-row {
    justify-content: flex-start;
    text-align: left;
  }
}
