:root {
  --bg: #f3efe7;
  --ink: #1c1a17;
  --line: rgba(255, 255, 255, 0.9);
  --accent-green: #dfe98a;
  --accent-red: #ff170d;
  --chip-text: #f4f1a3;
  --chip-dot: #f4f1a3;
  --chip-dot-center: #0d922f;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
}

* { box-sizing: border-box; }

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

body {
  font-family: 'Chivo', Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--ink);
}

button,
input,
select {
  font: inherit;
}

button {
  -webkit-tap-highlight-color: transparent;
}

.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.app-shell {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

.map-fullscreen {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #ddd;
}

.splash-screen {
  position: absolute;
  inset: 0;
  z-index: 5000;
  display: flex;
  align-items: stretch;
  justify-content: stretch;
  background: #dbc6a7;
  opacity: 1;
  visibility: visible;
  transition: opacity 420ms ease, visibility 420ms ease;
}

.splash-screen.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.splash-screen__bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to bottom, rgba(208, 237, 166, 0.54) 0%, rgba(232, 178, 142, 0.2) 46%, rgba(244, 123, 88, 0.58) 100%),
    url('./splash-background.png');
  background-size: cover;
  background-position: center center;
  transform: scale(1.02);
}

.splash-screen__content {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: max(8.8vh, 70px) max(9.4vw, 42px) max(8.6vh, 54px);
}

.splash-screen__lockup {
  margin-top: max(22vh, 120px);
}

.splash-screen__brand {
  margin: 0;
  font-size: clamp(5.7rem, 14.8vw, 8.7rem);
  line-height: 0.88;
  font-weight: 300;
  letter-spacing: -0.11em;
  color: #ffffff;
}

.splash-screen__brand-main {
  color: #ffffff;
  font-weight: 500;
}

.splash-screen__brand-accent {
  color: #eef181;
  font-weight: 500;
}

.splash-screen__tagline {
  margin: 18px 0 0;
  font-size: clamp(3.1rem, 9.5vw, 5.5rem);
  line-height: 0.96;
  font-weight: 600;
  letter-spacing: -0.08em;
  color: #eef181;
}

.splash-screen__go {
  align-self: flex-end;
  min-width: clamp(154px, 31vw, 260px);
  height: clamp(82px, 10.6vw, 112px);
  padding: 0 36px;
  border: 6px solid rgba(255, 255, 255, 0.94);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
  color: #ffffff;
  font-size: clamp(2.5rem, 6.6vw, 4rem);
  line-height: 1;
  font-weight: 500;
  letter-spacing: -0.05em;
  cursor: pointer;
}

.floating-topbar {
  position: absolute;
  top: 16px;
  left: 16px;
  right: 16px;
  z-index: 1000;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  pointer-events: none;
}

.top-left-controls {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  pointer-events: auto;
}

.brand-wrap,
.user-pill,
.here-btn {
  pointer-events: auto;
}

.brand-wrap {
  display: none;
}

.brand {
  font-size: 44px;
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.05em;
}

.subbrand {
  margin-top: 4px;
  font-size: 14px;
  color: #6f675d;
}

.user-pill {
  margin-left: auto;
  background: rgba(255, 250, 242, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.14);
  border-radius: 999px;
  padding: 10px 14px;
  font-size: 14px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(6px);
}

.here-btn {
  height: 52px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  background: rgb(107 127 195);
  color: #fff;
  font-size: 24px;
  font-weight: 400;
  letter-spacing: -0.03em;
  box-shadow: var(--shadow);
  backdrop-filter: blur(6px);
  cursor: pointer;
}

.here-btn.is-locating {
  min-width: 96px;
}

.here-btn:disabled {
  opacity: 0.9;
  cursor: default;
}

.floating-controls {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 18px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 16px;
  pointer-events: none;
}

.search-row,
.filter-row {
  display: flex;
  gap: 11px;
  pointer-events: auto;
}

.search-input {
  flex: 1;
  min-width: 0;
  height: 72px;
  border-radius: 999px;
  border: 2px solid rgba(0, 0, 0, 0.24);
  background: rgba(244, 241, 235, 0.95);
  padding: 0 28px;
  font-size: 30px;
  color: #666;
  outline: none;
  backdrop-filter: blur(6px);
}

.search-input:focus {
  border-color: #0d922f;
}

.map-add-btn {
  width: 124px;
  height: 72px;
  border-radius: 999px;
  border: 2px solid rgba(0, 0, 0, 0.24);
  background: rgba(244, 241, 235, 0.95);
  color: #7a7a7a;
  font-size: 56px;
  line-height: 1;
  cursor: pointer;
}

.filter-row {
  justify-content: center;
  padding-top: 10px;
}

.filter-btn {
  min-width: 170px;
  height: 58px;
  border-radius: 999px;
  border: 2px solid #111;
  background: transparent;
  color: #111;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.03em;
  cursor: pointer;
  padding: 0 24px;
}

.filter-btn.is-active {
  background: #111;
  color: #fff;
  box-shadow: none;
}

#filter-new-btn {
  border-color: #ff170d;
  color: #ff170d;
}

#filter-new-btn.is-active {
  background: #ff170d;
  color: #fff;
}

#filter-verified-btn {
  border-color: #0d922f;
  color: #0d922f;
  background: transparent;
}

#filter-verified-btn.is-active {
  background: #0d922f;
  color: #f4f1a3;
}

.add-flow[hidden],
.picker-sheet[hidden],
.detail-modal[hidden] {
  display: none;
}

.add-flow,
.detail-modal {
  position: absolute;
  inset: 0;
}

.add-flow {
  z-index: 3000;
}

.detail-modal {
  z-index: 3200;
}

.detail-hero-state[hidden] {
  display: none !important;
}

.detail-hero-still-btn[hidden] {
  display: none !important;
}

.add-flow__backdrop,
.detail-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(54, 47, 47, 0.52);
  backdrop-filter: blur(1px);
}

.add-card,
.detail-card {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(720px, calc(100vw - 56px));
  height: min(1400px, calc(100vh - 78px));
  transform: translate(-50%, -50%);
  border-radius: 46px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.add-card {
  background: rgba(0, 0, 0, 0.15);
}

.add-photo-frame {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.34), rgba(0, 0, 0, 0.26)), linear-gradient(to bottom, #5d5858, #6d6767);
}

.add-photo-image,
.detail-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.add-photo-shade {
  position: absolute;
  inset: 0;
  background-color: #141e26eb;
  pointer-events: none;
}

.add-photo-empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 40px;
  text-align: center;
}

.add-photo-empty__label {
  color: rgba(255, 255, 255, 0.9);
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.03em;
  display: none;
}

.retake-photo-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 3;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: #111;
  padding: 12px 18px;
  font-size: 18px;
  cursor: pointer;
}

.add-fields {
  position: absolute;
  top: 120px;
  left: 58px;
  right: 58px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 54px;
}

.add-line-btn {
  display: block;
  width: 100%;
  padding: 0 0 10px;
  background: transparent;
  border: 0;
  border-bottom: 8px solid var(--line);
  text-align: left;
  cursor: pointer;
}

.add-line-btn__text {
  display: inline-block;
  font-size: 34px;
  font-weight: 500;
  letter-spacing: -0.04em;
  color: #fff;
}

.add-line-btn__text.is-placeholder {
  color: rgba(255, 255, 255, 0.96);
}

.add-line-btn.is-selected {
  border-bottom-color: var(--accent-green);
}

.add-line-btn.is-selected .add-line-btn__text {
  color: var(--accent-green);
}

.add-status {
  position: absolute;
  left: 58px;
  right: 58px;
  bottom: 148px;
  z-index: 3;
  min-height: 24px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 18px;
}

.add-bottom-bar {
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 166px;
}

.ghost-close-btn {
  width: 68px;
  height: 68px;
  border: 2px solid rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  font-size: 42px;
  line-height: 1;
  cursor: pointer;
}

.submit-add-btn {
  width: 166px;
  height: 86px;
  border: 0;
  border-radius: 999px;
  background: var(--accent-green);
  color: var(--accent-red);
  font-size: 82px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.18);
}

.submit-add-btn.is-disabled,
.submit-add-btn:disabled {
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.72);
  border: 2px solid rgba(255, 255, 255, 0.3);
  box-shadow: none;
  cursor: default;
}

.picker-sheet {
  position: absolute;
  inset: 0;
  z-index: 3500;
  display: grid;
  place-items: center;
  padding: 24px;
}

.picker-sheet__panel {
  width: min(610px, calc(100vw - 92px));
  max-height: min(1180px, calc(100vh - 180px));
  overflow: auto;
  background: rgba(255, 255, 255, 0.96);
  border: 2px solid rgba(0, 0, 0, 0.35);
  border-radius: 24px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.24);
  padding: 18px;
}

.picker-sheet__search {
  margin-bottom: 14px;
}

.picker-sheet__search-input {
  width: 100%;
  border: 0;
  border-bottom: 8px solid #000;
  background: transparent;
  padding: 0 0 8px;
  font-size: 32px;
  color: #111;
  outline: none;
}

.picker-sheet__options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.picker-option {
  display: block;
  width: 100%;
  border: 0;
  border-radius: 999px;
  background: #e7e7e7;
  color: #111;
  text-align: left;
  padding: 16px 38px;
  font-size: 28px;
  letter-spacing: -0.03em;
  cursor: pointer;
}

.picker-option.is-selected {
  background: #000;
  color: #fff;
}

.detail-card {
  background: #000;
}

.detail-card.is-gone .detail-panel {
  background: #000;
}

.detail-hero {
  position: relative;
  height: 58%;
    background: #32060d;
}

.detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.18) 0%, rgba(0,0,0,0.08) 36%, rgba(0,0,0,0.52) 100%);
  pointer-events: none;
}

.detail-image-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.88);
  font-size: 28px;
  font-weight: 700;
  display: none;
}

.detail-report-btn {
  position: absolute;
  top: 28px;
  left: 28px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 54px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  background: rgb(161 88 47 / 35%);
  color: #eef181;
  font-size: 28px;
  font-weight: 500;
  cursor: pointer;
}

.detail-report-btn__icon {
  font-size: 21px;
  line-height: 1;
}

.detail-close-btn {
  position: absolute;
  top: 22px;
  right: 22px;
  z-index: 2;
  width: 64px;
  height: 64px;
  border: 3px solid rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  border-radius: 50%;
  font-size: 46px;
  line-height: 1;
  cursor: pointer;
}

.detail-hero-state {
  position: absolute;
  left: 50%;
  top: 44%;
  transform: translate(-50%, -50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.detail-hero-state-text {
  color: #eef181;
  font-size: 54px;
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 0.98;
  text-align: center;
  text-transform: lowercase;
  text-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

.detail-hero-still-btn {
  height: 72px;
  padding: 0 34px;
  border: 0;
  border-radius: 999px;
  background: #139f2f;
  color: #eef181;
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.04em;
  cursor: pointer;
  box-shadow: 0 14px 28px rgba(0,0,0,0.22);
}

.detail-hero-still-btn:disabled {
  opacity: 0.72;
  cursor: default;
}

.detail-panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 38%;
  background: #000;
  padding: 28px 46px 36px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.detail-line-block {
  margin-bottom: 16px;
}

.detail-line-value {
  color: #eef181;
  font-size: 38px;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.08;
  text-transform: lowercase;
}

#detail-color,
#detail-condition {
  text-transform: none;
}

.detail-line-rule {
  margin-top: 12px;
  height: 3px;
  width: 100%;
  background: #d6da62;
  opacity: 0.9;
}

.detail-actions {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: center;
  margin-top: 8px;
}

.detail-action-btn {
  height: 78px;
  border-radius: 999px;
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.04em;
  cursor: pointer;
  text-transform: lowercase;
}

.detail-action-btn--green {
  background: #139f2f;
  color: #eef181;
  border: 0;
}

.detail-action-btn--red {
  background: #ff170d;
  color: #eef181;
  border: 0;
}

.detail-action-btn--outline-green {
    background: #0d922f;
    color: #ffffff;
}
.detail-action-btn--outline-red {
    background: #ff190c;
    color: #ffffff;
    border: 2px solid #ff170d;
}
.detail-action-btn.is-active-red {
  background: #ff170d;
  color: #eef181;
  border-color: #ff170d;
}

.detail-action-btn.is-active-green {
  background: #139f2f;
  color: #eef181;
  border-color: #139f2f;
}

.detail-action-btn:disabled {
  opacity: 0.72;
  cursor: default;
  filter: saturate(0.7);
}

.detail-count-bubble {
  position: absolute;
  left: 45%;
  top: -11px;
  transform: translateX(-50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #fff;
  color: #333;
  display: grid;
  place-items: center;
  font-size: 26px;
  border: 1px solid rgba(0, 0, 0, 0.18);
}

.rething-marker {
  background: transparent;
  border: 0;
}

.map-chip {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 48px;
  padding: 0 18px 0 12px;
  border-radius: 999px;
  background: #0d922f;
  border: 2px solid transparent;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.16);
  white-space: nowrap;
}

.map-chip__dot {
  position: relative;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  border-radius: 50%;
  background: var(--chip-dot);
  border: 2px solid transparent;
}

.map-chip__dot::after {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  background: var(--chip-dot-center);
}

.map-chip__label {
  color: var(--chip-text);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  text-transform: lowercase;
}

.map-chip.is-new {
  background: #ff170d;
}

.map-chip.is-new .map-chip__dot::after {
  background: #ff170d;
}

.map-chip.is-verified {
  background: #0d922f;
}

.map-chip.is-verified .map-chip__dot::after {
  background: #0d922f;
}

.map-chip.is-gone {
  background: rgba(255,255,255,0);
  border-color: #111;
  box-shadow: none;
  opacity: .5;
  
  
  
}

.map-chip.is-gone .map-chip__dot {
  background: transparent;
  border-color: #111;
}

.map-chip.is-gone .map-chip__dot::after {
  background: #111;
}

.map-chip.is-gone .map-chip__label {
  color: #111;
}

.map-chip.is-draft {
  background: #b71c1c;
}

.map-chip.is-user {
  background: #0a5c7d;
}

.leaflet-control-zoom {
  margin-top: 88px !important;
}

.leaflet-tile-pane {
  filter: grayscale(80%) contrast(0.4) brightness(1.4);
}

@media (min-width: 900px) {
  .brand-wrap {
    display: block;
    background: rgba(255, 250, 242, 0.88);
    border-radius: 18px;
    padding: 12px 16px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(6px);
  }
}

@media (max-width: 700px) {
  .floating-topbar {
    top: 12px;
    left: 12px;
    right: 12px;
  }

  .top-left-controls {
    gap: 8px;
  }

  .here-btn {
    height: 44px;
    min-width: 88px;
    padding: 0 16px;
    font-size: 16px;
    touch-action: manipulation;
    -webkit-user-select: none;
    user-select: none;
  }

  .floating-controls {
    left: 12px;
    right: 12px;
    bottom: 94px;
    gap: 12px;
  }

  .search-input {
    height: 47px;
    font-size: 18px;
    padding: 0 22px;
  }

  .map-add-btn {
    width: 98px;
    height: 47px;
    font-size: 42px;
  }

  .filter-btn {
    min-width: 0;
    height: 31px;
    font-size: 18px;
    padding: 0 24px;
  }

  .add-card,
  .detail-card {
    width: calc(100vw - 56px);
    height: calc(100vh - 120px);
    bottom: 30px;
    top: 40px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 34px;
  }

  .add-fields {
    top: 96px;
    left: 28px;
    right: 28px;
    gap: 40px;
  }

  .add-line-btn {
    border-bottom-width: 7px;
    padding-bottom: 8px;
  }

  .add-line-btn__text {
    font-size: 28px;
  }

  .add-status {
    left: 28px;
    right: 28px;
    bottom: 124px;
    font-size: 15px;
    justify-self: center;
    background-color: #434141;
    padding: 10px 20px 10px 20px;
    border-radius: 30px;
  }

  .submit-add-btn {
    width: 86px;
    height: 78px;
    font-size: 73px;
    padding: 0 0 10px 0;
  }

  .ghost-close-btn {
    width: 38px;
    height: 38px;
    font-size: 34px;
    padding: 0 0 3px 0;
  }

  .picker-sheet {
    padding: 16px;
  }

  .picker-sheet__panel {
    width: calc(100vw - 92px);
    max-height: calc(100vh - 180px);
    padding: 16px;
  }

  .picker-sheet__search-input {
    font-size: 28px;
    border-bottom-width: 7px;
  }

  .picker-option {
    font-size: 24px;
    padding: 14px 24px;
  }

  .detail-report-btn {
    top: 18px;
    left: 18px;
    height: 40px;
    padding: 0 13px;
    font-size: 18px;
    border: 1px solid #ffffffa3;
  }

  .detail-close-btn {
    top: 16px;
    right: 16px;
    width: 43px;
    height: 43px;
    font-size: 34px;
    opacity: 0.5;
  }

  .detail-hero-state {
        top: 42%;
        gap: 14px;
        background-color: #7c0101c9;
        padding: 81px;
        width: 131%;
        border-radius: 20px;
        align-content: start;
        rotate: -7deg;
    }
  .detail-hero-state-text {
    font-size: 24px;
  }

  .detail-hero-still-btn {
    height: 40px;
    padding: 0 18px;
    font-size: 21px;
  }

  .detail-panel {
    padding: 4px 24px 26px;
  }

  .detail-line-value {
    font-size: 24px;
  }

  .detail-line-rule {
    margin-top: 10px;
    height: 2px;
  }

  .detail-actions {
    gap: 18px;
  }

  .detail-action-btn {
    height: 36px;
    font-size: 21px;
  }

  .detail-count-bubble {
    width: 26px;
    height: 26px;
    font-size: 16px;
  }

  .map-chip {
    height: 42px;
    padding: 0 16px 0 10px;
    gap: 10px;
  }

  .map-chip__dot {
    width: 24px;
    height: 24px;
    flex-basis: 24px;
  }

  .map-chip__dot::after {
    inset: 7px;
  }

  .map-chip__label {
    font-size: 18px;
  }

  .splash-screen__content {
    padding: max(8.8vh, 54px) 34px max(7.8vh, 42px);
  }

  .splash-screen__lockup {
    margin-top: max(18.5vh, 104px);
  }

  .splash-screen__brand {
    font-size: clamp(5.1rem, 28vw, 7.9rem);
    letter-spacing: -0.13em;
  }

  .splash-screen__tagline {
    margin-top: 16px;
    font-size: clamp(3.4rem, 13vw, 4.75rem);
    letter-spacing: -0.07em;
  }

  .splash-screen__go {
    min-width: 134px;
    height: 78px;
    border-width: 2px;
    font-size: 2.95rem;
    padding: 0 30px;
    margin-right: 6px;
    margin-bottom: 18px;
  }
}