:root {
    /* TEMPLATE: Replace edifyny with your Real Geeks project folder name */
    --logo: url(https://u.realgeeks.media/edifyny/brand/edifyny-logo.png);
    --clearnavlogo: url(https://u.realgeeks.media/edifyny/brand/edifyny-logo.png);
    --font: "proxima-nova", sans-serif;
    --fontheader: "ivyora-display", serif;
    --maincolor: #040a32;
    --accentcolor: #040a32;
    --fontawesome: "Font Awesome 6 Pro" !important;
    --heroctabtnbg: var(--maincolor);
    --navbackground: var();
    --navlinkcolor: var();
    --navbackground: #ffffff;
    --sidemenubackground: var();
    --sidemenubackground: var(--accentcolor);
    --sidemenuctabuttoncolor: var( --maincolor);
    --footerbgcolor: var();
    --footerbgcolor: var(--maincolor);
    --footerinputbg: #ffffff;
    --footerunderlinecolor: #b4b4b4;
    --footerbtn: var( --maincolor);
    --footerbtntext: #040a32;
    --navuserinfoborder: solid .5px #dadada;
    --fullwidthpadding: 0px 45px;
    --containerpadding: 0px 25px;
    --containerpaddingmobile: 0px 20px;
    --li-height: 2em;
}
@keyframes border-right-draw {
  from { height: 0; }
  to   { height: 100%; } 
}
@keyframes border-bottom-left {
  0%   { background-size: 0 1px, 1px 0; }
  50%  { background-size: 100% 1px, 1px 0; }
  100% { background-size: 100% 1px, 1px 100%; }
}
@keyframes scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}
@keyframes lux-spin {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}
@keyframes lux-spin2 {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
@keyframes appearFast {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes popUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
.cta-container svg {
    height: auto;
    width: 100%;
}
#maui-map svg path {
    fill: #ffffff36 !important;
    stroke: #040a32 !important;
    stroke-width: 3px!important;
}
svg circle {
    fill: white!important;
    stroke: black!important;
}
svg #text {
    pointer-events:none!important;
}
svg text:not(#g131 text), #g220 path, #g261 path {
    fill: #ffffff !important;
    font-family: var(--font)!important;
}
/* #gobbla,#dev-mode {
    display:none;
} */
#nyc.mobile svg {
    max-height: 1000px;
}
#City_Group polygon, #City_Group path {
    stroke: #999999;
    stroke-width: 1px;
}
svg#vg-map {
    height: 100%;
    width: 100%;
}
#big_map path, #big_map polygon, #Small_Map path, #Small_Map polygon  {
    cursor: pointer;
    opacity: .7;
    stroke: white;
    stroke-width: 1px!important;
}
.map-flex svg {border: solid 1px #e0e0e0;}
.splide__arrow svg {
    width: 20px;  
    height: 20px; 
    fill: none!important;   
    display: none;
  }
g[id="areas"] path,
g[id="areas"] polygon {
    pointer-events: all;
}
g[id="areas"] path:hover, g[id="areas"] polygon:hover {opacity: .4!important;}
g[id="_Ð¡Ð»Ð¾Ð¹_2"] path,
g[id="_Ð¡Ð»Ð¾Ð¹_2"] polygon {
    pointer-events: all;
}
g[id="_Ð¡Ð»Ð¾Ð¹_2"] path:hover, g[id="_Ð¡Ð»Ð¾Ð¹_2"] polygon:hover {opacity: .4!important;}
g[id="small_text"] a:hover g > path {
    fill: #ffffff!important;
}
g[id="text"] path {
    stroke:none;
    fill:#040a32;
}
.vg-main-areas section h2:not(#market-section h2, #grid-listings-all h2) {
        margin-top: 0;
        margin-bottom: 30px;
    }
.realtor-page #grid-listings-all h2 {
    margin-bottom: 20px;
}
.realtor-page #grid-listings-all {
    border-top: solid 1px;
    padding-top: 30px;
    margin-top: 30px;
}
#g43 path:hover {
        fill: #ffffff5c !important;
    }
#g43 text tspan, #g43 text {
  font-family: var(--font) !important;
}
#lux-map-container #map svg {
    width: 100%;
    height: 100%;
    }
svg line {
        stroke: white!important;
    }
#lux-map-container #map svg  rect {
        fill: #040a32 !important;
        stroke: #b5b5b5;
    }
#lux-map-container #map svg rect:hover {
        fill: #acacac !important;
    }
#value-section .value-header {
    grid-column: 1/-1;
}
#value-section .value-header h2 {
    color:white
}
.vg-hero .form-wrapper header > * {
    color: #ffffff;
    font-size: min(7vw, 24px)!important;
}
section.content-block.big-header h2, section.content-block.big-header h1 {
    font-size: min(8vw,30px);
    line-height: 1.3;
    position: relative;
    margin-bottom: 20px!important;
}
section.vg-hero.big-header h1, #reviews h2 {
    font-size: min(7vw,50px);
    line-height: 1;
}
section#hero-section.vg-hero.big-header h3 {
    font-size: min(10vw,50px);
    line-height: 1;
    color: white;
    margin-bottom: 30px;
}
#market-section header h2 {
    font-size: min(7vw,40px);
}
.about-nav .nav-ink {
    padding: 10px 10px;
    background: transparent;
    border: solid 1px #ffffff9c;
}
.clearnav .about-nav .nav-ink:hover {
    opacity: .6;
    border-color: white;
}
.about-nav .nav-ink:hover {
    opacity: .5;
}
.mobile-about .about-nav .nav-ink {
    background: none;
    color: #ffffff !important;
    letter-spacing: 2px;
    font-size: min(3vw, 10px);
    border: none;
}
.noclearnav .mobile-about .about-nav .nav-ink {
    color: #ffffff !important;
}
nav.clearnav:not(.showoriginalnav) .mobile-about .about-nav .nav-ink {
    color: #ffffff !important;
}
nav .navshadow .mobile-about .about-nav .nav-ink, .navshadow .acct-nav a:before {
    color: #ffffff !important;
}
.about-nav {
    display: flex;
}
#market-section.home-market header h2 {
    font-size: min(10vw,28px);
}
.vg-area-page section header .large-agent {
    margin-bottom: 10px!important;
    font-size: min(15vw,25px);
    line-height: 1;
    border-bottom: solid 1px;
    width: fit-content;
    padding-bottom: 10px;
}
.acct-nav a{
    display: flex;
    padding: 0!important;
    border: none!important;
}
.acct-nav a:before {
    font-family: "Font Awesome 6 Pro";
    content: "\f2bd";
    font-weight: 400;
    font-size: 17px;
}
#head-section header {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    margin-bottom: 0;
    background: black;
    position: relative;
    min-height: 200px;
}
#head-section header img {
    object-fit: cover;
    min-height: 400px;
    max-height: 600px;
    width: 100%;
    padding-bottom: 62px;
}
.listing-h span:not(#agent-cta span, .sidemenu span) {
        padding: 5px 5px;
        background: #040a32;
        display: block;
        width: fit-content;
        margin-bottom: 10px;
        color: white;
        border: solid 1px;
        font-size: min(2.2vw,11px);
        text-transform: uppercase;
        letter-spacing: 2px;
        font-weight: 800;
        line-height: 1;
}
#agent-cta button, .sidemenu button {
        background: transparent;
        color: white;
        border: solid .5px white;
        text-transform: uppercase;
        letter-spacing: 2px;
        border-color: white!important;
        padding: 15px 20px!important;
        text-decoration: none!important;
        text-align: center!important;
        border-radius: 0;
        font-weight: 600!important;
    }
.value-header {
        flex: 1 1 100%;
        flex-direction: column;
        align-items: center;
    }
#about-text .value-header a {
    color: #ffffff !important;
}
.area-header .value-header {
        width: 100%;
        flex: 1;
        position:relative;
        z-index: 1;
        display: flex;
        align-items: baseline;
        height: 100%;
        justify-content: center;
        margin: 50px 0;
    }
.area-header.explore-section .inner-content .value-header{
        max-width: none;
        align-items: center;
        padding: 20px 0;
    }
.area-header.explore-section .inner-content{
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: auto;
        padding: 0;
        width: 100%;
    }
.area-header .inner-content {
        display: flex;
        max-height: fit-content;
        overflow: hidden;
        position: relative;
        height: 100%;
        align-items: center;
    }
.area-header .inner-content .flex-btns {
    margin-top: 20px;
    flex-wrap: wrap;
    padding-bottom: 0;
    padding-top: 30px;
    position: relative;
}
.area-header .inner-content .flex-btns:before {
    content:'';
    display: inline-flex;
    width: 25%;
    position: absolute;
    height: 3px;
    background: #ffffff;
    top: 0;
}
.area-header .inner-content .flex-btns:after {
    content:'';
    display: inline-flex;
    width: 100%;
    position: absolute;
    height: 1px;
    background: #ffffff5e;
    top: 0;
}
.area-header .flex-btns a {
    width: fit-content;
    text-decoration: none!important;
}
.area-header .inner-content .flex-btns a:first-child button {
        background: #3f14d9 !important;
        color: #ffffff !important;
        text-decoration: none!important;
    }
.area-header .inner-content .flex-btns button {
        background: white;
        white-space: nowrap;
        border: solid 1px #e5e5e5;
        font-size: min(3vw,15px);
        min-width: auto;
        color: #040a32 !important;
        padding: 10px 20px;
    }
.value-header p a {
        font-weight: 500;
        color: white;
        text-decoration: underline;
    }
#additional-text .value-header p a {
        color: black;
    }
nav.forced-white .header {
        background: #040a32!important;
        padding: 0;
        border: none;
    }
nav.forced-white .logo {
        background-image: var(--logo)!important;
    }
nav.forced-white .nav-ink, nav.forced-white .nav-ink:before {
        color:black!important
    }
nav.forced-white .hamburger__bars, nav.forced-white .hamburger__bars:before {
        background-color: #ffffff !important;
        color: #ffffff !important;
    }
nav.forced-white .navigation {
        display:none;
    }
.sidemenu .listing-h h3 {
    font-family: var(--fontheader)!important;
}
.vg-hero {
    min-height: 50vh;
    padding-bottom: 0!important;
}
.vg-hero .inner-content:not(#reviews .inner-content) {
     padding: 100px 20px!important;
     max-width: none;
     min-height: 50vh;
     margin: auto;
     display: flex;
     align-items: center;
     justify-content: normal;
     grid-gap: 40px;
     top: 0;
}
.vg-hero-img img {
    position: absolute;
    height: 100%;
    width: 100%;
    object-fit: cover;
    top: 0;
    left: 0;
    object-position: center;
}
.vg-hero-img.white-back .inner-content:after {
     background: linear-gradient(180deg, white, #ffffffbd);
}
.vg-hero-img.white-back h2, .vg-hero-img.white-back p {
    color:black;
}
.vg-hero .section-info  {
    z-index: 2;
    position: relative;
    align-items: center;
    padding: 20px!important;
    height: 100%;
}
.vg-hero .vg-form .row {
    display: flex;
    justify-content: space-between;
    grid-gap: 10px;
    flex-direction: column;
    margin-bottom: 10px;
}
.vg-hero .vg-form .row:before, .vg-hero .vg-form .row:after {
    display:none;
}
.vg-hero .vg-form .row div {
    width: 100%;
}
.vg-hero button:hover {
    opacity: .7;
    background: #ffffff !important;
}
section.vg-hero h1, section.vg-hero h2{
    color: white;
    line-height: 1.2!important;
}
section.vg-hero p {
    color: white;
    font-size: min(4vw,17px);
    line-height: 1.4;
}
#custom-hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 100vh;
    background: #2c2c2c;
}
#custom-hero video {
    min-height: 100vh!important;
    position: relative;
    min-width: 100vw;
    object-fit: cover;
    height: 100vh;
}
.vg-hero-img strong {
    color:white;
    font-weight: 700;
}
.vg-hero-img:before {
    content:'';
    background: #040a325c;
    position:absolute;
    width:100%;
    min-height: 100%;
    z-index:1;
    top: 0;
}
.vg-hero-img.lighter-bg:before {
    background: #040a321a;
    height: 100%;
    top: 0;
}
.vg-hero .blog-socials h4 {
    color: white;
}
.vg-hero .blog-socials a {
    color: white;
}
.market-widgets .row:not(.hero-search-submit) {
    display: flex;
    flex-direction: column;
    padding: 0!important;;
}
.home-hero-links a.loaded {
  opacity: 1;
}
.design-partners .hlc-text:not(#area-hero .hlc-text) {
        width: 100%;
        padding: 50px;
    }
.parent-hero {
        display: flex;
        align-items: center;
        gap: 20px;
    }
#diamond-search .parent-hero {
        max-width: 555px;
        width: 100%;
        margin-top: 30px;
        gap: 10px;
    }
#diamond-search .parent-hero .long-dash:before {
        border-color: white;
    }
#diamond-search .parent-hero a {
        color: white;
        font-weight: 600;
        letter-spacing: 1px;
        font-size: min(4.2vw, 14px);
    }
#diamond-search .parent-hero a:hover {
        text-decoration: underline;
    }
.parent-hero a {
        color: #040a32;
        font-weight: 300;
        line-height: 1;
        white-space: nowrap;
        text-transform: uppercase;
        letter-spacing: 2px;
    }
.parent-hero a:hover {
        color: blue;
    }
#area-hero, #about-text, #photo-gallery {
    padding-top: 0!important;
    border-bottom: solid 1px #333968;
}
.guide-hero .hlc-image {
    transition: transform 500ms ease, opacity 500ms ease, background-color 500ms ease, color 500ms ease, border-color 500ms ease, box-shadow 500ms ease;
    text-align: left;
}
.guide-hero .hlc-image:hover {
        opacity: .5;
    }
.guide-hero .hlc-image h2 {
        text-align: left!important;
    }
#diamond-search .advanced-search-btn button {
    margin: 0;
    border-radius: 0;
    background: var(--accentcolor);
    text-transform: uppercase;
    font-size: min(3.5vw,15px);
    letter-spacing: 3px;
}
.form-wrapper {
    align-items: center;
    padding: 0!important;
}
.vg-form-container {
    background: #040a32;
    padding: 15px;
    border-radius: 0;
    width: 100%;
    max-width: 750px;
    box-shadow: 0px 11px 9px #040a3230;
}
.vg-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
    border-top: solid 1px;
    padding-top: 30px;
    margin-top: 10px;
}
.vg-form .row {
    display: flex;
    gap: 20px;
    width: 100%;
}
.vg-form .row div {
    width:100%;
}
.vg-form .row:before, .vg-form .row:after {
    display:none;
}
.vg-form button {
    background: #ffffff;
    color: black;
    text-transform: uppercase;
    letter-spacing: 2px;
    width: 100%;
    font-size: min(4vw,18px);
}
.vg-form label {
    color: #ffffff;
    margin-bottom: 6px;
    font-size: min(6vw,17px);
    font-weight: 600;
}
.vg-form .not-complete {
    border-color: red!important;
    border: solid 1px;
}
.vg-form input, .vg-form textarea, .vg-form select {
    background-color: transparent!important;
    border: none;
    color: #ffffffb5 !important;
    height: 50px;
    width: 100%;
    font-weight: 600;
    border: solid 1px #ffffff5e;
}
.vg-form textarea {
    height:200px;
    margin-bottom: 20px;
}
.form-error {
    border: solid 1px red;
    color: white;
    font-weight: 600;
    padding: 10px;
    width: 100%;
    display: block;
    margin-bottom: 20px;
    text-align: center;
}
button.alt-btn {
    background: var(--accentcolor)!important;
    color: #ffffff !important;
}
.lighter-bg button.alt-btn {
    background:white!important;
    color:black!important;
    border: none!important;
    font-size: min(10vw,25px);
}
.lighter-bg button.alt-btn:hover {
    background:white!important;
    color:black!important;
}
button.alt-btn:hover {background: #040a32 !important;}
.cta-content button {
    background: #2d00b1;
    display: flex;
}
.flex-btns button {
     margin:0!important;
     text-transform: uppercase;
     letter-spacing: 2px;
 }
button, .button {
    background: #040a32;
    margin: 0;
    font-family: var(--font);
    transition: transform 300ms ease, opacity 300ms ease, background-color 300ms ease, color 300ms ease, border-color 300ms ease, box-shadow 300ms ease;
    font-size: min(4vw,14px);
    font-weight: 600;
}
.search-results .button {
        background: black;
        border-radius: 0;
        margin-bottom: 20px;
    }
button:hover, .button:hover {
    opacity: .7;
}
#mortgage-section button {
    background:var(--accentcolor)!important;
    margin-top: 30px;
}
.listing-ctas button {
        margin: 0!important;
        color: #ffffff;
        width: 100%;
        padding: 0px 20px!important;
        padding-right: 0!important;
        font-weight: 500!important;
        text-transform: uppercase;
        letter-spacing: 1px;
        background: none;
        white-space: nowrap;
    }

.sidemenu .listing-ctas button {
    padding: 15px 20px!important;
    font-weight: 400!important;
}
.listing-ctas button:hover {
        text-decoration:underline;
    }
.listing-ctas button:before {
        font-family:'Font Awesome 6 Sharp';
        font-weight:100;
        margin-right: 10px;
    }
.listing-ctas button#viewmap:before {
        content:'\f5a0';
    }
.listing-cta-btns button:nth-child(1):before {
        content:'\f4d9';
    }
.flex-btns a, .flex-btns button {
        max-width: 600px!important;
    }
#value-section .flex-btns button, #ready-section .flex-btns button {
        background: #2d00b1;
        color: white;
    }
.vg-valuation .autocomplete-form {
    max-width: none!important;
    display: flex;
    align-items: stretch;
    box-shadow: 0px 9px 8px #040a3212;
    min-width: 100%;
    position: relative;
}
.vg-valuation input {
        height: 60px;
        box-shadow: none;
        border: solid 1px #e0e0e0;
        border-right: none;
        border-radius: 0;
        font-size:min(7vw,18px);
        font-weight:600;
        color:var(--maincolor);
        margin: 0;
        text-overflow: ellipsis;
        width: 100%;
        position: relative;
        padding: 0 15px;
    }
.vg-valuation form button {
        margin: 0!important;
        height: 100%;
        padding: 10px 15px!important;
        min-width: auto!important;
        background: #040a32;
        font-size: min(4vw,15px);
        text-transform: uppercase;
        letter-spacing: 2px;
        color: white;
    }
.vg-valuation button:not(form button) {
        margin: 0!important;
        height: 60px;
        padding: 10px 15px!important;
        background: #040a32;
        color: #ffffff;
        border: solid 1px #ffffff;
        font-size: min(4vw,15px);
        text-transform: uppercase;
        letter-spacing: 2px;
    }
#diamond-search .advanced-btn button {
  position: relative;
  background: #ffffff !important;
  color: #040a32 !important;
  margin: 0 !important;
  z-index: 3;
  padding: 8px 30px !important;
  border: solid 1px #ffffff3b;
  text-transform: uppercase;
  border-top: none;
}
.generated-blogs .all-posts button {
  margin: 0 !important;
  background: white;
  color: black;
  border: none;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 15px 20px;
  width: 100%;
  position: relative;
  width: fit-content;
  border-bottom: solid;
}
section.cta .cta-buttons a button:hover {
        opacity: 1!important;
        text-decoration: underline;
        text-decoration-thickness: 1px;
    }
.hlc-dark button {
        background: white;
        color: black;
    }
#agent-cta .popup button {
        background: #07607b;
    }
.view-listings-link button {
    background: transparent !important;
    color: white !important;
    border: solid 1px white !important;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px !important;
    padding: 15px 15px !important;
    height: 100%;
    font-size: min(2.5vw,15px)!important;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease !important;
    white-space: nowrap;
    width: 100%;
}
.view-listings-link button:hover {
    background: white !important;
    color: black !important;
    opacity: 1;
}
.search-modal-title,
.search-modal-form,
.search-modal-divider,
.search-modal-grid {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 1s ease;
}
.search-modal.active .search-modal-form {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.25s;
}
.search-modal-form {
  display: flex;
  align-items: center;
  gap: 0;
  position: relative;
  max-width: 100%;
  margin: 0 auto;
  border: 1px solid #9e9e9e;
  border-radius: 0;
  background: #fff;
  z-index: 33;
}
.search-modal-form #modal-move-form {
  flex: 1;
}
.search-modal-form #modal-move-form form {
  margin: 0;
  width: 100%;
  height: 100%;
  max-width: none!important;
}
.search-modal-form #modal-move-form input[type="text"] {
  width: 100%;
  border: none !important;
  padding: 15px 20px !important;
  font-size: 16px !important;
  outline: none;
  background: transparent !important;
  box-shadow: none!important;
}
.search-modal-form #modal-move-form input[type="text"]:focus {
  outline: none;
  box-shadow: none !important;
}
.search-modal-form #modal-search-btn {
  background: transparent;
  color: black!important;
  border: none;
  padding: 15px 25px;
  cursor: pointer;
  transition: background 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
.search-modal-form #modal-search-btn:hover {
  background: transparent;
}
.search-modal-form #modal-search-btn i {
  font-size: min(5vw,25px);
  color: black;
}
.search-modal-form #modal-search-btn i:before {
        color: black!important;
        font-weight: 300;
    }
.vg-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 99999;
}
.vg-modal.active {
  display: flex;
}
.vg-modal-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  background: #838383;
  border-radius: 8px;
}
.vg-modal-content img {
  display: block;
  width: auto;
  height: auto;
  max-height: 90vh;
  max-width: 90vw;
  border-radius: 8px;
}
.vg-modal-close {
  position: absolute;
  top: 0;
  right: 0;
  font-size: 40px;
  padding: 0;
  font-weight: 300;
  color: #040a32;
  opacity:1!important;
  background: #ffffff;
  border: none;
  cursor: pointer;
  height: 50px;
  width: 50px;
  transition: opacity 0.2s ease;
  border-bottom-left-radius: 8px;
  border-top-right-radius: 8px;
}
.vg-modal-close:hover {
  background: black;
}
#market-section .popup {
        font-weight: 500;
        color: black;
        text-decoration: underline;
    }
.kakaako-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.kakaako-modal.active {
  display: flex;
  opacity: 1;
}
.kakaako-modal-content {
  background: #fff;
  border-radius: 0;
  max-width: 900px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 50px;
  position: relative;
  transform: translateY(-20px);
  transition: transform 0.3s ease;
}
.kakaako-modal.active .kakaako-modal-content {
  transform: translateY(0);
}
.kakaako-modal-close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 32px;
  font-weight: 300;
  color: #333;
  background: none!important;
  border: none;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  transition: color 0.2s ease;
}
.kakaako-modal-close:hover {
  color: #000;
}
.kakaako-modal-title {
  margin: 0 0 30px 0!important;
  color: #333!important;
  text-align: center;
  font-weight: 500!important;
}
.kakaako-modal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  height: 100%;
}
.kakaako-modal-item {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  min-height: 30vh;
  max-height: 30vh;
}
.kakaako-modal-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}
.kakaako-modal-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.kakaako-modal-item-text {
  padding: 15px;
  position: absolute;
  z-index: 2;
  height: 100%;
  width: 100%;
  background: linear-gradient(180deg, #040a3299, transparent);
  top: 0;
  pointer-events: none;
}
.kakaako-modal-item-text h3 {
  font-size: min(7vw,27px)!important;
  margin: 0 0 8px 0;
  font-weight: 500;
  color: #ffffff;
  font-family: var(--font)!important;
  text-align: center;
}
.kakaako-modal-item-text p {
  font-size: min(4vw,15px);
  color: #ffffffde;
  margin: 0;
  line-height: 1.4;
  text-align: center;
}
.kakaako-modal-item a {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  font-size: 0;
  z-index: 1;
}
.search-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 99999;
  display: flex;
  justify-content: center;
  align-items: center;
  visibility: hidden;
  pointer-events: none;
}
.search-modal.active {
  visibility: visible;
  pointer-events: auto;
}
.search-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.search-modal.active .search-modal-overlay {
  opacity: 1;
}
.search-modal-content {
  background: #fff;
  border-radius: 0;
  max-width: 1000px;
  width: 90%;
  max-height: 90vh;
  padding: 50px 25px 25px;
  position: relative;
  transform: translateY(80px);
  opacity: 0;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
              opacity 0.4s ease;
  z-index: 1;
}
.search-modal.active .search-modal-content {
  transform: translateY(0);
  opacity: 1;
}
.search-modal.active .search-modal-title {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.15s;
}
.search-modal.active .search-modal-divider {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.35s;
}
.search-modal.active .search-modal-grid {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.45s;
}
.search-modal-item {
  opacity: 0;
  transform: translateY(25px);
  transition: opacity 0.4s ease, transform 0.4s ease, box-shadow 0.3s ease;
}
.search-modal.active .search-modal-item:nth-child(1) {
  opacity: 1;
  transform: translateY(0);
}
.search-modal.active .search-modal-item:nth-child(2) {
  opacity: 1;
  transform: translateY(0);
}
.search-modal.active .search-modal-item:nth-child(3) {
  opacity: 1;
  transform: translateY(0);
}
.search-modal-close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 32px;
  font-weight: 300;
  color: #333;
  background: none !important;
  border: none;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  transition: color 0.2s ease;
}
.search-modal-close:hover {
  color: #000;
}
.search-modal-title {
  margin: 0 0 30px 0 !important;
  color: #333 !important;
  text-align: center;
  font-weight: 500 !important;
  font-size: min(8vw, 44px) !important;
  font-family: var(--fontheader) !important;
}
.search-modal-divider {
  display: flex;
  align-items: center;
  margin: 25px 0;
  gap: 20px;
}
.search-modal-divider::before,
.search-modal-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #ddd;
}
.search-modal-divider span {
  color: #7a7a7a;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.search-modal-advanced-btn {
  display: block;
  width: 100%;
  padding: 16px 30px;
  background: var(--maincolor);
  color: white;
  text-align: center;
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  border: 1px solid var(--maincolor);
  transition: transform 0.3s ease, opacity 0.3s ease, background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}
.search-modal-advanced-btn:hover {
  background: transparent;
  color: var(--maincolor);
}
.search-modal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  height: 100%;
}
.search-modal-item {
  position: relative;
  border-radius: 0;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  height: 100%;
  min-height: 50vh;
  max-height: 50vh;
}
.search-modal.active .search-modal-item:hover {
  transform: translateY(-5px) !important;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}
.search-modal-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.search-modal-item-text {
  padding: 15px;
  position: absolute;
  z-index: 2;
  height: 100%;
  width: 100%;
  background: #00000061;
  top: 0;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
}
.search-modal-item-text h3 {
  font-size: min(6vw, 48px) !important;
  margin: 0 0 15px 0;
  font-weight: 400;
  color: #ffffff;
  font-family: var(--fontheader) !important;
  line-height: 1;
}
.search-modal-item-text p {
  font-size: min(4vw, 17px);
  color: #fffffff7;
  margin: 0;
  line-height: 1.4;
  text-align: center;
  max-width: 200px;
}
.search-modal-item a {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  font-size: 0;
  z-index: 1;
}
#listing-slider {
    min-height: auto;
    margin-top: 75px;
    margin-bottom: 75px;
}
#property-types .cta-container {
    flex-direction: column-reverse;
}
#property-types .cta-content {
    padding: 30px 0;
}
section.home-listings .listing-h h1, section.home-listings .listing-h h2 {
    margin-bottom: 0!important;
    font-size: min(6vw,35px)!important;
}
.value-container:not(#agent-cta .value-container):last-of-type .listing-h span {
    background: #ffffff;
    border: solid 1px;
    color: #040a32;
}
.ultimate-guide section.home-listings h2 {
    font-size: min(8vw,30px);
}
section.home-listings {
    padding-bottom: 5vh;
    padding-top: 5vh;
}
#grid-listings-all {
    display: block!important;
}
.ultimate-guide section.home-listings {
    border-top: solid;
    border-color: #e0e0e0;
    margin: 0!important;
    padding: 100px 0px!important;
    left: 0;
    right: 0;
    width: 100%;
}
section.home-listings .featured-properties {
    margin-bottom: 0!important;
}
.ultimate-guide section.home-listings .featured-properties {
        grid-template-columns: repeat(4,1fr);
    }
.listing-ctas {
    display: flex;
    align-items: end;
    grid-gap: 15px;
    justify-content: space-between;
    margin-bottom: 30px;
    align-items: center;
}
.listing-ctas h1 {
        margin:0!important;
    }

.listing-cta-btns {
        display: flex;
        grid-gap: 10px;
    }
.home-listings .property {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.home-listings .property.visible {
  opacity: 1;
  transform: translateX(0);
}
.toggle-extra-btn.closed-listings::after {
  content: "\f078"; 
}
.toggle-extra-btn.opened-listings::after {
  content: "\f077"; 
}
.no-listings {
        display: flex;
        align-items: center;
        min-height: auto!important;
        flex-direction: column;
        align-items: baseline;
    }
.no-listings a {
        font-weight: 500!important;
        color: #040a32 !important;
        text-decoration: underline;
    }
#property-types .begin {
        margin: 0;
    }
#property-types .begin:before {
        display: none;
    }
#recent-blogs {
        background: black;
        padding-bottom: 7vh!important;
        padding-top: 7vh!important;
    }
#recent-blogs h2 {
        color: white;
    }
.vg-blog-home .title {
        grid-column: 1/-1;
    }
.generated-blogs {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    grid-gap: 30px;
    margin-top: 30px;
}
.generated-blogs article {
    display: flex;
    flex-direction: column-reverse;
    justify-content: space-between;
    background: #e0e0e0;
    height: 100%;
}
.generated-blogs .post {
    box-shadow: 0px 8px 20px #040a320f;
    overflow: hidden;
    transition: transform 300ms ease, opacity 300ms ease, background-color 300ms ease, color 300ms ease, border-color 300ms ease, box-shadow 300ms ease;
}
.generated-blogs .post:hover {
    transform:scale(.98);
    opacity: .7;
}
.generated-blogs .post-info {
    padding-top: 20px;
    height: auto;
    display: flex;
    flex-direction: column-reverse;
    justify-content: space-between;
    background: black;
    flex: 1;
}
.generated-blogs .date {
    color: #ffffff;
    font-size: min(4vw,16px);
    width: fit-content;
    padding: 0;
    font-weight: 500;
    line-height: 1;
    border-radius: 2px;
    text-transform: uppercase;
}
.generated-blogs h3 {
    margin: 0;
    font-size: min(6vw,22px)!important;
    font-family: var(--font)!important;
    font-weight: 300;
    color: #ffffff;
    margin-bottom: 30px;
}
.generated-blogs .blog-image {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  height: auto;
  min-height: 25vh;
}
.generated-blogs .blog-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: absolute;
  top: 0;
  left: 0;
}
.generated-blogs .all-posts {
        margin-top: 50px;
    }
.blog-chapter.agent-cta > .blog-chapter-text h3, .blog-chapter.agent-cta > .blog-chapter-text p, .blog-chapter.agent-cta .blog-chapter-text .social-links a, .blog-chapter.agent-cta > .blog-chapter-text strong{
    color:white!important;
}
.vg-custom-blog .agent-section {
     border: none!important;
 }
.vg-home section:not(#map-section, #quicksearch-section) {
    padding-bottom: 0;
    padding-top: 7vh;
}
#map-section {
    margin-top: 7vh;
    background: black!important;
}
.click-map {
    color: white;
    position: relative;
    display: flex;
    gap: 10px;
    margin-top: 20px;
    font-weight: 500;
    font-size: min(4vw,21px);
}
.click-map::before {
  font-family: "Font Awesome 6 Sharp";
  content: "\f245"; /* click / pointer icon */
  font-weight: 100;
}
.map-flex .cta-container {
    overflow: hidden;
}
.directory-blocks {
     display: grid;
     grid-template-columns: repeat(2,1fr);
     grid-gap: 20px;
     margin-top: 20px;
     max-width: 1500px;
     margin: 0;
     width: 100%;
     border-radius: 0px;
}
.four-directory {
        grid-template-columns: repeat(4,1fr);
    }
.four-directory .directory-item img {
        min-height: 25vh;
    }
.directory-item {
    width: auto;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 20px;
    text-align: center;
    transition: transform 300ms ease, opacity 300ms ease, background-color 300ms ease, color 300ms ease, border-color 300ms ease, box-shadow 300ms ease;
    border-radius: 10px;
    overflow: hidden;
}
.directory-item:hover {
    filter:none
}
.directory-text {
    position: absolute;
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: end;
    padding: 0;
    z-index: 2;
    pointer-events: none;
    left: 0;
    height: 100%;
    width: 100%;
    padding: 15px;
}

.directory-item:hover {
   transform: scale(.99);
}
.directory-item img {width: 100%;object-fit: cover;height: 100%;transition: transform 800ms ease, opacity 800ms ease, background-color 800ms ease, color 800ms ease, border-color 800ms ease, box-shadow 800ms ease;min-height: 33vh;max-height: 25vh;border-radius: 10px;}
#directory-blocks .directory-blocks .directory-item h2 {
    z-index: 2;
    position: relative;
    font-size: min(6vw, 23px)!important;
    color: #ffffff !important;
    width: 100%;
    height: fit-content;
    display: flex;
    margin: 0;
    flex-direction: column;
    pointer-events: none;
    text-align: left;
    justify-content: end;
    line-height: 1.1;
    font-family: var(--font)!important;
    font-weight: 500;
}
.directory-item h2:hover {
    background: #040a3230 !important;
}
.directory-item h2 span {
    color: #ffffffba;
    font-weight: 400;
    font-size: min(4vw,16px);
}
.directory-item:hover > h2:after {
    content:'';
    width: 50%;
    border-bottom:solid 1px white;
    position: relative;
    margin-top: 10px;
}
.vg-sidebar.home-directory {
    display: grid;
    grid-template-columns: repeat(2,1fr);
    margin-bottom: 75px;
    margin-top: -50px;
}
.vg-sidebar.home-directory li {
    padding:0!important;
}
.vg-directory .section-info, .vg-neighborhood .section-info {
    display: block!important;
}
.area-directory .area-description {
        padding: 20px!important;
    }
.directory-item p {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.hlc-flex {
        display: grid;
        grid-template-columns: repeat(2,1fr);
        gap: 100px;
    }
.hlc-text {
        display: flex;
        flex-direction: column;
        justify-content: center;
        position: relative;
        flex: 1;
        padding: 7vh 0;
    }

section .hlc-text h1 {
    margin-top: 0;
    transform: none!important;
    opacity: 1!important;
    font-size: min(7vw,39px);
    font-weight: 400;
}
.hlc-flex {
        display: flex;
        gap: 50px;
    }
.hlc-image {
        height: auto;
        position: relative;
        flex: 1;
    }
.hlc-image img {
        height: 100%;
        object-fit: cover;
        max-height: 600px;
        width: 100%;
    }
.design-partners .hlc-image {
    border-radius: 0;
    min-height: 50vh;
}
.design-partners .hlc-image img {
        max-height: 50vh;
        object-fit: cover;
        object-position: center;
        height: 100%;
    }
.hlc-dark {
        background: #040a32;
    }
.hlc-dark h2,
.hlc-dark p,
.hlc-dark a,
.hlc-dark strong {
  color: #fff !important;
}
.home-grid .directory-blocks {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.home-grid .directory-blocks {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.home-grid .directory-blocks {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.home-grid .directory-blocks {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
#value-section {
    padding: 5vh 0!important;
    border-top: solid 1px;
    border-bottom: solid 1px;
    border-color: #ffffff4d;
    background: #040a32;
}
#value-section .inner-content {
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 30px;
    row-gap: 0;
}
.section-info .vg-sidebar {
    flex-direction: row;
    flex-wrap: wrap;
}
.section-info .vg-sidebar .section {
    width: 100%;
    flex: 1 1 33%;
}
.section-info .vg-sidebar .section li {
    text-align: left;
    padding: 0!important;
    width: 48%!important;
}
.vg-sidebar .section h3  {
    text-align: left!important;
    margin: 0!important;
    font-size: min(7vw,22px);
}
section.content-block {
    box-sizing: border-box;
}
#reviews{
    background:#040a32;
    padding: 7vh 0;
}
section.content-block h1 {
    margin-bottom: 20px;
}
.hlc-hero-area h2 {
    font-size: min(5vw,27px)!important;
    font-weight: 400;
    font-style: italic;
    max-width: 600px;
}
.sidebar-true section:not(section:first-child, section.mce-content) {
    display: flex;
    margin-top: 0;
}
.flex-2-col .section-info, .flex-2-col .section-img {
    flex: 1;
}
.cta-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    grid-gap: 50px;
    width: 100%;
}
.cta-content {
    flex: 1 1 30%;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 30px;
    height: 100%;
    max-width: 800px;
}
.cta-content-inner {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
    align-items: end;
}
.cta-content strong, .cta-content p {
    color: #040a32;
}
.cta-content h2, .cta-content h1 {
    color: #040a32;
    margin-bottom:30px;
    font-family: var(--fontheader)!important;
    font-size: min(6vw,40px)!important;
    font-weight: 100;
    line-height: 1;
    text-align: left;
    width: 100%;
}
.cta-white .cta-content h2, .cta-white .cta-content h1,
.cta-white .cta-content p, .cta-white .cta-content a, .cta-white .cta-content a:after {
    color:black;
}
.cta-white .cta-content a:before {
     background:black;
}
.vg-sidebar .cta-container {
    background:none;
    padding: 0;
}
.area-dir .cta-container {
    max-width: 1000px!important;
    margin: auto;
    min-height: 50vh;
}
#big-cta .flex-btns {
    margin-top: 30px;
    justify-content: center;
}
.section-info {
    width: 100%;
    padding: 50px 0;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
}
.vg-area-page .section-info {
    padding: 20px 0;
}
#ab-section .section-info img {
    width: 100%;
}

.vg-area-page #about-section .section-info {
    padding-top: 0;
}
#head-section .section-info {
    padding-top: 0;
}
.agent-section .value-container, .agent-section .value-container p, .agent-section .value-container p strong {
            color: white;
            max-width: 750px;
        }
.article-section .inner-content {
    display: grid;
    padding-bottom: 75px;
    max-width: 1500px;
    grid-gap: 30px;
}
.article-cta .inner-content h2,.article-cta .inner-content p {
    color: white;
}
.cta .inner-content {
        display: flex;
        align-items: stretch;
        grid-gap: 20px;
        justify-content: space-between;
        flex-wrap: wrap;
    }
.agent-section .value-container {
        border: none;
        padding: 30px 0;
        background: none;
        box-shadow: none;
        width: 100%;
        flex: 1;
    }
.agent-section .value-container h2 {
        font-size: min(23vw,30px)!important;
        !important;
        font-weight: 100;
        font-style: italic;
    }
#agent-cta .value-container h3 {
        font-family: var(--fontheader)!important;
        color: white;
        font-weight: 500;
        margin-bottom: 0;
        font-size: min(6vw,36px)!important;
        white-space: normal!important;
    }
#agent-cta .value-container h3:nth-child(3)  {
    font-style: italic;
    font-size: min(4vw,28px)!important;
    margin-bottom: 30px;
}
.agent-section img {
        max-width: 150px;
        width: 100%;
        object-fit: contain;
        object-position: center;
        flex: 1;
        position: relative;
        margin-bottom: 50px;
}
.market-widgets .search-column .search-section {
    padding:0;
}
.vg-main-areas section#about-text h2:first-of-type {
    color: #ffffff;
    margin-bottom: 30px;
}
.vg-main-areas section#about-text h3 {
        font-family: var(--font)!important;
        font-size: min(5vw,22px)!important;
    }
.vg-main-areas section#about-text h2:not(h2:first-of-type) {
    color: #040a32;
    margin-bottom: 20px!important;
    display: block;
    font-family: var(--font)!important;
    font-size: min(6vw,21px)!important;
    margin-top: 30px;
    font-weight: 700;
    border-bottom: solid 1px;
    width: fit-content;
    padding-bottom: 20px;
}
.vg-main-areas section#about-text h2:not(h2:first-of-type) + h3 {
    margin-top: 0;
}
.agent-cta .flex-btns {
    margin-top:30px;
}
#agent-cta .social-links::before {
  content: "";
  position: absolute;
  top: 42%;
  left: -10011px; 
  width: 9999px; 
  height: 1px;
  background: white;
  transform: translateY(-50%);
}
#agent-cta .social-links {
        justify-content:right!important;:
    ;
        width: fit-content;
        margin-right: 0;
        margin-left: auto;
    }
#agent-cta .social-links{
        transition:opacity .5s ease, transform 2s ease-in-out;
    }
#press-section {
  min-height: auto;
  border-bottom: solid 1px;
  border-top: solid 1px;
}
#press-section .inner-content {
  text-align: center;
}
#press-section h2 {
  font-weight: 800;
  font-family: var(--font) !important;
}
#agent-cta .alt-btn {
        background: transparent!important;
    }
#quicksearch-section h3 {
        margin: 0;
        color: white;
        font-size: min(3.5vw,18px);
        margin-bottom: 20px;
        font-weight: 600;
        width: 100%;
        text-shadow: 0px 2px 6px #040a3296;
        display: none;
    }
.sidebar.accordion-enabled .section h3 {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0;
  padding: 12px 0;
  user-select: none;
  font-family: var(--font)!important;
  font-weight: 400;
  font-size: min(5vw,16px)!important;
  border-bottom: solid 1px #e0e0e0;
}
.sidebar.accordion-enabled .section h3::after {
  content: '\f078';
  font-family: 'Font Awesome 6 Sharp';
  font-weight: 300;
  font-size: 12px;
  transition: transform 0.3s ease;
  margin-left: 10px;
}
.sidebar.accordion-enabled .section h3.expanded::after {
  transform: rotate(180deg);
}
.sidebar.accordion-enabled .section .accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.sidebar.accordion-enabled .section h3.expanded + .accordion-content {
  max-height: 2000px;
}
@media (max-width:1150px) {
.vg-hero .inner-content:not(#reviews .inner-content) {
        flex-direction: column;
        overflow: hidden;
        padding: 50px 30px!important;
    }
}
@media (max-width:750px) {
.vg-form-container {
        margin-bottom:0;
    }
}
@media (max-width:600px) {
.section-info .vg-sidebar {
         flex-direction: column;
     }
.section-info .vg-sidebar .section {
        flex:1;
    }
}
@media (max-width:737px) {
.home-sections section:not(#custom-hero, .design-partners section, #area-hero, #home-hero, .video-hero-section) {
        margin-top: 0;
        padding-bottom: 30px!important;
        padding-top: 30px!important;
    }
#area-top.home {
        padding-top: 30px!important;
    }
}
@media (min-width:737px) {
.cta-container.mobile {
    display:none;
}
}
@media (max-width:737px) {
#nyc.cta-container:not(#nyc.mobile) {
    display:none;
}
}
@media (max-width:750px) {
#vg-market-report {
        flex-direction: column;
        align-items: center;
        grid-gap: 30px;
    }
.vg-active-market-report, .vg-under-contract-market-report, .vg-sold-market-report {
        width: 100%;
    }
}
@media (max-width:1150px) {
.photo-ctas, .cta-container {
        width:100%!important;
        flex-direction: column;
        grid-gap: 20px;
        height: 100%;
    }
.cta-content {
        align-items: baseline;
        padding: 50px 15px 25px;
    }
.building-label {
        top:15px!important;
        left:15px!important;
    }
.flex-2-col .section-info, .flex-2-col .section-img {
        padding-top: 40px;
        padding-bottom: 40px;
    }
.featured-img .inner-content {
        padding: var(--containerpadding)!important;
    }
.vg-hero .section-info {
        padding:0!important;
    }
.vg-hero .form-wrapper {
        top: 0;
    }
}
@media (max-width:950px) {
#ab-section .section-info {
        flex-direction: column;
    }
#ab-section .section-info img {
        order: 1;
    }
#ab-section .section-info div {
        order: 2;
    }
}
@media (max-width:707px) {
#custom-hero h1:after {
         left: 60vw;
    }
}
@media (max-width:570px) {
}
@media (max-width:700px) {
#custom-search-tabs a {
        text-align: center;
    }
#custom-search-tabs {
        left: 0!important;
        width: 100%;
        flex-direction: column;
        grid-gap: 10px!important;
    }
}
@media (max-width:600px) {
.four-directory .directory-item img {
            min-height: 15vh;
            max-height: 15vh;
        }
}
@media (max-width:900px) {
.directory, .directory-blocks {
    grid-template-columns: repeat(1,1fr);
}
}
@media (max-width:850px) {
.directory, .directory-blocks {
    grid-template-columns: repeat(1,1fr);
    gap: 15px;
}
}
@media (max-width:950px) {
.map-flex .cta-container {
        border-left: none;
        border-right: none;
        border-bottom: none;
        overflow: hidden;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}
@media (max-width:737px) {
.area-header.explore-section .inner-content .value-header {
            align-items: flex-start!important;
        }
}
@media (max-width:1000px) {
.flex-side .social-links {
        justify-content:center;
    }
}
@media (max-width:1200px) {
.home-market #vg-market-report {
    flex-direction: column;
    grid-gap: 0;
}
.home-market .vg-active-market-report, .home-market .vg-under-contract-market-report, .home-market .vg-sold-market-report {
    border-right: none;
    border-bottom: solid 1px #5b5b5b;
    padding: 50px 0;
    max-width: none;
}
.home-market .vg-sold-market-report  {
        border: none;
    }
}
@media (max-width:600px) {
.home-market #vg-market-report .vg-market-container {
        flex-direction: row;
    }
.home-market #vg-market-report .vg-market-container div {
        flex: 1 40%;
    }
}
@media (max-width:1200px) {
.vg-sidebar {
        margin-top: 0;
    }
}
@media (max-width:670px) {
.vg-sidebar.home-directory {
        grid-template-columns: repeat(1,1fr);
        margin-top: -20px;
    }
}
@media (max-width:1000px) {
.listing-cta-btns {
            width: 100%;
            margin-top: 0;
            justify-content: space-between;
            flex-direction: column;
        }
.listing-cta-btns a {
            width: fit-content;
        }
.listing-ctas button {
            font-size: min(3vw,14px);
            white-space: nowrap;
            padding: 0px;
            text-align: left;
        }
.listing-cta-btns button:nth-child(1), #viewmap {
            padding:0!important;
        }
.listing-ctas {
            flex-direction: column;
            align-items: center;
            margin-bottom: 20px;
            justify-content: center!important;
        }
.agent-section .listing-ctas {
            max-width: 800px;
            margin: 0px auto!important;
            padding: 0;
        }
.listing-ctas:not(#agent-cta .listing-ctas) {
            align-items: baseline;
        }
.area-top .flex-btns {
        flex-direction: column!important;
        align-items: center!important;
        justify-content: center;
        width: 100%;
        margin: auto;
        }
.value-header .flex-btns a {
            max-width: none!important;
            flex: 0 0 auto;
        }
}
@media (min-width:600px) {
#market-section .flex-btns a, #market-section .flex-btns button {
        max-width: fit-content!important;
    }
}
@media (max-width:600px) {
.listing-ctas {
            flex-direction: column;
            align-items: baseline;
        }
}
@media (max-width:1000px) {
.ultimate-guide section.home-listings {
        border: none!important;
        padding: 0!important;
        box-shadow: none;
        padding-top: 30px!important;
        border-top: solid 1px!important;
    }
}
@media (max-width: 1000px) {
#area-top.home .value-header {
            align-items: baseline!important;
            text-align: left!important;
            padding: 20px!important;
        }
.area-header .inner-content {
            grid-template-columns: repeat(1,1fr)!important;
        }
.area-header .value-header {
            max-width: 600px;
            margin: auto;
            padding: 30px 0;
        }
#area-top .value-header{
            width: 100%;
            max-width: 100%;
            min-height: auto;
            margin-bottom: 0;
            padding-bottom: 7px;
        }
.area-header, .area-header .inner-content {
            padding-bottom: 0!important;
        }
.area-header .inner-content .flex-btns:before, .area-header .inner-content .flex-btns:after {
            display:none!important;
        }
.area-header .inner-content .flex-btns {
          display: flex;
          flex-direction: row !important;
          justify-content: flex-start;
          flex-wrap: nowrap !important;
          overflow-x: scroll;
          overflow-y: hidden;
          white-space: nowrap;
          -webkit-overflow-scrolling: touch; 
          max-width: 100%;
          padding-bottom: 20px!important;
          margin-top: 0!important;
          padding-top: 0!important;
          border: none!important;
        }
#area-top .inner-content {
            padding: var(--containerpaddingmobile)!important;
            align-items: end;
            justify-content: normal;
            overflow: hidden;
        }
}
@media (min-width:1000px) {
.flex-btns.home {
        justify-content: center!important;
    }
}
@media (max-width:1230px) {
.agent-section .inner-content {
        flex-direction: column!important;
        align-items: center;
        justify-content: center;
        grid-gap: 30px!important;
        padding: 0!important;
    }
.agent-section .value-container {
            margin-left: 0!important;
        }
.agent-section img {
            max-width: 144px!important;
        }
}
@media (max-width:1100px) {
.neighborhoods .value-header {
            margin-bottom:-30px!important;
        }
}
@media (max-width:1445px) {
.agent-section .value-container {
            margin-left: 30px;
            padding-bottom: 0px!important;
        }
.agent-section .value-container.slide-from-top-last {
            max-width: none;
        }
}
@media (max-width:1000px) {
#area-top.area-header .value-header::before {
            border-top-left-radius: 20px;
            border-top-right-radius: 20px;
            top: 0;
            left: 0;
            transform: none;
            width: 100%;
            height: 100%;
        }
}
@media (max-width:800px) {
.value-container {
            flex:1 1 100%;
        }
.agent-section .listing-ctas {
            max-width: 800px;
            margin: auto!important;
            padding: 15px;
            margin-bottom: 0px!important;
        }
.agent-section .value-container {
            padding: 15px 0px;
            margin: 0!important;
        }
.agent-section .flex-btns a, .agent-section .flex-btns button, #market-section .flex-btns a {
            width:100%;
        }
.agent-section .social-links {
            justify-content: right!important;
            width: fit-content;
            margin-right: 0;
            margin-bottom: 50px;
            margin-left: auto;
        }
#value-section .inner-content {
            grid-gap:25px;
            grid-template-columns: repeat(1,1fr);
        }
.value-header {
            text-align:left;
        }
.vg-neighborhoods {
            gap: 10px!important;
        }
}
@media (max-width:800px) {
.generated-blogs {
    grid-template-columns: repeat(2,1fr);
}
}
@media (max-width:500px) {
.generated-blogs {
    grid-template-columns: repeat(1,1fr);
}
}
@media (max-width:600px) {
.agent-cta .flex-btns a, .agent-cta .flex-btns button {
    width:100%;
}
}
@media (max-width:850px) {
.sideoptions {
            flex-wrap: wrap;
            margin-top: 0;
            justify-content: flex-start;
            display: grid;
            grid-template-columns: repeat(1,1fr);
            grid-column-gap: 10px;
            padding: 20px;
        }
.inner-side {
            flex-direction: column;
        }
#global-sidemenu .social-links {
            padding-right: 15px;
            margin-bottom: 20px;
        }
.social-wrapper {
            padding-left: 20px;
        }
.emblem {
            padding-right: 15px!important;
            padding-left: 15px;
            min-width: 55px!important;
            max-width: 55px!important;
            position: relative;
        }
}
@media (max-width:850px) {
#property-types .inner-content {
        flex-direction: column;
    }
#property-types .cta-content {
            padding: 25px;
        }
#property-types .cta-content a:not(.begin) {
            width:100%;
        }
}

@media (max-width:900px) {
#team-wrapper {
       grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}
@media (max-width:450px) {
#team-wrapper {
       grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
}
@media (min-width: 851px) {
.vg-neighborhoods.accordion-mode .area-list h3 i {
    display: none;
  }
.vg-neighborhoods.accordion-mode .area-list ul {
    max-height: none !important;
    overflow: visible !important;
  }
}
@media (max-width:1130px) {
.home-hero div#diamond-search {
            margin: 0;
        }
#quicksearch-section.quick-hero {
  min-height: 100vh;
  justify-content: end;
  padding-bottom: 0;
}
.quick-hero .hoz-inside {
            margin: 0!important;
            justify-content: flex-end;
            align-items: center!important;
            padding: 15vh 20px 20px!important;
        }

#quicksearch-section {
            padding-left: 0;
            padding-right: 0;
        }
}
}
    @media (max-width:737px) {
        .hoz-inside {
            padding: 4vh 15px 20px!important;
        }
        .search-header {
            font-size: min(9vw,41px)!important;
            font-weight: 500!important;
            line-height: 1;
            max-width: 555px;
        }
        }
@media (min-width:1559px) {
.design-partners .hlc-text:not(#area-hero .hlc-text) {
            padding-left: 150px;
            max-width: 40%;
            padding-right: 150px;
        }
}
@media (max-width:1559px) {
.design-partners .fullwidth .inner-content .hlc-flex {
        flex-direction: column;
    }
.design-partners .hlc-text:not(#area-hero .hlc-text) {
    max-width: none!important;
    padding: 10vh 30px;
}
}
@media (max-width: 1100px) {
.vg-photo-gallery {
    column-count: 3!important;
  }
}
@media (max-width: 800px) {
.vg-photo-gallery {
    column-count: 2!important;
  }
}
@media (max-width: 500px) {
.vg-photo-gallery {
    column-count: 1!important;
  }
}
@media (max-width:950px) {
.hlc-flex {
        grid-template-columns: repeat(1,1fr);
        gap: 5vh;
    }
.hlc-image:not(.guide-hero .hlc-image) {
                width: 100vw;
                left: 50%;
                right: 50%;
                margin-left: -50vw;
                margin-right: -50vw;
                border-radius: 0!important;
        }
.photogallerynum {
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  text-align: center !important;
  width: max-content;
  max-width: 100%;
  bottom: 0;
}
#area-hero {
            margin-bottom: 0;
            padding-bottom: 0!important;
        }
.hlc-flex {
            flex-direction: column;
            gap: 0;
        }
#agent-cta .hlc-flex {
    flex-direction: column-reverse;
}
}
@media (max-width:1250px) {
.legend {
            flex-wrap: wrap;
            flex-direction: row!important;
            justify-content: center;
            width: 100%;
            max-width: none!important;
        }
}
@media (max-width: 820px) {
.diamond-initial-btns {
        align-items: flex-start;
        gap: 10px;
        flex-wrap: nowrap;
        display: grid;
        grid-template-columns: repeat(2,1fr);
    }
.parent-hero {
            display:none;
        }
.diamond-initial-btns.open {
            flex-direction: column;
        }
}
@media (max-width: 650px) {
.expanding-search-btn.expanded {
        width: calc(100vw - 30px);
        max-width: 100%;
        padding-right:0!important;
    }
.view-listings-link {
        width: 100%;
        flex: 1 1 100%;
    }
.view-listings-link button {
        width: 100% !important;
    }
#diamond-search h3 {
        font-size: min(5vw, 18px);
        padding: 0 15px;
    }
}
@media (max-width: 768px) {
.home-grid .directory-blocks {
    grid-template-columns: 1fr;
  }
.kakaako-modal-grid {
    grid-template-columns: 1fr;
  }
.kakaako-modal-content {
    padding: 30px 20px;
  }
.kakaako-modal-title {
    font-size: 24px;
  }
}
@media (max-width: 768px) {
.search-modal-grid {
    grid-template-columns: 1fr;
  }
.search-modal-content {
    padding: 40px 20px 30px;
  }
.search-modal-title {
    font-size: 22px !important;
    margin-bottom: 20px !important;
  }
.search-modal-form {
    flex-direction: column;
    border: none;
    gap: 10px;
  }
.search-modal-form #modal-move-form {
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 4px;
  }
.search-modal-form #modal-search-btn {
    width: 100%;
    padding: 12px 20px;
    border-radius: 4px;
    position: absolute;
    right: 0;
    justify-content: end;
    bottom: 0;
    height: 100%;
  }
.search-modal-item {
    min-height: 20vh;
  }
.search-modal-divider {
    margin: 25px 0;
  }
}
#proplist_disclaimer img{
    display:none;
}
#diamond-search .advanced-search-btn {
    display: flex;
    width: 100%;
    justify-content: flex-end;
    margin-top: 3px;
}
.light-bg {
    background: #5b5b5b0a;
}
#reviews .inner-content:after {
    display:none!important;
}
.vg-sidebar h3 a {
    color: var(--maincolor)!important;
    font-weight: 600;
}
.vg-sidebar h3 a:hover {
    border-bottom: solid 1px var(--maincolor);
}
.vg-sidebar h3 a:after {
    content:'\e0fc';
    font-family:var(--fontawesome);
    margin-left:10px;
    color:var(--maincolor);
    text-decoration:none;
    font-weight: 100;
}
.max-w-600 {
    max-width: 750px;
    width: 100%;
}
.flex-btns {
    display: flex!important;
    flex-direction: row!important;
    grid-gap: 10px;
    flex-wrap: wrap;
}
#vg-market-report {
    margin-top: 50px;
    grid-gap: 50px;
    justify-content: center;
    width: 100%;
    margin-bottom: 70px;
    flex-direction: column;
}
#vg-market-report .vg-market-container {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    grid-gap: 40px;
    justify-content: flex-start;
    align-items: baseline;
    text-align: center;
}
#vg-market-report .vg-market-container div {
    align-items: stretch;
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    flex: 1;
    justify-content: flex-start;
    align-items: flex-start;
}
.vg-active-market-report div div span:not(.miranda-lb span),
.vg-under-contract-market-report div div span:not(.miranda-lb span),
.vg-sold-market-report div div span:not(.miranda-lb span){
    font-size: min(5vw,23px);
    font-weight: 500;
    color: var(--accentcolor);
}
.vg-active-market-report h2, .vg-under-contract-market-report h2, .vg-sold-market-report h2{
    width: fit-content;
    font-size: min(3.5vw, 18px)!important;
    font-weight: 600;
    color: var(--accentcolor);
    text-align: center;
    margin-bottom: 30px !important;
    padding-bottom: 10px;
    display: flex;
    align-items: center;
    text-transform: none;
    font-family: var(--font)!important;
    width: 100%;
    border-bottom: solid 1px #040a321f;
}
.vg-active-market-report, .vg-under-contract-market-report, .vg-sold-market-report {
    border-radius: 0;
    flex-direction: column;
    overflow: hidden;
    width: 100%;
}
.vg-area-page .text-center-mobile h2, .vg-area-page .text-center-mobile h1, .vg-area-page .text-center-mobile h3, .vg-area-page .text-center-mobile p, .vg-area-page .text-center-mobile a, .vg-area-page .text-center-mobile {
    text-align:left!important;
    justify-content:flex-start;
}
.hug-top {
    margin-bottom: 0;
}
    #additional-text {
        padding-top: 7vh;
    }
    #market-section {
        border-top: solid 1px;
        margin-top: 7vh;
    }
    #market-section a {
        color: #040a32;
        font-weight: 500;
        text-decoration: underline;
    }
    #market-section a:hover {
        opacity:.5;
    }
.hug-top:last-child {
        margin-bottom:0;
    }
.sidebar .do_search {
    background:black;
}
#custom-search-tabs a {
    color: white;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: min(5vw,19px);
    position: relative;
    border: solid 1px #ffffff6b;
    transition: 300ms ease;
    padding: 10px 40px;
    font-weight: 800;
}
#custom-search-tabs a:first-child {
    background: white;
    color: black;
}
.vg-active-market-report p,
.vg-under-contract-market-report p,
.vg-sold-market-report p{
    font-size: min(5vw,13px);
    font-weight: 500;
    max-width: 300px;
    text-align: left!important;
}
#custom-search-tabs {
    display: flex;
    grid-gap: 30px;
    margin-top: 50px;
    position: relative;
}
#custom-search-tabs a:after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  height: 1px;
  width: 0%;
  transition: 300ms ease;
  background-color: white;
}
#custom-search-tabs a:hover:after {
  width: 100%;
}
#reviews img {
    max-height: 18px;
    margin-top: 10px;
}
.condo-label {
        position: absolute;
        left: 15px;
        top: 15px;
        background: #ffffff;
        padding: 2px 8px;
        border-radius: 6px;
        font-weight: 500;
        color: #040a32;
        display: none;
    }
#mobile-banner {
    display:none!important;
}
.vg-area-page p a {
    color: var(--accentcolor);
    font-weight: 500;
    text-decoration:underline
}
.mobile-about {
    padding-right: 5px!important;
}
strong {
    font-weight: 400;
    color: var(--maincolor);
}
.home-market #vg-market-report {
    flex-direction: row;
    grid-gap: 0;
}
.home-market .vg-active-market-report, 
.home-market .vg-under-contract-market-report, 
.home-market .vg-sold-market-report{
    background: transparent;
    box-shadow: none;
    border-right: solid 1px #183f49;
    padding: 0 100px;
    justify-content: space-between;
}
.home-market .vg-sold-market-report {
    border:none!important;
}
.home-market .inner-content {
    max-width: 2500px;
}
.home-market .vg-active-market-report h2, 
.home-market .vg-under-contract-market-report h2, 
.home-market .vg-sold-market-report h2 {
    background: none!important;
    border: none;
    padding: 0;
    color: var(--maincolor);
    text-align: center!important;
    font-size: min(10vw,28px);
    margin-bottom: 50px!important;
}
.home-market .vg-active-market-report div div span:not(.miranda-lb span), 
.home-market .vg-under-contract-market-report div div span:not(.miranda-lb span), 
.home-market .vg-sold-market-report div div span:not(.miranda-lb span) {
    font-size: min(7vw,40px);
}
.home-market .vg-active-market-report p, 
.home-market .vg-under-contract-market-report p, 
.home-market .vg-sold-market-report p {
    padding: 0;
    background: none;
}
.home-market #vg-market-report .vg-market-container {
    padding: 0;
    grid-gap: 42px;
    flex-wrap: wrap;
}
.first-item a, .vg-sidebar .first-item h3 a {
    color:white!important;
}
.vg-sidebar .first-item h3 a {
    font-weight: 700;
}
.vg-sidebar .first-item h3 a:after {
    color:white;
    font-weight:600;
}
.sidebar .pp-h h3 {
    color:white;
}
g[id="text"] g {
    pointer-events:none;
}
#total-payment-amount {
    color:var(--accentcolor)!important;
}
.dot.active {
        background: #ffffff;
    }
rect:hover {
    fill: #040a32 !important;
}
.vg-area-page .vg-element {
        display: flex;
        flex-direction: column;
        grid-gap: 50px;
    }
.area-description {
    max-height: 300px;
    overflow: hidden;
    transition: max-height 0.5s ease;
    position: relative;
    background: #eeeeee00;
    padding: 50px 20px;
    border-left: 1px solid #e0e0e0;
    border-right: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
  }
.area-description.expanded {
    max-height: 1000px; 
  }
.read-more-toggle {
    display: inline-block;
    margin-top: -1px!important;
    cursor: pointer;
    background: white!important;
    border: solid 1px #e0e0e0;
    opacity: 1!important;
    position: relative;
    font-size: 17px;
    border-top: none!important;
    position: absolute;
    color: var(--accentcolor)!important;
    z-index: 2;
    left: 0;
  }
.area-description.expanded {
  max-height: 2000px; 
}
.area-description.fade-gradient::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #ffffff9e, #fff);
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.area-description.expanded::after {
  opacity: 0;
}
.featured-properties.extra-properties {
        margin-top: 15px;
    }
.vg-valuation {
        width:100%;
        min-width: 100%;
    }
.value-container {
        width: 100%;
        position: relative;
        z-index: 2;
        padding: 30px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        flex: 1;
        height: auto;
        max-width: 800px;
        background: white;
        border: solid 1px white;
    }
.value-container img {
        border-radius: 5px;
    }
.value-container h3 {
        font-size: min(5vw,25px)!important;
        margin: 0;
        font-weight: 300;
        margin-bottom: 10px;
    }
#area-top .read-toggle {
        font-weight: 800;
        color: #2b2b2b;
        text-decoration: none;
        text-transform: uppercase;
        letter-spacing: 1px;
        font-size: 10px;
        background: #eaeaea;
        padding: 4px 10px;
        border-radius: 20px;
        line-height: 1;
    }
.long-arrow:after {
  font-family: 'Font Awesome 6 Sharp';
  content: '\f0e7'; 
  font-weight: 800; 
  margin-left: 10px;
  color: #ffffff;
}
.begin.long-arrow:after {
        color:white!important;
    }
.toggle-extra-btn {
    border-radius: 5px;
    font-size: min(5vw,17px);
    background: #b7b7b726 !important;
    color: #040a32 !important;
    padding: 10px 15px;
}
.toggle-extra-btn:hover {
   transform:scale(.97);
    }
.toggle-extra-btn::after {
  font-family: "Font Awesome 6 Sharp";
  font-weight: 200;
  margin-left: 0.4em;
  transition: transform 0.3s ease;
}
.slide-from-left,
.slide-from-left-last,
.slide-from-top,
.slide-from-top-last,
.slide-from-bottom,
.slide-from-bottom-last {
  opacity: 0;
  transition: opacity 0.6s ease;
}
.slide-from-left.visible,
.slide-from-top.visible,
.slide-from-bottom.visible {
  opacity: 1;
}
.slide-from-left-last.visible,
.slide-from-top-last.visible,
.slide-from-bottom-last.visible {
  opacity: 1;
  transition-delay: 0ms;
}
#diamond-search .advanced-btn {
        position: relative;
        z-index: 0;
        width: fit-content;
    }
.vg-neighborhoods {
    display: flex;
    width: 100%;
    grid-gap: 30px;
    flex-wrap: wrap;
    margin-top: 30px;
    border-top: solid 1px;
    padding-top: 30px;
}
.area-list {
    width: 100%;
    flex: 1 1 10%;
}
.area-list h3 {
        font-size: min(6vw,22px)!important;
        white-space: nowrap;
    }
.area-list h3 a {
        color:#040a32;
    }
.area-list h3 a:hover {
        text-decoration:underline;
    }
.area-list ul {
        margin: 0;
        display: flex;
        grid-row-gap: 15px;
        grid-column-gap: 40px;
        flex-direction: column;
    }
.area-list li a {
        color: #565656;
        font-weight: 500;
        font-size: min(3.5vw,16px);
        line-height: 1;
        text-decoration: underline;
        text-decoration-color: #040a321a;
    }
.area-list li {
        line-height: 1.2!important;
    }
.area-list li a:hover {
        text-decoration:underline
    }
.area-list li::marker {
        font-size:0;
    }
.market-widgets .row:before {
    display:none!important;
}
.market-widgets .row .columns {
    padding: 0;
    float: none;
    width: 100%;
}
#market-report .row {
    max-width:none;
}
.market-widgets {
        max-width: 500px;
    }
.market-widgets .row .columns .search-container {
    width:100%;
    padding:20px!important;
    border: solid 1px #e0e0e0;
    border-radius: 5px;
}
#about-text {
        background: #040a32;
        min-height: auto;
        padding: 7vh 0!important;
    }
#about-text p, #about-text h3, #about-text h2, #about-text strong {
        color: #ffffff;
    }
#about-text .inner-content {
  position: relative;   
  z-index: 1;
}
#about-text ul li {
    font-size: min(5vw,15px);
    color: #ffffff;
}
.text-wrapper.preview-mode .text-full {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.text-wrapper.preview-mode .text-preview {
  display: block;
}
.text-wrapper:not(.preview-mode) .text-preview {
  display: none;
}
.text-wrapper:not(.preview-mode) .text-full {
  max-height: 9999px;
  overflow: visible;
}
@media(max-width:1000px) {
.about-area {
  visibility: hidden;
opacity: 0;
  transition: opacity 2s ease;
}
.about-area.visible {
  visibility: visible;
  opacity: 1;
}
}
#area-top .about-area p strong {
    color:white;
    font-weight:700!important;
}
.fa-magnifying-glass:before, .fa-search:before {
        color:white!important;
        background:transparent!important;
    }
g[inkscape\:label="text_big"] text tspan {
  font-family: var(--fontheader) !important;
}
/* ==================== SIDEMENU 4-COLUMN GRID ==================== */
.sidemenu-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
    padding: 0;
    min-height: 50vh;
    border-top: solid 1px white;
    padding-bottom: 25vh;
}

/* Quick Links Card (first column, white background) */
.sidemenu-quicklinks-card {
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-right: none;
    position: relative;
}

.sidemenu-quicklinks-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    z-index: 2;
    width: 1px;
    height: 125vh;
    background: white;
}

.sidemenu-quicklinks-card h2 {
    color: #ffffff;
    font-size: min(8vw, 33px);
    font-weight: 400;
    margin: 0 0 20px;
    font-style: italic;
    font-family: var(--fontheader)!important;
}

.sidemenu-quicklinks-card ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sidemenu-quicklinks-card li a {
    color: #ffffff;
    font-size: 16px;
    font-weight: 400;
    text-decoration: none;
    transition: opacity 0.2s ease;
    display: flex;
    gap: 10px;
}

 #contact-modal-trigger:after {
 font-family: "Font Awesome 6 Sharp";
    content: "\f08e";
}

.sidemenu-quicklinks-card li a:hover {
    opacity: 0.6;
}

/* Borough Cards */
.sidemenu-borough-card {
    position: relative;
    overflow: hidden;
    min-height: 35vh;
}

.sidemenu-borough-card .borough-image-wrapper {
    position: absolute;
    inset: 0;
}

.sidemenu-borough-card .borough-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.sidemenu-borough-card .borough-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgb(4 10 50) 0%, rgb(4 10 50 / 21%) 50%, rgb(4 10 50 / 16%) 100%);
}

.sidemenu-borough-card .borough-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2;
    padding: 20px;
    justify-content: space-between;
}

.sidemenu-borough-card .borough-content h2 {
    color: white;
    font-size: min(8vw, 33px)!important;
    font-weight: 500;
    margin: 0 0 20px;
    font-family: var(--fontheader)!important;
    font-style: italic;
}

.sidemenu-borough-card .borough-links {
    display: flex;
    flex-direction: column;
    gap: 0px;
}

.sidemenu-borough-card .borough-link {
    color: white;
    font-size: 17px;
    font-weight: 500;
    text-decoration: none;
    transition: opacity 0.2s ease;
    padding: 0;
    border: none;
    background: none;
}

.sidemenu-borough-card .borough-link:hover {
    opacity: 0.6;
}

.sidemenu-borough-card .borough-link.primary {
    background: none;
    color: white;
    border: none;
}

.sidemenu-borough-card .borough-link.primary:hover {
    opacity: 0.6;
}

@media (max-width: 900px) {
    .sidemenu-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .sidemenu-grid {
        grid-template-columns: 1fr;
        border: none;
    }
    .sidemenu-quicklinks-card::before  {
        display:none;
    }
    .sidemenu-quicklinks-card {
        padding: 15px;
        border: none;
    }

    .sidemenu-borough-card {
        aspect-ratio: 4/5;
    }
}

/* ==================== CONTACT MODAL ==================== */
.contact-modal {
    position: fixed;
    inset: 0;
    z-index: 9999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.contact-modal.active {
    opacity: 1;
    visibility: visible;
}

.contact-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.contact-modal-content {
    position: relative;
    background: #ffffff;
    padding: 50px 15px 30px;
    max-width: 400px;
    width: 90%;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.contact-modal.active .contact-modal-content {
    transform: translateY(0);
}

.contact-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none!important;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 28px;
    cursor: pointer;
    transition: color 0.2s ease;
    line-height: 1;
    padding: 0;
}

.contact-modal-close:hover {
    color: white;
}

.contact-modal-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 30px;
}

.contact-option {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgb(0 0 0)!important;
    color: #000000!important;
    text-decoration: none;
    font-size: 15px;
    transition: transform 0.2s ease, opacity 0.2s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-option:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
}

.contact-option i {
    font-size: 18px;
    width: 24px;
    text-align: center;
    opacity: 0.8;
}

.contact-modal-social h3 {
    color: #000000;
    font-size: 14px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 0 15px;
    opacity: 0.7;
}

.contact-modal-social .social-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 0;
}

.contact-modal-social .social-links a {
    color: #000000;
    font-size: 18px;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.contact-modal-social .social-links a:hover {
    opacity: 1;
}

.contact-modal-social .emblem {
    display: none;
}

.contact-modal-social .social-wrapper {
    display: flex;
    gap: 15px;
}

.emblem {
    max-width: 60px;
    min-width: 60px;
    width: 100%;
    height: 100%;
    background: #f6f1d2;
    z-index: 2;
    opacity: 0;
    padding-right: 20px;
}
.inner-side {
    max-width: 1000px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    width: 100%;
    flex-wrap: wrap;
    grid-gap: 20px;
}
.building-label {
        position: absolute;
        top: 20px;
        left: 20px;
        background: #ffffff;
        padding: 3px 12px;
        border-radius: 5px;
        color: black;
        font-weight: 500;
    }
.market-loading-spinner.hidden {
  display: none !important;
}
.begin {
  position: relative;
  color: #ffffff !important;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-top: 30px;
  border: solid 1px;
  width: fit-content;
  text-align: left;
  font-size: min(4vw, 15px);
  line-height: 1.4;
  gap: 10px;
  z-index: 2;
  background: #040a32 !important;
  padding: 10px 17px;
  transition: transform 300ms ease, opacity 300ms ease, background-color 300ms ease, color 300ms ease, border-color 300ms ease, box-shadow 300ms ease;
  transition-delay: 0ms!important;
}
.begin:hover {
    opacity: .6;
    }
.parent-link {
    color:white;
    text-decoration:underline;
    text-decoration-thickness:2px;
    font-weight: 600;
}
.parent-link:hover {
    color:white;
    opacity:.7
}
#neighborhood-list .parent-link {
    color:black;
}
#team-grid {
        background: #ffffff;
    }
#team-grid h2 {
        color: #040a32;
    }
#team-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  position: relative;
  z-index: 1;
  margin-top: 30px;
}
.vg-agent {
  position: relative;
  overflow: hidden;
  aspect-ratio: 2/3;
  filter: grayscale(1);
  transform: translateX(-40px);
  opacity: 0;
  transition: transform 0.6s ease, opacity 1s ease, filter 0.5s ease;
}
.vg-agent.visible {
  transform: translateX(0);
  opacity: 1;
}
.vg-agent:hover {
        filter:none;
    }
.vg-agent a {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
  text-decoration: none;
}
.vg-agent img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.vg-agent h3 {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(0deg, #040a32, #040a32bf, #040a3299, #040a3229, transparent);
  color: #fff;
  font-size: min(4.5vw,35px)!important;
  text-align: center;
  padding: 10px;
  margin: 0;
  line-height: 1.1;
  padding-top: 70px;
}
.vg-agent:hover img {
  transform: scale(1.02);
}
.vg-neighborhoods.accordion-mode .area-list h3 {
  position: relative;
  cursor: pointer;
  font-size: 18px;
  padding: 15px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #e0e0e0;
}
.vg-neighborhoods.accordion-mode .area-list h3 i {
  transition: transform 0.3s ease;
  margin-left: 10px;
}
.vg-neighborhoods.accordion-mode .area-list.open h3 i.rotate {
  transform: rotate(180deg);
}
.vg-neighborhoods.accordion-mode .area-list ul {
  transition: max-height 0.4s ease;
  padding-left: 0;
  margin: 0;
  overflow: hidden;
  max-height: 0;
  grid-gap: 0px;
}
.vg-neighborhoods.accordion-mode .area-list ul li {
  list-style: none;
  padding: 8px 0;
}
.long-dash {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}
.long-dash::before {
  content: "";
  width: 100%;
  height: 0;
  border-top: 1px solid #000;
  display: block;
}
.vg-photo-gallery {
  column-count: 4;
  column-gap: 16px;     
}
.vg-photo-gallery img {
  width: 100%;
  display: block;
  margin-bottom: 16px;   
  break-inside: avoid;
  border-radius: 6px;
  cursor: pointer;
  transition: transform 300ms ease, opacity 300ms ease, background-color 300ms ease, color 300ms ease, border-color 300ms ease, box-shadow 300ms ease;
  border: solid 1px #e0e0e0;
}
.vg-photo-gallery img:hover {
        transform: scale(.97);
        z-index: 3;
        position: relative;
    }
.photogallerynum {position: absolute;bottom: 10px;right: 10px;height: fit-content;}
.photogallerynum a {
    padding: 10px;
    background: #ffffff;
    position: relative;
    height: fit-content;
    display: block;
    color: #040a32;
    font-weight: 600;
    transition: transform 500ms ease, opacity 500ms ease, background-color 500ms ease, color 500ms ease, border-color 500ms ease, box-shadow 500ms ease;
}
.photogallerynum a:hover {
        opacity: .7;
    }
.vg-photo-toggle {
        background: #eeeeee;
        padding: 20px;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #040a32;
        border-radius: 8px;
        font-size: min(7vw,20px)!important;
     }
#no-market-data {
        padding: 30px;
        margin-top: 30px;
        max-width: 750px;
        border: solid 1px;
    }
#no-market-data h3 {
        font-family: var(--font)!important;
        font-weight: 500;
        font-size: min(5vw,22px)!important;
    }

.diamond-initial-btns {
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 15px;
    width: 100%;
    justify-content: flex-start;
}
#kakaako-trigger {
  cursor: pointer;
}
#kakaako-trigger:hover {
  transform: translateY(-5px);
  transition: transform 0.3s ease;
}
#start-search-btn.start-search-btn {
  background: #ffffff !important;
  color: #000 !important;
  border: solid 1px white !important;
  font-weight: 600;
  text-transform: uppercase;
  flex: 1 1 100%;
  letter-spacing: 2px !important;
  width: 100%;
  padding: 15px 15px !important;
  font-size: min(2.5vw,15px)!important;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease !important;
  white-space: nowrap;
}
#start-search-btn.start-search-btn:hover {
  background: var(--accentcolor) !important;
  color: #fff !important;
  border-color: var(--accentcolor) !important;
}
/* ========================================================
   EDIFYNY NYC AREA PAGES - Borough Directory & Overlays
   ======================================================== */

/* Borough Directory Grid */
.borough-directory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.directory-item {
    background: #ffffff;
    border: 1px solid #e5e5e5;
    padding: 20px;
    border-radius: 4px;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.directory-item:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.directory-item h3 {
    margin: 0 0 10px 0;
    font-size: min(4vw,24px)!important;
    font-weight: 500;
}

.directory-item h3 a {
    color: var(--maincolor);
    text-decoration: none;
}

.directory-item h3 a:hover {
    text-decoration: underline;
}

.directory-links {
    display: flex;
    flex-direction: column;
    gap: 5px;
    height: 100%;
}

.directory-links a {
    color: #666;
    font-size: min(3.5vw,17px);
    text-decoration: none;
    line-height: 1;
    font-weight: 500;
}

.directory-links a:hover {
    color: var(--maincolor);
    text-decoration: underline;
}

/* Hero Image Wrapper with Located In Overlay */
.hero-image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 50vh;
}

.hero-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    max-height: none;
    max-width: none;
    position: absolute;
}

.locatedin {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(360deg, #040a32, #040a3200, transparent);
    padding: 20px;
    color: white;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.locatedin h3 {
    margin: 0 0 20px 0;
    font-size: min(7vw,30px)!important;
    font-weight: 400;
    color: white;
    line-height: 1;
    max-width: 400px;
}

.locatedin h3 a {
    color: #ffffff;
    text-decoration: underline;
}

.locatedin p {
    margin: 0 0 15px 0;
    font-size: min(4vw,16px);
    opacity: 0.9;
    color: white;
    display: none;
}

.locatedin button {
    background: white;
    color: #040a32;
    border: solid 1px #ffffff;
    padding: 10px 20px;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
    transition: background 0.3s ease;
}

.locatedin button:hover {opacity: .7!important;}

/* Area Subpages Links */
.area-subpages {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e5e5e5;
}

.area-subpages .subpage-link button {
    background: var(--maincolor);
    color: white;
    border: none;
    padding: 12px 20px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.area-subpages .subpage-link button:hover {
    background: #1a2255;
}

/* Parent Hero Breadcrumb */
.parent-hero {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    font-size: 14px;
}

    

.parent-hero a {
    color: #040a32;
    text-decoration: underline;
    opacity: 0.8;
    font-weight: 600;
}

.parent-hero a:hover {
    opacity: 1;
    text-decoration: underline;
}

.parent-hero .long-dash {
    display: inline-block;
    width: 30px;
    height: 1px;
    background: rgba(255,255,255,0.5);
    vertical-align: middle;
}

/* Breadcrumb Navigation with Integrated Property Tabs */
.breadcrumb-nav {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.breadcrumb-link {
    font-size: 13px;
    font-weight: 600;
    color: #040a32!important;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.breadcrumb-link:hover {
    opacity: 0.7;
    text-decoration: underline;
}

.breadcrumb-current {
    font-size: 13px;
    font-weight: 600;
    color: #040a32;
}

.breadcrumb-separator {
    font-size: 14px;
    color: rgba(4, 10, 50, 0.5);
    font-weight: 400;
}

.property-type-tabs {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 24px;
    padding: 4px;
    border: 1px solid rgba(4, 10, 50, 0.15);
}

.property-type-tabs a {
    padding: 7px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: #040a32;
    background: transparent;
    transition: transform 0.2s ease, opacity 0.2s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.property-type-tabs a:hover {
    background: rgb(4 10 50 / 7%);
}

.property-type-tabs a.active {
    background: #040a32;
    color: white;
}

.property-type-tabs a.active:hover {
    background: #1a2255;
}

/* Mobile adjustments for breadcrumb nav */
@media (max-width: 768px) {
    .breadcrumb-nav {
        gap: 8px;
        margin-bottom: 15px;
    }

    .breadcrumb-link,
    .breadcrumb-current {
        font-size: 12px;
    }

    .property-type-tabs {
        gap: 2px;
        padding: 3px;
    }

    .property-type-tabs a {
        padding: 5px 10px;
        font-size: 10px;
    }
}

/* Borough Page Specific */
.borough-page #neighborhood-directory {
    background: #f9f9f9;
    padding: 7vh 0;
}

/* Neighborhood Page Specific */
.neighborhood-page .hlc-image,
.subpage-page .hlc-image {
    position: relative;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .borough-directory-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 5px;
    }
    
    .locatedin {
        position: relative;
        bottom: auto;
        left: auto;
        right: auto;
        border-radius: 0;
        min-height: 50vh;
    }
    
    .area-subpages {
        flex-direction: column;
    }
    
    .area-subpages .subpage-link {
        width: 100%;
    }

    .area-subpages .subpage-link button {
        width: 100%;
    }
}

/* ==================== HOME PAGE STYLES ==================== */

/* Video Hero Section */
.video-hero-section {
    position: relative;
    height: 100vh;
    min-height: 70vh;
    display: flex;
    align-items: end;
    justify-content: center;
    padding: 0 !important;
    background: #040a32;
    z-index: 2;
}

.video-hero-background {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
    background: #040a32;
    padding-bottom: 5px;
}

.video-hero-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    overflow: hidden;
}

.video-hero-overlay {
    position: absolute;
    inset: 0;
    background: #00000061;
}

.video-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    padding: 20px;
    max-width: 900px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding-bottom: 15vh;
}

.video-hero-content h1 {
    font-size: clamp(17px, 8vw, 82.8px)!important;
    font-weight: 300;
    line-height: 1;
    margin: 0 0 20px 0;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    color: white;
    margin-bottom: 17px!important;
    font-family: var(--fontheader)!important;
    text-align: left;
    font-style: italic;
}

.video-hero-content p {
    font-size: clamp(11px, 4vw, 27.5px);
    font-weight: 500;
    margin: 0 0 20px 0;
    /* opacity: 0.9; */
    color: #ffffff;
    font-family: var(--font)!important;
    line-height: 1;
    letter-spacing: 1.9px;
    text-align: left;
    text-transform: uppercase;
}

.video-hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: flex-end;
    flex-wrap: nowrap;
    max-width: 662px;
    margin: 0;
    margin-bottom: 0;
    width: 100%;
    margin-top: 20px;
}

.video-hero-btn {
    padding: 16px 40px;
    font-size: 16px;
    font-weight: 600;
    border: solid 1px #ffffff96 !important;
    line-height: 1;
    text-align: center;
    text-decoration: none;
    border-radius: 0;
    cursor: pointer;
    transition: transform 0.3s ease, opacity 0.3s ease, background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid white;
    width: 100%;
    height: fit-content;
}

.video-hero-btn.primary {
    background: white;
    color: #040a32;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .video-hero-btn.primary::before {
  content: "\f002";
  font-family: "Font Awesome 6 Sharp";
  font-weight: 600;
  margin-right: 8px;
}

.video-hero-btn.primary:hover {
    opacity: .6!important;
}

.video-hero-btn.secondary {
    background: transparent;
    color: white;
}

.video-hero-btn.secondary:hover {
    /* background: white; */
    /* color: #040a32; */
    opacity: .6;
}

@media (max-width: 768px) {
    .video-hero-section {
        height: 100vh;
        min-height: 100vh;
    }

    .video-hero-buttons {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .video-hero-content {
        padding-bottom: 20px;
        text-align: center;
        align-items: baseline;
        text-align: left;
    }
.video-hero-content h1 {
    text-align: left;
}
    .video-hero-btn {
        width: 100%;
    }
}

/* Neighborhoods Section (formerly Home Hero) */
.vg-home-page .hlc-hero-home {
    padding: 0px 0 0!important;
    /* max-height: 30vh; */
}
.vg-home-page .hlc-hero-home .inner-content {
    margin: 0 auto;
    padding: 0!important;
}
.vg-home-page .hlc-hero-home h2:not(.borough-card h2) {
    text-align: left;
    font-size: clamp(42px, 5vw, 70px)!important;
    font-weight: 300;
    font-style: italic;
    color: white;
    margin-bottom: 40px;
    /* font-family: var(--font)!important; */
}

/* Home Hero Section */
/* .vg-home-page .hlc-hero-home {
    padding: 15vh 0 0!important;
} */

.vg-home-page .hlc-hero-home h1 {
    text-align: left;
    font-size: clamp(42px, 5vw, 70px);
    font-weight: 300;
    line-height: 1;
    margin-bottom: 30px;
    font-style: italic;
    color: white;
    display: flex;
    flex-wrap: wrap;
}


/* Home Search Container - prevents layout shift */
.home-search-container {
    position: relative;
    display: flex;
    align-items: center;
    max-width: 600px;
    margin-bottom: 50px;
    min-height: 56px; /* Reserve space to prevent shift */
    background: transparent;
    border-radius: 0;
    border: 1px solid #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.home-search-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    font-size: 16px;
    z-index: 2;
    pointer-events: none;
}

#home-search-input {
    flex: 1;
    min-height: 56px;
}

#home-search-input form {
    margin: 0 !important;
    padding: 0 !important;
}

#home-search-input .search-section {
    margin: 0 !important;
    padding: 0 !important;
}

#home-search-input .autocomplete-field {
    padding: 0 !important;
    margin: 0 !important;
}

#home-search-input input.tt-input,
#home-search-input input.tt-hint {
    padding: 16px 16px 16px 16px !important;
    font-size: 16px !important;
    border: none !important;
    background: transparent !important;
    width: 100% !important;
    height: 100%!important;
    box-sizing: border-box !important;
    box-shadow: none!important;
}

    .styled-select .autocomplete-field input {
        background:transparent!important;
        height: 100%!important;
    }

    #home-search-input input.tt-input, #home-search-input input::placeholder {
        color:white!important
    }

#home-search-input input.tt-input:focus {
    outline: none !important;
    box-shadow: none !important;
}

#home-search-input .styled-select {
    border: none !important;
    background: none !important;
}

#home-search-input .mag-icon,
#home-search-input .search-btn,
#home-search-input .loading {
    /* display: none !important; */
}

/* Transition for when form is loaded */
.home-search-container.ready {
    border-color: #ffffff;
}

/* Borough Carousel Wrapper */
.borough-carousel-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100vw;
}

.borough-carousel-track {
  overflow: hidden;
  width: 100vw;
}

.borough-carousel-wrapper .borough-grid {
  display: flex;
  gap: 5px;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Above 1500px - show all 5 cards, no carousel */
.borough-carousel-wrapper .borough-card {
  flex: 0 0 calc((100vw - 20px) / 5);
  min-width: calc((100vw - 20px) / 5);
  max-height: fit-content;
  min-height: 50vh;
  max-height: 50vh;
}

/* Borough Carousel Arrows - Below */
.borough-carousel-arrows {
  display: none;
  justify-content: center;
  align-items: center;
  gap: 60px;
  padding: 40px 0;
}

/* 1025px - 1500px: show 3 cards */
@media (max-width: 1500px) {
  .borough-carousel-wrapper .borough-card {
    flex: 0 0 calc((100vw - 10px) / 3);
    min-width: calc((100vw - 10px) / 3);
  }

  .borough-carousel-arrows {
    display: flex;
  }
}

.borough-arrow {
  background: transparent!important;
  border: none;
  cursor: pointer;
  padding: 15px 25px;
  color: rgba(255, 255, 255, 0.6);
  transition: transform 0.3s ease, opacity 0.3s ease, background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  font-size: 34px;
}

.borough-arrow::before {
  font-family: 'Font Awesome 6 Sharp';
  font-weight: 100;
}

.borough-arrow-prev::before {
  content: "\f053";
}

.borough-arrow-next::before {
  content: "\f054";
}

.borough-arrow:hover {
  color: white;
  background: none!important;
}

.borough-card {
    position: relative;
    border-radius: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    aspect-ratio: 3/4;
    width: 100%;
}

.borough-image-wrapper {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.borough-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.borough-overlay {
    position: absolute;
    inset: 0;
    background: #00000066;
}

.borough-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    padding: 20px;
}

.borough-content h2 {
    color: white;
    font-size: clamp(22px, 11vw, 40px)!important;
    font-weight: 500;
    letter-spacing: 0px;
    margin: 0 0 20px 0;
    font-family: var(--fontheader)!important;
    font-style: italic;
}

.borough-links {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.borough-link {
    display: inline-block;
    color: white;
    font-size: min(6vw,22px);
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.2s ease, opacity 0.2s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    text-align: left;
    width: fit-content;
}

.borough-link:hover {
    /* background: rgba(255, 255, 255, 0.25); */
    border-color: rgba(255, 255, 255, 0.5);
    color: white;
    transform: translateY(-2px);
}

.borough-link.primary {
    /* background: white; */
    /* padding: 10px; */
    /* color: black; */
}

.borough-link.primary:hover {
    /* background: #f0f0f0; */
    border-color: #f0f0f0;
}

/* Mobile Responsive - Borough Grid */
@media (max-width: 1024px) {
    .borough-carousel-wrapper .borough-card {
        flex: 0 0 calc((100vw - 5px) / 2);
        min-width: calc((100vw - 5px) / 2);
    }

    .borough-carousel-arrows {
        gap: 50px;
        padding: 30px 0;
    }
}

@media (max-width: 768px) {
    .vg-home-page .hlc-hero-home {
        padding: 0px 0 0!important;
    }

    .vg-home-page .hlc-hero-home h1 {
        margin-bottom: 30px;
    }

    .borough-carousel-wrapper .borough-card {
        flex: 0 0 100vw;
        min-width: 100vw;
        min-height: 50vh;
    }

    .borough-carousel-wrapper .borough-grid {
        gap: 0;
    }

    .borough-carousel-arrows {
        gap: 40px;
        padding: 25px 0;
    }

    .borough-content {
        padding: 20px;
    }

    .borough-links {
        gap: 8px;
    }

    .borough-link {
        padding: 0;
        font-size: 16px;
        flex: 1 1 calc(50% - 4px);
    }
}

/* ==================== NEW LISTINGS GRID ==================== */
.new-listings-section {
    background: #040a32;
    padding: 60px 0 80px;
}

.new-listings-section .inner-content {
    text-align: center;
}

.new-listings-section h2 {
    text-align: left;
    font-size: clamp(42px, 5vw, 60px) !important;
    font-weight: 300;
    line-height: 1;
    margin-bottom: 50px;
    font-style: italic;
    max-width: 1000;
    color: white;
}

.new-listings-container {
    position: relative;
    min-height: 50vh;
}

/* Map Preview above listings */
.listings-map-preview {
    position: relative;
    width: 100vw;
    left: 50%;
    margin-left: -50vw;
    height: 400px;
    margin-bottom: 30px;
    overflow: hidden;
    filter: grayscale(1);
}

.listings-map-preview object,
.listings-map-preview iframe {
    width: 100%;
    height: 100%;
    border: none;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.listings-map-preview .map-loading-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 5;
    transition: opacity 0.3s ease;
}

.listings-map-preview .map-loading-spinner .spinner-icon {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.listings-map-preview .map-overlay-link {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: end;
    justify-content: center;
    text-decoration: none;
    z-index: 10;
    padding: 0;
}

.listings-map-preview .map-overlay-bg {
    position: absolute;
    inset: 0;
    transition: background 0.3s ease;
}

.listings-map-preview:hover .map-overlay-bg {
    background: rgb(4 10 50 / 26%);
}

.listings-map-preview .map-overlay-btn {
    position: relative;
    z-index: 5;
    background: #ffffff;
    color: #040a32;
    border: none;
    padding: 8px 20px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    opacity: 0;
    cursor: pointer;
    transition: transform 0.4s ease, opacity 0.4s ease, background-color 0.4s ease, color 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
    text-transform: uppercase;
    border-top-left-radius: 10px;
    box-shadow: 0px -2px 20px #00000063;
    border-top-right-radius: 10px;
    transform: translateY(100%);
}

.listings-map-preview.map-loaded .map-overlay-btn {
    opacity: 1;
    transform: translateY(0);
}

.listings-map-preview:hover .map-overlay-btn {
    background: #ffffff;
    color: #040a32;
}

/* Grid layout for listings */
.new-listings-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.vg-listings-section-header {
    grid-column: 1 / -1;
    padding: 8px 0 4px;
}
.vg-listings-section-header h3 {
    font-family: var(--font)!important;
    font-size: 18px;
    font-weight: 300;
    color: white;
    margin: 0;
    padding-bottom: 8px;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
}

.new-listing-card {
    position: relative;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    border-radius: 0;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.new-listing-card.card-revealed {
    opacity: 1;
    transform: translateY(0);
}

.new-listing-card .card-image-link {
    display: block;
    position: absolute;
    inset: 0;
}

.new-listing-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.new-listing-card img.loaded {
    opacity: 1;
}

.new-listing-card:hover img {
    transform: scale(1.05);
}

.new-listing-card .card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgb(0 0 0 / 94%) 0%, rgb(0 0 0 / 26%) 50%, transparent 100%);
    pointer-events: none;
}

.new-listing-card .card-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    text-align: left;
    z-index: 3;
    color: white;
    pointer-events: none;
}

.new-listing-card .card-price {
    font-size: clamp(20px, 2vw, 28px);
    font-weight: 600;
    margin-bottom: 4px;
    font-family: var(--font)!important;
    letter-spacing: -1px;
    line-height: 1;
}

.new-listing-card .card-address {
    font-size: clamp(12px, 1vw, 14px);
    font-weight: 400;
    margin-bottom: 0;
    opacity: 0.9;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.new-listing-card .card-details {
    display: flex;
    gap: 12px;
    font-size: 11px;
    margin: 0!important;
    padding: 0;
    list-style: none;
}

.new-listing-card .card-details li {
    display: flex;
    align-items: center;
    gap: 3px;
    font-size: 13px!important;
}

.new-listing-card .card-details .number {
    font-weight: 300;
    color: white;
}

.new-listing-card .card-details .detail-title {
    opacity: 0.7;
    color: white;
}

/* Card labels container */
.new-listing-card .card-labels {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    gap: 6px;
    z-index: 4;
}

/* Status label (Active/Sold) */
.new-listing-card .status-label {
    padding: 4px 10px;
    font-size: 10px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 0;
    background: rgb(4 10 50);
    color: white;
}

.new-listing-card.sold .status-label {
    background: rgb(219 0 0 / 90%);
}

/* Price change labels */
.new-listing-card .price-change-label {
    padding: 4px 10px 4px 24px;
    font-size: 10px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 0;
    position: relative;
}

.new-listing-card .price-change-label::before {
    font-family: "Font Awesome 6 Sharp";
    font-weight: 400;
    font-size: 10px;
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
}

.new-listing-card.price-down .price-change-label {
    background: rgb(255 255 255);
    color: #b60000;
}

.new-listing-card.price-down .price-change-label::before {
    content: "\f063";
}

.new-listing-card.price-up .price-change-label {
    background: rgb(255 255 255 / 90%);
    color: #b70303;
}

.new-listing-card.price-up .price-change-label::before {
    content: "\f062";
}

/* Placeholder Cards */
.new-listing-card.placeholder-card {
    background: transparent;
    border: solid 1px rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0;
}

.new-listing-card.placeholder-card .placeholder-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: white;
    font-size: 18px;
    font-weight: 500;
    letter-spacing: 1px;
    transition: transform 0.3s ease, opacity 0.3s ease, background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    padding: 30px;
    text-align: center;
}

.new-listing-card.placeholder-card .placeholder-link:hover {
    background: rgba(255, 255, 255, 0.1);
}

.new-listing-card.placeholder-card .placeholder-link span {
    position: relative;
    z-index: 1;
    font-family: var(--fontheader)!important;
    font-size: min(4vw, 24px);
    font-weight: 300;
}

/* Hidden card state for expand/collapse */
.new-listing-card.hidden-card {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
}

/* View More Button */
.view-more-container {
    margin-top: 40px;
    text-align: center;
}

.view-more-btn {
    background: transparent!important;
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: white;
    padding: 14px 40px;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1px;
    cursor: pointer;
    transition: transform 0.3s ease, opacity 0.3s ease, background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    border-radius: 0;
}

.view-more-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.6);
}

.view-all-link {
    text-decoration: none;
}

/* Spinner */
.new-listings-spinner {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #040a32;
    z-index: 5;
    min-height: 300px;
}

.new-listings-spinner .spinner-icon {
    width: 40px;
    height: 40px;
    border: 2px solid rgba(255,255,255,0.2);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.new-listings-spinner.hidden {
    display: none;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Hide arrows - we're using grid now */
.new-listings-arrows {
    display: none !important;
}

/* Tablet - 2 columns */
@media (max-width: 1024px) {
    .new-listings-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .new-listing-card .card-info {
        padding: 15px;
    }

    .listings-map-preview {
        height: 350px;
        margin-bottom: 25px;
    }
}

/* Mobile - 2 columns smaller */
@media (max-width: 768px) {
    .new-listings-section {
        padding: 40px 0 50px;
    }

    .new-listings-section h2 {
        margin-bottom: 30px;
    }

    .listings-map-preview {
        height: 280px;
        margin-bottom: 20px;
    }

    .listings-map-preview .map-overlay-btn {
        padding: 12px 24px;
        /* font-size: 12px; */
        border-radius: 0;
        box-shadow: none;
        background: #ffffffb0;
        /* color: white; */
    }

    .new-listings-grid {
        grid-template-columns: repeat(1, 1fr);
        gap: 8px;
    }

    .new-listing-card {
        border-radius: 0;
        aspect-ratio: 4/2;
    }

    .new-listing-card .card-info {
        padding: 12px;
    }

    .new-listing-card .card-price {
        font-size: 24px;
    }

    .new-listing-card .card-address {
        font-size: 11px;
    }

    .new-listing-card .card-details {
        display: none;
    }

    .new-listing-card .card-labels {
        top: 8px;
        left: 8px;
        gap: 4px;
    }

    .new-listing-card .status-label {
        padding: 3px 8px;
        font-size: 9px;
    }

    .new-listing-card .price-change-label {
        padding: 3px 8px 3px 20px;
        font-size: 9px;
    }

    .new-listing-card .price-change-label::before {
        left: 6px;
        font-size: 9px;
    }

    .new-listing-card.placeholder-card .placeholder-link {
        font-size: 14px;
        padding: 20px;
    }

    .new-listing-card.placeholder-card .placeholder-link span {
        font-size: 16px;
    }

    .view-more-container {
        margin-top: 25px;
    }

    .view-more-btn {
        padding: 12px 30px;
        font-size: 13px;
    }
}

/* ==================== MARKET STATS SECTION ==================== */
.market-stats-section {
    background: #040a32;
    padding: 80px 0;
    padding-bottom: 7vh!important;
}

.market-stats-section h2 {
    text-align: left;
    font-size: clamp(42px, 5vw, 70px)!important;
    font-weight: 300;
    line-height: 1;
    color: #ffffff;
    margin-bottom: 50px;
    font-style: italic;
}

.market-stats-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 50px;
  /* width: 100vw; */
  /* margin-left: calc(-50vw + 50%); */
  /* margin-right: calc(-50vw + 50%); */
}

.market-stats-box {
    /* border: 1px solid rgba(255, 255, 255, 0.3); */
    /* padding: 30px; */
}

.market-stats-box h3 {
    color: white;
    font-size: min(6vw,17px)!important;
    font-weight: 400;
    margin: 0 0 25px 0;
    font-family: var(--font)!important;
    padding-bottom: 0;
}

.market-stats-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.market-stats-list li {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    line-height: 1.5;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.market-stats-list li:last-child {
    border-bottom: none;
}

.market-stats-list li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: transform 0.3s ease, opacity 0.3s ease, background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    display: block;
    width: fit-content;
}

.market-stats-list li a:hover {
    color: white;
    opacity: .5;
    transform: scale(.9);
}

.stat-value {
    font-weight: 400;
    color: white;
    font-size: min(5vw,40px);
    display: block;
    font-family: var(--fontheader)!important;
}

/* Mobile Responsive - Market Stats */
@media (max-width: 1024px) {
    .market-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        /* max-width: 500px; */
    }
}

@media (max-width: 768px) {
    .market-stats-section {
        padding: 50px 0;
    }

    .market-stats-section h2 {
        margin-bottom: 30px;
    }

    .market-stats-box {
        padding: 0;
    }

    .market-stats-list li {
        font-size: 13px;
        padding: 8px 0;
    }

    .stat-value {
        font-size: min(6vw,30px);
    }
}

/* ===========================================
   AGENT PAGE STYLES
   =========================================== */

.vg-agent-page #agent-hero {
    background: #040a32 !important;
    padding: 15vh 0 60px!important;
}

.agent-layout {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 50px;
    align-items: start;
    margin: 0 auto;
}

.agent-photo img {
    width: 100%;
    height: auto;
    aspect-ratio: 3/5;
    object-fit: cover;
    border-radius: 0;
    filter: grayscale(1);
}

.agent-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.agent-brokerage {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #ffffff;
    font-weight: 500;
}

.vg-agent-page h1 {
    font-size: min(10vw, 100px);
    font-family: var(--fontheader) !important;
    color: #ffffff;
    margin: 0;
    line-height: 1.1;
    font-style: italic;
    margin-bottom: 30px!important;
}

.agent-title {
    font-size: 16px;
    color: #ffffff;
    font-weight: 500;
    border-bottom: solid 1px #e0e0e0;
    padding-bottom: 20px;
    margin-bottom: 10px;
}

.agent-bio {
    color: #333;
    line-height: 1.7;
}

.agent-bio p {
    margin: 0 0 15px;
    font-size: 15px;
    color: white;
}

.agent-bio p:last-child {
    margin-bottom: 0;
}

.agent-cta-buttons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.agent-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    transition: transform 0.3s ease, opacity 0.3s ease, background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.agent-btn.primary {
    background: #ffffff;
    color: #040a32;
    border: solid 2px #040a32;
}

.agent-btn.primary:hover {
    color: #040a32;
    opacity: .5;
}

.agent-btn.secondary {
    background: transparent;
    color: #ffffff;
    border: solid 1px #ffffff;
}

.agent-btn.secondary:hover {
    background: #040a32;
    color: white;
}

.vg-agent-page .social-links {
    display: flex;
    gap: 15px;
    justify-content: flex-start;
}

.vg-agent-page .social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: white;
    color: #040a32;
    border-radius: 50%;
    font-size: 16px;
    transition: transform 0.3s ease, opacity 0.3s ease, background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.vg-agent-page .social-links a:hover {
    background: #e0e0e0;
    transform: translateY(-3px);
}

/* Agent Page - Active Listings Section */
.vg-agent-page .new-listings-section h2 {
    color: #ffffff;
}

/* Agent Page Responsive */
@media (max-width: 900px) {
    .agent-layout {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

.agent-photo {
  position: relative;
  width: 100vw;
  max-width: 100vw;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  display: block;
}

    .agent-info {
        align-items: center;
    }

    .agent-cta-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }

    .vg-agent-page .social-links {
        justify-content: center;
    }

    .agent-bio {
        text-align: left;
    }
}

@media (max-width: 600px) {
    .agent-cta-buttons {
        flex-direction: column;
        width: 100%;
    }

    .agent-btn {
        width: 100%;
        text-align: center;
    }
}

/* ===========================================
   ABOUT PAGE STYLES
   =========================================== */

.vg-about-page .about-header {
    margin: 0 auto;
    text-align: center;
}

.vg-about-page .about-header h1 {
    font-size: min(10vw, 100px);
    font-family: var(--fontheader) !important;
    color: white;
    margin: 0 0 30px;
    line-height: 1.1;
    text-align: -webkit-auto;
    font-style: italic;
}

.about-intro {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
    text-align: left;
}

.about-intro p {
    margin: 0 0 20px;
    font-size: 16px;
    color: white;
}

.about-intro p:last-child {
    margin-bottom: 0;
}

.about-intro strong {
    color: white;
}

/* Team Section */
#team-grid {
    background: #040a32 !important;
}

#team-grid h2 {
    text-align: center;
    font-size: min(8vw, 36px);
    font-family: var(--fontheader) !important;
    margin-bottom: 50px;
}

#team-wrapper {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin: 0 auto;
}

.rg-agent-card {
    text-align: center;
}

.rg-agent-card a {
    display: block;
    overflow: hidden;
}

.rg-agent-card img {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    transition: transform 0.4s ease;
    filter: grayscale(1);
}

.rg-agent-card a:hover img {
    transform: scale(1.05);
}

.rg-agent-info {
    padding: 25px 10px 10px;
}

.rg-agent-info h3 {
    font-family: var(--fontheader) !important;
    color: #ffffff;
    margin: 0 0 5px;
    font-style: italic;
    text-align: left;
    font-size: min(6vw,45px)!important;
}

.rg-agent-info span {
    font-size: min(4vw,18px)!important;
    color: #ffffff;
    display: block;
    margin-bottom: 15px;
    text-align: left;
}

.agent-card-social {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.agent-card-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: #040a32;
    color: white;
    border-radius: 50%;
    font-size: 14px;
    transition: transform 0.3s ease, opacity 0.3s ease, background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.agent-card-social a:hover {
    background: #1a2050;
    transform: translateY(-2px);
}

/* About Page Responsive */
@media (max-width: 700px) {
    #team-wrapper {
        grid-template-columns: repeat(2,1fr);
        gap: 10px;
    }

    .vg-about-page .about-header h1 {
        margin-bottom: 20px;
    }
}

@media (max-width: 480px) {
    .about-intro p {
        font-size: 15px;
    }
}

/* ===========================================
   NEIGHBORHOOD DIRECTORY SECTION
   =========================================== */

#neighborhood-directory {
    background: #040a32;
    padding: 5vh 0!important;
    margin-top: 0;
    border-top: solid 1px;
    border-bottom: solid 1px;
    border-color: #ffffff29;
}

.neighborhood-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.borough-column {
    display: flex;
    flex-direction: column;
}

.borough-header {
    color: white;
    font-size: min(7vw,40px)!important;
    font-family: var(--fontheader) !important;
    margin: 0 0 20px;
    padding-bottom: 10px;
    font-style: italic!important;
}

.neighborhood-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid!important;
    flex-direction: column;
    gap: 0;
    grid-template-columns: repeat(2,1fr)!important;
}

.neighborhood-item {
    position: relative;
    width: 100%!important;
}

.neighborhood-link {
    color: rgba(255,255,255,0.8)!important;
    text-decoration: none;
    font-size: 14px;
    padding: 8px 0;
    display: block;
    transition: color 0.2s ease;
}

.neighborhood-link:hover {
    color: white;
}

/* Sublinks - SEO friendly: use max-height instead of display:none */
.neighborhood-sublinks {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding-left: 10px;
}

.neighborhood-item.active .neighborhood-sublinks {
    max-height: 150px;
    padding-top: 5px;
    padding-bottom: 10px;
}

.neighborhood-sublinks a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s ease;
}

.neighborhood-sublinks a:hover {
    color: white;
}

/* Active state indicator */
.neighborhood-item.active .neighborhood-link {
    color: white;
    font-weight: 500;
}
  

/* Mobile Responsive - Accordion */
@media (max-width: 768px) {
    .neighborhood-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .borough-column {
        border-bottom: solid 1px rgba(255,255,255,0.1);
    }

    .borough-column:last-child {
        border-bottom: none;
    }

    .borough-header {
        margin: 0;
        padding: 20px 0;
        border-bottom: none;
        cursor: pointer;
        position: relative;
    }

    .borough-header::after {
        content: '\f078';
        font-family: "Font Awesome 6 Pro";
        font-weight: 300;
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        font-size: 14px;
        color: rgba(255,255,255,0.6);
        transition: transform 0.3s ease;
    }

    .borough-column.open .borough-header::after {
        transform: translateY(-50%) rotate(180deg);
    }

    /* Accordion behavior - use max-height for SEO */
    .neighborhood-list {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease, padding 0.3s ease;
    }

    .borough-column.open .neighborhood-list {
        max-height: 2000px;
        padding-bottom: 20px;
    }

    /* Hide see-more link on mobile */
    .see-more-link {
        display: none !important;
    }
}

/* Desktop: See More / See Less functionality */
@media (min-width: 769px) {
    .neighborhood-item.hidden-item {
        display: none;
    }

    .see-more-link {
        display: inline-block;
        color: white!important;
        font-size: 14px!important;
        padding: 12px 0 0;
        cursor: pointer;
        font-weight: 600!important;
        text-decoration: underline;
        transition: color 0.2s ease;
    }

    .see-more-link:hover {
        color: white;
        text-decoration: underline;
    }

    .see-more-link .count {
        opacity: 0.7;
        font-size: 12px;
    }
}



/* ==================== SERVICES PAGES (Buy/Sell) ==================== */

/* Services Hero Section */
.services-hero-section {
  position: relative;
  height: 70vh;
  min-height: 500px;
  max-height: 800px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.services-hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.services-hero-background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.services-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.6) 100%);
}

.services-hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: white;
  padding: 0 20px;
  max-width: 900px;
}

.services-hero-content h1 {
  font-size: clamp(2.5rem, 6vw, 100px)!important;
  font-weight: 400;
  margin-bottom: 20px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
  letter-spacing: 2px;
  color: #fff !important;
  font-style: italic;
}

.services-hero-content p {
  font-size: clamp(1rem, 2vw, 1.3rem);
  margin-bottom: 40px;
  opacity: 0.95;
  font-weight: 300;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  color: #fff !important;
}

.services-hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.services-hero-btn {
  padding: 16px 40px;
  font-size: 1rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 2px;
  border: none;
  cursor: pointer;
  transition: transform 0.3s ease, opacity 0.3s ease, background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
}

.services-hero-btn.primary {
  background: white;
  color: #000;
}

.services-hero-btn.primary:hover {
  background: #f0f0f0;
  transform: translateY(-2px);
}

.services-hero-btn.secondary {
  background: transparent;
  color: white;
  border: 1px solid white;
}

.services-hero-btn.secondary:hover {
  background: rgba(255,255,255,0.1);
  transform: translateY(-2px);
}

/* Services Content Section - Dark Theme */
.services-content-section {
  background: #040a32;
  padding: 80px 20px;
}

.services-content-section .inner-content {
  margin: 0 auto;
}

.services-intro {
  margin-bottom: 60px;
}

.services-intro p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: rgba(255,255,255,0.85);
  margin-bottom: 20px;
}

.services-highlight {
  font-size: 1.3rem !important;
  font-weight: 500;
  color: #fff !important;
  font-family: var(--fontheader)!important;
  font-style: italic!important;
  border-left: 4px solid #fff;
  padding-left: 20px!important;
  margin-top: 30px !important;
}

.services-list {
  margin-bottom: 60px;
}

.services-list h2 {
  font-weight: 400;
  margin-bottom: 30px;
  color: #fff;
  letter-spacing: 1px;
  font-style: italic;
  font-size: min(7vw,70px)!important;
}

.services-subtext {
  color: rgba(255,255,255,0.85)!important;
}

.services-list ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.services-list li {
  padding: 20px 0;
  border-bottom: 1px solid rgba(255,255,255,0.15);
  font-size: 1.05rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.8);
}

.services-list li:last-child {
  border-bottom: none;
}

.services-list li strong {
  color: #fff;
  font-weight: 600;
}

/* Numbered steps for sell page */
.services-steps ul {
  counter-reset: step-counter;
}

.services-steps li {
  position: relative;
  padding-left: 50px;
}

.services-steps li::before {
  counter-increment: step-counter;
  content: counter(step-counter);
  position: absolute;
  left: 0;
  top: 20px;
  width: 30px;
  height: 30px;
  background: #fff;
  color: #040a32;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 600;
}

.services-cta-block {
  text-align: center;
  padding: 40px;
  background: rgba(255,255,255,0.05);
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,0.1);
}

.services-cta-block p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: rgba(255,255,255,0.85);
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.services-cta-btn {
  display: inline-block;
  padding: 16px 50px;
  background: #fff;
  color: #000;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease, background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.services-cta-btn:hover {
  background: #f0f0f0;
  transform: translateY(-2px);
}

/* Services Pages Mobile Responsive */
@media (max-width: 768px) {
  .services-hero-section {
    height: 60vh;
    min-height: 400px;
  }

  .services-hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .services-hero-btn {
    width: 100%;
    max-width: 280px;
  }

  .services-content-section {
    padding: 50px 20px;
  }

  .services-list li {
    padding: 15px 0;
  }

  .services-steps li {
    padding-left: 45px;
  }

  .services-steps li::before {
    width: 26px;
    height: 26px;
    font-size: 0.8rem;
    top: 15px;
  }

  .services-cta-block {
    padding: 30px 20px;
  }
}


/* About Page Jump Links */
.about-jump-links {
  display: flex;
  gap: 20px;
  margin: 30px 0;
  flex-wrap: wrap;
}

.about-jump-links a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  padding: 12px 24px;
  border: 1px solid rgba(255,255,255,0.4);
  transition: transform 0.3s ease, opacity 0.3s ease, background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.about-jump-links a:hover {
  background: rgba(255,255,255,0.1);
  border-color: #fff;
}

@media (max-width: 768px) {
  .about-jump-links {
    flex-direction: column;
    gap: 12px;
  }

  .about-jump-links a {
    text-align: center;
  }
}


/* ==================== HOME TEAM SECTION ==================== */
.home-team-section {
  background: #040a32;
  padding: 7vh 0!important;
  border-top: solid 1px;
  border-bottom: solid 1px;
  border-color: #ffffff29;
}

.home-team-flex {
  display: flex;
  align-items: center;
  gap: 120px;
  margin: 0 auto;
}

.home-team-image {
  flex: 0 0 45%;
}

.home-team-image img {
  width: 100%;
  height: auto;
}

.home-team-text {
  flex: 1;
}

.home-team-text h2 {
  color: #fff;
  font-size: clamp(37px, 4vw, 70px)!important;
  font-weight: 400;
  line-height: 1;
  margin-bottom: 25px;
  letter-spacing: 1px;
  font-style: italic;
}

.home-team-text p {
  color: rgba(255,255,255,0.85);
  line-height: 1.4;
  margin-bottom: 30px;
}

.home-team-btn {
  display: inline-block;
  padding: 14px 40px;
  background: #fff;
  color: #000;
  text-decoration: none;
  font-weight: 500;
  transition: transform 0.3s ease, opacity 0.3s ease, background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.home-team-btn:hover {
  background: #f0f0f0;
  transform: translateY(-2px);
}

@media (max-width: 900px) {
  .home-team-flex {
    flex-direction: column;
    gap: 40px;
    text-align: center;
  }

  .home-team-image {
    flex: none;
    max-width: 400px;
  }

  .home-team-section {
    padding: 60px 20px;
  }
}

/* Fair Housing PDF Link */
.fair-housing-pdf-link {
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
}

.fair-housing-pdf-link::before {
  font-family: var(--fontawesome);
  content: "\f1c1";
  font-weight: 400;
}

/* ========================================
   ADVANCED SEARCH PAGE
   ======================================== */

.vg-search-page .inner-content {
  margin: 0 auto;
  padding: 60px 25px 80px;
}

.vg-search-page h1 {
  font-family: var(--font)!important;
  font-size: 36px;
  margin: 0 0 40px;
  color: var(--maincolor);
  font-weight: 600;
  letter-spacing: -1px;
  line-height: 1;
}

/* Search results header */
.vg-search-results-header {
  grid-column: 1 / -1;
  margin-bottom: 15px;
}

a.vg-search-results-title {
  display: block;
  text-decoration: none;
  margin: 0 0 12px;
  transition: opacity 0.2s ease;
  width: fit-content;
}

a.vg-search-results-title:hover {
  opacity: 0.7;
  text-decoration: underline;
  color: black;
}

a.vg-search-results-title h1 {
  font-family: var(--fontheader);
  font-size: min(7vw, 26px);
  font-weight: 700;
  color: var(--maincolor);
  margin: 0;
  line-height: 1.3;
  text-align: left;
  width: fit-content;
}

/* Filter pills bar */
.vg-search-pills-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.vg-result-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font);
  font-size: min(4vw,15px);
  font-weight: 600;
  color: #ffffff;
  background: var(--maincolor);
  padding: 5px 10px;
  border-radius: 4px;
  line-height: 1;
}

    .vg-pill-type {
        background: #2d70de;
    }
    .vg-pill-type .vg-pill-x:hover {
        color: #b9d3ff;
    }

.vg-pill-x {
  cursor: pointer;
  font-size: 16px;
  font-weight: 700;
  opacity: 1;
  transition: opacity 0.15s ease;
  line-height: 1;
  padding: 2px;
}

.vg-pill-x:hover {
  opacity: 1;
  color: #c0392b;
}

.vg-pill-sold {
  background: #c0392b !important;
  color: #fff !important;
}
.vg-pill-sold .vg-pill-x {
  color: #fff;
  opacity: 0.7;
}
.vg-pill-sold .vg-pill-x:hover {
  opacity: 1;
  color: #fff;
}

.vg-pills-neighborhoods {
  padding-bottom: 8px;
  border-bottom: none;
}
.vg-pills-neighborhoods + .vg-pills-filters {
  padding-top: 0;
}
.vg-pills-filters .vg-result-pill {
  background: #f0f0f3;
  color: var(--maincolor);
}
.vg-pills-filters .vg-pill-x {
  color: var(--maincolor);
  opacity: 0.5;
}
.vg-pills-filters .vg-pill-x:hover {
  opacity: 1;
  color: #c0392b;
}
/* Keep sold pill red even in filters row */
.vg-pills-filters .vg-pill-sold {
  background: #c0392b !important;
  color: #fff !important;
}
.vg-pills-filters .vg-pill-sold .vg-pill-x {
  color: #fff;
}

.properties-found {
    grid-column: 1/-1;
    display: block!important;
    padding-bottom: 0!important;
}

/* Reset links */
.vg-reset-link {
  display: inline-block;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 700;
  color: #c0392b;
  text-decoration: none;
  margin-bottom: 20px;
  cursor: pointer;
  transition: opacity 0.2s ease;
  padding: 10px;
  border: solid 1px;
}

.vg-reset-link:hover {
  opacity: 0.7;
}

.vg-reset-link::before {
  font-family: var(--fontawesome);
  content: "\f00d";
  font-weight: 900;
  margin-right: 5px;
  font-size: 11px;
}

.vg-reset-extra {
  margin-bottom: 15px;
}

/* Search body grid */
.vg-search-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.vg-search-header {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.vg-search-header h1 {
  margin: 0!important;
}
.vg-search-more-wrap,
.vg-search-submit {
  grid-column: 1 / -1;
}

/* Search field groups */
.vg-search-field {
  background: #f6f6f8;
  border-radius: 10px;
  padding: 20px 22px;
}

.vg-search-field label, .vg-nb-label {
  display: block;
  font-family: var(--font);
  font-size: min(6vw,18px);
  font-weight: 600;
  color: var(--maincolor);
  margin-bottom: 10px;
}

/* Pill buttons */
.vg-search-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

    #vg-neighborhood-field {
        padding-top: 20px;
        margin-top: 20px;
        border-top: solid 1px #e0e0e0;
    }

/* Neighborhood combo autocomplete */
.vg-nb-combo {
  position: relative;
}
.vg-nb-input-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  padding: 8px 12px;
  border: 1px solid #ccc;
  background: #fff;
  cursor: text;
  transition: border-color 0.2s ease;
  min-height: 44px;
  flex-direction: column;
}
    .vg-nb-input-wrap.options-active {
        gap: 10px;
    }
    .vg-nb-pills {
        display: flex;
        gap: 4px;
        flex-wrap: wrap;
        width: 100%;
    }
    .options-active .vg-nb-pills {
        border-bottom: solid 1px #e0e0e0;
        padding-bottom: 15px;
        padding-top: 10px;
    }
.vg-nb-input-wrap:focus-within {
  border-color: var(--maincolor);
}
.vg-nb-input {
  flex: 1;
  min-width: 120px;
  outline: none !important;
  margin: 0!important;
  font-family: var(--font);
  color: var(--maincolor);
  padding: 4px 0!important;
  background: transparent!important;
  box-shadow: none !important;
  border: none!important;
}
.vg-nb-input::placeholder {
  color: #999;
}
.vg-nb-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font);
  font-size: min(3vw,14px);
  font-weight: 500;
  color: #fff;
  background: var(--maincolor);
  padding: 4px 8px;
  border-radius: 3px;
  line-height: 1.2;
  white-space: nowrap;
}
.vg-nb-pill-x {
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  opacity: 0.7;
  transition: opacity 0.15s ease;
  line-height: 1;
}
.vg-nb-pill-x:hover {
  opacity: 1;
}
.vg-nb-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid #ccc;
  border-top: none;
  max-height: 220px;
  overflow-y: auto;
  z-index: 100;
}
.vg-nb-combo.open .vg-nb-dropdown {
  display: block;
}
.vg-nb-option {
  padding: 9px 14px;
  font-family: var(--font);
  font-size: 13px;
  color: var(--maincolor);
  cursor: pointer;
  transition: background 0.12s ease;
}
.vg-nb-option:hover {
  background: #f0f0f3;
}
.vg-nb-no-results {
  padding: 12px 14px;
  font-family: var(--font);
  font-size: 13px;
  color: #999;
  font-style: italic;
}

.vg-search-pills button {
  font-family: var(--font);
  font-size: min(7vw,13px);
  font-weight: 500;
  letter-spacing: 0.5px;
  padding: 10px 20px;
  border: 1px solid #e0e0e0;
  background: white;
  color: var(--maincolor);
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  border-radius: 50px;
}

.vg-search-pills button:hover {
  background: var(--maincolor);
  color: #fff;
}

.vg-search-pills button.active {
  background: var(--maincolor);
  color: #fff;
}

/* Checkmark on all active pills */
.vg-search-pills button.active::before {
  font-family: var(--fontawesome);
  content: "\f00c";
  font-weight: 900;
  margin-right: 6px;
  font-size: 11px;
}

/* Sold button red when active */
#vg-status-toggle button[data-status="search_status=SOLD"].active {
  background: #c0392b;
  border-color: #c0392b;
  color: #fff;
}

#vg-status-toggle button[data-status="search_status=SOLD"]:hover {
  background: #c0392b;
  border-color: #c0392b;
  color: #fff;
}

/* Dropdown trigger */
.vg-dropdown-trigger {
  font-family: var(--font);
  font-size: 14px;
  padding: 10px 16px;
  border: 1px solid #ccc;
  background: #fff!important;
  color: var(--maincolor)!important;
  cursor: pointer;
  width: 100%;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: border-color 0.2s ease;
}

.vg-dropdown-trigger:hover,
.vg-search-dropdown.open .vg-dropdown-trigger {
  border-color: var(--maincolor);
}

.vg-dropdown-trigger i {
  font-size: 11px;
  transition: transform 0.2s ease;
}
/* Pseudo chevron fallback when WYSIWYG strips <i> tags */
.vg-dropdown-trigger::after {
  content: "\f078";
  font-family: "Font Awesome 6 Free", "Font Awesome 5 Free", FontAwesome;
  font-weight: 900;
  font-size: 11px;
  transition: transform 0.2s ease;
  margin-left: auto;
}
/* Hide pseudo when real <i> exists */
.vg-dropdown-trigger i ~ .nothing,
.vg-dropdown-trigger:has(i)::after {
  display: none;
}

.vg-search-dropdown.open .vg-dropdown-trigger i,
.vg-search-dropdown.open .vg-dropdown-trigger::after {
  transform: rotate(180deg);
}

/* Dropdown options */
.vg-search-dropdown {
  position: relative;
}

.vg-dropdown-options {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid #ccc;
  border-top: none;
  max-height: 250px;
  overflow-y: auto;
  z-index: 100;
}

.vg-dropdown-tall {
  max-height: 300px;
}

.vg-search-dropdown.open .vg-dropdown-options {
  display: block;
}

.vg-dropdown-options label {
  display: flex!important;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  font-family: var(--font);
  font-size: 13px;
  color: var(--maincolor);
  cursor: pointer;
  transition: background 0.15s ease;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
}

.vg-dropdown-options label:hover {
  background: #f5f5f5;
}

.vg-dropdown-options input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--maincolor);
  cursor: pointer;
  margin: 0;
}

/* More Filters wrapper */

/* More Filters toggle */
.vg-more-filters-toggle {
  font-family: var(--font);
  font-size: min(6vw,18px);
  font-weight: 600;
  color: var(--maincolor)!important;
  background: #f6f6f8!important;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  padding: 22px;
  width: 100%;
  display: flex!important;
  align-items: center;
  justify-content: space-between;
  transition: background 0.2s ease;
}

.vg-more-filters-toggle:hover {
  background: #ededf0;
}

.vg-more-filters-toggle::after {
  font-family: var(--fontawesome);
  content: "\f078";
  font-weight: 900;
  font-size: 11px;
  transition: transform 0.3s ease;
}

.vg-more-filters-toggle.open::after {
  transform: rotate(180deg);
}

.vg-more-filters-toggle.open {
  border-radius: 10px 10px 0 0;
}

/* More Filters container */
.vg-more-filters {
  display: none;
  padding: 20px 22px 22px;
  background: #f6f6f8;
  border-radius: 0 0 10px 10px;
}

.vg-more-filters.open {
  display: block;
}

/* Filter rows */
.vg-filter-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin-bottom: 15px;
  position: relative;
  z-index: 0;
}

.vg-filter-row:last-child {
  margin-bottom: 0;
}

.vg-filter-item label {
  display: block;
  font-family: var(--font);
  font-size: min(5vw,15px);
  font-weight: 600;
  color: #696969 !important;
  margin-bottom: 5px;
}

.vg-filter-item select {
  width: 100%;
  font-family: var(--font);
  font-size: 13px;
  padding: 9px 12px;
  border: 1px solid #ccc!important;
  background: #fff;
  color: var(--maincolor);
  cursor: pointer;
  appearance: auto;
}

/* Price range */
.vg-filter-range {
  grid-column: 1 / -1;
}

.vg-range-selects {
  display: flex;
  align-items: center;
  gap: 10px;
}

.vg-range-selects select {
  flex: 1;
  font-family: var(--font);
  font-size: 17px;
  font-weight: 500;
  padding: 9px 12px;
  border: 1px solid #ccc;
  background: #fff;
  color: var(--maincolor);
  height: 50px;
}

.vg-range-to {
  font-family: var(--font);
  font-size: 13px;
  color: #999;
}

/* Submit buttons */
.vg-search-submit {
  display: flex;
  gap: 12px;
  margin-top: 35px;
  max-width: 700px;
  margin-right: 0;
  margin-left: auto;
}

.vg-search-submit button {
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  padding: 14px 30px;
  border: 1px solid var(--maincolor);
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

#vg-search-btn {
  background: var(--maincolor);
  color: #fff;
  flex: 1;
}

#vg-search-btn:hover {
  opacity: 0.9;
}

.vg-map-btn {
  background: transparent;
  color: var(--maincolor);
}

.vg-map-btn:hover {
  background: var(--maincolor);
  color: #fff;
}

.vg-reset-btn {
  font-family: var(--font);
  font-size: 13px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: transparent !important;
  color: var(--maincolor) !important;
  border-radius: 6px;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}
.vg-reset-btn::before {
  font-family: var(--fontawesome);
  content: "\f2ea";
  font-weight: 900;
  font-size: 12px;
}
.vg-reset-btn:hover:not(:disabled) {
  background: #dddddd !important;
  color: var(--maincolor) !important;
}
.vg-reset-btn:disabled {
  opacity: 0.25;
  cursor: not-allowed;
}

/* Multi-filter dropdown inside More Filters */
.vg-multi-filter {
  width: 100%;
}

.vg-multi-filter .vg-dropdown-trigger {
  font-size: 13px;
  padding: 9px 12px;
}

/* Responsive */
@media (max-width: 768px) {
  .vg-search-page .inner-content {
    padding: 20px 20px 60px!important;
  }

  .vg-search-body {
    grid-template-columns: 1fr;
  }

  .vg-search-page h1 {
    font-size: 28px;
    margin-bottom: 30px;
  }

  .vg-search-pills {
    gap: 6px;
  }

  .vg-search-pills button {
    font-size: 12px;
    padding: 8px 14px;
  }

  .vg-filter-row {
    grid-template-columns: 1fr;
  }

  .vg-range-selects {
    flex-direction: column;
    gap: 6px;
  }

  .vg-range-to {
    display: none;
  }

  .vg-search-submit {
    flex-direction: column;
    width: 100%;
  }

  .vg-search-submit button {
    width: 100%;
  }
}

/* ========================================
   HOMEPAGE REDESIGN - Hero Tabs + Actions
   ======================================== */

/* ========================================
   HOMEPAGE - About Section
   ======================================== */

/* ========================================
   HOMEPAGE - About / Team Section
   ======================================== */
.vg-home-about {
  background: #040a32 !important;
  padding: 80px 0 !important;
  border-top: solid 1px rgba(255,255,255,0.1) !important;
  border-bottom: solid 1px rgba(255,255,255,0.1) !important;
}

/* Two-column: text left, photos right */
.vg-home-about .vg-about-layout {
  display: flex !important;
  align-items: center !important;
  gap: 60px !important;
}

/* --- Left: Text Content --- */
.vg-home-about .vg-about-content {
  flex: 1 !important;
  min-width: 0 !important;
}

.vg-home-about .vg-about-content h2 {
  color: #fff !important;
  font-family: var(--fontheader) !important;
  font-size: clamp(32px, 3.5vw, 54px) !important;
  font-weight: 400 !important;
  font-style: italic !important;
  line-height: 1.15 !important;
  margin: 0 0 20px !important;
  text-align: left !important;
}

.vg-home-about .vg-about-text {
  color: rgba(255,255,255,0.75) !important;
  font-family: var(--font) !important;
  font-size: 15px !important;
  line-height: 1.75 !important;
  margin: 0 0 32px !important;
  text-align: left !important;
}

.vg-home-about .home-team-btn {
  display: inline-block !important;
  background: transparent !important;
  color: #fff !important;
  border: 1px solid rgba(255,255,255,0.4) !important;
  padding: 14px 40px !important;
  font-family: var(--font) !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  text-decoration: none !important;
  transition: transform 0.25s ease, opacity 0.25s ease, background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease !important;
}

.vg-home-about .home-team-btn:hover {
  background: #fff !important;
  color: #040a32 !important;
  border-color: #fff !important;
}

/* --- Right: Agent Cards --- */
.vg-home-about .vg-about-photos {
  display: flex !important;
  gap: 24px !important;
  flex-shrink: 0 !important;
}

.vg-home-about .vg-about-card {
  text-align: center !important;
  max-width: 350px;
}

.vg-home-about .vg-about-photo {
  overflow: hidden !important;
  margin: 0 0 16px !important;
  border-radius: 0 !important;
  display: block !important;
}

.vg-home-about .vg-about-photo img {
  object-fit: cover !important;
  display: block !important;
  transition: transform 0.4s ease !important;
  border-radius: 0 !important;
  aspect-ratio: 4/6;
}

.vg-home-about .vg-about-card:hover .vg-about-photo img {
  transform: scale(1.04) !important;
}

.vg-home-about .vg-about-card h3 {
  color: #fff !important;
  font-family: var(--fontheader) !important;
  margin: 0 0 4px !important;
  font-weight: 300;
}

.vg-home-about .vg-about-card p {
  color: rgb(255 255 255 / 82%) !important;
  font-size: 13px !important;
  margin: 0 0 14px !important;
}

/* Social icons — uses same .social-links class as about page */
.vg-home-about .vg-about-card .social-links {
  display: flex !important;
  justify-content: center !important;
  gap: 12px !important;
  margin: 0 !important;
  padding: 0 !important;
}

.vg-home-about .vg-about-card .social-links a {
  color: rgba(255,255,255,0.55) !important;
  font-size: 16px !important;
  text-decoration: none !important;
  transition: color 0.2s ease !important;
  background: none !important;
  border: none !important;
  width: auto !important;
  height: auto !important;
  border-radius: 0 !important;
  padding: 0 !important;
}

.vg-home-about .vg-about-card .social-links a:hover {
  color: #fff !important;
}

/* --- Mobile: photos on top side by side, text below --- */
@media (max-width: 1200px) {
  .vg-home-about {
    padding: 50px 0 !important;
  }

  .vg-home-about .inner-content {
    padding: 0 24px !important;
  }

  .vg-home-about .vg-about-layout {
    flex-direction: column-reverse !important;
    gap: 32px !important;
  }

  .vg-home-about .vg-about-content {
    text-align: center !important;
  }

  .vg-home-about .vg-about-content h2 {
    text-align: center !important;
    font-size: clamp(26px, 7vw, 38px) !important;
  }

  .vg-home-about .vg-about-text {
    text-align: center !important;
  }

  .vg-home-about .vg-about-photos {
    justify-content: center !important;
    gap: 16px !important;
    width: 100% !important;
  }

  .vg-home-about .vg-about-card {
    /* width: 45% !important; */
    /* max-width: 180px !important; */
  }

  .vg-home-about .vg-about-photo {
    width: 100% !important;
    height: auto !important;
  }

  .vg-home-about .vg-about-photo img {
    width: 100% !important;
    height: 100% !important;
    aspect-ratio: 4/5;
    min-height: 25vh;
  }

  .vg-home-about .vg-about-card h3 {
    font-size: 16px !important;
  }

  .vg-home-about .vg-about-card p {
    font-size: 11px !important;
  }

  .vg-home-about .vg-about-card .social-links a {
    font-size: 14px !important;
  }

  .vg-home-about .home-team-btn {
    padding: 12px 32px !important;
    font-size: 12px !important;
  }
}

/* ========================================
   HOMEPAGE - Sabetay Spin Section
   ======================================== */

.vg-sabetay-spin {
  background: white;
  padding: 7vh 0 !important;
}

.vg-sabetay-spin .inner-content {
  display: flex;
  align-items: center;
  gap: 100px;
  text-align: left;
}
.vg-sabetay-spin .vg-spin-thumb {
  width: 100%;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
  max-width: 500px;
  flex: 1 1 50%;
  border-radius: 10px;
}
.vg-sabetay-spin .vg-spin-thumb img {
  width: 100%;
  height: auto;
  display: block;
}
.vg-sabetay-spin .vg-spin-text {
  flex: 1 1 50%;
  width: 100%;
}
@media (max-width: 768px) {
  .vg-sabetay-spin .inner-content {
    flex-direction: column;
    text-align: center;
  }
  .vg-sabetay-spin .vg-spin-thumb {
    width: 80%;
    max-width: 320px;
  }
  .vg-sabetay-spin .vg-spin-links {
    justify-content: center;
  }
}

.vg-sabetay-spin h2 {
  font-size: clamp(37px, 4vw, 70px) !important;
  font-weight: 400;
  line-height: 1;
  margin-bottom: 20px;
  font-style: italic;
  color: var(--maincolor);
}

.vg-sabetay-spin p {
  line-height: 1.6;
  margin-bottom: 30px;
  color: #333;
}

.vg-spin-links {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.vg-spin-btn {
  padding: 14px 30px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: transform 0.3s ease, opacity 0.3s ease, background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  background: var(--maincolor);
  color: white;
}

.vg-spin-btn:hover {
  opacity: 0.85;
  color: white;
}

.vg-spin-btn.outline {
  background: transparent;
  color: var(--maincolor);
  border: solid 1px var(--maincolor);
}

.vg-spin-btn.outline:hover {
  background: var(--maincolor);
  color: white;
}

/* ========================================
   HOMEPAGE - Hero Search
   ======================================== */

.video-hero-section .vg-hero-search {
  width: 100% !important;
  max-width: 900px !important;
  margin-top: 20px !important;
  position: relative !important;
  z-index: 10 !important;
}

/* Tabs row above the search bar */
.video-hero-section .vg-hero-search .vg-hero-tabs {
  display: flex !important;
  gap: 3px !important;
  margin: 0 !important;
  padding: 0 !important;
  width: fit-content;
}

.video-hero-section .vg-hero-search .vg-hero-tabs .vg-hero-tab {
  display: inline-block !important;
  padding: 10px 24px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  font-family: var(--font) !important;
  text-transform: uppercase !important;
  letter-spacing: 2px !important;
  text-decoration: none !important;
  color: #ffffff;
  background: #717171b5;
  border: none !important;
  border-radius: 0 !important;
  cursor: pointer !important;
  transition: transform 0.2s ease, opacity 0.2s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease !important;
  line-height: 1 !important;
  margin: 0 !important;
  box-shadow: none !important;
}

.video-hero-section .vg-hero-search .vg-hero-tabs .vg-hero-tab:hover {
  color: white !important;
  background: rgba(255,255,255,0.2) !important;
}

.video-hero-section .vg-hero-search .vg-hero-tabs .vg-hero-tab.active {
  color: #040a32 !important;
  background: white !important;
}

/* Search bar row */
.video-hero-section .vg-hero-search .vg-hero-search-row {
  display: flex !important;
  background: transparent;
  border-radius: 0 !important;
  overflow: visible !important;
  position: relative !important;
  margin: 0 !important;
  padding: 0 !important;
  min-height: 70px!important;
  max-width: none !important;
  box-shadow: 0px 10px 12px #00000021;
  background: #ffffff;
}

/* Location input wrapper */
.video-hero-section .vg-hero-search .vg-hero-search-field.vg-hero-location {
  flex: 1 1 auto !important;
  position: relative !important;
  min-width: 200px !important;
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  visibility: visible !important;
  opacity: 1 !important;
  overflow: visible !important;
  gap: 0 !important;
  padding: 9px;
  padding-bottom: 0;
}

.video-hero-section .vg-hero-search .vg-hero-location input[type="text"]#vg-hero-location {
  flex: 1 1 120px !important;
  width: auto !important;
  min-width: 120px !important;
  padding: 6px;
  border: none !important;
  font-size: 14px !important;
  font-family: var(--font) !important;
  color: #040a32 !important;
  outline: none !important;
  background: transparent !important;
  box-sizing: border-box !important;
  box-shadow: none !important;
  margin: 0 !important;
  height: auto !important;
  min-height: 52px !important;
  max-width: none !important;
  border-radius: 0 !important;
  line-height: normal !important;
  font-weight: 600;
}

.video-hero-section .vg-hero-search .vg-hero-location input[type="text"]#vg-hero-location::placeholder {
  color: #999 !important;
}

/* Price select wrappers */
.video-hero-section .vg-hero-search .vg-hero-search-row span.vg-hero-select-wrap {
  position: relative !important;
  display: flex !important;
  flex: 0 0 100px !important;
  width: 100px !important;
  max-width: 100px !important;
  border-left: 1px solid #e0e0e0 !important;
}

.video-hero-section .vg-hero-search .vg-hero-search-row span.vg-hero-select-wrap::after {
  font-family: var(--fontawesome) !important;
  content: "\f078" !important;
  font-weight: 900 !important;
  font-size: 10px !important;
  color: #999 !important;
  position: absolute !important;
  right: 10px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  pointer-events: none !important;
  z-index: 1 !important;
}

/* Price selects */
.video-hero-section .vg-hero-search select.vg-hero-select {
  border: none !important;
  padding: 16px 26px 16px 12px !important;
  font-size: 14px !important;
  font-family: var(--font) !important;
  color: #040a32 !important;
  background: #ffffff00 !important;
  cursor: pointer !important;
  font-weight: 600;
  outline: none !important;
  min-width: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  flex: 1 !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
  background-image: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  margin: 0 !important;
  height: auto !important;
  line-height: normal !important;
}

/* Search button */
.video-hero-section .vg-hero-search button#vg-hero-search-btn.vg-hero-search-btn {
  padding: 16px 30px !important;
  background: var(--maincolor) !important;
  color: white !important;
  border: none !important;
  font-size: 15px !important;
  font-weight: 400 !important;
  font-family: var(--font) !important;
  text-transform: uppercase !important;
  letter-spacing: 2px !important;
  cursor: pointer !important;
  transition: opacity 0.3s ease !important;
  white-space: nowrap !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  margin: 0 !important;
  height: auto !important;
  line-height: normal !important;
  min-width: auto !important;
  width: auto !important;
}

.video-hero-section .vg-hero-search button#vg-hero-search-btn.vg-hero-search-btn:hover {
  opacity: 0.85 !important;
  background: var(--maincolor) !important;
}

/* Hero Dropdown */
.video-hero-section .vg-hero-search .vg-hero-dropdown {
  display: none;
  position: absolute !important;
  top: 100% !important;
  left: 0 !important;
  right: 0 !important;
  background: white !important;
  border: 1px solid #e0e0e0 !important;
  border-top: none !important;
  max-height: 300px !important;
  overflow-y: auto !important;
  z-index: 100 !important;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15) !important;
  border-radius: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
}

.video-hero-section .vg-hero-search .vg-hero-dropdown .vg-hero-dropdown-item {
  padding: 12px 18px !important;
  cursor: pointer !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  transition: background 0.15s ease !important;
  color: #040a32 !important;
  background: white !important;
  border: none !important;
  margin: 0 !important;
  text-decoration: none !important;
}

.video-hero-section .vg-hero-search .vg-hero-dropdown .vg-hero-dropdown-item:hover {
  background: #f5f5f5 !important;
}

.video-hero-section .vg-hero-search .vg-hero-dropdown .vg-hero-item-name {
  font-size: 14px !important;
  font-weight: 500 !important;
  color: #040a32 !important;
}

.video-hero-section .vg-hero-search .vg-hero-dropdown .vg-hero-item-type {
  font-size: 12px !important;
  color: #999 !important;
  text-transform: uppercase !important;
  letter-spacing: 1px !important;
}
.video-hero-section .vg-hero-search .vg-hero-dropdown .vg-hero-dropdown-section {
  padding: 8px 18px 4px !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  color: #999 !important;
  text-transform: uppercase !important;
  letter-spacing: 1px !important;
  border-bottom: 1px solid #eee !important;
  cursor: default !important;
}
.video-hero-section .vg-hero-search .vg-hero-dropdown .vg-hero-dropdown-section:hover {
  background: transparent !important;
}

@media (max-width: 768px) {
  .video-hero-section .vg-hero-search .vg-hero-search-row {
    flex-wrap: wrap !important;
    flex-direction: row !important;
  }

  .video-hero-section .vg-hero-search .vg-hero-search-field.vg-hero-location {
    flex: 1 1 100% !important;
    min-width: 0 !important;
    border-bottom: 1px solid #e0e0e0 !important;
    padding: 6px;
  }

  .video-hero-section .vg-hero-search .vg-hero-search-row span.vg-hero-select-wrap {
    flex: 1 1 0 !important;
    width: auto !important;
    max-width: none !important;
    border-left: none !important;
  }

  .video-hero-section .vg-hero-search .vg-hero-search-row span.vg-hero-select-wrap + span.vg-hero-select-wrap {
    border-left: 1px solid #e0e0e0 !important;
  }

  .video-hero-section .vg-hero-search select.vg-hero-select {
    padding: 14px 26px 14px 12px !important;
  }

  .video-hero-section .vg-hero-search button#vg-hero-search-btn.vg-hero-search-btn {
    flex: 1 1 100% !important;
    width: 100% !important;
    padding: 14px 24px !important;
    border-left: none !important;
    border-top: 1px solid #e0e0e0 !important;
  }

  .video-hero-section .vg-hero-search {
    max-width: 100% !important;
  }

  .video-hero-section .vg-hero-search .vg-hero-tabs .vg-hero-tab {
    flex: 1 !important;
    text-align: center !important;
    padding: 10px 12px !important;
    font-size: 11px !important;
    white-space: nowrap;
  }

  .video-hero-section .vg-hero-search .vg-hero-tabs .vg-hero-tab:first-child {
    display: none !important;
  }

  .video-hero-section .vg-hero-search .vg-hero-location span.vg-hero-pill {
    font-size: 12px !important;
    padding: 6px 10px !important;
    max-width: calc(100% - 100px) !important;
  }

  .video-hero-section .vg-hero-search .vg-hero-location span.vg-hero-pill .vg-hero-pill-text {
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }
}

/* Hero Search - Selected Item Pill */
.video-hero-section .vg-hero-search .vg-hero-location span.vg-hero-pill {
  display: inline-flex !important;
  align-items: center !important;
  background: #e8e8e8 !important;
  color: #040a32 !important;
  border-radius: 20px !important;
  padding: 10px 12px !important;
  margin: 4px 0 4px 6px !important;
  font-size: 13px !important;
  font-family: var(--font) !important;
  font-weight: 500 !important;
  line-height: 1.2 !important;
  max-width: calc(100% - 24px) !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
  height: auto !important;
  border: none !important;
  box-shadow: none !important;
  flex-shrink: 0 !important;
}

.video-hero-section .vg-hero-search .vg-hero-location span.vg-hero-pill .vg-hero-pill-text {
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  color: #040a32 !important;
  font-size: 14px !important;
  font-family: var(--font) !important;
}

.video-hero-section .vg-hero-search .vg-hero-location span.vg-hero-pill .vg-hero-pill-x {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin-left: 8px !important;
  cursor: pointer !important;
  font-size: 18px !important;
  line-height: 1 !important;
  color: #666 !important;
  font-weight: 700 !important;
  width: 20px !important;
  height: 20px !important;
  border-radius: 50% !important;
  transition: background 0.15s ease, color 0.15s ease !important;
  flex-shrink: 0 !important;
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
}

.video-hero-section .vg-hero-search .vg-hero-location span.vg-hero-pill .vg-hero-pill-x:hover {
  background: rgba(0,0,0,0.1) !important;
  color: #333 !important;
}

/* Summary pill */
.video-hero-section .vg-hero-search .vg-hero-location span.vg-hero-pill.vg-hero-summary-pill {
  background: #e8e8e8 !important;
}

/* ============================================================
   Custom Search Results Page (vg-cr-*)
   ============================================================ */

.vg-custom-results-page .inner-content {padding-top: 30px!important;max-width: 2200px;}

/* ── Header: H1 + pills (reuses existing pill styles) ── */
.vg-cr-header {
  margin-bottom: 20px;
}
.vg-cr-header .vg-search-results-title {
  display: block;
  text-decoration: none;
  margin: 0 0 12px;
  width: fit-content;
}
.vg-cr-header .vg-search-results-title h1 {
  font-family: var(--font)!important;
  font-size: min(7vw, 26px);
  font-weight: 700;
  color: var(--maincolor);
  margin: 0;
  padding: 0;
}
.vg-cr-header .vg-search-results-title:hover {
  opacity: 1;
}

/* ── Toolbar: count + sort ── */
.vg-cr-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0;
  background: #e0e0e04a;
  padding: 12px;
  border-radius: 10px;
}
/* ── Toolbar right: filter/sort button ── */
.vg-cr-toolbar-right {
  display: flex;
  align-items: center;
}
.vg-cr-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 500;
  padding: 6px 14px;
  border: 1px solid #d0d0d3;
  border-radius: 4px;
  background: #fff;
  color: var(--maincolor);
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease, background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
}
.vg-cr-filter-btn:hover {
  background: var(--maincolor);
  color: #fff;
  border-color: var(--maincolor);
}
.vg-cr-filter-btn i {
  font-size: 14px;
}

/* ── Body scroll lock when modal is open ── */
body.vg-modal-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
}

/* ── Sort / Filter Modal ── */
/* ═══════════════════════════════════════════════════════════
   REDFIN-STYLE FILTER MODAL
   ═══════════════════════════════════════════════════════════ */
.vg-cr-sort-overlay {
  position: fixed;
  inset: 0;
  z-index: 10010;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.vg-cr-sort-overlay.vg-cr-sort-visible {
  opacity: 1;
  visibility: visible;
}
.vg-cr-sort-modal {
  background: #fff;
  border-radius: 16px 16px 0 0;
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  position: relative;
  justify-content: flex-end;
  flex-direction: column;
  padding: 0;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}
.vg-cr-sort-visible .vg-cr-sort-modal {
  transform: translateY(0);
}
.vg-cr-sort-modal-scroll {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  flex: 1;
  min-height: 0;
  padding-bottom: 60px;
  top: 60px;
  position: relative;
}

/* Header: [X] Filters */
.vg-cr-sort-modal-header {
  display: flex;
  align-items: center;
  padding: 18px 24px;
  border-bottom: 1px solid #e8e8e8;
  position: relative;
  top: 0px;
  position: fixed;
  z-index: 7;
  width: 100%;
  background: white;
}
.vg-cr-sort-modal-header span {
  font-family: var(--fontheader);
  font-size: 17px;
  font-weight: 800;
  color: var(--maincolor);
  letter-spacing: 0.3px;
}
.vg-cr-sort-modal-close {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: 0;
  color: #666;
  cursor: pointer;
  padding: 8px;
  line-height: 1;
  z-index: 2;
}
.vg-cr-sort-modal-close::before {
  font-family: 'Font Awesome 6 Sharp', 'Font Awesome 6 Pro', 'Font Awesome 5 Pro', 'Font Awesome 5 Free';
  font-weight: 400;
  content: '\f00d';
  font-size: 20px;
}
.vg-cr-sort-modal-close:hover { color: #111; }
.vg-cr-fm-reset-link {
  display: none;
}

/* Sections */
.vg-cr-fm-section {
  padding: 22px 20px;
  border-bottom: 1px solid #e8e8e8;
}
.vg-cr-fm-section-accordion {
  border-bottom: none;
  padding-bottom: 0;
}
.vg-cr-fm-heading {
  font-family: var(--font);
  font-size: 20px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 14px;
}
.vg-cr-fm-sub-heading {
  font-family: var(--fontheader);
  font-size: 15px;
  font-weight: 800;
  color: #1a1a1a;
  margin: 24px 0 12px;
}
.vg-cr-fm-sub-heading:first-child { margin-top: 0; }

/* For Sale / Sold toggle */
.vg-cr-fm-toggle-row {
  display: flex;
  border: 1px solid #d0d0d3;
  border-radius: 8px;
  overflow: hidden;
  padding: 6px;
  gap: 7px;
}
.vg-cr-fm-toggle-pill {
  flex: 1;
  text-align: center;
  padding: 12px 16px;
  font-family: var(--font);
  font-size: 18px;
  font-weight: 600;
  border: none;
  background: #fff;
  color: #555;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  border-radius: 4px;
}
.vg-cr-fm-toggle-pill:last-child { border-right: none; }
.vg-cr-fm-toggle-pill.active {
  background: #333!important;
  color: #fff;
}

/* Price row */
.vg-cr-fm-price-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.vg-cr-fm-input {
  flex: 1;
  font-family: var(--font);
  font-size: 14px;
  padding: 10px 12px;
  border: 1px solid #d0d0d3!important;
  border-radius: 8px;
  background: #fff;
  color: #333;
  cursor: pointer;
  height: 44px;
  font-weight: 600;
}
.vg-cr-fm-dash {
  font-size: 16px;
  color: #999;
  flex-shrink: 0;
}

/* Segmented row (Beds / Baths / Type) */
.vg-cr-fm-seg-row {
  display: flex;
  border: 1px solid #d0d0d3;
  border-radius: 8px;
  overflow: hidden;
}
.vg-cr-fm-seg-row button {
  flex: 1;
  padding: 12px 0;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  background: #fff;
  border: none;
  border-right: 1px solid #d0d0d3;
  color: #333;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease, background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.vg-cr-fm-seg-row button:last-child { border-right: none; }
.vg-cr-fm-seg-row button.active {
  background: #333;
  color: #fff;
}
.vg-cr-fm-seg-row button:hover:not(.active) {
  background: #f5f5f7;
}

/* Home type — now uses .vg-cr-fm-seg-row (segmented buttons) */
/* Old type grid/card styles removed */

/* Accordion removed — all filters always visible */
.vg-cr-fm-accordion-toggle { display: none; }
.vg-cr-fm-accordion-body {
  display: block;
  padding: 0;
}
/* .open class no longer needed — body always visible */

/* 2-col grid for property details / features */
.vg-cr-fm-grid-2col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.vg-cr-fm-field label {
  display: block;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  color: #555;
  margin-bottom: 6px;
}
.vg-cr-fm-field select {
  width: 100%;
  font-family: var(--font);
  font-size: 15px;
  padding: 9px 10px;
  border: 1px solid #d0d0d3!important;
  border-radius: 8px;
  background: #fff;
  color: #333;
  cursor: pointer;
  height: 40px;
}

/* Bottom action bar */
.vg-cr-modal-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  border-top: 1px solid #e8e8e8;
  background: #fff;
  flex-shrink: 0;
  z-index: 6;
  position: relative;
}
.vg-cr-fm-reset-all {
  background: none;
  border: none;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  color: var(--maincolor);
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
}
.vg-cr-fm-reset-all:hover { color: #111; }
.vg-cr-fm-search-btn {
  font-family: var(--font);
  font-size: 14px;
  font-weight: 700;
  padding: 12px 28px;
  background: #c82021;
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s;
}
.vg-cr-fm-search-btn:hover { background: #a91a1b; }

/* Multi-select dropdowns INSIDE the filter modal: flow inline (no absolute),
   so they don't get clipped by the scroll container's overflow-y: auto */
.vg-cr-sort-modal-scroll .vg-dropdown-options {
  position: relative;
  top: auto;
  left: auto;
  right: auto;
  box-shadow: none;
  border-radius: 0 0 6px 6px;
  border: 1px solid #ccc;
  border-top: none;
  margin-top: -1px;
  z-index: 1;
  background: #fff;
}
.vg-cr-sort-modal-scroll .vg-search-dropdown {
  position: relative;
}
.vg-cr-sort-modal-scroll .vg-search-dropdown.open .vg-dropdown-trigger {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  border-color: var(--maincolor);
}
/* Match multi-select triggers to the select element styling in the filter modal */
.vg-cr-sort-modal-scroll .vg-dropdown-trigger {
  border-radius: 8px;
  border: 1px solid #d0d0d3;
  font-size: 15px;
  padding: 9px 10px;
  height: 40px;
  color: #333 !important;
}
.vg-cr-sort-modal-scroll .vg-dropdown-options {
  border-radius: 0 0 8px 8px;
}
.vg-cr-sort-modal-scroll .vg-search-dropdown.open .vg-dropdown-trigger {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

/* Price slider inside filter modal */
.vg-cr-fm-price-slider-wrap {
  margin-top: 12px;
}
.vg-cr-fm-price-slider-wrap .vg-cr-tb-price-slider-wrap {
  margin-bottom: 8px;
}
.vg-cr-fm-price-slider-wrap .vg-cr-tb-price-label {
  text-align: center;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  color: var(--maincolor);
  margin-bottom: 8px;
}

/* Mobile responsive */
@media (max-width: 600px) {
  .vg-cr-fm-grid-2col { grid-template-columns: 1fr; }
  .vg-cr-fm-price-row { flex-direction: column; gap: 6px; }
  .vg-cr-fm-dash { display: none; }
}

@media (max-width: 600px) {
  .vg-cr-modal-filter-row {
    flex-direction: column;
    gap: 12px;
  }
  .vg-cr-modal-filter-item {
    min-width: 100%;
  }
  .vg-cr-modal-range {
    flex-direction: column;
    gap: 6px;
  }
  .vg-cr-modal-range-to {
    text-align: center;
  }
}

/* ── Full-width nav on search pages ── */
.vg-custom-results-page ~ .header__container,
.vg-custom-results-page .header__container,
body:has(.vg-custom-results-page) .header__container {
  max-width: 2200px;
}

/* ── Results Grid ── */
.vg-cr-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  align-content: start;
  grid-auto-rows: min-content;
}

/* Reuse existing new-listing-card styles — cards inside .vg-cr-grid */
.vg-cr-grid .new-listing-card {
  aspect-ratio: 16/11;
}

/* ── Skeleton placeholders ── */
@keyframes vg-sk-shimmer {
  0% { background-position: -400px 0; }
  100% { background-position: 400px 0; }
}
.vg-cr-skeleton {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  pointer-events: none;
  opacity: 1 !important;
  transform: none !important;
}
.vg-cr-skeleton .vg-sk-image {
  flex: 1;
  min-height: 0;
  background: #e8e8e8;
  background-image: linear-gradient(90deg, #e8e8e8 0%, #f5f5f5 40%, #e8e8e8 80%);
  background-size: 800px 100%;
  animation: vg-sk-shimmer 1.4s ease infinite;
  border-radius: 6px 6px 0 0;
}
.vg-cr-skeleton .vg-sk-info {
  padding: 14px 12px 16px;
}
.vg-cr-skeleton .vg-sk-line {
  background: #e8e8e8;
  background-image: linear-gradient(90deg, #e8e8e8 0%, #f5f5f5 40%, #e8e8e8 80%);
  background-size: 800px 100%;
  animation: vg-sk-shimmer 1.4s ease infinite;
  border-radius: 4px;
}
.vg-cr-skeleton .vg-sk-price {
  width: 45%;
  height: 20px;
  margin-bottom: 8px;
}
.vg-cr-skeleton .vg-sk-address {
  width: 75%;
  height: 14px;
  margin-bottom: 10px;
}
.vg-cr-skeleton .vg-sk-details {
  display: flex;
  gap: 10px;
}
.vg-cr-skeleton .vg-sk-detail {
  width: 50px;
  height: 12px;
}

/* ── Header & toolbar skeleton placeholders ── */
.vg-sk-line {
  background: #e8e8e8;
  background-image: linear-gradient(90deg, #e8e8e8 0%, #f5f5f5 40%, #e8e8e8 80%);
  background-size: 800px 100%;
  animation: vg-sk-shimmer 1.4s ease infinite;
  border-radius: 4px;
}
.vg-sk-header-block {
  padding: 4px 0 8px;
}
.vg-sk-h1 {
  width: 320px;
  max-width: 60%;
  height: 28px;
  margin-bottom: 12px;
}
.vg-sk-pills-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.vg-sk-pill {
  width: 90px;
  height: 28px;
  border-radius: 14px;
}
.vg-sk-toolbar-block {
  display: flex;
  align-items: center;
  gap: 10px;
}
.vg-sk-btn {
  width: 120px;
  height: 34px;
  border-radius: 6px;
}
.vg-sk-count {
  width: 160px;
  height: 16px;
}

/* ── Pagination ── */
.vg-cr-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  padding: 30px 0;
  flex-wrap: wrap;
}
.vg-cr-page-btn {
  font-family: var(--font);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 14px;
  border: 1px solid #d0d0d3;
  border-radius: 4px;
  background: #fff;
  color: var(--maincolor);
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease, background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.vg-cr-page-btn:hover {
  background: var(--maincolor);
  color: #fff;
  border-color: var(--maincolor);
}
.vg-cr-page-btn.active {
  background: var(--maincolor);
  color: #fff;
  border-color: var(--maincolor);
  pointer-events: none;
}
.vg-cr-page-dots {
  font-family: var(--font);
  font-size: 14px;
  padding: 8px 6px;
  color: #999;
}

/* ── Loading ── */
.vg-cr-loading {
  text-align: center;
  padding: 60px 20px;
  font-family: var(--font);
  font-size: 16px;
  color: #888;
}
.vg-cr-loading i {
  margin-right: 8px;
}

/* ── Empty state ── */
.vg-cr-empty {
  text-align: center;
  padding: 80px 20px;
  color: #666;
}
/* In-grid empty state (desktop map mode) — match .vg-cr-empty */
.vg-cr-grid-empty {
  grid-column: 1 / -1;
  display: block;
}
/* ─── Save Search Wizard ─── */
.vg-cr-save-wizard {
  position: fixed;
  inset: 0;
  z-index: 20000;
}
.vg-cr-save-wizard-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}
.vg-cr-save-wizard-highlight {
  position: fixed;
  border: 3px solid #fff;
  border-radius: 12px;
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.5);
  z-index: 1;
  pointer-events: none;
}
.vg-cr-save-wizard-highlight.vg-cr-save-wizard-highlight-secondary {
  box-shadow: 0 0 12px rgba(255,255,255,0.6);
  border: 3px solid #fff;
  z-index: 3;
}
.vg-cr-save-wizard-tip {
  position: fixed;
  z-index: 2;
  background: #fff;
  border-radius: 10px;
  padding: 14px 18px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 360px;
}
.vg-cr-save-wizard-tip p {
  margin: 0;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  color: #1a1a1a;
  flex: 1;
}
.vg-cr-save-wizard-next {
  background: none!important;
  border: 1px solid #ddd;
  border-radius: 50%;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #666;
  font-size: 12px;
  flex-shrink: 0;
  transition: transform 0.15s ease, opacity 0.15s ease, background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.vg-cr-save-wizard-next:hover {
  border-color: #333;
  color: #333;
}
.vg-cr-save-wizard-close {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 50%;
  padding: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #666;
  font-size: 12px;
  flex-shrink: 0;
  transition: transform 0.15s ease, opacity 0.15s ease, background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  margin-left: auto;
}
.vg-cr-save-wizard-close:hover {
  border-color: #333;
  color: #333;
  background: #f5f5f5;
}

/* ─── Map empty area overlay ─── */
.vg-cr-map-empty-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 100;
  pointer-events: none;
}
.vg-cr-map-empty-box {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  padding: 18px 20px;
  text-align: center;
  pointer-events: auto;
  backdrop-filter: blur(4px);
}
.vg-cr-map-empty-box i {
  font-size: 28px;
  color: #999;
  margin-bottom: 8px;
  display: block;
}
.vg-cr-map-empty-box p {
  font-family: var(--fontheader);
  font-size: 16px;
  font-weight: 700;
  color: #333;
  line-height: 1.2;
  margin: 0 0 9px;
}
.vg-cr-map-empty-box span {
  font-family: var(--font);
  font-size: 13px;
  color: #888;
  line-height: 1.3;
  display: block;
}
.vg-cr-map-goback-btn {
  display: block;
  margin: 12px auto 0;
  padding: 7px 18px;
  background: #fff;
  color: var(--maincolor, #040a32);
  border: 1px solid #d0d5dd;
  border-radius: 20px;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease, background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.vg-cr-map-goback-btn:hover {
  border-color: var(--maincolor, #040a32);
  background: #f8f9fa;
}

.vg-cr-empty i.fa-home {
  font-size: 48px;
  color: #ccc;
  margin-bottom: 16px;
  display: block;
}
.vg-cr-empty h3 {
  font-family: var(--font)!important;
  font-size: 22px!important;
  color: var(--maincolor);
  margin: 0 0 8px;
  font-weight: 600!important;
}
.vg-cr-empty p {
  font-family: var(--font);
  font-size: 15px;
  margin: 0 0 20px;
  font-weight: 400;
}
.vg-cr-edit-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  padding: 10px 20px;
  background: var(--maincolor);
  color: #fff !important;
  border: none;
  border-radius: 4px;
  text-decoration: none !important;
  transition: opacity 0.15s ease;
}
.vg-cr-edit-btn:hover {
  opacity: 0.85;
}

/* ── Mobile toolbar ── */
@media (max-width: 600px) {
  .vg-cr-toolbar {
    gap: 8px;
  }
  .vg-cr-pagination {
    gap: 3px;
  }
  .vg-cr-page-btn {
    padding: 6px 10px;
    font-size: 13px;
  }
}

/* ── Toolbar left: actions + count ── */
.vg-cr-toolbar-left {
  display: flex;
  align-items: stretch;
  gap: 10px;
}
.vg-cr-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 500;
  padding: 6px 14px;
  border: 1px solid #d0d0d3;
  border-radius: 4px;
  background: #fff;
  color: var(--maincolor);
  text-decoration: none !important;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease, background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
}
.vg-cr-action-btn:hover {
  background: var(--maincolor);
  color: #fff;
  border-color: var(--maincolor);
}
.vg-cr-action-btn i {
  font-size: 14px;
}
.vg-cr-map-btn {
  /* inherits .vg-cr-action-btn styles — same as Save Search */
}
.vg-cr-toolbar-left .vg-cr-count {
  font-family: var(--font);
  font-size: 13px;
  font-weight: 500;
  color: #777;
  white-space: nowrap;
  margin-left: 4px;
}

/* ── Favorite Button on Cards ── */

.vg-cr-fav:hover {
  background: rgba(0, 0, 0, 0.55);
}
.vg-cr-fav i {
  font-size: 16px;
  line-height: 1;
  font-weight: 900;
  -webkit-text-stroke: 1.5px #555555;
  color: transparent !important;
  transition: color 0.2s ease, -webkit-text-stroke 0.2s ease;
}
.vg-cr-fav.vg-cr-favorited {
  background: rgba(255, 255, 255, 0.9);
}
.vg-cr-fav.vg-cr-favorited i {
  color: #e74c3c !important;
  -webkit-text-stroke: 0px transparent;
}
.vg-cr-fav:hover i {
  color: #e74c3c !important;
  -webkit-text-stroke: 0px transparent;
}

/* ══════════════════════════════════════════════════════════
   MOBILE BAR — Redfin-style top bar
   ═══════════════════════════════════════════════════════════ */
.vg-cr-mobile-bar {
  display: none;
}
.vg-cr-mob-list-info {
  display: none;
}
.vg-cr-mob-btn-wrap,
.vg-cr-mob-view-toggle {
  display: none;
}
@media (max-width: 768px) {
  .vg-cr-toolbar-left .vg-cr-action-btn {
    display: none;
  }
  .vg-cr-toolbar-left .vg-cr-count {
    margin-left: 0;
    white-space: normal;
  }

  /* ── Top bar: fixed at top, below nav ── */
  .vg-cr-mobile-bar {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 15;
    background: #fff;
    border-bottom: 1px solid #e0e0e0;
    padding: 8px 20px;
    gap: 8px;
    align-items: center;
  }

  /* Home button */
  .vg-cr-mob-home-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    min-width: 36px;
    color: #333;
    text-decoration: none !important;
    font-size: 18px;
    border-radius: 50%;
    transition: background 0.15s;
  }
  .vg-cr-mob-home-btn:hover {
    background: rgba(0,0,0,0.05);
  }

  /* Search wrap (flex-grow center section) */
  .vg-cr-mob-search-wrap {
    flex: 1;
    min-width: 0;
    position: relative;
  }
  .vg-cr-mob-loc-wrap {
    display: flex;
    align-items: center;
    border-radius: 8px;
    padding: 3px 8px;
    min-height: 36px;
    border: 1px solid #e0e0e0;
  }
  .vg-cr-mob-loc-input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-family: var(--font);
    font-size: 14px;
    font-weight: 500;
    color: #040a32;
    padding: 8px 6px;
    min-width: 0;
    padding: 0!important;
    margin: 0!important;
    border: none!important;
    box-shadow: none!important;
  }
  .vg-cr-mob-loc-input::placeholder {
    color: #999;
    font-weight: 400;
  }
  .vg-cr-mob-loc-pill {
    margin: 3px 4px 3px 0;
    max-width: calc(100% - 40px);
  }
  .vg-cr-mob-loc-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    max-height: 280px;
    overflow-y: auto;
    z-index: 10003;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    padding: 4px 0;
  }

  /* Filter button */
  .vg-cr-mob-filter-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    min-width: 36px;
    border: none;
    background: none!important;
    color: #333!important;
    font-size: 16px;
    cursor: pointer;
    border-radius: 50%;
    transition: background 0.15s;
    padding: 0!important;
  }
  .vg-cr-mob-filter-btn:hover {
    background: transparent!important;
  }

  /* Save button (Redfin red) */
  .vg-cr-mob-save-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #c82021;
    color: #fff !important;
    font-family: var(--font);
    font-size: 13px;
    font-weight: 700;
    padding: 8px 14px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    text-decoration: none !important;
    white-space: nowrap;
    transition: background 0.15s;
  }
  .vg-cr-mob-save-btn:hover {
    background: #a81b1c;
  }

  /* ── Mobile list info bar (H1 + count/sort) ── */
  .vg-cr-mob-list-info {
    display: block;
  }
  h1.vg-cr-mob-h1 {
    font-family: var(--font) !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #222 !important;
    margin: 0!important;
    padding: 0 !important;
    margin-top: 10px!important;
    line-height: 1.3;
  }
  .vg-cr-mob-list-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 10px;
    border-bottom: 1px solid #e5e5e5;
    margin-bottom: 12px;
  }
  .vg-cr-mob-count {
    font-family: var(--font);
    font-size: 13px;
    font-weight: 500;
    color: #666;
  }
  .vg-cr-mob-sort-btn {
    font-family: var(--font);
    font-size: 13px;
    font-weight: 600;
    color: black!important;
    background: none!important;
    border: none;
    cursor: pointer;
    padding: 4px 0;
    display: flex;
    align-items: center;
    gap: 4px;
  }
  .vg-cr-mob-sort-btn i {
    font-size: 10px;
  }

  /* ── Floating mobile bottom buttons ── */
  .vg-cr-mob-btn-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
  }
  .vg-cr-mob-view-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: #222;
    color: #fff;
    font-family: var(--font);
    font-size: 14px;
    font-weight: 600;
    padding: 10px 22px;
    border-radius: 24px;
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 12px rgba(0,0,0,0.3);
    transition: background 0.15s;
  }
  .vg-cr-mob-view-toggle:hover {
    background: #000;
  }
  .vg-cr-mob-view-toggle i {
    font-size: 14px;
  }
  .vg-cr-mob-draw-btn {
    display: none;
    width: 44px;
    height: 44px;
    background: #222;
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 12px rgba(0,0,0,0.3);
    font-size: 16px;
    transition: background 0.15s;
  }
  .vg-cr-mob-draw-btn:hover {
    background: #000;
  }
  .vg-cr-mob-draw-btn.active {
    background: #e74c3c;
  }

  /* Top padding is set dynamically by JS based on nav + bar height */
  .vg-custom-results-page {
    padding-top: var(--vg-mob-bar-bottom, 56px);
    padding-bottom: 70px;
  }
  .vg-custom-results-page .inner-content {
    padding-top: 0 !important;
  }

  /* Hide desktop header on mobile (mobile list info replaces it) */
  .vg-cr-header {
    display: none !important;
  }

  /* Hide desktop toolbar on mobile */
  .vg-cr-toolbar {
    display: none !important;
  }

}

/* ── More Filters (matches advanced search page style) ── */
.vg-cr-more-filters-wrap {
  margin-top: 2px;
}
.vg-cr-more-filters-toggle {
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  color: var(--maincolor) !important;
  background: #f6f6f8 !important;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  padding: 18px 22px;
  width: 100%;
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  transition: background 0.2s ease;
}
.vg-cr-more-filters-toggle:hover {
  background: #ededf0 !important;
}
.vg-cr-more-filters-toggle::after {
  font-family: var(--fontawesome);
  content: "\f078";
  font-weight: 900;
  font-size: 11px;
  transition: transform 0.3s ease;
}
.vg-cr-more-filters-toggle.vg-cr-mf-open::after {
  transform: rotate(180deg);
}
.vg-cr-more-filters-toggle.vg-cr-mf-open {
  border-radius: 10px 10px 0 0;
}
.vg-cr-mf-badge {
  font-size: 13px;
  font-weight: 700;
}
/* Hide the inline FA chevron — using ::after instead */
.vg-cr-mf-chevron {
  display: none;
}
.vg-cr-more-filters-body {
  display: none;
  padding: 16px 22px 22px;
  background: #f6f6f8;
  border-radius: 0 0 10px 10px;
}

/* ── Desktop Sticky Toolbar (floating bottom center) ── */
.vg-cr-sticky-bar {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(calc(100% + 40px));
  z-index: 999;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 0;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  transition: transform 0.3s ease;
  pointer-events: none;
}
@media (max-width: 768px) {
  .vg-cr-sticky-bar {
    display: none !important;
  }
}
.vg-cr-sticky-bar.vg-cr-sticky-visible {
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}
.vg-cr-sticky-inner {
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 16px;
  white-space: nowrap;
}
.vg-cr-sticky-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.vg-cr-sticky-right {
  display: flex;
  align-items: center;
}
.vg-cr-sticky-bar .vg-cr-action-btn {
  font-size: 13px;
  padding: 8px 14px;
}
.vg-cr-sticky-bar .vg-cr-filter-btn {
  font-size: 13px;
  padding: 8px 16px;
}
.vg-cr-sticky-count {
  font-family: var(--font);
  font-size: 13px;
  color: #888;
  white-space: nowrap;
}
/* Hide sticky bar on mobile (mobile bar handles this) */
@media (max-width: 768px) {
  .vg-cr-sticky-bar {
    display: none !important;
  }
}

/* ═══════════════════════════════════════════════════════════
   Sort & Filter Modal — search page field reuse + sort pills
   ═══════════════════════════════════════════════════════════ */

/* Sort pills inside modal — rounded pill style */
.vg-cr-sort-pills {
  gap: 8px !important;
}
.vg-cr-sort-pills button.vg-cr-sort-pill {
  font-size: 14px !important;
  padding: 8px 16px !important;
  border-radius: 20px !important;
  border-color: #d0d0d3 !important;
  background: #fff !important;
  color: #555 !important;
}
.vg-cr-sort-pills button.vg-cr-sort-pill:hover {
  border-color: var(--maincolor) !important;
  color: var(--maincolor) !important;
  background: #fff !important;
}
.vg-cr-sort-pills button.vg-cr-sort-pill.active {
  background: var(--maincolor) !important;
  color: #fff !important;
  border-color: var(--maincolor) !important;
}
/* Remove checkmark on sort pills */
.vg-cr-sort-pills button.vg-cr-sort-pill.active::before {
  display: none;
}

/* Modal section field labels — match search page style */
.vg-cr-sort-modal-scroll .vg-search-field {
  padding: 16px 24px 0;
  margin-bottom: 0;
  background: white;
  border-bottom: solid 1px #eeeeee;
  border-radius: 0;
  padding-bottom: 20px;
}
.vg-cr-sort-modal-scroll .vg-search-field > label {
  display: block;
  font-family: var(--font);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #999;
  margin-bottom: 10px;
}

/* Neighborhood combo inside modal */
.vg-cr-sort-modal-scroll #vg-cr-nb-field {
  margin-top: 12px;
}
.vg-cr-sort-modal-scroll .vg-nb-combo {
  position: relative;
}
.vg-cr-sort-modal-scroll .vg-nb-label {
  display: block;
  font-family: var(--font);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #999;
  margin-bottom: 6px;
}

/* Range selects inside modal — reuse search page classes */
.vg-cr-sort-modal-scroll .vg-range-selects {
  display: flex;
  align-items: center;
  gap: 10px;
}
.vg-cr-sort-modal-scroll .vg-range-selects select {
  flex: 1;
  font-family: var(--font);
  font-size: 14px;
  padding: 8px 32px 8px 10px;
  border: 1px solid #d0d0d3;
  border-radius: 6px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23999'/%3E%3C/svg%3E") no-repeat right 12px center;
  background-size: 10px 6px;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  color: #333;
  cursor: pointer;
}
.vg-cr-sort-modal-scroll .vg-range-to {
  font-size: 13px;
  color: #999;
}

/* More Filters wrapper inside modal */
.vg-cr-sort-modal-scroll .vg-search-more-wrap {
  padding: 16px 24px 0;
  margin-bottom: 20px;
}
.vg-cr-sort-modal-scroll .vg-search-more-wrap .vg-more-filters-toggle {
  font-size: 15px;
  padding: 18px 22px;
}
.vg-cr-sort-modal-scroll .vg-more-filters {
  padding: 16px 22px 22px;
}

/* Filter item selects inside modal More Filters */
.vg-cr-sort-modal-scroll .vg-filter-item select {
  font-size: 13px;
  padding: 8px 32px 8px 10px;
  border: 1px solid #d0d0d3 !important;
  border-radius: 6px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23999'/%3E%3C/svg%3E") no-repeat right 12px center;
  background-size: 10px 6px;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  color: #333;
  cursor: pointer;
}

/* Multi-select dropdowns inside modal — inherit from search page styles but ensure z-index works */
.vg-cr-sort-modal-scroll .vg-search-dropdown {
  position: relative;
  z-index: 5;
}
.vg-cr-sort-modal-scroll .vg-search-dropdown.open {
  z-index: 50;
}

/* ── Share Button (toolbar) ── */
.vg-cr-share-btn {
  background: transparent!important;
  color: var(--maincolor)!important;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 21px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, opacity 0.2s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  margin-right: 10px;
  flex-shrink: 0;
  padding: 0;
}
.vg-cr-share-btn:hover {background: none;color: inherit;opacity: 1;transform: scale(0.95);}

/* ── Share Modal ── */
.vg-cr-share-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.vg-cr-share-overlay.vg-cr-share-visible {
  opacity: 1;
  visibility: visible;
}
.vg-cr-share-modal {
  background: #fff;
  border-radius: 16px;
  padding: 30px;
  max-width: 480px;
  width: 90%;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}
.vg-cr-share-modal h3 {
  margin: 0 0 20px;
  font-family: var(--font);
  font-size: 20px;
  font-weight: 600;
  color: var(--maincolor);
}
.vg-cr-share-modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #999;
  line-height: 1;
}
.vg-cr-share-modal-close:hover {
  color: var(--maincolor);
}
.vg-cr-share-copy-row {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}
.vg-cr-share-url {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 13px;
  color: #555;
  font-family: var(--font);
  background: #f8f8f8;
  outline: none;
  min-width: 0;
}
.vg-cr-share-copy-btn {
  padding: 10px 16px;
  border: 1px solid var(--maincolor);
  background: var(--maincolor);
  color: #fff;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  font-family: var(--font);
  font-weight: 600;
  white-space: nowrap;
  transition: opacity 0.2s ease;
}
.vg-cr-share-copy-btn:hover {
  opacity: 0.85;
}
.vg-cr-share-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.vg-cr-share-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 16px 8px;
  border-radius: 12px;
  text-decoration: none;
  color: var(--maincolor);
  transition: background 0.2s ease;
  font-family: var(--font);
}
.vg-cr-share-option:hover {
  background: #f5f5f5;
}
.vg-cr-share-option i {
  font-size: 24px;
}
.vg-cr-share-option span {
  font-size: 12px;
  font-weight: 500;
}
@media (max-width: 480px) {
  .vg-cr-share-options {
    grid-template-columns: repeat(3, 1fr);
  }
  .vg-cr-share-modal {
    padding: 24px 20px;
  }
}

/* ── Go Back to Search ── */
.vg-back-to-search {
  display: block;
  align-items: center;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 700;
  color: #000000;
  margin-bottom: 10px;
  opacity: 0.7;
  transition: opacity 0.2s ease;
  margin-top: 10px;
  border-bottom: solid 1px #e0e0e0;
  padding-bottom: 7px;
}
.vg-back-to-search:hover {
  opacity: .4;
  color: black;
}
.vg-back-to-search i {
  font-size: 11px;
}

/* ═══════════════════════════════════════════════════════════
   MAP SEARCH INTEGRATION
   ═══════════════════════════════════════════════════════════ */

/* ─── Content wrapper (grid + map side by side) ─── */
.vg-cr-content {
  display: block;
  padding-top: 16px;
}

/* ─── Split layout when map is active (desktop) ─── */
.vg-cr-map-active .vg-cr-content {
  display: flex;
  flex-direction: row;
  height: calc(100vh - var(--vg-map-top, 160px));
  position: relative;
}
.vg-cr-map-active .vg-cr-grid {
  width: 45%;
  max-width: 45%;
  overflow-y: auto;
  overscroll-behavior: contain;
  height: 100%;
  padding-right: 12px;
  padding-left: 3px;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: min-content;
}
.vg-cr-map-active .vg-cr-grid .new-listing-card {
  width: auto;
}

/* Widen the page container when map is active */
.vg-cr-map-active .inner-content,
.vg-cr-map-active .vg-custom-results-page {
  max-width: 100%;
}

/* ─── Map panel ─── */
.vg-cr-map-panel {
  position: relative;
  height: 100%;
  min-height: 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.1);
  display: none;
}
.vg-cr-map-active .vg-cr-map-panel {
  display: block;
  position: relative;
  width: 55%;
  height: 100%;
  flex-grow: 1;
  z-index: 100;
}

/* ── Map mode: header + toolbar stay full-width, sticky toolbar ── */
.vg-cr-map-active .vg-cr-header {
  width: 100%;
}
.vg-cr-map-active .vg-cr-toolbar {
  width: 100%;
  margin-bottom: 0;
  position: sticky;
  top: var(--vg-nav-height, 52px);
  z-index: 200;
  background: #f6f6f6;
}
.vg-cr-map-active .vg-cr-header .vg-search-results-title h1 {
  font-size: min(7vw, 26px);
}
.vg-cr-map-active .vg-cr-pagination {
  width: 45%;
}
.vg-cr-map-active .vg-cr-sticky-bar {
  display: none !important;
}
.vg-cr-map-canvas {
  width: 100%;
  height: 100%;
  position: relative;
  touch-action: pan-x pan-y;
}

/* Hide Google Maps default pan/rotate controls */
.vg-cr-map-canvas .gm-control-active[aria-label*="Pan"],
.vg-cr-map-canvas .gm-control-active[aria-label*="Rotate"],
.vg-cr-map-canvas .gm-svpc {
  display: none !important;
}

/* ─── Price label markers (Redfin-style) ─── */
.vg-cr-map-marker {
  background: #fff;
  border: 2px solid #040a32;
  border-radius: 20px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
  font-family: 'Montserrat', sans-serif;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
  transition: transform 0.15s ease, opacity 0.15s ease, background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  position: absolute;
  transform: translate(-50%, -50%);
  z-index: 1;
  color: #040a32;
  line-height: 1;
}
.vg-cr-map-marker:hover,
.vg-cr-map-marker.highlighted {
  background: #040a32;
  color: #fff;
  transform: translate(-50%, -50%) scale(1.12);
  z-index: 999 !important;
}
.vg-cr-map-marker.active {
  background: #040a32;
  color: #fff;
  transform: translate(-50%, -50%) scale(1.15);
  z-index: 1000 !important;
  box-shadow: 0 4px 14px rgba(0,0,0,0.35);
}

/* Marker type colors */
.vg-cr-map-marker.type-res { border-color: #e8792b; }
.vg-cr-map-marker.type-res:hover,
.vg-cr-map-marker.type-res.highlighted,
.vg-cr-map-marker.type-res.active { background: #e8792b; border-color: #e8792b; }

.vg-cr-map-marker.type-con { border-color: #3b82f6; }
.vg-cr-map-marker.type-con:hover,
.vg-cr-map-marker.type-con.highlighted,
.vg-cr-map-marker.type-con.active { background: #3b82f6; border-color: #3b82f6; }

.vg-cr-map-marker.type-com { border-color: #6b7280; }
.vg-cr-map-marker.type-com:hover,
.vg-cr-map-marker.type-com.highlighted,
.vg-cr-map-marker.type-com.active { background: #6b7280; border-color: #6b7280; }

.vg-cr-map-marker.type-lnd { border-color: #22c55e; }
.vg-cr-map-marker.type-lnd:hover,
.vg-cr-map-marker.type-lnd.highlighted,
.vg-cr-map-marker.type-lnd.active { background: #22c55e; border-color: #22c55e; }

.vg-cr-map-marker.type-mul { border-color: #8b5cf6; }
.vg-cr-map-marker.type-mul:hover,
.vg-cr-map-marker.type-mul.highlighted,
.vg-cr-map-marker.type-mul.active { background: #8b5cf6; border-color: #8b5cf6; }

/* Marker favorite heart */
.vg-cr-marker-heart {
  color: #e74c3c;
  font-size: 10px;
  margin-right: 3px;
  line-height: 1;
}
.vg-cr-map-marker:hover .vg-cr-marker-heart,
.vg-cr-map-marker.highlighted .vg-cr-marker-heart,
.vg-cr-map-marker.active .vg-cr-marker-heart {
  color: #fff;
}

/* ─── Overflow dot markers (zoomed-out view) ─── */
.vg-cr-map-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  position: absolute;
  transform: translate(-50%, -50%);
  cursor: pointer;
  opacity: 0.7;
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
  z-index: 0;
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.vg-cr-map-dot:hover {
  transform: translate(-50%, -50%) scale(2);
  opacity: 1;
  z-index: 2;
}
/* Same type classes as pill markers — from raw API type field */
.vg-cr-map-dot.type-res { background: #e8792b; }
.vg-cr-map-dot.type-con { background: #3b82f6; }
.vg-cr-map-dot.type-com { background: #6b7280; }
.vg-cr-map-dot.type-lnd { background: #22c55e; }
.vg-cr-map-dot.type-mul { background: #8b5cf6; }

/* Marker price change indicators */
.vg-cr-marker-price-drop {
  margin-right: 2px;
  vertical-align: middle;
}
.vg-cr-marker-price-up {
  margin-right: 2px;
  vertical-align: middle;
}

/* ─── Map popup (InfoWindow override) ─── */
.vg-cr-map-popup {
  font-family: 'Montserrat', sans-serif;
  max-width: 300px;
  padding: 0;
}
.vg-cr-map-popup-img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 8px 8px 0 0;
  display: block;
}
.vg-cr-map-popup-body {
  padding: 12px 14px;
}
.vg-cr-map-popup-price {
  font-size: 18px;
  font-weight: 700;
  color: #040a32;
  margin-bottom: 4px;
}
.vg-cr-map-popup-address {
  font-size: 13px;
  color: #555;
  margin-bottom: 8px;
  line-height: 1.3;
}
.vg-cr-map-popup-stats {
  display: flex;
  gap: 12px;
  font-size: 12px;
  color: #333;
  margin-bottom: 10px;
}
.vg-cr-map-popup-stats span {
  font-weight: 600;
}
.vg-cr-map-popup-link {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: #040a32;
  text-decoration: none;
  border-bottom: 1px solid #040a32;
  transition: opacity 0.2s;
}
.vg-cr-map-popup-link:hover {
  opacity: 0.7;
}

/* Override Google InfoWindow chrome */
.gm-style-iw {
  padding: 0 !important;
  border-radius: 10px !important;
  overflow: hidden !important;
}
.gm-style-iw-d {
  overflow: hidden !important;
  max-height: none !important;
}
.gm-style-iw-tc {
  display: none !important;
}
.gm-ui-hover-effect {
  top: 4px !important;
  right: 4px !important;
}

/* ─── Card highlight state ─── */
.new-listing-card.vg-cr-card-highlighted {
  box-shadow: 0 0 0 3px #040a32;
  border-radius: 12px;
  z-index: 2;
}

/* ─── Split toolbar buttons (Edit Search + Sort) ─── */
.vg-cr-sort-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 1px solid #ccc;
  border-radius: 8px;
  background: #fff;
  font-size: 13px;
  font-weight: 600;
  font-family: 'Montserrat', sans-serif;
  color: #040a32;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}
.vg-cr-sort-btn:hover {
  background: #f5f5f5;
  border-color: #040a32;
}

/* ─── Inline search form ─── */
.vg-cr-inline-search {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 20px 60px;
}
.vg-cr-is-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: #040a32;
  text-align: center;
  margin-bottom: 30px;
}
.vg-cr-is-body {
  background: #fff;
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}
.vg-cr-is-section {
  margin-bottom: 24px;
}
.vg-cr-is-section:last-child {
  margin-bottom: 0;
}
.vg-cr-is-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: #040a32;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
  display: block;
}
.vg-cr-is-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.vg-cr-is-pills button {
  padding: 8px 16px;
  border: 2px solid #ddd;
  border-radius: 25px;
  background: #fff;
  font-size: 13px;
  font-weight: 600;
  font-family: 'Montserrat', sans-serif;
  color: #333;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.vg-cr-is-pills button:hover {
  border-color: #040a32;
  color: #040a32;
}
.vg-cr-is-pills button.active {
  background: #040a32;
  border-color: #040a32;
  color: #fff;
}
.vg-cr-is-row {
  display: flex;
  gap: 12px;
}
.vg-cr-is-row select {
  flex: 1;
  padding: 10px 14px;
  border: 2px solid #ddd;
  border-radius: 10px;
  font-size: 14px;
  font-family: 'Montserrat', sans-serif;
  color: #333;
  background: #fff;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23666' stroke-width='2' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 34px;
  cursor: pointer;
}
.vg-cr-is-row select:focus {
  outline: none;
  border-color: #040a32;
}
.vg-cr-is-neighborhood-wrap {
  position: relative;
}
.vg-cr-is-neighborhood-input {
  width: 100%;
  padding: 10px 14px;
  border: 2px solid #ddd;
  border-radius: 10px;
  font-size: 14px;
  font-family: 'Montserrat', sans-serif;
  color: #333;
  box-sizing: border-box;
}
.vg-cr-is-neighborhood-input:focus {
  outline: none;
  border-color: #040a32;
}
.vg-cr-is-autocomplete {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 0 0 10px 10px;
  max-height: 200px;
  overflow-y: auto;
  z-index: 100;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  display: none;
}
.vg-cr-is-autocomplete.visible {
  display: block;
}
.vg-cr-is-autocomplete-item {
  padding: 10px 14px;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.15s;
}
.vg-cr-is-autocomplete-item:hover {
  background: #f0f0f0;
}
.vg-cr-is-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.vg-cr-is-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f0f0f0;
  border-radius: 20px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  font-family: 'Montserrat', sans-serif;
  color: #333;
}
.vg-cr-is-tag-remove {
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  color: #999;
  transition: color 0.15s;
}
.vg-cr-is-tag-remove:hover {
  color: #e00;
}
.vg-cr-is-actions {
  display: flex;
  gap: 12px;
  margin-top: 30px;
}
.vg-cr-is-submit {
  flex: 1;
  padding: 14px 24px;
  border: none;
  border-radius: 10px;
  background: #040a32;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  font-family: 'Montserrat', sans-serif;
  cursor: pointer;
  transition: background 0.2s;
}
.vg-cr-is-submit:hover {
  background: #0a1550;
}
.vg-cr-is-map-btn {
  padding: 14px 24px;
  border: 2px solid #040a32;
  border-radius: 10px;
  background: #fff;
  color: #040a32;
  font-size: 15px;
  font-weight: 700;
  font-family: 'Montserrat', sans-serif;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}
.vg-cr-is-map-btn:hover {
  background: #040a32;
  color: #fff;
}

/* ─── "Search this Area" button on map ─── */
.vg-cr-map-search-area {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  background: #fff;
  border: none;
  border-radius: 25px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 700;
  font-family: 'Montserrat', sans-serif;
  color: #040a32;
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(0,0,0,0.2);
  transition: transform 0.2s ease, opacity 0.2s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}
.vg-cr-map-search-area:hover {
  background: #040a32;
  color: #fff;
}
.vg-cr-map-search-area i {
  margin-right: 6px;
}

/* ─── Split view grid card overrides ─── */
.vg-cr-map-active .vg-cr-grid .new-listing-card {
  aspect-ratio: 3 / 2;
}
.vg-cr-map-active .vg-cr-grid .new-listing-card .card-info {
  padding: 12px;
}
.vg-cr-map-active .vg-cr-grid .new-listing-card .card-price {
  font-size: clamp(15px, 1.5vw, 20px);
}
.vg-cr-map-active .vg-cr-grid .new-listing-card .card-address {
  font-size: clamp(11px, 1vw, 13px);
}
.vg-cr-map-active .vg-cr-grid .new-listing-card .card-details {
  font-size: 11px;
}
.vg-cr-map-active .vg-cr-grid .new-listing-card .card-details li {
  font-size: 11px;
}

/* ─── Mobile swipelist (card carousel over map) ─── */
.vg-cr-swipelist {
  display: none;
  position: fixed;
  bottom: 52px;
  left: 0;
  right: 0;
  z-index: 1001;
  padding: 0 0 8px;
  pointer-events: none;
}
.vg-cr-mobile-map-view .vg-cr-swipelist {
  display: block;
}
.vg-cr-swipelist-track {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  padding: 0 12px;
  pointer-events: auto;
  scrollbar-width: none;
}
.vg-cr-swipelist-track::-webkit-scrollbar {
  display: none;
}
.vg-cr-swipe-card {
  flex: 0 0 260px;
  min-width: 260px;
  scroll-snap-align: start;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.18);
}
.vg-cr-swipe-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}
.vg-cr-swipe-card-img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  display: block;
}
.vg-cr-swipe-card-noimg {
  background: #e0e0e0;
}
.vg-cr-swipe-card-body {
  padding: 10px 12px;
}
.vg-cr-swipe-card-price {
  font-size: 16px;
  font-weight: 700;
  color: #040a32;
  font-family: 'Montserrat', sans-serif;
  margin-bottom: 2px;
}
.vg-cr-swipe-card-address {
  font-size: 12px;
  color: #555;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.vg-cr-swipe-card-stats {
  font-size: 11px;
  color: #777;
}

/* ─── Mobile styles (Redfin-style) ─── */
@media (max-width: 768px) {
  /* Split layout off on mobile — map takes full screen when toggled */
  .vg-cr-map-active .vg-cr-content {
    display: block;
    height: auto;
  }
  .vg-cr-map-active .vg-cr-grid {
    flex: none;
    width: 100% !important;
    max-width: 100% !important;
    overflow-y: visible;
    max-height: none;
    height: auto !important;
    padding-right: 0;
    grid-template-columns: repeat(1, 1fr)!important;
  }
    .vg-cr-card {
        overflow: hidden;
    }
  .vg-cr-map-active .vg-cr-grid .new-listing-card {
    width: auto;
  }

  /* Mobile map view — full screen map, hide grid + list info */
  .vg-cr-mobile-map-view .vg-cr-grid {
    display: none !important;
  }
  .vg-cr-mobile-map-view .vg-cr-map-panel {
    display: block !important;
    position: fixed;
    top: var(--vg-mob-bar-bottom, 54px);
    left: 0;
    right: 0;
    bottom: 0;
    width: 100% !important;
    height: auto;
    border-radius: 0;
    z-index: 5;
    min-height: auto;
  }
  .vg-cr-mobile-map-view .vg-cr-toolbar,
  .vg-cr-mobile-map-view .vg-cr-header,
  .vg-cr-mobile-map-view .vg-cr-sticky-bar,
  .vg-cr-mobile-map-view .vg-cr-loading,
  .vg-cr-mobile-map-view .vg-cr-pagination {
    display: none !important;
  }
  /* Hide list info in map view */
  .vg-cr-mobile-map-view .vg-cr-mob-list-info {
    display: none !important;
  }

  /* Override desktop 45% width constraints on mobile */
  .vg-cr-map-active .vg-cr-header,
  .vg-cr-map-active .vg-cr-toolbar,
  .vg-cr-map-active .vg-cr-pagination {
    width: 100% !important;
  }

  /* When NOT in mobile map view, hide map panel on mobile */
  .vg-cr-map-active:not(.vg-cr-mobile-map-view) .vg-cr-map-panel {
    display: none;
  }

  /* Inline search responsive */
  .vg-cr-inline-search {
    padding: 20px 16px 40px;
  }
  .vg-cr-is-title {
    font-size: 22px;
  }
  .vg-cr-is-body {
    padding: 20px 16px;
  }
  .vg-cr-is-actions {
    flex-direction: column;
  }
  .vg-cr-is-row {
    flex-direction: column;
  }

  /* Map panel on mobile (non-map-view) */
  .vg-cr-map-panel {
    position: relative;
    top: 0;
    height: 400px;
    min-height: 300px;
  }

  /* Swipelist positioning for mobile (above floating toggle) */
  .vg-cr-swipelist {
    bottom: 70px;
  }
}

/* ─── Tablet adjustments ─── */
@media (min-width: 769px) and (max-width: 1100px) {
  .vg-cr-map-active .vg-cr-grid {
    flex: 0 0 50%;
    max-width: 50%;
    grid-template-columns: 1fr!important;
  }
}

/* ─── Large desktop ─── */
@media (min-width: 1400px) {
  .vg-cr-map-active .vg-cr-grid {
    flex: 0 0 40%;
    max-width: 40%;
    grid-template-columns: repeat(2, 1fr);
    padding-top: 2px;
    padding-bottom: 100px;
  }
}

/* ─── Scrollbar styling for split grid ─── */
.vg-cr-map-active .vg-cr-grid::-webkit-scrollbar {
  width: 6px;
}
.vg-cr-map-active .vg-cr-grid::-webkit-scrollbar-track {
  background: transparent;
}
.vg-cr-map-active .vg-cr-grid::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 3px;
}
.vg-cr-map-active .vg-cr-grid::-webkit-scrollbar-thumb:hover {
  background: #999;
}

/* Hide swipelist on desktop */
@media (min-width: 769px) {
  .vg-cr-swipelist {
    display: none !important;
  }
}

/* ═══════════════════════════════════════════════════════════
   REDFIN-STYLE CARD DESIGN
   ═══════════════════════════════════════════════════════════ */

/* ─── Card container ─── */
.vg-cr-card {
  position: relative;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 7px rgb(0 0 0 / 24%);
  transition: box-shadow 0.2s ease, opacity 0.4s ease, transform 0.4s ease;
  opacity: 0;
  transform: translateY(20px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.vg-cr-card.card-revealed {
  opacity: 1;
  transform: translateY(0);
}
.vg-cr-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,.14);
}

/* ─── Photo wrapper ─── */
.vg-cr-card-photo-wrap {
  position: relative;
  z-index: 4;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: #f0f0f0;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
  flex-shrink: 0;
  width: 100%;
}
.vg-cr-card-streetview,
.vg-cr-popup-streetview {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
}
.vg-cr-popup-photo .vg-cr-popup-streetview {
  position: relative;
  min-height: 200px;
}
.vg-cr-mobile-popup-photo .vg-cr-popup-streetview {
  position: relative;
  min-height: 180px;
}
.vg-cr-card-photo-wrap img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.vg-cr-card-photo-wrap img.loaded {
  opacity: 1;
}
/* Inline style opacity from carousel overrides — transition handles the fade */
.vg-cr-card-photo-wrap img[style*="opacity"] {
  transition: opacity 0.15s ease;
}

/* ─── Carousel arrows ─── */
.vg-cr-card-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  background: #00000054;
  border: none;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.6s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  color: white;
  padding: 0;
}
.vg-cr-card:hover .vg-cr-card-arrow {
  opacity: 1;
}
.vg-cr-card-arrow:hover {
  background: white;
  color: black;
}
.vg-cr-card-arrow-left { left: 8px; }
.vg-cr-card-arrow-right { right: 8px; }
@media (max-width: 768px) {
  .vg-cr-card-arrow { display: none; }
}

/* ─── No-image placeholder ─── */
.vg-cr-card-no-image {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: #303030;
  color: #ffffff;
  font-size: 13px;
  font-weight: 500;
}

/* ─── Swipe track + slides ─── */
.vg-cr-card-swipe-track {
  display: flex;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 4;
  will-change: transform;
  transition: transform 0.25s ease-out;
  touch-action: pan-y;
  background: #333333;
}
.vg-cr-card-slide {
  position: static !important;
  height: 100%;
  object-fit: cover;
  opacity: 1 !important;
  transition: none !important;
}

/* ─── "View all X images" slide ─── */
.vg-cr-card-view-all {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  background: #303030;
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  padding: 20px;
}
.vg-cr-card-view-all:hover {
  background: #3f3f3f;
  text-decoration: none;
  color: white;
}

/* ─── Card photo dots ─── */
.vg-cr-card-dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  gap: 5px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
}
.vg-cr-card-dots.visible {
  opacity: 1;
  transition: opacity 0.3s ease;
}
.vg-cr-card-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  transition: background 0.2s ease;
}
.vg-cr-card-dot.active {
  background: #fff;
}

/* ─── Status badge ─── */
/* Badge wrapper — flex row top-left of card photo */
.vg-cr-card-badges {
  position: absolute;
  top: 8px;
  left: 8px;
  display: flex;
  gap: 4px;
  z-index: 5;
  pointer-events: none;
}
.vg-cr-card-badge {
  background: rgba(0,0,0,.65);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  line-height: 1.2;
  white-space: nowrap;
}
.vg-cr-card-badge.badge-sold {
  background: #e74c3c;
}
.vg-cr-card-badge.badge-pending {
  background: #e17055;
}
/* Property type badges — each type gets a distinct color */
.vg-cr-card-badge.vg-cr-card-badge-type {
  color: #fff;
  font-weight: 500;
}
.vg-cr-card-badge.vg-cr-card-badge-type[data-ptype="condo"] { background: #0984e3; }
.vg-cr-card-badge.vg-cr-card-badge-type[data-ptype="coop"] { background: #6c5ce7; }
.vg-cr-card-badge.vg-cr-card-badge-type[data-ptype="house"] { background: #e17055; }
.vg-cr-card-badge.vg-cr-card-badge-type[data-ptype="townhouse"] { background: #00b894; }
.vg-cr-card-badge.vg-cr-card-badge-type[data-ptype="multi"] { background: #fdcb6e; color: #333; }
.vg-cr-card-badge.vg-cr-card-badge-type[data-ptype="land"] { background: #00b894; }
.vg-cr-card-badge.vg-cr-card-badge-type[data-ptype="mobile"] { background: #636e72; }


/* ─── Action buttons (share + heart) ─── */
.vg-cr-card-actions {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 5;
  display: flex;
  gap: 6px;
  z-index: 5;
}
.vg-cr-card-actions button,
.vg-cr-card-actions a {
  background: rgba(255,255,255,.88);
  border: none;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  min-width: 30px;
  flex-shrink: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #555;
  padding: 0;
  text-decoration: none;
  transition: background 0.15s ease;
  line-height: 1;
}
.vg-cr-card-actions button:hover,
.vg-cr-card-actions a:hover {
  background: #fff;
}
.vg-cr-card-actions .vg-cr-fav {
  color: #555;
}
.vg-cr-card-actions .vg-cr-fav.vg-cr-favorited {
  color: #e74c3c;
}

/* ─── Card body (info below photo) ─── */
.vg-cr-card-body {
  padding: 10px 12px 14px;
}
.vg-cr-card-price {
  font-size: 18px;
  font-weight: 700;
  color: #222;
  line-height: 1.2;
  display: flex;
  align-items: center;
  gap: 6px;
}
.vg-cr-card-price-drop {
  font-size: 11px;
  font-weight: 600;
  color: #16a34a;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.vg-cr-card-price-up {
  font-size: 11px;
  font-weight: 600;
  color: #e74c3c;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

/* Pseudo FA6 Sharp arrow icons — pure CSS, no font dependency */
.vg-icon-arrow-down::before,
.vg-icon-arrow-up::before {
  display: inline-block;
  font-weight: 900;
  font-size: inherit;
  line-height: 1;
}
.vg-icon-arrow-down::before {
  content: "\2193"; /* ↓ */
  color: #16a34a;
  font-size: 13px;
  font-weight: 900;
}
.vg-icon-arrow-up::before {
  content: "\2191"; /* ↑ */
  color: #e74c3c;
  font-size: 13px;
  font-weight: 900;
}
/* Inside markers — smaller, inherit color on hover */
.vg-cr-map-marker .vg-icon-arrow-down::before,
.vg-cr-map-marker .vg-icon-arrow-up::before {
  font-size: 10px;
}
.vg-cr-map-marker:hover .vg-icon-arrow-down::before,
.vg-cr-map-marker:hover .vg-icon-arrow-up::before,
.vg-cr-map-marker.highlighted .vg-icon-arrow-down::before,
.vg-cr-map-marker.highlighted .vg-icon-arrow-up::before,
.vg-cr-map-marker.active .vg-icon-arrow-down::before,
.vg-cr-map-marker.active .vg-icon-arrow-up::before {
  color: #fff;
}
.vg-cr-card-stats {
  font-size: 13px;
  color: #555;
  margin-top: 3px;
}
.vg-cr-card-address {
  font-size: 13px;
  color: #555;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.vg-cr-card-extras {
  font-size: 11px;
  color: #999;
  margin-top: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ─── WYSIWYG overlay link ─── */
.vg-cr-card {
  cursor: pointer;
}
.vg-cr-card > a {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  font-size: 0;
  color: transparent;
  text-decoration: none;
}

/* ─── Card highlight (from map hover / active popup) ─── */
.vg-cr-card.vg-cr-card-highlighted {
  box-shadow: 0 0 0 3px #040a32, 0 4px 16px rgba(0,0,0,.18) !important;
  z-index: 2;
}

/* Persistent red outline on grid card while its popup is open on map */
/* Uses ::after pseudo-element because cards have overflow:hidden + child content covers inset box-shadow */
.vg-cr-card.vg-cr-selected-on-map {
  z-index: 2;
  position: relative;
  box-shadow: 0 0 0 3px #344eff, 0 4px 16px rgba(0, 0, 0, .18) !important;
}

/* ─── Split view card adjustments ─── */
.vg-cr-map-active .vg-cr-card-price { font-size: 15px; }
.vg-cr-map-active .vg-cr-card-stats,
.vg-cr-map-active .vg-cr-card-address { font-size: 12px; }
.vg-cr-map-active .vg-cr-card-body { padding: 8px 10px 10px; }

/* ─── Grid should use new card class ─── */
.vg-cr-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
/* Sentinel must not take a grid cell */
#vg-cr-sentinel {
  display: block;
  grid-column: 1 / -1;
  height: 1px;
  margin: 0;
  padding: 0;
}
.vg-cr-map-active .vg-cr-grid {
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
    @media (max-width: 1200px) {
  .vg-cr-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 900px) {
  .vg-cr-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
}
@media (max-width: 600px) {
  .vg-cr-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .vg-cr-grid .new-listing-card {
    aspect-ratio: 4 / 2.2;
  }
}

/* ═══════════════════════════════════════════════════════════
   SPLIT HEADER (map mode — Redfin-style toolbar above grid+map)
   ═══════════════════════════════════════════════════════════ */
.vg-cr-split-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 4px;
  border-bottom: 1px solid #e5e5e5;
  margin-bottom: 12px;
}
.vg-cr-split-h1 {
  font-size: 18px;
  font-weight: 600;
  margin: 0;
  color: #222;
  line-height: 1.3;
}
.vg-cr-split-header-row {
  display: flex;
  align-items: center;
  gap: 14px;
}
.vg-cr-split-count {
  font-size: 13px;
  color: #666;
}
.vg-cr-split-sort {
  font-size: 13px;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 4px 8px;
  background: #fff;
  color: #333;
  cursor: pointer;
}
.vg-cr-split-sort:focus {
  outline: none;
  border-color: #999;
}

/* ═══════════════════════════════════════════════════════════
   FILTER PANEL — SLIDE FROM RIGHT (desktop)
   ═══════════════════════════════════════════════════════════ */
@media (min-width: 769px) {
  .vg-cr-filter-slide-right .vg-cr-sort-modal {
    position: fixed;
    right: 0;
    top: 0;
    height: 100vh;
    width: 460px;
    max-width: 90vw;
    border-radius: 0;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    margin: 0;
    max-height: 100vh;
  }
  .vg-cr-filter-slide-right.vg-cr-sort-visible .vg-cr-sort-modal {
    transform: translateX(0);
  }
  .vg-cr-filter-slide-right .vg-cr-modal-actions {
    border-radius: 0;
  }
}

/* ═══════════════════════════════════════════════════════════
   MOBILE MAP REWORK — Redfin-style (view toggle now handled by .vg-cr-mob-view-toggle)
   ═══════════════════════════════════════════════════════════ */

/* Hide old mobile map footer — replaced by floating view toggle */
.vg-cr-mobile-map-footer {
  display: none !important;
}
.vg-cr-mobile-count {
  display: none;
}
.vg-cr-mobile-list-btn {
  display: none;
}

/* Wider swipe cards (nearly full-width on mobile) */
.vg-cr-swipelist .vg-cr-swipe-card {
  width: calc(100vw - 48px);
  min-width: calc(100vw - 48px);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
}
.vg-cr-swipe-card-link {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}
.vg-cr-swipe-card-photo {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #f0f0f0;
}
.vg-cr-swipe-card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.vg-cr-swipe-card-body {
  padding: 10px 12px 12px;
}
.vg-cr-swipe-card-price {
  font-size: 16px;
  font-weight: 700;
  color: #222;
}
.vg-cr-swipe-card-stats {
  font-size: 12px;
  color: #555;
  margin-top: 2px;
}
.vg-cr-swipe-card-address {
  font-size: 12px;
  color: #555;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ─── New skeleton card photo placeholder ─── */
.vg-cr-skeleton .vg-sk-photo {
  background: #e8e8e8;
  background-image: linear-gradient(90deg, #e8e8e8 0%, #f5f5f5 40%, #e8e8e8 80%);
  background-size: 800px 100%;
  animation: vg-sk-shimmer 1.4s ease infinite;
}

/* ─── Map zoom controls ─── */
.vg-cr-map-zoom-controls {
  position: absolute;
  right: 12px;
  bottom: 100px;
  display: flex;
  flex-direction: column;
  gap: 1px;
  z-index: 10;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}
.vg-cr-map-zoom-btn {
  width: 40px;
  height: 40px;
  background: #fff;
  border: none;
  font-size: 20px;
  font-weight: 500;
  color: #333!important;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}
.vg-cr-map-zoom-btn:hover {
  background: #f0f0f0;
}

/* ─── Map draw button ─── */
.vg-cr-map-draw-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 10;
  background: #fff;
  border: none;
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  color: #333!important;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: background 0.15s, color 0.15s;
}
.vg-cr-map-draw-btn:hover {
  background: #f0f0f0;
}
.vg-cr-map-draw-btn.active {
  background: #040a32;
  color: #fff;
}
.vg-cr-map-draw-remove {
  display: none;
}
@media (max-width: 767px) {
  .vg-cr-map-zoom-controls { display: none !important; }
  /* Desktop draw buttons hidden on mobile — mobile has its own draw btn */
  .vg-cr-map-draw-btn,
  .vg-cr-map-draw-remove { display: none !important; }
}

/* ═══════════════════════════════════════════
   REDFIN-STYLE MAP POPUPS
   ═══════════════════════════════════════════ */

/* ─── Shared popup elements ─── */
.vg-cr-popup-close {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 5;
  width: 28px;
  padding: 0;
  height: 28px;
  border: none;
  border-radius: 50%;
  background: rgba(0,0,0,0.5);
  color: #fff;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.vg-cr-popup-close:hover { background: rgba(0,0,0,0.7); }

.vg-cr-popup-link-wrap {
  text-decoration: none;
  color: inherit;
  display: block;
}
.vg-cr-popup-link-wrap:hover { color: inherit; }

.vg-cr-popup-photo {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 2;
  background: #e8e8e8;
  overflow: hidden;
  border-radius: 8px 8px 0 0;
}
.vg-cr-popup-slide {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.vg-cr-popup-slide.active { opacity: 1; }

.vg-cr-popup-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 30px;
  padding: 0;
  height: 30px;
  border: none;
  border-radius: 50%;
  background: rgba(255,255,255,0.85);
  color: #333;
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s;
}
.vg-cr-popup-photo:hover .vg-cr-popup-arrow {opacity: 1;}
.vg-cr-popup-arrow-left { left: 6px; }
.vg-cr-popup-arrow-right { right: 6px; }

.vg-cr-popup-dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 4px;
  z-index: 3;
}
.vg-cr-popup-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  transition: background 0.2s;
}
.vg-cr-popup-dot.active { background: #fff; }

/* Popup badges wrapper */
.vg-cr-popup-badges {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 3;
  display: flex;
  gap: 4px;
}
.vg-cr-popup-status {
  background: rgba(0,0,0,0.65);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}
.vg-cr-popup-status.popup-sold {
  background: #e74c3c;
}
.vg-cr-popup-status.popup-type {
  color: #fff;
  font-weight: 500;
}
.vg-cr-popup-status.popup-type[data-ptype="condo"] { background: #0984e3; }
.vg-cr-popup-status.popup-type[data-ptype="coop"] { background: #6c5ce7; }
.vg-cr-popup-status.popup-type[data-ptype="house"] { background: #e17055; }
.vg-cr-popup-status.popup-type[data-ptype="townhouse"] { background: #00b894; }
.vg-cr-popup-status.popup-type[data-ptype="multi"] { background: #fdcb6e; color: #333; }
.vg-cr-popup-status.popup-type[data-ptype="land"] { background: #00b894; }
.vg-cr-popup-status.popup-type[data-ptype="mobile"] { background: #636e72; }

.vg-cr-popup-body {
  padding: 10px 12px 12px;
}
.vg-cr-popup-price {
  font-size: 18px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 2px;
}
.vg-cr-popup-stats {
  font-size: 13px;
  color: #555;
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 4px;
}
.vg-cr-popup-stats strong {
  color: #1a1a1a;
  font-weight: 600;
}
.vg-cr-popup-divider {
  color: #ccc;
  font-size: 10px;
}
.vg-cr-popup-address {
  font-size: 13px;
  color: #333;
  font-weight: 500;
}
.vg-cr-popup-city {
  font-size: 12px;
  color: #777;
  margin-top: 1px;
}

/* ─── Desktop: Floating card on map (Google OverlayView) ─── */
.vg-cr-map-popup-card {
  position: absolute;
  width: 350px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
  z-index: 200;
  overflow: visible;
  cursor: default;
  animation: vg-popup-fadein 0.15s ease;
}
.vg-cr-map-popup-card .vg-cr-popup-link-wrap {
  display: block;
  overflow: hidden;
  border-radius: 0 0 10px 10px;
}
/* Popup card uses same arrow/dot classes as grid cards — make them visible */
.vg-cr-map-popup-card .vg-cr-card-photo-wrap {
  position: relative;
  height: 200px;
  border-radius: 10px 10px 0 0;
  overflow: hidden;
}
.vg-cr-map-popup-card .vg-cr-card-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.vg-cr-map-popup-card .vg-cr-card-arrow {
  opacity: 1;
}
.vg-cr-map-popup-card .vg-cr-card-dots {
  opacity: 1;
}
@keyframes vg-popup-fadein {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
.vg-cr-map-popup-card .vg-cr-popup-photo {
  position: relative;
  height: 200px;
}
.vg-cr-map-popup-card .vg-cr-popup-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.vg-cr-map-popup-card .vg-cr-popup-body {
  padding: 10px 14px 14px;
}
.vg-cr-map-popup-card .vg-cr-popup-price {
  font-size: 20px;
  font-weight: 700;
  color: var(--maincolor);
}
.vg-cr-map-popup-card .vg-cr-popup-stats { font-size: 13px; margin-top: 2px; }
.vg-cr-map-popup-card .vg-cr-popup-address { font-size: 13px; margin-top: 4px; }
.vg-cr-map-popup-card .vg-cr-popup-city { font-size: 12px; color: #888; }

/* White caret triangle pointing down to the pin */
.vg-cr-popup-caret {
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 12px solid #fff;
  filter: drop-shadow(0 2px 2px rgba(0,0,0,0.15));
  pointer-events: none;
}

/* Share + Favorite buttons on popup photo — hidden on desktop map popup to avoid white orb dupes */
.vg-cr-map-popup-card .vg-cr-popup-actions {
  display: none;
}
.vg-cr-popup-actions {
  position: absolute;
  top: 8px;
  right: 40px;
  display: flex;
  gap: 6px;
  z-index: 5;
}
.vg-cr-popup-share-btn,
.vg-cr-popup-fav-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #555;
  transition: transform 0.15s ease, opacity 0.15s ease, background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}
.vg-cr-popup-share-btn:hover,
.vg-cr-popup-fav-btn:hover {
  background: #fff;
  color: var(--maincolor);
}
.vg-cr-popup-fav-btn.active {
  color: #e74c3c;
}
.vg-cr-popup-fav-btn.active i::before {
  content: "\f004";
}

/* ─── Mobile: Bottom sheet popup ─── */
.vg-cr-mobile-popup {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 5;
  pointer-events: none;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  transform: translateY(100%);
}
.vg-cr-mobile-popup.open {
  transform: translateY(0);
  pointer-events: auto;
}
.vg-cr-mobile-popup-inner {
  position: relative;
  background: #fff;
  border-radius: 16px 16px 0 0;
  overflow: hidden;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.2);
  max-height: 60vh;
}
.vg-cr-mobile-popup .vg-cr-popup-photo {
  border-radius: 0;
  aspect-ratio: 16 / 9;
}
.vg-cr-mobile-popup .vg-cr-popup-arrow {
  opacity: 1;
  width: 34px;
  height: 34px;
}
.vg-cr-mobile-popup .vg-cr-popup-body {
  padding: 12px 16px 20px;
}
.vg-cr-mobile-popup .vg-cr-popup-price { font-size: 20px; }
.vg-cr-mobile-popup .vg-cr-popup-stats { font-size: 14px; }
.vg-cr-mobile-popup .vg-cr-popup-address { font-size: 14px; }
.vg-cr-mobile-popup .vg-cr-popup-close {
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  font-size: 20px;
}

/* ─── Map loading overlay (prevents flash) ─── */
.vg-cr-map-loader {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: #f0f0f0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease;
}
.vg-cr-map-loader-fade {
  opacity: 0;
  pointer-events: none;
}
.vg-cr-map-loader-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid #ddd;
  border-top-color: #040a32;
  border-radius: 50%;
  animation: vg-map-spin 0.8s linear infinite;
}
@keyframes vg-map-spin {
  to { transform: rotate(360deg); }
}

/* ═══════════════════════════════════════════════════════════
   MOBILE POPUP REDESIGN — Dark gradient overlay card
   ═══════════════════════════════════════════════════════════ */

/* Override old mobile popup inner to remove bg/border-radius/shadow */
.vg-cr-mobile-popup .vg-cr-mobile-popup-inner {
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  max-height: none;
}

/* Card wrapper (the <a> link) */
.vg-cr-mobile-popup-card {
  display: block;
  position: relative;
  text-decoration: none;
  color: inherit;
  width: 100%;
  overflow: hidden;
}
.vg-cr-mobile-popup-card:hover { color: inherit; }

/* Photo container — compact height */
.vg-cr-mobile-popup-photo {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #1a1a1a;
  overflow: hidden;
}
.vg-cr-mobile-popup-photo .vg-cr-popup-slide {
  border-radius: 0;
}
.vg-cr-mobile-popup-photo .vg-cr-popup-dots {
  bottom: 10px;
}

/* No arrows on mobile popup */
.vg-cr-mobile-popup-photo .vg-cr-popup-arrow {
  display: none !important;
}

/* Dark gradient overlay at bottom of photo */
.vg-cr-mobile-popup-gradient {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.45) 60%, transparent 100%);
  padding: 40px 16px 16px;
  z-index: 2;
  pointer-events: none; /* allow swipe through text overlay */
}
.vg-cr-mobile-popup-gradient * {
  pointer-events: none;
}

/* Listing info inside gradient */
.vg-cr-mobile-popup-info {
  color: #fff;
}
.vg-cr-mobile-popup-info .vg-cr-popup-price {
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 4px;
}
.vg-cr-mobile-popup-info .vg-cr-popup-stats {
  color: rgba(255,255,255,0.85);
  font-size: 13px;
  margin-bottom: 4px;
}
.vg-cr-mobile-popup-info .vg-cr-popup-stats strong {
  color: #fff;
}
.vg-cr-mobile-popup-info .vg-cr-popup-divider {
  color: rgba(255,255,255,0.4);
}
.vg-cr-mobile-popup-info .vg-cr-popup-address {
  color: rgba(255,255,255,0.9);
  font-size: 13px;
  font-weight: 400;
}

/* Status badge inside gradient */
.vg-cr-mobile-popup-gradient .vg-cr-popup-badges {
  position: static;
  display: flex;
  gap: 4px;
  margin-bottom: 6px;
}
.vg-cr-mobile-popup-gradient .vg-cr-popup-status {
  display: inline-block;
}

/* Photo counter (1/24) */
.vg-cr-mobile-popup-counter {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(0,0,0,0.6);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 12px;
  z-index: 3;
  pointer-events: none;
}

/* Share + Heart action buttons (Redfin-style) */
.vg-cr-mobile-popup-actions {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  gap: 8px;
  z-index: 5;
  pointer-events: auto;
}
.vg-cr-mob-popup-share,
.vg-cr-mob-popup-fav {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: rgba(0,0,0,0.5)!important;
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: pointer;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.vg-cr-mob-popup-fav.active {
  color: #e74c3c;
}
.vg-cr-mob-popup-share:active,
.vg-cr-mob-popup-fav:active {
  transform: scale(0.9);
}

/* Close button above gradient */
.vg-cr-mobile-popup .vg-cr-popup-close {
  top: 10px;
  right: 10px;
  z-index: 10;
  width: 32px;
  height: 32px;
  font-size: 20px;
}

/* ─── Mobile list toggle icon button ─── */
@media (max-width: 768px) {
  .vg-cr-mob-list-btn {
    flex: 0 0 auto !important;
    width: 40px;
    min-width: 40px;
    padding: 6px 0 !important;
    justify-content: center;
  }
}

/* ─── "Exit Filters and Search Here" button width fix ─── */
.vg-cr-map-search-area {
  padding-left: 16px;
  padding-right: 16px;
}

/* ─── Inline search form within results page ─── */
.vg-cr-inline-search .vg-reset-btn {
  font-family: var(--font);
  font-size: 13px;
  font-weight: 500;
  color: #888;
  background: none;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 6px 14px;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.vg-cr-inline-search .vg-reset-btn:hover:not(:disabled) {
  color: #333;
  border-color: #999;
}
.vg-cr-inline-search .vg-reset-btn:disabled {
  opacity: 0.4;
  cursor: default;
}
.vg-cr-inline-search .vg-reset-link {
  font-family: var(--font);
  font-size: 13px;
  color: #888;
  text-decoration: underline;
  margin-bottom: 12px;
  display: inline-block;
}
.vg-cr-inline-search .vg-reset-link:hover {
  color: #333;
}

/* ═══════════════════════════════════════════════════════════
   REDFIN-STYLE TOOLBAR DROPDOWN BUTTONS
   ═══════════════════════════════════════════════════════════ */

/* ─── Dropdown wrapper ─── */
.vg-cr-tb-dropdown-wrap {
  position: relative;
  display: inline-block;
}
.vg-cr-tb-dropdown-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 14px;
  border: 1px solid #d0d0d3;
  border-radius: 8px;
  background: #fff!important;
  color: #040a32!important;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease, background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
  height: stretch;
}
.vg-cr-tb-dropdown-btn:hover,
.vg-cr-tb-dropdown-wrap.open .vg-cr-tb-dropdown-btn {
  border-color: #040a32;
  background: #f5f5f5;
}
.vg-cr-tb-dropdown-btn i.fa-chevron-down {
  font-size: 10px;
  transition: transform 0.2s;
}
.vg-cr-tb-dropdown-wrap.open .vg-cr-tb-dropdown-btn i.fa-chevron-down {
  transform: rotate(180deg);
}

/* ─── Dropdown panel ─── */
.vg-cr-tb-dropdown-panel {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 1000;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  min-width: 220px;
  padding: 16px;
  animation: vg-cr-tb-dd-in 0.15s ease;
}
.vg-cr-tb-dropdown-wrap.open .vg-cr-tb-dropdown-panel {
  display: block;
}
@keyframes vg-cr-tb-dd-in {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── Status pills (For Sale / Sold) ─── */
.vg-cr-tb-status-options {
  display: flex;
  gap: 8px;
}
.vg-cr-tb-pill {
  padding: 10px 20px;
  border: 2px solid #ddd;
  border-radius: 25px;
  background: #fff;
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font);
  color: #333;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.vg-cr-tb-pill:hover { border-color: #040a32; }
.vg-cr-tb-pill.active {
  background: #040a32;
  border-color: #040a32;
  color: #fff;
}

/* ─── Beds/Baths dropdown ─── */
.vg-cr-tb-bb-section {
  margin-bottom: 16px;
}
.vg-cr-tb-bb-section label {
  display: block;
  font-family: var(--font);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
  color: #666;
}
.vg-cr-tb-bb-pills {
  display: flex;
  gap: 6px;
}
.vg-cr-tb-bb-pills button {
  padding: 8px 14px;
  border: 2px solid #ddd;
  border-radius: 20px;
  background: #fff;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  color: #333;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.vg-cr-tb-bb-pills button:hover {
  border-color: #040a32;
}
.vg-cr-tb-bb-pills button.active {
  background: #040a32;
  border-color: #040a32;
  color: #fff;
}
/* vg-cr-tb-bb-actions migrated to vg-cr-tb-panel-actions */

/* ─── Shared toolbar dropdown buttons ─── */
.vg-cr-tb-done-btn {
  padding: 8px 24px;
  background: #040a32;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
}
.vg-cr-tb-done-btn:hover { opacity: 0.85; }
.vg-cr-tb-reset-btn {
  padding: 8px 20px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  color: #666;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.vg-cr-tb-reset-btn:hover { border-color: #040a32; color: #040a32; }

/* ─── Filters button in toolbar ─── */
.vg-cr-tb-filters-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 14px;
  border: 1px solid #d0d0d3;
  border-radius: 8px;
  background: #fff!important;
  color: #040a32!important;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease, background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
}
.vg-cr-tb-filters-btn:hover {
  border-color: #040a32;
  background: #f5f5f5;
}

/* ═══ Price Slider Dropdown ═══ */
.vg-cr-tb-price-panel {
  min-width: 340px;
}
.vg-cr-tb-price-label {
  text-align: center;
  font-size: 20px;
  font-weight: 700;
  font-family: var(--font);
  color: #040a32;
  margin-bottom: 24px;
}

/* ─── Dual range slider ─── */
.vg-cr-tb-price-slider-wrap {
  position: relative;
  height: 40px;
  margin-bottom: 16px;
}
.vg-cr-tb-range {
  position: absolute;
  width: 100%;
  top: 17px;
  height: 0;
  -webkit-appearance: none;
  appearance: none;
  pointer-events: none;
  background: transparent;
  z-index: 3;
  margin: 0;
  padding: 0;
}
.vg-cr-tb-range::-webkit-slider-runnable-track {
  height: 0;
  background: transparent;
}
.vg-cr-tb-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  pointer-events: all;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #333;
  border: 1px solid #ffffff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
  cursor: pointer;
  position: relative;
  z-index: 5;
  margin-top: -12px;
}
.vg-cr-tb-range::-moz-range-thumb {
  pointer-events: all;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #333;
  border: 3px solid #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
  cursor: pointer;
}
.vg-cr-tb-range::-moz-range-track {
  height: 0;
  background: transparent;
}
.vg-cr-tb-range-track {
  position: absolute;
  top: 16px;
  left: 0;
  right: 0;
  height: 4px;
  background: #e0e0e0;
  border-radius: 2px;
  z-index: 1;
}
.vg-cr-tb-range-fill {
  position: absolute;
  top: 0;
  height: 100%;
  background: #262626;
  border-radius: 2px;
  z-index: 2;
}

/* ─── Price text inputs ─── */
/* price inputs removed — slider only */
.vg-cr-tb-price-inputs { display: none; }

/* ─── Shared panel actions (Reset / Done row) ─── */
.vg-cr-tb-panel-actions {
  display: flex;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid #eee;
}

/* ─── Toolbar button X clear badge ─── */
/* active filter buttons — no visual change, the X is enough */
.vg-cr-tb-btn-x {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  color: #171717;
  background: #ebebeb;
  font-size: 23px;
  line-height: 1;
  margin-left: 4px;
  cursor: pointer;
  transition: background 0.15s;
}
.vg-cr-tb-btn-x:hover {
  background: #e74c3c;
}

/* ─── Filters badge count ─── */
.vg-cr-tb-filters-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  background: #040a32;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 0 5px;
  margin-left: 4px;
}
.vg-cr-mob-filter-badge {
  position: absolute;
  top: -4px;
  right: -2px;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  background: #e74c3c;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  line-height: 1;
}
.vg-cr-mob-filter-btn {
  position: relative;
}

/* ─── Status radio panel (For Sale / Sold with timeframe) ─── */
.vg-cr-tb-status-radios {
  min-width: 240px;
}
.vg-cr-tb-status-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 8px;
  border-bottom: 1px solid #f0f0f0;
  cursor: pointer;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 500;
  color: #040a32;
}
.vg-cr-tb-status-row:last-of-type { border-bottom: none; }
.vg-cr-tb-status-row input[type="radio"] {
  width: 20px;
  height: 20px;
  accent-color: #040a32;
  margin: 0;
  cursor: pointer;
}
.vg-cr-tb-status-row span { flex: 1; }
.vg-cr-tb-status-chevron {
  font-size: 12px;
  color: #999;
  transition: transform 0.2s;
}

/* Sold timeframe sub-options */
.vg-cr-tb-sold-timeframes {
  padding-left: 30px;
  border-top: 1px solid #f0f0f0;
  margin-top: 4px;
}
.vg-cr-tb-sold-tf-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 8px;
  cursor: pointer;
  font-family: var(--font);
  font-size: 14px;
  color: #555;
}
.vg-cr-tb-sold-tf-row input[type="radio"] {
  width: 18px;
  height: 18px;
  accent-color: #040a32;
  margin: 0;
  cursor: pointer;
}

/* ─── Home Type dropdown pills ─── */
.vg-cr-tb-type-options {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}
.vg-cr-tb-type-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border: 2px solid #ddd;
  border-radius: 10px;
  background: #fff;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  color: #333;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.vg-cr-tb-type-pill:hover { border-color: #040a32; }
.vg-cr-tb-type-pill.active {
  background: #040a32;
  border-color: #040a32;
  color: #fff;
}
.vg-cr-tb-type-pill i {
  font-size: 16px;
  width: 20px;
  text-align: center;
}

/* ─── Modal sold timeframes (select dropdown) ─── */
.vg-cr-fm-sold-timeframes {
  margin-top: 12px;
}
.vg-cr-fm-sold-timeframes .vg-cr-fm-heading {
  margin-bottom: 8px;
}
.vg-cr-fm-sold-timeframes select.vg-cr-fm-input {
  width: 100%;
  max-width: 260px;
}

/* ─── Hide toolbar dropdowns on mobile ─── */
@media (max-width: 768px) {
  .vg-cr-tb-dropdown-wrap,
  .vg-cr-tb-filters-btn {
    display: none !important;
  }
  .vg-cr-toolbar-left {
    display: none;
  }
}

/* ─── Toolbar right gap fix for new layout ─── */
.vg-cr-toolbar-right {
  gap: 8px;
  flex-wrap: nowrap;
}
.vg-cr-toolbar-right .vg-cr-count {
  font-family: var(--font);
  font-size: 13px;
  font-weight: 500;
  color: #666;
  white-space: nowrap;
}

/* ─── Inline Sort Dropdown (Desktop) ─── */
.vg-cr-sort-inline-sep {
  font-family: var(--font);
  font-size: 13px;
  font-weight: 500;
  color: #666;
  white-space: nowrap;
  margin-left: 4px;
}
.vg-cr-sort-inline-wrap {
  position: relative;
  display: inline-block;
}
.vg-cr-sort-inline-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  color: #040a32!important;
  background: none!important;
  border: none;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 4px;
  white-space: nowrap;
  transition: background 0.15s;
}
.vg-cr-sort-inline-btn:hover {
  background: #f0f0f0;
}
.vg-cr-sort-inline-btn .fa {
  font-size: 10px;
  color: #666;
  transition: transform 0.2s;
}
.vg-cr-sort-inline-wrap.open .vg-cr-sort-inline-btn .fa {
  transform: rotate(180deg);
}
.vg-cr-sort-inline-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  min-width: 180px;
  z-index: 1000;
  padding: 4px 0;
  overflow: hidden;
}
.vg-cr-sort-inline-wrap.open .vg-cr-sort-inline-dropdown {
  display: block;
}
.vg-cr-sort-inline-opt {
  display: block;
  width: 100%;
  padding: 10px 16px;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 500;
  color: #040a32!important;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  transition: background 0.1s;
}
.vg-cr-sort-inline-opt:hover {
  background: #f5f5f7;
}
.vg-cr-sort-inline-opt.active {
  font-weight: 700;
  color: #c82021;
}

/* ─── Red Save Search Button (Desktop toolbar) ─── */
.vg-cr-save-btn-red {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  color: #fff !important;
  background: #c82021;
  border: none;
  border-radius: 8px;
  padding: 8px 16px;
  cursor: pointer;
  text-decoration: none !important;
  white-space: nowrap;
  transition: background 0.15s;
}
.vg-cr-save-btn-red:hover {
  background: #a91a1b;
  color: #fff !important;
  text-decoration: none !important;
}

/* ═══════════════════════════════════════════════════════════
   TOOLBAR LOCATION SEARCH BAR (Desktop)
   ═══════════════════════════════════════════════════════════ */
.vg-cr-tb-loc-wrap {
  position: relative;
  display: inline-block;
  flex-shrink: 1;
  min-width: 0;
}
.vg-cr-tb-loc-field {
  display: flex;
  align-items: center;
  background: #fff;
  border: 1px solid #d0d0d3;
  border-radius: 8px;
  padding: 5px;
  min-height: 36px;
  cursor: text;
  transition: border-color 0.15s;
}
.vg-cr-tb-loc-field:focus-within {
  border-color: #040a32;
}
.vg-cr-tb-loc-input {
  flex: 1;
  border: none!important;
  outline: none!important;
  background: transparent;
  font-family: var(--font);
  box-shadow: none!important;
  font-size: 13px;
  font-weight: 500;
  color: #040a32;
  padding: 8px 8px;
  min-width: 140px;
  margin: 0!important;
}
.vg-cr-tb-loc-input::placeholder {
  color: #999;
  font-weight: 400;
}

/* ─── Location pill (selected area/neighborhood) ─── */
.vg-cr-tb-loc-pill {
  display: inline-flex;
  align-items: center;
  background: #e8ecf0;
  color: #040a32;
  border-radius: 20px;
  padding: 5px 8px 5px 12px;
  margin: 3px 2px;
  font-size: 15px;
  font-family: var(--font);
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  max-width: 220px;
  overflow: hidden;
}
.vg-cr-tb-loc-pill-text {
  overflow: hidden;
  text-overflow: ellipsis;
}
.vg-cr-tb-loc-pill-x {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 6px;
  font-size: 16px;
  font-weight: 700;
  color: #999;
  cursor: pointer;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  transition: background 0.15s, color 0.15s;
  flex-shrink: 0;
}
.vg-cr-tb-loc-pill-x:hover {
  background: rgba(0,0,0,0.1);
  color: #333;
}

/* ─── Location dropdown (autocomplete results) ─── */
.vg-cr-tb-loc-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  min-width: 300px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  max-height: 320px;
  overflow-y: auto;
  z-index: 1001;
  box-shadow: 0 8px 28px rgba(0,0,0,0.16);
  padding: 4px 0;
}
.vg-cr-tb-loc-item {
  padding: 10px 16px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.1s;
}
.vg-cr-tb-loc-item:hover {
  background: #f5f5f5;
}
.vg-cr-tb-loc-item-name {
  font-family: var(--font);
  font-size: 14px;
  font-weight: 500;
  color: #040a32;
}
.vg-cr-tb-loc-item-type {
  font-family: var(--font);
  font-size: 11px;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  flex-shrink: 0;
  margin-left: 12px;
}
/* Type label colors */
.vg-cr-tb-loc-type-area .vg-cr-tb-loc-item-type { color: #3b82f6; }
.vg-cr-tb-loc-type-neighborhood .vg-cr-tb-loc-item-type { color: #16a34a; }
.vg-cr-tb-loc-type-school_district .vg-cr-tb-loc-item-type { color: #8b5cf6; }
.vg-cr-tb-loc-type-address .vg-cr-tb-loc-item-type { color: #e8792b; }
.vg-cr-tb-loc-type-mls .vg-cr-tb-loc-item-type { color: #e74c3c; }

/* Section headers in dropdown */
.vg-cr-tb-loc-section {
  font-family: var(--font);
  font-size: 11px;
  font-weight: 700;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 10px 16px 4px;
  border-top: 1px solid #eee;
}
.vg-cr-tb-loc-section:first-child {
  border-top: none;
}

/* Hide desktop location search on mobile */
@media (max-width: 768px) {
  .vg-cr-tb-loc-wrap {
    display: none !important;
  }
}

/* Mobile location search styles now in main mobile bar section above */

/* ─── Mobile sort inline dropdown (replaces sort-only modal) ─── */
.vg-cr-mob-sort-wrap {
  position: relative;
  display: inline-block;
}
.vg-cr-mob-sort-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  min-width: 160px;
  z-index: 100;
  overflow: hidden;
  margin-top: 4px;
}
.vg-cr-mob-sort-wrap.open .vg-cr-mob-sort-dropdown {
  display: block;
}
.vg-cr-mob-sort-opt {
  display: block;
  width: 100%;
  padding: 10px 16px;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 500;
  color: #040a32;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  transition: background 0.1s;
}
.vg-cr-mob-sort-opt:hover {
  background: #f5f5f7;
}
.vg-cr-mob-sort-opt.active {
  font-weight: 700;
  color: #c82021;
}

/* ─── Count under H1 ─── */
.vg-cr-header-count {
  display: block;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 500;
  color: #777;
  margin-top: 2px;
  margin-bottom: 8px;
  min-height: 18px;
}
/* Skeleton placeholder while count is loading */
.vg-cr-header-count:empty::before {
  content: '';
  display: inline-block;
  width: 140px;
  height: 14px;
  background: linear-gradient(90deg, #eee 25%, #e0e0e0 50%, #eee 75%);
  background-size: 200% 100%;
  animation: vg-cr-skeleton-pulse 1.5s ease-in-out infinite;
  border-radius: 4px;
  vertical-align: middle;
}
@keyframes vg-cr-skeleton-pulse {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
@media (max-width: 768px) {
  .vg-cr-header-count { display: none; }
}

/* ─── Save button in toolbar left (match mobile red style) ─── */
.vg-cr-tb-save-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #c82021;
  color: #fff;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  padding: 8px 23px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s;
}
.vg-cr-tb-save-btn:hover {
  background: #a81b1c;
  color: #fff;
  border: none;
}
.vg-cr-tb-save-btn i {
  display: none;
}

/* ═══════════════════════════════════════════════════════════
   NEW FEATURES — filter pills removal, desktop sticky toolbar,
   view toggle, modal desktop fix
   ═══════════════════════════════════════════════════════════ */

/* ── Hide save button on mobile (shown in mobile bar instead) ── */
@media (max-width: 768px) {
  .vg-cr-tb-save-btn { display: none; }
}

/* ── Remove filter pills entirely ── */
.vg-pills-filters,
.vg-search-pills-bar.vg-pills-filters,
.vg-search-pills-bar.vg-pills-neighborhoods {
  display: none;
}

/* ── Remove desktop sticky bar on desktop ── */
@media (min-width: 769px) {
  .vg-cr-sticky-bar {
    display: none;
  }
}

/* ── Scroll-to-top button (desktop list view only) ── */
.vg-cr-scroll-top {
  display: none;
  position: fixed;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%) translateY(0px);
  z-index: 100;
  padding: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--maincolor, #040a32);
  color: #fff;
  border: none;
  cursor: pointer;
  box-shadow: 0 3px 12px rgba(0,0,0,0.25);
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease, background 0.15s;
  align-items: center;
  justify-content: center;
}
@media (min-width: 769px) {
  .vg-cr-scroll-top {
    display: flex;
  }
}
.vg-cr-scroll-top.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.vg-cr-scroll-top:hover {
  background: #000;
}
/* Hide on map view */
.vg-cr-map-active .vg-cr-scroll-top {
  display: none !important;
}
/* Pseudo FA6 chevron-up icon */
.vg-icon-chevron-up::before {
  content: "\2191";
  font-size: 20px;
  font-weight: 900;
  line-height: 1;
}

/* ── Hide toolbar dropdowns on small desktops (768-1000px) ── */
@media (min-width: 768px) and (max-width: 1400px) {
  .vg-cr-tb-dropdown-wrap {
    display: none;
  }
}

/* ── Toolbar overflow: auto-hide items that don't fit ── */
.vg-cr-toolbar-left {
  min-width: 0;
}
.vg-cr-tb-loc-wrap {
  min-width: 300px;
  flex-shrink: 0;
}
@media (min-width: 1001px) {
  .vg-cr-tb-loc-wrap {
    min-width: 400px;
  }
}
@media (min-width: 1200px) {
  .vg-cr-tb-loc-wrap {
    min-width: 500px;
    max-width: 800px;
  }
}

/* ── Desktop Map/List view toggle (next to sort) ── */
.vg-cr-view-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  color: var(--maincolor)!important;
  background: #fff!important;
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 8px 14px;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.2s ease, opacity 0.2s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.vg-cr-view-toggle-btn:hover {
  border-color: var(--maincolor);
  color: var(--maincolor);
}
.vg-cr-view-toggle-btn i {
  font-size: 13px;
}
@media (max-width: 768px) {
  .vg-cr-view-toggle-btn { display: none; }
}

/* ── Filter modal: desktop slide-from-right (not bottom) ── */
@media (min-width: 769px) {
  .vg-cr-sort-overlay {
    align-items: stretch;
    justify-content: flex-end;
  }
  .vg-cr-sort-modal {
    position: fixed;
    right: 0;
    top: 0;
    height: 100vh;
    width: 460px;
    max-width: 90vw;
    border-radius: 0;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    margin: 0;
    max-height: 100vh;
  }
  .vg-cr-sort-visible .vg-cr-sort-modal {
    transform: translateX(0);
  }
  .vg-cr-sort-overlay .vg-cr-modal-actions {
    border-radius: 0;
  }
}

/* ─── Multi-select location pills ─── */
.vg-cr-tb-loc-field {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  min-height: 36px;
}
.vg-cr-tb-loc-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #f0f0f0;
  border: 1px solid #ddd;
  border-radius: 16px;
  padding: 3px 8px 3px 10px;
  font-size: 13px;
  white-space: nowrap;
  cursor: default;
  flex-shrink: 0;
}
.vg-cr-tb-loc-pill-x {
  cursor: pointer;
  font-size: 15px;
  line-height: 1;
  color: #888;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
}
.vg-cr-tb-loc-pill-x:hover {
  color: #333;
  background: rgba(0,0,0,0.1);
}
.vg-cr-loc-overflow {
  background: #e0e0e0;
  cursor: pointer;
}
.vg-cr-loc-overflow:hover {
  background: #d0d0d0;
}
.vg-cr-loc-pill-polygon {
  background: #7c3aed;
  color: #fff;
  border-color: #6d28d9;
}
.vg-cr-loc-pill-polygon .vg-cr-tb-loc-pill-x {
  color: rgba(255,255,255,0.7);
}
.vg-cr-loc-pill-polygon .vg-cr-tb-loc-pill-x:hover {
  color: #fff;
  background: rgba(255,255,255,0.2);
}
.vg-cr-loc-clear-all {
  background: transparent;
  border: 1px solid #ccc;
  cursor: pointer;
  color: #888;
  font-size: 12px;
}
.vg-cr-loc-clear-all:hover {
  background: #f0f0f0;
  color: #333;
}

/* ─── Mobile full-screen location overlay ─── */
.vg-cr-mob-loc-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10000;
  background: #fff;
  display: flex;
  flex-direction: column;
}
.vg-cr-mob-loc-overlay-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 12px 8px;
  border-bottom: 1px solid #eee;
  flex-wrap: wrap;
}
.vg-cr-mob-loc-overlay-back {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  padding: 4px 8px;
  color: #333;
  flex-shrink: 0;
  padding: 0;
}
.vg-cr-mob-loc-overlay-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  flex: 1;
  min-width: 0;
}
.vg-cr-mob-loc-overlay-pills .vg-cr-tb-loc-pill {
  font-size: 14px;
  padding: 5px 10px 5px 12px;
}
.vg-cr-mob-loc-overlay-clear {
  background: none;
  border: none;
  color: #c51313;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  padding: 0;
}
.vg-cr-mob-loc-overlay-input-wrap {
  padding: 8px 12px;
  border-bottom: 1px solid #eee;
}
.vg-cr-mob-loc-overlay-input {
  width: 100%;
  border: 1px solid #ddd;
  border-radius: 8px!important;
  padding: 10px 12px!important;
  font-size: 15px;
  outline: none;
  box-shadow: none!important;
}
.vg-cr-mob-loc-overlay-input:focus {
  border-color: var(--brandblue, #2a7f8e);
}
.vg-cr-mob-loc-overlay-dropdown {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.vg-cr-mob-loc-overlay-dropdown .vg-cr-tb-loc-item {
  padding: 12px 16px;
  border-bottom: 1px solid #f5f5f5;
}

/* Mobile bar — loc wrap with pills */
@media (max-width: 768px) {
  .vg-cr-mob-loc-wrap {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    cursor: pointer;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 6px 10px;
  }
  .vg-cr-mob-loc-wrap .vg-cr-tb-loc-pill {
    font-size: 13px;
  }
  .vg-cr-mob-loc-wrap .vg-cr-mob-loc-input {
    flex: 1;
    min-width: 80px;
    border: none;
    outline: none;
    padding: 0;
    font-size: 14px;
    background: transparent;
  }
}

