:root {
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: #19372b;
  background: #fafbf9;
  font-size: 16px;
  font-synthesis: none;
  --green: #185441;
  --muted: #758179;
  --line: #e0e6e0;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #96b27b;
  outline-offset: 4px;
}
header {
  max-width: 1120px;
  margin: auto;
  padding: 28px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  font-size: 23px;
  font-weight: 750;
  letter-spacing: -1px;
  display: flex;
  align-items: center;
}
.text-link {
  font-size: 14px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 5px;
}
main {
  max-width: 1048px;
  margin: 34px auto 80px;
  min-height: 65vh;
}
.intro {
  padding: 30px 0 36px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}
.eyebrow {
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 650;
  color: var(--muted);
}
h1 {
  font-size: 44px;
  line-height: 1.12;
  letter-spacing: -1.7px;
  font-weight: 650;
  margin: 13px 0 17px;
  overflow-wrap: anywhere;
}
p {
  line-height: 1.65;
  color: #657269;
}
.intro p {
  margin: 0;
}
.primary,
.secondary {
  min-height: 46px;
  padding: 12px 21px;
  border-radius: 9px;
  border: 1px solid var(--green);
  font-weight: 600;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
}
.primary {
  background: var(--green);
  color: white;
}
.secondary {
  background: transparent;
  color: var(--green);
  border-color: #ced9cf;
}
.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 32px 0 23px;
  gap: 16px;
}
.toolbar p {
  font-size: 14px;
  margin: 0;
}
.filter {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: white;
  color: var(--green);
  font-size: 14px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 34px 24px;
}
.card {
  min-width: 0;
}
.card-button {
  border: 0;
  background: none;
  padding: 0;
  width: 100%;
  text-align: left;
  color: inherit;
}
.photo {
  aspect-ratio: 1.15;
  border-radius: 13px;
  background: #edf0ea;
  display: grid;
  place-items: center;
  overflow: hidden;
  position: relative;
}
.photo img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  transition: transform 0.2s;
}
.no-photo {
  font-size: 14px;
  color: #8c998d;
}
.card-title {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
  margin-top: 14px;
}
.card-title h2 {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
  margin: 0;
  overflow-wrap: anywhere;
}
.price {
  font-size: 16px;
  font-weight: 700;
}
.card p {
  margin: 7px 0 0;
  font-size: 13px;
}
.item-description {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.owner-note {
  margin-top: 20px;
  border: 1px solid #d9e3d7;
  background: #f0f5ed;
  padding: 16px 18px;
  border-radius: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.owner-note p {
  font-size: 14px;
  margin: 0;
}
.mini {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}
.empty {
  border: 1px dashed #cfdaca;
  border-radius: 14px;
  text-align: center;
  padding: 70px 24px;
  margin: 26px 0;
}
.empty h2 {
  font-size: 22px;
  margin: 0 0 10px;
}
.empty p {
  max-width: 420px;
  margin: 0 auto 24px;
}
.welcome {
  max-width: 650px;
  margin: 45px auto;
  text-align: center;
  padding: 25px 15px;
}
.welcome h1 {
  font-size: 54px;
  line-height: 1.12;
  max-width: 550px;
  margin: 20px auto;
}
.welcome p {
  max-width: 425px;
  margin: 0 auto 30px;
  font-size: 18px;
}
.welcome .mini {
  margin-top: 20px;
  font-size: 13px;
}
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 55px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.steps div {
  font-size: 14px;
  text-align: left;
}
.steps span {
  display: block;
  color: #7b927d;
  font-size: 12px;
  margin-bottom: 12px;
}
.sale-row {
  padding: 25px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}
.sale-row h2 {
  font-size: 20px;
  margin: 0 0 8px;
}
.sale-row p {
  font-size: 14px;
  margin: 0;
}
footer {
  max-width: 1048px;
  margin: 0 auto;
  padding: 28px 0;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: #879286;
  font-size: 12px;
}
footer span:first-child {
  font-weight: 700;
}
dialog {
  border: 0;
  border-radius: 18px;
  padding: 32px;
  width: min(520px, calc(100% - 24px));
  max-height: 92dvh;
  box-shadow: 0 20px 100px #162e3030;
  color: #19372b;
}
dialog::backdrop {
  background: #12241e77;
  backdrop-filter: blur(3px);
}
.close {
  position: absolute;
  top: 14px;
  right: 14px;
  border: 0;
  background: #ffffffee;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 25px;
  color: #42554a;
  z-index: 1;
}
dialog h2 {
  font-size: 25px;
  margin: 5px 30px 22px 0;
  letter-spacing: -0.5px;
}
form label {
  display: block;
  font-size: 14px;
  font-weight: 550;
  margin: 20px 0 8px;
}
form input,
form textarea,
form select,
.copy-input {
  width: 100%;
  padding: 12px 13px;
  border: 1px solid #d4ded3;
  border-radius: 8px;
  background: white;
  color: inherit;
  min-height: 46px;
}
form textarea {
  min-height: 110px;
  resize: vertical;
}
form .primary {
  margin-top: 26px;
  width: 100%;
}
.form-error {
  color: #ac3b26;
  font-size: 14px;
  line-height: 1.5;
}
.form-error:empty {
  display: none;
}
.helper {
  font-size: 12px;
  color: #73826e;
  margin: 7px 0 0;
  line-height: 1.5;
}
.detail-photo {
  margin: -32px -32px 26px;
  border-radius: 18px 18px 0 0;
}
.detail-title {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 20px;
}
.detail-title h2 {
  margin: 0;
}
.description {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.detail .primary {
  width: 100%;
  margin-top: 10px;
}
.share-row {
  display: flex;
  gap: 8px;
  margin: 15px 0;
}
.share-row input {
  min-width: 0;
  font-size: 14px;
}
.loading {
  padding: 100px 0;
  text-align: center;
  color: var(--muted);
}
#toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translate(-50%, 100px);
  transition: transform 0.2s;
  background: #193f2e;
  color: white;
  font-size: 14px;
  padding: 14px 22px;
  border-radius: 9px;
  max-width: 90%;
  z-index: 5;
  pointer-events: none;
}
#toast.visible {
  transform: translate(-50%, 0);
}
@media (max-width: 1120px) {
  main,
  footer {
    margin-left: 36px;
    margin-right: 36px;
  }
}
@media (max-width: 650px) {
  header {
    padding: 20px;
  }
  .brand {
    font-size: 21px;
  }
  main {
    margin: 12px 20px 60px;
  }
  .intro {
    align-items: start;
    flex-direction: column;
    padding-top: 22px;
    gap: 20px;
  }
  h1 {
    font-size: 34px;
    letter-spacing: -1px;
    margin: 12px 0;
  }
  .intro p {
    font-size: 14px;
  }
  .intro .actions {
    width: 100%;
  }
  .intro .actions > * {
    flex: 1;
  }
  .grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px 15px;
  }
  .photo {
    aspect-ratio: 1;
    border-radius: 10px;
  }
  .card-title {
    display: block;
    margin-top: 11px;
  }
  .card-title h2 {
    font-size: 15px;
  }
  .toolbar {
    margin-top: 25px;
  }
  .toolbar p {
    font-size: 13px;
  }
  .filter {
    font-size: 13px;
  }
  .owner-note {
    align-items: start;
    flex-direction: column;
    gap: 9px;
    padding: 14px;
  }
  .owner-note p {
    font-size: 13px;
  }
  .welcome {
    margin: 35px auto;
    padding: 12px 0;
  }
  .welcome h1 {
    font-size: 43px;
    letter-spacing: -1.5px;
  }
  .welcome p {
    font-size: 16px;
  }
  .steps {
    gap: 14px;
    margin-top: 42px;
  }
  .steps div {
    font-size: 13px;
    line-height: 1.6;
  }
  .sale-row {
    align-items: start;
    flex-direction: column;
    gap: 14px;
  }
  footer {
    margin: 0 20px;
    font-size: 12px;
    line-height: 1.5;
  }
  dialog {
    padding: 25px;
  }
  .detail-photo {
    margin: -25px -25px 24px;
  }
  .detail-title {
    flex-direction: column;
    gap: 12px;
  }
  .share-row {
    flex-direction: column;
  }
  .empty {
    padding: 50px 18px;
  }
  .eyebrow {
    font-size: 12px;
  }
}

.brand-logo {
  width: 76px;
  height: 51px;
  object-fit: contain;
  display: block;
}
.brand {
  gap: 7px;
  white-space: nowrap;
}
@media (max-width: 650px) {
  .brand-logo {
    width: 64px;
    height: 43px;
  }
}
.login-panel {
  max-width: 470px;
  margin: 55px auto;
  padding: 15px 0;
}
.login-panel h1 {
  font-size: 36px;
}
.login-panel .actions {
  margin-top: 25px;
}
.check-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
}
form .check-label input {
  width: 20px;
  min-height: 20px;
  height: 20px;
  accent-color: var(--green);
}
.compact {
  min-height: 40px;
  padding: 8px 12px;
}
.list-layout {
  display: block;
}
.list-layout .card {
  border-bottom: 1px solid var(--line);
}
.list-layout .card-button {
  display: grid;

  align-items: center;
}
.list-layout .photo {
  width: 110px;
  grid-row: 1/4;
}
.list-layout .card-title {
  margin-top: 0;
  grid-column: 2/4;
  align-items: center;
}
.list-layout .card p {
  grid-column: 2/4;
}
.login-panel input#login-code {
  font-size: 24px;
  letter-spacing: 8px;
}
@media (max-width: 650px) {
  .list-layout .card-button {
    grid-template-columns: 85px 1fr;
    gap: 0 14px;
  }
  .list-layout .photo {
    width: 85px;
  }
  .list-layout .card-title {
    grid-column: 2;
    display: block;
  }
  .list-layout .card p {
    grid-column: 2;
  }
  .toolbar {
    align-items: start;
  }
  .toolbar > .actions {
    gap: 6px;
  }
  .filter,
  .compact {
    font-size: 12px;
  }
  .login-panel {
    margin: 30px auto;
  }
  .login-panel h1 {
    font-size: 30px;
  }
}
.location-section {
  margin: 24px 0;
}
.location-section h2 {
  font-size: 1.1rem;
}
.map-circle {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 140px;
  height: 140px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: rgba(24, 84, 65, 0.18);
  border: 2px solid rgba(24, 84, 65, 0.6);
  pointer-events: none;
}
#create-list-form > label {
  margin-top: 16px;
}
.photo-thumbs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  grid-column: 1/-1;
  margin: 12px 0;
}
.photo-thumbs img {
  width: 76px;
  height: 76px;
  object-fit: cover;
  border-radius: 8px;
}
.thumb {
  padding: 0;
  border: 1px solid #d8e2dc;
  background: white;
  border-radius: 8px;
  overflow: hidden;
}
.thumb span {
  display: block;
  font-size: 11px;
}
.contact-text {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.contact-fields {
  border: 0;
  padding: 0;
  margin: 20px 0;
  min-width: 0;
}
.contact-fields legend {
  font-weight: 600;
}
.contact-list {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 32px;
}
.contact-list > div {
  min-width: 0;
  max-width: 100%;
}
.contact-list dt {
  font-size: 13px;
  color: #5b6b61;
}
.contact-list dd {
  margin: 4px 0 0;
}
.settings-icon {
  min-width: 44px;
  min-height: 44px;
  padding: 8px;
  font-size: 22px;
  line-height: 1;
}
.draft-actions {
  margin: 16px 0;
}

.sale-navigation {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin: 0 0 24px;
}
.sale-row-link {
  color: inherit;
  text-decoration: none;
  transition:
    transform 0.18s,
    box-shadow 0.18s;
  cursor: pointer;
}
.sale-row-link:hover,
.sale-row-link:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px #29483618;
}
.status-available {
  background: #f2f6e9;
}
.status-hold {
  background: #f1f2f3;
}
.status-sold {
  background: #faeeee;
}
.old-price {
  color: #6e736e;
  font-size: 0.8em;
  margin-right: 6px;
}
.item-entry-row {
  padding: 18px;
  border: 1px solid #dce4d7;
  border-radius: 12px;
  margin: 16px 0;
  background: #f8faf5;
}
@media (prefers-reduced-motion: reduce) {
  .sale-row-link {
    transition: none;
  }
}
.card.status-available,
.card.status-hold,
.card.status-sold {
  border-radius: 14px;
  padding: 12px;
}
.status-sold .photo img {
  opacity: 0.65;
}
.price {
  white-space: normal;
}
.old-price {
  display: inline-block;
}
.item-entry-row h3 {
  margin-top: 0;
}

.release-version {
  font-size: 12px;
  color: var(--muted);
  margin-left: 6px;
}
.free-map-wrap {
  position: relative;
  height: 300px;
  border-radius: 14px;
  overflow: hidden;
  background: #eef0ee;
}
.free-map {
  width: 100%;
  height: 100%;
}
.free-map-wrap .map-circle {
  z-index: 1;
}
.map-error {
  position: absolute;
  bottom: 36px;
  left: 12px;
  right: 12px;
  background: #fff;
  padding: 8px;
  border-radius: 6px;
  font-size: 12px;
  z-index: 3;
}
.maplibregl-ctrl-attrib {
  font-size: 11px !important;
}

.sale-row.sale-row-link {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 12px;
  margin: 12px 0;
  border: 1px solid #d8e2db;
  border-radius: 10px;
  background: #f8fbf9;
  color: #183a2d;
  transition:
    background 0.18s,
    transform 0.18s,
    box-shadow 0.18s;
}
.sale-row.sale-row-link h2 {
  font-family: Arial, sans-serif;
  font-size: 18px;
  font-weight: 500;
  margin: 0;
  line-height: 1.3;
  letter-spacing: normal;
}
.sale-row.sale-row-link p {
  margin: 6px 0 0;
  font-size: 13px;
}
.sale-row-chevron {
  font-size: 24px;
  line-height: 1;
  flex-shrink: 0;
  font-weight: 400;
}
.sale-row.sale-row-link:hover,
.sale-row.sale-row-link:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 7px 16px #173a2b20;
  background: #e6f1e9;
}
@media (prefers-reduced-motion: reduce) {
  .sale-row.sale-row-link {
    transition: none;
  }
}

/* Preserve the complete image in list, grid and detail views. */
.photo img,
.list-layout .photo img,
.photo-thumbs img {
  object-fit: contain;
}
.card-button:hover img {
  transform: none;
}
.detail-photo {
  aspect-ratio: auto;
  display: block;
  background: #f2f4ef;
}
.detail-photo img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 60vh;
  object-fit: contain;
}
.item-price-status {
  justify-content: flex-end;

  flex-wrap: wrap;
  margin-top: 10px;
}
.item-status-select,
.item-status-label {
  border: 1px solid #b9cbb8;
  border-radius: 7px;
  background: #ffffffc9;
  color: #284334;
  padding: 7px 9px;
}
.item-status-select {
  min-height: 36px;
  cursor: pointer;
}
.list-layout .card {
  position: relative;
  padding-right: 180px;
}
.list-layout .item-price-status {
  right: 14px;
  top: 14px;
}
.detail-title .item-price-status {
  margin: 0;
}
@media (max-width: 650px) {
  .list-layout .card {
    padding-right: 12px;
  }
  .list-layout .item-price-status {
    position: static;
    justify-content: flex-end;
    margin-top: 8px;
  }
}

.item-price-status {
  display: grid;
  grid-template-columns: 126px minmax(100px, 1fr);
  align-items: center;
  gap: 12px;
}
.item-price-status .price {
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  border-left: 1px solid #d2ddc8;
  padding-left: 12px;
  line-height: 1.5;
}
.item-price-status .item-status-select,
.item-price-status .item-status-label {
  width: 126px;
  min-height: 38px;
  text-align: center;
  box-sizing: border-box;
}
.list-layout .card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 16px;
  align-items: center;
  padding: 16px;
  margin: 12px 0;
  border-radius: 13px;
}
.list-layout .card-button {
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 0 16px;
}
.list-layout .card-title,
.list-layout .card p {
  grid-column: 2;
}
.list-layout .item-price-status {
  position: static;
  margin: 0;
  width: 100%;
  grid-template-columns: 126px minmax(0, 1fr);
}
.grid:not(.list-layout) .item-price-status {
  margin-top: auto;
  padding-top: 10px;
  grid-template-columns: 126px minmax(0, 1fr);
}
.grid:not(.list-layout) .card {
  display: flex;
  flex-direction: column;
}
.detail-title .item-price-status {
  min-width: 230px;
  grid-template-columns: 126px minmax(0, 1fr);
}
@media (max-width: 760px) {
  .list-layout .card {
    grid-template-columns: minmax(0, 1fr);
  }
  .list-layout .item-price-status {
    margin-top: 8px;
    grid-template-columns: 126px minmax(0, 1fr);
  }
  .list-layout .item-price-status .price {
    border-left: 0;
  }
  .grid:not(.list-layout) {
    grid-template-columns: 1fr;
  }
  .item-price-status .price {
    font-size: 16px;
  }
  .detail-title {
    flex-wrap: wrap;
  }
  .detail-title .item-price-status {
    margin-left: auto;
    max-width: 100%;
  }
}
@media (max-width: 400px) {
  .item-price-status .price {
    white-space: normal;
  }
  .item-price-status .price del {
    white-space: nowrap;
  }
  .list-layout .card-button {
    grid-template-columns: 85px minmax(0, 1fr);
    gap: 0 12px;
  }
}

.item-status-select,
.item-status-label {
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}
#language-picker {
  font: inherit;
  font-size: 13px;
  color: var(--green, #185441);
  border: 1px solid #dce4de;
  border-radius: 10px;
  padding: 8px 10px;
  background: white;
  width: auto;
  margin: 0;
}
.date-mode,
.page-dates {
  border: 1px solid #dce4de;
  border-radius: 12px;
  padding: 16px;
  margin: 20px 0;
  min-width: 0;
}
.date-mode legend,
.page-dates legend {
  font-weight: 500;
  padding: 0 6px;
}
.date-mode .check-label {
  margin: 10px 0;
}
[hidden] {
  display: none !important;
}
@media (max-width: 480px) {
  .header-actions {
    gap: 10px;
  }
  #language-picker {
    max-width: 105px;
    padding: 7px;
  }
  .header-actions .text-link {
    font-size: 13px;
  }
}
@media (max-width: 480px) {
  header {
    flex-wrap: wrap;
    gap: 12px;
  }
  .header-actions {
    margin-left: auto;
  }
}

/* Keep navigation and list actions as separate keyboard-accessible controls. */
.sale-list-entry { margin: 12px 0; }
.sale-list-main { display: flex; align-items: center; gap: 8px; }
.sale-list-main .sale-row.sale-row-link { flex: 1; min-width: 0; margin: 0; touch-action: pan-y; }
.sale-list-main h2 { overflow-wrap: anywhere; }
.sale-menu-toggle { min-width: 44px; min-height: 44px; font-size: 24px; }
.sale-list-actions { display: flex; flex-wrap: wrap; gap: 8px; padding: 10px 0; }
.sale-list-actions[hidden] { display: none; }
.sale-list-actions button { min-height: 44px; }
.pinned-label { font-weight: 700; }
button.secondary.danger { color: #9c2424; border-color: #b45151; }
button.primary.danger { color: #fff; background: #9c2424; }

.photo-drop-zone {
  border: 2px dashed #a2b7a8;
  border-radius: 10px;
  padding: 14px;
  background: #f8fbf9;
}
.photo-drop-zone.drag-over,
.photo-drop-zone:focus-within {
  border-color: #183a2d;
  background: #e6f1e9;
}
.photo-drop-zone[aria-busy="true"] { opacity: 0.65; }
.photo-drop-zone input { max-width: 100%; }
