/*-----------------  VARIABLES  -----------------*/
.main-wrapper {
  margin: 95px auto 0;
  position: relative;
  max-width: 1400px; }
  @media screen and (orientation: portrait) {
    .main-wrapper {
      margin: 50px auto 0; } }
  @media screen and (orientation: landscape) and (max-width: 950px) {
    .main-wrapper {
      margin: 80px auto 0; } }

.map-loader {
  position: absolute;
  /* cover only the map-container */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #0f0f0f;
  z-index: 9999;
  pointer-events: all; }

.map-loader-spinner {
  position: fixed;
  /* center relative to viewport */
  top: 70%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 1s ease-in-out infinite;
  pointer-events: none; }

@keyframes spin {
  0% {
    transform: translate(-50%, -50%) rotate(0deg); }
  100% {
    transform: translate(-50%, -50%) rotate(360deg); } }

.map-container {
  cursor: grab;
  min-height: 70vh; }
  .map-container.dragging {
    cursor: grabbing; }
  @media screen and (orientation: portrait) {
    .map-container {
      margin-top: -20vh;
      display: flex;
      position: relative; } }
  body.desktop-device .map-container {
    height: 70vh;
    overflow: hidden;
    margin: 5px 0;
    max-width: 1400px; }
  .map-container .map {
    width: 100%;
    max-width: 1400px;
    aspect-ratio: 1 / 2.5;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    overflow-x: hidden; }
    body.mobile-device .map-container .map {
      width: 100vw;
      height: 376vw;
      background-size: cover;
      background-position: center;
      background-repeat: no-repeat;
      position: relative;
      overflow-x: hidden; }
      body.mobile-device .map-container .map::before {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(to bottom, #0f0f0f 0%, transparent 1%, transparent 99%, #0f0f0f 100%);
        z-index: 1;
        pointer-events: none; }

[class^="level-"] {
  width: 15vw;
  height: 15vw;
  /* background set dynamically via JavaScript */
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold; }
  [class^="level-"] .level-tag {
    position: absolute;
    bottom: -2em;
    /* place just below the circle */
    left: 50%;
    transform: translateX(-50%);
    background: #b59b44;
    color: #000;
    font-size: 12px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 14px;
    white-space: nowrap;
    pointer-events: none;
    height: 10px;
    width: 40px; }
  body.desktop-device [class^="level-"] {
    width: 10vw;
    max-width: 140px;
    height: 10vw;
    max-height: 140px; }
    body.desktop-device [class^="level-"] .level-tag {
      width: 70px;
      height: 20px;
      font-size: 14px;
      border-radius: 18px; }

.main-wrapper.loading .map-container .map {
  background-color: #000;
  z-index: 1; }

.main-wrapper.loading .map-container .map [class^="level-"] {
  visibility: hidden;
  opacity: 0;
  pointer-events: none; }

.map-container .map [class^="level-"] {
  visibility: hidden;
  opacity: 0; }

.main-wrapper.loaded .map-container .map [class^="level-"] {
  visibility: visible;
  opacity: 1;
  pointer-events: auto; }

.map-content {
  z-index: 100;
  background: rgba(15, 15, 15, 0.81);
  border-radius: 10px;
  margin: 0 5px;
  position: relative; }

body.mobile-device.logged-in .map-content {
  top: 40px; }

body.mobile-device.logged-in .map-content {
  top: 40px; }

.map-content-title {
  font-size: 30px;
  font-weight: 800;
  color: #ffcc42; }

.map-content-body {
  padding: 0 !important;
  max-width: 1000px; }

.cta-main {
  display: flex;
  flex-direction: column;
  text-align: center;
  margin: 0 10px 10px 10px !important;
  max-width: 200px; }

.map_body {
  padding: 0;
  border-bottom: solid 1px #ffcc42;
  margin: 0 15px 15px; }
  .map_body .btn-container {
    display: flex; }
    @media screen and (orientation: portrait) {
      .map_body .btn-container {
        flex-wrap: wrap; } }

h1 {
  padding: 0 8px; }

@media screen and (orientation: portrait) {
  .map-content.sticky {
    position: sticky;
    top: 60px; }
    body.logged-in .map-content.sticky {
      top: 135px !important; } }

@media screen and (orientation: portrait) {
  .mobile-progress.sticky {
    position: sticky;
    top: 80px;
    z-index: 101; } }

.map_sigterms {
  padding: 0 20px;
  font-size: 10px;
  line-height: 1.1;
  max-width: 800px; }
  .map_sigterms a {
    color: #ffcc42;
    text-decoration: underline; }

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000; }

.modal-level {
  background: #000;
  padding: 22px 18px 26px 18px;
  max-width: 300px;
  width: 95%;
  border-radius: 6px;
  position: relative;
  color: #fff;
  font-family: inherit;
  text-align: center;
  display: block;
  border: 1px solid #ffcc42; }
  @media screen and (orientation: landscape) and (max-width: 950px) {
    .modal-level {
      scale: 0.8; } }

.modal-level-title {
  font-size: 14px;
  margin: 0 0 10px 0; }

.modal-level-description {
  font-size: 16px;
  margin: 0 0 10px 0;
  font-weight: 700;
  color: #ffcc42; }

.modal-level-image-container {
  position: relative;
  position: relative; }
  .modal-level-image-container::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 70%;
    height: 116%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.4) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 0; }
  .modal-level-image-container .modal-level-image {
    width: 150px;
    height: 150px;
    object-fit: contain;
    margin: 12px auto 0px auto;
    display: block;
    position: relative;
    z-index: 1;
    overflow: hidden;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat; }
    .modal-level-image-container .modal-level-image::after {
      top: 55%; }

.level-locked {
  filter: grayscale(100%) opacity(0.8); }
  .level-locked::after {
    content: '';
    position: absolute;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -65%);
    width: 40%;
    height: 40%;
    pointer-events: none;
    -webkit-mask: url("/images/smartico-map/level-locked.svg") center/contain no-repeat;
    mask: url("/images/smartico-map/level-locked.svg") center/contain no-repeat;
    background-color: #ffffff; }

.progress-wrapper {
  width: 100%; }

.progress-status-icon {
  width: 25px;
  height: 25px;
  display: inline-block;
  background-color: currentColor;
  mask: url("/images/smartico-map/level-progress-icon.svg") center/contain no-repeat;
  -webkit-mask: url("/images/smartico-map/level-progress-icon.svg") center/contain no-repeat;
  margin-left: auto; }
  .progress-status-icon.completed {
    background-color: #19fa00; }
  .progress-status-icon.incomplete {
    background-color: #858585; }

.progress-bar-text {
  margin-left: auto;
  display: flex;
  font-size: 11px;
  color: #000;
  font-weight: 800;
  padding: 5px;
  align-items: center; }

.mobile-progress {
  display: none;
  padding: 0 10px 10px;
  height: 42px;
  background: #3b3b3b; }

/* Floating progress badge shown only on desktop */
.desktop-progress {
  display: none;
  /* hidden by default */ }

body.desktop-device .map-container .desktop-progress {
  position: absolute;
  z-index: 1;
  right: 20px;
  background: #c9c9c9;
  padding: 8px 12px 10px 12px;
  border-radius: 10px;
  width: 400px;
  margin-top: 20px;
  color: black;
  height: 60px;
  font-weight: 800; }

.desktop-guide-container {
  display: none;
  /* hidden by default */ }

body.desktop-device .map-container .desktop-guide-container {
  position: absolute;
  z-index: 1;
  left: 20px;
  padding: 0px 10px 0px 10px;
  border-radius: 10px;
  width: 400px;
  margin-top: 20px;
  color: #ffffff;
  height: 60px;
  font-weight: 800;
  font-size: 20px;
  width: 270px;
  display: flex;
  backdrop-filter: blur(3px); }

body.desktop-device .map-container .desktop-guide-image {
  background-image: url("/images/smartico-map/desktop-guide-image.png");
  width: 70px;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  animation: swipe-hand 1s linear infinite; }

@keyframes swipe-hand {
  0% {
    transform: translateY(-7px); }
  50% {
    transform: translateY(2px); }
  100% {
    transform: translateY(-7px); } }

.mobile-progress-description {
  display: flex;
  padding: 0px 10px 5px 10px;
  font-size: 14px;
  align-items: end;
  justify-content: space-between;
  font-weight: 600; }

.progress-description {
  font-size: 12px;
  display: flex;
  justify-content: space-between;
  padding: 0px 10px 5px 10px;
  margin: 0;
  font-size: 14px;
  align-items: center; }

.progress-description-left, .mobile-progress-description-left {
  text-align: left; }

.progress-description-right, .mobile-progress-description-right {
  text-align: right; }

.progress-bar-image {
  width: 27px;
  height: 27px;
  background-size: contain;
  background-position: center center;
  background-repeat: no-repeat;
  display: flex;
  right: 0;
  position: relative;
  align-self: center; }
  body.mobile-device .progress-bar-image {
    width: 15px;
    height: 15px; }

.progress-label, .mobile-progress-label {
  background: #c99a00;
  color: #000;
  font-size: 12px;
  padding: 2px 8px;
  border-top-left-radius: 5px;
  border-bottom-left-radius: 5px;
  display: inline-block;
  vertical-align: middle; }

.progress-bar-container, .mobile-progress-bar-container {
  display: flex;
  vertical-align: middle;
  height: 22px;
  overflow: hidden;
  border: 5px solid #5a5a5a;
  background: #5a5a5a;
  border-radius: 15px;
  justify-content: space-between; }

.mobile-progress-bar-container {
  height: 15px;
  border: 3px solid #5a5a5a;
  width: calc(100% - 5px); }

.progress-bar, .mobile-progress-bar {
  display: flex;
  height: 100%;
  border-radius: 20px;
  background-color: #facd00;
  position: relative;
  overflow: hidden; }
  .progress-bar.reached, .mobile-progress-bar.reached {
    background-color: #19fa00; }

.progress-bar:after, .mobile-progress-bar:after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background-image: linear-gradient(-45deg, rgba(255, 255, 255, 0.2) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.2) 50%, rgba(255, 255, 255, 0.2) 75%, transparent 75%, transparent);
  z-index: 1;
  background-size: 50px 50px;
  animation: move 2s linear infinite;
  border-top-right-radius: 8px;
  border-bottom-right-radius: 8px;
  border-top-left-radius: 20px;
  border-bottom-left-radius: 20px;
  overflow: hidden; }

@keyframes move {
  0% {
    background-position: 0 0; }
  100% {
    background-position: 50px 50px; } }

.custom-data {
  font-size: 14px;
  text-align: left;
  width: calc(100% - 20px);
  place-self: center; }

.custom-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px; }

.custom-row img {
  width: 18px;
  height: 18px; }

.modal-close {
  position: absolute;
  top: 6px;
  right: 8px;
  background: none;
  border: none;
  font-size: 25px;
  line-height: 1;
  color: #FFF;
  cursor: pointer; }

.map-read-more {
  padding: 10px 0 5px 0;
  text-align: center; }

.read-more-toggle {
  display: none; }
  body.mobile-device .read-more-toggle {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 13px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px; }

.read-more-toggle .icon {
  margin-top: 4px; }

.read-more-toggle .arrow {
  fill: none;
  stroke: #ffffff;
  stroke-width: 12;
  stroke-linecap: round;
  stroke-linejoin: round; }

.read-more-toggle.expanded .icon {
  transform: rotate(180deg); }

.map-content-more {
  font-size: 14px;
  line-height: 1.4;
  padding: 25px 4vw 4vw 4vw; }
  .map-content-more ol {
    list-style-type: disc; }
  .map-content-more b {
    font-weight: 600; }
  .map-content-more .cta-main {
    place-self: center; }

.map-content-more-title {
  font-size: 20px;
  font-weight: 600;
  color: #ffcc42; }
  body.desktop-device .map-content-more-title {
    font-size: 25px; }

.map-badges-table {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin: 20px 20px;
  justify-items: center; }
  body.desktop-device .map-badges-table {
    width: 650px;
    margin: auto; }

.map-badges-table img {
  width: 12vw;
  height: 12vw;
  object-fit: contain; }
  body.desktop-device .map-badges-table img {
    width: 90px;
    height: 90px; }

.full-terms-map {
  color: var(--textColorDark);
  padding: 20px;
  border-radius: 10px;
  font-size: 14px;
  background: #161616;
  margin: 10px; }
  .full-terms-map .full-terms-map-title {
    font-size: 20px;
    font-weight: 600; }
  .full-terms-map a {
    color: #ffcc42;
    text-decoration: underline; }
  .full-terms-map li {
    font-size: 14px;
    line-height: 1.5; }

.custom-icon {
  width: 18px;
  height: 18px;
  display: inline-block;
  background-color: currentColor; }

.custom-icon.unlocked {
  color: #ffcc42;
  /* golden yellow */ }

.custom-icon.locked {
  color: #858585;
  /* muted grey */ }

/* === Close button for sticky map-content === */
.map-content-close {
  display: none;
  position: absolute;
  top: 8px;
  right: 8px;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  z-index: 101; }

/* hide when JS adds .hidden */
.map-content-close.hidden {
  display: none !important; }

@media screen and (orientation: portrait) {
  .map-content.sticky .map-content-close {
    display: block; } }
