:root {
  --delfy-red: #ff1e1e;
  --delfy-dark: #111;
  --panel-bg: rgba(255,255,255,.94);
  --line: rgba(0,0,0,.12);
  --zone-1: rgba(255, 30, 30, .10);
  --zone-2: rgba(72, 84, 180, .09);
  --shadow: 0 18px 45px rgba(0,0,0,.18);
}

.delfy-map-canvas .leaflet-tile {
  filter: grayscale(1) contrast(1.05) brightness(1.03);
}



.delfy-map-widget,
.delfy-map-widget * {
  box-sizing: border-box;
}

.delfy-map-widget {
  /*width: min(100%, 1480px);*/
	width: 100%;
  /*height: 760px;
  min-height: 620px;*/
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 360px 1fr;
  background: #f2f2f2;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--delfy-dark);
}

.delfy-map-sidebar {
  position: relative;
  z-index: 1000;
  padding: 42px 26px 28px;
  background:
    linear-gradient(90deg, rgba(255,255,255,.98), rgba(255,255,255,.86)),
    radial-gradient(circle at 0 0, rgba(255,30,30,.08), transparent 34%);
  box-shadow: 12px 0 38px rgba(0,0,0,.12);
  overflow: auto;
  min-height: 0;
}

.delfy-map-sidebar h1 {
  margin: 0 0 14px;
  font-size: 21px;
  line-height: 1.1;
  font-weight: 850;
  letter-spacing: -.03em;
}

.delfy-map-search-box {
  position: relative;
  margin-bottom: 16px;
}

.delfy-map-search-box input {
  width: 100%;
  height: 58px;
  border: 0;
  border-bottom: 1px solid rgba(0,0,0,.55);
  background: #fff;
  padding: 19px 46px 7px 16px;
  font-size: 16px;
  outline: none;
  box-shadow: 0 8px 26px rgba(0,0,0,.08);
}

.delfy-map-search-box label {
  position: absolute;
  left: 16px;
  top: 9px;
  color: #aaa;
  font-size: 11px;
  pointer-events: none;
}

.delfy-map-search-box button {
  position: absolute;
  right: 8px;
  top: 9px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: var(--delfy-red);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
	display: none;
}

.delfy-map-hint {
  margin: 0 0 18px;
  color: #666;
  font-size: 13px;
  line-height: 1.45;
	display: none;
}

.delfy-map-results {
  display: grid;
  gap: 0;
  margin-top: 8px;
  max-height: 330px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 4px;
}

.delfy-map-results:empty {
  display: none;
}

.delfy-map-results::-webkit-scrollbar {
  width: 8px;
}

.delfy-map-results::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,.22);
  border-radius: 999px;
}

.delfy-map-results.is-loading {
  display: block;
  padding: 10px 0;
}

.delfy-map-result-item {
  display: grid;
  grid-template-columns: 25px 1fr;
  gap: 9px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(0,0,0,.11);
  cursor: pointer;
}

.delfy-map-result-item:hover .delfy-map-result-title {
  color: var(--delfy-red);
}

.delfy-map-result-pin {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  border-radius: 50% 50% 50% 0;
  background: var(--delfy-red);
  transform: rotate(-45deg);
}

.delfy-map-result-title {
  display: block;
  font-weight: 800;
  font-size: 14px;
  line-height: 1.2;
}

.delfy-map-result-subtitle {
  display: block;
  margin-top: 3px;
  color: #666;
  font-size: 12px;
  line-height: 1.25;
}

.delfy-map-legend {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(0,0,0,.12);
  font-size: 13px;
  line-height: 1.45;
}

.delfy-map-legend-row {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 7px 0;
}

.delfy-map-swatch {
  width: 26px;
  height: 16px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.14);
}

.delfy-map-swatch.zone1 { background: var(--zone-1); }
.delfy-map-swatch.zone2 { background: var(--zone-2); }

.delfy-map-brand {
  margin-top: 38px;
  font-size: 27px;
  line-height: .85;
  font-weight: 950;
  letter-spacing: -.05em;
  display: flex;
  align-items: center;
  gap: 10px;
}

.delfy-map-brand-mark {
  width: 33px;
  height: 33px;
  background: var(--delfy-red);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 6px;
}

.delfy-map-brand-mark span { background: #fff; }
.delfy-map-brand-mark span:nth-child(1) { grid-column: 1 / 3; }
.delfy-map-brand-mark span:nth-child(3) { border-radius: 0 0 10px 0; }

.delfy-map-canvas {
  width: 100%;
  height: 100%;
  min-height: 0;
}

.delfy-map-widget .leaflet-container {
  background: #d9d9d9;
  font-family: inherit;
}

.delfy-map-branch-marker {
  width: 30px;
  height: 30px;
  border-radius: 50% 50% 50% 0;
  background: var(--delfy-red);
  transform: rotate(-45deg);
 /* border: 4px solid #fff;*/
  box-shadow: 0 8px 18px rgba(0,0,0,.42);
}

.delfy-map-branch-marker::after {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 50%;
  background: #fff;
}

.delfy-map-user-marker {
  width: 24px;
  height: 24px;
  border: 4px solid #fff;
  background: #111;
  border-radius: 999px;
  box-shadow: 0 8px 18px rgba(0,0,0,.35);
}

.delfy-map-zone-label {
  padding: 2px 7px 3px;
  background: #090909;
  color: #fff;
  border-radius: 999px;
  font-weight: 900;
  font-size: 15px;
  line-height: 1;
  white-space: nowrap;
  text-shadow: none;
  box-shadow: 0 2px 4px rgba(0,0,0,.24);
}

.delfy-map-widget .leaflet-tooltip.delfy-map-zone-label-wrap {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
}

.delfy-map-widget .leaflet-popup-content-wrapper {
  border-radius: 0;
  box-shadow: var(--shadow);
}

.delfy-map-widget .leaflet-popup-content {
  min-width: 280px;
  margin: 16px;
}

.delfy-map-price-popup h2 {
  margin: 0 0 9px;
  font-size: 16px;
  line-height: 1.15;
  font-weight: 900;
}

.delfy-map-price-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin: 8px 0 12px;
}

.delfy-map-price-table td {
  padding: 4px 0;
  border-bottom: 1px solid rgba(0,0,0,.09);
  text-align: left;
  vertical-align: top;
}

.delfy-map-price-table td:last-child {
  text-align: right;
  font-weight: 900;
  white-space: nowrap;
  padding-left: 18px;
}

.delfy-map-popup-note {
  margin: 0 0 12px;
  color: #666;
  font-size: 12px;
  line-height: 1.35;
}

.delfy-map-cta {
  display: block;
  width: 100%;
  border: 0;
  background: var(--delfy-red);
  color: #fff !important;
  text-decoration: none;
  text-align: center;
  padding: 12px 14px;
  font-size: 13px;
  font-weight: 850;
  cursor: pointer;
}

@media (max-width: 850px) {
  .delfy-map-widget {
    width: 100%;
   /* height: 720px;
    min-height: 620px;*/
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
  }

  .delfy-map-sidebar {
    position: absolute;
    left: 12px;
    top: 12px;
    right: 12px;
    max-height: 46%;
    padding: 18px;
    border-radius: 18px;
  }

  .delfy-map-sidebar h1 { font-size: 18px; }

  .delfy-map-canvas {
    height: 100%;
    min-height: 620px;
  }

  .delfy-map-brand,
  .delfy-map-legend {
    display: none;
  }

  .delfy-map-results {
    max-height: 210px;
  }
}



/* ---------------------------------------------------------------------------------------------------------------------*/
.delfy-map-results {
  display: grid;
  gap: 0;
  margin-top: 10px;
  max-height: 430px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 4px;
}

.delfy-map-results:empty {
  display: none;
}

.delfy-map-results::-webkit-scrollbar {
  width: 8px;
}

.delfy-map-results::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,.18);
  border-radius: 999px;
}

.delfy-map-results-item {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 14px;
  align-items: start;
  padding: 14px 2px 14px 0;
  border-bottom: 1px solid rgba(0,0,0,.10);
  cursor: pointer;
  transition: background .15s ease;
}

.delfy-map-results-item:hover {
  background: rgba(0,0,0,.025);
}

.delfy-map-results-pin {
  position: relative;
  width: 18px;
  height: 18px;
  margin-top: 4px;
  margin-left: 6px;
  border-radius: 50% 50% 50% 0;
  background: #ff1e1e;
  transform: rotate(-45deg);
  flex: 0 0 auto;
}

.delfy-map-results-pin::after {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  background: #fff;
}

.delfy-map-results-title {
  display: block;
  font-weight: 800;
  font-size: 16px;
  line-height: 1.2;
  color: #222;
}

.delfy-map-results-subtitle {
  display: block;
  margin-top: 4px;
  color: #787878;
  font-size: 12px;
  line-height: 1.35;
}

.delfy-map .leaflet-attribution-flag {displa:none;}