@import url("/parity/owned-fonts.css");
/* Scope adapter fixes to migration wiring, preserving the live CSS geometry. */
body{font-family:LIPS Sans,sans-serif}
#diamond-search form:not(.active){display:none!important}
#diamond-search form.active{display:flex}
#global-sidemenu .sidemenu__close{cursor:pointer}
#lips-home .lips-card-attribution{font-size:11px;line-height:1.4}
#proplist_disclaimer .idx-notice{padding:0;border:0;background:transparent}
#proplist_disclaimer .idx-notice p{font:inherit;color:inherit}
#lips-team .lt-actions a{font-family:LIPS Sans,sans-serif}
/* Reimplement gallery controls without the Real Geeks/Fotorama runtime. */
.lpd-gallery .lips-photo-stage{height:clamp(420px,45vw,680px);position:relative;background:#111;display:flex;align-items:center;justify-content:center;overflow:hidden}
.lpd-gallery .lips-photo-current{height:100%;width:100%;object-fit:contain}
.lpd-gallery .fotorama__arr{border:0;background:rgba(255,255,255,.92);display:grid;place-items:center;cursor:pointer}
.lpd-gallery .fotorama__arr svg{height:24px;width:24px;fill:none;stroke:#101b22;stroke-width:1.5}
.lpd-gallery .gallery_buttons .view_gallery{display:flex;align-items:center;gap:8px;cursor:pointer;line-height:14px!important}
#lips-property .lpd-gallery .view_gallery svg{width:13px;height:12.5px;fill:currentColor;flex-shrink:0}
.lpd-actions .lpd-heart{width:18px;height:18px;vertical-align:middle;margin-right:6px}
.lpd-share-wrap .share-menu.lips-share-open{display:block!important;visibility:visible!important;opacity:1!important}
/* Native dialog supplies focus containment; captured gallery styles supply its appearance. */
.lips-photo-dialog:not([open]){display:none!important}
.lips-photo-dialog::backdrop{background:rgba(9,19,26,.86);backdrop-filter:blur(5px)}
.lips-photo-dialog .jqm_close svg{width:20px;height:20px;stroke:currentColor;fill:none;stroke-width:2.5}
.lips-no-photos{min-height:300px;display:grid;place-items:center}
@media(max-width:760px){.lpd-gallery .lips-photo-stage{height:330px}}
.lpd-gallery .lips-photo-stage{background:#101b22}
.lpd-gallery .fotorama__arr{position:absolute;z-index:2;box-shadow:none!important}
.lpd-gallery .fotorama__arr svg{display:none}
.lpd-gallery .fotorama__arr svg{stroke:#fff}

@media(max-width:760px){#lips-property .gallery_buttons button{line-height:12.5px!important}}
/* Match the live iPhone-safe photo controls, using the established SVG icons. */
#lips-property .lpd-gallery .fotorama__arr{top:50%;transform:translateY(-50%);margin:0;width:46px;height:46px;padding:0;border-radius:50%;background:#101b22bf}
#lips-property .lpd-gallery .fotorama__arr--prev{left:18px;right:auto}
#lips-property .lpd-gallery .fotorama__arr--next{right:18px;left:auto}
#lips-property .lpd-gallery .fotorama__arr:before,#lips-property .lpd-gallery .fotorama__arr:after{content:none!important}
#lips-property .lpd-gallery .fotorama__arr svg{display:block;width:18px;height:24px;stroke:#fff;stroke-width:2}
#lips-property .lpd-actions .lpd-heart{width:16px;height:16px;margin-right:0;stroke-width:2}
#lips-property .lpd-gallery .view_gallery svg{width:13px}
@media(max-width:760px){#lips-property .lpd-gallery .fotorama__arr{width:38px;height:38px}}

/* Preserve the native inner search form height after removing invalid nesting. */
#move-form > [data-native-search-fields]{height:55px;margin-left:0;margin-right:0}
/* The replacement submits named buttons; live rules target submit inputs only. */
.lips-advanced-page #advanced_search .advanced-submit button[type=submit]{display:block;width:100%!important;min-height:54px;margin:0!important;padding:15px 20px!important;border:1px solid #111!important;border-radius:10px!important;background:#111!important;color:#fff!important;font:600 15px/1.4 'DM Sans',sans-serif;letter-spacing:0!important;text-transform:none!important;cursor:pointer;box-shadow:none;transition:200ms all}
.lips-advanced-page #advanced_search .advanced-submit button[value=map]{background:#fff!important;color:#142129!important;border-color:#a9c7d6!important}
.lips-advanced-page #advanced_search .advanced-submit button[type=submit]:hover{background:#263d49!important;color:#fff!important;opacity:.5}
.lips-advanced-page #advanced_search .advanced-submit button:focus-visible{outline:3px solid #78b6d2;outline-offset:3px}
@media(max-width:480px){.lips-advanced-page #advanced_search .advanced-submit button[type=submit]{padding:14px 8px!important}}

/* Same vector geometry used by the live site; static editorial equivalents. */
.lips-ui-vector{display:inline-block!important;width:1em!important;height:1em!important;vertical-align:-.14em;flex-shrink:0;overflow:visible;pointer-events:none;fill:none!important;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}.lips-ui-vector path{fill:none!important;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
/* Same-page contact window, with the native form's backdrop inside it. */
html.lips-contact-open{overflow:hidden}
dialog.lips-contact-dialog{position:fixed;inset:0;width:100vw;height:100dvh;max-width:none;max-height:none;margin:0;padding:0;border:0;background:transparent;overflow:hidden}
dialog.lips-contact-dialog::backdrop{background:transparent}
dialog.lips-contact-dialog iframe{display:block;width:100%;height:100%;border:0;background:transparent}
dialog.lips-contact-dialog iframe[hidden],.lips-contact-recovery[hidden]{display:none!important}
.lips-contact-recovery{box-sizing:border-box;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:calc(100% - 40px);max-width:480px;padding:25px;background:#fff;color:#333;box-shadow:0 0 0 100vmax rgba(0,0,0,.6);font:16px/1.5 Lato,sans-serif}
.lips-contact-recovery p{margin:0 0 20px}.lips-contact-recovery a,.lips-contact-recovery button{display:inline-block;box-sizing:border-box;margin:0 10px 0 0;padding:10px 16px;border:0;border-radius:5px;background:#111;color:#fff;font:inherit;line-height:1.5;text-decoration:none;cursor:pointer}
.lips-contact-recovery :focus-visible{outline:2px solid #137bb4;outline-offset:3px}

/* Captured native property-map window; independent of the Real Geeks runtime. */
html.lips-map-open{overflow:hidden}
dialog.lips-map-dialog:not([open]){display:none!important}
dialog.lips-map-dialog{position:fixed;inset:0;width:100%;height:100dvh;max-width:none;max-height:none;margin:0;padding:50px;box-sizing:border-box;border:0;background:transparent;overflow:auto}
dialog.lips-map-dialog::backdrop{background:rgba(0,0,0,.59);backdrop-filter:blur(10px)}
.lips-map-window{position:relative;width:100%;max-width:500px;height:1000px;margin:0 auto 50px;background:#fff}
.lips-map-window iframe{display:block;border:0;width:100%;height:100%}
#lips-property .lips-map-window [data-close-map]{position:absolute;z-index:2;right:60px;top:13px;width:44px;height:44px;margin:0;padding:5px 5px 15px 15px;border:0;background:transparent;cursor:pointer;box-sizing:border-box}
.lips-map-window [data-close-map] svg{width:24px;height:24px}
.lips-map-window{box-shadow:0 10px 20px rgb(0 0 0 / 30%)}
@media(max-width:36em){dialog.lips-map-dialog{padding:20px}}

/* Failure-only photo state preserves the normal carousel and gallery layout. */
.lips-photo-stage,.lpd-gallery-photo{position:relative}
.lips-photo-retry{position:absolute;inset:0;display:flex;flex-direction:column;gap:12px;align-items:center;justify-content:center;padding:24px;text-align:center;background:#f3f8fb;color:#152630;z-index:2}
.lips-photo-retry button{border:1px solid #bed4df;border-radius:6px;background:white;color:inherit;padding:10px 18px;font:inherit;cursor:pointer}
.lips-photo-retry button:disabled{opacity:.65;cursor:wait}
.lips-photo-stage .lips-photo-retry{inset:48px 56px;z-index:0}
/* Keep the live calculator's final line of space without falsely crediting its old runtime. */
#lips-property .mortgage_calculator .disclaimer p{padding-bottom:1.65em}
/* Only failed thumbnails change; loaded cards retain all captured live styles. */
.lips-card-photo-failed{position:relative!important;min-height:120px;background:#263d49!important}
.lips-card-photo-failed img{visibility:hidden}
.property-thumb.lips-card-thumb-failed{background-image:none!important}
.lips-card-photo-unavailable{position:absolute;inset:0;display:grid;place-items:center;padding:16px;color:#fff;background:#263d49;font:14px/1.4 LIPS Sans,sans-serif;text-align:center}

/* Native typeahead rows; list height stays inside the phone viewport. */
#lips-search-suggestions{max-height:360px;max-height:min(360px,45dvh);overflow-y:auto}
#lips-search-suggestions .tt-suggestion{cursor:pointer}
#lips-search-suggestions .tt-suggestion p{white-space:normal}
#lips-search-suggestions .tt-cursor{background:#f0f0f0}

#vg-market-report .lips-market-retry{margin:8px 0;padding:0;border:0;background:transparent;color:inherit;font:inherit;text-decoration:underline;cursor:pointer}#vg-market-report .lips-market-retry[hidden]{display:none}#vg-market-report .lips-market-retry:disabled{opacity:.6;cursor:wait}
/* Native county disclosure styles are needed on editorial families too. */
.sidebar-links .vg-sidebar-hidden{visibility:hidden;height:0;overflow:hidden}
.sidebar-links.vg-sidebar-expanded .vg-sidebar-hidden{visibility:visible;height:auto}
.vg-sidebar-view-all-link{display:block;margin-top:10px;cursor:pointer;color:black!important;background:whitesmoke;width:fit-content;padding:5px 20px;border-radius:23px;font-size:min(5vw,14px);font-weight:600}
.vg-sidebar-view-all-link:after{font-family:var(--fontawesome);margin-left:10px;color:#808080a1;content:""!important;display:inline-block;width:1em;height:1em;vertical-align:-.125em;background-color:currentColor;-webkit-mask:url("/parity/owned-icons/chevron-down.svg") center/contain no-repeat;mask:url("/parity/owned-icons/chevron-down.svg") center/contain no-repeat;}
.vg-sidebar-view-all-link.vg-sidebar-expanded-link:after{;content:""!important;display:inline-block;width:1em;height:1em;vertical-align:-.125em;background-color:currentColor;-webkit-mask:url("/parity/owned-icons/chevron-up.svg") center/contain no-repeat;mask:url("/parity/owned-icons/chevron-up.svg") center/contain no-repeat;}

/* Retain the live site's shell and typography on catalog recovery screens. */
.lips-utility-page{padding-top:48px;padding-bottom:64px;min-height:400px}
.lips-utility-page .page-hero,.lips-utility-page .section{padding:0;margin-bottom:32px}
.lips-utility-page h1{margin:0 0 24px}.lips-utility-page p{margin-bottom:20px}
.lips-utility-page .button{background:#111;color:#fff;border-radius:2px}
@media(max-width:640px){.lips-utility-page{padding-top:28px;padding-bottom:40px}}

/* Featured hero retains its native background despite shared search-result CSS. */
body.lips-featured-page #quicksearch-section{background:url("/parity/images/90e94df0a8761395477a.webp") no-repeat 50% 50% !important;background-size:cover !important}
body.lips-featured-page .search-header{text-shadow:1px 3px 6px rgba(0,0,0,.43)}
@media(max-width:736px){body.lips-featured-page #quicksearch-section{background-image:url("/parity/images/577728d6b34c2e7c3552.webp") !important}}

/* Live gallery control: nine-cell vector, 11px blue icon with 10px separation. */
#lips-property .lpd-gallery .gallery_buttons .view_gallery{gap:10px}
#lips-property .lpd-gallery .view_gallery svg{width:11px;height:11px;color:#33687d}

/* Measured live carousel chevrons: 12px rotated corners, with 10px phone insets.
   SVG uses the same visible geometry without relying on the missing sprite. */
#lips-property .lpd-gallery .fotorama__arr svg{width:24px;height:24px;stroke-width:2;stroke-linecap:square;stroke-linejoin:miter}
@media(max-width:760px){
 #lips-property .lpd-gallery .fotorama__arr--prev{left:10px}
 #lips-property .lpd-gallery .fotorama__arr--next{right:10px}
}
/* Match the current property's Share menu, including the original brand glyphs. */
#lips-property .share-menu .fa-x-twitter{background-color:#0f1419}
#lips-property .share-menu .fa-linkedin::before{content:"\f08c"}
@media(min-width:761px){#lips-property .lpd-gallery .view_gallery svg{width:12px;height:12px}}
/* County maps retain their artwork but fit the available phone viewport. */
iframe#county-map{max-width:100%!important;width:100%!important;display:block;border:0}
@media(max-width:760px){.county-map-section,.map-artwork{min-width:0!important;max-width:100%!important}}
/* DM Sans is wider than the retired Adobe face. Preserve the live guide-card
   line breaks on phones without restoring a third-party font dependency. */
@media(max-width:650px){
 #lips-guide-directory .guide-topic a{font-size:14px!important;line-height:22.5px!important;letter-spacing:-.15px!important}
 #lips-team .lt-actions .lt-button{padding-left:16px!important;padding-right:16px!important}
}
