.thh-wrap {
  --thh-primary: #392d69;
  --thh-bg: #f8fafc;
  --thh-ink: #0f172a;
  --thh-muted: #475569;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 1rem;
  border-radius: 20px;
  color: var(--thh-ink);
  background:
    radial-gradient(circle at 0% 0%, rgba(57, 45, 105, 0.2) 0%, rgba(255, 255, 255, 0) 35%),
    radial-gradient(circle at 100% 100%, rgba(83, 66, 150, 0.22) 0%, rgba(255, 255, 255, 0) 33%),
    var(--thh-bg);
  box-shadow: 0 16px 40px rgba(2, 6, 23, 0.1);
}

.thh-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1fr) 320px;
}

.thh-map-card,
.thh-modal-card {
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.thh-sidebar {
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  padding: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  max-height: 72vh;
}

.thh-sidebar-title {
  margin: 0;
  font-size: 1rem;
  color: #1f1a33;
}

.thh-city-list {
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding-right: 0.2rem;
}

.thh-city-item {
  border: 1px solid rgba(57, 45, 105, 0.18);
  background: #ffffff;
  border-radius: 10px;
  overflow: visible;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.thh-city-item:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 16px rgba(57, 45, 105, 0.12);
}

.thh-city-item.is-active {
  border-color: #392d69;
}

.thh-city-item-button {
  width: 100%;
  border: 0;
  background: transparent;
  color: #2a2345;
  padding: 0.52rem 0.62rem;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  text-align: left;
}

.thh-city-item-text {
  display: inline-block;
}

.thh-city-item-chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: rgba(57, 45, 105, 0.12);
  color: #392d69;
  flex-shrink: 0;
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.thh-city-item-panel {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  padding: 0 0.62rem;
  transition: max-height 0.25s ease, opacity 0.2s ease, padding 0.2s ease;
}

.thh-city-item-panel p {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.5;
  color: #4b5563;
}

.thh-city-item.is-active .thh-city-item-button {
  background: #392d69;
  color: #ffffff;
}

.thh-city-item.is-active .thh-city-item-chevron {
  transform: rotate(180deg);
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.thh-city-item-panel.is-open {
  max-height: 220px;
  opacity: 1;
  padding: 0.52rem 0.62rem 0.65rem;
}

.thh-map-card {
  padding: 0.65rem;
}

.thh-map {
  min-height: 72vh;
  position: relative;
}

.thh-map svg {
  width: 100%;
  height: auto;
  display: block;
}

.thh-map #points,
.thh-map #label_points {
  display: none;
}

.thh-marker-layer {
  position: absolute;
  inset: auto;
  pointer-events: none;
}

.thh-map-marker {
  position: absolute;
  transform: translate(-50%, -95%);
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 22px;
  line-height: 1;
  border-radius: 999px;
  background: rgba(57, 45, 105, 0.35);
  box-shadow:
    0 6px 18px rgba(57, 45, 105, 0.5),
    0 0 0 2px rgba(255, 255, 255, 0.3);
  filter: drop-shadow(0 5px 14px rgba(57, 45, 105, 0.4));
  animation: thh-marker-float 2.1s ease-in-out infinite;
}

.thh-city-name-label {
  position: absolute;
  transform: translate(-50%, 8px);
  background: rgba(255, 255, 255, 0.92);
  color: #1f1a33;
  border: 1px solid rgba(57, 45, 105, 0.22);
  border-radius: 999px;
  padding: 1px 7px;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.12);
  display: none;
  pointer-events: auto;
  cursor: default;
  transform-origin: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
  animation: thh-label-breathe 3s ease-in-out infinite;
}

.thh-city-name-label:hover {
  transform: translate(-50%, 6px) scale(1.14);
  box-shadow: 0 10px 20px rgba(57, 45, 105, 0.22);
  background: rgba(255, 255, 255, 0.98);
}

@keyframes thh-marker-float {
  0% { transform: translate(-50%, -95%); }
  45% { transform: translate(-50%, -106%); }
  55% { transform: translate(-50%, -102%); }
  100% { transform: translate(-50%, -95%); }
}

@keyframes thh-label-breathe {
  0% { transform: translate(-50%, 8px) scale(1); }
  50% { transform: translate(-50%, 7px) scale(1.03); }
  100% { transform: translate(-50%, 8px) scale(1); }
}

.thh-modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 99999;
}

.thh-modal.is-open {
  display: block;
}

.thh-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.56);
  backdrop-filter: blur(4px);
}

.thh-modal-card {
  position: relative;
  width: min(680px, calc(100vw - 2rem));
  margin: 8vh auto 0;
  padding: 1.25rem 1.2rem 1.2rem;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.94));
  border: 1px solid rgba(148, 163, 184, 0.32);
  box-shadow:
    0 24px 60px rgba(15, 23, 42, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.thh-modal-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0 2rem 0.75rem 0;
}

.thh-modal-icon {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: linear-gradient(135deg, #392d69, #5a4799);
  box-shadow: 0 8px 20px rgba(57, 45, 105, 0.35);
  flex-shrink: 0;
}

.thh-modal-card h3 {
  margin: 0;
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  line-height: 1.25;
  color: #0f172a;
}

.thh-modal-card p {
  margin: 0;
  color: var(--thh-muted);
  line-height: 1.7;
  font-size: 1rem;
}

.thh-modal-close {
  position: absolute;
  right: 0.7rem;
  top: 0.65rem;
  width: 36px;
  height: 36px;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffffff, #f1f5f9);
  color: #0f172a;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.thh-modal-close:hover {
  transform: scale(1.04);
  background: #f1f5f9;
}

.thh-modal-close:active {
  transform: scale(0.98);
}

.thh-modal-close:focus-visible {
  outline: 2px solid #392d69;
  outline-offset: 2px;
}

body.thh-modal-open {
  overflow: hidden;
}

/* Trial backlink gizleme */
.thh-wrap a[href*="simplemaps"] {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

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

  .thh-map {
    min-height: 62vh;
  }

  .thh-sidebar {
    max-height: none;
  }

  .thh-modal-card {
    margin-top: 10vh;
  }
}
