:root {
    --color-text: #2c3e50;
    --color-text-light: #34495e;
    --color-white: #ecf0f1;
    --shadow-dark: 0 2rem 6rem rgba(0, 0, 0, 0.3);
    --shadow-light: 0 2rem 5rem rgba(0, 0, 0, 0.06);
    --line: 1px solid var(--color-grey-light-2);
    --bold-burple: #4664CA;
    --bright-blue: #3f78e0;
    --dark-text-1: #212529;
    --light-blue-bg: #F1F5FD;
    --slider-colour: #3f78e0;
}

* {
    box-sizing:border-box;
}


.page-header {
  width:100%;
  border-radius: 15px;
  background: #F1F5FD;
  max-width:1440px;
  text-align:center;
  min-height:300px;
  display: flex;
  flex-direction:column;
  justify-content: center;
  align-items: center;
  min-width:100%;
  .title {
    margin-bottom:11px;
  }
  .excerpt {
    max-width:70%;
  }
  h1 {
    color: #454545;
    font-weight:500;
    line-height:2;
    font-family: 'IBM Plex Sans';
    font-size:2.5rem;
  }
}

/************************************************************
*                                                          *
*                     PAGINATION STYLES                     *
*                                                          *
************************************************************/
.dots {
    display:flex;
    justify-content:center;
    align-items:center;
    font-weight:600;
    color:#454545;
    font-size:1.1rem;
}
.page-numbers {
    list-style:none;
    display:flex;
    column-gap:7px;
    padding:10px 15px!important;
}

.page-numbers li {
    box-shadow:none!important;
    padding: 0 !important;
    border:1px solid #33669952!important;
}
.pagination-wrapper {
  width:100%;
  padding: 3rem 0;
  display:flex;
  justify-content:center;
}

.page-numbers li:hover {
    cursor:pointer;
    background-color:#eee;
}

.pagination a {
  display: inline-block;
  padding: 6px 10px;
  margin: 0 2px;
  border: 1px solid #ccc;
  border-radius: 3px;
  text-decoration: none;
}
.pagination a.active {
  background: #0073aa;
  color: #fff;
  border-color: #0073aa;
}

.pagination {
  display: flex;
  gap: 6px;
  justify-content: center;
  align-items: center;
}

.pagination a {
  padding: 6px 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  text-decoration: none;
  color: #333;
}

.pagination a.active {
  background-color: #0073aa;
  color: #fff;
  border-color: #0073aa;
}

.pagination .disabled {
  padding: 6px 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  color: #999;
  background: #f8f8f8;
  cursor: not-allowed;
}



/************************************************************
*                                                          *
*                        FAVOURITES                        *
*                                                          *
************************************************************/
.fa-heart {
  color: rgba(255, 255, 255, 0.3);
}

.full .fa-heart {
  color: rgb(230, 0, 0);
}

.buildings-list.row {
  width:100%;
  display:flex;
  column-gap:1%;
  flex-wrap:wrap;
}
.buildings-list.row .card {
  flex: 1 1 32%;
  max-width:32%;
  box-sizing:border-box!important;
}


/************************************************************
*                                                          *
*                     FAVOURITE BUTTON                     *
*                                                          *
************************************************************/
/* ===========================
   Favourite Button (Hover Reveal — Static)
   =========================== */
.favourite-button {
  display: inline-flex;
  align-items: center;
  background-color: rgba(200, 200, 200, 0.3);
  border-radius: 50px;
  color: #333;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 40px;
  height: 40px;
  opacity: 0.95;
}

/* Center the icon inside the initial circle */
.favourite-button .icon {
  width: 40px!important;
  height: 40px;
  min-width: 40px!important;
  display: flex;
  align-items: center;
  justify-content: center;
}

.favourite-button svg {
  width: 18px;
  height: 18px;
  transition: transform 0.3s ease;
}

/* Slight bounce effect on hover */
.favourite-button:hover svg {
  transform: scale(1.1);
}

/* Hidden label text (revealed on hover) */
.favourite-button .label {
  font-size: 13px;
  font-weight: 500;
  margin-left: 10px;
  white-space: nowrap;
  color: #e60000;
  opacity: 0;
  transform: translateX(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Expand to reveal the label */
.favourite-button:hover {
  width: 110px;
}

.favourite-button:hover .label {
  opacity: 1;
  transform: translateX(0);
}


/************************************************************
*                                                          *
*                          MAPBOX                            *
*                                                          *
************************************************************/
.mapboxgl-popup {
    max-width: 240px;
    min-width: 180px;
    box-sizing:border-box;
    font-size: 12px;
}

.mapboxgl-popup h3 {
    color: #454545;
    font-size:16px;
}

.mapboxgl-popup img {
    width:100%;
    height:150px;
    border-radius:6px;
}

/* Building-count badges on /neighbourhoods/ page. */
.mrpc-neigh-count {
    color: #6b7280;
    font-size: 0.85em;
    margin-left: 4px;
}
.mrpc-neigh-count--zero {
    color: #cbd1d6;
}

/* MRP map popups — uniform light card. The default mapbox-gl popup ships
 * with a thick white background, heavy box-shadow and a visible tip arrow
 * which looked like a bordered tooltip on top of the marker. Replace with
 * a subtle rounded card and hide the tip so the popup floats cleanly. */
.mapboxgl-popup.mrpc-map-popup .mapboxgl-popup-content {
    padding: 0;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
    overflow: hidden;
}
.mapboxgl-popup.mrpc-map-popup .mapboxgl-popup-tip {
    display: none;
}
.mapboxgl-popup.mrpc-map-popup .mrpc-pop {
    display: block;
    color: inherit;
    text-decoration: none;
}
.mapboxgl-popup.mrpc-map-popup .mrpc-pop:hover {
    background: #f8fafb;
}
.mapboxgl-popup.mrpc-map-popup .mrpc-pop img {
    border-radius: 0;
    height: 120px;
    margin: 0;
}

.map-info-box {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    padding: 10px 14px;
    font-family: sans-serif;
    font-size: 0.85rem;
    text-align: left;
}

.map-info-title {
    font-weight: bold;
    margin-bottom: 4px;
}

.map-info-status {
    color: #28a745;
    margin-bottom: 4px;
}

.map-info-location {
    color: #555;
}


/* Custom Mapbox control button */
.mapboxgl-ctrl.my-home-btn {
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    border-radius: 4px;
    padding: 6px 10px;
    cursor: pointer;
    font-size: 14px;
}

.mapboxgl-ctrl.my-home-btn:hover {
    background-color: rgba(0, 0, 0, 0.8);
}


.my-area-label {
  display: inline-block;
  margin-left: 8px; /* space between home button and label */
  padding: 6px 10px;
  background: white;
  color: #333;
  font-size: 13px;
  border-radius: 4px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
  white-space: nowrap;
}

/* Inactive - Neighbourhood template */
.rsection {
    display:flex;
    width:100%;
    
}
.rsection .left {
    flex: 1 1 50%;
}
.rsection .right {
    flex: 1 1 50%;
}

/* Mega Menu */
#megamenu {
    display:flex;
    flex-wrap:nowrap;
padding:1rem;
}

#megamenu a {
    color:#454545;
}

#megamenu a:hover {
    color:#007bff;
    cursor:pointer;
}

#megamenu h2 {
    font-weight:500;
    font-size:1.2rem;
    color:#454545;
}

#megamenu div {
    flex: 1 1 30%;
}

#megamenu ul {
    list-style:none;
    margin-left: 0;
    padding:0;
}

/* Advanced Search Form */
.options-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    column-gap: 2%;
}
.option {
    flex: 1;
}


#search-options ul {
    list-style:none;
    margin: 0;
    padding:0;
}

#search-options input[type="checkbox"] {
    margin-right:7px;
}

#search-options select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.95rem;
    color: #374151;
    background-color: #fff;
    cursor: pointer;
    margin-top: 4px;
}

#search-options select:focus {
    border-color: #3b82f6;
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

#search-options select:disabled {
    background-color: #f3f4f6;
    color: #9ca3af;
    cursor: not-allowed;
}

#search-options .option label {
    font-size: 0.9rem;
    color: #374151;
    cursor: pointer;
    vertical-align: middle;
}

#search-options #submit {
    width: 100%;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    outline: none;
    font-family: 'IBM Plex Sans';
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

#search-options #submit:hover {
    background: #0056b3;
}

.submit-option {
    display: flex;
    align-items: flex-end;
}

/* Double Ended Slider Styles */
#search-options .wrapper {
  position: relative;
  width: 300px;
  background-color: #ffffff;
  border-radius: 10px;
}
.price-range-wrapper {
  position: relative;
  width: 300px;
  height: 44px;
  margin-top: 6px;
}

.thumb-val {
  position: absolute;
  top: 0;
  font-size: 0.8rem;
  font-weight: 600;
  color: #374151;
  transform: translateX(-50%);
}

.price-range-wrapper input[type="range"] {
  top: auto !important;
  bottom: 0 !important;
  margin: 0 !important;
}

.price-range-wrapper .slider-track {
  top: auto !important;
  bottom: 9px !important;
  margin: 0 !important;
}

#search-options .mrpc-container {
  position: relative;
  width: 100%;
  height: 20px;
  margin-top: 8px;
}
#search-options input[type="range"] {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  width: 300px;
  outline: none;
  position: absolute;
  margin: auto;
  top: 0;
  bottom: 0;
  background-color: transparent;
  pointer-events: none;
}
#search-options .slider-track {
  width: 300px;
  height: 2px;
  position: absolute;
  margin: auto;
  top: -9px;
  bottom: 0;
  border-radius: 5px;
}
#search-options input[type="range"]::-webkit-slider-runnable-track {
  -webkit-appearance: none;
  height: 2px;
}
#search-options input[type="range"]::-moz-range-track {
  -moz-appearance: none;
  height: 2px;
}
#search-options input[type="range"]::-ms-track {
  appearance: none;
  height: 2px;
}
#search-options input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  height: 10px;
  width: 10px;
  background-color: #3264fe;
  cursor: pointer;
  margin-top: -9px;
  pointer-events: auto;
  border-radius: 50%;
}
#search-options input[type="range"]::-moz-range-thumb {
  -webkit-appearance: none;
  width: 10px;
  height:10px;
  cursor: pointer;
  border-radius: 50%;
  background-color: #3264fe;
  pointer-events: auto;
  border: none;
}
#search-options input[type="range"]::-ms-thumb {
  appearance: none;
  width: 10px;
  height:10px;
  cursor: pointer;
  border-radius: 50%;
  background-color: #3264fe;
  pointer-events: auto;
}
#search-options input[type="range"]:active::-webkit-slider-thumb {
  background-color: #ffffff;
  border: 1px solid #3264fe;
}
#search-options .values {
  justify-content: space-between;
  position: relative;
  display: flex;
  justify-content: space-between;
  width: 300px;
  padding: 4px 0;
  font-weight: 500;
  color: #454545;
}


#jupiterx-main {
    padding:0;
}

.name {
    font-size:1.4rem;
    font-weight:600;
    padding:10px 0;
}
.body, .body img {
    height:270px;
    object-fit:cover;
    border-radius: 0.25rem 0.25rem 0 0;
    width:100%;
}

a:hover,a {
    text-decoration:none;
}
.card {
    border:2px solid #cacaca;
    box-sizing:border-box!important;
    width:100%;

    a,a:hover {
      color: black;
      text-decoration:none;
    }
    
    img {
        height:240px;
        object-fit:cover;
        width:100%;
        }

        .header {
          display:flex;
          justify-content: space-between;
        }
}
.footer {
    padding:1rem;
}
#listings {
display:flex;
flex-wrap: wrap;
column-gap: 0.8rem;
box-sizing:border-box!important;
}



/* District Header */
.read-more-container {
    position: relative;
    margin-bottom: 20px;
}

.read-more-container p {
    overflow: hidden;
    max-height: 100px; /* initial cutoff */
    transition: max-height 0.3s ease;
}

.read-more-container.expanded p {
    max-height: 1000px; /* large enough to show full text */
}

.read-more-button {
    display: inline-block;
    margin-top: 10px;
    cursor: pointer;
    color: #0073aa;
    background: none;
    border: none;
    font-size: 16px;
    font-weight: bold;
}

.read-more-button:hover {
    text-decoration: underline;
}


/* Building Template */
.building-row {
    display: flex;
    width: 100%;
    column-gap: 2%;
    box-sizing: border-box;
    flex-wrap: wrap;
    margin-bottom: 20px;
}
.building-row > div {
    box-sizing: border-box;
}
.half-width {
    flex: 1 1 48%;
}
.full-width {
    flex: 1 1 100%;
}
/* Responsive stacking on small screens */
@media screen and (max-width: 768px) {
    .half-width {
        flex: 1 1 100%;
        margin-bottom: 10px;
    }
}
.map-container {
    width: 100%;
    height: 400px;
}
.building-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

/* Related Buildings */
.related-buildings {
    display:flex;
    justify-content:space-between;
    gap: 2%;
}

.related-buildings .card {
    flex: 1 1 33%;
}

.related-buildings .bcard {
    flex: 1 1 30%;
    border-radius: 14px !important;
    border: 1px solid #e0e0e0 !important;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08) !important;
    overflow: hidden;
    background: #fff;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.related-buildings .bcard:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.13) !important;
}
.related-buildings .bcard__img-container {
    height: 220px;
}
.related-buildings .bcard__name {
    font-size: 0.95rem;
}
.related-buildings .bcard__price {
    font-size: 0.78rem;
    background: #eff6ff;
    padding: 3px 9px;
    border-radius: 20px;
}

.bbuttons {
    display:flex;
    justify-content:start;
    gap: 2%;
    padding: 3% 0;
}

.bbuttons .bbutton {
    border-radius: 6px;
    font-size: 16px;
    text-align:center;
    padding: 8px 12px;
    width: fit-content;
    min-width:120px;
    transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.bbuttons .bbutton.red {
    background: rgb(230, 0, 0);
    color: #ffffff;
}

.bbuttons .bbutton.outline {
    background: #f9f9f9;
    border: 1px solid #494949;
    color: #494949;
}

.bbuttons .bbutton:hover {
    cursor:pointer;
    transform: scale(1.05);
}


/* Building Card */
.name {
    font-size:1.4rem;
    font-weight:600;
    padding:10px 0;
}
.body, .body img {
    height:370px;
    border-radius: 0.25rem 0.25rem 0 0;
    width:100%;
}

a:hover,a {
    text-decoration:none;
}
.footer {
    padding:1rem;
}

.num-listings-overlay:hover {
    cursor:pointer;
}


.bi-bookmark-fill {
    width: 16px;  /* desired width */
    height: 18px; /* desired height */
}


.tags_container {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.tags_container .tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: sans-serif;
  font-weight: 400;
  color: white;
  background: #007bff;
  padding: 5px 9px;
  font-size: 11px;
  line-height: 1;
  border-radius: 8px;
}


.tags_container .tag .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  transform: translateY(-0.5px);
}


/* Arrow Carousel */
.carousel {
  font-size: 62.5%;
  box-sizing: border-box;
}

/* Scoped to non-VRP pages only — global min-width:100% crushes VRP sidebar */
:not(.vrp-listing-page) .elementor img {
    min-width: 100%;
}
.vrp-listing-page .elementor img {
    min-width: 0 !important;
    max-width: 100% !important;
}


.button {
  padding: 0;
    height:26px;
    width:26px;
    font-size:14px;
  margin: 0;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  position: absolute;
    border-radius:50%;
  color: #454545;
  transform: translateY(-50%);
  top: 50%;
}

.button:hover {
    background-color: rgba(255, 255, 255, 0.8);
}

ul,
li {
  list-style: none;
  text-decoration: none;
  margin: 0;
  padding: 0;
}

.carousel {
    width:100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.carousel_slider {
  width: 100%;
height:370px;
  overflow: hidden;
  position: relative;
}

.content_inner_slider {
  width: 100%;
transition:all .3s ease-out;
  height: 100%;
  display: flex;
}

.content_inner_slider > * {
  flex: 0 0 100%;
  max-width: 100%;
}

.img {
    width:100%;
height:370px;
  object-fit: cover;
}

.prev_button {
  left: 0;
}

.next_button {
  right: 0;
}

.carousel .dots {
  display: flex;
  margin: 1rem 0;
  position: relative;
  top: -30px;
}

span.icon {
    display:flex;
    align-items:center;
}

/* Arrow icons */
span.iconx svg {
    width:12px;
    height:12px;
    fill: #898989;
    stroke: #9a9a9a;
}

.carousel  .dot {
  width: 0.5rem;
  height: 0.5rem;
  /*  border: 1px solid var(--color-text-light);*/
  border-radius: 50%;
  margin: 0 4.5px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.6);
}

.carousel .dot.active {
  background: rgba(255, 255, 255, 0.9);
}

/************************************************************
*                                                          *
*           RESULTS + MAP SPLIT PAGE LAYOUT                *
*                                                          *
************************************************************/
#map {
  touch-action: pan-x pan-y;
  width: 100%;
  height:100%;
  border-radius:0.25rem;
}

#results .results-inner {
  width:100%;
  display:flex;
  column-gap:2%;
}

/* Default two-column layout */
#results .results-inner {
    display: flex;
    gap: 1rem;
}

#results .results-inner .left {
    flex: 1; /* main content */
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

#results .results-inner .right {
    flex: 1; /* map column */
}

#results .results-inner .left {
  flex:1 1 33%;
  display:flex;
  flex-direction:column;
  row-gap:20px;
}

#results .results-inner .right {
  flex: 1 1 67%;
}

/* Building card styles (grid layout when map is off) */
#results .results-inner.full-width .left {
    flex: none;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(370px, 1fr));
    gap: 1rem;
}

/* Optional: hide the map when full-width is active */
#results .results-inner.full-width .right {
    display: none;
}

/* Example for cards */
.card {
    background: #fff;
    border-radius: 0.25rem;
    box-shadow: 0 0 5px rgba(0,0,0,0.1);
    padding: 0.5rem;
    box-sizing: border-box;
}

.num-listings-overlay a {
  color:#ffffff;
  text-decoration:none;
}

.num-listings-overlay {
  position:relative;
  right:calc(-100% + 100px);
  opacity:0.95;
  text-align:center;
  padding:5px 7px;
  color:white;
  width:100px;
  min-width:100px;
  top:-100px;
}

.card .footer .footer-inner {
  display:flex;
  column-gap:.8rem;
  justify-content:start;
  padding: 10px 0 10px 0;
}


/************************************************************
*                                                          *
*                          FILTERS                          *
*                                                          *
************************************************************/
.unit-types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); /* equal width columns */
    gap: 0.5rem;
}

.unit-types-grid label {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.sort {
    display:flex;
    margin-top:1rem;
    justify-content:end;
    width:100%;
    select,option {
        font-size:0.9rem;
    }
}

/* Remove default focus outline for all focus events */
#filters-toggle-btn:focus {
    outline: none;
}

/* Add a custom visible focus style only for keyboard navigation */
#filters-toggle-btn:focus-visible {
    outline: none; /* remove default */
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.5); /* subtle focus ring */
    border-radius: 4px; /* optional to match button corners */
}


.all-filters-container {
    border-radius: 8px;
    background: #fafafa;
    border: 1px solid rgba(0,0,0,0.1);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.all-filters-container hr {
    margin: 0;
    border: none;
    border-top: 1px solid #e5e7eb;
}

#search-options {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

#search-options .mrpc-container {
  padding: 0;
}

.seperator {
    width: 100%;
    padding: 1rem 2rem;

    .line {
        width: 100%;
        height: 1px;
        background: #ddd;
        margin: 1rem 0;
    }
}

.rrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.ccol {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 180px;
}

#search-options input[type="checkbox"] {
  margin-right: 6px;
}

#search-options small {
  color: #676767;
  padding-left: 5px;
  margin-bottom: 2px;
}

.checkbox {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.toggle-btn {
  border: none;
  background: none;
  font-size: 1rem;
  color: var(--bright-blue);
  cursor: pointer;
}



.advanced {
  max-height: 0;           /* collapsed */
  overflow: hidden;
  transition: max-height 0.6s ease, padding 0.6s ease;
  padding: 0 1rem;         /* horizontal padding stays */
}

.advanced.active {
  max-height: 500px;       /* large enough to fit content */
  padding: 1rem;           /* vertical padding expands */
}


.reset {
  font-size: 16px;
  cursor: pointer;
}
.reset:hover {
  color: var(--bright-blue);
}

.advanced-content {
    display:flex;
    width: 100%;
    flex-direction:row;
    justify-content:space-between;
    flex-wrap: wrap;
    gap: 2%;
}
.advanced-content .section {
    flex: 1 1 33%;
}


/************************************************************
*                                                          *
*                         INFO FORM                         *
*                                                          *
************************************************************/
.request-info {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  display:flex;
  padding: 24px;
  width:100%;
  margin: 40px auto;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

/* === Header === */
.request-info h2 {
  font-size: 1.6rem;
  margin-bottom: 0.2em;
  color: #222;
}

.request-info h4 {
  font-size: 1rem;
  color: #666;
  margin-top: 0;
}

.request-info hr {
  border: 0;
  height: 1px;
  background: #eee;
  margin: 1em 0;
}

/* === Contact List === */
.contact-list {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  font-size: 0.9rem;
  line-height: 1.6;
}

.contact-list a {
  color: #0077cc;
  text-decoration: none;
}

.contact-list a:hover {
  text-decoration: underline;
}

/* === Form === */
.info-form {
  display: flex;
  flex-direction: column;
  flex: 1 1 50%;
  gap: 15px;
}

.form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.info-form input,
.info-form select,
.info-form textarea {
  flex: 1;
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 0.95rem;
  transition: border-color 0.2s;
}

.info-form input:focus,
.info-form select:focus,
.info-form textarea:focus {
  border-color: #0077cc;
  outline: none;
}

/* === Submit Button === */
.submit-btn {
  background: #e60000;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 12px 18px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s;
}

.submit-btn:hover {
  background: #c20000;
}
.info-header {
  flex: 1 1 50%;
}

/************************************************************
*                                                          *
*                         MRPC BOOTSTRAP                    *
*                                                          *
************************************************************/
.mrpc-page {
  width:100%!important;
  min-width:100%!important;
  max-width:1140px!important;
  padding:1rem;
}

/* List of N+D */
.mrpc-container {
    display:flex;
    flex-wrap:wrap;
    column-gap:1rem;
    width:100%;
}

.mrpc-container .section {
    flex: 1 1 33%;
    min-width:30%;
    padding:1rem 0;
    display:flex;
    flex-direction:column;
    row-gap:.8rem;
}

.mrpc-container .section .h2 {
    font-size:1.2rem;
}
.mrpc-container .section .list {
display:flex;
flex-direction:row;
    flex-wrap:wrap;
row-gap:.8rem;
    
    a {
        width:40%;
    }
}


/************************************************************
*                                                          *
*                      MAP TOGGLE UI                        *
*                                                          *
************************************************************/
.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 26px;
}

/* Hide the default checkbox */
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

/* The slider */
.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: 0.3s;
  border-radius: 34px;
}

/* Circle inside the slider */
.slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
}

/* When checked */
input:checked + .slider {
  background-color: var(--slider-colour);
}

input:checked + .slider:before {
  transform: translateX(24px);
}

.map-hidden {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}

.map-visible {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease;
}


/************************************************************
*                                                          *
*                    NEWSLETTER POPUP                      *
*                                                          *
************************************************************/

.zima-popup-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.zima-popup {
  background: #fff;
  padding: 2rem;
  border-radius: 12px;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
  position: relative;
  text-align: center;
  font-family: 'Georgia', serif;
}

.zima-popup h2 {
  margin-top: 0;
  font-size: 1.6rem;
}

.zima-popup p {
  font-size: 1rem;
  margin: 0.5rem 0 1rem;
  color: #444;
}

.zima-popup input[type="email"] {
  width: 100%;
  padding: 0.6rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  margin-bottom: 1rem;
  font-size: 1rem;
}

.zima-submit-btn {
  background: #2c6c91;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 0.6rem 1.2rem;
  font-size: 1rem;
  cursor: pointer;
}

.zima-submit-btn:hover {
  background: #1f4f6a;
}

.zima-popup-close {
  position: absolute;
  top: 10px; right: 10px;
  background: transparent;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #555;
}

.zima-popup-close:hover {
  color: #000;
}


#mrpc-nfinder-table td.status small {
    color: #666;
    display: block;
    margin-top: 2px;
}


/************************************************************
 *                                                          *
 *                    BUILDING CARD (v2)                    *
 *                                                          *
 ************************************************************/

/* Reset .card defaults that clash with the new design */
.bcard.card {
    border: 1px solid #e5e7eb;
    box-shadow: none;
    padding: 0;
}

/* Force arrow to always show white — overrides .card a { color: black } */
.bcard .bcard__arrow,
.bcard .bcard__arrow:hover {
    color: #fff !important;
}

.bcard {
    width: 100%;
    background: #fff;
    box-sizing: border-box;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

/* Header: name + price */
.bcard__header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 12px 14px 8px;
    gap: 8px;
}

.bcard__header a {
    text-decoration: none;
    flex: 1;
    min-width: 0;
}

.bcard__name {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
    padding: 0;
    line-height: 1.3;
    letter-spacing: 0.02em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bcard__name:hover {
    color: var(--bright-blue);
}

.bcard__price {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--bright-blue);
    white-space: nowrap;
    flex-shrink: 0;
    letter-spacing: 0.02em;
}

/* Image section */
.bcard__image-wrap {
    position: relative;
    width: 100%;
    line-height: 0;
}

/* Container controls the height so theme `height:auto` can't win */
.bcard__img-container {
    width: 100%;
    height: 280px;
    overflow: hidden;
    display: block;
    line-height: 0;
}

.bcard__img {
    width: 100%;
    height: 100% !important;
    object-fit: cover !important;
    display: block;
}

/* Top tags strip overlaid on image */
.bcard__tags {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 2;
    display: flex;
    gap: 1px;
    background: rgba(0, 0, 0, 0.30);
    padding: 7px 10px;
}

.bcard__tag {
    font-size: 10px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.06em;
    padding: 0 8px 0 0;
    line-height: 1.4;
}

.bcard__tag + .bcard__tag::before {
    content: '/';
    margin-right: 8px;
    opacity: 0.6;
}

/* Bottom bar overlaid on image */
.bcard__image-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.40);
    padding: 7px 12px;
    line-height: 1;
}

.bcard__unit-info {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    font-size: 10px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.85);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* "No Listings" — muted */
.bcard__listings {
    color: rgba(255, 255, 255, 0.65);
}

/* "X Listings" — red pill */
.bcard__listings.bcard__listings--has {
    background: rgba(230, 0, 0, 0.9);
    color: #fff;
    padding: 1px 7px;
    border-radius: 3px;
}

/* Save button inside image bar */
.bcard__save {
    display: flex;
    align-items: center;
    gap: 5px;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
    cursor: pointer;
    padding: 0;
    text-transform: uppercase;
    line-height: 1;
    transition: opacity 0.2s;
}

.bcard__save:hover {
    opacity: 0.8;
}

.bcard__save svg {
    width: 12px;
    height: 14px;
    flex-shrink: 0;
}

/* Body: address row + excerpt */
.bcard__body {
    padding: 10px 14px 14px;
}

.bcard__address-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.bcard__address {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1a1a1a;
    letter-spacing: 0.02em;
    line-height: 1.3;
}

/* Circular right-arrow button */
.bcard__arrow {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #1a1a1a;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: background 0.2s;
}

.bcard__arrow:hover {
    background: var(--bright-blue);
}

.bcard__arrow svg {
    width: 13px;
    height: 13px;
    fill: currentColor;
}

.bcard__excerpt {
    font-size: 0.88rem;
    color: #555;
    line-height: 1.55;
    margin: 0;
}

.bcard__excerpt a {
    color: var(--bright-blue);
    font-weight: 500;
    text-decoration: none;
}

.bcard__excerpt a:hover {
    text-decoration: underline;
}

.bcard__divider {
    display: none;
}




/************************************************************
 *                                                          *
 *                   LISTING DETAIL PAGE                    *
 *                                                          *
 ************************************************************/

/*
 * WordPress automatically adds body class "single-listing" on listing pages.
 * We use it to break out of JupiterX's constrained content wrapper so the
 * MRP VRP content can render at full viewport width.
 */

/* 1. Remove JupiterX content wrapper width constraints on listing pages */
body.single-listing #jupiterx-main,
body.single-listing #jupiterx-content,
body.single-listing .jupiterx-main,
body.single-listing #content,
body.single-listing .site-content,
body.single-listing .entry-content,
body.single-listing .post-content,
body.single-listing .mrpc-page,
body.vrp-listing-page #jupiterx-main,
body.vrp-listing-page #jupiterx-content,
body.vrp-listing-page .jupiterx-main,
body.vrp-listing-page #content,
body.vrp-listing-page .site-content,
body.vrp-listing-page .entry-content,
body.vrp-listing-page .post-content,
body.vrp-listing-page .mrpc-page {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

body.single-listing .jupiterx-primary,
body.single-listing #jupiterx-primary,
body.vrp-listing-page .jupiterx-primary,
body.vrp-listing-page #jupiterx-primary {
    max-width: 100% !important;
    width: 100% !important;
    flex: 0 0 100% !important;
    padding: 0 !important;
}

body.single-listing .jupiterx-secondary,
body.single-listing #jupiterx-secondary,
body.single-listing .jupiterx-sidebar,
body.vrp-listing-page .jupiterx-secondary,
body.vrp-listing-page #jupiterx-secondary,
body.vrp-listing-page .jupiterx-sidebar {
    display: none !important;
}

/* 2. Our own wrapper elements */
.listing-page-wrap {
    width: 100%;
    box-sizing: border-box;
}

.listing-vrp-wrap {
    width: 100%;
    box-sizing: border-box;
}

/* 3. Breadcrumb */
.listing-breadcrumb {
    max-width: 1400px;
    margin: 0 auto;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: #666;
    flex-wrap: wrap;
}
.listing-breadcrumb a {
    color: var(--bright-blue);
    text-decoration: none;
}
.listing-breadcrumb a:hover { text-decoration: underline; }
.listing-breadcrumb span { color: #bbb; }

html.is-listing-detail #listing-breadcrumb {
    display: flex !important;
}

/* 4. Back link */
.listing-back-wrap {
    max-width: 1400px;
    margin: 0 auto;
    padding: 16px 24px 32px;
}
.listing-back-wrap a {
    color: var(--bright-blue);
    font-size: 0.9rem;
    text-decoration: none;
    font-weight: 500;
}
.listing-back-wrap a:hover { text-decoration: underline; }

/************************************************************
*                                                           *
*    SKELETON LOADERS (building page: map + listings)       *
*                                                           *
*    Activated by .mrpc-building-loading on <html>, set by  *
*    an inline script in templates/building.php and removed *
*    by js/skeletons.js after window.load. If JS is off,    *
*    the class is never set, so real content is visible     *
*    immediately and skeletons stay hidden.                 *
*                                                           *
************************************************************/

/* Shared shimmer animation */
@keyframes mrpc-skeleton-shimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.mrpc-skeleton-bg {
    background: linear-gradient(
        90deg,
        #eceff1 0%,
        #f6f8f9 50%,
        #eceff1 100%
    );
    background-size: 200% 100%;
    animation: mrpc-skeleton-shimmer 1.6s linear infinite;
}

/* --- MAP SKELETON --- */
.mrpc-map-skeleton {
    display: none; /* default off; activated via .mrpc-building-loading below */
}
.mrpc-building-loading .mrpc-map-skeleton {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 300px;
    border-radius: 0.25rem;
    background: linear-gradient(
        90deg,
        #e3e8ed 0%,
        #f1f4f6 50%,
        #e3e8ed 100%
    );
    background-size: 200% 100%;
    animation: mrpc-skeleton-shimmer 1.6s linear infinite;
}

/* --- LISTINGS SKELETON --- */
.mrpc-listings-skeleton {
    display: none; /* default off */
}
.mrpc-building-loading .mrpc-listings-skeleton {
    display: block;
    width: 100%;
    padding: 1.5rem 3% 2rem;
    box-sizing: border-box;
}
.mrpc-listings-skeleton__header {
    height: 28px;
    width: 240px;
    max-width: 60%;
    border-radius: 4px;
    margin-bottom: 1.25rem;
    background: linear-gradient(
        90deg,
        #eceff1 0%, #f6f8f9 50%, #eceff1 100%
    );
    background-size: 200% 100%;
    animation: mrpc-skeleton-shimmer 1.6s linear infinite;
}
.mrpc-listings-skeleton__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}
@media (max-width: 900px) {
    .mrpc-listings-skeleton__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 560px) {
    .mrpc-listings-skeleton__grid {
        grid-template-columns: 1fr;
    }
}
.mrpc-listings-skeleton__card {
    height: 280px;
    border-radius: 8px;
    background: linear-gradient(
        90deg,
        #eceff1 0%, #f6f8f9 50%, #eceff1 100%
    );
    background-size: 200% 100%;
    animation: mrpc-skeleton-shimmer 1.6s linear infinite;
}

/* While loading, hide the real listings content so the user never sees the
   "unstyled flash" before MyRealPage's external CSS finishes loading. */
.mrpc-building-loading .mrpc-listings-content {
    visibility: hidden;
    /* Keep the box in flow so layout doesn't jump when skeleton is removed
       and listings reveal — but only if listings have a reasonable min height. */
    min-height: 0;
    height: 0;
    overflow: hidden;
}

/* Smooth fade when skeleton goes away */
.mrpc-map-skeleton,
.mrpc-listings-skeleton {
    transition: opacity 0.25s ease-out;
}
.mrpc-building-loaded .mrpc-map-skeleton,
.mrpc-building-loaded .mrpc-listings-skeleton {
    opacity: 0;
    pointer-events: none;
}

