/* Layout */
.acfl-wrap {
  display: grid;
  grid-template-columns: 1.5fr 3fr;
  gap: 16px;
  align-items: stretch;
}
.acfl-list {
  overflow: hidden;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
  display: flex;
  flex-direction: column;
}
.acfl-list-header {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 10px;
  border-bottom: 1px solid #eee;
  background: #fafafa;
  position: sticky;
  top: 0;
  z-index: 1;
}
.acfl-list-header input[type="search"] {
  flex: 1;
  min-width: 180px;
}
.acfl-list-inner {
  max-height: 70vh;
  overflow-y: auto;
  padding: 8px;
}
.acfl-map {
  min-height: 70vh;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
}
.acfl-map .acfl-map-inner {
  width: 100%;
  height: 100%;
  min-height: 70vh;
}
.acfl-card {
  border-radius: 8px;
  margin: 8px 0;
  background: #fff;
}
.acfl-card h3 {
  margin: 0 0 6px;
  font-size: 1.05rem;
}
.acfl-card .acfl-address {
  color: #555;
  margin: 0 0 6px;
}
.acfl-card .acfl-route {
  display: inline-block;
  padding: 6px 10px;
  border: 1px solid #ddd;
  border-radius: 6px;
  text-decoration: none;
}
.acfl-card.is-active {
  border-color: #333;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.08);
}
.acfl-consent-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 70vh;
  background: #fafafa;
  border-radius: 8px;
  text-align: center;
  padding: 24px;
  color: #555;
}
.acfl-distance {
  display: flex;
  gap: 6px;
  align-items: center;
}
.acfl-steps {
  list-style: decimal;
  margin-left: 1.2em;
}
:root {
  --acfl-accent: #3367d6;
}
.acfl-card.is-active {
  border-color: var(--acfl-accent);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--acfl-accent) 20%, transparent);
}
.acfl-card .acfl-route {
  border-color: var(--acfl-accent);
}
.acfl-card .acfl-route:hover {
  background: var(--acfl-accent);
  color: #fff;
}
.acfl-list-inner > .is-active,
.is-active.acfl-card,
.is-active .acfl-card {
  outline: 2px solid var(--acfl-accent);
  outline-offset: 2px;
}
.acfl-route.is-disabled {
  opacity: 0.5;
  pointer-events: none;
}
@media (max-width: 1024px) {
  .acfl-wrap {
    grid-template-columns: 1fr;
  }
  .acfl-list-inner,
  .acfl-map .acfl-map-inner {
    min-height: 50vh;
  }
}

.acfl-map-controls {
  display: flex;
  flex-direction: row;
  gap: 6px;
  margin: 10px;
}

.acfl-map-control {
  background: #ffffff;
  border: 1px solid #d1d5db;
  color: black;
  border-radius: 4px;
  padding: 6px 10px;
  font-size: 12px;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
  white-space: nowrap;
}

.acfl-map-control:hover {
  background: #f3f4f6;
  color: black;
}
