/* =============================================================
   TORONTOPROPERTY.CA — Neighbourhood Single Page
   neighbourhood.css — enqueue on neighbourhood pages
   ============================================================= */

/* BREADCRUMB */
.tp-nh-breadcrumb{padding:12px 40px;display:flex;gap:6px;align-items:center;font-family:'Inter',sans-serif;font-size:13px;color:#999999;border-bottom:.5px solid #E2E2DF;background:#FAFAF8;}
.tp-nh-breadcrumb a{color:#999999;text-decoration:none;transition:color 600ms ease;}
.tp-nh-breadcrumb a:hover{color:#2C3D55;}
.tp-nh-breadcrumb span{color:#C8C8C4;}
.tp-nh-breadcrumb span:last-child{color:#1A1A1A;}

/* HERO */
.tp-nh-hero{height:380px;position:relative;overflow:hidden;background:#F2EFE8;}
.tp-nh-hero img{width:100%;height:100%;object-fit:cover;display:block;}
.tp-nh-overlay{position:absolute;inset:0;background:linear-gradient(to bottom,rgba(10,12,20,.10) 0%,rgba(10,12,20,.80) 100%);}
/* When no photo, remove the darkening overlay */
.tp-nh-hero:not(:has(img)) .tp-nh-overlay{display:none;}
.tp-nh-hero-body{position:absolute;bottom:0;left:0;right:0;padding:36px 40px;display:grid;grid-template-columns:1fr auto;align-items:flex-end;gap:40px;}
.tp-nh-name{font-family:'Playfair Display',serif;font-size:56px;font-weight:400;color:#FFFFFF;line-height:1;margin-bottom:0;text-shadow:0 2px 12px rgba(0,0,0,0.65);}
.tp-nh-stats{display:flex;gap:28px;flex-shrink:0;background:rgba(10,12,20,0.50);padding:14px 20px;border-radius:4px;}
.tp-nh-stat{text-align:right;}
.tp-nh-stat-value{font-family:'Playfair Display',serif;font-size:32px;color:#FFFFFF;line-height:1;}
.tp-nh-stat-label{font-family:'Inter',sans-serif;font-size:10px;letter-spacing:.08em;text-transform:uppercase;color:rgba(255,255,255,.50);margin-top:4px;}
/* No-photo hero: dark text on light background */
.tp-nh-hero:not(:has(img)) .tp-nh-name{color:#1A1A1A;}
.tp-nh-hero:not(:has(img)) .tp-nh-intro{color:var(--tp-body);}
.tp-nh-hero:not(:has(img)) .tp-nh-stat-value{color:#1A1A1A;}
.tp-nh-hero:not(:has(img)) .tp-nh-stat-label{color:#999999;}

/* TABS */
.tp-nh-tabs{border-bottom:.5px solid #E2E2DF;padding:0 40px;display:flex;background:#FAFAF8;}
.tp-nh-tab{font-family:'Inter',sans-serif;font-size:13px;letter-spacing:.04em;color:#999999;padding:14px 20px;border-bottom:2px solid transparent;cursor:pointer;transition:all 600ms ease;text-decoration:none;display:block;}
.tp-nh-tab:first-child{padding-left:0;}
.tp-nh-tab:hover{color:#1A1A1A;}
.tp-nh-tab.active{color:#1A1A1A;border-bottom-color:#1A1A1A;}
.tp-nh-tab-count{display:inline-block;font-size:10px;background:#E8E4DC;color:var(--tp-body);border-radius:9px;padding:1px 6px;margin-left:5px;font-family:'Inter',sans-serif;vertical-align:middle;line-height:1.6;}

/* BODY */
.tp-nh-body{display:grid;grid-template-columns:1fr 300px;background:#FAFAF8;}
.tp-nh-main{padding:36px 40px;border-right:.5px solid #E2E2DF;}
.tp-nh-about-title{font-family:'Playfair Display',serif;font-size:28px;font-weight:400;color:#1A1A1A;margin-bottom:16px;}
.tp-nh-about-body{font-family:'Inter',sans-serif;font-size:15px;color:var(--tp-body);line-height:1.9;margin-bottom:14px;}

/* Content sections — 2-column grid */
.tp-nh-sections-grid{display:grid;grid-template-columns:1fr 1fr;gap:32px 40px;margin-bottom:32px;}
.tp-nh-section{min-width:0;}
.tp-nh-section-title{font-family:'Playfair Display',serif;font-size:18px;font-weight:400;color:#1A1A1A;margin-bottom:8px;}
.tp-nh-section .tp-nh-about-body{margin-bottom:0;}

/* Photo pair */
.tp-nh-photo-pair{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:32px;}
.tp-nh-photo img{width:100%;height:220px;object-fit:cover;display:block;}

/* Section header */
.tp-nh-sec-row{display:flex;justify-content:space-between;align-items:baseline;margin-bottom:16px;margin-top:36px;padding-top:32px;border-top:.5px solid #E2E2DF;}
.tp-nh-sec-title{font-family:'Playfair Display',serif;font-size:22px;color:#1A1A1A;}
.tp-nh-sec-link{font-family:'Playfair Display',serif;font-style:italic;font-size:13px;color:#2C3D55;text-decoration:none;transition:color 600ms ease;}
.tp-nh-sec-link:hover{color:#1A1A1A;}

/* 2-col listing grid inside main */
.tp-nh-listings{display:grid;grid-template-columns:1fr 1fr;border:.5px solid #E2E2DF;}
.tp-nh-card{border-right:.5px solid #E2E2DF;border-bottom:.5px solid #E2E2DF;overflow:hidden;cursor:pointer;transition:background 600ms ease;text-decoration:none;display:block;color:inherit;background:#FAFAF8;position:relative;}
.tp-nh-card:nth-child(2n){border-right:none;}
.tp-nh-card:nth-last-child(-n+2){border-bottom:none;}
.tp-nh-card:hover{background:#FFFFFF;}
.tp-nh-card-img{height:160px;overflow:hidden;position:relative;}
.tp-nh-card-img img{width:100%;height:100%;object-fit:cover;display:block;transition:transform 800ms ease;}
.tp-nh-card:hover .tp-nh-card-img img{transform:scale(1.05);}
.tp-nh-card-badge{position:absolute;top:8px;left:8px;font-family:'Inter',sans-serif;font-size:8px;font-weight:500;letter-spacing:.10em;text-transform:uppercase;padding:2px 7px;}
.tp-nh-card-badge.sale{background:#2C3D55;color:#FFFFFF;}
.tp-nh-card-badge.rent{background:#FFFFFF;color:#2C3D55;border:.5px solid #2C3D55;}
.tp-nh-card-save{position:absolute;top:8px;right:8px;background:rgba(0,0,0,.40);border:none;width:26px;height:26px;border-radius:50%;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:background 600ms ease;}
.tp-nh-card-save:hover{background:rgba(0,0,0,.65);}
.tp-nh-card-save svg{width:11px;height:11px;stroke:#FFFFFF;fill:none;stroke-width:1.5;stroke-linecap:round;}
.tp-nh-card-body{padding:12px 14px 16px;}
.tp-nh-card-type{font-family:'Inter',sans-serif;font-size:9px;font-weight:500;letter-spacing:.10em;text-transform:uppercase;color:#C8C8C4;margin-bottom:4px;}
.tp-nh-card-address{font-family:'Playfair Display',serif;font-size:16px;color:#1A1A1A;margin-bottom:2px;line-height:1.2;}
.tp-nh-card-price{font-family:'Playfair Display',serif;font-size:18px;color:#1A1A1A;margin-bottom:8px;}
.tp-nh-card-meta{display:flex;gap:10px;padding-top:7px;border-top:.5px solid #E2E2DF;font-family:'Inter',sans-serif;font-size:11px;color:#999999;}

/* SIDEBAR */
.tp-nh-sidebar{padding:24px;}
.tp-nh-sidebar-sticky{position:sticky;top:160px;padding-top:16px;}
.tp-nh-sidebar-box{background:#FFFFFF;border:.5px solid #E2E2DF;padding:18px;margin-bottom:14px;}
.tp-nh-sidebar-title{font-family:'Inter',sans-serif;font-size:10px;font-weight:500;letter-spacing:.10em;text-transform:uppercase;color:#999999;margin-bottom:12px;}
.tp-nh-sidebar-link{display:flex;justify-content:space-between;align-items:center;font-family:'Inter',sans-serif;font-size:14px;color:#2C3D55;text-decoration:none;padding:8px 0;border-bottom:.5px solid #E2E2DF;}
.tp-nh-sidebar-link:last-child{border-bottom:none;padding-bottom:0;}
.tp-nh-sidebar-link span{font-family:'Inter',sans-serif;font-size:13px;color:#999999;}
.tp-nh-sidebar-link:hover{color:#1A1A1A;}
.tp-nh-map{height:200px;background:#e2dfd8;border:.5px solid #E2E2DF;margin-bottom:16px;position:relative;display:flex;align-items:center;justify-content:center;overflow:hidden;}
.tp-nh-map-link{position:absolute;bottom:8px;right:8px;font-family:'Playfair Display',serif;font-style:italic;font-size:11px;color:#2C3D55;background:#FAFAF8;padding:4px 9px;border:.5px solid #E2E2DF;text-decoration:none;transition:color 600ms ease;}
.tp-nh-map-link:hover{color:#1A1A1A;}
.tp-nh-sb-card{background:#FFFFFF;border:.5px solid #E2E2DF;padding:18px;margin-bottom:14px;}
.tp-nh-sb-title{font-family:'Playfair Display',serif;font-size:16px;color:#1A1A1A;margin-bottom:12px;}
.tp-nh-sb-row{display:flex;justify-content:space-between;align-items:baseline;padding:8px 0;border-bottom:.5px solid #E2E2DF;}
.tp-nh-sb-row:last-child{border-bottom:none;}
.tp-nh-sb-label{font-family:'Inter',sans-serif;font-size:12px;color:#999999;}
.tp-nh-sb-value{font-family:'Playfair Display',serif;font-size:15px;color:#1A1A1A;}

/* CTAs */
.tp-nh-cta{display:block;background-color:#A07830;color:#FFFFFF;padding:12px 18px;width:100%;text-align:center;font-family:'Playfair Display',serif;font-style:italic;font-size:14px;border-radius:4px;border:none;cursor:pointer;margin-bottom:0;text-decoration:none;transition:background-color 600ms ease;box-sizing:border-box;}
.tp-nh-cta:hover{background-color:#7A5C20;color:#FFFFFF;}
.tp-nh-ghost{display:block;background:transparent;color:#A07830;border:1px solid #A07830;padding:11px 18px;width:100%;text-align:center;font-family:'Playfair Display',serif;font-style:italic;font-size:13px;border-radius:4px;cursor:pointer;text-decoration:none;transition:all 600ms ease;box-sizing:border-box;}
.tp-nh-ghost:hover{background:#A07830;color:#FFFFFF;}

/* Tab panels */
.tp-nh-panel{display:none;}
.tp-nh-panel.active{display:block;}

/* =============================================================
   NEIGHBOURHOOD HUB PAGE
   ============================================================= */
.tp-hub-page{background:#FAFAF8;}

.tp-hub-header{padding:28px 40px;border-bottom:.5px solid #E2E2DF;display:flex;align-items:flex-end;justify-content:space-between;gap:20px;background:#FAFAF8;}
.tp-hub-title{font-family:'Playfair Display',serif;font-size:28px;font-weight:400;color:#1A1A1A;margin-bottom:4px;}
.tp-hub-sub{font-family:'Inter',sans-serif;font-size:13px;color:#999999;}
.tp-hub-header-right{display:flex;align-items:center;gap:10px;flex-shrink:0;}

.tp-hub-search-wrap{position:relative;}
.tp-hub-search{font-family:'Inter',sans-serif;font-size:13px;color:#1A1A1A;background:#FFFFFF;border:.5px solid #E2E2DF;border-radius:2px;padding:7px 34px 7px 12px;width:220px;outline:none;transition:border-color 600ms ease;}
.tp-hub-search:focus{border-color:#2C3D55;}
.tp-hub-search-icon{position:absolute;right:10px;top:50%;transform:translateY(-50%);width:14px;height:14px;pointer-events:none;}

.tp-hub-grid{display:grid;grid-template-columns:repeat(4,1fr);border-left:.5px solid #E2E2DF;border-top:.5px solid #E2E2DF;}
.tp-hub-card{border-right:.5px solid #E2E2DF;border-bottom:.5px solid #E2E2DF;text-decoration:none;color:inherit;display:block;background:#FAFAF8;transition:background 600ms ease;overflow:hidden;}
.tp-hub-card:hover{background:#FFFFFF;}
.tp-hub-card-img{height:180px;overflow:hidden;position:relative;background:#F2EFE8;}
.tp-hub-card-img img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block;transition:transform 800ms ease;}
.tp-hub-card:hover .tp-hub-card-img img{transform:scale(1.05);}
.tp-hub-card-no-img{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:16px;gap:8px;}
.tp-hub-card-no-img svg{opacity:.3;flex-shrink:0;}
.tp-hub-card-no-img span{font-family:'Inter',sans-serif;font-size:12px;color:#999;text-align:center;line-height:1.3;}
.tp-hub-card-overlay{position:absolute;inset:0;background:linear-gradient(to bottom,transparent 40%,rgba(10,12,20,.18) 100%);}
.tp-hub-card-pills{position:absolute;bottom:10px;left:10px;display:flex;gap:5px;flex-wrap:wrap;z-index:2;}
.tp-hub-card-pill{font-family:'Inter',sans-serif;font-size:9px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;padding:4px 10px;border-radius:20px;color:#FFFFFF;white-space:nowrap;}
.tp-hub-card-pill.sale{background:#2C3D55;}
.tp-hub-card-pill.rent{background:#A07830;}
.tp-hub-card-body{padding:14px 16px 18px;}
.tp-hub-card-city{font-family:'Inter',sans-serif;font-size:10px;letter-spacing:.06em;text-transform:uppercase;color:#A07830;margin-bottom:2px;}
.tp-hub-empty{padding:60px 40px;font-family:'Inter',sans-serif;font-size:15px;color:#999;grid-column:1/-1;}
.tp-hub-card-name{font-family:'Playfair Display',serif;font-size:18px;font-weight:400;color:#1A1A1A;line-height:1.2;margin-bottom:4px;}

/* Region toggle pills */
.tp-hub-toggle{display:flex;gap:0;border:.5px solid #E2E2DF;border-radius:3px;overflow:hidden;flex-shrink:0;}
.tp-hub-toggle-btn{font-family:'Inter',sans-serif;font-size:12px;letter-spacing:.03em;padding:7px 14px;cursor:pointer;text-decoration:none;transition:all 600ms ease;white-space:nowrap;border:none;background:none;}
.tp-hub-toggle-btn.active{background:#1A1A1A;color:#FFFFFF;}
.tp-hub-toggle-btn:not(.active){background:#FAFAF8;color:#999999;}
.tp-hub-toggle-btn:not(.active):hover{color:#1A1A1A;background:#F2EFE8;}

/* Sort dropdown — duplicated here since search-results.css not loaded on hub */
.tp-sort-wrap{position:relative;}
.tp-sort-btn{font-family:'Inter',sans-serif;font-size:13px;color:#1A1A1A;background:#FAFAF8;border:.5px solid #E2E2DF;border-radius:2px;padding:6px 10px;cursor:pointer;display:flex;align-items:center;gap:7px;white-space:nowrap;transition:border-color 600ms ease;}
.tp-sort-btn:hover{border-color:#2C3D55;}
.tp-sort-dropdown{display:none;position:absolute;top:calc(100% + 4px);right:0;background:#FAFAF8;border:.5px solid #E2E2DF;border-radius:2px;min-width:120px;z-index:200;box-shadow:0 4px 12px rgba(0,0,0,.07);}
.tp-sort-dropdown.open{display:block;}
.tp-sort-option{font-family:'Inter',sans-serif;font-size:13px;color:#1A1A1A;padding:9px 14px;cursor:pointer;transition:background 600ms ease;white-space:nowrap;}
.tp-sort-option:hover{background:#F2EFE8;}
.tp-sort-option.active{color:#2C3D55;font-weight:500;}

/* Pagination — duplicated here since search-results.css not loaded on hub */
.tp-pagination{display:flex;align-items:center;justify-content:space-between;padding:24px 40px;border-top:.5px solid #E2E2DF;background:#FAFAF8;}
.tp-pagination-info{font-family:'Inter',sans-serif;font-size:13px;color:#999999;}
.tp-pagination-pages{display:flex;gap:4px;align-items:center;}
.tp-pagination-pages .page-numbers,
.tp-pagination-pages a,
.tp-pagination-pages span{width:34px !important;height:34px !important;display:inline-flex !important;align-items:center !important;justify-content:center !important;border:.5px solid #E2E2DF !important;background:#FAFAF8 !important;font-family:'Inter',sans-serif !important;font-size:13px !important;color:#999999 !important;cursor:pointer !important;border-radius:2px !important;transition:all 600ms ease !important;text-decoration:none !important;line-height:1 !important;margin:0 !important;padding:0 !important;box-shadow:none !important;min-width:0 !important;}
.tp-pagination-pages .page-numbers:hover,
.tp-pagination-pages a:hover{border-color:#2C3D55 !important;color:#2C3D55 !important;}
.tp-pagination-pages .page-numbers.current,
.tp-pagination-pages .page-numbers.current:hover{background:#2C3D55 !important;color:#FFFFFF !important;border-color:#2C3D55 !important;}
.tp-pagination-pages .page-numbers.dots,
.tp-pagination-pages .page-numbers.dots:hover{border:none !important;background:none !important;cursor:default !important;color:#C8C8C4 !important;width:auto !important;}

/* Mobile CTA — hidden on desktop, shown in main column on mobile */
.tp-nh-mobile-cta{display:none;}

/* MOBILE */
@media(max-width:768px){
  .tp-nh-hero{height:280px;}
  .tp-nh-hero-body{grid-template-columns:1fr;gap:16px;padding:20px;}
  .tp-nh-name{font-size:36px;}
  .tp-nh-stats{justify-content:flex-start;gap:20px;}
  .tp-nh-stat{text-align:left;}
  .tp-nh-stat-value{font-size:24px;}
  .tp-nh-tabs{padding:0 16px;overflow-x:auto;-webkit-overflow-scrolling:touch;scrollbar-width:none;flex-wrap:nowrap;}
  .tp-nh-tabs::-webkit-scrollbar{display:none;}
  .tp-nh-tab{white-space:nowrap;padding:14px 10px;font-size:12px;flex-shrink:0;}
  .tp-nh-tab:first-child{padding-left:0;}
  .tp-nh-tab:last-child{padding-right:0;}
  .tp-nh-body{grid-template-columns:1fr;}
  .tp-nh-main{padding:20px;border-right:none;}
  .tp-nh-sidebar{display:none;}
  .tp-nh-mobile-cta{display:block;background:#2C3D55;border-radius:6px;padding:20px;margin:32px 0;}
  .tp-hub-header{padding:20px;flex-wrap:wrap;align-items:flex-start;}
  .tp-hub-header-right{width:100%;}
  .tp-hub-search{width:100%;}
  .tp-hub-search-wrap{flex:1;}
  .tp-hub-grid{grid-template-columns:1fr 1fr;}
  .tp-nh-sections-grid{grid-template-columns:1fr;}
  .tp-nh-photo-pair{grid-template-columns:1fr;}
  .tp-nh-listings{grid-template-columns:1fr;}
  .tp-nh-card{border-right:.5px solid #E2E2DF;}
  .tp-nh-card:nth-child(2n){border-right:.5px solid #E2E2DF;}
}

/* NO-PHOTO HERO — compact masthead layout */
.tp-nh-hero:not(:has(img)){
  height:auto;
  min-height:0;
  background:#F2EFE8;
  border-bottom:.5px solid #E2E2DF;
}
.tp-nh-hero:not(:has(img)) .tp-nh-hero-body{
  position:static;
  padding:28px 40px 24px;
  grid-template-columns:1fr auto;
  align-items:center;
  gap:32px;
}
.tp-nh-hero:not(:has(img)) .tp-nh-name{
  font-size:36px;
  color:#1A1A1A;
  text-shadow:none;
  letter-spacing:-.01em;
}
.tp-nh-hero:not(:has(img)) .tp-nh-stats{
  background:none;
  padding:0;
  border-radius:0;
  gap:0;
  border-left:.5px solid #D4D0C8;
  padding-left:28px;
}
.tp-nh-hero:not(:has(img)) .tp-nh-stat{
  text-align:left;
  padding:0 20px 0 0;
  border-right:.5px solid #D4D0C8;
  margin-right:20px;
}
.tp-nh-hero:not(:has(img)) .tp-nh-stat:last-child{
  border-right:none;
  margin-right:0;
  padding-right:0;
}
.tp-nh-hero:not(:has(img)) .tp-nh-stat-value{
  font-size:22px;
  color:#1A1A1A;
  line-height:1.1;
}
.tp-nh-hero:not(:has(img)) .tp-nh-stat-label{
  font-size:9px;
  color:#999;
  letter-spacing:.1em;
}
@media(max-width:768px){
  .tp-nh-hero:not(:has(img)) .tp-nh-hero-body{
    grid-template-columns:1fr;
    padding:20px;
    gap:16px;
  }
  .tp-nh-hero:not(:has(img)) .tp-nh-stats{
    border-left:none;
    padding-left:0;
  }
  .tp-nh-hero:not(:has(img)) .tp-nh-name{font-size:28px;}
}
