@import url(reset.css);

.roboto-mono-regular {
  font-family: "Roboto Mono", monospace;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
}

.custom-marker {
  font-size: 28px;
  background: rgb(252, 221, 234);
  border: 2px solid rgb(255, 91, 147);
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.custom-marker span {
  transform: rotate(45deg);
}
/* pixel icons */
.pixel--globe-americas-solid {
  display: inline-block;
  width: 20px;
  height: 20px;
  --svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M22 9V7h-1V5h-1V4h-1V3h-2V2h-2V1H9v1H7v1H5v1H4v1H3v2H2v2H1v6h1v2h1v2h1v1h1v1h2v1h2v1h6v-1h2v-1h2v-1h1v-1h1v-2h1v-2h1V9zm-4 3V9h1V8h1v1h1v4h-2v-1zm-4 7v2h-2v-3h-1v-1h-1v-3H9v-1H8v-1H7v-1H6v-1H5V9H4V7h1V6h1V5h1V4h3V3h2v1h1v4h-2v2h1v1h-2v-1H8v2h3v1h4v1h1v3h-1v2z'/%3E%3C/svg%3E");
  background-color: currentColor;
  -webkit-mask-image: var(--svg);
  mask-image: var(--svg);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
}

.pixel--heart-solid {
  display: inline-block;
  width: 20px;
  height: 20px;
  --svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M23 6v5h-1v1h-1v1h-1v1h-1v1h-1v1h-1v1h-1v1h-1v1h-1v1h-1v1h-2v-1h-1v-1H9v-1H8v-1H7v-1H6v-1H5v-1H4v-1H3v-1H2v-1H1V6h1V5h1V4h1V3h6v1h1v1h2V4h1V3h6v1h1v1h1v1z'/%3E%3C/svg%3E");
  background-color: currentColor;
  -webkit-mask-image: var(--svg);
  mask-image: var(--svg);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
}

html {
  background: radial-gradient(75deg, rgba(255, 115, 173, 0.85) 0%, rgba(255, 254, 254, 0.85) 100%);
}

body {
  font-family: "Roboto Mono", monospace;
  background: radial-gradient(ellipse at center, rgba(255, 170, 206, 0.85) 0%, rgba(255, 254, 254, 0.85) 100%);
  padding: 0;
  margin: 0;
}
/* auth pages (signup + login) */
  
  
#auth-section {
        min-height: calc(100vh - 85px);
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 40px 20px;
      }

      .auth-card {
        background: whitesmoke;
        border: 2px solid rgb(255, 91, 147);
        border-radius: 20px;
        padding: 48px 40px 36px;
        width: 100%;
        max-width: 420px;
        display: flex;
        flex-direction: column;
        gap: 28px;
        box-shadow: 0 8px 40px rgba(255, 91, 147, 0.10);
      }

      .auth-card h2 {
        font-family: "Roboto Mono", monospace;
        font-size: 26px;
        color: rgb(255, 91, 147);
        text-align: center;
        padding: 0;
        margin: 0;
      }

      .auth-field {
        display: flex;
        flex-direction: column;
        gap: 6px;
      }

      .auth-field label {
        font-family: "Roboto Mono", monospace;
        font-size: 13px;
        font-weight: 600;
        color: rgba(255, 91, 147, 0.6);
        text-transform: lowercase;
        letter-spacing: 0.05em;
      }

      .auth-field input {
        font-family: "Roboto Mono", monospace;
        font-size: 15px;
        color: rgb(255, 91, 147);
        background: transparent;
        border: none;
        border-bottom: 1.5px solid rgb(255, 91, 147);
        outline: none;
        padding: 8px 2px;
        width: 100%;
      }

      .auth-field input::placeholder {
        color: rgba(255, 91, 147, 0.3);
      }

      .auth-fields {
        display: flex;
        flex-direction: column;
        gap: 22px;
      }

      .auth-submit {
        font-family: "Roboto Mono", monospace;
        font-size: 16px;
        font-weight: 600;
        padding: 14px;
        width: 100%;
        border: 2px solid rgb(255, 91, 147);
        border-radius: 999px;
        background: rgb(255, 91, 147);
        color: rgb(252, 221, 234);
        cursor: pointer;
        letter-spacing: 0.04em;
        transition: all 0.2s;
      }

      .auth-submit:hover {
        background: transparent;
        color: rgb(255, 91, 147);
      }

      .auth-divider {
        display: flex;
        align-items: center;
        gap: 12px;
      }

      .auth-divider hr {
        flex: 1;
        border: none;
        border-top: 1px solid rgba(255, 91, 147, 0.2);
      }

      .auth-divider span {
        font-family: "Roboto Mono", monospace;
        font-size: 12px;
        color: rgba(255, 91, 147, 0.4);
      }

      .auth-signup-prompt {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 12px;
      }

      .auth-signup-prompt p {
        font-family: "Roboto Mono", monospace;
        font-size: 13px;
        color: rgba(255, 91, 147, 0.55);
        padding: 0;
        margin: 0;
        text-align: center;
        max-width: none;
      }

      .auth-signup-btn {
        font-family: "Roboto Mono", monospace;
        font-size: 15px;
        font-weight: 600;
        padding: 12px 36px;
        border: 2px solid rgb(255, 91, 147);
        border-radius: 999px;
        background: transparent;
        color: rgb(255, 91, 147);
        cursor: pointer;
        letter-spacing: 0.04em;
        transition: all 0.2s;
        text-decoration: none;
        display: inline-block;
      }

      .auth-signup-btn:hover {
        background: rgb(255, 91, 147);
        color: rgb(252, 221, 234);
      }

      .error-msg {
        font-family: "Roboto Mono", monospace;
        font-size: 13px;
        color: crimson;
        text-align: center;
        padding: 0;
        margin: 0;
        min-height: 18px;
      }

      /* logged in profile section */
      #profile-section {
        min-height: calc(100vh - 85px);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 16px;
        padding: 40px;
      }

      #logout-btn {
        font-family: "Roboto Mono", monospace;
        font-size: 15px;
        font-weight: 600;
        padding: 12px 32px;
        border: 2px solid rgb(255, 91, 147);
        border-radius: 999px;
        background: transparent;
        color: rgb(255, 91, 147);
        cursor: pointer;
        transition: all 0.2s;
        margin-top: 8px;
      }

      #logout-btn:hover {
        background: rgb(255, 91, 147);
        color: rgb(252, 221, 234);
      }
div form {
  font-family: "Roboto Mono", monospace;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 1em;
}

.signup-first {
  font-family: "Roboto Mono", monospace;
  color: whitesmoke;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 1em;
}
/*signup html */
    /* #signup-section {
        min-height: calc(100vh - 85px);
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 40px 20px;
      }

      .auth-card {
        background: whitesmoke;
        border: 2px solid rgb(84, 23, 33);
        border-radius: 20px;
        padding: 48px 40px 36px;
        width: 100%;
        max-width: 420px;
        display: flex;
        flex-direction: column;
        gap: 28px;
        box-shadow: 0 8px 40px rgba(84, 23, 33, 0.10);
      }

      .auth-card h2 {
        font-family: "Roboto Mono", monospace;
        font-size: 26px;
        color: rgb(84, 23, 33);
        text-align: center;
        padding: 0;
        margin: 0;
      }

      .auth-fields {
        display: flex;
        flex-direction: column;
        gap: 22px;
      }

      .auth-field {
        display: flex;
        flex-direction: column;
        gap: 6px;
      }

      .auth-field label {
        font-family: "Roboto Mono", monospace;
        font-size: 13px;
        font-weight: 600;
        color: rgba(84, 23, 33, 0.6);
        text-transform: lowercase;
        letter-spacing: 0.05em;
      }

      .auth-field input {
        font-family: "Roboto Mono", monospace;
        font-size: 15px;
        color: rgb(84, 23, 33);
        background: transparent;
        border: none;
        border-bottom: 1.5px solid rgb(84, 23, 33);
        outline: none;
        padding: 8px 2px;
        width: 100%;
      }

      .auth-field input::placeholder {
        color: rgba(84, 23, 33, 0.3);
      }

      .auth-submit {
        font-family: "Roboto Mono", monospace;
        font-size: 16px;
        font-weight: 600;
        padding: 14px;
        width: 100%;
        border: 2px solid rgb(84, 23, 33);
        border-radius: 999px;
        background: rgb(84, 23, 33);
        color: rgb(252, 221, 234);
        cursor: pointer;
        letter-spacing: 0.04em;
        transition: all 0.2s;
        margin-top: 6px;
      }

      .auth-submit:hover {
        background: transparent;
        color: rgb(84, 23, 33);
      }

      .auth-divider {
        display: flex;
        align-items: center;
        gap: 12px;
      }

      .auth-divider hr {
        flex: 1;
        border: none;
        border-top: 1px solid rgba(84, 23, 33, 0.2);
      }

      .auth-divider span {
        font-family: "Roboto Mono", monospace;
        font-size: 12px;
        color: rgba(84, 23, 33, 0.4);
      }

      .auth-signin-prompt {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 12px;
      }

      .auth-signin-prompt p {
        font-family: "Roboto Mono", monospace;
        font-size: 13px;
        color: rgba(84, 23, 33, 0.55);
        padding: 0;
        margin: 0;
        text-align: center;
      }

      .auth-signin-btn {
        font-family: "Roboto Mono", monospace;
        font-size: 15px;
        font-weight: 600;
        padding: 12px 36px;
        border: 2px solid rgb(84, 23, 33);
        border-radius: 999px;
        background: transparent;
        color: rgb(84, 23, 33);
        cursor: pointer;
        letter-spacing: 0.04em;
        transition: all 0.2s;
        text-decoration: none;
        display: inline-block;
      }

      .auth-signin-btn:hover {
        background: rgb(84, 23, 33);
        color: rgb(252, 221, 234);
      }

      .error-msg {
        font-family: "Roboto Mono", monospace;
        font-size: 13px;
        color: crimson;
        text-align: center;
        padding: 0;
        margin: 0;
        min-height: 18px;
      }

      .success-msg {
        font-family: "Roboto Mono", monospace;
        font-size: 13px;
        color: rgb(84, 23, 33);
        text-align: center;
        padding: 0;
        margin: 0;
        min-height: 18px;
      } */

h1 {
  font-size: 32px;
  color: rgb(255, 255, 255);
}

.h1-links a {
  text-decoration: none;
  list-style: none;
  color: white;
}

.h1-links a:hover {
  text-decoration: underline;
  text-decoration-color: white;
}

h1:hover {
  text-decoration: underline;
  text-decoration-color: white;
}

h2 {
  font-family: "Roboto Mono", monospace;
  font-size: 32px;
  color: rgb(255, 91, 147);
}

h3 {
  font-family: "Roboto Mono", monospace;
  font-weight: bold;
  font-size: 24px;
  color: rgb(255, 91, 147);
  margin-bottom: 20px;
  padding: 1em;
}

p {
  font-family: "Roboto Mono", monospace;
  font-size: 18px;
  color: rgb(255, 91, 147);
  max-width: 600px;
  text-align: left;
  padding: 1em;
}

nav {
  color: whitesmoke;
  font-family: "Roboto Mono", monospace;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 48px;
  position: sticky;
  top: 0;
  background: linear-gradient(135deg, rgba(255, 115, 173, 0.85) 0%, rgba(255, 254, 254, 0.85) 85%);
  backdrop-filter: blur(24px);
  z-index: 100;
}

nav h1 {
  font-family: "Roboto Mono", monospace;
  font-size: 32px;
  color: rgb(255, 255, 255);
}

.nav-links {
  color: whitesmoke;
  display: flex;
  gap: 30px;
  list-style: none;
  justify-content: flex-end;
}

.nav-links a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  color: rgb(219, 93, 158);
  text-decoration: none;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: all 0.2s;
}

.nav-links a:hover {
  text-decoration: underline;
  text-decoration-color: rgb(219, 93, 158);
}

#map {
  width: 100%;
  height: calc(100vh - 85px);
  filter: sepia(30%) saturate(70%) hue-rotate(300deg) brightness(105%);
}

main {
  font-family: "Roboto Mono", monospace;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  padding: 40px;
}

main h2 {
  padding: 1em;
  font-size: 28px;
  color: rgb(219, 93, 158);
}

main h3 {
  font-size: 22px;
  color: rgba(225, 91, 147);
}

main p {
  font-size: 16px;
  color: rgba(225, 91, 147);
  max-width: 600px;
  text-align: left;
}

main form div {
  font-family: "Roboto Mono", monospace;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 1em;
}

main div label {
  padding: 1em;
  font-family: "Roboto Mono", monospace;
  font-size: 18px;
  color: rgb(255, 91, 147);
}

main div button {
  font-family: "Roboto Mono", monospace;
  padding: 14px 28px;
  border: 2px solid rgb(255, 91, 147);
  border-radius: 999px;
  color: rgb(255, 91, 147);
  text-decoration: none;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: all 0.2s;
}

main div button:hover {
  background: rgb(255, 91, 147);
  color: rgb(252, 221, 234);
  cursor: pointer;
}


/*upload grid page*/
.upload-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  width: 100%;
  max-width: 720px;
}

.upload-box {
  border: 2px solid rgb(255, 91, 147);
  border-radius: 16px;
  padding: 28px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: whitesmoke;
  backdrop-filter: blur(10px);
  transition: box-shadow 0.2s;
  box-sizing: border-box;
  height: 300px;
  overflow: hidden;
}

.upload-box:hover {
  box-shadow: 0 4px 24px rgba(255, 91, 147, 0.12);
}

.photo-box {
  cursor: pointer;
  position: relative;
}

.photo-box input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}

.camera-icon {
  font-size: 48px;
  line-height: 1;
}

.photo-box label {
  font-family: "Roboto Mono", monospace;
  font-size: 15px;
  color: rgb(255, 91, 147);
  font-weight: 600;
  cursor: pointer;
  pointer-events: none;
}

#photo-preview {
  width: 100%;
  max-height: 140px;
  object-fit: cover;
  border-radius: 10px;
  margin-top: 4px;
}

.memory-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: center;
}

.memory-box label {
  font-family: "Roboto Mono", monospace;
  font-size: 15px;
  color: rgb(255, 91, 147);
  font-weight: 600;
}

.memory-box input,
.memory-box textarea {
  font-family: "Roboto Mono", monospace;
  font-size: 14px;
  color: rgb(255, 91, 147);
  background: transparent;
  border: none;
  border-bottom: 1.5px solid rgb(255, 91, 147);
  outline: none;
  width: 100%;
  padding: 6px 2px;
  resize: none;
  text-align: center;
}

.memory-box input::placeholder,
.memory-box textarea::placeholder {
  color: rgba(255, 91, 147, 0.45);
}

.location-buttons {
  display: flex;
  gap: 10px;
}

.location-buttons button {
  font-family: "Roboto Mono", monospace;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 18px;
  border: 1.5px solid rgb(255, 91, 147);
  border-radius: 999px;
  background: transparent;
  color: rgb(255, 91, 147);
  cursor: pointer;
  transition: all 0.2s;
}

.location-buttons button:hover {
  background: rgb(255, 91, 147);
  color: rgb(252, 221, 234);
}

.location-manual {
  position: relative;
  width: 100%;
  margin-top: 10px;
}

.location-manual input {
  font-family: "Roboto Mono", monospace;
  font-size: 13px;
  color: rgb(255, 91, 147);
  background: transparent;
  border: none;
  border-bottom: 1.5px solid rgb(255, 91, 147);
  outline: none;
  width: 100%;
  padding: 6px 2px;
  box-sizing: border-box;
  text-align: center;
}

.location-manual input::placeholder {
  color: rgba(255, 91, 147, 0.4);
}

#location-suggestions {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: whitesmoke;
  border: 1.5px solid rgb(255, 91, 147);
  border-radius: 12px;
  list-style: none;
  margin: 0;
  padding: 4px 0;
  z-index: 999;
  box-shadow: 0 4px 20px rgba(255, 91, 147, 0.15);
  overflow: hidden;
}

#location-suggestions:empty {
  display: none;
}

#location-suggestions li {
  font-family: "Roboto Mono", monospace;
  font-size: 13px;
  color: rgb(255, 91, 147);
  padding: 10px 16px;
  cursor: pointer;
  transition: background 0.15s;
}

#location-suggestions li:hover,
#location-suggestions li.active {
  background: rgba(255, 91, 147, 0.1);
}

.place-memory-btn {
  font-family: "Roboto Mono", monospace;
  font-size: 18px;
  font-weight: 600;
  padding: 16px 48px;
  border: 2px solid rgb(255, 91, 147);
  border-radius: 999px;
  background: transparent;
  color: rgb(255, 91, 147);
  cursor: pointer;
  letter-spacing: 0.04em;
  transition: all 0.2s;
  margin-top: 8px;
}

.place-memory-btn:hover {
  background: rgb(255, 91, 147);
  color: rgb(252, 221, 234);
}

.location-box {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 18px 24px;
  width: 100%;
  box-sizing: border-box;
  text-align: center;
  overflow: visible !important;
}

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

  .location-box {
    grid-column: 1;
    flex-direction: column;
    align-items: flex-start;
  }
}
.visibility-box {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 18px 24px;
  text-align: center;
}

.visibility-label {
  font-family: "Roboto Mono", monospace;
  font-size: 14px;
  font-weight: 600;
  color: rgb(255, 91, 147);
}

.visibility-toggle {
  display: flex;
  gap: 10px;
}

.visibility-btn {
  font-family: "Roboto Mono", monospace;
  font-size: 13px !important;
  font-weight: 600;
  padding: 8px 20px !important;
  border: 1.5px solid rgb(255, 91, 147);
  border-radius: 999px;
  background: transparent !important;
  color: rgb(255, 91, 147) !important;
  cursor: pointer;
  pointer-events: auto;
  transition: all 0.2s;
}

.visibility-btn.active {
  background: rgb(255, 91, 147) !important;
  color: rgb(252, 221, 234) !important;
}

.visibility-btn:hover:not(.active) {
  background: rgba(255, 91, 147, 0.1) !important;
}

.visibility-hint {
  font-family: "Roboto Mono", monospace;
  font-size: 12px;
  color: rgba(255, 91, 147, 0.55);
  padding: 0;
  margin: 0;
  text-align: center;
}


.upload-box,
.upload-box label,
.upload-box span:not(.camera-icon),
.upload-box p,
.upload-box input,
.upload-box textarea,
.upload-box div {
  color: rgb(255, 91, 147);
}

/*gallery (profile page) */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 24px;
  width: 100%;
  padding: 20px 0;
}

.gallery-item {
  border: 3px solid rgba(225, 91, 147, 0.85);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.2s;
}

.gallery-item:hover {
  transform: translateY(-4px);
}

.gallery-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.gallery-item-info {
  padding: 14px;
}

.gallery-item-info h3 {
  font-size: 16px;
  padding: 0 0 6px 0;
}

.gallery-item-info p {
  font-size: 14px;
  padding: 0;
}


/*map tabs*/
.map-tabs {
  display: flex;
  gap: 8px;
  padding: 12px 24px;
  /* background: linear-gradient(135deg, rgba(255, 115, 173, 0.85) 0%, rgba(255, 254, 254, 0.85) 85%); */
  /* backdrop-filter: blur(24px); */
  position: sticky;
  top: 85px;
  z-index: 99;
}

.map-tab {
  font-family: "Roboto Mono", monospace;
  font-size: 14px;
  font-weight: 600;
  padding: 8px 20px;
  border: 1.5px solid rgb(255, 91, 147);
  border-radius: 999px;
  background: transparent;
  color: rgb(255, 91, 147);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
  letter-spacing: 0.03em;
}

.map-tab.active {
  background: rgb(255, 91, 147);
  color: rgb(252, 221, 234);
}

.map-tab.active .pixel--globe-americas-solid,
.map-tab.active .pixel--heart-solid {
  color: rgb(252, 221, 234);
}

.map-tab:hover:not(.active) {
  background: rgba(255, 91, 147, 0.1);
}

/* ── map popup ── */
.map-popup img {
  width: 100%;
  max-height: 120px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 8px;
}

.map-popup strong {
  font-family: "Roboto Mono", monospace;
  font-size: 13px;
  color: rgb(255, 91, 147);
  display: block;
  margin-bottom: 4px;
}

.map-popup p {
  font-family: "Roboto Mono", monospace;
  font-size: 12px;
  color: rgba(255, 91, 147, 0.7);
  padding: 0;
  margin: 0;
  max-width: none;
}