:root {
  color-scheme: light;
  font-family: "Poppins", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  --blue: #2860b5;
  --ink: #111827;
  --whatsapp: #079a72;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--blue);
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background: var(--blue);
  color: var(--ink);
  font-family: "Poppins", sans-serif;
}

.maintenance-page {
  position: relative;
  z-index: 1;
  width: min(100%, 1440px);
  height: 900px;
  margin: 0 auto;
  overflow: hidden;
  background: transparent;
}

.store-message {
  position: static;
}

.brand-logo {
  position: absolute;
  top: 60px;
  left: 70px;
  display: block;
  width: 340px;
  height: 115px;
}

.brand-logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.store-message h1 {
  position: absolute;
  left: 70px;
  margin: 0;
  color: var(--ink);
  font-size: 54px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.5;
}

.desktop-title {
  top: 230px;
}

.mobile-title {
  display: none;
}

.store-description {
  position: absolute;
  top: 410px;
  left: 70px;
  margin: 0;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.5;
}

.whatsapp-button {
  position: absolute;
  top: 545px;
  left: 70px;
  display: flex;
  width: 290px;
  height: 56px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border-radius: 999px;
  background: var(--whatsapp);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
}

.whatsapp-icon {
  display: block;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
}

.location {
  position: static;
}

.map-image {
  position: absolute;
  top: 75px;
  left: 720px;
  display: block;
  width: 640px;
  height: 550px;
  overflow: hidden;
  border-radius: 28px;
  background: #fffdf8;
}

.map-canvas {
  position: absolute;
  inset: 0;
}

.map-fallback {
  position: absolute;
  z-index: 1;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
  padding: 36px;
  background: #fffdf8;
}

.map-fallback[hidden] {
  display: none;
}

.map-fallback-title {
  margin: 0 0 2px;
  font-size: 18px;
  font-weight: 700;
}

.map-fallback-place {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
}

.map-fallback-place > span:last-child {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.map-fallback-place strong {
  font-size: 15px;
}

.map-fallback-place small {
  font-size: 13px;
}

.map-fallback-marker {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  place-items: center;
  border: 2px solid #fffdf8;
  border-radius: 50%;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
}

.map-fallback-marker--store {
  background: #e74843;
}

.map-fallback-marker--parking {
  background: #109a90;
}

.map-fallback-note {
  margin: 8px 0 0;
  color: #4b5563;
  font-size: 12px;
  line-height: 1.5;
}

.mapboxgl-map {
  font-family: "Poppins", sans-serif;
}

.mapboxgl-canvas {
  outline: none;
}

.map-marker {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.map-marker:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.map-marker-icon {
  display: block;
  width: 40px;
  height: 50px;
  flex: 0 0 40px;
  overflow: visible;
}

.map-marker-label {
  display: flex;
  max-width: 165px;
  flex-direction: column;
  gap: 1px;
  padding: 4px 7px;
  border: 1px solid #d5d8dc;
  border-radius: 5px;
  background: #fffdf8;
  color: var(--ink);
  font-size: 11px;
  line-height: 1.3;
  white-space: normal;
}

.map-marker-label strong {
  font-size: 12px;
}

.mapboxgl-popup-content {
  padding: 10px 12px;
  border-radius: 5px;
  color: var(--ink);
  font-family: "Poppins", sans-serif;
  font-size: 13px;
}

.map-popup-title {
  display: block;
  margin-bottom: 2px;
  font-weight: 700;
}

.parking-note {
  position: absolute;
  top: 730px;
  left: 720px;
  width: 640px;
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
}

.directions {
  position: absolute;
  top: 650px;
  left: 720px;
  display: flex;
  width: 640px;
  justify-content: center;
  gap: 30px;
}

.directions a {
  display: flex;
  width: 220px;
  height: 56px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
}

.decoration {
  position: fixed;
  z-index: 0;
  display: block;
  pointer-events: none;
}

.decoration-yellow {
  bottom: 0;
  left: 0;
  width: 180px;
  height: 180px;
}

.decoration-teal {
  bottom: 0;
  left: 160px;
  width: 120px;
  height: 120px;
}

@media (min-width: 701px) and (max-width: 1359px) {
  .maintenance-page {
    display: flex;
    height: auto;
    min-height: 100vh;
    flex-direction: column;
    align-items: center;
    gap: 36px;
    overflow: hidden;
    padding: 40px 32px 64px;
  }

  .store-message,
  .location {
    position: relative;
    width: min(100%, 640px);
  }

  .store-message {
    min-height: 530px;
  }

  .brand-logo,
  .store-message h1,
  .store-description,
  .whatsapp-button,
  .map-image,
  .parking-note,
  .directions {
    left: 0;
  }

  .brand-logo { top: 0; }
  .brand-logo { width: 340px; height: 115px; }
  .store-message h1 { font-size: clamp(40px, 5vw, 54px); }
  .desktop-title { top: 170px; }
  .store-description { top: 300px; }
  .whatsapp-button { top: 430px; }

  .location { min-height: 690px; }
  .map-image {
    top: 0;
    width: 100%;
    height: auto;
    aspect-ratio: 640 / 550;
    border-radius: 28px;
  }
  .directions {
    top: calc(min(100vw - 64px, 640px) * 0.859375 + 20px);
    width: 100%;
    justify-content: center;
    gap: 20px;
  }
  .parking-note { top: calc(min(100vw - 64px, 640px) * 0.859375 + 96px); left: 0; width: 100%; text-align: center; }
  .directions a { width: min(220px, calc((100vw - 84px) / 2)); }
}

@media (max-width: 900px) {
  .maintenance-page {
    display: block;
    width: min(100%, 390px);
    height: 844px;
    min-height: 844px;
    overflow: hidden;
    padding: 0;
  }

  .store-message,
  .location {
    position: static;
    width: auto;
    min-height: 0;
  }

  .brand-logo {
    top: 32px;
    left: 50%;
    width: 250px;
    height: 98px;
    transform: translateX(-50%);
  }

  .desktop-title,
  .store-description {
    display: none;
  }

  .store-message h1.mobile-title {
    top: 145px;
    left: 28px;
    display: block;
    font-size: 34px;
    line-height: 1.5;
    white-space: nowrap;
  }

  .whatsapp-button {
    top: 250px;
    left: 28px;
    width: calc(100% - 56px);
    height: 56px;
  }

  .map-image {
    top: 330px;
    left: 28px;
    width: calc(100% - 56px);
    height: 330px;
    border-radius: 18px;
  }

  .map-fallback {
    gap: 14px;
    padding: 20px;
  }

  .map-fallback-title {
    font-size: 16px;
  }

  .map-fallback-place {
    gap: 9px;
  }

  .map-fallback-place strong {
    font-size: 13px;
  }

  .map-fallback-place small {
    font-size: 12px;
  }

  .map-fallback-note {
    margin-top: 1px;
    font-size: 11px;
  }

  .map-marker {
    gap: 4px;
  }

  .map-marker-icon {
    width: 34px;
    height: 43px;
    flex-basis: 34px;
  }

  .map-marker-label {
    max-width: 126px;
    padding: 3px 5px;
    font-size: 10px;
  }

  .map-marker-label strong {
    font-size: 11px;
  }

  .directions {
    top: 688px;
    left: 28px;
    width: calc(100% - 56px);
    justify-content: center;
    gap: 18px;
  }

  .directions a {
    width: calc((100% - 18px) / 2);
    height: 52px;
    gap: 10px;
  }

  .parking-note {
    top: 760px;
    left: 28px;
    width: calc(100% - 56px);
    font-size: 16px;
    line-height: 1.5;
    text-align: center;
  }
}

@media (max-width: 360px) {
  .store-message h1.mobile-title {
    font-size: clamp(27px, 8.7vw, 34px);
  }

  .directions a {
    gap: 6px;
    font-size: 14px;
  }
}
