/* RentGTA Interactive Boundary Maps — v1.18.2
   Layout: list ~30% / map ~70% on desktop, stacked on mobile.
   The list scrolls inside its own box at the map's height (640px
   desktop, 300px on mobile), so long lists never stretch the page.
   Colours: light blue-grey polygons, teal selection. */

.rentgta-bm {
  margin: 1.5rem 0;
}

.rentgta-bm-title {
  margin: 0 0 0.5rem;
}

/* Live area total next to the section title (homepage GTA map only):
   "28,971 available listings · as of November 18, 2026". Shown only
   once the feed-wide count has loaded; hidden entirely if the fetch
   fails, so a wrong number is never displayed. */
.rentgta-bm-total {
  font-size: 1rem;
  font-weight: 600;
  color: #0b5e57;
  white-space: nowrap;
}
.rentgta-bm-area-total {
	  font-size: 1rem;
	  font-weight: 600;
	  color: #0b5e57;
	  margin: 0.5rem 0 0;
	
}
.rentgta-bm-mapwrap {
	  overflow: hidden;
}

.rentgta-bm-total-date {
  font-size: 0.9rem;
  font-weight: 400;
  color: #555;
  white-space: nowrap;
}

.rentgta-bm-intro {
  margin: 0 0 0.5rem;
  font-size: 1.125rem;
  color: #444;
}

/* Short usage hint under the area description. */
.rentgta-bm-hint {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  color: #555;
}

.rentgta-bm-layout {
  display: flex;
  gap: 1rem;
  align-items: stretch;
}

.rentgta-bm-side {
  flex: 0 0 30%;
  min-width: 0;
  max-height: 640px;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.rentgta-bm-mapwrap {
  flex: 1 1 70%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* Reserve the map's space up front so the page does not jump while it loads. */
.rentgta-bm-map {
  width: 100%;
  height: 640px;
  min-height: 640px;
  border: 1px solid #d7dee3;
  border-radius: 8px;
  background: #eef2f4;
  z-index: 0;
}

.rentgta-bm-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
}

.rentgta-bm-list li[hidden] {
  display: none;
}

/* Live filter above the list. */
.rentgta-bm-filter {
  flex: 0 0 auto;
  width: 100%;
  padding: 0.6rem 0.85rem;
  font: inherit;
  font-size: 1rem;
  color: #1a2a33;
  background: #fff;
  border: 1px solid #d7dee3;
  border-radius: 6px;
}

.rentgta-bm-filter:focus-visible {
  outline: 3px solid #0f766e;
  outline-offset: 2px;
}

.rentgta-bm-no-match {
  flex: 0 0 auto;
  margin: 0;
  font-size: 0.95rem;
  color: #555;
}

.rentgta-bm-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.65rem 0.85rem;
  font-size: 1rem;
  line-height: 1.35;
  color: #1a2a33;
  background: #f4f7f8;
  border: 1px solid #d7dee3;
  border-radius: 6px;
  cursor: pointer;
}

.rentgta-bm-item:hover,
.rentgta-bm-item.rentgta-bm-hover {
  background: #e3eef2;
  border-color: #7fa8b8;
}

.rentgta-bm-item:focus-visible,
.rentgta-bm-reset:focus-visible,
.rentgta-bm-info a:focus-visible {
  outline: 3px solid #0f766e;
  outline-offset: 2px;
}

/* Selected list item: colour plus a marker, never colour alone. */
.rentgta-bm-item[aria-pressed="true"] {
  background: #0f766e;
  border-color: #0b5e57;
  color: #fff;
  font-weight: 600;
}

.rentgta-bm-item[aria-pressed="true"]::before {
  content: "\25B8  ";
}

.rentgta-bm-reset {
  flex: 0 0 auto;
  padding: 0.6rem 0.85rem;
  font-size: 0.95rem;
  color: #0f766e;
  background: #fff;
  border: 1px solid #0f766e;
  border-radius: 6px;
  cursor: pointer;
}

.rentgta-bm-reset:hover {
  background: #e6f4f2;
}

.rentgta-bm-info {
  flex: 0 0 auto;
  font-size: 1rem;
}

.rentgta-bm-info h3 {
  margin: 0 0 0.35rem;
  font-size: 1.1rem;
}

/* Short neighbourhood description shown under the selected name. */
.rentgta-bm-desc {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #444;
}

.rentgta-bm-info a {
  color: #0f766e;
  font-weight: 600;
}

.rentgta-bm-count {
  color: #444;
  white-space: nowrap;
}

/* Selected community's name label, shown as a box on the map itself.
   A real <button> (not a Leaflet tooltip) so it always receives clicks —
   tooltips are styled pointer-events: none by Leaflet and did not respond
   to clicks in testing. Positioned by JavaScript over the polygon centre. */
.rentgta-bm-map-label {
  position: absolute;
  transform: translate(-50%, -50%);
  z-index: 500;
  background: #fff;
  border: 2px solid #0b5e57;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  color: #0b5e57;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  padding: 0.3rem 0.6rem;
  cursor: pointer;
  white-space: nowrap;
}

.rentgta-bm-map-label:hover {
  background: #e6f4f2;
}

.rentgta-bm-map-label:focus-visible {
  outline: 3px solid #0f766e;
  outline-offset: 2px;
}

/* Reset button on the map itself (top-right corner, always visible once
   the map loads). The container carries Leaflet's own .leaflet-bar class
   so it matches the zoom control's white box, border and shadow; only
   the button itself needs styling. */
.rentgta-bm-map-reset-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 0;
  background: #fff;
  border: 0;
  border-radius: 4px;
  color: #333;
  cursor: pointer;
}

.rentgta-bm-map-reset-btn:hover {
  background: #f4f4f4;
}

.rentgta-bm-map-reset-btn:focus-visible {
  outline: 3px solid #0f766e;
  outline-offset: 2px;
}

.rentgta-bm-map-reset-btn svg {
  display: block;
}

/* Compact listings list, shown below the map when a community is selected.
   One small row per rental: thumbnail, price, address, beds/baths. */
.rentgta-bm-listings {
  margin: 1.25rem 0 0;
  border-top: 1px solid #d7dee3;
  padding-top: 0.9rem;
}

.rentgta-bm-listings-title {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
}

.rentgta-bm-listings-loading,
.rentgta-bm-listings-empty {
  margin: 0;
  font-size: 0.95rem;
  color: #555;
}

.rentgta-bm-listings-error {
  margin: 0;
  font-size: 0.95rem;
  color: #8a1f1f;
}

.rentgta-bm-rows {
  display: flex;
  flex-direction: column;
}

.rentgta-bm-row {
  display: flex;
  gap: 0.8rem;
  align-items: center;
  padding: 0.6rem 0.4rem;
  border-bottom: 1px solid #e7ecee;
  color: inherit;
  text-decoration: none;
}

.rentgta-bm-row:hover {
  background: #f4f7f8;
}

.rentgta-bm-row-thumb {
  flex: 0 0 144px;
  width: 144px;
  height: 108px;
  object-fit: cover;
  border-radius: 4px;
  background: #eef2f4;
}

.rentgta-bm-row-nophoto {
  display: block;
}

.rentgta-bm-row-body {
  flex: 0 1 300px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  line-height: 1.35;
}

.rentgta-bm-row-price {
  font-weight: 700;
  font-size: 1.05rem;
}

.rentgta-bm-row-addr,
.rentgta-bm-row-specs {
  font-size: 0.92rem;
  color: #555;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Short description excerpt: fills the row's right-hand side. */
.rentgta-bm-row-desc {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 0.9rem;
  line-height: 1.45;
  color: #444;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rentgta-bm-status {
  margin: 0.5rem 0 0;
  font-size: 0.9rem;
  color: #555;
}

.rentgta-bm-fallback {
  margin: 1rem 0 0;
}

.rentgta-bm-fallback-note {
  margin: 1rem 0 0.25rem;
  font-weight: 600;
}

.rentgta-bm-disclaimer {
  margin: 0.9rem 0 0;
  font-size: 0.85rem;
  color: #666;
}

.rentgta-bm-error {
  color: #8a1f1f;
}

@media (max-width: 768px) {
  .rentgta-bm-layout {
    flex-direction: column;
  }

  .rentgta-bm-side {
    flex: 1 1 auto;
  }

  .rentgta-bm-list {
    flex-direction: row;
    flex-wrap: wrap;
    max-height: 300px;
    overflow-y: auto;
  }

/* RentGTA Map Search drill-down explorer — v1.20.0.
 * Styles for the drill-down section on the Map Search page (post 426).
 * The section carries class "rentgta-bm-dd" until the drill-down script
 * adds "rentgta-bm" at runtime, so it picks up the layout rules above;
 * only the drill-down-only pieces (breadcrumb, per-feature map labels
 * and the listings notes) are styled here. The listings grid itself
 * reuses the homepage grid classes (.rgt-home-cards etc.) from snippet
 * 6612, so it keeps the homepage card look and its 6-column layout. */
.rentgta-bm-crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.5;
}
.rentgta-bm-crumb-link {
  background: none;
  border: 0;
  padding: 0;
  color: #087f8c;
  cursor: pointer;
  text-decoration: underline;
  font-size: 14px;
}
.rentgta-bm-crumb-link:hover {
  color: #0b5e57;
}
.rentgta-bm-crumb-sep {
  color: #94a3b8;
}
.rentgta-bm-crumb-current {
  font-weight: 700;
  color: #123354;
}
.rentgta-bm-map-label--drill {
  font-size: 12px;
  padding: 3px 8px;
  max-width: 150px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rentgta-bm-listings-note {
  margin: 0 0 8px;
  color: #334155;
}
.rentgta-bm-listings-total {
  margin: 0 0 12px;
  color: #475569;
  font-size: 14px;
}
.rentgta-bm-listings .rgt-home-pages {
  margin-top: 16px;
}
.rentgta-bm-listings .rgt-home-pages button {
  padding: 6px 10px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #fff;
  color: #123354;
  cursor: pointer;
  font-size: 14px;
}
.rentgta-bm-listings .rgt-home-pages button:hover {
  border-color: #087f8c;
}
.rentgta-bm-listings .rgt-home-pages button.rgt-home-page-current {
  background: #087f8c;
  border-color: #087f8c;
  color: #fff;
  font-weight: 700;
}
.rentgta-bm-listings .rgt-home-pages button:disabled {
  opacity: 0.45;
	}
/* Drill-down listings grid: the same 6-column card layout as the
   homepage "Newest rentals" grid (snippet 6612). Snippet 6612 only
   injects its card CSS when the homepage grid is present, so the
   Map Search page needs its own copy for the drill-down grid. */
.rentgta-bm-listings .rgt-home-cards {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
  margin: 16px 0 8px;
}
@media (max-width: 1023px) {
  .rentgta-bm-listings .rgt-home-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .rentgta-bm-listings .rgt-home-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 599px) {
  .rentgta-bm-listings .rgt-home-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.rentgta-bm-listings .rgt-home-card {
  display: block;
  background: #fff;
  border: 1px solid #e3e8ea;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
}
.rentgta-bm-listings .rgt-home-thumb {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #eef2f3;
}
.rentgta-bm-listings .rgt-home-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.rentgta-bm-listings .rgt-home-save {
  position: absolute;
  top: 8px;
  right: 8px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #0f766e;
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
}
.rentgta-bm-listings .rgt-home-save.rgt-saved { background: #0b5e57; }
.rentgta-bm-listings .rgt-home-save .rgt-heart { width: 14px; height: 14px; }
.rentgta-bm-listings .rgt-home-body {
  display: block;
  padding: 12px 14px 14px;
}
.rentgta-bm-listings .rgt-home-price {
  display: block;
  font-weight: 700;
  font-size: 17px;
  color: #12212b;
}
.rentgta-bm-listings .rgt-home-feats,
.rentgta-bm-listings .rgt-home-addr,
.rentgta-bm-listings .rgt-home-comm,
.rentgta-bm-listings .rgt-home-date {
  display: block;
  font-size: 13px;
  color: #44565f;
  margin-top: 2px;
}
.rentgta-bm-listings .rgt-home-addr { color: #12212b; }

  cursor: default;
}

  .rentgta-bm-list li {
    flex: 1 1 45%;
  }

  .rentgta-bm-item {
    padding: 0.7rem 0.8rem;
    min-height: 44px;
  }

  .rentgta-bm-map {
    height: 380px;
    min-height: 380px;
  }

  /* On phones the description excerpt is hidden to keep rows compact;
     the full description is on the listing details page. */
  .rentgta-bm-row-desc {
    display: none;
  }

  .rentgta-bm-row-body {
    flex: 1 1 auto;
  }
}
/* Drill-down polish v1.20.4: breadcrumb and pagination spacing. */
.rentgta-bm-crumb-sep { margin: 0 0.45em; }
.rentgta-bm-listings .rgt-home-pages { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
/* WORK 1 v1.18.3 */
.rentgta-bm-crumb-link,.rentgta-bm-crumb-current{display:inline-flex;align-items:center;min-height:36px;padding:6px 12px;border:1px solid #cbd5e1 !important;border-radius:6px !important;background:#fff !important;color:#123354 !important;font-weight:600;text-decoration:none !important;}
.rentgta-bm-crumb-link:hover{border-color:#087f8c !important;color:#087f8c !important;}
.rentgta-bm-crumb-current{background:#087f8c !important;border-color:#087f8c !important;color:#fff !important;}
.rentgta-bm-listings .rgt-home-pages button{display:inline-flex !important;align-items:center;justify-content:center;min-width:36px;min-height:36px;padding:6px 10px !important;border:1px solid #cbd5e1 !important;border-radius:6px !important;background:#fff !important;color:#123354 !important;font-size:14px;font-weight:600;cursor:pointer;}
.rentgta-bm-listings .rgt-home-pages button:hover{border-color:#087f8c !important;color:#087f8c !important;}
.rentgta-bm-listings .rgt-home-pages button.rgt-home-page-current{background:#087f8c !important;border-color:#087f8c !important;color:#fff !important;font-weight:700;}
.rentgta-bm-listings .rgt-home-page-label{font-weight:700;color:#123354;}
.rentgta-bm-listings .rgt-home-page-ellipsis{color:#64748b;padding:0 2px;}