/* LUUPIGO objects-map-first-home-o5b-20260722-01 */
:root {
  --purple: #6f35dc;
  --purple-dark: #4c1d95;
  --green: #16b85f;
  --blue: #1769e8;
  --red: #f04455;
  --safe: #0f9f6e;
  --ink: #06152f;
  --muted: #60708a;
  --line: #dbe6f5;
  --surface: #ffffff;
  --soft: #f5f8ff;
  --shadow: 0 22px 70px rgba(17, 24, 39, .16);
}

* { box-sizing: border-box; }

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: #eaf7f8;
}

button,
input,
a {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

.o5b-app {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
}

.o5b-map-shell {
  position: relative;
  width: min(430px, 100%);
  height: min(900px, calc(100vh - 56px));
  min-height: 720px;
  overflow: hidden;
  border-radius: 32px;
  background: white;
  box-shadow: var(--shadow);
}

.o5b-map {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: #e7eef8;
}

.o5b-topbar,
.o5b-search,
.o5b-filters,
.o5b-sheet,
.o5b-actions,
.o5b-bottom {
  position: absolute;
  z-index: 5;
}

.o5b-topbar {
  top: 18px;
  left: 18px;
  right: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.o5b-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.9);
  box-shadow: 0 12px 28px rgba(15,23,42,.1);
}

.o5b-brand span {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: linear-gradient(135deg, #8b5cf6, #6d28d9);
}

.o5b-top-link {
  padding: 11px 14px;
  border-radius: 999px;
  color: white;
  font-weight: 850;
  background: var(--purple);
  box-shadow: 0 12px 28px rgba(111,53,220,.25);
}

.o5b-search {
  top: 78px;
  left: 18px;
  right: 18px;
  height: 54px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 0 12px 0 16px;
  border-radius: 19px;
  background: rgba(255,255,255,.94);
  border: 1px solid rgba(219,230,245,.86);
  box-shadow: 0 14px 34px rgba(15,23,42,.12);
}

.o5b-search input {
  width: 100%;
  border: 0;
  outline: 0;
  min-width: 0;
  font-weight: 750;
  color: var(--ink);
  background: transparent;
}

.o5b-search button {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 14px;
  color: var(--purple);
  background: #f3edff;
  font-weight: 900;
}

.o5b-filters {
  top: 144px;
  left: 18px;
  right: 18px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.o5b-filters::-webkit-scrollbar { display: none; }

.o5b-filters button {
  flex: 0 0 auto;
  border: 1px solid rgba(219,230,245,.92);
  border-radius: 999px;
  padding: 10px 14px;
  color: #273854;
  background: rgba(255,255,255,.9);
  font-weight: 850;
  box-shadow: 0 10px 24px rgba(15,23,42,.08);
}

.o5b-filters button.active {
  border-color: transparent;
  color: white;
  background: var(--purple);
}

.o5b-sheet {
  left: 12px;
  right: 12px;
  bottom: 92px;
  max-height: 44%;
  padding: 10px 12px 14px;
  overflow: hidden;
  border-radius: 28px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 -12px 44px rgba(15,23,42,.16);
  backdrop-filter: blur(18px);
}

.o5b-sheet-handle {
  width: 48px;
  height: 5px;
  margin: 0 auto 12px;
  border-radius: 999px;
  background: #d9e2f1;
}

.o5b-sheet-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
  padding: 0 4px 10px;
}

.o5b-sheet h1 {
  margin: 0;
  font-size: 22px;
  line-height: 1.05;
}

.o5b-sheet p {
  margin: 5px 0 0;
  color: var(--muted);
  font-weight: 700;
  font-size: 12px;
}

.o5b-sheet-head a {
  color: var(--purple);
  font-weight: 850;
  white-space: nowrap;
}

.o5b-list {
  display: grid;
  gap: 10px;
  max-height: calc(44vh - 92px);
  overflow: auto;
  padding: 0 2px 4px;
}

.o5b-card {
  display: grid;
  grid-template-columns: 66px 1fr auto;
  gap: 12px;
  align-items: center;
  min-height: 86px;
  padding: 10px;
  border: 1px solid #e5dcff;
  border-radius: 18px;
  background: white;
}

.o5b-thumb {
  width: 66px;
  height: 66px;
  border-radius: 16px;
  overflow: hidden;
  display: grid;
  place-items: center;
  color: var(--purple);
  background: #f2ecff;
  font-size: 24px;
  font-weight: 950;
}

.o5b-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.o5b-card h2 {
  margin: 0 0 4px;
  font-size: 14px;
  line-height: 1.15;
}

.o5b-card small,
.o5b-card span {
  display: block;
  color: var(--muted);
  font-weight: 700;
  font-size: 11px;
}

.o5b-badge {
  display: inline-flex !important;
  width: fit-content;
  margin-bottom: 5px;
  padding: 4px 8px;
  border-radius: 999px;
  color: #1d3a85 !important;
  background: #eaf1ff;
}

.o5b-badge.is-lost {
  color: #991b1b !important;
  background: #ffe4e8;
}

.o5b-badge.is-found {
  color: #06643d !important;
  background: #ddfaeb;
}

.o5b-badge.is-deposited {
  color: #075985 !important;
  background: #e0f2fe;
}

.o5b-card a {
  color: var(--blue);
  font-weight: 900;
  font-size: 12px;
  white-space: nowrap;
}

.o5b-empty {
  padding: 20px;
  border: 1px dashed #d9cafd;
  border-radius: 18px;
  text-align: center;
  color: var(--muted);
  background: #fbf8ff;
}

.o5b-actions {
  left: 18px;
  right: 18px;
  bottom: 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.o5b-actions button,
.o5b-actions a {
  min-height: 54px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 17px;
  color: white;
  font-weight: 950;
  box-shadow: 0 16px 35px rgba(15,23,42,.18);
}

.o5b-seen {
  background: var(--green);
}

.o5b-publish {
  background: linear-gradient(135deg, #7c3aed, #5b21b6);
}

.o5b-bottom {
  display: none;
}

.objects-map-marker {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 14px 14px 14px 4px;
  transform: rotate(-45deg);
  color: white;
  border: 3px solid white;
  box-shadow: 0 10px 20px rgba(15,23,42,.22);
}

.objects-map-marker span {
  transform: rotate(45deg);
  font-size: 15px;
}

.objects-map-marker.is-lost { background: var(--red); }
.objects-map-marker.is-found { background: var(--blue); }
.objects-map-marker.is-deposited { background: var(--safe); }
.objects-map-marker.is-returned { background: var(--purple); }

.objects-user-marker {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #1677ff;
  border: 5px solid rgba(255,255,255,.96);
  box-shadow: 0 0 0 14px rgba(22,119,255,.16);
}

.leaflet-popup-content {
  margin: 12px;
  min-width: 170px;
}

.leaflet-popup-content strong,
.leaflet-popup-content small,
.leaflet-popup-content a {
  display: block;
}

.leaflet-popup-content strong {
  margin-bottom: 4px;
  font-weight: 900;
}

.leaflet-popup-content small {
  color: var(--muted);
  font-weight: 700;
}

.leaflet-popup-content a {
  margin-top: 8px;
  color: var(--blue);
  font-weight: 900;
}

.o5b-dialog {
  width: min(420px, calc(100vw - 36px));
  border: 0;
  border-radius: 24px;
  padding: 0;
  box-shadow: var(--shadow);
}

.o5b-dialog::backdrop {
  background: rgba(6,21,47,.45);
}

.o5b-dialog form {
  padding: 24px;
}

.o5b-dialog h2 {
  margin: 0 0 8px;
}

.o5b-dialog p {
  color: var(--muted);
  font-weight: 700;
  line-height: 1.45;
}

.o5b-dialog-close {
  float: right;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 13px;
  background: #f1f5f9;
  font-weight: 900;
}

.o5b-dialog-primary {
  min-height: 48px;
  display: grid;
  place-items: center;
  margin-top: 16px;
  border-radius: 15px;
  color: white;
  background: var(--green);
  font-weight: 950;
}

@media (min-width: 900px) {
  .o5b-map-shell {
    width: min(1180px, calc(100vw - 56px));
    height: min(820px, calc(100vh - 56px));
    min-height: 680px;
    border-radius: 26px;
  }

  .o5b-sheet {
    left: auto;
    top: 192px;
    right: 22px;
    bottom: 96px;
    width: 430px;
    max-height: none;
  }

  .o5b-list {
    max-height: calc(100vh - 420px);
  }

  .o5b-actions {
    left: 22px;
    right: auto;
    bottom: 28px;
    width: 430px;
  }

  .o5b-bottom {
    display: none;
  }
}

@media (max-width: 560px) {
  .o5b-app {
    padding: 0;
  }

  .o5b-map-shell {
    width: 100vw;
    height: 100vh;
    min-height: 100vh;
    border-radius: 0;
  }

  .o5b-topbar {
    top: max(12px, env(safe-area-inset-top));
  }

  .o5b-search {
    top: max(72px, calc(env(safe-area-inset-top) + 62px));
  }

  .o5b-filters {
    top: max(136px, calc(env(safe-area-inset-top) + 126px));
  }

  .o5b-actions {
    bottom: max(82px, calc(72px + env(safe-area-inset-bottom)));
  }

  .o5b-sheet {
    bottom: max(148px, calc(134px + env(safe-area-inset-bottom)));
    max-height: 39%;
  }

  .o5b-bottom {
    left: 0;
    right: 0;
    bottom: 0;
    min-height: 70px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    padding: 8px 14px max(8px, env(safe-area-inset-bottom));
    background: rgba(255,255,255,.96);
    border-top: 1px solid #e5edf7;
  }

  .o5b-bottom a {
    display: grid;
    place-items: center;
    gap: 3px;
    color: #64748b;
    font-size: 18px;
    font-weight: 850;
  }

  .o5b-bottom span {
    font-size: 11px;
  }

  .o5b-bottom a.active {
    color: var(--purple);
  }
}

/* LUUPIGO objects-map-first-o5b1-polish-20260722-01 */
.o5b-sheet {
  border: 1px solid rgba(226, 232, 240, .9);
}

.o5b-sheet-head a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: #f2ecff;
}

.o5b-card {
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.o5b-card:hover {
  transform: translateY(-1px);
  border-color: rgba(111, 53, 220, .34);
  box-shadow: 0 12px 30px rgba(15, 23, 42, .08);
}

.o5b-card a,
.leaflet-popup-content a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 10px;
  border-radius: 999px;
  color: #ffffff !important;
  background: #1769e8;
}

.leaflet-popup {
  margin-bottom: 12px;
}

.leaflet-popup-content-wrapper {
  border-radius: 18px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, .22);
}

.o5b-actions button,
.o5b-actions a {
  min-height: 50px;
}

@media (min-width: 900px) {
  .o5b-sheet {
    top: 214px;
    right: 24px;
    bottom: 116px;
    width: min(420px, calc(100% - 48px));
    max-height: none;
  }

  .o5b-list {
    max-height: calc(100vh - 455px);
  }

  .o5b-actions {
    bottom: 26px;
    width: 420px;
  }

  .o5b-filters {
    max-width: 520px;
  }

  .o5b-search {
    max-width: 520px;
  }
}

@media (max-width: 560px) {
  .o5b-sheet {
    max-height: 37%;
  }

  .o5b-card {
    grid-template-columns: 58px 1fr auto;
  }

  .o5b-thumb {
    width: 58px;
    height: 58px;
  }
}

/* LUUPIGO objects-home-sheet-premium-o5e-20260722-01 */
.o5b-sheet {
  transition: max-height .22s ease, height .22s ease, transform .22s ease;
}

.o5b-sheet.is-expanded {
  max-height: 70% !important;
}

.o5b-sheet.is-expanded .o5b-list {
  max-height: calc(70vh - 132px) !important;
}

.o5b-sheet-handle {
  cursor: pointer;
}

.o5b-sheet-head {
  align-items: center;
}

.o5b-sheet-head h1 {
  font-size: 21px;
}

.o5b-sheet-head a::after {
  content: " 🗺";
}

.o5b-card {
  grid-template-columns: 78px 1fr auto;
  min-height: 98px;
  padding: 10px;
  border-radius: 19px;
}

.o5b-thumb {
  width: 78px;
  height: 78px;
  border-radius: 18px;
  font-size: 25px;
}

.o5b-card h2 {
  font-size: 15px;
}

.o5b-card small {
  line-height: 1.28;
}

.o5b-distance {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  min-width: 58px;
  padding: 0 9px;
  border-radius: 999px;
  color: #53647f !important;
  background: #f1f5f9;
  font-weight: 900;
  font-size: 12px !important;
}

.o5b-list-more {
  min-height: 42px;
  display: grid;
  place-items: center;
  color: var(--purple);
  font-weight: 950;
  border-radius: 15px;
  background: #f6f1ff;
}

@media (min-width: 900px) {
  .o5b-sheet {
    width: 470px;
    bottom: 118px;
  }

  .o5b-actions {
    width: 470px;
  }

  .o5b-sheet.is-expanded {
    top: 120px;
  }
}

@media (max-width: 560px) {
  .o5b-sheet.is-expanded {
    max-height: 72% !important;
  }

  .o5b-card {
    grid-template-columns: 68px 1fr;
  }

  .o5b-card > a,
  .o5b-distance {
    grid-column: 2;
    justify-self: start;
    margin-top: 4px;
  }

  .o5b-thumb {
    width: 68px;
    height: 68px;
  }
}
