/* HdKD — Events Map: panel slides in over the right portion of the map,
   so the map itself stays put (no aggressive resize / re-tile). */

.hdkd-emap {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: #f5f5f5;
  font-family: inherit;
}

.hdkd-emap__map {
  height: 100%;
  width: 100%;
}

/* Address search overlaid on the map (geocode via OpenStreetMap/Nominatim) */
.hdkd-emap__search {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 650;
  display: flex;
  align-items: center;
  gap: 4px;
  width: min(360px, calc(100% - 28px));
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 9999px;
  padding: 7px 8px 7px 14px;
  box-shadow: 0 6px 20px rgba(16, 24, 40, 0.16);
  transition: border-color 180ms ease, opacity 180ms ease;
}
.hdkd-emap__search-icon { color: rgba(26, 31, 54, 0.4); flex: none; }
.hdkd-emap__search-input {
  flex: 1;
  min-width: 0;
  /* beat Uncode's forced input border/box-shadow (incl. focus state) */
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  padding: 0 !important;
  margin: 0 !important;
  height: auto !important;
  font-family: inherit;
  font-size: 13.5px;
  color: #1a1f36;
}
.hdkd-emap__search-input:focus,
.hdkd-emap__search-input:focus-visible {
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
}
.hdkd-emap__search-input::placeholder { color: rgba(26, 31, 54, 0.45); }
.hdkd-emap__search-input::-webkit-search-cancel-button { -webkit-appearance: none; }
.hdkd-emap__search-geo {
  flex: none;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 9999px;
  cursor: pointer;
  background: #f0f1f4;
  color: #1a1f36;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 160ms ease, color 160ms ease;
}
.hdkd-emap__search-geo:hover { background: #1C8D82; color: #fff; }
.hdkd-emap__search.is-loading { opacity: 0.65; }
.hdkd-emap__search.is-error { border-color: #1C8D82; }
@media (max-width: 520px) {
  .hdkd-emap__search { left: 10px; right: 10px; width: auto; }
}

.hdkd-emap__panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(440px, 100%);
  background: #fff;
  border-left: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: -16px 0 36px rgba(0, 0, 0, 0.06);
  transform: translateX(100%);
  transition: transform 520ms cubic-bezier(.22, 1, .36, 1);
  display: flex;
  flex-direction: column;
  will-change: transform;
  /* Sit above Leaflet's pane stacking (tile-pane=200, marker-pane=600,
     popup-pane=700) so the slide-over isn't painted behind the tiles. */
  z-index: 800;
}
.hdkd-emap--has-panel .hdkd-emap__panel {
  transform: translateX(0);
}

.hdkd-emap__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 24px 18px;
  background: #f5f5f5;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.hdkd-emap__eyebrow {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.4);
  margin-bottom: 6px;
}
.hdkd-emap__title.hdkd-emap__title {
  margin: 0;
  font-family: inherit;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.3;
  color: #1a1f36;
}
.hdkd-emap__close {
  background: none;
  border: 0;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  padding: 4px 6px;
  margin: -4px -6px 0 0;
  color: inherit;
  opacity: 0.4;
  transition: opacity 180ms;
}
.hdkd-emap__close:hover { opacity: 1; }

.hdkd-emap__list {
  list-style: none;
  margin: 0;
  padding: 0;
  overflow-y: auto;
  flex: 1;
  /* Reserve scrollbar width so the right padding stays visually consistent */
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 0, 0, 0.16) transparent;
}
/* Webkit / Blink — thin, soft, brand-friendly scrollbar */
.hdkd-emap__list::-webkit-scrollbar { width: 6px; }
.hdkd-emap__list::-webkit-scrollbar-track { background: transparent; }
.hdkd-emap__list::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.14);
  border-radius: 9999px;
}
.hdkd-emap__list::-webkit-scrollbar-thumb:hover { background: rgba(0, 0, 0, 0.28); }

.hdkd-emap__item {
  padding: 16px 24px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  transition: background-color 180ms ease;
}
.hdkd-emap__item:last-child { border-bottom: 0; }
.hdkd-emap__item:hover { background: rgba(0, 0, 0, 0.02); }
.hdkd-emap__cat {
  display: inline-block;
  padding: 3px 9px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  border-radius: 9999px;
  line-height: 1;
  white-space: nowrap;
  margin-bottom: 6px;
}
.hdkd-emap__item h4 {
  margin: 0;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.3;
  color: #1a1f36;
}
.hdkd-emap__meta {
  font-size: 12.5px;
  opacity: 0.55;
  margin: 4px 0 8px;
  line-height: 1.5;
}
.hdkd-emap__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 500;
  text-decoration: none;
  color: inherit;
  transition: color 200ms;
}
.hdkd-emap__link:hover { color: #1C8D82; }

@media (max-width: 720px) {
  .hdkd-emap__panel {
    width: 100%;
    border-left: 0;
    box-shadow: none;
  }
}
