/*
 * Queen City Guide neighborhood reference layout.
 * Scoped to .qcg-neighborhood-reference so listings remain canonical UrbanGo items.
 */
:root{--qcg-ref-bg:#080b0c;--qcg-ref-panel:#0d1112;--qcg-ref-ink:#f3efe6;--qcg-ref-muted:#c2c1bc;--qcg-ref-gold:#d8aa45;--qcg-ref-line:rgba(216,170,69,.62)}
body.page-template-template-neighborhood{background:var(--qcg-ref-bg);color:var(--qcg-ref-ink)}
body.page-template-template-neighborhood .edgtf-content{background:var(--qcg-ref-bg)}
body.page-template-template-neighborhood .edgtf-content .edgtf-content-inner>.edgtf-container>.edgtf-container-inner,
body.page-template-template-neighborhood .edgtf-content .edgtf-full-width-inner{width:100%;max-width:none;padding:0}
.qcg-neighborhood-reference,.qcg-neighborhood-reference *{box-sizing:border-box}
.qcg-neighborhood-reference{margin:0;background:var(--qcg-ref-bg);color:var(--qcg-ref-ink);font-family:Montserrat,Arial,sans-serif;overflow:hidden}
.qcg-neighborhood-reference h1,.qcg-neighborhood-reference h2,.qcg-neighborhood-reference h3,.qcg-neighborhood-reference blockquote{font-family:"Cormorant Garamond",Georgia,serif;color:var(--qcg-ref-ink);text-transform:none;letter-spacing:-.02em}
.qcg-neighborhood-reference p{color:var(--qcg-ref-muted);font-size:15px;line-height:1.58}
.qcg-ref-shell{width:min(1180px,calc(100% - 64px));margin:0 auto}
.qcg-ref-section-label{display:flex;align-items:center;justify-content:center;gap:15px;color:var(--qcg-ref-gold);font-size:13px;font-weight:700;letter-spacing:.2em;text-align:center;text-transform:uppercase}
.qcg-ref-section-label:before,.qcg-ref-section-label:after{content:"";display:block;flex:0 0 40px;width:40px;height:1px;background:var(--qcg-ref-line)}
.qcg-ref-button,.qcg-ref-about-copy>a,.qcg-ref-recommend a{display:inline-flex;align-items:center;justify-content:center;gap:10px;padding:12px 20px;background:var(--qcg-ref-gold);color:#111!important;font-size:12px;font-weight:800;text-transform:uppercase;letter-spacing:.03em;border:1px solid var(--qcg-ref-gold);transition:.2s}
.qcg-ref-button:hover,.qcg-ref-about-copy>a:hover,.qcg-ref-recommend a:hover{background:#edc267;color:#111!important}

/* Split hero */
.qcg-ref-hero{min-height:410px;display:grid;grid-template-columns:42% 58%;border-bottom:1px solid var(--qcg-ref-line);background:#090c0d}
.qcg-ref-hero-copy{padding:70px max(34px,calc((100vw - 1180px)/2)) 58px max(34px,calc((100vw - 1180px)/2));padding-right:40px;display:flex;flex-direction:column;justify-content:center;background:radial-gradient(circle at 100% 50%,rgba(31,38,39,.55),transparent 60%),#090c0d}
.qcg-ref-kicker{display:flex;align-items:center;justify-content:center;gap:16px;color:#b9bcb9;font-size:12px;letter-spacing:.25em;text-align:center;text-transform:uppercase;font-weight:700}
.qcg-ref-kicker:before,.qcg-ref-kicker:after{content:"";display:block;flex:0 0 43px;width:43px;height:1px;background:var(--qcg-ref-gold)}
.qcg-ref-hero h1{font-size:64px;line-height:.92;margin:18px 0 18px}
.qcg-ref-descriptor{margin:0 0 26px!important;color:var(--qcg-ref-gold)!important;text-transform:uppercase;letter-spacing:.24em;font-size:10px!important;font-weight:700}
.qcg-ref-intro{max-width:470px;margin:0!important}
.qcg-ref-hero-photo{min-height:410px;background:linear-gradient(90deg,rgba(8,11,12,.22),rgba(8,11,12,.02) 50%,rgba(8,11,12,.28)),var(--qcg-ref-hero) center/cover no-repeat;position:relative;overflow:hidden}
.qcg-ref-hero-photo .qcg-ref-streetview{position:absolute;inset:0;width:100%;height:100%;filter:brightness(.78) saturate(.88);z-index:0}
.qcg-ref-hero-photo.has-streetview:after{content:"";position:absolute;inset:0;z-index:1;pointer-events:none;background:linear-gradient(90deg,rgba(8,11,12,.18),transparent 45%,rgba(8,11,12,.16))}
.qcg-ref-hero-photo span{position:absolute;right:7%;bottom:11%;z-index:2;font:italic 26px/1.02 "Cormorant Garamond",Georgia,serif;text-align:right;color:#f0d99e;text-shadow:0 2px 5px #000}

/* Metrics */
.qcg-ref-metrics{border-bottom:1px solid var(--qcg-ref-line);padding:20px 0 30px}
.qcg-ref-metric-grid{display:grid;grid-template-columns:repeat(4,1fr);margin-top:16px}
.qcg-ref-metric-grid article{text-align:center;padding:4px 22px 0;border-right:1px solid var(--qcg-ref-line)}
.qcg-ref-metric-grid article:last-child{border-right:0}
.qcg-ref-metric-grid svg,.qcg-ref-fit-grid svg{display:block;width:38px;height:38px;fill:none;stroke:var(--qcg-ref-gold);stroke-width:1.3;margin:0 auto 5px}
.qcg-ref-metric-grid h2{font-size:20px;line-height:1.1;margin:2px 0 3px}
.qcg-ref-metric-grid strong{display:block;color:#fff;font:600 37px/1 Georgia,serif}
.qcg-ref-stars{display:block;color:var(--qcg-ref-gold);letter-spacing:3px;font-size:17px;margin-top:6px}
.qcg-ref-metric-grid small{display:block;color:#8f9494;font-size:9px;margin-top:7px}

/* About split */
.qcg-ref-about{min-height:350px;display:grid;grid-template-columns:44% 56%;border-bottom:1px solid var(--qcg-ref-line)}
.qcg-ref-about-copy{padding:34px 45px 36px max(34px,calc((100vw - 1180px)/2))}
.qcg-ref-about-copy h2{font-size:42px;line-height:.96;margin:14px 0 15px;max-width:510px}
.qcg-ref-about-copy p{max-width:520px;margin:0 0 18px}
.qcg-ref-about-photo{min-height:350px;position:relative;overflow:hidden;background:linear-gradient(90deg,#080b0c 0,rgba(8,11,12,.76) 10%,rgba(8,11,12,.12) 55%,rgba(8,11,12,.28)),var(--qcg-ref-about) center/cover no-repeat}
.qcg-ref-about-photo .qcg-ref-streetview{position:absolute;inset:0;width:100%;height:100%;filter:brightness(.74) saturate(.88);z-index:0}
.qcg-ref-about-photo.has-streetview:after{content:"";position:absolute;inset:0;z-index:1;pointer-events:none;background:linear-gradient(90deg,rgba(8,11,12,.62),transparent 48%,rgba(8,11,12,.16))}
.qcg-ref-about-photo blockquote{position:absolute;left:12%;bottom:11%;z-index:2;max-width:340px;margin:0;color:var(--qcg-ref-gold);font-size:28px;font-style:italic;line-height:1.08;text-shadow:0 2px 5px #000}

/* Fit */
.qcg-ref-fit{padding:22px 0 20px;border-bottom:1px solid var(--qcg-ref-line)}
.qcg-ref-fit-grid{display:grid;grid-template-columns:repeat(3,1fr);margin:12px 0 14px}
.qcg-ref-fit-grid article{padding:0 48px;border-right:1px solid var(--qcg-ref-line);text-align:center}
.qcg-ref-fit-grid article:last-child{border:0}
.qcg-ref-fit-grid h2{font-size:25px;margin:1px 0 9px}
.qcg-ref-fit-grid ul{margin:0 auto;padding:0;list-style:none;max-width:300px;text-align:center}
.qcg-ref-fit-grid li{display:block;margin:14px 0;color:var(--qcg-ref-muted);font-size:13px;text-align:center}
.qcg-ref-fit-grid li strong{display:block;font-weight:500;color:var(--qcg-ref-muted)}
.qcg-ref-fit-grid li small{display:block;margin-top:4px;color:#888;font-size:10px}
.qcg-ref-check{display:none!important}
.qcg-ref-take{display:grid;grid-template-columns:180px 1fr;align-items:center;gap:28px;border:1px solid rgba(255,255,255,.16);border-radius:5px;padding:14px 34px}
.qcg-ref-take h2{font-size:25px;margin:0;border-right:2px solid var(--qcg-ref-gold)}
.qcg-ref-take p{margin:0;font-size:13px}

/* Reusable card rows */
.qcg-ref-card-section{padding:20px 0 24px;border-bottom:1px solid var(--qcg-ref-line)}
.qcg-ref-row-heading{position:relative;display:flex;align-items:center;justify-content:center;min-height:24px;margin-bottom:14px}
.qcg-ref-local-head{position:relative;display:flex;flex-direction:column;align-items:center;gap:12px;margin-bottom:14px}
.qcg-ref-row-heading>a,.qcg-ref-local-head>a{position:absolute;right:0;top:50%;transform:translateY(-50%);color:var(--qcg-ref-gold)!important;font-size:11px;font-weight:700}
.qcg-ref-local-head>a{top:0;transform:none}
.qcg-ref-local-head .qcg-ref-tabs{margin:0}
.qcg-neighborhood-reference .qcg-nh-listing-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:18px!important;margin:0!important;overflow:visible!important;transform:none!important}
.qcg-neighborhood-reference .qcg-nh-listing-card{display:flex!important;flex-direction:column!important;width:auto!important;min-width:0!important;height:100%!important;margin:0!important;padding:0 0 14px!important;background:#0b0f10!important;border:1px solid rgba(255,255,255,.17)!important;border-radius:5px!important;overflow:hidden!important;box-shadow:none!important}
.qcg-neighborhood-reference .qcg-nh-listing-card>a{display:block!important;height:100%!important;margin:0!important;color:inherit!important;text-decoration:none!important}
.qcg-neighborhood-reference .qcg-nh-listing-card img,.qcg-neighborhood-reference .qcg-nh-listing-image,.qcg-neighborhood-reference .qcg-nh-card-image,.qcg-neighborhood-reference .qcg-nh-listing-media{display:block;width:100%!important;height:185px!important;object-fit:cover!important;margin:0 0 12px!important;border-radius:0!important;background-position:center!important;background-size:cover!important;background-repeat:no-repeat!important}
.qcg-neighborhood-reference .qcg-nh-listing-body{padding:0 17px 14px!important;margin:0!important}
.qcg-neighborhood-reference .qcg-nh-listing-card h3,.qcg-neighborhood-reference .qcg-nh-listing-card .qcg-nh-listing-title{font-size:21px!important;line-height:1.05!important;margin-top:0!important;margin-bottom:5px!important;color:#f2eee6!important}
.qcg-neighborhood-reference .qcg-nh-listing-card p{font-size:12px!important;line-height:1.45!important;margin-top:5px!important;margin-bottom:8px!important;color:#b9baba!important}
.qcg-neighborhood-reference .qcg-nh-listing-card a{color:inherit}
.qcg-neighborhood-reference .qcg-nh-listing-card .qcg-nh-card-label,.qcg-neighborhood-reference .qcg-nh-listing-card .qcg-nh-listing-kicker{color:var(--qcg-ref-gold)!important;font-size:9px!important;letter-spacing:.17em!important;text-transform:uppercase!important;font-weight:700!important}
.qcg-neighborhood-reference .qcg-nh-pick-mark{display:flex!important;align-items:center!important;justify-content:center!important;min-height:54px!important;margin:0 0 7px!important}
.qcg-neighborhood-reference .qcg-nh-pick-mark img{display:block!important;width:58px!important;height:auto!important;max-height:58px!important;object-fit:contain!important;margin:0 auto!important;border-radius:0!important;background:none!important}
.qcg-neighborhood-reference .qcg-nh-empty{grid-column:1/-1;padding:35px;border:1px solid rgba(255,255,255,.12);color:#aaa;text-align:center}

/* Local tabs */
.qcg-ref-tabs{display:flex;align-items:center;gap:27px;margin-left:auto}
.qcg-ref-tabs button{appearance:none;border:0;border-bottom:1px solid transparent;background:none;padding:5px 0;color:#b7b7b7;font:700 10px/1 Montserrat,Arial,sans-serif;letter-spacing:.08em;text-transform:uppercase;cursor:pointer}
.qcg-ref-tabs button.is-active{color:var(--qcg-ref-gold);border-color:var(--qcg-ref-gold)}
.qcg-ref-tab-panel[hidden]{display:none!important}

/* Living */
.qcg-ref-living{padding:22px 0 26px;border-bottom:1px solid var(--qcg-ref-line)}
.qcg-ref-living-grid{display:grid;grid-template-columns:58% 42%;margin-top:14px}
.qcg-ref-map{height:300px;border-right:1px solid var(--qcg-ref-line);position:relative;background:radial-gradient(circle at 42% 48%,rgba(216,170,69,.14),transparent 5%),repeating-linear-gradient(28deg,transparent 0 35px,rgba(255,255,255,.035) 36px 37px),#10161a}
.qcg-ref-map iframe{width:100%;height:100%;border:0;filter:grayscale(1) invert(.87) hue-rotate(155deg) brightness(.62) contrast(1.2);opacity:.82}
.qcg-ref-map:before{content:"";position:absolute;z-index:2;left:42%;top:41%;width:22px;height:22px;border-radius:50% 50% 50% 0;transform:rotate(-45deg);background:var(--qcg-ref-gold);box-shadow:0 2px 9px #000}
.qcg-ref-map:after{content:attr(data-label);position:absolute;z-index:2;left:calc(42% - 24px);top:54%;padding:5px 10px;color:#fff;background:rgba(8,11,12,.78);font:700 13px Montserrat,Arial,sans-serif;border-radius:3px}
.qcg-ref-homes{padding:0 0 0 30px}
.qcg-ref-homes h2{font-size:29px;margin:0 0 7px}
.qcg-ref-housing-copy p{font-size:13px;margin:0 0 13px}
.qcg-ref-home-metrics{display:grid;grid-template-columns:repeat(3,1fr);margin:12px 0 18px}
.qcg-ref-home-metrics>div{padding:0 15px;border-right:1px solid var(--qcg-ref-line)}
.qcg-ref-home-metrics>div:first-child{padding-left:0}
.qcg-ref-home-metrics>div:last-child{border:0}
.qcg-ref-home-metrics strong{display:block;color:var(--qcg-ref-gold);font:600 25px/1 Georgia,serif}
.qcg-ref-home-metrics span{display:block;margin-top:5px;color:#aaa;font-size:9px;line-height:1.25}

/* Recommendation replaces the narrow pre-footer mailing strip */
.qcg-ref-recommend{border-bottom:1px solid var(--qcg-ref-line);padding:15px 0;background:#0b0e0f}
.qcg-ref-recommend .qcg-ref-shell{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;min-height:55px}
.qcg-ref-recommend .qcg-ref-shell>div{text-align:center}
.qcg-ref-recommend p{font-size:11px;margin:4px 0 0}
.qcg-ref-recommend a{position:static;transform:none}


/* Transparent rating methodology */
.qcg-rating-details{padding:40px 0 44px;border-bottom:1px solid var(--qcg-ref-line);background:#0d1112}
.qcg-rating-details-head{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin-bottom:14px}
.qcg-rating-details-head .qcg-ref-section-label{justify-content:flex-start}
.qcg-rating-details-head .qcg-ref-section-label:before{display:block}
.qcg-rating-details h2{margin:10px 0 0;font-size:38px;line-height:1}
.qcg-rating-summary{text-align:right}
.qcg-rating-summary small{display:block;margin-top:8px;color:#9da09f;font-size:11px}
.qcg-rating-status{display:inline-block;padding:7px 11px;border:1px solid rgba(216,170,69,.55);border-radius:999px;color:#edc267;font-size:10px;font-weight:800;letter-spacing:.08em;text-transform:uppercase}
.qcg-rating-status--verified{border-color:#74b991;color:#9bd6af}
.qcg-rating-status--not-scored{border-color:#777;color:#bbb}
.qcg-rating-explainer{max-width:850px;margin:0 0 22px!important}
.qcg-rating-component-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}
.qcg-rating-component-grid article{display:flex;min-height:220px;flex-direction:column;padding:18px;border-top:2px solid var(--qcg-ref-gold);background:#111718}
.qcg-rating-component-top{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}
.qcg-rating-component-grid h3{margin:0;font-size:20px;line-height:1.05}
.qcg-rating-component-grid strong{color:#fff;font:600 26px/1 Georgia,serif;white-space:nowrap}
.qcg-rating-component-grid strong span{color:#8f9494;font:500 11px Montserrat,Arial,sans-serif}
.qcg-rating-weight{margin:10px 0;color:var(--qcg-ref-gold);font-size:10px;font-weight:800;text-transform:uppercase}
.qcg-rating-component-grid p{margin:0 0 8px;font-size:11px;line-height:1.45}
.qcg-rating-component-grid small{display:block;margin:2px 0;color:#9da09f;font-size:10px;line-height:1.4}
.qcg-rating-component-grid a,.qcg-rating-source-pending{display:block;margin-top:auto;padding-top:12px;color:var(--qcg-ref-gold)!important;font-size:10px;font-weight:800}
.qcg-rating-source-pending{color:#8f9494!important}
.qcg-rating-notes{margin-top:18px;padding:17px 20px;border:1px solid rgba(255,255,255,.13)}
.qcg-rating-notes p{margin:0 0 7px;font-size:11px}
.qcg-rating-notes a{color:var(--qcg-ref-gold)!important;font-size:11px;font-weight:800}

/* Guard against old carousel behavior */
.qcg-neighborhood-reference .qcg-nh-slider-controls,.qcg-neighborhood-reference .swiper-button-next,.qcg-neighborhood-reference .swiper-button-prev{display:none!important}

@media(max-width:1024px){
 .qcg-ref-shell{width:min(930px,calc(100% - 40px))}
 .qcg-ref-hero-copy{padding-left:28px}
 .qcg-ref-hero h1{font-size:51px}
 .qcg-ref-about-copy{padding-left:28px}
 .qcg-ref-fit-grid article{padding:0 25px}
 .qcg-neighborhood-reference .qcg-nh-listing-card img,.qcg-neighborhood-reference .qcg-nh-listing-image,.qcg-neighborhood-reference .qcg-nh-card-image,.qcg-neighborhood-reference .qcg-nh-listing-media{height:155px!important}
}
@media(max-width:767px){
 .qcg-ref-shell{width:calc(100% - 32px)}
 .qcg-ref-hero{display:block;min-height:0}
 .qcg-ref-hero-copy{min-height:350px;padding:52px 24px 42px}
 .qcg-ref-hero h1{font-size:49px}
 .qcg-ref-hero-photo{min-height:280px}
 .qcg-ref-hero-photo span{font-size:23px;color:#f4ead9;text-shadow:0 1px 5px #000}
 .qcg-ref-metrics{padding-top:18px}
 .qcg-ref-metric-grid{grid-template-columns:repeat(2,1fr);row-gap:20px}
 .qcg-ref-metric-grid article:nth-child(2){border-right:0}
 .qcg-ref-metric-grid article:nth-child(-n+2){padding-bottom:18px;border-bottom:1px solid rgba(216,170,69,.28)}
 .qcg-ref-metric-grid h2{font-size:18px}
 .qcg-ref-metric-grid strong{font-size:31px}
 .qcg-ref-about{display:block}
 .qcg-ref-about-copy{padding:34px 24px}
 .qcg-ref-about-copy h2{font-size:37px}
 .qcg-ref-about-photo{min-height:280px}
 .qcg-ref-fit-grid{display:block}
 .qcg-ref-fit-grid article{border:0;border-bottom:1px solid rgba(216,170,69,.3);padding:20px 0;text-align:center}
 .qcg-ref-fit-grid article:last-child{border:0}
 .qcg-ref-fit-grid ul{width:100%;max-width:100%;margin:0 auto!important;padding:0!important;list-style:none!important;text-align:center!important}
 .qcg-ref-fit-grid li{display:block!important;width:100%;margin:18px auto!important;padding:0!important;list-style:none!important;text-align:center!important}
 .qcg-ref-fit-grid li::before,.qcg-ref-fit-grid li::marker,.qcg-ref-fit-grid .qcg-ref-check{display:none!important;content:none!important}
 .qcg-ref-fit-grid li>div,.qcg-ref-fit-grid li strong,.qcg-ref-fit-grid li small{display:block;width:100%;margin-left:auto;margin-right:auto;text-align:center!important}
 .qcg-ref-take{display:block;padding:20px}
 .qcg-ref-take h2{border:0;border-bottom:2px solid var(--qcg-ref-gold);padding-bottom:9px;margin-bottom:10px}
 .qcg-ref-row-heading,.qcg-ref-local-head{display:flex;flex-direction:column;align-items:center;gap:12px}
 .qcg-ref-row-heading>a,.qcg-ref-local-head>a{position:static;transform:none}
 .qcg-ref-tabs{width:100%;margin:0;justify-content:center;gap:22px;overflow:auto;padding-bottom:3px}
 .qcg-neighborhood-reference .qcg-nh-listing-grid{grid-template-columns:1fr!important}
 .qcg-neighborhood-reference .qcg-nh-listing-card img,.qcg-neighborhood-reference .qcg-nh-listing-image,.qcg-neighborhood-reference .qcg-nh-card-image,.qcg-neighborhood-reference .qcg-nh-listing-media{height:210px!important}
 .qcg-ref-living-grid{display:block}
 .qcg-ref-map{height:270px;border:0;border-bottom:1px solid var(--qcg-ref-line)}
 .qcg-ref-homes{padding:24px 0 0}
 .qcg-ref-home-metrics>div{padding:0 10px}
 .qcg-ref-recommend .qcg-ref-shell{display:flex;flex-direction:column;gap:14px}
 .qcg-ref-recommend a{position:static;transform:none;width:100%}
}
@media(max-width:900px){
 .qcg-rating-component-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .qcg-rating-component-grid article:last-child{grid-column:1/-1}
}
@media(max-width:767px){
 .qcg-rating-details{padding:32px 0}
 .qcg-rating-details-head{display:block}
 .qcg-rating-details-head .qcg-ref-section-label{justify-content:center}
 .qcg-rating-details-head .qcg-ref-section-label:before{display:block}
 .qcg-rating-details h2{text-align:center;font-size:32px}
 .qcg-rating-summary{margin-top:16px;text-align:center}
 .qcg-rating-component-grid{grid-template-columns:1fr}
 .qcg-rating-component-grid article:last-child{grid-column:auto}
 .qcg-rating-component-grid article{min-height:0}
}
@media(max-width:390px){
 .qcg-ref-hero h1{font-size:43px}
 .qcg-ref-home-metrics{grid-template-columns:1fr}
 .qcg-ref-home-metrics>div{padding:9px 0;border:0;border-bottom:1px solid rgba(216,170,69,.24)}
}