.backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.3);
  z-index: 999;
  backdrop-filter: blur(2px);
}

.panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 400px;
  max-width: 90vw;
  height: 100vh;
  background-color: var(--color-bg, #ffffff);
  box-shadow: -2px 0 8px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  border-bottom: 1px solid var(--color-border, #e5e7eb);
  background-color: var(--color-bg-secondary, #f9fafb);
}

.title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-text, #111827);
}

.closeButton {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-secondary, #6b7280);
  border-radius: 4px;
  transition: background-color 0.2s;
}

.closeButton:hover {
  background-color: var(--color-hover, #f3f4f6);
  color: var(--color-text, #111827);
}

.content {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem;
}

.section {
  margin-bottom: 2rem;
}

.section:last-child {
  margin-bottom: 0;
}

.sectionHeader {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--color-primary, #3b82f6);
}

.sectionTitle {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-text, #111827);
}

.removeButton {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-error, #ef4444);
  border-radius: 4px;
  transition: background-color 0.2s;
}

.removeButton:hover {
  background-color: var(--color-error-light, #fee2e2);
  color: var(--color-error-dark, #dc2626);
}

.parcelsList {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.mapViewSection {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--color-border, #e5e7eb);
}

.subSectionTitle {
  margin: 0 0 0.75rem 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text-secondary, #6b7280);
}

.infoGrid {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.infoItem {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text-secondary, #6b7280);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.value {
  font-size: 1rem;
  color: var(--color-text, #111827);
  word-break: break-word;
}

.subValue {
  color: var(--color-text-secondary, #6b7280);
  font-size: 0.875rem;
}

.link {
  color: var(--color-primary, #3b82f6);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.link:hover {
  color: var(--color-primary-dark, #2563eb);
  text-decoration: underline;
}

.adjacentList {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.adjacentItem {
  padding: 0.75rem;
  background-color: var(--color-bg-secondary, #f9fafb);
  border: 1px solid var(--color-border, #e5e7eb);
  border-radius: 6px;
  transition: background-color 0.2s, border-color 0.2s;
}

.adjacentItem:hover {
  background-color: var(--color-hover, #f3f4f6);
  border-color: var(--color-primary, #3b82f6);
}

.adjacentHeader {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.adjacentNumber {
  font-weight: 600;
  color: var(--color-text, #111827);
  font-size: 1rem;
}

.adjacentEgrid {
  font-size: 0.875rem;
  color: var(--color-text-secondary, #6b7280);
  font-family: monospace;
}

@media (max-width: 768px) {
  .panel {
    width: 100vw;
    max-width: 100vw;
  }
}

