/* Base */
.edix-dealer-locator {
  width: 100%;
}

.edix-dealer-locator #edix-reset {
  margin-top:25px;
}

.leaflet-container {
  border: 1px solid #eee;
  border-radius: 12px;
}

/* Layout */
.edix-layout {
  display: grid;
  grid-template-columns: 280px 1.4fr 1fr;
  gap: 12px;
  align-items: start;
}

h3.dealer-locator {
    margin-top: 25px;
    margin-bottom: 10px;
}

/* Filters */
.edix-filters {
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 12px;
  background: #fff;
  position: sticky;
  top: 12px;
  height: fit-content;
}

.edix-filters input:not([type='checkbox']) {
  width: 100%;
  border-radius: 12px;
}

.edix-filter-block {
  margin-bottom: 14px;
}

.edix-filter-title {
  font-weight: 700;
  margin-bottom: 8px;
}

.edix-filters input[type="text"] {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 8px;
}

/* Tree */
.edix-tree {
  max-height: 420px;
  overflow: auto;
  padding: 8px;
}

.edix-tree-search {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 8px;
  margin: 8px 0 10px;
}

.edix-tree-node {
  padding: 2px 0;
}

.edix-tree-line {
  display: flex;
  align-items: center;
  gap: 8px;
}

.edix-tree-toggle {
  width: 14px;
  height: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  user-select: none;
}

.edix-tree-toggle.is-empty {
  cursor: default;
}

.edix-tree-toggle::before {
  content: "";
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 5px 0 5px 7px;
  border-color: transparent transparent transparent #AC0033;
  transform-origin: 50% 50%;
  transition: transform 0.12s ease;
}

.edix-tree-toggle.is-empty::before {
  border-color: transparent;
}

.edix-tree-node.is-collapsed .edix-tree-toggle::before {
  transform: rotate(0deg);
}

.edix-tree-node:not(.is-collapsed) .edix-tree-toggle::before {
  transform: rotate(90deg);
}

.edix-tree-label {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  font-size: 14px;
}

.edix-tree-label input {
  margin: 0;
  transform: translateY(1px);
}

.edix-tree-text {
  cursor: pointer;
}

/* List */
.edix-list {
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 10px;
  overflow: auto;
  max-height: 650px;
}

.edix-card {
  padding: 10px;
  border: 1px solid #eee;
  border-radius: 12px;
  margin-bottom: 10px;
  cursor: pointer;
}

.edix-card:hover {
  background: #fafafa;
}

.edix-card .title {
  font-weight: 700;
  margin-bottom: 6px;
}

.edix-card .meta {
  color: #666;
  font-size: 13px;
}

.edix-card .meta a {
  color: inherit;
  text-decoration: none;
}

.edix-card .meta a:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 980px) {
  .edix-layout {
    grid-template-columns: 1fr;
  }

  .edix-filters {
    position: static;
    top: auto;
  }

  .edix-tree {
    max-height: 260px;
  }

  .edix-list {
    max-height: 420px;
  }
}
