:root {
  --w66-ink: #131211;
  --w66-paper: #f5f0e7;
  --w66-paper-2: #e9e1cf;
  --w66-accent: #b8532b;
  --w66-display-font: "Fraunces", Georgia, serif;
  --w66-label-font: "Inter", Arial, sans-serif;
  --w66-body-font: "Inter", Arial, sans-serif;
}

html.w66-widget-page,
.w66-widget-page body {
  height: 100%;
  margin: 0;
  background: var(--w66-paper-2);
}

.w66-ge {
  position: relative;
  width: 100%;
  height: var(--w66-ge-height, 560px);
  min-height: 280px;
  overflow: hidden;
  border-radius: 8px;
  background: var(--w66-paper-2);
  box-shadow: 0 2px 16px rgba(0,0,0,0.10);
  font-family: var(--w66-body-font);
}

.w66-widget-page .w66-ge {
  height: 100%;
  min-height: 100%;
  border-radius: 0;
  box-shadow: none;
}

.w66-ge:fullscreen,
.w66-ge:-webkit-full-screen {
  width: 100vw;
  height: 100vh;
  border-radius: 0;
  background: var(--w66-paper-2);
  box-shadow: none;
}

.w66-ge-map {
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: inherit;
}

.w66-ge-map canvas {
  display: block;
  touch-action: none;
}

.w66-ge-map.is-exploring-globe canvas {
  cursor: grab;
}

.w66-ge-map.is-exploring-globe canvas:active {
  cursor: grabbing;
}

.w66-ge-logo {
  display: none;
  position: absolute;
  top: 18px;
  left: 20px;
  z-index: 960;
  font-family: var(--w66-display-font);
  font-size: 24px;
  line-height: 1;
  color: var(--w66-ink);
  text-decoration: none;
  text-shadow: 0 1px 8px rgba(255,255,255,0.78);
}

.w66-ge:fullscreen .w66-ge-logo,
.w66-ge:-webkit-full-screen .w66-ge-logo,
.w66-widget-page .w66-ge-logo {
  display: block;
}

.w66-ge-logo:hover {
  color: var(--w66-ink);
  text-decoration: none;
}

.w66-ge-logo span {
  display: inline-block;
  width: 0.28em;
  height: 0.28em;
  margin: 0 0.05em;
  border-radius: 50%;
  background: var(--w66-accent);
  vertical-align: 0.08em;
}

.w66-ge-actions {
  position: absolute;
  right: 16px;
  bottom: 16px;
  left: 16px;
  z-index: 950;
  display: flex;
  justify-content: center;
  gap: 10px;
  pointer-events: none;
}

.w66-ge-action {
  pointer-events: auto;
  background: var(--w66-paper);
  border: none;
  border-radius: 20px;
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--w66-label-font);
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(0,0,0,0.18);
  color: var(--w66-ink);
  white-space: nowrap;
  transition: background 0.15s, box-shadow 0.15s;
}

.w66-ge-action:hover {
  background: var(--w66-paper-2);
  box-shadow: 0 4px 16px rgba(0,0,0,0.22);
}

.w66-ge-card {
  position: absolute;
  top: 24px;
  left: 24px;
  width: 256px;
  background: var(--w66-paper);
  border-radius: 6px;
  box-shadow: 0 6px 28px rgba(0,0,0,0.18);
  overflow: hidden;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
  z-index: 900;
}

.w66-ge-card.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.w66-ge-card .city-card-link {
  display: block;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.w66-ge-card .city-card-link:hover {
  color: inherit;
  text-decoration: none;
}

.city-card-photo {
  position: relative;
  height: 172px;
  overflow: hidden;
}

.city-card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.w66-ge-card:hover .city-card-photo img {
  transform: scale(1.035);
}

.city-card-photo-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.72) 0%,
    rgba(0,0,0,0.38) 48%,
    rgba(0,0,0,0.08) 100%
  );
}

.city-card-title-block {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 14px;
  color: #fff;
  text-shadow: 0 2px 14px rgba(0,0,0,0.65);
}

.city-card-body {
  padding: 14px 16px 15px;
}

.city-card-name {
  font-family: var(--w66-display-font);
  font-size: 24px;
  font-weight: 400;
  font-variation-settings: "opsz" 144;
  letter-spacing: -0.02em;
  line-height: 1.0;
  color: #fff;
  margin-bottom: 4px;
}

.city-card-country {
  font-family: var(--w66-label-font);
  font-size: 11px;
  color: rgba(255,255,255,0.84);
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
}

.city-card-snippet {
  color: var(--w66-ink);
  font-size: 13px;
  line-height: 1.45;
  margin: 0;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
  overflow: hidden;
}

.w66-ge-embed {
  position: absolute;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(19,18,17,0.46);
}

.w66-ge-embed[hidden] {
  display: none;
}

.w66-ge-embed-panel {
  width: min(620px, 100%);
  max-height: calc(100vh - 36px);
  overflow: auto;
  background: var(--w66-paper);
  color: var(--w66-ink);
  border-radius: 8px;
  box-shadow: 0 16px 60px rgba(0,0,0,0.26);
  padding: 22px;
}

.w66-ge-embed-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.w66-ge-embed-title {
  font-family: var(--w66-display-font);
  font-size: 26px;
  font-weight: 400;
  line-height: 1.05;
  margin: 0;
}

.w66-ge-embed-close {
  border: none;
  background: transparent;
  color: var(--w66-ink);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.w66-ge-embed-code {
  width: 100%;
  min-height: 92px;
  resize: vertical;
  box-sizing: border-box;
  border: 1px solid rgba(19,18,17,0.22);
  border-radius: 6px;
  background: #fffaf1;
  color: var(--w66-ink);
  padding: 12px;
  font: 13px/1.45 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.w66-ge-embed-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 10px;
}

.w66-ge-embed-actions .w66-ge-action {
  box-shadow: none;
  border: 1px solid rgba(19,18,17,0.14);
}

.w66-ge-embed-help {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
  color: rgba(19,18,17,0.72);
  font-size: 14px;
  line-height: 1.45;
}

.w66-ge-embed-help a {
  color: var(--w66-accent);
  text-decoration: none;
}

.w66-ge-embed-help a:hover {
  text-decoration: underline;
}

@media (max-width: 700px) {
  .w66-ge-actions {
    justify-content: flex-end;
    flex-wrap: wrap;
  }

  .w66-ge-action {
    padding: 8px 12px;
    font-size: 12px;
  }

  .w66-ge-card {
    width: min(256px, calc(100% - 32px));
  }
}

.w66-pm {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 320px;
  overflow: hidden;
  background: #d6e2e3;
  font-family: var(--w66-body-font);
  container-type: size;
}

.w66-pm-map {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 100%;
  height: 100%;
  transform: translate(-50%, -50%);
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}

.w66-pm-map::after {
  content: none;
}

.w66-pm-tile {
  position: absolute;
  z-index: 2;
  display: block;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.w66-pm-tile:hover,
.w66-pm-tile:focus {
  outline: 2px solid #fff;
  outline-offset: -2px;
  background: rgba(255,255,255,0.12);
}

.w66-pm-card {
  position: absolute;
  left: 18px;
  top: 18px;
  z-index: 5;
  width: min(360px, calc(100% - 24px));
  background: var(--w66-paper);
  border-radius: 6px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.24);
  overflow: hidden;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.w66-pm-card .city-card-photo {
  height: 210px;
}

.w66-pm-card.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.w66-pm-card-close {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 3;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,0.88);
  color: var(--w66-ink);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.w66-pm-brand {
  display: none;
  position: absolute;
  left: 16px;
  top: 14px;
  z-index: 4;
  font-family: var(--w66-display-font);
  font-size: 24px;
  line-height: 1;
  color: var(--w66-ink);
  text-decoration: none;
  text-shadow: 0 1px 8px rgba(255,255,255,0.78);
}

.w66-widget-page .w66-pm-brand,
.w66-pm:fullscreen .w66-pm-brand,
.w66-pm:-webkit-full-screen .w66-pm-brand {
  display: block;
}

.w66-pm:fullscreen,
.w66-pm:-webkit-full-screen {
  width: 100vw;
  height: 100vh;
}

.w66-pm-brand span {
  display: inline-block;
  width: 0.28em;
  height: 0.28em;
  margin: 0 0.05em;
  border-radius: 50%;
  background: var(--w66-accent);
  vertical-align: 0.08em;
}

.w66-pm-actions {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 4;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.home-city-map-wrap.w66-pm {
  height: 560px;
}

.w66-se {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 560px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #dce8e5;
  color: var(--w66-ink);
  font-family: var(--w66-body-font);
}

.w66-se-controls {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: auto repeat(6, minmax(112px, 1fr)) auto;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  background: rgba(245,240,231,0.96);
  border-bottom: 1px solid rgba(19,18,17,0.14);
  box-shadow: 0 8px 24px rgba(19,18,17,0.08);
}

.w66-se-brand {
  font-family: var(--w66-display-font);
  font-size: 25px;
  line-height: 1;
  color: var(--w66-ink);
  text-decoration: none;
  white-space: nowrap;
}

.w66-se-brand span {
  display: inline-block;
  width: 0.28em;
  height: 0.28em;
  margin: 0 0.05em;
  border-radius: 50%;
  background: var(--w66-accent);
  vertical-align: 0.08em;
}

.w66-se-slider {
  min-width: 0;
}

.w66-se-slider label {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: rgba(19,18,17,0.78);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-transform: uppercase;
}

.w66-se-slider strong {
  color: var(--w66-ink);
  font-weight: 700;
}

.w66-se-slider input {
  width: 100%;
  margin: 6px 0 0;
  accent-color: var(--w66-accent);
}

.w66-se-reset {
  min-height: 36px;
  border: 1px solid rgba(19,18,17,0.18);
  border-radius: 6px;
  background: #fffaf1;
  color: var(--w66-ink);
  padding: 0 13px;
  font: 700 12px/1 var(--w66-body-font);
  cursor: pointer;
}

.w66-se-reset:hover {
  background: #fff;
}

.w66-se-main {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
}

.w66-se-map-panel {
  position: relative;
  min-width: 0;
  min-height: 0;
  background: #dce8e5;
}

.w66-se-map {
  width: 100%;
  height: 100%;
  display: block;
  cursor: grab;
  touch-action: none;
}

.w66-se-map.is-dragging {
  cursor: grabbing;
}

.w66-se-map-controls {
  position: absolute;
  right: 14px;
  top: 14px;
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(3, 34px);
  gap: 6px;
}

.w66-se-map-controls button {
  height: 34px;
  border: 1px solid rgba(19,18,17,0.18);
  border-radius: 6px;
  background: rgba(255,250,241,0.92);
  box-shadow: 0 4px 14px rgba(19,18,17,0.1);
  color: var(--w66-ink);
  font: 800 13px/1 var(--w66-body-font);
  cursor: pointer;
}

.w66-se-map-controls button:hover {
  background: #fff;
}

.w66-se-map-controls [data-map-zoom="in"] {
  grid-column: 1;
}

.w66-se-map-controls [data-map-zoom="out"] {
  grid-column: 2;
}

.w66-se-map-controls [data-map-pan="up"] {
  grid-column: 2;
}

.w66-se-map-controls [data-map-pan="left"] {
  grid-column: 1;
}

.w66-se-map-controls [data-map-pan="right"] {
  grid-column: 3;
}

.w66-se-map-controls [data-map-pan="down"] {
  grid-column: 2;
}

.w66-se-map-controls [data-map-reset] {
  grid-column: 1 / -1;
  width: auto;
}

.w66-se-ocean {
  fill: #dce8e5;
}

.w66-se-graticule line {
  stroke: rgba(45,78,82,0.16);
  stroke-width: 0.7;
  vector-effect: non-scaling-stroke;
}

.w66-se-land path {
  fill: #f4efe5;
  stroke: rgba(19,18,17,0.22);
  stroke-width: 0.55;
  vector-effect: non-scaling-stroke;
}

.w66-se-marker {
  fill: rgba(184,83,43,0.48);
  stroke: #fffaf1;
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.w66-se-marker.is-top {
  fill: var(--w66-accent);
  stroke-width: 1.25;
}

.w66-se-marker-label {
  fill: #fffaf1;
  font: 700 8px/1 var(--w66-body-font);
  text-anchor: middle;
  pointer-events: none;
}

.w66-se-list-panel {
  min-width: 0;
  overflow: auto;
  background: var(--w66-paper);
  border-left: 1px solid rgba(19,18,17,0.14);
  padding: 14px;
}

.w66-se-list-head {
  margin-bottom: 10px;
}

.w66-se-list-head h1 {
  margin: 0;
  font-family: var(--w66-display-font);
  font-size: 30px;
  font-weight: 400;
  line-height: 1.05;
}

.w66-se-list-head p {
  margin: 5px 0 0;
  color: rgba(19,18,17,0.68);
  font-size: 12px;
  line-height: 1.35;
}

.w66-se-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.w66-se-list li {
  border-top: 1px solid rgba(19,18,17,0.1);
}

.w66-se-list a {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 9px;
  align-items: start;
  padding: 9px 0 5px;
  color: var(--w66-ink);
  text-decoration: none;
}

.w66-se-list a:hover strong {
  color: var(--w66-accent);
}

.w66-se-rank {
  display: inline-flex;
  width: 26px;
  height: 26px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(184,83,43,0.12);
  color: var(--w66-accent);
  font-size: 12px;
  font-weight: 800;
}

.w66-se-place {
  min-width: 0;
}

.w66-se-place strong,
.w66-se-place small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.w66-se-place strong {
  font-size: 15px;
  line-height: 1.2;
}

.w66-se-place small {
  margin-top: 2px;
  color: rgba(19,18,17,0.62);
  font-size: 12px;
}

.w66-se-score {
  font-size: 15px;
  font-weight: 800;
  line-height: 1.2;
}

.w66-se-components {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 0 0 8px 43px;
}

.w66-se-components span {
  border-radius: 999px;
  background: rgba(19,18,17,0.06);
  color: rgba(19,18,17,0.68);
  padding: 3px 7px;
  font-size: 11px;
  line-height: 1.2;
}

.w66-se-hover {
  position: absolute;
  z-index: 9;
  width: 210px;
  border-radius: 6px;
  background: rgba(255,250,241,0.97);
  box-shadow: 0 10px 34px rgba(19,18,17,0.22);
  padding: 10px 12px;
  pointer-events: none;
}

.w66-se-hover strong,
.w66-se-hover small,
.w66-se-hover span {
  display: block;
}

.w66-se-hover strong {
  font-size: 15px;
  line-height: 1.2;
}

.w66-se-hover small {
  margin-top: 2px;
  color: rgba(19,18,17,0.62);
  font-size: 12px;
}

.w66-se-hover span {
  margin-top: 6px;
  color: rgba(19,18,17,0.74);
  font-size: 12px;
  line-height: 1.3;
}

.w66-se-actions {
  position: absolute;
  left: 16px;
  bottom: 16px;
  z-index: 6;
  display: flex;
  gap: 10px;
}

.w66-se:fullscreen,
.w66-se:-webkit-full-screen {
  width: 100vw;
  height: 100vh;
}

.w66-sc .w66-se-actions {
  left: 336px;
}

.w66-sc-top {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: auto minmax(130px, 0.8fr) minmax(150px, 1fr) minmax(160px, 1fr) auto auto;
  gap: 12px;
  align-items: end;
  padding: 12px 14px;
  background: rgba(245,240,231,0.96);
  border-bottom: 1px solid rgba(19,18,17,0.14);
  box-shadow: 0 8px 24px rgba(19,18,17,0.08);
}

.w66-sc-top label {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.w66-sc-top label span {
  color: rgba(19,18,17,0.68);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
}

.w66-sc-top select,
.w66-sc-top input {
  min-width: 0;
  height: 36px;
  border: 1px solid rgba(19,18,17,0.18);
  border-radius: 6px;
  background: #fffaf1;
  color: var(--w66-ink);
  padding: 0 10px;
  font: 600 13px/1 var(--w66-body-font);
}

.w66-sc-main {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr) 330px;
}

.w66-sc-editor {
  min-width: 0;
  overflow: auto;
  background: var(--w66-paper);
  border-right: 1px solid rgba(19,18,17,0.14);
  padding: 14px;
}

.w66-sc-editor-head {
  margin-bottom: 12px;
}

.w66-sc-editor-head h1 {
  margin: 0;
  font-family: var(--w66-display-font);
  font-size: 30px;
  font-weight: 400;
  line-height: 1.05;
}

.w66-sc-editor-head p {
  margin: 5px 0 0;
  color: rgba(19,18,17,0.68);
  font-size: 12px;
  line-height: 1.35;
}

.w66-sc-sliders {
  display: grid;
  gap: 11px;
}

.w66-sc-slider {
  border-top: 1px solid rgba(19,18,17,0.1);
  padding-top: 9px;
}

.w66-sc-export {
  width: 100%;
  min-height: 150px;
  margin-top: 14px;
  border: 1px solid rgba(19,18,17,0.12);
  border-radius: 6px;
  background: rgba(255,250,241,0.76);
  color: rgba(19,18,17,0.7);
  padding: 10px;
  font: 12px/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  resize: vertical;
}

@media (max-width: 900px) {
  .home-city-map-wrap.w66-pm {
    height: 400px;
  }

  .w66-se {
    min-height: 720px;
  }

  .w66-se-controls {
    grid-template-columns: 1fr 1fr;
  }

  .w66-se-brand {
    grid-column: 1 / -1;
  }

  .w66-se-reset {
    grid-column: 1 / -1;
  }

  .w66-se-main {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(340px, 1fr) 280px;
  }

  .w66-se-list-panel {
    border-left: 0;
    border-top: 1px solid rgba(19,18,17,0.14);
  }

  .w66-sc {
    min-height: 940px;
  }

  .w66-sc-top {
    grid-template-columns: 1fr 1fr;
  }

  .w66-sc-top .w66-se-brand,
  .w66-sc-top label:nth-of-type(3) {
    grid-column: 1 / -1;
  }

  .w66-sc-main {
    grid-template-columns: 1fr;
    grid-template-rows: 380px 320px 300px;
  }

  .w66-sc .w66-se-actions {
    left: 16px;
  }

  .w66-sc-editor {
    border-right: 0;
    border-bottom: 1px solid rgba(19,18,17,0.14);
  }
}
