.map-wrapper {
  position: relative;
  width: 100%;
  height: 100vh;
  background: #FEF7EC;
  overflow: hidden;
}
#map {
  position: absolute;
  inset: 0;
  z-index: 1;
}
/*panel*/
.panel-toggle {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 100;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  border: none;
  background: #111;
  color: white;
  cursor: pointer;
}
.panel-list {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: 100%;
  max-width: 22rem;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: -4px 0 16px rgba(0, 0, 0, 0.15);
  z-index: 999;
  padding: 1rem;
  overflow-y: auto;
  transform: translateX(100%);
}
.panel-list.is-open {
  transform: translateX(0);
}
.btn-panel-close {
  cursor: pointer;
}
.list-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.panel-list ul {
  list-style: none;
}
.item {
  display: flex;
  gap: 0.75rem;
  padding: 0.5rem;
  height: 4rem;
  background: rgba(217, 226, 231, 0.4);
  border-radius: 0.8rem;
  margin-bottom: 0.5rem;
  cursor: pointer;
}
.item-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  flex: 1;
}
.item-title {
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.item-subtitle {
  font-size: 14px;
  opacity: 0.6;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.item-image {
  width: 48px;
  height: 48px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
}
.item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 24rem;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 10px 28px rgba(0,0,0,0.2);
  overflow: hidden;
  z-index: 1000;
}
.card-img {
  width: 100%;
}
.card-body {
  padding: 1rem;
  text-align: center;
}
.badge {
  background: #e6f4f1;
  border: 1px solid #b9e2d8;
  color: #0f766e;
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 12px;
}
.card-title {
  margin: 0.75rem 0;
  font-size: 1.2rem;
}
.btn-card {
  margin: 0.25rem;
  padding: 0.5rem 1rem;
  background: #0f766e;
  color: #fff;
  border-radius: 8px;
  border: none;
}
.close-card {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(255,0,0,0.8);
  color: #fff;
  border: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
}
.card.hide {
  display: none;
}
.card.show {
  display: block;
}

@media (max-width: 768px) {
  .panel-list {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    transform: translateX(100%);
    transition: transform 0.3s ease;
  }

  .panel-list.is-open {
    transform: translateX(0);
  }

  .panel-toggle {
    display: block;
  }
}