/* ParcRo marketplace refresh — compact, photo-first, map-balanced. */
:root {
  --ink: #12352f;
  --deep: #0d3932;
  --green: #07876f;
  --lime: #d8ff72;
  --paper: #f4f7f5;
  --line: #d8e3df;
}

.topbar {
  height: 72px;
  box-shadow: 0 1px 0 rgba(18, 53, 47, .04);
}

.intro {
  max-width: none;
  min-height: 310px;
  padding: 54px max(24px, calc((100vw - 1240px) / 2)) 92px;
  grid-template-columns: minmax(0, 650px) minmax(260px, 410px);
  align-items: center;
  justify-content: space-between;
  gap: 70px;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(7, 38, 33, .94) 0%, rgba(7, 38, 33, .78) 48%, rgba(7, 38, 33, .28) 100%),
    url('/assets/parking/covered.jpg') center 58% / cover;
}

.intro .kicker { color: var(--lime); }
.intro h1 { font-size: clamp(2.65rem, 4.5vw, 4.3rem); }
.intro h1 em { color: var(--lime); }
.intro > p { color: rgba(255, 255, 255, .86); font-size: 1.08rem; }

.search-shell {
  max-width: 1240px;
  margin-top: -53px;
  padding-bottom: 34px;
  position: relative;
  z-index: 4;
}

.searchbar {
  border: 0;
  border-radius: 18px;
  padding: 9px;
  box-shadow: 0 22px 55px rgba(13, 57, 50, .2);
}

.quick-filters { padding: 0 8px; }

.intent-switch {
  max-width: 1240px;
  margin: 8px auto 18px;
  padding: 5px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #edf3f0;
}
.intent-switch button { padding: 12px 16px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); font: inherit; font-weight: 800; cursor: pointer; }
.intent-switch button.active { background: #fff; color: var(--ink); box-shadow: 0 5px 16px rgba(13, 57, 50, .09); }

.workspace {
  max-width: 1240px;
  margin-bottom: 72px;
  grid-template-columns: minmax(520px, 1.08fr) minmax(410px, .92fr);
  gap: 24px;
  align-items: start;
}

.results-panel { min-height: 0; }
.results-head { margin-top: 4px; }
.listing-grid { grid-template-columns: 1fr; gap: 12px; }

.card {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  min-height: 150px;
  border-radius: 16px;
}

.card:hover { transform: translateY(-2px); }
.wanted-card { border-color: #b5d9c8; }
.wanted-card .card-photo { background: linear-gradient(145deg, #dff2e9, #badccb); color: var(--green); }

.card-photo {
  height: 100%;
  min-height: 150px;
  background-position: center;
  background-size: cover;
}

.card-photo.has-photo > span { display: none; }
.card-body { padding: 18px 19px 15px; display: flex; flex-direction: column; }
.card h3 { font-size: 1.05rem; margin: 6px 0; }
.address { font-size: .8rem; }
.card-footer { margin-top: auto; }

.map-panel {
  top: 88px;
  height: 560px;
  min-height: 0;
  border-radius: 18px;
  box-shadow: 0 16px 45px rgba(13, 57, 50, .09);
}

.map-toolbar { height: 48px; }
.map-note { padding: 11px 13px; }
.maplibregl-ctrl-bottom-right { bottom: 78px; }

.photo-upload {
  min-height: 92px;
  padding: 17px;
  border: 1.5px dashed #a9c4ba;
  border-radius: 13px;
  background: #f4f9f7;
  cursor: pointer;
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.feature-picker { border: 0; padding: 0; margin: 0; }
.feature-picker legend { margin-bottom: 8px; font-size: .77rem; font-weight: 700; }
.feature-picker > div { display: flex; flex-wrap: wrap; gap: 8px; }
.feature-picker label { display: block; cursor: pointer; }
.feature-picker input { position: absolute; opacity: 0; pointer-events: none; }
.feature-picker span { display: block; padding: 9px 12px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--muted); font-size: .76rem; font-weight: 700; transition: .18s ease; }
.feature-picker input:checked + span { border-color: var(--green); background: var(--mint); color: var(--green); box-shadow: inset 0 0 0 1px var(--green); }
.feature-picker input:focus-visible + span { outline: 3px solid rgba(8, 126, 104, .2); outline-offset: 2px; }
.intent-picker { border: 0; padding: 0; margin: 0; }
.intent-picker legend { margin-bottom: 8px; font-size: .77rem; font-weight: 700; }
.intent-picker > div { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; }
.intent-picker label { cursor: pointer; }
.intent-picker input { position: absolute; opacity: 0; }
.intent-picker span { display: flex; flex-direction: column; gap: 3px; padding: 13px; border: 1px solid var(--line); border-radius: 11px; background: #fff; }
.intent-picker small { color: var(--muted); font-weight: 500; }
.intent-picker input:checked + span { border-color: var(--green); background: var(--mint); color: var(--green); box-shadow: inset 0 0 0 1px var(--green); }
.intent-picker input:focus-visible + span { outline: 3px solid rgba(8, 126, 104, .2); outline-offset: 2px; }
.map-price-marker.wanted { background: #e1f5a8; color: var(--ink); }
.map-price-marker.wanted em { display: block; margin-bottom: 1px; font-size: .54rem; font-style: normal; line-height: 1; text-transform: uppercase; }
.card-features { display: flex; gap: 5px; margin-top: 10px; overflow: hidden; }
.card-features span { padding: 4px 7px; border-radius: 6px; background: #eef6f2; color: var(--green); font-size: .65rem; font-weight: 700; white-space: nowrap; }

.photo-upload span { display: flex; flex-direction: column; gap: 3px; }
.photo-upload small { color: var(--muted); font-weight: 500; }
.photo-upload input { max-width: 210px; padding: 8px !important; background: #fff !important; }
.photo-previews { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.photo-previews:empty { display: none; }
.photo-previews span { overflow: hidden; border-radius: 10px; aspect-ratio: 4 / 3; background: #e4ece8; }
.photo-previews img { width: 100%; height: 100%; object-fit: cover; display: block; }

.detail-gallery {
  height: 280px;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(80%, 1fr);
  gap: 5px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  background: #dce6e2;
}

.detail-gallery img { width: 100%; height: 100%; object-fit: cover; scroll-snap-align: start; }
.auth-switch { border: 0; background: transparent; color: var(--green); cursor: pointer; font: inherit; font-size: .82rem; font-weight: 800; }
.forgot-link { color: var(--muted); }
.cookie-notice { position: fixed; z-index: 1000; left: 22px; right: 22px; bottom: 22px; max-width: 760px; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 19px 20px; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 20px 60px rgba(7,39,34,.22); }
.cookie-notice b { color: var(--ink); }
.cookie-notice p { margin: 5px 0; color: var(--muted); font-size: .82rem; line-height: 1.45; }
.cookie-notice a { color: var(--green); font-size: .78rem; font-weight: 800; }
.cookie-notice.hidden { display: none; }
.cookie-notice button { flex: 0 0 auto; }

@media (max-width: 1050px) {
  .intro { grid-template-columns: 1fr; gap: 18px; min-height: 340px; }
  .intro > p { max-width: 620px; }
  .map-panel { height: 430px; grid-row: auto; }
}

@media (max-width: 720px) {
  html { scroll-padding-top: 64px; }
  body { overflow-x: hidden; }

  .topbar {
    height: 64px;
    padding: 0 14px;
    gap: 10px;
  }
  .brand { gap: 8px; font-size: 1.22rem; }
  .brandmark { width: 32px; height: 32px; border-radius: 10px; }
  .nav-actions { gap: 7px; }
  .nav-actions #favoritesButton { display: none; }
  .nav-actions #accountButton {
    max-width: 145px;
    padding: 9px 11px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: .78rem;
  }

  .intro {
    min-height: 275px;
    padding: 35px 18px 67px;
    gap: 16px;
    align-content: center;
    background-position: 62% center;
  }
  .intro .kicker { margin-bottom: 9px; font-size: .63rem; }
  .intro h1 { font-size: clamp(2rem, 10.5vw, 2.55rem); line-height: 1.06; }
  .intro h1 br { display: none; }
  .intro > p { font-size: .92rem; line-height: 1.55; }

  .search-shell { margin-top: -38px; padding: 0 12px 20px; }
  .searchbar { padding: 6px; border-radius: 15px; box-shadow: 0 15px 38px rgba(13, 57, 50, .19); }
  .searchbar label { padding: 9px 12px; }
  .searchbar .main-search { min-height: 55px; }
  .searchbar .button { min-height: 48px; margin-top: 3px; }
  .quick-filters { margin-top: 9px; padding: 0 2px 3px; }
  .quick-filters span { display: none; }
  .quick-filters button:last-child { margin-left: 0; }

  .intent-switch { margin: 4px 12px 15px; border-radius: 12px; }
  .intent-switch button { padding: 10px 7px; font-size: .74rem; }

  .workspace {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-bottom: 45px;
    padding: 0 12px;
  }
  .map-panel { order: -1; width: 100%; height: 310px; border-radius: 15px; }
  .map-toolbar { left: 10px; right: 10px; top: 10px; height: 44px; }
  .map-note { left: 10px; right: 10px; bottom: 10px; padding: 9px 10px; }
  .map-note > span { width: 31px; height: 31px; }
  .maplibregl-ctrl-bottom-right { bottom: 68px; }

  .results-panel { width: 100%; }
  .results-head { align-items: center; gap: 12px; margin: 2px 0 13px; }
  .results-head h2 { font-size: 1.3rem; }
  .results-head select { max-width: 46%; padding: 9px 26px 9px 10px; }
  .empty { padding: 42px 14px; }

  .card { grid-template-columns: 112px minmax(0, 1fr); min-height: 136px; border-radius: 14px; }
  .card-photo { min-height: 136px; }
  .card-body { min-width: 0; padding: 12px; }
  .card h3 { font-size: .94rem; line-height: 1.28; }
  .place { font-size: .6rem; }
  .card .address { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .card-features { margin-top: 7px; }
  .card-features span:nth-child(n+3) { display: none; }
  .card-footer { margin-top: 9px; padding-top: 9px; }
  .price strong { font-size: 1.06rem; }

  .how { padding: 55px 18px; gap: 30px; }
  .how-copy h2 { font-size: 2rem; }
  .how-copy h2 br { display: none; }
  .steps article { padding: 20px; }
  .owner-cta { margin: 24px 12px 38px; padding: 32px 22px; border-radius: 18px; }
  .owner-cta h2 { font-size: 2rem; }
  .owner-cta h2 br { display: none; }

  footer { padding: 42px 18px 24px; }
  .footer-main { gap: 18px; }
  .footer-main > div { gap: 14px 20px; }
  .legal { margin-top: 26px; gap: 14px; }

  dialog { width: calc(100% - 12px); max-height: 96dvh; border-radius: 16px; }
  .modal-head { padding: 25px 20px 6px; }
  .modal-head h2 { padding-right: 32px; font-size: 1.52rem; }
  .publish-form { padding: 13px 20px 25px; }
  .detail-gallery { height: 225px; }
  .detail-body { padding: 21px 20px 25px; }
  .detail-body h2 { padding-right: 28px; font-size: 1.45rem; }
  .close { right: 11px; top: 11px; }

  .photo-upload { align-items: flex-start; flex-direction: column !important; }
  .photo-upload input { max-width: 100%; width: 100%; }
  .photo-previews { grid-template-columns: repeat(2, 1fr); }
  .cookie-notice { align-items: stretch; flex-direction: column; gap: 11px; left: 9px; right: 9px; bottom: 9px; padding: 15px; border-radius: 14px; }
  .cookie-notice button { width: 100%; }
}

@media (max-width: 390px) {
  .intro h1 { font-size: 2rem; }
  .card { grid-template-columns: 98px minmax(0, 1fr); }
  .card-photo { min-height: 138px; }
  .verified { display: none; }
}
