.location-symbol-custom {
  color: var(--location-accent, #5f796f) !important;
  background: color-mix(in srgb, var(--location-accent, #5f796f) 14%, #fff) !important;
  border-color: color-mix(in srgb, var(--location-accent, #5f796f) 28%, #fff) !important;
}

.location-tree-row.active {
  border-color: color-mix(in srgb, var(--location-accent, #5f796f) 32%, transparent);
  background: color-mix(in srgb, var(--location-accent, #5f796f) 8%, #fffdf9);
}

.location-detail-panel {
  --location-accent: #5f796f;
}

.location-detail-symbol {
  box-shadow: 0 10px 28px color-mix(in srgb, var(--location-accent) 20%, transparent);
}

.location-cover {
  position: relative;
  min-height: 220px;
  margin: 18px 22px 0;
  overflow: hidden;
  border-radius: 20px;
  background: #e8e4dc;
}

.location-cover::after {
  content: '';
  position: absolute;
  inset: 45% 0 0;
  background: linear-gradient(transparent, rgba(24, 34, 30, .62));
  pointer-events: none;
}

.location-cover img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  max-height: 330px;
  display: block;
  object-fit: cover;
}

.location-cover > span {
  position: absolute;
  z-index: 1;
  left: 14px;
  bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 11px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 999px;
  background: rgba(23, 38, 32, .42);
  backdrop-filter: blur(10px);
  font-size: 12px;
  font-weight: 700;
}

.location-identity-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 16px 22px 0;
  padding: 11px 13px;
  border: 1px dashed color-mix(in srgb, var(--location-accent) 30%, #d8d8d1);
  border-radius: 14px;
  color: #68736e;
  background: color-mix(in srgb, var(--location-accent) 5%, #fff);
}

.location-identity-strip > span {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  color: var(--location-accent);
  border-radius: 10px;
  background: color-mix(in srgb, var(--location-accent) 13%, #fff);
}

.location-identity-strip p {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
}

.location-appearance {
  grid-column: 1 / -1;
  margin-top: 4px;
  padding: 18px;
  border: 1px solid #e2dfd7;
  border-radius: 18px;
  background: linear-gradient(145deg, #fffdf9, #f6f3ec);
}

.location-appearance-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.location-appearance-head h3 {
  margin: 0 0 4px;
  color: #2f3a36;
  font-size: 16px;
}

.location-appearance-head p {
  max-width: 440px;
  margin: 0;
  color: #7a817e;
  font-size: 11px;
  line-height: 1.5;
}

.location-appearance-sample {
  min-width: 130px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 12px;
  color: var(--location-accent);
  border: 1px solid color-mix(in srgb, var(--location-accent) 24%, #fff);
  border-radius: 13px;
  background: color-mix(in srgb, var(--location-accent) 10%, #fff);
  font-size: 11px;
  font-weight: 800;
}

.location-appearance-grid {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 16px;
}

.location-color-field {
  min-height: 46px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 9px;
  border: 1px solid #deddd7;
  border-radius: 12px;
  background: #fff;
}

.location-color-field input[type='color'] {
  width: 34px;
  height: 32px;
  padding: 2px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  cursor: pointer;
}

.location-color-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.location-color-swatches button {
  width: 23px;
  height: 23px;
  padding: 0;
  border: 3px solid #fff;
  border-radius: 50%;
  outline: 1px solid color-mix(in srgb, var(--swatch) 42%, #d7d4cc);
  background: var(--swatch);
  box-shadow: 0 2px 6px rgba(42, 49, 45, .12);
  cursor: pointer;
}

.location-icon-field {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.location-icon-field legend {
  margin-bottom: 7px;
  color: #59635f;
  font-size: 10px;
  font-weight: 800;
}

.location-icon-options {
  display: grid;
  grid-template-columns: repeat(7, minmax(52px, 1fr));
  gap: 7px;
}

.location-icon-options label {
  min-width: 0;
  cursor: pointer;
}

.location-icon-options input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.location-icon-options span {
  min-height: 51px;
  display: grid;
  place-items: center;
  gap: 3px;
  padding: 6px 3px;
  color: #68716d;
  border: 1px solid #e0ded7;
  border-radius: 11px;
  background: #fff;
  transition: .18s ease;
}

.location-icon-options small {
  overflow: hidden;
  max-width: 100%;
  text-overflow: ellipsis;
  font-size: 8px;
  white-space: nowrap;
}

.location-icon-options input:checked + span {
  color: var(--green);
  border-color: color-mix(in srgb, var(--green) 38%, #d8d8d2);
  background: #edf3ef;
  box-shadow: inset 0 0 0 1px rgba(41, 79, 69, .08);
}

.location-photo-field {
  margin-top: 2px;
}

.location-photo-preview {
  position: relative;
  min-height: 132px;
  overflow: hidden;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 7px;
  color: #8a918d;
  border: 1px dashed #d5d3ca;
  border-radius: 14px;
  background: #f1eee7;
}

.location-photo-preview img {
  width: 100%;
  height: 180px;
  display: block;
  object-fit: cover;
}

.location-photo-preview p {
  margin: 0;
  font-size: 11px;
}

.location-photo-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 9px;
}

.location-photo-remove {
  padding: 8px 4px;
  color: #9a5546;
  border: 0;
  background: transparent;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

@media (max-width: 700px) {
  .location-cover {
    min-height: 170px;
    margin: 14px 14px 0;
    border-radius: 16px;
  }

  .location-cover img {
    min-height: 170px;
    max-height: 230px;
  }

  .location-identity-strip {
    margin: 12px 14px 0;
  }

  .location-appearance {
    padding: 14px;
  }

  .location-appearance-head {
    display: grid;
  }

  .location-appearance-sample {
    min-width: 0;
  }

  .location-appearance-grid {
    grid-template-columns: 1fr;
  }

  .location-icon-options {
    grid-template-columns: repeat(4, 1fr);
  }

  .location-photo-preview img {
    height: 150px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .location-icon-options span {
    transition: none;
  }
}

