* {
  box-sizing: border-box;
}

html,
body,
#map {
  width: 100%;
  height: 100%;
  min-width: 320px;
  min-height: 100%;
  margin: 0;
}

body {
  height: 100vh;
  overflow: hidden;
}

#map {
  position: absolute;
  inset: 0;
  background: #e8e5df;
}

.user-location-dot {
  width: 18px;
  height: 18px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: #d3ad70;
  box-shadow: 0 0 0 2px #2563eb66, 0 2px 6px #0006;
}

.top-bar {
  position: absolute;
  z-index: 3;
  top: 16px;
  right: 16px;
  display: flex;
  gap: 8px;
}

.top-bar button,
.role-dialog button {
  padding: 10px 14px;
  border: 0;
  border-radius: 8px;
  background: #d3ad70;
  color: #fff;
  font: 600 14px/1.3 system-ui, sans-serif;
  cursor: pointer;
  box-shadow: 0 2px 8px #0002;
}

.map-home-link {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border: 1px solid #ffffff33;
  border-radius: 8px;
  background: #111d;
  color: #fff;
  font: 600 14px/1.3 system-ui, sans-serif;
  text-decoration: none;
}
.map-home-link:hover { background: #222e; }
.map-login-link,
.map-account-name {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border: 1px solid #ffffff33;
  border-radius: 8px;
  background: #111d;
  color: #fff;
  font: 600 14px/1.3 system-ui, sans-serif;
  text-decoration: none;
}
.map-account-name { color: #f0d7a8; }

.top-bar button.active,
.top-bar button:hover,
.role-dialog button:hover {
  background: #d3ad70;
}

.role-dialog {
  position: absolute;
  z-index: 4;
  top: 64px;
  right: 16px;
  display: grid;
  gap: 10px;
  width: min(250px, calc(100vw - 32px));
  padding: 16px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 4px 20px #0003;
  font: 14px system-ui, sans-serif;
}

.role-dialog[hidden],
.top-bar [hidden] {
  display: none;
}

.role-dialog h2 {
  margin: 0 0 4px;
  font-size: 17px;
}

.marker-form label {
  font-weight: 600;
}

.marker-form input {
  width: 100%;
  padding: 10px;
  border: 1px solid #9ca3af;
  border-radius: 7px;
  font: 14px system-ui, sans-serif;
}

.role-dialog .secondary-button {
  background: #e5e7eb;
  color: #111827;
}

.marker-popup {
  display: grid;
  gap: 20px;
  min-width: min(500px, calc(100vw - 64px));
  max-width: min(700px, calc(100vw - 32px));
  color: #111827;
  font: 35px system-ui, sans-serif;
}
.marker-popup-heading {
  display: flex;
  align-items: center;
  gap: 25px;
  min-width: 0;
}
.marker-popup-heading strong {
  overflow-wrap: anywhere;
}
.favorite-toggle {
  border: 1px solid #c9a56d;
  border-radius: 6px;
  background: #171512;
  color: #d3ad70;
  cursor: pointer;
}
.favorite-toggle:hover,
.favorite-toggle[aria-pressed="true"] {
  background: #c9a56d;
  color: #111;
}
.popup-favorite-toggle {
  flex: 0 0 1.5em;
  width: 1.5em;
  height: 1.5em;
  margin-left: auto;
  padding: 0;
  font: inherit;
  line-height: 1;
}
.marker-popup-avatar {
  flex: 0 0 120px;
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 15px;
  border: 1px solid #e5e7eb;
}
.marker-popup-desc {
  margin: 0;
  color: #4b5563;
  font-size: 32.5px;
  line-height: 1.4;
}
.marker-popup-more {
  justify-self: start;
  padding: 20px 30px;
  border: 0;
  border-radius: 20px;
  background: #d3ad70;
  color: #fff;
  font: 600 32.5px system-ui, sans-serif;
  cursor: pointer;
}
.marker-popup-hint {
  margin: 0;
  color: #6b7280;
  font-size: 30px;
}
.marker-actions {
  display: flex;
  gap: 15px;
}
.marker-actions button {
  padding: 15px 20px;
  border: 0;
  border-radius: 15px;
  background: #d3ad70;
  color: #fff;
  font: 30px system-ui, sans-serif;
  cursor: pointer;
}
.marker-actions .delete-marker {
  background: #dc2626;
}
.marker-editor-form {
  position: fixed;
  top: 50%;
  left: 50%;
  right: auto;
  transform: translate(-50%, -50%);
  width: min(680px, calc(100vw - 32px));
  max-height: calc(100vh - 40px);
  padding: 24px;
  overflow-y: auto;
}
.marker-form-title {
  margin: 0 0 4px;
  font-size: 18px;
  color: #111827;
}
.marker-editor-form label {
  font-weight: 600;
  color: #374151;
}
.marker-editor-form input[type="text"],
.marker-editor-form textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #9ca3af;
  border-radius: 7px;
  font: 14px system-ui, sans-serif;
  resize: vertical;
}
.marker-editor-form input[type="file"] {
  font-size: 13px;
}
.marker-editor-form textarea {
  min-height: 120px;
}
.marker-form-hint {
  margin: 0;
  color: #6b7280;
  font-size: 12px;
}
.marker-photo-previews {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(64px, 1fr));
  gap: 8px;
}
.marker-photo-thumb {
  position: relative;
}
.marker-photo-thumb img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid #e5e7eb;
}
.marker-photo-remove {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 22px;
  height: 22px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #dc2626;
  color: #fff;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}
.marker-form-error {
  margin: 0;
  color: #dc2626;
  font-size: 13px;
  min-height: 1.2em;
}
.marker-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.place-details-dialog {
  width: min(520px, calc(100vw - 24px));
  max-height: calc(100vh - 24px);
  padding: 0;
  border: 1px solid #c9a56d75;
  border-radius: 14px;
  background: #0d0d0c;
  color: #f4f0e9;
  overflow: auto;
}
.place-details-dialog::backdrop {
  background: #000a;
  backdrop-filter: blur(3px);
}
.place-dialog-close {
  position: sticky;
  top: 8px;
  float: right;
  margin: 10px 12px 0 0;
  width: 36px;
  height: 36px;
  border: 1px solid #ffffff33;
  border-radius: 50%;
  background: #111;
  color: #d8cbb5;
  font-size: 22px;
  cursor: pointer;
  z-index: 2;
}
.place-details-body {
  padding: 20px 22px 28px;
}
.place-details-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #c9a56d;
  display: block;
  margin-bottom: 14px;
}
.place-details-body h2 {
  margin: 0 0 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  font-size: clamp(24px, 4vw, 32px);
  color: #f4f0e9;
}
.details-favorite-toggle {
  min-height: 38px;
  margin: 0 0 16px;
  padding: 8px 12px;
  font: 600 13px system-ui, sans-serif;
}
.place-details-desc {
  margin: 0 0 18px;
  color: #c8c3bb;
  line-height: 1.65;
  white-space: pre-wrap;
}
.place-details-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
}
.place-details-gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid #ffffff22;
}

/* Mobility Stay landing page */
.landing-page {
  min-height: 100vh;
  height: auto;
  overflow-x: hidden;
  overflow-y: auto;
  background: #090909;
  color: #f4f0e9;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.landing-header,
.landing-footer {
  width: min(1240px, calc(100% - 80px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.landing-header {
  height: 88px;
  border-bottom: 1px solid #ffffff17;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #f2eee7;
  text-decoration: none;
  font-size: 13px;
  letter-spacing: .19em;
}

.wordmark b { color: #d3ad70; font-weight: 500; }
.wordmark-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid #c9a56d;
  border-radius: 50%;
  color: #d7b77f;
  font: 11px/1 Georgia, serif;
  letter-spacing: .04em;
}

.header-link {
  padding: 0;
  border: 0;
  background: none;
  color: #e8dfd1;
  text-decoration: none;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  transition: color .2s ease;
}
.header-link span { margin-left: 9px; color: #d4ae72; }
.header-link:hover { color: #d4ae72; }

.hero {
  position: relative;
  width: min(1240px, calc(100% - 80px));
  min-height: 560px;
  margin: 0 auto;
  padding: 82px 0 70px;
  display: grid;
  grid-template-columns: .92fr 1.08fr;
  align-items: center;
  gap: 32px;
}

.hero-copy { position: relative; z-index: 1; padding-bottom: 18px; }
.eyebrow {
  margin: 0 0 25px;
  color: #c3a576;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .21em;
}
.eyebrow span {
  display: inline-block;
  width: 22px;
  height: 1px;
  margin: 0 10px 3px 0;
  background: #c3a576;
}
.hero h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(42px, 5vw, 68px);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -.045em;
}
.hero h1 em { color: #d0ad78; font-weight: 400; }
.hero-description {
  max-width: 425px;
  margin: 23px 0 30px;
  color: #a7a39c;
  font-size: 14px;
  line-height: 1.9;
}
.primary-cta {
  display: inline-flex;
  min-height: 50px;
  appearance: none;
  border-radius: 0;
  background: transparent;
  font-family: inherit;
  cursor: pointer;
  align-items: center;
  gap: 30px;
  padding: 0 20px;
  border: 1px solid #c8a572;
  color: #f3eadc;
  text-decoration: none;
  font-size: 13px;
  transition: background .2s ease, color .2s ease;
}
.primary-cta span { color: #d6b77f; font-size: 17px; }
.primary-cta:hover { background: #c8a572; color: #111; }
.primary-cta:hover span { color: #111; }
.hero-note {
  margin-top: 25px;
  color: #77736d;
  font-size: 10px;
  letter-spacing: .12em;
}
.note-mark { margin-right: 7px; color: #c8a572; }

.hero-art {
  position: relative;
  display: flex;
  min-height: 365px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid #ffffff13;
  background: radial-gradient(ellipse at 50% 46%, #252018 0%, #11100e 44%, #0b0b0b 76%);
}
.hero-art img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  max-width: 650px;
  mix-blend-mode: screen;
}
.art-glow {
  position: absolute;
  width: 52%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #bd925044;
  filter: blur(85px);
}
.art-caption {
  position: absolute;
  right: 20px;
  bottom: 17px;
  left: 20px;
  display: flex;
  justify-content: space-between;
  color: #9c8b70;
  font-size: 8px;
  letter-spacing: .16em;
}
.hero-index {
  position: absolute;
  right: 0;
  bottom: 25px;
  color: #6c665e;
  font-size: 9px;
  letter-spacing: .18em;
}

.intro-strip {
  display: flex;
  min-height: 90px;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 20px 40px;
  border-top: 1px solid #ffffff15;
  border-bottom: 1px solid #ffffff15;
  background: #0e0e0d;
}
.strip-label { color: #aa8c5f; font-size: 9px; letter-spacing: .18em; }
.intro-strip p {
  margin: 0;
  color: #e2ddd4;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
}
.strip-register {
  padding: 0;
  border: 0;
  background: transparent;
  color: #d3ad70;
  font: inherit;
  font-size: 20px;
  cursor: pointer;
}

.features {
  width: min(1240px, calc(100% - 80px));
  margin: 0 auto;
  padding: 53px 0 70px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.feature-card {
  position: relative;
  min-height: 170px;
  padding: 10px 38px 10px 0;
}
.feature-card + .feature-card { padding-left: 38px; border-left: 1px solid #ffffff17; }
.feature-number { color: #72695c; font-size: 9px; letter-spacing: .16em; }
.feature-icon { float: right; color: #c9a56d; font-size: 21px; }
.feature-card h2 {
  margin: 25px 0 9px;
  color: #eee9e1;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  font-weight: 400;
}
.feature-card p { max-width: 290px; margin: 0; color: #8f8b84; font-size: 12px; line-height: 1.8; }
.registration-dialog {
  position: fixed;
  width: min(460px, calc(100vw - 32px));
  max-width: none;
  max-height: min(92vh, 820px);
  padding: 25px 34px 24px;
  overflow-y: auto;
  border: 1px solid #c9a56d75;
  background: radial-gradient(ellipse at 50% 0%, #211b13 0, #10100f 42%, #090909 100%);
  color: #f4f0e9;
  box-shadow: 0 24px 90px #000b;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  text-align: center;
}
.registration-dialog::backdrop { background: #000c; backdrop-filter: blur(7px); }
.dialog-close {
  position: absolute;
  top: 10px;
  right: 13px;
  width: 34px;
  height: 34px;
  border: 1px solid #ffffff25;
  border-radius: 50%;
  background: #111;
  color: #d8cbb5;
  font-size: 22px;
  cursor: pointer;
}
.dialog-logo {
  display: block;
  width: 220px;
  max-width: 75%;
  height: auto;
  margin: 0 auto 8px;
  mix-blend-mode: screen;
}
.registration-dialog .eyebrow { margin: 0 0 10px; font-size: 9px; }
.registration-dialog h2 {
  margin: 0;
  font: 400 30px/1.2 Georgia, "Times New Roman", serif;
}
.dialog-description { margin: 10px 0 21px; color: #aaa39a; font-size: 12px; line-height: 1.6; }
.registration-details[hidden], .role-choice-view[hidden] { display: none; }
.role-cards { display: grid; gap: 10px; text-align: left; }
.role-card {
  display: grid;
  grid-template-columns: 38px 1fr 18px;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 84px;
  padding: 14px;
  border: 1px solid #ffffff24;
  background: #0a0a09b8;
  color: #f4f0e9;
  text-align: left;
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}
.role-card:hover, .role-card:focus-visible {
  transform: translateY(-2px);
  border-color: #c9a56d;
  outline: none;
  background: #211b13;
}
.role-card-icon { color: #c9a56d; font-size: 24px; text-align: center; }
.role-card-copy { display: grid; gap: 5px; }
.role-card-copy strong { font: 400 20px/1.1 Georgia, "Times New Roman", serif; }
.role-card-copy small { color: #aaa39a; font: 11px/1.5 system-ui, sans-serif; }
.role-card-arrow { color: #c9a56d; font-size: 18px; }
.auth-switch {
  margin: 13px 0 0;
  padding: 4px;
  border: 0;
  background: transparent;
  color: #d3ad70;
  font: 12px system-ui, sans-serif;
  cursor: pointer;
}
.auth-switch:hover { color: #f4f0e9; }
.role-back {
  display: block;
  margin: 0 0 14px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #c9a56d;
  font: 11px system-ui, sans-serif;
  cursor: pointer;
}
.registration-form { display: grid; gap: 8px; text-align: left; }
.registration-form label { margin-top: 4px; color: #d8cbb5; font-size: 11px; }
.registration-form input {
  width: 100%;
  min-height: 43px;
  padding: 0 12px;
  border: 1px solid #ffffff24;
  border-radius: 2px;
  outline: none;
  background: #0a0a09;
  color: #f4f0e9;
  font: 13px system-ui, sans-serif;
}
.registration-form input:focus { border-color: #c9a56d; box-shadow: 0 0 0 2px #c9a56d20; }
.registration-form input::placeholder { color: #68645e; }
.registration-form .primary-cta { width: 100%; justify-content: space-between; margin-top: 9px; }
.form-status { min-height: 18px; margin: 0; color: #d3ad70; font-size: 11px; line-height: 1.5; }
.dialog-footnote { margin: 7px 0 0; color: #79736a; font-size: 9px; letter-spacing: .15em; }

.full-logo-section {
  display: grid;
  justify-items: center;
  padding: 34px 20px 58px;
  border-top: 1px solid #ffffff17;
  background: #080808;
}
.full-logo-section .eyebrow { margin: 0 0 16px; }
.full-logo-section img {
  display: block;
  width: min(680px, 100%);
  height: auto;
  border: 1px solid #c9a56d38;
}

.landing-footer {
  min-height: 65px;
  border-top: 1px solid #ffffff17;
  color: #716d66;
  font-size: 9px;
  letter-spacing: .16em;
}
.landing-footer i { padding-left: 8px; color: #c9a56d; font-style: normal; }

@media (max-width: 760px) {
  .landing-header, .landing-footer, .hero, .features { width: min(100% - 40px, 560px); }
  .landing-header { height: 70px; }
  .hero { min-height: 0; padding: 62px 0 56px; grid-template-columns: 1fr; gap: 30px; }
  .hero h1 { font-size: clamp(43px, 11vw, 62px); }
  .hero-art { min-height: 0; }
  .art-caption { right: 12px; bottom: 11px; left: 12px; font-size: 7px; }
  .hero-index { bottom: 18px; }
  .intro-strip { gap: 13px; padding: 20px; }
  .strip-label { max-width: 70px; line-height: 1.7; }
  .intro-strip p { font-size: 15px; }
  .features { padding: 38px 0 45px; grid-template-columns: 1fr; }
  .feature-card, .feature-card + .feature-card { min-height: 0; padding: 22px 0; border-left: 0; border-bottom: 1px solid #ffffff17; }
  .feature-card h2 { margin-top: 15px; }
}

@media (max-width: 420px) {
  .wordmark { gap: 8px; font-size: 10px; }
  .wordmark-icon { width: 30px; height: 30px; }
  .header-link { font-size: 11px; }
  .eyebrow { font-size: 8px; }
}
