
.events-pane {
  min-width: 0;
  height: 100vh;
  overflow-y: auto;
  padding: 22px 28px 28px;
}

.events-header {
  max-width: var(--events-card-width);
  margin: 0 auto 18px;
  padding: 0 6px;
}

.events-kicker {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.35;
  color: var(--text-muted);
  font-weight: 700;
}

#place-hint {
  margin-top:32px;
  margin-bottom: 0px;
}

#events-header {
  display: none;
  font-size: 2.0rem;
  margin-top: 0px;
  margin-bottom: 24px;
  padding: 0px;
  font-weight: 700;
}

#current-location-label-title {
  font-weight: 900;
}


#events-container {
  display: flex;
  flex-direction: column;
  gap: 26px;
  min-height: 0;
}

.event-tile {
  width: 100%;
  max-width: var(--events-card-width);
  margin: 0 auto;
  background: var(--card-bg);
  border: 1px solid var(--line-soft);
  border-radius: 20px;
  padding: 20px;
  box-shadow: var(--shadow-card);
}

.event-title {
  margin: 0 0 12px 0;
  font-size: 1.22rem;
  line-height: 1.35;
  font-weight: 800;
}

.event-species-link {
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}

.event-species-link:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.event-image-wrap {
  width: 100%;
  margin: 12px 0 8px 0;
  display: flex;
  justify-content: center;
}

.event-image {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: calc(1.0 * var(--events-card-width));
  height: auto;
  border-radius: 14px;
}

.event-credit {
  margin: 0 0 12px 0;
  font-size: 0.78rem;
  line-height: 1.35;
  color: var(--text-muted);
}

.event-credit a {
  color: inherit;
}

.event-license {
  opacity: 0.8;
  white-space: nowrap;
}

.event-description {
  font-size: 1rem;
  line-height: 1.58;
  color: var(--text-main);
}

.event-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 24px;
}

.event-source-link {
  font-size: 0.82rem;
  color: var(--text-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.events-empty {
  width: 100%;
  max-width: var(--events-card-width);
  margin: 0 auto;
  padding: 18px;
  border-radius: 18px;
  background: var(--card-bg);
  border: 1px solid var(--line-soft);
  color: var(--text-muted);
  box-shadow: var(--shadow-card);
}

/* positioning anchor */
.event-tile {
  position: relative;
}
.event-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-top: 24px;
}

.event-card-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.event-like-btn,
.event-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;

  padding: 4px 6px;
  border: none;
  background: rgba(255, 255, 255, 0);
  border-radius: 6px;

  cursor: pointer;
  font: inherit;
  line-height: 1;
  opacity: 0.92;

  transition: transform 0.15s ease, opacity 0.15s ease;
}

.event-action-btn {
  padding: 4px 10px;
}

.event-like-btn:hover,
.event-action-btn:hover {
  transform: scale(1.05);
}

.event-like-btn:active,
.event-action-btn:active {
  transform: scale(0.95);
}

.event-tile:hover .event-like-btn,
.event-tile:hover .event-action-btn {
  opacity: 1;
}

.event-action-icon {
  width: 19px;
  height: 19px;
  stroke-width: 2.2;
  color: #c9c7c7;
}

.event-share-btn,
.event-flag-btn {
  color: #c9c7c7;
}

/* --- like button --- */



/* click area */
.event-like-btn {
  left: 18px;
  bottom: 18px;

  display: inline-flex;
  align-items: center;
  gap: 6px;

  padding: 4px 6px;
  border: none;
  background: rgba(255, 255, 255, 0.0);
  border-radius: 6px;

  cursor: pointer;
  font: inherit;
  line-height: 1;

  z-index: 10;

  transition: background 0.15s ease, transform 0.1s ease;
}

/* slightly visible on hover */
.event-like-btn:hover {
  transform: scale(1.05);
}

/* press feedback */
.event-like-btn:active {
  transform: scale(0.95);
}

/* heart itself */
.event-like-heart {
  font-size: 22px;
  line-height: 1;

  color: #c9c7c7;

  /* thicker look trick */
  text-shadow:
    0 0 0.9px currentColor,
    0 0 0.9px currentColor;

  transition: color 0.15s ease, transform 0.1s ease;
}

/* liked state */
.event-like-btn.liked .event-like-heart {
  color: #d11a2a;

  /* stronger thickness when liked */
  text-shadow:
    0 0 1px currentColor,
    0 0 1px currentColor;

  transform: scale(1.05);
}

/* count */
.event-like-count {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

.event-like-btn.liked .event-like-count {
  color: var(--text-main);
}

/* mobile tweak */
@media (max-width: 980px) {
  .event-like-btn {
    left: 14px;
    bottom: 14px;
  }

  .event-like-heart {
    font-size: 20px;
  }
}

/* hide button until hover */
.event-like-btn {
  opacity: 0.92;
}
.event-tile:hover .event-like-btn {
  opacity: 1;
}


.event-condition-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.7rem;
}

.event-condition-tag {
  display: inline-block;
  padding: 0.22rem 0.7rem;
  border-radius: 999px;
  font-size: 0.78rem;
  line-height: 1.2;
  background: rgba(0, 0, 0, 0.06);
  color: inherit;
  white-space: nowrap;
}

.event-stack {
  width: 100%;
  max-width: var(--events-card-width);
  margin: 0 auto;
  position: relative;
}

.event-stack .event-tile {
  position: relative;
  z-index: 2;
  margin: 0;
}

@media (max-width: 980px) {
  .event-tile {
    padding: 16px;
    border-radius: 18px;
  }

  #events-header {
    font-size: 1.6rem;
  }

  .events-pane {
    height: auto;
    min-height: 0;
    overflow: visible;
    padding: 22px 12px 28px;
  }

  .map {
    height: calc(0.8 * var(--events-card-width));
  }

  .map-weather-block {
    max-width: var(--events-card-width);
    margin: 0 auto;
    width: 100%;
  }

  .event-description {
    line-height: 1.3;
  }
}