/* TTP Point Map v1.0.0 */
.ttp-point-map,
.ttp-point-map *{ box-sizing:border-box; }

.ttp-point-map{
  --ttp-point-map-height:420px;
  --ttp-point-label-line-color:#111827;
  --ttp-point-label-line-width:2px;
  max-width:940px;
  margin:28px auto;
  color:#111827;
  font-family:-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
.ttp-point-map.alignwide{ max-width:1120px; }
.ttp-point-map.alignfull{ max-width:none; }

.ttp-point-map__canvas{
  position:relative;
  width:100%;
  height:var(--ttp-point-map-height);
  min-height:260px;
  overflow:hidden;
  border:1px solid #d6dfeb;
  border-radius:8px;
  background:#eaf2fb;
  box-shadow:0 18px 42px rgba(15,23,42,.1);
}
.ttp-point-map__canvas.is-unavailable{
  display:grid;
  place-items:center;
  padding:24px;
  color:#475569;
  font-weight:700;
  text-align:center;
}

.ttp-point-map__description{
  max-width:780px;
  margin:12px auto 0;
  color:#475569;
  font-size:15px;
  font-weight:600;
  line-height:1.55;
  text-align:left;
}

.ttp-point-map__points{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(230px, 1fr));
  gap:12px;
  margin:14px 0 0;
  padding:0;
  list-style:none;
}
.ttp-point-map__point{
  display:flex;
  gap:12px;
  min-height:96px;
  padding:14px;
  border:1px solid #dbe3ef;
  border-radius:8px;
  background:#fff;
  box-shadow:0 8px 22px rgba(15,23,42,.06);
  cursor:pointer;
}
.ttp-point-map__point:hover{
  border-color:#9ebaf1;
  box-shadow:0 12px 26px rgba(37,99,235,.1);
}
.ttp-point-map__number{
  display:grid;
  flex:0 0 34px;
  width:34px;
  height:34px;
  place-items:center;
  border-radius:50%;
  background:linear-gradient(135deg, #2563eb, #0f766e);
  color:#fff;
  font-size:13px;
  font-weight:850;
  line-height:1;
}
.has-anchor-point .ttp-point-map__number{
  background:linear-gradient(135deg, #7c3aed, #c2410c);
}
.ttp-point-map__point-body{
  min-width:0;
}
.ttp-point-map__point h3{
  margin:0;
  color:#111827;
  font-size:18px;
  font-weight:850;
  line-height:1.18;
  letter-spacing:0;
}
.ttp-point-map__point p{
  margin:6px 0 0;
  color:#475569;
  font-size:14px;
  line-height:1.45;
}
.ttp-point-map__distance{
  display:inline-flex;
  margin-top:10px;
  padding:6px 9px;
  border:1px solid #e6d3c5;
  border-radius:999px;
  background:#fff7ed;
  color:#7c2d12;
  font-size:12px;
  font-weight:800;
  line-height:1;
  letter-spacing:0;
}

.ttp-point-map__line-label{
  position:absolute;
  z-index:5;
  transform:translate(-50%, -50%);
  padding:5px 8px;
  border:1px solid rgba(15,23,42,.12);
  border-radius:999px;
  background:rgba(255,255,255,.94);
  color:#111827;
  font-size:12px;
  font-weight:850;
  line-height:1;
  white-space:nowrap;
  box-shadow:0 8px 18px rgba(15,23,42,.18);
  pointer-events:none;
  transition:opacity .14s ease, visibility .14s ease;
}
.ttp-point-map__title-overlay{
  position:absolute;
  z-index:6;
  width:0;
  height:0;
}
.ttp-point-map__label-leader{
  position:absolute;
  left:0;
  top:0;
  z-index:5;
  display:block;
  width:0;
  height:0;
  border-top:var(--ttp-point-label-line-width) solid var(--ttp-point-label-line-color);
  opacity:.72;
  pointer-events:none;
  transform-origin:0 0;
  transition:opacity .14s ease, visibility .14s ease;
}
.ttp-point-map__label-leader::before{
  content:"";
  position:absolute;
  left:-1px;
  top:calc(var(--ttp-point-label-line-width) / -2);
  width:0;
  height:0;
  border-top:max(5px, calc(var(--ttp-point-label-line-width) * 2)) solid transparent;
  border-bottom:max(5px, calc(var(--ttp-point-label-line-width) * 2)) solid transparent;
  border-right:max(8px, calc(var(--ttp-point-label-line-width) * 3)) solid var(--ttp-point-label-line-color);
  transform:translateY(-50%);
}
.ttp-point-map__title-label{
  position:absolute;
  left:0;
  top:0;
  z-index:6;
  --ttp-title-shift-x:0px;
  --ttp-title-shift-y:0px;
  max-width:170px;
  overflow:hidden;
  transform:translate(calc(-50% + var(--ttp-title-shift-x)), calc(-100% - 64px + var(--ttp-title-shift-y)));
  padding:7px 10px;
  border:1px solid rgba(15,23,42,.14);
  border-radius:999px;
  background:rgba(255,255,255,.96);
  color:#111827;
  font-size:12px;
  font-weight:850;
  line-height:1.1;
  text-align:center;
  text-overflow:ellipsis;
  white-space:nowrap;
  box-shadow:0 10px 24px rgba(15,23,42,.22);
  cursor:pointer;
  transition:opacity .14s ease, visibility .14s ease, transform .14s ease;
}
.ttp-point-map__title-label:hover,
.ttp-point-map__title-label:focus{
  border-color:rgba(37,99,235,.38);
  box-shadow:0 12px 28px rgba(37,99,235,.2);
  outline:none;
}
.ttp-point-map__title-label.is-anchor{
  border-color:rgba(124,58,237,.35);
  background:rgba(250,245,255,.96);
  color:#4c1d95;
}
.ttp-point-map__title-label.is-declutter-hidden,
.ttp-point-map__line-label.is-declutter-hidden{
  opacity:0;
  visibility:hidden;
}
.ttp-point-map-window{
  width:min(260px, calc(100vw - 96px));
  max-width:100%;
  margin-top:0;
  padding:12px 12px 12px;
  color:#111827;
  font-family:-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
.ttp-point-map__canvas .gm-style-iw-c{
  padding:0 !important;
}
.ttp-point-map__canvas .gm-style-iw-chr{
  position:absolute !important;
  top:20px !important;
  right:20px !important;
  z-index:3 !important;
  height:0 !important;
  min-height:0 !important;
}
.ttp-point-map__canvas .gm-style-iw-ch{
  display:none !important;
}
.ttp-point-map__canvas .gm-style-iw-d{
  overflow:visible !important;
  max-height:none !important;
}
.ttp-point-map__canvas .gm-ui-hover-effect{
  top:0 !important;
  right:0 !important;
  width:30px !important;
  height:30px !important;
  border-radius:999px !important;
  background:rgba(255,255,255,.9) !important;
  box-shadow:0 4px 12px rgba(15,23,42,.22) !important;
  opacity:1 !important;
}
.ttp-point-map__canvas .gm-ui-hover-effect span{
  margin:6px !important;
  width:18px !important;
  height:18px !important;
}
.ttp-point-map-window strong{
  display:block;
  padding-right:28px;
  margin-top:8px;
  font-size:15px;
  line-height:1.2;
}
.ttp-point-map-window:not(.has-image){
  padding-top:12px;
}
.ttp-point-map-window:not(.has-image) strong{
  margin-top:0;
}
.ttp-point-map-window p{
  margin:7px 0 0;
  color:#475569;
  font-size:13px;
  line-height:1.35;
}
.ttp-point-map-window__image-button{
  display:block;
  width:100%;
  max-width:100%;
  height:138px;
  margin:0 0 0;
  padding:0;
  overflow:hidden;
  border:1px solid rgba(15,23,42,.14);
  border-radius:8px;
  background:#fff;
  box-shadow:0 5px 14px rgba(15,23,42,.16);
  cursor:zoom-in;
}
.ttp-point-map-window__image-button img{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
}
.ttp-point-map-window__image-button.is-expanded{
  width:100%;
  height:auto;
  cursor:zoom-out;
}
.ttp-point-map-window__image-button.is-expanded img{
  height:auto;
  max-height:240px;
  object-fit:contain;
}
.ttp-point-map-window span{
  display:inline-block;
  color:#7c2d12;
  font-size:12px;
  font-weight:800;
}

.ttp-point-map-editor{
  padding:18px;
  border:1px solid #dbe3ef;
  border-radius:8px;
  background:linear-gradient(180deg, #fff 0%, #f8fbff 100%);
  color:#111827;
  box-shadow:0 14px 34px rgba(15,23,42,.08);
}
.ttp-point-map-editor-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin-bottom:16px;
}
.ttp-point-map-editor-header-actions{
  display:flex;
  flex-wrap:wrap;
  justify-content:flex-end;
  gap:8px;
}
.ttp-point-map-editor-kicker{
  display:inline-flex;
  margin-bottom:4px;
  color:#2563eb;
  font-size:12px;
  font-weight:850;
  letter-spacing:0;
  text-transform:uppercase;
}
.ttp-point-map-editor h3{
  margin:0;
  font-size:24px;
  line-height:1.15;
}
.ttp-point-map-editor-list{
  display:grid;
  gap:12px;
  margin-top:14px;
}
.ttp-point-map-editor-list-actions{
  display:flex;
  justify-content:flex-end;
  margin-top:12px;
}
.ttp-point-map-editor-row{
  padding:14px;
  border:1px solid #dbe3ef;
  border-radius:8px;
  background:#fff;
}
.ttp-point-map-editor-row.is-collapsed{
  padding-bottom:12px;
}
.ttp-point-map-editor-row.is-anchor{
  border-color:#c4b5fd;
  box-shadow:0 0 0 2px rgba(124,58,237,.12);
}
.ttp-point-map-editor-row-head{
  display:flex;
  align-items:center;
  gap:10px;
  margin-bottom:12px;
}
.ttp-point-map-editor-row.is-collapsed .ttp-point-map-editor-row-head{
  margin-bottom:0;
}
.ttp-point-map-editor-row-title{
  display:grid;
  gap:2px;
  min-width:0;
}
.ttp-point-map-editor-row-title strong{
  overflow:hidden;
  color:#111827;
  font-size:15px;
  line-height:1.2;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.ttp-point-map-editor-row-title span{
  overflow:hidden;
  color:#64748b;
  font-size:12px;
  font-weight:700;
  line-height:1.2;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.ttp-point-map-editor-row-body{
  display:grid;
  gap:0;
}
.ttp-point-map-editor-handle{
  display:grid;
  width:28px;
  height:28px;
  place-items:center;
  border:1px solid #dbe3ef;
  border-radius:8px;
  background:#f8fafc;
  color:#64748b;
  cursor:grab;
  font-weight:900;
  line-height:1;
}
.ttp-point-map-editor-actions{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  margin-left:auto;
}
.ttp-point-map-editor-preview{
  position:relative;
  min-height:300px;
  overflow:hidden;
  border:1px solid #dbe3ef;
  border-radius:8px;
  background:
    linear-gradient(rgba(15,23,42,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15,23,42,.05) 1px, transparent 1px),
    linear-gradient(135deg, #eff6ff 0%, #fff7ed 100%);
  background-size:28px 28px, 28px 28px, auto;
}
.ttp-point-map-editor-preview.is-empty{
  display:grid;
  place-items:center;
  padding:24px;
  color:#64748b;
  font-weight:700;
  text-align:center;
}
.ttp-point-map-editor-google-preview{
  --ttp-point-label-line-color:#111827;
  --ttp-point-label-line-width:2px;
  min-height:360px;
  background:#eaf2fb;
  background-image:none;
}
.ttp-point-map-editor-google-preview.is-unavailable{
  display:grid;
  place-items:center;
  padding:24px;
  color:#64748b;
  font-weight:700;
  text-align:center;
}
.ttp-point-map-editor-map-overlay{
  position:absolute;
  z-index:6;
  width:0;
  height:0;
}
.ttp-point-map-editor-label-leader{
  position:absolute;
  left:0;
  top:0;
  z-index:8;
  display:block;
  width:0;
  height:0;
  border-top:var(--ttp-point-label-line-width) solid var(--ttp-point-label-line-color);
  opacity:.78;
  pointer-events:none;
  transform-origin:0 0;
}
.ttp-point-map-editor-label-leader::before{
  content:"";
  position:absolute;
  left:-1px;
  top:calc(var(--ttp-point-label-line-width) / -2);
  width:0;
  height:0;
  border-top:max(5px, calc(var(--ttp-point-label-line-width) * 2)) solid transparent;
  border-bottom:max(5px, calc(var(--ttp-point-label-line-width) * 2)) solid transparent;
  border-right:max(8px, calc(var(--ttp-point-label-line-width) * 3)) solid var(--ttp-point-label-line-color);
  transform:translateY(-50%);
}
.ttp-point-map-editor-map-label{
  position:absolute;
  left:0;
  top:0;
  z-index:6;
  --ttp-title-shift-x:0px;
  --ttp-title-shift-y:0px;
  max-width:170px;
  overflow:hidden;
  transform:translate(calc(-50% + var(--ttp-title-shift-x)), calc(-100% - 64px + var(--ttp-title-shift-y)));
  padding:7px 10px;
  border:1px solid rgba(15,23,42,.14);
  border-radius:999px;
  background:rgba(255,255,255,.96);
  color:#111827;
  font-size:12px;
  font-weight:850;
  line-height:1.1;
  text-align:center;
  text-overflow:ellipsis;
  white-space:nowrap;
  box-shadow:0 10px 24px rgba(15,23,42,.22);
  cursor:grab;
  user-select:none;
  touch-action:none;
}
.ttp-point-map-editor-map-point{
  position:absolute;
  left:0;
  top:0;
  z-index:7;
  display:block;
  width:16px;
  height:16px;
  padding:0;
  transform:translate(-50%, -50%);
  border:3px solid #fff;
  border-radius:50%;
  background:var(--ttp-point-label-line-color);
  box-shadow:0 4px 12px rgba(15,23,42,.32);
  cursor:grab;
  touch-action:none;
}
.ttp-point-map-editor-map-point.is-anchor{
  background:var(--ttp-point-label-line-color);
}
.ttp-point-map-editor-map-point.is-dragging{
  cursor:grabbing;
  box-shadow:0 0 0 5px rgba(255,255,255,.28), 0 8px 18px rgba(15,23,42,.36);
}
.ttp-point-map-editor-map-label.is-dragging{
  cursor:grabbing;
  box-shadow:0 14px 30px rgba(15,23,42,.3);
}
.ttp-point-map-editor-map-label.is-anchor{
  border-color:rgba(124,58,237,.35);
  background:rgba(250,245,255,.96);
  color:#4c1d95;
}
.ttp-point-map-editor-dot{
  position:absolute;
  display:block;
  max-width:170px;
  min-height:30px;
  overflow:hidden;
  padding:8px 10px;
  transform:translate(-50%, -50%);
  border:3px solid #fff;
  border-radius:999px;
  background:#2563eb;
  color:#fff;
  font-size:12px;
  font-weight:900;
  line-height:1.1;
  text-align:center;
  text-overflow:ellipsis;
  white-space:nowrap;
  box-shadow:0 8px 18px rgba(15,23,42,.22);
}
.ttp-point-map-editor-dot.is-anchor{
  background:#7c3aed;
}
.ttp-point-map-editor-map-panel{
  display:grid;
  gap:12px;
  margin-bottom:14px;
}
.ttp-point-map-editor-summary{
  display:grid;
  gap:4px;
  padding:12px;
  border:1px solid #e5e7eb;
  border-radius:8px;
  background:#fff;
}
.ttp-point-map-editor-summary span{
  color:#64748b;
  font-size:13px;
}
.ttp-point-map-editor-display-settings{
  display:grid;
  grid-template-columns:repeat(2, minmax(180px, 1fr));
  gap:12px;
  align-items:end;
  padding:12px;
  border:1px solid #e5e7eb;
  border-radius:8px;
  background:#fff;
}
.ttp-point-map-editor-display-settings .components-base-control{
  margin-bottom:0;
}
.ttp-point-map-editor-display-settings .components-toggle-control{
  margin-bottom:2px;
}
.ttp-point-map-editor-color-field{
  display:grid;
  gap:8px;
}
.ttp-point-map-editor-color-field input[type="color"]{
  width:64px;
  height:38px;
  padding:3px;
  border:1px solid #dbe3ef;
  border-radius:8px;
  background:#fff;
  cursor:pointer;
}
.ttp-point-map-editor-description{
  padding:12px;
  border:1px solid #e5e7eb;
  border-radius:8px;
  background:#fff;
}
.ttp-point-map-editor-description .components-base-control{
  margin-bottom:0;
}
.ttp-point-map-editor-image-field{
  display:grid;
  gap:10px;
  margin-top:12px;
  padding:12px;
  border:1px solid #e5e7eb;
  border-radius:8px;
  background:#fff;
}
.ttp-point-map-editor-image-field > img{
  width:120px;
  height:86px;
  object-fit:cover;
  border:1px solid #dbe3ef;
  border-radius:8px;
}
.ttp-point-map-editor-image-field .components-base-control{
  margin-bottom:0;
}
.ttp-point-map-editor-label-controls{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:12px;
  align-items:end;
  margin-top:12px;
  padding:12px;
  border:1px solid #e5e7eb;
  border-radius:8px;
  background:#f8fafc;
}
.ttp-point-map-editor-label-controls .components-base-control{
  margin-bottom:0;
}
.ttp-point-map-editor-label-controls .components-button{
  justify-self:start;
}
.ttp-point-map-editor-collapsed{
  display:flex;
  align-items:center;
  gap:12px;
  justify-content:space-between;
  margin-top:14px;
  padding:14px;
  border:1px dashed #cbd5e1;
  border-radius:8px;
  background:#f8fafc;
}
.ttp-point-map-editor-collapsed span{
  flex:1;
  color:#64748b;
  font-size:13px;
}

@media (max-width: 760px){
  .ttp-point-map-editor-header,
  .ttp-point-map-editor-row-head{
    align-items:flex-start;
    flex-direction:column;
  }
  .ttp-point-map-editor-header-actions{
    justify-content:flex-start;
  }
  .ttp-point-map-editor-actions{
    margin-left:0;
  }
  .ttp-point-map-editor-collapsed{
    align-items:flex-start;
    flex-direction:column;
  }
  .ttp-point-map-editor-display-settings{
    grid-template-columns:1fr;
  }
  .ttp-point-map-editor-label-controls{
    grid-template-columns:1fr;
  }
  .ttp-point-map__points{
    grid-template-columns:1fr;
  }
}
