/* =============================================================
   TORONTOPROPERTY.CA — Internal Pages CSS
   All internal page styles — add to torontoproperty.css
   or enqueue as a separate file after torontoproperty.css
   ============================================================= */

/* CSS variables (mirrored from torontoproperty-homepage.css) */
:root {
  --tp-paper:   #FAFAF8;
  --tp-ink:     #1A1A1A;
  --tp-body:    #555555;
  --tp-blue:    #2C3D55;
  --tp-amber:   #A07830;
  --tp-muted:   #999999;
  --tp-hint:    #C8C8C4;
  --tp-rule:    #E2E2DF;
  --tp-white:   #FFFFFF;
  --tp-bg:      #F2EFE8;
  --tp-bgrule:  #D8D4CC;
}

/* =============================================================
   STICKY HEADER WRAPPER — masthead + search bar stick as one unit
   ============================================================= */
.tp-sticky-header {
  position: sticky;
  top: 0;
  z-index: 200;
}

/* =============================================================
   NAV — .tp-masthead (same design as homepage)
   ============================================================= */
.tp-masthead {
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 14px 28px 22px;
  background: var(--tp-paper);
  border-bottom: 2px solid var(--tp-ink);
  box-sizing: border-box;
}
.tp-masthead-logo { flex-shrink: 0; }
.tp-masthead-nav  { flex: 1; display: flex; justify-content: flex-end; align-items: center; }
.tp-masthead-right { flex-shrink: 0; }

.tp-masthead .tp-nav {
  display: flex;
  gap: 36px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.tp-masthead .tp-nav li { list-style: none; }
.tp-masthead .tp-nav a {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.03em;
  text-transform: none;
  color: var(--tp-muted);
  text-decoration: none;
  position: relative;
  padding-bottom: 2px;
  transition: color 600ms ease;
}
.tp-masthead .tp-nav a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--tp-ink);
  transition: width 600ms ease;
}
.tp-masthead .tp-nav a:hover,
.tp-masthead .tp-nav li.current-menu-item a { color: var(--tp-ink); }
.tp-masthead .tp-nav a:hover::after,
.tp-masthead .tp-nav li.current-menu-item a::after { width: 100%; }

/* CTA ghost button — amber ghost pill, Playfair italic 14px */
.tp-cta-ghost {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 14px;
  font-weight: 400;
  color: var(--tp-amber);
  border: 1px solid var(--tp-amber);
  border-radius: 20px;
  padding: 9px 22px;
  text-decoration: none;
  background: transparent;
  transition: all 600ms ease;
  white-space: nowrap;
}
.tp-cta-ghost:hover { background: var(--tp-amber); color: var(--tp-white); }

/* Masthead right — flex so favourites btn + CTA sit side by side */
.tp-masthead-right {
  display: flex;
  align-items: center;
  gap: 24px;
}

/* Favourites icon button */
.tp-favs-btn {
  position: relative;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  color: var(--tp-muted);
  transition: color 600ms ease;
  flex-shrink: 0;
}
.tp-favs-btn:hover { color: var(--tp-ink); }
.tp-favs-btn svg { width: 20px; height: 20px; }
#tp-favs-badge {
  display: none;
  position: absolute;
  top: -3px;
  right: -5px;
  background: var(--tp-amber);
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 9px;
  font-weight: 500;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  line-height: 1;
}

/* Favourites overlay */
#tp-favs-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10,12,18,.35);
  z-index: 500;
  opacity: 0;
  pointer-events: none;
  transition: opacity 600ms ease;
}
#tp-favs-overlay.open { opacity: 1; pointer-events: all; }

/* Favourites drawer */
#tp-favs-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 380px;
  max-width: 100vw;
  background: var(--tp-paper);
  border-left: 0.5px solid var(--tp-rule);
  z-index: 501;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 600ms ease;
  overflow: hidden;
}
#tp-favs-drawer.open { transform: translateX(0); }

.tp-favs-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 24px;
  border-bottom: 0.5px solid var(--tp-rule);
  flex-shrink: 0;
}
.tp-favs-title {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 400;
  color: var(--tp-ink);
}
.tp-favs-close {
  background: none;
  border: 0.5px solid var(--tp-rule);
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 600ms ease;
  color: var(--tp-muted);
  flex-shrink: 0;
}
.tp-favs-close:hover { border-color: var(--tp-ink); color: var(--tp-ink); }
.tp-favs-close svg { width: 10px; height: 10px; }

#tp-favs-list { flex: 1; overflow-y: auto; }
#tp-favs-list::-webkit-scrollbar { width: 2px; background: var(--tp-rule); }
#tp-favs-list::-webkit-scrollbar-thumb { background: var(--tp-hint); }

.tp-favs-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 32px;
  text-align: center;
  gap: 14px;
}
.tp-favs-empty svg { width: 44px; height: 44px; }
.tp-favs-empty-title {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  color: var(--tp-ink);
}
.tp-favs-empty-sub {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: var(--tp-muted);
  line-height: 1.75;
}

.tp-favs-item {
  display: grid;
  grid-template-columns: 76px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 14px 24px;
  border-bottom: 0.5px solid var(--tp-rule);
  text-decoration: none;
  color: inherit;
  transition: background 600ms ease;
}
.tp-favs-item:hover { background: var(--tp-white); }
.tp-favs-item-img {
  width: 76px;
  height: 56px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--tp-bg);
}
.tp-favs-item-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tp-favs-no-photo { width: 100%; height: 100%; background: var(--tp-rule); }
.tp-favs-item-address {
  font-family: 'Playfair Display', serif;
  font-size: 15px;
  color: var(--tp-ink);
  line-height: 1.2;
  margin-bottom: 3px;
}
.tp-favs-item-hood {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  color: var(--tp-hint);
  margin-bottom: 3px;
}
.tp-favs-item-price {
  font-family: 'Playfair Display', serif;
  font-size: 14px;
  color: var(--tp-ink);
}
.tp-favs-item-remove {
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  color: var(--tp-hint);
  flex-shrink: 0;
  transition: color 600ms ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tp-favs-item-remove:hover { color: var(--tp-ink); }
.tp-favs-item-remove svg { width: 10px; height: 10px; }

body.tp-favs-lock { overflow: hidden; }

@media (max-width: 768px) {
  #tp-favs-drawer { width: 100vw; }
}

/* Hamburger — desktop hidden */
.tp-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px 2px;
  flex-shrink: 0;
  margin-left: auto;
  z-index: 9001;
}
.tp-hamburger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--tp-ink);
  border-radius: 1px;
  transition: transform 350ms ease, opacity 350ms ease;
}
.tp-hamburger.is-open { position: fixed; top: 18px; right: 16px; }
.tp-hamburger.is-open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.tp-hamburger.is-open span:nth-child(2) { opacity: 0; }
.tp-hamburger.is-open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* Mobile nav overlay */
.tp-mobile-nav-cta { display: none; }
.tp-mobile-nav-saved { display: none; }
/* Search pill — hidden on desktop, shown on mobile via media query */
.tp-mob-search-pill { display: none; }
/* Mobile search header/close — hidden on desktop */
.tp-sb-mobile-header { display: none; }

/* =============================================================
   SEARCH BAR — .tp-sb-wrap (same style as homepage search zone)
   ============================================================= */
.tp-sb-wrap {
  background: var(--tp-bg);
  border-bottom: 0.5px solid var(--tp-bgrule);
  padding: 12px 28px;
}
.tp-sb-inner {
  position: relative;
  max-width: 1200px;
}

/* BUY · RENT — inline left of search field, Inter 11px */
.tp-sb-wrap .tp-mode-inline {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-right: 16px;
  border-right: 0.5px solid var(--tp-bgrule);
  flex-shrink: 0;
}
.tp-sb-wrap .tp-mode-word {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 600ms ease;
  color: var(--tp-hint);
  background: none;
  border: none;
  padding: 0;
  margin: 0;
}
.tp-sb-wrap .tp-mode-word.active {
  color: var(--tp-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.tp-sb-wrap .tp-mode-sep {
  color: var(--tp-rule);
  font-size: 11px;
  font-family: 'Inter', sans-serif;
}

/* Search bar row */
.tp-sb-wrap .tp-search-bar {
  display: flex;
  align-items: stretch;
  gap: 10px;
}
.tp-sb-wrap .tp-search-bar.has-tags { align-items: flex-start; }
.tp-sb-wrap .tp-search-bar.has-tags .tp-filters-btn,
.tp-sb-wrap .tp-search-bar.has-tags .tp-search-go { align-self: flex-start; margin-top: 6px; }

/* Search field */
.tp-sb-wrap .tp-search-field {
  flex: 1;
  display: flex;
  align-items: center;
  background: var(--tp-white);
  border: 0.5px solid var(--tp-bgrule);
  border-radius: 2px;
  padding: 0 14px 0 20px;
  height: 50px;
  gap: 10px;
}

.tp-sb-wrap .tp-search-field input[type="text"] {
  flex: 1;
  border: none;
  background: transparent;
  box-shadow: none;
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 15px;
  color: var(--tp-ink);
  height: auto;
  padding: 0;
  outline: none;
}
.tp-sb-wrap .tp-search-field input[type="text"]::placeholder { color: var(--tp-hint); }

/* Search field grows when pills are present */
.tp-sb-wrap .tp-search-field.has-tags {
  height: auto;
  min-height: 50px;
  flex-wrap: wrap;
  padding: 10px 14px 10px 20px;
  align-items: center;
  gap: 6px;
}
.tp-sb-wrap .tp-search-bar.has-tags { align-items: flex-start; }
.tp-sb-wrap .tp-search-bar.has-tags .tp-filters-btn,
.tp-sb-wrap .tp-search-bar.has-tags .tp-search-go { align-self: flex-start; margin-top: 0; }

/* Neighbourhood / filter pills */
.tp-sb-wrap .tp-search-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--tp-blue);
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  padding: 5px 10px 5px 13px;
  border-radius: 14px;
  white-space: nowrap;
  flex-shrink: 0;
}
.tp-sb-wrap .tp-tag-remove {
  opacity: 0.55;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  background: none;
  border: none;
  color: #fff;
  padding: 0;
}
.tp-sb-wrap .tp-tag-remove:hover { opacity: 1; }
.tp-sb-wrap .tp-tags-input {
  border: none;
  outline: none;
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 15px;
  color: var(--tp-ink);
  background: transparent;
  min-width: 120px;
  flex: 1;
  padding: 2px 0;
}
.tp-sb-wrap .tp-tags-input::placeholder { color: var(--tp-hint); }

/* Info button */
.tp-sb-wrap .tp-info-btn {
  background: none;
  border: 1px solid var(--tp-rule);
  border-radius: 50%;
  width: 20px;
  height: 20px;
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  color: var(--tp-hint);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 600ms ease;
}
.tp-sb-wrap .tp-info-btn:hover { border-color: var(--tp-muted); color: var(--tp-muted); }

/* Filters button */
.tp-sb-wrap .tp-filters-btn {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 400;
  background: var(--tp-white);
  color: var(--tp-muted);
  border: 0.5px solid var(--tp-bgrule);
  border-radius: 2px;
  padding: 0 20px;
  height: 50px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 600ms ease;
}
.tp-sb-wrap .tp-filters-btn:hover,
.tp-sb-wrap .tp-filters-btn.is-active { border-color: var(--tp-blue); color: var(--tp-blue); }

/* Search listings button — ghost amber, NOT a pill */
.tp-sb-wrap .tp-search-go {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 14px;
  font-weight: 400;
  background: transparent;
  color: var(--tp-amber);
  border: 1px solid var(--tp-amber);
  border-radius: 2px;
  padding: 0 28px;
  height: 50px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 600ms ease;
}
.tp-sb-wrap .tp-search-go:hover { background: var(--tp-amber); color: var(--tp-white); }

/* Info popover */
.tp-sb-wrap .tp-info-popover {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: var(--tp-white);
  border: 0.5px solid var(--tp-rule);
  border-radius: 4px;
  padding: 14px 18px;
  z-index: 200;
  min-width: 280px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}
.tp-sb-wrap .tp-info-popover-title {
  font-family: 'Inter', sans-serif;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tp-hint);
  margin-bottom: 8px;
}
.tp-sb-wrap .tp-info-popover-item {
  display: flex;
  gap: 10px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: var(--tp-body);
  line-height: 1.6;
  margin-bottom: 4px;
}

/* =============================================================
   FILTER PANEL — exact copy of homepage styles
   (from Kbizsoft_Home.php inline <style> block)
   ============================================================= */
.tp-filters-panel {
  background: #FFFFFF;
  border: 0.5px solid #D8D4CC;
  border-radius: 4px;
  padding: 24px;
  margin-top: 8px;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  display: none;
}
.tp-filters-panel.tp-panel-open { display: grid; }
.tp-filter-group-title {
  font-family: 'Inter', sans-serif;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #999;
  margin-bottom: 12px;
}
.tp-presets { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.tp-preset {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  background: transparent;
  color: #999;
  border: 0.5px solid #D8D4CC;
  border-radius: 20px;
  padding: 5px 12px;
  cursor: pointer;
  transition: all 600ms ease;
}
.tp-preset:hover,
.tp-preset.active { background: #1A1A1A; color: #FFFFFF; border-color: #1A1A1A; }
.tp-price-range { display: flex; align-items: center; gap: 8px; }
.tp-price-input {
  flex: 1;
  border: 0.5px solid #D8D4CC;
  border-radius: 2px;
  padding: 8px 10px;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  background: #FAFAF8;
  color: #1A1A1A;
  outline: none;
}
.tp-price-sep { color: #C8C8C4; font-size: 11px; }
.tp-filter-check { display: flex; justify-content: space-between; align-items: center; padding: 6px 0; border-bottom: 0.5px solid #F2EFE8; }
.tp-filter-check-label { font-family: 'Inter', sans-serif; font-size: 12px; color: #1A1A1A; }
.tp-filter-checkbox { font-size: 10px; color: #C8C8C4; cursor: pointer; }
.tp-filter-checkbox.checked { color: #1A1A1A; }
.tp-panel-actions { grid-column: 1 / -1; display: flex; justify-content: flex-end; gap: 10px; padding-top: 16px; border-top: 0.5px solid #E2E2DF; margin-top: 8px; }
.tp-clear-btn { font-family: 'Inter', sans-serif; font-size: 11px; background: transparent; color: #999; border: none; outline: none; cursor: pointer; text-decoration: underline; }
.tp-apply-btn { font-family: 'Playfair Display', serif; font-style: italic; font-size: 13px; background: #1A1A1A; color: #FFFFFF; border: none; outline: none; border-radius: 40px; padding: 10px 24px; cursor: pointer; }
.tp-preset:focus { outline: none; }

/* =============================================================
   AUTOCOMPLETE DROPDOWN — exact copy of homepage styles
   jQuery UI appends this to <body> — global selector required
   ============================================================= */
.ui-autocomplete {
  background: #FAFAF8 !important;
  border: 0.5px solid #D8D4CC !important;
  border-radius: 4px !important;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08) !important;
  padding: 4px 0 !important;
  z-index: 9999 !important;
}
/* Category group header — uppercase subheading above each result group */
.ui-autocomplete li.tp-ac-group {
  font-family: 'Inter', sans-serif !important;
  font-style: normal !important;
  font-size: 9px !important;
  font-weight: 600 !important;
  letter-spacing: 0.10em !important;
  text-transform: uppercase !important;
  color: #1A1A1A !important;
  padding: 12px 16px 4px !important;
  pointer-events: none !important;
  cursor: default !important;
  border-top: 0.5px solid #E2E2DF !important;
  margin-top: 4px !important;
}
.ui-autocomplete li.tp-ac-group:first-child {
  border-top: none !important;
  padding-top: 8px !important;
  margin-top: 0 !important;
}
/* Result items */
.ui-autocomplete .ui-menu-item-wrapper {
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
}
.ui-autocomplete .tp-ac-item {
  font-family: 'Playfair Display', serif !important;
  font-style: italic !important;
  font-size: 14px !important;
  color: #1A1A1A !important;
  padding: 6px 16px 6px 24px !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* Hover — strip ALL jQuery UI active/focus/hover borders and colours */
html body .ui-autocomplete .ui-state-active,
html body .ui-autocomplete .ui-state-focus,
html body .ui-autocomplete .ui-state-hover,
html body .ui-autocomplete .ui-menu-item-wrapper.ui-state-active,
html body .ui-autocomplete .ui-menu-item-wrapper:hover,
html body .ui-autocomplete li.ui-state-active,
html body .ui-autocomplete li:hover {
  background: #F2EFE8 !important;
  color: #1A1A1A !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}
/* Amber left accent on the inner item div only */
html body .ui-autocomplete .ui-state-active > .tp-ac-item,
html body .ui-autocomplete .ui-menu-item-wrapper.ui-state-active .tp-ac-item {
  border-left: 3px solid #A07830 !important;
  padding-left: 21px !important;
}

/* =============================================================
   NEIGHBOURHOOD PILLS — exact copy of homepage .tp-search-tag
   ============================================================= */
.tp-search-field.has-tags {
  height: auto;
  min-height: 50px;
  flex-wrap: wrap;
  padding: 8px 14px 8px 20px;
  align-items: center;
  gap: 6px;
}
.tp-search-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #2C3D55;
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 400;
  padding: 5px 10px 5px 13px;
  border-radius: 14px;
  flex-shrink: 0;
  transition: background 600ms ease;
}
.tp-search-tag:hover { background: #1e2d40; }
.tp-tag-remove {
  opacity: 0.55;
  cursor: pointer;
  font-size: 14px;
  background: none;
  border: none;
  color: #fff;
  line-height: 1;
  padding: 0;
}
.tp-tag-remove:hover { opacity: 1; }
.tp-tags-input {
  border: none !important;
  outline: none !important;
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 14px;
  background: transparent !important;
  flex: 1;
  padding: 2px 0;
  box-shadow: none !important;
  min-width: 140px;
}
.tp-tags-input::placeholder { color: #C8C8C4; }

/* =============================================================
   MOBILE — nav + search bar
   ============================================================= */
@media (max-width: 768px) {
  .tp-masthead {
    padding: 14px 16px 16px;
    gap: 0;
  }
  .tp-masthead-logo img   { height: 24px !important; }
  .tp-masthead-nav        { display: none; }
  .tp-masthead-right      { display: flex; }
  .tp-masthead-right .tp-cta-ghost { display: none; }
  .tp-masthead-right .tp-favs-btn  { display: none; }
  .tp-masthead-date       { display: none; }
  .tp-hamburger           { display: flex; }

  /* Overlay */
  .tp-masthead-nav.is-open {
    display: flex !important;
    position: fixed;
    inset: 0;
    background: var(--tp-paper);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9000;
  }
  .tp-masthead-nav.is-open .tp-nav {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding: 0;
    margin: 0;
    list-style: none;
  }
  .tp-masthead-nav.is-open .tp-nav li { list-style: none; }
  .tp-masthead-nav.is-open .tp-nav a {
    font-size: 32px;
    font-weight: 400;
    padding: 16px 0;
    display: block;
    text-align: center;
    color: var(--tp-ink);
    text-transform: none;
    letter-spacing: 0;
    text-decoration: none;
  }
  .tp-masthead-nav.is-open .tp-nav a::after { display: none; }
  .tp-masthead-nav.is-open .tp-mobile-nav-saved {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    font-weight: 400;
    padding: 16px 0;
    text-align: center;
    color: var(--tp-ink);
    text-decoration: none;
  }
  .tp-masthead-nav.is-open .tp-mobile-nav-cta {
    display: inline-block;
    margin-top: 36px;
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 16px;
    color: var(--tp-amber);
    border: 1px solid var(--tp-amber);
    border-radius: 20px;
    padding: 10px 28px;
    text-decoration: none;
  }

  /* Search bar — full-screen overlay on mobile */
  .tp-sb-mobile-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; padding-bottom: 14px; border-bottom: .5px solid #E2E2DF; }
  .tp-sb-mobile-title { font-family: 'Inter', sans-serif; font-size: 11px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: #1A1A1A; }
  .tp-sb-close { display: flex; align-items: center; gap: 6px; background: #1A1A1A; color: #FAFAF8; border: none; border-radius: 20px; padding: 7px 14px; font-family: 'Inter', sans-serif; font-size: 11px; cursor: pointer; }
  .tp-sb-wrap {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100vh;
    z-index: 9999;
    overflow-y: auto;
    background: #FAFAF8;
    padding: 0;
  }
  .tp-sb-wrap.tp-sb-open { display: block; }
  .tp-sb-inner { padding: 20px 20px 40px; }
  .tp-sb-wrap .tp-search-bar { flex-wrap: wrap; gap: 10px; }
  .tp-sb-wrap .tp-mode-inline { border-right: none; padding-right: 0; flex: 1 1 100%; padding-bottom: 4px; }
  .tp-sb-wrap .tp-search-field { flex: 1 1 100%; min-height: 48px; height: auto; }
  .tp-sb-wrap .tp-filters-btn { flex: 1; height: 48px; padding: 0 16px; }
  .tp-sb-wrap .tp-search-go   { flex: 1; height: 48px; padding: 0 16px; }

  /* Search pill in masthead */
  .tp-mob-search-pill {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: transparent;
    border: 1px solid #A07830;
    border-radius: 20px;
    height: 36px;
    padding: 0 16px;
    margin: 0 12px;
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 14px;
    color: #A07830;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    transition: all 600ms ease;
  }
  .tp-mob-search-pill:hover { background: #A07830; color: #FFFFFF; }
  .tp-mob-search-pill:hover svg { stroke: #FFFFFF; }
  .tp-mob-search-pill svg { flex-shrink: 0; stroke: #A07830; transition: stroke 600ms ease; }

  /* Filter panel — single column so all options are reachable */
  .tp-filters-panel { grid-template-columns: 1fr !important; gap: 16px; padding: 14px 16px; }
  .tp-panel-actions { flex-direction: row; gap: 10px; }
  .tp-panel-actions .tp-clear-btn,
  .tp-panel-actions .tp-apply-btn { flex: 1; height: 48px; }
}

/* -------------------------------------------------------------
   1. HIDE OLD REALTYPRESS SEARCH BAR ON ALL PAGES
   The new sticky search bar (search-bar.php) replaces this.
   ------------------------------------------------------------- */
.rp-search-wrap,
.realtypress-search-container,
.rp-search-container,
.rp-header-search,
#realtypress-search-form,
.rp-search-form,
[class*="rp-search-bar"],
.tp-old-search {
  display: none !important;
}

/* -------------------------------------------------------------
   2. REPLACE ALL TEAL WITH OUR BLUE
   RealtyPress default teal (#0D6E6E, #0f7c7c etc)
   replaced everywhere with --tp-blue #2C3D55
   ------------------------------------------------------------- */

/* Tab switchers — For Sale / For Rent / All Listings */
.rp-tab,
.realtypress-tab,
[class*="listing-tab"],
[class*="rp-filter-tab"],
.tab-link,
ul.landing-nav li a {
  font-family: 'Playfair Display', serif !important;
  font-size: 15px !important;
  font-weight: 400 !important;
  color: var(--tp-muted) !important;
  background: var(--tp-white) !important;
  border: none !important;
  border-bottom: 2px solid transparent !important;
  padding: 10px 20px !important;
  cursor: pointer !important;
  transition: all 600ms ease !important;
  border-radius: 0 !important;
}
.rp-tab.active,
.rp-tab-active,
.realtypress-tab.active,
[class*="listing-tab"].active,
[class*="listing-tab-active"],
.tab-link.active,
ul.landing-nav li.active a {
  color: var(--tp-ink) !important;
  background: var(--tp-white) !important;
  border-bottom-color: var(--tp-amber) !important;
}
.rp-tab:hover,
.realtypress-tab:hover {
  color: var(--tp-ink) !important;
  transition: all 600ms ease !important;
}

/* Tab container */
.rp-tabs,
.realtypress-tabs,
[class*="listing-tabs"],
ul.landing-nav,
.landing-tabs,
.tabs_main {
  display: flex !important;
  border-bottom: 0.5px solid var(--tp-rule) !important;
  padding: 0 28px !important;
  background: var(--tp-paper) !important;
  gap: 0 !important;
}

/* GO button */
.rp-go-btn,
#rp-go,
.go-button,
.rp-submit,
[class*="rp-btn-go"],
input[type="submit"][class*="rp-"],
button[class*="rp-go"] {
  background: var(--tp-blue) !important;
  border-color: var(--tp-blue) !important;
  color: #fff !important;
  font-family: 'Inter', sans-serif !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  border-radius: 3px !important;
  padding: 8px 20px !important;
  transition: background 600ms ease !important;
  cursor: pointer !important;
}
.rp-go-btn:hover,
input[type="submit"][class*="rp-"]:hover {
  background: #1e2d40 !important;
}

/* Pagination */
.rp-pagination a,
.realtypress-pagination a,
[class*="rp-pagination"] a,
.result-pagination a {
  font-family: 'Inter', sans-serif !important;
  font-size: 13px !important;
  color: var(--tp-muted) !important;
  border: 0.5px solid var(--tp-rule) !important;
  border-radius: 2px !important;
  padding: 6px 12px !important;
  transition: all 600ms ease !important;
  background: var(--tp-paper) !important;
  text-decoration: none !important;
}
.rp-pagination a:hover,
[class*="rp-pagination"] a:hover,
.result-pagination a:hover {
  border-color: var(--tp-blue) !important;
  color: var(--tp-blue) !important;
}
.rp-pagination .current,
.rp-pagination a.active,
[class*="rp-pagination"] .current,
.result-pagination .current,
.result-pagination a.active {
  background: var(--tp-blue) !important;
  border-color: var(--tp-blue) !important;
  color: #fff !important;
}

/* Any remaining teal backgrounds */
[style*="background-color:#0D6E"],
[style*="background-color: #0D6E"],
[style*="background:#0D6E"],
[style*="background: #0D6E"],
[style*="background-color:#0f7"],
[style*="background-color: #0f7"] {
  background-color: var(--tp-blue) !important;
}

/* Any remaining teal text */
[style*="color:#0D6E"],
[style*="color: #0D6E"],
[style*="color:#0f7"],
[style*="color: #0f7"] {
  color: var(--tp-blue) !important;
}

/* -------------------------------------------------------------
   3. INTERNAL PAGE LAYOUT — shared across all internal pages
   ------------------------------------------------------------- */
.internal-page,
.page-template-default,
.single-realtypress_listing,
.tax-realtypress_neighbourhood,
.page-id-listings {
  background: var(--tp-paper);
}

/* Page header zone */
.tp-page-hero {
  background: var(--tp-bg);
  border-bottom: 0.5px solid var(--tp-bgrule);
  padding: 36px 40px 28px;
}

/* Breadcrumb */
.tp-breadcrumb,
.breadcrumb,
.breadcrumbs,
[class*="breadcrumb"] {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: var(--tp-muted);
  display: flex;
  gap: 6px;
  align-items: center;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.tp-breadcrumb a,
.breadcrumb a,
.breadcrumbs a {
  color: var(--tp-muted);
  text-decoration: none;
  transition: color 600ms ease;
}
.tp-breadcrumb a:hover,
.breadcrumb a:hover {
  color: var(--tp-ink);
}
.breadcrumb-sep,
.breadcrumb > span:not(:last-child)::after {
  content: '›';
  color: var(--tp-rule);
  margin: 0 2px;
}

/* Page titles */
.page-title,
.entry-title,
.archive-title,
.neighbourhood-title,
h1.rp-page-title,
.realtypress-page-title {
  font-family: 'Playfair Display', serif !important;
  font-size: 38px !important;
  font-weight: 400 !important;
  color: var(--tp-ink) !important;
  line-height: 1.15 !important;
  margin-bottom: 8px !important;
}

/* Nearby areas note */
.rp-nearby,
[class*="nearby-areas"],
[class*="listing-includes"] {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: var(--tp-muted);
  line-height: 1.6;
}
.rp-nearby a,
[class*="nearby-areas"] a {
  color: var(--tp-blue);
  text-decoration: none;
  border-bottom: 1px solid rgba(44,61,85,0.2);
  transition: border-color 600ms ease;
}
.rp-nearby a:hover {
  border-bottom-color: var(--tp-blue);
}

/* Results count + sort bar */
.rp-results-bar,
.realtypress-results-bar,
[class*="results-count"] {
  padding: 12px 40px;
  border-bottom: 0.5px solid var(--tp-rule);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: var(--tp-muted);
  background: var(--tp-paper);
}
.rp-results-count strong,
[class*="results-count"] strong {
  color: var(--tp-ink);
  font-weight: 500;
}

/* Sort dropdown */
.rp-sort-select,
[class*="rp-sort"],
.sort-select {
  appearance: none;
  border: 0.5px solid var(--tp-rule);
  border-radius: 2px;
  padding: 6px 28px 6px 12px;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: var(--tp-muted);
  background: var(--tp-paper);
  cursor: pointer;
  outline: none;
  transition: border-color 600ms ease;
}
.rp-sort-select:focus {
  border-color: var(--tp-blue);
}

/* View toggle buttons (grid/list/map) */
.rp-view-toggle button,
[class*="view-toggle"] button,
.rp-view-btn {
  background: var(--tp-paper) !important;
  border: 0.5px solid var(--tp-rule) !important;
  color: var(--tp-hint) !important;
  width: 32px !important;
  height: 32px !important;
  border-radius: 2px !important;
  cursor: pointer !important;
  transition: all 600ms ease !important;
}
.rp-view-toggle button.active,
.rp-view-btn.active {
  background: var(--tp-blue) !important;
  border-color: var(--tp-blue) !important;
  color: #fff !important;
}

/* -------------------------------------------------------------
   4. LISTING CARDS — RealtyPress grid output
   ------------------------------------------------------------- */

/* Card grid container */
.rp-listings-grid,
.realtypress-listings,
[class*="rp-grid"],
.rp-property-grid,
ul.rp-listings,
div.rp-listings,
.rps-grid-result {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  border-bottom: 0.5px solid var(--tp-rule) !important;
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* Individual card */
.rp-listing-item,
.realtypress-listing,
.rp-property-item,
li.rp-listing,
.rp-card,
.thumbnail_description > .thumbnail {
  border-right: 0.5px solid var(--tp-rule) !important;
  border-bottom: 0.5px solid var(--tp-rule) !important;
  background: var(--tp-paper) !important;
  overflow: hidden !important;
  list-style: none !important;
  transition: background 600ms ease !important;
}
.rp-listing-item:nth-child(3n),
.rp-property-item:nth-child(3n) {
  border-right: none !important;
}

/* Card image */
.rp-listing-image,
.rp-property-image,
[class*="rp-listing-img"],
.rp-card-image {
  overflow: hidden !important;
  height: 200px !important;
  position: relative !important;
}
.rp-listing-image img,
.rp-property-image img,
[class*="rp-listing-img"] img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
  transition: transform 800ms ease !important;
}
.rp-listing-item:hover .rp-listing-image img,
.rp-property-item:hover .rp-property-image img,
.thumbnail_description .thumbnail:hover a img {
  transform: scale(1.05) !important;
}

/* For sale / For rent badge */
.rp-listing-type-badge,
.rp-badge,
[class*="listing-badge"],
.rp-status-badge {
  position: absolute !important;
  top: 10px !important;
  left: 10px !important;
  font-family: 'Inter', sans-serif !important;
  font-size: 9px !important;
  font-weight: 500 !important;
  letter-spacing: 0.09em !important;
  text-transform: uppercase !important;
  padding: 4px 9px !important;
  border-radius: 0 !important;
  z-index: 2 !important;
}
.rp-badge-sale,
[class*="for-sale-badge"],
.rp-status-for-sale {
  background: var(--tp-blue) !important;
  color: #fff !important;
}
.rp-badge-rent,
[class*="for-rent-badge"],
.rp-status-for-rent {
  background: var(--tp-paper) !important;
  color: var(--tp-blue) !important;
  border: 1px solid var(--tp-blue) !important;
}

/* Card body */
.rp-listing-details,
.rp-property-details,
.rp-card-body,
[class*="rp-listing-info"],
.thumbnail_description .thumbnail .caption {
  padding: 14px 16px 18px !important;
}

/* Property type label */
.rp-property-type,
.rp-listing-category,
[class*="rp-type-label"] {
  font-family: 'Inter', sans-serif !important;
  font-size: 10px !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  color: var(--tp-hint) !important;
  margin-bottom: 5px !important;
  display: block !important;
}

/* Address */
.rp-listing-address,
.rp-property-address,
.rp-listing-title,
[class*="rp-address"],
h3.rp-title,
.thumbnail_description .thumbnail h3,
.thumbnail_description .caption h3 {
  font-family: 'Playfair Display', serif !important;
  font-size: 17px !important;
  font-weight: 400 !important;
  line-height: 1.3 !important;
  color: var(--tp-ink) !important;
  margin-bottom: 3px !important;
  text-decoration: none !important;
}
.rp-listing-address a,
.rp-listing-title a {
  color: var(--tp-ink) !important;
  text-decoration: none !important;
  transition: color 600ms ease !important;
}
.rp-listing-address a:hover,
.rp-listing-title a:hover {
  color: var(--tp-blue) !important;
}

/* Neighbourhood/area */
.rp-listing-neighbourhood,
.rp-property-area,
[class*="rp-neighbourhood"],
.thumbnail_description .thumbnail p.p1,
.thumbnail_description .caption p.p1 {
  font-family: 'Inter', sans-serif !important;
  font-size: 11px !important;
  color: var(--tp-hint) !important;
  margin-bottom: 10px !important;
  display: block !important;
}

/* Price */
.rp-listing-price,
.rp-property-price,
[class*="rp-price"],
.thumbnail_description .thumbnail p.p2,
.thumbnail_description .caption p.p2,
.thumbnail_description .thumbnail p.p2 h3,
.thumbnail_description .caption p.p2 h3 {
  font-family: 'Playfair Display', serif !important;
  font-size: 19px !important;
  font-weight: 400 !important;
  color: var(--tp-ink) !important;
  margin-bottom: 8px !important;
  display: block !important;
}

/* Beds/baths/sqft meta */
.rp-listing-meta,
.rp-property-meta,
.rp-features,
[class*="rp-meta"],
[class*="rp-specs"],
.thumb_botm {
  display: flex !important;
  gap: 12px !important;
  padding-top: 9px !important;
  border-top: 0.5px solid var(--tp-rule) !important;
  margin-top: 0 !important;
  list-style: none !important;
}
.rp-listing-meta li,
.rp-property-meta li,
.rp-features li,
[class*="rp-meta"] li,
[class*="rp-meta"] span,
.thumb_botm span {
  font-family: 'Inter', sans-serif !important;
  font-size: 11px !important;
  color: var(--tp-muted) !important;
  list-style: none !important;
}

/* -------------------------------------------------------------
   5. NEIGHBOURHOOD SINGLE PAGE
   ------------------------------------------------------------- */

/* Neighbourhood hero */
.rp-neighbourhood-hero,
.neighbourhood-hero,
[class*="neighbourhood-header"] {
  position: relative;
  min-height: 340px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}
.rp-neighbourhood-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.rp-neighbourhood-hero-overlay,
.neighbourhood-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,14,20,0.85) 0%, rgba(10,14,20,0.2) 55%, transparent 100%);
}
.rp-neighbourhood-hero-text,
.neighbourhood-hero-content {
  position: relative;
  z-index: 2;
  padding: 32px 40px;
  width: 100%;
}
.rp-neighbourhood-name,
.neighbourhood-name {
  font-family: 'Playfair Display', serif !important;
  font-size: 48px !important;
  font-weight: 400 !important;
  color: #fff !important;
  line-height: 1.05 !important;
  margin-bottom: 8px !important;
}
.rp-neighbourhood-stats,
.neighbourhood-stats {
  display: flex;
  gap: 24px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: rgba(255,255,255,0.65);
}
.rp-neighbourhood-stats span,
.neighbourhood-stats span {
  color: #fff;
  font-weight: 500;
}

/* Neighbourhood guide copy */
.rp-neighbourhood-guide,
.neighbourhood-guide,
[class*="neighbourhood-description"] {
  padding: 32px 40px;
  border-bottom: 0.5px solid var(--tp-rule);
}
.rp-neighbourhood-guide h2,
.neighbourhood-guide h2 {
  font-family: 'Playfair Display', serif !important;
  font-size: 24px !important;
  font-weight: 400 !important;
  color: var(--tp-ink) !important;
  margin-bottom: 12px !important;
}
.rp-neighbourhood-guide p,
.neighbourhood-guide p {
  font-family: 'Inter', sans-serif !important;
  font-size: 15px !important;
  color: var(--tp-body) !important;
  line-height: 1.85 !important;
  margin-bottom: 14px !important;
}

/* Sidebar stats */
.rp-neighbourhood-sidebar,
.neighbourhood-sidebar {
  padding: 24px;
  border-left: 0.5px solid var(--tp-rule);
}
.rp-stat-row,
.neighbourhood-stat {
  display: flex;
  justify-content: space-between;
  padding: 9px 0;
  border-bottom: 0.5px solid var(--tp-rule);
  font-family: 'Inter', sans-serif;
  font-size: 12px;
}
.rp-stat-label,
.neighbourhood-stat-label {
  color: var(--tp-muted);
}
.rp-stat-value,
.neighbourhood-stat-value {
  font-family: 'Playfair Display', serif;
  font-size: 14px;
  color: var(--tp-ink);
}

/* -------------------------------------------------------------
   6. SINGLE LISTING PAGE
   ------------------------------------------------------------- */

/* Photo gallery */
.rp-listing-gallery,
.realtypress-gallery,
[class*="rp-photos"] {
  border-bottom: 0.5px solid var(--tp-rule);
}
.rp-gallery-main,
[class*="rp-main-photo"] {
  width: 100%;
  max-height: 480px;
  overflow: hidden;
}
.rp-gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.rp-gallery-thumbs,
[class*="rp-thumbnails"] {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3px;
  padding: 3px 0 0;
}
.rp-gallery-thumbs img {
  width: 100%;
  height: 80px;
  object-fit: cover;
  cursor: pointer;
  transition: opacity 600ms ease;
}
.rp-gallery-thumbs img:hover {
  opacity: 0.8;
}

/* Single listing title block */
.rp-single-listing,
.rps-single-listing,
.single-listing-content,
[class*="rp-listing-single"] {
  display: grid;
  grid-template-columns: 1fr 300px;
  border-bottom: 0.5px solid var(--tp-rule);
}

/* Main content */
.rp-single-main,
.listing-main-content {
  padding: 32px 40px;
  border-right: 0.5px solid var(--tp-rule);
}

/* Address on single page */
.rp-single-address,
.single-listing-address,
h1[class*="rp-address"],
.rp-listing-full-address,
.single-list-info,
.nbr-title {
  font-family: 'Playfair Display', serif !important;
  font-size: 38px !important;
  font-weight: 400 !important;
  line-height: 1.1 !important;
  color: var(--tp-ink) !important;
  margin-bottom: 6px !important;
}

/* Price on single page */
.rp-single-price,
.single-listing-price,
[class*="rp-full-price"],
.rps-pricing,
.buy-price {
  font-family: 'Playfair Display', serif !important;
  font-size: 36px !important;
  color: var(--tp-ink) !important;
  margin-bottom: 8px !important;
}

/* MLS number */
.rp-mls-number,
[class*="rp-mls"],
.listing-mls {
  font-family: 'Inter', sans-serif !important;
  font-size: 11px !important;
  color: var(--tp-hint) !important;
  letter-spacing: 0.04em !important;
  margin-bottom: 20px !important;
}

/* Facts grid */
.rp-listing-facts,
.rp-property-details-grid,
[class*="rp-facts"],
.rps-single-features,
.rps-listing-stats {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  border: 0.5px solid var(--tp-rule) !important;
  margin-bottom: 24px !important;
}
.rp-fact-item,
[class*="rp-fact"],
.rp-detail-item {
  padding: 12px 14px !important;
  border-right: 0.5px solid var(--tp-rule) !important;
  border-bottom: 0.5px solid var(--tp-rule) !important;
}
.rp-fact-label,
[class*="rp-fact-label"],
.rp-detail-label {
  font-family: 'Inter', sans-serif !important;
  font-size: 9px !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  color: var(--tp-hint) !important;
  margin-bottom: 4px !important;
  display: block !important;
}
.rp-fact-value,
[class*="rp-fact-value"],
.rp-detail-value {
  font-family: 'Playfair Display', serif !important;
  font-size: 15px !important;
  color: var(--tp-ink) !important;
}

/* Description */
.rp-listing-description,
.rp-property-description,
[class*="rp-description"] {
  font-family: 'Inter', sans-serif !important;
  font-size: 15px !important;
  color: var(--tp-body) !important;
  line-height: 1.85 !important;
}

/* Sidebar */
.rp-single-sidebar,
.listing-sidebar,
[class*="rp-listing-sidebar"] {
  padding: 28px 24px;
}

/* Book a showing CTA */
.rp-book-showing,
.rp-contact-btn,
[class*="rp-cta-primary"],
.listing-cta-primary {
  display: block !important;
  background: var(--tp-amber) !important;
  color: #fff !important;
  padding: 13px !important;
  width: 100% !important;
  text-align: center !important;
  font-family: 'Playfair Display', serif !important;
  font-style: italic !important;
  font-size: 15px !important;
  border-radius: 20px !important;
  cursor: pointer !important;
  border: none !important;
  transition: background 600ms ease !important;
  margin-bottom: 8px !important;
  text-decoration: none !important;
}
.rp-book-showing:hover,
.rp-contact-btn:hover {
  background: #7A5C20 !important;
  color: #fff !important;
}

/* Request info — ghost */
.rp-request-info,
[class*="rp-cta-secondary"],
.listing-cta-secondary {
  display: block !important;
  background: transparent !important;
  color: var(--tp-amber) !important;
  border: 1px solid var(--tp-amber) !important;
  padding: 11px !important;
  width: 100% !important;
  text-align: center !important;
  font-family: 'Playfair Display', serif !important;
  font-style: italic !important;
  font-size: 14px !important;
  border-radius: 20px !important;
  cursor: pointer !important;
  transition: all 600ms ease !important;
  margin-bottom: 16px !important;
  text-decoration: none !important;
}
.rp-request-info:hover {
  background: var(--tp-amber) !important;
  color: #fff !important;
}

/* Agent info */
.rp-agent-info,
[class*="rp-agent"],
.listing-agent {
  padding-top: 16px;
  border-top: 0.5px solid var(--tp-rule);
}
.rp-agent-name,
[class*="rp-agent-name"] {
  font-family: 'Playfair Display', serif !important;
  font-size: 15px !important;
  color: var(--tp-ink) !important;
  margin-bottom: 2px !important;
}
.rp-agent-office,
[class*="rp-brokerage"] {
  font-family: 'Inter', sans-serif !important;
  font-size: 12px !important;
  color: var(--tp-muted) !important;
}

/* Save / Share buttons */
.rp-save-btn,
.rp-share-btn,
[class*="rp-action-btn"] {
  background: none !important;
  border: 0.5px solid var(--tp-rule) !important;
  padding: 7px 14px !important;
  font-size: 11px !important;
  font-family: 'Inter', sans-serif !important;
  color: var(--tp-muted) !important;
  cursor: pointer !important;
  border-radius: 2px !important;
  transition: all 600ms ease !important;
}
.rp-save-btn:hover,
.rp-share-btn:hover {
  border-color: var(--tp-blue) !important;
  color: var(--tp-blue) !important;
}

/* View tabs on single listing (Image/Aerial/Street/Walk Score) */
.rp-listing-views,
.rp-view-tabs,
[class*="rp-listing-tab-nav"],
.landing-tabs,
.tabs_main {
  display: flex !important;
  background: var(--tp-paper) !important;
  border-bottom: 0.5px solid var(--tp-rule) !important;
  padding: 0 40px !important;
}
.rp-view-tab,
[class*="rp-listing-tab"],
.tab-link,
ul.landing-nav li a {
  font-family: 'Inter', sans-serif !important;
  font-size: 12px !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  color: var(--tp-muted) !important;
  padding: 12px 16px !important;
  cursor: pointer !important;
  border-bottom: 2px solid transparent !important;
  transition: all 600ms ease !important;
  background: transparent !important;
  border-top: none !important;
  border-left: none !important;
  border-right: none !important;
}
.rp-view-tab.active,
.rp-view-tab:hover,
[class*="rp-listing-tab"].active,
.tab-link.active,
ul.landing-nav li.active a {
  color: var(--tp-ink) !important;
  border-bottom-color: var(--tp-blue) !important;
}

/* -------------------------------------------------------------
   7. NEIGHBOURHOODS INDEX PAGE
   ------------------------------------------------------------- */
.rp-neighbourhoods-grid,
.neighbourhoods-index,
[class*="neighbourhood-grid"],
section.neighbourhood-list {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 24px !important;
  padding: 32px 40px !important;
}

.rp-neighbourhood-card,
[class*="neighbourhood-card"],
section.neighbourhood-list .thumbnail_description > .thumbnail {
  text-decoration: none !important;
  display: block !important;
  overflow: hidden !important;
  border-radius: 2px !important;
}
.rp-neighbourhood-card:hover .rp-neighbourhood-thumb img {
  transform: scale(1.05) !important;
}

.rp-neighbourhood-thumb,
[class*="neighbourhood-thumb"] {
  overflow: hidden !important;
  height: 160px !important;
  border-radius: 2px !important;
  margin-bottom: 12px !important;
}
.rp-neighbourhood-thumb img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  transition: transform 800ms ease !important;
}

.rp-neighbourhood-card-name,
[class*="neighbourhood-name"] {
  font-family: 'Playfair Display', serif !important;
  font-size: 17px !important;
  color: var(--tp-ink) !important;
  margin-bottom: 3px !important;
  transition: color 600ms ease !important;
}
.rp-neighbourhood-card:hover .rp-neighbourhood-card-name {
  color: var(--tp-blue) !important;
}

.rp-neighbourhood-card-count,
[class*="neighbourhood-count"] {
  font-family: 'Inter', sans-serif !important;
  font-size: 12px !important;
  color: var(--tp-muted) !important;
}

/* -------------------------------------------------------------
   8. ARTICLE / GUIDE PAGES
   ------------------------------------------------------------- */
.single-post,
.page-template-article,
article.post {
  background: var(--tp-paper);
}

.tp-article-hero,
.post-header,
[class*="article-header"] {
  background: var(--tp-bg);
  border-bottom: 0.5px solid var(--tp-bgrule);
  padding: 48px 40px 36px;
  max-width: 860px;
}

.tp-article-title,
.entry-title,
h1.post-title {
  font-family: 'Playfair Display', serif !important;
  font-size: 44px !important;
  font-weight: 400 !important;
  line-height: 1.1 !important;
  color: var(--tp-ink) !important;
  margin-bottom: 14px !important;
}

.tp-article-deck,
.entry-subtitle,
.post-subtitle {
  font-family: 'Playfair Display', serif !important;
  font-size: 18px !important;
  font-style: italic !important;
  color: var(--tp-muted) !important;
  line-height: 1.65 !important;
}

/* Article body layout */
.entry-content,
.post-content,
[class*="article-body"] {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 0;
  border-bottom: 0.5px solid var(--tp-rule);
}

.entry-content-main {
  padding: 36px 40px;
  border-right: 0.5px solid var(--tp-rule);
}

/* Article body text */
.entry-content p,
.post-content p {
  font-family: 'Inter', sans-serif !important;
  font-size: 15px !important;
  color: #444 !important;
  line-height: 1.9 !important;
  margin-bottom: 16px !important;
}

.entry-content h2,
.post-content h2 {
  font-family: 'Playfair Display', serif !important;
  font-size: 24px !important;
  font-weight: 400 !important;
  color: var(--tp-ink) !important;
  margin-top: 32px !important;
  margin-bottom: 14px !important;
}

/* Pull quote */
.wp-block-quote,
blockquote {
  border-left: 3px solid var(--tp-amber) !important;
  padding: 12px 20px !important;
  margin: 24px 0 !important;
  background: rgba(160,120,48,0.04) !important;
}
.wp-block-quote p,
blockquote p {
  font-family: 'Playfair Display', serif !important;
  font-size: 18px !important;
  font-style: italic !important;
  color: var(--tp-ink) !important;
  line-height: 1.6 !important;
  margin: 0 !important;
}

/* -------------------------------------------------------------
   9. RESPONSIVE — mobile overrides
   ------------------------------------------------------------- */
@media (max-width: 768px) {

  /* Listings grid — single column */
  .rp-listings-grid,
  .realtypress-listings,
  [class*="rp-grid"],
  .rps-grid-result {
    grid-template-columns: 1fr !important;
  }
  .rp-listing-item,
  .rp-property-item,
  .thumbnail_description > .thumbnail {
    border-right: none !important;
  }

  /* Single listing — stack */
  .rp-single-listing,
  .rps-single-listing,
  .single-listing-content {
    grid-template-columns: 1fr !important;
  }
  .rp-single-main,
  .listing-main-content {
    border-right: none !important;
    padding: 24px 20px !important;
  }
  .rp-single-address,
  .single-listing-address,
  .single-list-info,
  .nbr-title {
    font-size: 28px !important;
  }
  .rp-single-price {
    font-size: 28px !important;
  }
  .rp-listing-facts {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  /* Neighbourhood index — 1 column */
  .rp-neighbourhoods-grid,
  .neighbourhoods-index,
  section.neighbourhood-list {
    grid-template-columns: 1fr !important;
    padding: 20px !important;
  }

  /* Page titles */
  .page-title,
  .entry-title,
  .rp-neighbourhood-name {
    font-size: 28px !important;
  }

  /* Article */
  .entry-content,
  .post-content {
    grid-template-columns: 1fr !important;
  }
  .tp-article-title {
    font-size: 30px !important;
  }

  /* Tabs */
  .rp-tabs,
  .realtypress-tabs {
    padding: 0 16px !important;
    overflow-x: auto !important;
  }

  /* Page hero */
  .tp-page-hero {
    padding: 24px 20px !important;
  }

}

/* =============================================================
   FOOTER — tp-footer (matches homepage design)
   ============================================================= */
.tp-footer{background:var(--tp-ink);padding:26px 28px 20px;}
.tp-footer-top{display:flex;justify-content:space-between;align-items:flex-start;padding-bottom:20px;border-bottom:.5px solid rgba(255,255,255,.08);margin-bottom:16px;}
.tp-footer-logo-top{font-family:'Inter',sans-serif;font-size:16px;font-weight:500;letter-spacing:.12em;color:#fff;}
.tp-footer-logo-bottom{font-family:'Inter',sans-serif;font-size:9px;letter-spacing:.28em;color:rgba(255,255,255,.3);margin-top:2px;}
.tp-footer-tagline{font-family:'Playfair Display',serif;font-size:11px;font-style:italic;color:rgba(255,255,255,.28);margin-top:10px;}
.tp-footer-date{font-family:'Inter',sans-serif;font-size:9px;color:rgba(255,255,255,.18);margin-top:8px;}
.tp-footer-nav-cols{display:flex;gap:44px;}
.tp-footer-col-title{font-family:'Inter',sans-serif;font-size:9px;font-weight:500;letter-spacing:.1em;text-transform:uppercase;color:rgba(255,255,255,.22);margin-bottom:10px;}
.tp-footer-col a{display:block;font-family:'Inter',sans-serif;font-size:14px;color:rgba(255,255,255,.42);text-decoration:none;margin-bottom:7px;transition:color 600ms ease;}
.tp-footer-col a:hover{color:rgba(255,255,255,.85);}
.tp-footer-bottom{display:flex;justify-content:space-between;}
.tp-footer-copy{font-family:'Inter',sans-serif;font-size:9px;color:rgba(255,255,255,.18);}
@media(max-width:768px){
  .tp-footer{padding:32px 20px 24px;text-align:center;}
  .tp-footer-top{flex-direction:column;gap:0;align-items:center;}
  .tp-footer-brand{display:flex;flex-direction:column;align-items:center;}
  .tp-footer-tagline{margin-top:8px;}
  .tp-footer-date{margin-top:6px;}
  .tp-footer-nav-cols{gap:0;flex-wrap:nowrap;justify-content:center;width:100%;margin-top:28px;}
  .tp-footer-col{flex:1;text-align:center;}
  .tp-footer-bottom{flex-direction:column;align-items:center;gap:6px;text-align:center;}
}
/* Hide old footer and copyright on all non-homepage pages */
footer:not(.tp-footer){display:none !important;}
.copyright{display:none !important;}

/* Saved properties icon tooltip */
.tp-favs-wrap{position:relative;display:flex;align-items:center;}
.tp-favs-tooltip{
  position:absolute;top:calc(100% + 10px);right:0;width:220px;
  background:#1A1A1A;color:#FAFAF8;
  font-family:'Inter',sans-serif;font-size:11px;line-height:1.5;
  padding:9px 12px;border-radius:3px;
  pointer-events:none;opacity:0;transform:translateY(-4px);
  transition:opacity 200ms ease,transform 200ms ease;
  white-space:normal;z-index:300;
}
.tp-favs-tooltip::before{
  content:'';position:absolute;bottom:100%;right:14px;
  border:5px solid transparent;border-bottom-color:#1A1A1A;
}
.tp-favs-wrap:hover .tp-favs-tooltip{opacity:1;transform:translateY(0);}
