.ej-map {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 16px;
  min-height: var(--ej-map-height, 600px);
}

.ej-map__sidebar {
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 10px;
  padding: 12px;
  overflow: auto;
  max-height: var(--ej-map-height, 600px);
  background: #fff;
}

.ej-map__main {
  position: relative;
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 10px;
  overflow: hidden;
  min-height: var(--ej-map-height, 600px);
  background: #fff;
}

.ej-map__selected {
  position: absolute;
  z-index: 2;
  top: 10px;
  left: 10px;
  right: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  pointer-events: none;
}

.ej-map__pill {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.15);
  border-left-width: 6px;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 13px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.ej-map__pill-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ej-map button.ej-map__pill-remove {
  border: none;
  background: transparent;
  color: rgba(0,0,0,0.75);
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  padding: 2px 4px;
}

.ej-map__assumptions-btn {
  position: absolute;
  z-index: 2;
  right: 10px;
  bottom: 10px;
  border: 1px solid rgba(0,0,0,0.15);
  background: #ffffff;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.ej-map__modal[hidden] {
  display: none;
}

.ej-map__modal {
  position: absolute;
  inset: 0;
  z-index: 3;
}

.ej-map__modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.35);
}

.ej-map__modal-dialog {
  position: absolute;
  right: 10px;
  bottom: 52px;
  width: min(460px, calc(100% - 20px));
  background: #fff;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.15);
  box-shadow: 0 10px 30px rgba(0,0,0,0.18);
  overflow: hidden;
}

.ej-map__modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  background: #f7f7f7;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

.ej-map__modal-title {
  font-weight: 700;
  font-size: 13px;
}

.ej-map__modal-close {
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  padding: 2px 6px;
}

.ej-map__modal-body {
  padding: 12px;
  font-size: 13px;
}

.ej-map__modal-list {
  margin: 0;
  padding-left: 18px;
}

.ej-map__canvas {
  width: 100%;
  height: var(--ej-map-height, 600px);
}

.ej-map__canvas img {
  border-radius: 0px !important;
}

.ej-map__label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 6px;
}

.ej-map__airport-input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid rgba(0,0,0,0.18);
}

.ej-map__hint {
  margin-top: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #0f172a;
  background: #fef9c3;
  border: 1px solid #fde047;
  border-radius: 10px;
  padding: 10px 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

.ej-map__hint:empty {
  display: none;
}

.ej-map__accordion {
  margin-top: 12px;
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
}

.ej-map__accordion-summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 10px;
  cursor: pointer;
  user-select: none;
  background: #f7f7f7;
  font-weight: 700;
  font-size: 13px;
}

.ej-map__accordion-summary::-webkit-details-marker {
  display: none;
}

.ej-map__accordion-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.ej-map__accordion-count {
  font-weight: 600;
  font-size: 12px;
  color: rgba(0,0,0,0.65);
}

.ej-map__accordion-body {
  padding: 10px;
}

.ej-map__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ej-map__item + .ej-map__item {
  margin-top: 6px;
}

.ej-map__jet {
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}

.ej-map__jet-summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px;
  cursor: pointer;
  user-select: none;
}

.ej-map__jet-summary::-webkit-details-marker {
  display: none;
}

.ej-map__jet-title {
  font-weight: 600;
  font-size: 13px;
  line-height: 1.2;
}

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

.ej-map button.ej-map__select-btn {
  border: 1px solid rgba(0,0,0,0.15);
  background: #f7f7f7;
  border-radius: 999px;
  color: rgba(0,0,0,0.75);
  padding: 6px 10px;
  font-size: 12px;
  cursor: pointer;
}

.ej-map button.ej-map__select-btn.is-selected {
  background: #ffe9e9;
  border-color: rgba(255, 0, 0, 0.4);
  color: rgba(255, 0, 0, 0.8);
}

.ej-map__expand {
  font-size: 12px;
  color: rgba(0,0,0,0.55);
}

.ej-map__jet[open] .ej-map__expand {
  transform: rotate(180deg);
  display: inline-block;
}

.ej-map__jet-body {
  padding: 10px;
  border-top: 1px solid rgba(0,0,0,0.08);
  background: #fff;
}

.ej-map__jet-stats {
  display: grid;
  gap: 6px;
  font-size: 12px;
  color: rgba(0,0,0,0.75);
}

.ej-map__jet-more {
  margin-top: 10px;
  font-size: 12px;
}

.ej-map__error {
  position: absolute;
  z-index: 2;
  top: 52px;
  left: 10px;
  right: 10px;
  background: #fff3cd;
  border: 1px solid #ffecb5;
  color: #664d03;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13px;
}

@media (max-width: 900px) {
  .ej-map {
    grid-template-columns: 1fr;
  }
  .ej-map__sidebar {
    max-height: 340px;
  }
}

