/* info-button.css — Info "i" button (mobile only) + InfoSheet content
   Colors come from the central palette in /styles.css (--vv-*). */

.vv-info-ctrl {
  display: none; /* hidden on desktop */
}

@media (max-width: 767px) {
  .vv-info-ctrl {
    display: block;
    position: fixed !important;
    top: 80px; /* below the search bar (same row as Filtros pill) */
    right: 10px;
    z-index: 3;
    margin: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
  }

  /* Hide info button when OD planner or search is active */
  body.vv-od-open .vv-info-ctrl,
  body.vv-search-active-mobile .vv-info-ctrl {
    opacity: 0;
    pointer-events: none;
  }

  /* Hide in planner detalle state and on non-map tabs */
  body.vv-pl-detalle-open .vv-info-ctrl,
  body.vv-tab-overlay .vv-info-ctrl {
    display: none;
  }
}

.vv-info-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--vv-surface);
  border: 2px solid var(--vv-border-control);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background 0.2s ease, border-color 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.vv-info-btn-i {
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-size: 18px;
  font-weight: 700;
  color: var(--vv-text);
  line-height: 1;
  display: block;
}

.vv-info-btn:active {
  background: var(--vv-surface-2);
}

.vv-info-btn:focus-visible {
  outline: 2px solid var(--vv-accent);
  outline-offset: 2px;
}

/* Panel content styles for InfoSheet */
.vv-info-content {
  padding: 0 0 20px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

.vv-info-header {
  padding: 4px 20px 14px;
  border-bottom: 1px solid var(--vv-border);
}

.vv-info-title {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  color: var(--vv-text);
}

.vv-info-section {
  padding: 14px 20px 0;
}

.vv-info-section-title {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--vv-text-2);
}

.vv-info-text {
  margin: 0;
  font-size: 14px;
  color: var(--vv-text);
  line-height: 1.5;
}

.vv-info-link {
  color: var(--vv-link);
  text-decoration: none;
}

.vv-info-link:hover { text-decoration: underline; }

.vv-info-feedback-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 14px 16px;
  background: var(--vv-surface-2);
  border: 1.5px solid var(--vv-border);
  border-radius: 10px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--vv-text);
  cursor: pointer;
  text-align: left;
  transition: background 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.vv-info-feedback-btn:active {
  border-color: var(--vv-accent);
  color: var(--vv-link);
}
