@import url("base.15e3bbac9986.css");

body { font-family: var(--font-display); }
#preview-banner {
  max-width: 1280px;
  margin: 12px auto 0;
  padding: 12px 18px;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}
#preview-banner a { color: var(--brand-on-dark); text-decoration: underline; }
#preview-banner button {
  padding: 8px 18px;
  border: none;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
#preview-banner button:hover { background: var(--brand-hover); }
#map-container {
  height: 100vh;
  height: 100dvh;
  width: 100%;
  position: relative;
  overflow: hidden;
}
#map { height: 100%; width: 100%; }
.filter-logo { height: 40px; display: block; }
#filter-panel {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--surface);
  padding: 10px 16px;
  border-radius: 16px;
  box-shadow: 0 14px 34px -20px rgba(14,26,47,.35), 0 0 0 1px rgba(14,26,47,.05);
  z-index: 10;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  max-width: calc(100% - 32px);
  gap: 12px;
  white-space: nowrap;
  font-size: 13px;
}
#filter-panel button,
#filter-panel select,
#filter-panel a.back-btn {
  padding: 8px 16px;
  border: 1px solid var(--border-3);
  border-radius: 999px;
  background: var(--surface);
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  color: var(--body-2);
  text-decoration: none;
  transition: background 0.15s;
}
#filter-panel button:hover,
#filter-panel select:hover,
#filter-panel a.back-btn:hover { background: var(--brand-soft); }
#filter-panel .divider { color: var(--border-4); }
.filter-group { display: flex; align-items: center; gap: 8px; }
#filter-panel .offer-btn[data-type="all"].active {
  background: linear-gradient(135deg, var(--brand), var(--rent));
  color: #fff;
  border-color: transparent;
}
#filter-panel .offer-btn[data-type="sell"].active { background: var(--brand); color: #fff; border-color: var(--brand); }
#filter-panel .offer-btn[data-type="rent"].active { background: var(--rent); color: #fff; border-color: var(--rent); }
.gm-style-iw button.gm-ui-hover-effect { display: none !important; }
.info-window { max-width: 280px; font-family: var(--font-display); }
.info-close-btn {
  display: block;
  margin-left: auto;
  margin-bottom: 6px;
  width: 30px;
  height: 30px;
  border: none;
  background: var(--surface-tint);
  border-radius: 50%;
  font-size: 16px;
  line-height: 30px;
  text-align: center;
  cursor: pointer;
  color: var(--muted);
  padding: 0;
}
.info-close-btn:hover { background: var(--brand-soft); }
.info-window h3 { margin-bottom: 8px; font-size: 14px; color: var(--ink); }
.info-window ul { padding-left: 16px; }
.info-window li { margin-bottom: 4px; font-size: 13px; }
.info-window .offer-type { font-size: 11px; font-weight: 700; text-transform: uppercase; color: var(--brand); margin-bottom: 6px; }
.coop-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  color: #b06000;
  background: #fef7e0;
  border: 1px solid #f9e6b8;
  border-radius: 10px;
  padding: 2px 8px;
  margin-bottom: 6px;
}
.account-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  border-radius: 10px;
  padding: 2px 8px;
  margin-bottom: 6px;
}
.account-badge-agency { color: var(--brand); background: var(--brand-soft); }
.account-badge-private { color: var(--body-2); background: var(--surface-tint); border: 1px solid var(--border-3); }
.info-window .price { font-size: 13px; font-weight: 700; color: var(--ink); margin-bottom: 4px; }
.info-window .heading { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.info-window .heading h3 { margin-bottom: 0; }
.info-window .owner { font-size: 12px; color: var(--muted); margin-bottom: 8px; display: flex; align-items: center; flex-wrap: wrap; gap: 4px 6px; }
.info-window .owner a { white-space: nowrap; color: var(--brand); }
.info-window li a { color: var(--brand); text-decoration: underline; }
.agency-logo { width: 36px; height: 36px; border-radius: 6px; object-fit: cover; flex-shrink: 0; }
/* Fixed size regardless of the source photo's dimensions/aspect ratio, so
   a tall/portrait upload can't inflate the whole InfoWindow past the
   viewport (the close button sits above this and would go off-screen). */
.info-window .info-photo { width: 100%; height: 140px; object-fit: cover; border-radius: 8px; margin-bottom: 8px; display: block; }
.info-window .info-list-title { font-size: 12px; font-weight: 700; color: var(--muted); margin-bottom: 6px; }
.info-window .info-compact-list { list-style: none; padding: 0; max-height: 220px; overflow-y: auto; }
.info-window .info-compact-item { padding: 8px 4px; border-top: 1px solid var(--border); cursor: pointer; font-size: 12px; }
.info-window .info-compact-item:first-child { border-top: none; }
.info-window .info-compact-item:hover { background: var(--surface-tint); }
.info-window .info-compact-item .offer-type { display: inline-block; font-size: 10px; font-weight: 700; text-transform: uppercase; color: var(--brand); margin: 0 6px 0 0; }
.info-window .info-compact-item .compact-address { font-weight: 600; color: var(--ink); }
.info-window .info-compact-item .compact-price { display: block; color: var(--body-2); margin-top: 2px; }
.info-window .info-compact-item .account-badge { margin: 0 6px 0 0; margin-bottom: 0; }
.info-window .info-back-btn { margin-top: 4px; padding: 5px 10px; font-family: var(--font-display); font-size: 12px; border: 1px solid var(--border-3); border-radius: 999px; background: var(--surface); color: var(--body-2); cursor: pointer; }
.info-window .info-back-btn:hover { background: var(--brand-soft); }
#property-list {
  position: absolute;
  top: 0; right: 0;
  width: 280px;
  height: 100%;
  background: var(--surface);
  box-shadow: -8px 0 24px -12px rgba(14,26,47,.25);
  z-index: 10;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.25s ease;
}
#property-list.collapsed { transform: translateX(100%); }
#drag-handle {
  display: none;
  width: 36px;
  height: 4px;
  background: var(--border-4);
  border-radius: 2px;
  margin: 8px auto 4px;
  cursor: pointer;
  flex-shrink: 0;
}
#list-header {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  padding: 14px 16px 10px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.list-header-actions { display: flex; align-items: center; gap: 8px; }
#btn-toggle-list, #btn-expand-list {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 18px;
  color: var(--muted);
  padding: 0;
  line-height: 1;
}
#btn-toggle-list:hover, #btn-expand-list:hover { color: var(--ink); }
#btn-expand-list { display: none; }
.chevron { display: inline-block; }
#btn-show-list {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  background: var(--surface);
  border: 1px solid var(--border-3);
  border-right: none;
  border-radius: 12px 0 0 12px;
  padding: 14px 8px;
  cursor: pointer;
  z-index: 10;
  box-shadow: -4px 0 16px -8px rgba(14,26,47,.25);
  display: none;
  font-size: 16px;
  color: var(--body-2);
}
#list-items { list-style: none; overflow-y: auto; flex: 1; }
.btn-show-list-label { display: none; }
@keyframes list-item-flash {
  0% { background: var(--brand-soft); }
  100% { background: transparent; }
}
.list-item { padding: 12px 16px; border-bottom: 1px solid var(--border); cursor: pointer; display: flex; gap: 10px; align-items: flex-start; }
.list-item:hover { background: var(--surface-tint); }
.list-item-highlight { animation: list-item-flash 1.4s ease-out forwards; }
.list-item .item-thumb { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.list-item .item-body { flex: 1; min-width: 0; }
.list-item .item-type { font-size: 10px; font-weight: 700; text-transform: uppercase; color: var(--brand); margin-bottom: 3px; }
.list-item .item-address { font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 3px; }
.list-item .item-price { font-size: 12px; font-weight: 700; color: var(--ink); margin-bottom: 3px; }
.list-item .item-meta { font-size: 11px; color: var(--muted); }
.list-item .item-meta a { color: var(--brand); }

/* !important needed: #btn-show-list visibility is toggled via inline styles */
#map-container.streetview-active #filter-panel,
#map-container.streetview-active #property-list,
#map-container.streetview-active #btn-show-list,
#map-container.streetview-active #version-label { display: none !important; }
@media (min-width: 641px) {
  /* Centre the panel in the free area beside the open list pane (280px wide) */
  #map-container.list-open #filter-panel {
    left: calc((100% - 280px) / 2);
    max-width: calc(100% - 280px - 32px);
  }
}
@media (max-width: 640px) {
  .filter-logo { height: 30px; }
  #filter-panel {
    top: 8px;
    left: 8px;
    right: 8px;
    transform: none;
    flex-wrap: wrap;
    white-space: normal;
    justify-content: center;
    gap: 6px 8px;
    padding: 8px 10px;
    font-size: 12px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }
  #filter-panel .divider {
    display: none;
  }
  #filter-panel button,
  #filter-panel select {
    padding: 8px 10px;
    font-size: 12px;
  }
  #property-list {
    top: auto;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 45vh;
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -8px 24px -12px rgba(14,26,47,.25);
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }
  #drag-handle { display: block; }
  #property-list.collapsed { transform: translateY(100%); }
  #property-list.expanded { top: 96px; height: auto; }
  #btn-toggle-list, #btn-expand-list {
    font-size: 26px;
    padding: 8px 12px;
  }
  #btn-expand-list { display: inline-block; }
  #btn-show-list {
    top: auto;
    right: 0;
    bottom: 0;
    left: 0;
    transform: none;
    width: 100%;
    border-radius: 16px 16px 0 0;
    border: 1px solid var(--border-3);
    border-bottom: none;
    padding: 14px 22px;
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 700;
    text-align: center;
    background: var(--brand);
    color: #fff;
    box-shadow: 0 -8px 24px -12px rgba(14,26,47,.35);
  }
  #btn-show-list:hover { background: var(--brand-hover); }
  #btn-show-list .btn-show-list-label {
    display: inline;
    margin-left: 8px;
  }
  #btn-toggle-list .chevron,
  #btn-show-list .chevron {
    transform: rotate(-90deg);
  }
  /* Google groups the Street View pegman with the zoom controls into this
     container, positioned via its own inline (non-!important) bottom
     offset with no awareness of our #btn-show-list bar sitting in the same
     corner - override to lift it clear. !important is required to beat
     the inline style (same reasoning as the .gm-style-iw override near the
     top of this file).
     `.gm-bundled-control-on-bottom` is an undocumented Google Maps JS
     internal class name (see #204) - if a Maps API version bump ever
     silently stops applying this offset, that's why the pegman/zoom
     controls overlap #btn-show-list again. Re-verify after any such bump. */
  .gm-bundled-control-on-bottom { margin-bottom: 60px !important; }
}
