.rtm-app,
.rtm-app * {
  box-sizing: border-box;
}

.rtm-app {
  --rtm-blue: #1457ff;
  --rtm-navy: #14233f;
  --rtm-muted: #657086;
  --rtm-panel: rgba(255, 255, 255, .92);
  --rtm-line: #e6eef9;
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background: linear-gradient(180deg, #f7fbff 0%, #eef7ff 100%);
  color: var(--rtm-navy);
  font-family: Inter, Manrope, "Helvetica Neue", Arial, sans-serif;
}

.rtm-topbar,
.rtm-search-panel,
.rtm-left,
.rtm-right,
.rtm-bottom,
.rtm-destinations {
  position: relative;
  z-index: 5;
}

.rtm-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 28px 12px;
}

.rtm-brand strong {
  display: block;
  color: var(--rtm-navy);
  font-size: 25px;
  font-weight: 950;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.rtm-brand span {
  display: block;
  margin-top: 3px;
  color: var(--rtm-muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.rtm-actions {
  display: flex;
  gap: 10px;
}

.rtm-actions button,
.rtm-filter-pills button,
.rtm-bottom button {
  border: 1px solid var(--rtm-line);
  border-radius: 999px;
  background: #fff;
  color: var(--rtm-navy);
  cursor: pointer;
  font-weight: 850;
}

.rtm-actions button {
  min-height: 38px;
  padding: 8px 14px;
  font-size: 13px;
}

.rtm-search-panel {
  width: min(900px, calc(100% - 520px));
  margin: 0 auto 12px;
  text-align: center;
}

.rtm-search-panel h2 {
  margin: 0 0 18px;
  color: var(--rtm-navy);
  font-size: clamp(24px, 2vw, 34px);
  font-weight: 950;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.rtm-search-row {
  display: grid;
  grid-template-columns: 1.1fr 1fr auto;
  gap: 10px;
  padding: 12px;
  border-radius: 24px;
  background: var(--rtm-panel);
  box-shadow: 0 14px 35px rgba(20, 60, 120, .12);
  backdrop-filter: blur(14px);
}

.rtm-search-row label {
  display: grid;
  gap: 4px;
  text-align: left;
}

.rtm-search-row label span {
  padding-left: 14px;
  color: var(--rtm-navy);
  font-size: 12px;
  font-weight: 900;
}

.rtm-search-row input,
.rtm-search-row select {
  width: 100%;
  min-height: 42px;
  border: 0;
  border-radius: 16px;
  background: #f4f7fb;
  color: var(--rtm-muted);
  padding: 8px 14px;
  font-weight: 750;
}

.rtm-search-button {
  align-self: end;
  min-height: 42px;
  border: 0;
  border-radius: 16px;
  background: var(--rtm-blue);
  color: #fff;
  padding: 10px 26px;
  cursor: pointer;
  font-weight: 900;
  box-shadow: 0 10px 20px rgba(20, 87, 255, .25);
}

.rtm-filter-pills {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.rtm-filter-pills button,
.rtm-bottom button {
  min-height: 36px;
  padding: 8px 15px;
  font-size: 13px;
}

.rtm-filter-pills button.is-active,
.rtm-bottom button.is-active {
  background: var(--rtm-blue);
  color: #fff;
}

.rtm-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr) 290px;
  gap: 18px;
  min-height: var(--rtm-height);
  padding: 0 18px 16px;
}

.rtm-map-wrap {
  position: relative;
  min-height: var(--rtm-height);
  overflow: hidden;
  border-radius: 22px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.6);
}

.rtm-map {
  position: absolute;
  inset: 0;
  z-index: 1;
  min-height: var(--rtm-height);
}

.rtm-map::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 401;
  pointer-events: none;
  background: radial-gradient(circle at 55% 45%, rgba(255,255,255,.05), rgba(84, 172, 255, .20));
}

.rtm-left,
.rtm-right {
  display: grid;
  align-content: start;
  gap: 16px;
}

.rtm-stat-card,
.rtm-top-list,
.rtm-legend,
.rtm-surprise,
.rtm-bottom,
.rtm-destinations {
  border: 1px solid var(--rtm-line);
  border-radius: 18px;
  background: var(--rtm-panel);
  box-shadow: 0 14px 35px rgba(20, 60, 120, .10);
  backdrop-filter: blur(14px);
}

.rtm-stat-card,
.rtm-top-list,
.rtm-legend,
.rtm-surprise {
  padding: 18px;
}

.rtm-live {
  float: right;
  color: #2bb95d;
  font-size: 11px;
  font-weight: 950;
}

.rtm-stat-card h3,
.rtm-top-list h3 {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 950;
  text-transform: uppercase;
}

.rtm-stat-card div:not(:first-child) {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 8px;
  align-items: baseline;
  margin-top: 12px;
}

.rtm-stat-card strong {
  color: var(--rtm-navy);
  font-size: 21px;
  font-weight: 950;
}

.rtm-stat-card span,
.rtm-ranking span,
.rtm-surprise span {
  color: var(--rtm-muted);
  font-size: 13px;
  font-weight: 700;
}

.rtm-legend span {
  display: block;
  height: 16px;
  margin: 12px 0 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, #5ddf89, #ffd43b, #ff3d5e);
}

.rtm-legend div {
  display: flex;
  justify-content: space-between;
  color: var(--rtm-muted);
  font-weight: 800;
}

.rtm-ranking {
  display: grid;
  gap: 11px;
}

.rtm-rank-item {
  display: grid;
  grid-template-columns: 26px 58px 1fr;
  gap: 10px;
  align-items: center;
  color: inherit;
  text-decoration: none;
}

.rtm-rank-number {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  background: #ffbd21;
  color: #fff;
  font-size: 12px;
  font-weight: 950;
}

.rtm-rank-item img,
.rtm-rank-image,
.rtm-destination-card img,
.rtm-destination-image {
  display: block;
  width: 100%;
  height: 46px;
  object-fit: cover;
  border-radius: 8px;
  background: #d8e5f4;
}

.rtm-image-placeholder {
  background: linear-gradient(135deg, #cddceb, #aebfd1);
}

.rtm-rank-item strong {
  display: block;
  font-size: 14px;
  font-weight: 950;
}

.rtm-top-list a {
  display: inline-flex;
  margin-top: 14px;
  color: var(--rtm-blue);
  font-weight: 900;
  text-decoration: none;
}

.rtm-surprise {
  min-height: 140px;
  background: linear-gradient(135deg, #071934, #1457ff);
  color: #fff;
}

.rtm-surprise strong,
.rtm-surprise span {
  display: block;
  color: #fff;
}

.rtm-surprise button,
.rtm-reset {
  border: 0;
  border-radius: 999px;
  background: var(--rtm-blue);
  color: #fff;
  cursor: pointer;
  font-weight: 900;
}

.rtm-surprise button {
  margin-top: 18px;
  padding: 10px 22px;
}

.rtm-reset {
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 500;
  min-height: 38px;
  padding: 9px 16px;
  background: #fff;
  color: var(--rtm-navy);
  box-shadow: 0 10px 24px rgba(20,60,120,.16);
}

.rtm-marker {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border: 3px solid rgba(255,255,255,.85);
  border-radius: 50%;
  color: #fff;
  font-size: 17px;
  font-weight: 950;
  box-shadow: 0 0 0 10px rgba(20, 87, 255, .18), 0 10px 26px rgba(16,36,70,.22);
}

.rtm-marker.hotel { background: #3474ff; }
.rtm-marker.food { background: #ff9f1a; }
.rtm-marker.activity { background: #ff4d67; }
.rtm-marker.wellness { background: #8f62ff; }
.rtm-marker.product { background: #33b866; }

.rtm-popup {
  width: 220px;
}

.rtm-popup img,
.rtm-popup-image {
  display: block;
  width: 100%;
  height: 96px;
  object-fit: cover;
  border-radius: 12px;
  background: #dce7f4;
}

.rtm-popup strong {
  display: block;
  margin: 10px 0 6px;
  color: var(--rtm-navy);
  font-size: 16px;
  font-weight: 950;
}

.rtm-popup p {
  margin: 0 0 10px;
  color: var(--rtm-muted);
  font-size: 13px;
  font-weight: 700;
}

.rtm-popup em {
  display: inline-flex;
  margin: 0 0 10px;
  border-radius: 999px;
  background: #eaf8ec;
  color: #24a747;
  padding: 6px 10px;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.rtm-popup a {
  display: inline-flex;
  width: 100%;
  justify-content: center;
  border-radius: 999px;
  background: var(--rtm-blue);
  color: #fff;
  padding: 10px 14px;
  text-decoration: none;
  font-weight: 900;
}

.rtm-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin: 0 18px 16px;
  padding: 18px;
}

.rtm-bottom strong,
.rtm-destinations strong {
  display: block;
  margin-bottom: 12px;
  font-size: 14px;
  font-weight: 950;
  text-transform: uppercase;
}

.rtm-destinations {
  margin: 0 18px 20px;
  padding: 18px;
}

.rtm-destination-list {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.rtm-destination-card {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  min-height: 92px;
  background: #173354;
}

.rtm-destination-card img,
.rtm-destination-image {
  height: 92px;
  opacity: .78;
}

.rtm-destination-card span {
  position: absolute;
  left: 10px;
  bottom: 9px;
  color: #fff;
  font-size: 13px;
  font-weight: 950;
  text-shadow: 0 2px 8px rgba(0,0,0,.35);
}

@media (max-width: 1200px) {
  .rtm-search-panel {
    width: calc(100% - 36px);
  }

  .rtm-layout {
    grid-template-columns: 1fr;
  }

  .rtm-left,
  .rtm-right {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .rtm-topbar,
  .rtm-actions,
  .rtm-search-row,
  .rtm-left,
  .rtm-right,
  .rtm-bottom {
    grid-template-columns: 1fr;
  }

  .rtm-topbar {
    display: grid;
  }

  .rtm-layout {
    padding: 0 12px 12px;
  }

  .rtm-map-wrap,
  .rtm-map {
    min-height: 520px;
  }

  .rtm-destination-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
