/* ── Icon utility classes (used in map popup and other icon contexts) ── */
.icon {
  display: inline-block;
  width: 1em;
  height: 1em;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
  vertical-align: middle;
}
.icon--xs  { width: 14px; height: 14px; }
.icon--sm  { width: 16px; height: 16px; }
.icon--md  { width: 20px; height: 20px; }
.icon--lg  { width: 24px; height: 24px; }

/* ── f2f-popup: Leaflet popup overrides ── */
.f2f-popup .leaflet-popup-content-wrapper {
  border-radius: 14px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.06);
  padding: 0;
  overflow: hidden;
}

.f2f-popup .leaflet-popup-content {
  margin: 0;
  padding: 0;
  min-width: 260px;
}

.f2f-popup .leaflet-popup-close-button {
  top: 8px;
  right: 8px;
  width: 24px;
  height: 24px;
  font-size: 18px;
  color: #6b7280;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  padding: 0;
}

.f2f-popup .leaflet-popup-close-button:hover {
  color: #111;
  background: #f3f4f6;
}

/* ── f2f-popup inner layout ── */
.f2f-popup__inner {
  padding: 14px 14px 12px;
  font-family: inherit;
}

.f2f-popup__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
  /* leave room for the Leaflet × button */
  padding-right: 20px;
}

.f2f-popup__title {
  font-weight: 700;
  font-size: 15px;
  line-height: 1.3;
  color: #111827;
  flex: 1;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.f2f-popup__date-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #f0fdf4;
  color: #166534;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 20px;
  white-space: nowrap;
  flex-shrink: 0;
}

.f2f-popup__meta {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  color: #6b7280;
  margin-bottom: 12px;
}

.f2f-popup__actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.f2f-popup__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 14px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
  line-height: 1.2;
  font-family: inherit;
  box-sizing: border-box;
}

.f2f-popup__btn--primary {
  background: #16a34a;
  color: #fff;
  border-color: #16a34a;
  width: 100%;
}

.f2f-popup__btn--primary:hover {
  background: #15803d;
  color: #fff;
}

.f2f-popup__btn--secondary {
  background: transparent;
  color: #374151;
  border-color: #d1d5db;
}

.f2f-popup__btn--secondary:hover {
  background: #f9fafb;
}

.f2f-popup__link {
  font-size: 12px;
  color: #6b7280;
  text-decoration: underline;
  text-align: center;
  padding: 2px 0;
  display: block;
}

.f2f-popup__link:hover {
  color: #374151;
}

/* ── Popup image (shown at top of card when available) ── */
.f2f-popup__image {
  margin: 0 -14px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #e5e7eb;
  margin-bottom: 10px;
}

.f2f-popup__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
