.zachee-maps {
  --zachee-green: #2fa986;
  --zachee-green-dark: #247f68;
  --zachee-red: #e34d4d;
  --zachee-ink: #17211d;
  --zachee-muted: #60716a;
  --zachee-line: #d9e1dc;
  --zachee-panel: #ffffff;
  --zachee-soft: #f6f3ed;
  color: var(--zachee-ink);
}

.zachee-maps * {
  box-sizing: border-box;
}

.zachee-maps__controls {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(180px, 260px) auto auto;
  gap: 10px;
  align-items: center;
  margin: 0 0 14px;
}

.zachee-maps__search input,
.zachee-maps__select select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--zachee-line);
  border-radius: 6px;
  background: #fff;
  color: var(--zachee-ink);
  font: inherit;
  line-height: 1.2;
  padding: 9px 12px;
}

.zachee-maps__search input:focus,
.zachee-maps__select select:focus {
  border-color: var(--zachee-green);
  box-shadow: 0 0 0 3px rgba(47, 169, 134, 0.16);
  outline: 0;
}

.zachee-maps__toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  white-space: nowrap;
  color: var(--zachee-ink);
}

.zachee-maps__toggle input {
  width: 18px;
  height: 18px;
  accent-color: var(--zachee-red);
}

.zachee-maps__reset {
  min-height: 44px;
  border: 1px solid var(--zachee-line);
  border-radius: 6px;
  background: var(--zachee-soft);
  color: var(--zachee-ink);
  cursor: pointer;
  font: inherit;
  padding: 8px 12px;
}

.zachee-maps__reset:hover,
.zachee-maps__reset:focus {
  border-color: var(--zachee-green);
  color: var(--zachee-green-dark);
}

.zachee-maps__layout {
  display: grid;
  grid-template-columns: minmax(360px, 1.05fr) minmax(320px, 0.95fr);
  gap: 24px;
  align-items: start;
}

.zachee-maps--map-only .zachee-maps__layout,
.zachee-maps--map-only .zachee-maps__map-panel {
  display: block;
}

.zachee-maps--sticky .zachee-maps__map-panel {
  position: sticky;
  top: 24px;
}

.zachee-maps__map {
  width: 100%;
  min-height: 360px;
  height: var(--zachee-map-height, 640px);
  overflow: hidden;
  border: 1px solid var(--zachee-line);
  border-radius: 8px;
  background: var(--zachee-soft);
}

.zachee-maps__map img {
  max-width: none !important;
}

.zachee-map-marker {
  display: none;
}

.zachee-maps__list-panel {
  max-height: var(--zachee-map-height, 640px);
  overflow: auto;
  padding-right: 4px;
}

.zachee-maps__result-count {
  position: sticky;
  top: 0;
  z-index: 2;
  margin: 0 0 10px;
  padding: 8px 0;
  background: #fff;
  color: var(--zachee-muted);
  font-size: 0.95rem;
}

.zachee-maps__list {
  display: grid;
  gap: 12px;
}

.zachee-parcours-card {
  position: relative;
  display: block;
  margin: 0;
  padding: 14px;
  border: 1px solid var(--zachee-line);
  border-radius: 8px;
  background: var(--zachee-panel);
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.zachee-parcours-card:hover,
.zachee-parcours-card:focus {
  border-color: rgba(47, 169, 134, 0.7);
  box-shadow: 0 8px 22px rgba(23, 33, 29, 0.08);
  outline: 0;
}

.zachee-parcours-card.is-active,
.item-parcours.is-active {
  border-color: var(--zachee-green) !important;
  box-shadow: 0 0 0 3px rgba(47, 169, 134, 0.2), 0 10px 28px rgba(23, 33, 29, 0.1);
}

.zachee-parcours-card.is-hidden {
  display: none;
}

.zachee-parcours-card__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
}

.zachee-parcours-card__title {
  margin: 0;
  color: var(--zachee-ink);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  font-weight: 800;
  line-height: 1.25;
}

.zachee-parcours-card__department {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 190px;
  min-height: 34px;
  border-radius: 6px;
  background: var(--zachee-green);
  color: #fff;
  font-size: 0.92rem;
  line-height: 1.15;
  padding: 6px 10px;
  text-align: center;
}

.zachee-parcours-card__body {
  margin-top: 10px;
  color: var(--zachee-ink);
}

.zachee-contact-line {
  margin: 0.35em 0;
  line-height: 1.35;
}

.zachee-contact-line span {
  color: var(--zachee-muted);
}

.zachee-contact-line a {
  overflow-wrap: anywhere;
  color: #0658c9;
  text-decoration: none;
}

.zachee-contact-line a:hover,
.zachee-contact-line a:focus {
  text-decoration: underline;
}

.zachee-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 8px 0 0;
  border-radius: 5px;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1;
  padding: 7px 9px;
}

.zachee-badge--jp {
  background: var(--zachee-red);
}

.zachee-map-info {
  max-width: min(320px, 72vw);
  color: var(--zachee-ink);
  font-family: inherit;
}

.zachee-map-info__head {
  display: grid;
  gap: 8px;
  margin-bottom: 8px;
}

.zachee-map-info__head h3 {
  margin: 0;
  color: var(--zachee-ink);
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.25;
}

.zachee-map-info__head span {
  display: inline-flex;
  width: fit-content;
  border-radius: 5px;
  background: var(--zachee-green);
  color: #fff;
  font-size: 0.85rem;
  line-height: 1.15;
  padding: 5px 8px;
}

.zachee-map-info__body {
  font-size: 0.95rem;
}

.gm-style .gm-style-iw-c {
  border-radius: 8px;
  padding: 14px !important;
}

.gm-style .gm-style-iw-d {
  overflow: auto !important;
}

@media (max-width: 980px) {
  .zachee-maps__controls {
    grid-template-columns: 1fr 1fr;
  }

  .zachee-maps__layout {
    grid-template-columns: 1fr;
  }

  .zachee-maps--sticky .zachee-maps__map-panel {
    position: static;
  }

  .zachee-maps__list-panel {
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }
}

@media (max-width: 640px) {
  .zachee-maps__controls {
    grid-template-columns: 1fr;
  }

  .zachee-maps__map {
    height: min(var(--zachee-map-height, 520px), 70vh);
  }

  .zachee-parcours-card__head {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .zachee-parcours-card__department {
    justify-self: start;
    max-width: 100%;
  }
}
