/* ── Community Map Widget (OpenStreetMap / Leaflet) ──────────────────────── */
.ccm-map-wrap {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,0.1);
}
.ccm-map {
  width: 100%;
  min-height: 300px;
  z-index: 0;
}
/* Leaflet popup tweaks */
.leaflet-popup-content-wrapper {
  border-radius: 10px !important;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15) !important;
  padding: 0 !important;
  overflow: hidden;
}
.leaflet-popup-content {
  margin: 12px !important;
}
.leaflet-popup-tip { background: #fff !important; }

/* ── Things To Do Widget ─────────────────────────────────────────────────── */
.ttd-wrap {
  background: #1e1b4b;
  border-radius: 16px;
  padding: 48px;
}
.ttd-layout {
  display: flex;
  gap: 48px;
  align-items: flex-start;
}
.ttd-left { flex: 0 0 360px; min-width: 0; }
.ttd-right { flex: 1; min-width: 0; }

.ttd-label {
  font-size: 12px;
  font-weight: 700;
  color: #7c6af7;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}
.ttd-title {
  font-size: 32px;
  font-weight: 800;
  color: #fff;
  margin: 0 0 28px;
  line-height: 1.15;
}
.ttd-cards { display: flex; flex-direction: column; gap: 12px; }
.ttd-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  transition: background 0.2s;
  cursor: default;
}
.ttd-card:hover { background: rgba(255,255,255,0.12); }
.ttd-card__icon {
  font-size: 24px;
  line-height: 1;
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.08);
  border-radius: 10px;
}
.ttd-card__content { flex: 1; min-width: 0; }
.ttd-card__name {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ttd-card__meta {
  font-size: 12px;
  color: rgba(255,255,255,0.55);
}
.ttd-map {
  border-radius: 16px;
  overflow: hidden;
  min-height: 300px;
}
.ttd-loading {
  color: rgba(255,255,255,0.6);
  font-size: 13px;
  padding: 16px 0;
}
.ccm-dots::after {
  content: '...';
  animation: ccm-dots 1.2s steps(4,end) infinite;
}
@keyframes ccm-dots {
  0%,20%  { content: ''; }
  40%     { content: '.'; }
  60%     { content: '..'; }
  80%,100%{ content: '...'; }
}

@media (max-width: 900px) {
  .ttd-layout { flex-direction: column; gap: 32px; }
  .ttd-left { flex: none; width: 100%; }
  .ttd-wrap { padding: 28px 20px; }
  .ttd-title { font-size: 24px; }
}

/* ── TTD card click arrow ─────────────────────────────────────────────────── */
.ttd-clickable { cursor: pointer; }
.ttd-card__arr {
  font-size: 22px;
  color: rgba(255,255,255,0.3);
  flex-shrink: 0;
  line-height: 1;
  transition: transform 0.2s, color 0.2s;
}

/* ── Things To Do: map-only mode ─────────────────────────────────────────── */
.ttd-layout--map-only {
  display: block !important;
}
.ttd-right--full {
  flex: none !important;
  width: 100% !important;
}
.ttd-right--full .ttd-map {
  border-radius: 16px;
  overflow: hidden;
}
