/* Homez hero, Listivo exploration, Finder detail. Existing routes and form contracts remain. */
:root{--reference-ink:#222b36;--reference-blue:#2563b8;--reference-gap:24px}
body:not(.gn-admin-mode):not(.adm-mode){color:var(--reference-ink)}
body:not(.gn-admin-mode) #header{position:sticky;top:0;z-index:30;background:white}
.reference-gpm-top{position:sticky;top:0;z-index:30}
.reference-gpm-layout>.gn-side{position:sticky;top:74px;align-self:start;max-height:calc(100vh - 74px);overflow:auto}
body:not(.gn-admin-mode) .card{border-radius:12px;box-shadow:0 3px 12px #20304008;overflow:hidden}
body:not(.gn-admin-mode) .card .photo{height:210px}
body:not(.gn-admin-mode) .card .price{color:var(--reference-blue)}
body:not(.gn-admin-mode) .card:has(.photo>a[href^="#/listings/"]){cursor:pointer}
.reference-menu-toggle{display:none}
.main-ad-area{padding-top:28px;padding-bottom:12px}
.main-ad-banner{display:grid!important;grid-template-columns:1.45fr 1fr!important;min-height:350px;border-radius:12px;overflow:hidden;background:#edf4fb}
.main-ad-banner>img{width:100%!important;height:350px!important;object-fit:cover}
.main-ad-banner>div{padding:36px!important;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;min-width:0}
.main-ad-banner h2{font-size:28px!important;line-height:1.45;margin:16px 0!important}
.main-ad-banner strong{font-size:30px!important;color:var(--reference-blue)}
.main-ad-link{margin-top:22px}
.reference-explore{max-width:1180px;margin:0 auto 40px;padding:0 24px;display:grid;grid-template-columns:300px minmax(0,1fr);gap:28px;align-items:start}
.reference-filter{position:sticky;top:calc(var(--reference-header-height,120px) + 16px);align-self:start;max-height:calc(100dvh - var(--reference-header-height,120px) - 32px);overflow-y:auto;border:1px solid #dce3ea;border-radius:12px;background:#fff;padding:20px;min-width:0;z-index:10}
.reference-filter>summary{display:none}
.reference-filter .searchband{padding:0;background:transparent}
.reference-filter #customer-search{padding:0;display:block;max-width:none}
.reference-filter .searchform{display:block}
.reference-filter .searchform>label{display:block;margin:16px 0}
.reference-filter .searchform>strong{display:block;margin-bottom:18px}
.reference-filter .search-filter-heading{display:flex;align-items:center;flex-wrap:wrap;gap:8px}
.reference-filter .search-filter-heading>strong{flex:1 0 100%;font-size:17px;word-break:keep-all}
.reference-filter .search-filter-heading button{font-size:12px;padding:8px}
.reference-filter .region-multi,.reference-filter .primary-price{margin:18px 0;width:100%;max-width:none}
.reference-filter .range-filter{padding:12px 10px}
.reference-filter .range-inputs{gap:6px}
.reference-filter .range-inputs input{width:100%;min-width:0;padding:9px 6px}
.reference-filter .range-grid,.reference-filter .filter-fields{display:grid;grid-template-columns:1fr;gap:16px}
.reference-filter .filter-detail{margin:12px 0}
.reference-filter .filter-detail>summary{padding:12px 0;font-size:14px}
.reference-filter .filter-fields label{min-width:0}
.reference-filter .ref-filter-apply{width:100%;margin-top:16px;min-height:44px}
.reference-filter .search-filter-heading .ref-filter-apply{flex:1;width:auto;margin-top:0;min-height:44px;font-size:14px}
.reference-filter .ref-filter-apply:disabled{background:#e4e7ec;border-color:#e4e7ec;color:#6b7280;opacity:1;cursor:default}
.reference-filter .inline-control{display:grid;grid-template-columns:1fr;gap:14px;margin:20px 0}
.reference-filter .inline-control label{display:block;width:100%;max-width:none}
.reference-filter .inline-control input,.reference-filter .inline-control select{display:block;width:100%;margin-top:6px}
.reference-explore>.section{padding:0!important;max-width:none;min-width:0;width:100%}
.reference-explore .filterline{margin-top:0;gap:16px;align-items:flex-end;flex-wrap:wrap}
.reference-explore .inline-control{display:flex;flex-wrap:wrap;gap:12px}
.reference-explore .listing-search{max-width:300px}
.reference-explore .cards{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:24px}
.reference-explore .cardbody{padding:18px}
.reference-explore .chips{margin:0}
.reference-explore .card h3{font-size:17px}
.reference-explore .card .price{font-size:24px}
.reference-detail .detail-top{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(300px,1fr);gap:32px;align-items:start}
.reference-detail .detailphoto{height:390px;width:100%;object-fit:cover;border-radius:12px}
.reference-detail .thumbs{gap:0;display:flex}
.reference-detail .thumbs button{flex:1;width:auto;height:95px;border:0;border-radius:0}
.reference-detail .thumbs button.active{outline:2px solid var(--blue);outline-offset:-2px}
.reference-detail .thumbs img{height:95px;object-fit:cover;width:100%;border-radius:0}
.reference-detail .detail-summary{padding:24px;border:1px solid #dce3ea;border-radius:12px;background:#fff}
.reference-detail .detail-summary h1{font-size:26px;line-height:1.5;margin:12px 0}
.reference-detail .detail-price{font-size:30px;color:var(--reference-blue)}
.reference-detail .detail-stamp{margin:20px 0 0}
.reference-detail .detail-content{max-width:none;grid-template-columns:minmax(0,1fr) 310px;gap:32px}
.reference-detail .actionrow{display:flex;flex-wrap:wrap;gap:10px}
.reference-detail .actionrow .primary{flex:1;min-height:48px}
.reference-photo-preview{display:grid;grid-template-columns:repeat(auto-fill,minmax(110px,1fr));gap:12px;margin:14px 0 24px;max-width:100%}
.reference-photo-preview figure{margin:0;padding:8px;border:1px solid #dce3ea;border-radius:8px;min-width:0}
.reference-photo-preview img{width:100%;height:100px;object-fit:cover}
.reference-photo-preview figcaption{font-size:12px;overflow-wrap:anywhere;margin:6px 0}
.reference-photo-preview button{width:100%;min-height:36px}
.reference-form-actions{position:sticky;bottom:0;background:#fff;border-top:1px solid #dce3ea;padding:16px 0;z-index:5}
.reference-gpm-top{background:white;border-bottom:2px solid #b7252c;padding:16px 24px;display:flex;align-items:center;gap:32px}
.reference-gpm-top img{width:110px}.reference-gpm-top nav{display:flex;gap:22px}
.reference-gpm-top nav a{color:#333;text-decoration:none}
.reference-gpm-top nav a.active{font-weight:700;color:#b7252c}
.gn-table-scroll{overscroll-behavior-x:contain;max-width:100%;overflow-x:auto}
.floating-consult{bottom:24px;right:24px}
body:not(.gn-admin-mode) footer{padding-right:160px}
.gn-top{position:sticky;top:0;z-index:30;background:#fff}
@media(max-width:900px){.reference-explore{grid-template-columns:250px minmax(0,1fr);gap:20px;padding:0 16px}.reference-explore .cards{grid-template-columns:1fr!important}.main-ad-banner h2{font-size:24px!important}.reference-detail .detail-top{grid-template-columns:minmax(0,1fr) minmax(280px,1fr)}}
@media(max-width:620px){
 body:not(.gn-admin-mode) footer{padding-right:24px;padding-bottom:88px}
 .reference-menu-toggle{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;font-size:24px;padding:0;border:1px solid #dce3ea;background:#fff}
 body:not(.gn-admin-mode) .masthead{height:auto;min-height:68px;gap:12px;flex-wrap:wrap;padding:10px 0}
 body:not(.gn-admin-mode) .masthead .brand{flex:1}
 body:not(.gn-admin-mode) .masthead .account{width:100%;justify-content:flex-end;flex-wrap:wrap}
 body:not(.gn-admin-mode) .navigation{display:none;height:auto;padding:8px 0 16px;flex-wrap:wrap;gap:12px;align-items:stretch}
 body:not(.gn-admin-mode) .navigation.reference-menu-open{display:flex}
 body:not(.gn-admin-mode) .navigation>a{width:calc(50% - 6px);padding:12px;background:#f4f7fa;border-radius:6px;text-align:center}
 body:not(.gn-admin-mode) .navigation .nav-more{margin:0}
 .main-ad-area{padding-top:16px}
 .main-ad-banner{grid-template-columns:1fr!important;min-height:0}
 .main-ad-banner>img{height:230px!important}
 .main-ad-banner>div{padding:24px!important}
 .main-ad-banner h2{font-size:22px!important;margin:12px 0!important}
 .main-ad-banner strong{font-size:28px!important}.main-ad-link{margin-top:16px}
 .reference-explore{display:block;padding:0 16px}
 .reference-filter{top:calc(var(--reference-header-height,120px) + 8px);max-height:calc(100dvh - var(--reference-header-height,120px) - 24px);padding:0;margin-bottom:24px}
 .reference-filter>summary{position:sticky;top:0;z-index:1;background:#fff;display:block;cursor:pointer;list-style:none;padding:16px 18px;font-weight:700;min-height:50px}
 .reference-filter>summary::after{content:' +';float:right;color:var(--reference-blue)}
 .reference-filter[open]>summary::after{content:' −'}
 .reference-filter .searchband{padding:0 18px 18px}
 .reference-explore .cards{grid-template-columns:1fr!important;gap:20px}
 .reference-explore .filterline{display:block}.reference-explore .inline-control{width:100%;margin:16px 0}
 .reference-explore .listing-search{flex:1;max-width:none}
 .reference-explore .inline-control>label{min-width:130px}
 .reference-filter .range-grid,.reference-filter .filter-fields{grid-template-columns:1fr}
 .reference-detail .detail-top{display:flex;flex-direction:column;gap:20px}
 .reference-detail .detail-gallery{order:0;width:100%}.reference-detail .detail-summary{order:1;display:block;width:100%;padding:20px}
 .reference-detail .detailphoto{height:250px}.reference-detail .thumbs{display:none}
 .reference-detail .detail-summary h1{font-size:23px}.reference-detail .actionrow{display:none}
 .reference-detail .detail-content{display:block}.reference-detail .asidebox{position:static}
 .reference-photo-preview{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
 .reference-photo-preview img{height:110px}.reference-photo-preview button{min-height:44px}
 .reference-form-actions{padding:12px 0 calc(12px + env(safe-area-inset-bottom))}
 .reference-gpm-top{padding:14px 16px;display:block}.reference-gpm-top nav{margin-top:16px;overflow-x:auto;white-space:nowrap;padding-bottom:8px}
 .reference-gpm-layout{display:block}.reference-gpm-layout>.gn-side{display:none}
 .gn-cal-tip{display:none!important}.gn-cal-event.compact{display:none!important}
 .gn-cal-day{min-height:76px}.gn-cal-date{min-width:36px;min-height:36px}
 .gn-cal-counts{display:flex;flex-wrap:wrap;gap:2px;font-size:10px}
 .gn-cal-selected{scroll-margin-top:18px}.gn-work-tabs{overflow-x:auto;flex-wrap:nowrap}.gn-work-tabs button{white-space:nowrap;min-height:44px}
 .gn-top nav{overflow-x:auto;white-space:nowrap}.gn-cal-toolbar{gap:16px}
}

.reference-filter .filter-field-hint{display:block;font-size:12px;line-height:1.5;font-weight:400;color:#737b85;margin-top:4px}
.reference-alert-panel[hidden]{display:none!important}
.reference-alert-tabs{display:flex;gap:12px;margin-bottom:28px}
.reference-alert-tabs button{white-space:normal;min-height:44px}

#comparison-field-options:not([hidden]){display:block;max-height:220px;overflow:auto}
#comparison-field-options h4{font-size:14px;margin:12px 0 8px}
#comparison-field-options .comparison-options{display:flex;flex-wrap:wrap;gap:8px}
.comparison-settings h3:has(.compare-fields-toggle){margin:0}
@media(max-width:620px){#comparison-field-options:not([hidden]){max-height:180px}#comparison-field-options .comparison-options>button{max-width:100%}}

@media(max-width:620px){body dialog[open]{width:calc(100% - 24px)!important;max-width:calc(100% - 24px)!important;height:auto!important;max-height:calc(100dvh - 24px)!important;margin:auto!important;border-radius:10px!important}}

.reference-detail .gallery-preview>.reference-photo-trigger{position:static;display:block;width:100%;border:0;padding:0;background:transparent;cursor:zoom-in}
.reference-photo-trigger img{display:block}
.reference-gallery-image{position:relative;width:100%}
.reference-gallery-image .gallery-full{display:block}
.reference-gallery-arrow{position:absolute;top:50%;transform:translateY(-50%);width:48px;height:48px;padding:0;border:1px solid #dce3ea;border-radius:50%;font-size:36px;line-height:1;background:#fffffff0;color:#222b36;box-shadow:0 2px 8px #0002}
.reference-gallery-arrow.previous{left:12px}.reference-gallery-arrow.next{right:12px}
.reference-gallery-count{text-align:center;margin:12px 0 0;font-size:14px}
body dialog[open]:has(.reference-gallery-image){height:fit-content!important}
dialog:has(.reference-gallery-image) .modal-body{flex:0 1 auto}
@media(max-width:620px){
 .gn-work-context:has(.gn-revision-compare){max-height:320px;flex:none}
 .gn-revision-compare>.gn-table-scroll{min-width:0;max-width:100%}
 .gn-revision-compare>.gn-table-scroll>.gn-table{display:block;min-width:0!important;width:100%!important;table-layout:fixed}
 .gn-revision-compare>.gn-table-scroll>.gn-table>thead{display:none}
 .gn-revision-compare>.gn-table-scroll>.gn-table>tbody,
 .gn-revision-compare>.gn-table-scroll>.gn-table>tbody>tr,
 .gn-revision-compare>.gn-table-scroll>.gn-table>tbody>tr>th{display:block;width:100%;box-sizing:border-box}
 .gn-revision-compare>.gn-table-scroll>.gn-table>tbody>tr[hidden]{display:none!important}
 .gn-revision-compare>.gn-table-scroll>.gn-table>tbody>tr{border-bottom:1px solid #dce3ea;padding:8px 0}
 .gn-revision-compare>.gn-table-scroll>.gn-table>tbody>tr>th{width:100%!important;text-align:left;background:#eef2f5}
 .gn-revision-compare>.gn-table-scroll>.gn-table>tbody>tr>td{display:grid;grid-template-columns:104px minmax(0,1fr);gap:8px;width:100%!important;min-width:0!important;box-sizing:border-box;white-space:pre-wrap;overflow-wrap:anywhere;text-align:left}
 .gn-revision-compare>.gn-table-scroll>.gn-table>tbody>tr>td::before{content:attr(data-compare-label);font-size:11px;color:#606975;white-space:normal}
 .gn-revision-compare .gpm-room-scroll{min-width:0;max-width:100%;grid-column:1/-1}
}

.main-ad-banner{position:relative}.main-ad-banner>.main-ad-badge{position:absolute;top:16px;left:16px;z-index:1}

.main-ad-content{position:relative}.main-ad-arrow{position:absolute;top:175px;transform:translateY(-50%);width:44px;height:44px;min-height:44px;padding:0;border:1px solid #dce3ea;border-radius:50%;background:#fffffff0;color:#222b36;font-size:32px;line-height:1;box-shadow:0 2px 8px #0002;z-index:2}.main-ad-arrow.previous{left:12px}.main-ad-arrow.next{left:calc(59.1837% - 56px)}
@media(max-width:620px){.main-ad-arrow{top:115px}.main-ad-arrow.next{left:auto;right:12px}}

.main-ad-banner{min-height:420px}.main-ad-banner>img{height:100%!important;min-height:420px;align-self:stretch}.main-ad-banner>div{padding:28px!important}.main-ad-banner h2{font-size:24px!important;margin:0 0 8px!important}.main-ad-banner>div>p{margin:0 0 10px}.main-ad-facts{display:grid;gap:8px;width:100%;margin:16px 0 0;font-size:14px;line-height:1.45}.main-ad-facts>div{display:grid;grid-template-columns:84px minmax(0,1fr);gap:12px}.main-ad-facts dt{color:var(--muted)}.main-ad-facts dd{margin:0;text-align:right;font-weight:500}.main-ad-facts .system-line{display:block}.main-ad-arrow{top:50%}.main-ad-link{margin-top:16px}
@media(max-width:620px){.main-ad-banner{min-height:0}.main-ad-banner>img{height:230px!important;min-height:0}.main-ad-banner>div{padding:22px!important}.main-ad-banner h2{font-size:22px!important}.main-ad-arrow{top:115px}}

.main-ad-facts .system-line:not([data-system-item="룸 수"]){color:var(--muted)}

/* Keep photo proportions from resizing the rotating ad card. */
.main-ad-banner{height:480px;min-height:480px;grid-template-rows:minmax(0,1fr);gap:0}
.main-ad-banner>img{height:100%!important;min-height:0;min-width:0;object-fit:cover}
.main-ad-banner>div{height:100%;box-sizing:border-box;min-height:0}
.main-ad-banner h2{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;min-height:0;flex-shrink:0}
.reference-detail .system-line:not([data-system-item="룸 수"]){color:var(--muted)}
@media(max-width:620px){.main-ad-banner{height:700px;min-height:700px;grid-template-rows:230px minmax(0,1fr)}.main-ad-banner>img{height:230px!important}.main-ad-banner>div{height:100%}}

.card-facts>.system-card{display:grid;grid-template-columns:auto minmax(0,1fr);gap:12px;align-items:start}
.card-facts>.system-card>dd{text-align:right;margin-top:0;min-width:0}
.card-facts .system-line:not([data-system-item="룸 수"]){color:var(--muted)}

.card-title{display:flex;align-items:baseline;gap:10px}.card-title h3{flex:1;min-width:0;margin-top:0;margin-bottom:0}.card-listing-id{flex:none;font-size:11px;line-height:1.4;color:var(--muted);font-weight:400;white-space:nowrap}.card-tools:empty{display:none}

/* Equal text alignment, whether notification badges are present or absent. */
body:not(.gn-admin-mode) .navigation>a{position:relative;display:flex;align-items:center;justify-content:center;flex:0 0 128px;padding:0 26px;line-height:1.5;text-align:center}
body:not(.gn-admin-mode) .navigation .listing-notification-dot{right:10px;top:12px}
body:not(.gn-admin-mode) .navigation .listing-notification-count{right:2px}
.gn-fields>.gpm-room-section,.gn-work-group-fields>.gpm-room-section,.adm-fields>.gpm-room-section{grid-column:1/-1;min-width:0}
@media(max-width:760px){body:not(.gn-admin-mode) .navigation>a{flex:0 0 calc(50% - 6px);width:calc(50% - 6px);min-height:46px;padding:12px 26px}}

.private-favorite{border:1px solid #dce2e8;padding:32px;min-height:220px;background:#f5f7f9;display:flex;flex-direction:column;justify-content:center;align-items:flex-start;gap:12px}.private-favorite h2,.private-favorite p{margin:0}.private-favorite p{color:#66717d}
