/*
Theme Name: ShoreAgency
Description: Child theme of Hello Elementor.
Author: Shore360Agency
Template: hello-elementor
Version: 1.0.0
Text Domain: shoreagency
*/

/* Custom styles go below */

/* Property Viewed - slick slider */

.elementor-editor-active .slider-for .slider-for__slide,
.elementor-editor-active .slider-nav .slider-nav__thumb {
  display: none !important;
}
.elementor-editor-active .slider-for .slider-for__slide:first-child,
.elementor-editor-active .slider-nav .slider-nav__thumb:first-child {
  display: block !important;
}


.property-gallery-wrapper {
  width: 1356px;
  max-width: 100%;
  margin: 0 auto 32px;
  position: relative;
  box-sizing: border-box;
  overflow: visible !important;
}

/* ── Single image fallback ── */
.pg-single-image { width: 100%; height: 702px; }
.pg-single-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 4px;
}

/* ══════════════════════════════
   MAIN SLIDER  1356 × 702
══════════════════════════════ */
.slider-for {
  width: 100%;
  height: 702px;
  margin-bottom: 15px;
  position: relative;
  overflow: visible !important;
  box-sizing: border-box;
}

.slider-for .slick-list {
  overflow: hidden !important;
  border-radius: 4px;
  height: 702px !important;
}
.slider-for .slick-track { height: 702px !important; }

.slider-for .slick-slide {
  opacity: 0;
  height: 702px !important;
  transition: opacity 0.4s ease !important;
}
.slider-for .slick-slide > div { height: 100%; }
.slider-for .slick-slide.slick-active { opacity: 1; }

.slider-for .slider-for__slide { height: 702px; }
.slider-for .slider-for__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Ensure the main image shows its full content */
#carousel-main .swiper-slide img {
    width: 100% !important;
    height: auto !important;
    max-height: 500px; /* Adjust this height as needed */
    object-fit: contain !important; /* This shows the full image without cropping */
    background-color: #f8f8f8; /* Optional: adds a neutral background for portrait images */
}

/* Fix for the thumbnails to show full content */
#carousel-preview .swiper-slide img {
    width: 100% !important;
    height: 80px !important; /* Consistent thumbnail height */
    object-fit: cover !important; /* Thumbnails usually look better filled */
}

/* This stops the "Zoom" and shows the whole photo */
#carousel-main .swiper-slide img {
    width: 100% !important;
    height: 500px !important; /* Set your desired height */
    object-fit: contain !important; /* This is the "Magic" - it shows the FULL image */
    background-color: #f1f1f1; /* Optional: fills the empty side gaps with light gray */
}

/* 1. Reset the Slide Container to not force a height */
#carousel-main .e-con,
#carousel-main .elementor-widget-container,
#carousel-main .swiper-slide {
    height: auto !important;
    min-height: unset !important;
}

/* 2. Fix the Image specifically */
#carousel-main .swiper-slide img {
    width: 100% !important;
    height: auto !important; /* Let the image dictate the height */
    max-height: 600px !important; /* Cap it so it doesn't get too tall */
    object-fit: contain !important; /* SHOW THE FULL IMAGE */
    object-position: center !important;
    transform: none !important; /* Removes any accidental 'scale' effects */
}

/* ══════════════════════════════
   MAIN ARROWS — DESKTOP
   105px, half outside (–52.5px)
══════════════════════════════ */
.slider-for .slick-prev,
.slider-for .slick-next {
  position: absolute !important;
  z-index: 100 !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 105px !important;
  height: 105px !important;
  background: #ffffff !important;
  border-radius: 50% !important;
  border: none !important;
  box-shadow: 0 2px 16px rgba(0,0,0,0.15) !important;
  font-size: 0 !important;
  line-height: 0 !important;
  color: transparent !important;
  padding: 0 !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: background 0.3s ease, box-shadow 0.3s ease !important;
}

.slider-for .slick-prev { left: -52.5px !important; }
.slider-for .slick-next { right: -52.5px !important; }

/* Hover — red bg, white chevron */
.slider-for .slick-prev:hover,
.slider-for .slick-next:hover {
  background: #D90000 !important;
  box-shadow: 0 4px 20px rgba(217,0,0,0.3) !important;
}

/* ── Desktop left chevron ── */
.slider-for .slick-prev:before {
  content: '' !important;
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  width: 30px !important;
  height: 30px !important;
  border-left: 4px solid #000 !important;
  border-bottom: 4px solid #000 !important;
  transform: translate(-30%, -50%) rotate(45deg) !important;
  transition: border-color 0.3s ease !important;
  background: transparent !important;
  display: block !important;
  opacity: 1 !important;
}
.slider-for .slick-prev:hover:before {
  border-color: #ffffff !important;
}

/* ── Desktop right chevron ── */
.slider-for .slick-next:before {
  content: '' !important;
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  width: 30px !important;
  height: 30px !important;
  border-right: 4px solid #000 !important;
  border-bottom: 4px solid #000 !important;
  transform: translate(-70%, -50%) rotate(-45deg) !important;
  transition: border-color 0.3s ease !important;
  background: transparent !important;
  display: block !important;
  opacity: 1 !important;
}
.slider-for .slick-next:hover:before {
  border-color: #ffffff !important;
}

/* ══════════════════════════════
   THUMBNAIL STRIP  1356 × 104
══════════════════════════════ */
.slider-nav {
  width: 100%;
  max-width: 1356px;
  height: 104px;
  margin: 0 auto;
  position: relative;
  box-sizing: border-box;
  overflow: hidden !important;
}

/* Edge vignette */
.slider-nav::before,
.slider-nav::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 336px;
  z-index: 10;
  pointer-events: none;
}
.slider-nav::before {
  left: 0;
  background: linear-gradient(to right, rgba(255,255,255,0.82) 0%, rgba(255,255,255,0) 100%);
}
.slider-nav::after {
  right: 0;
  background: linear-gradient(to left, rgba(255,255,255,0.82) 0%, rgba(255,255,255,0) 100%);
}

.slider-nav .slick-list {
  overflow: hidden !important;
  height: 104px !important;
  margin: 0 !important;
}
.slider-nav .slick-track {
  display: flex !important;
  align-items: stretch !important;
  height: 104px !important;
  margin: 0 !important;
  padding: 0 !important;
}
.slider-nav .slick-slide { height: 104px !important; }
.slider-nav .slick-slide > div { height: 100%; }

.slider-nav .slider-nav__thumb {
  padding: 0 3px;
  cursor: pointer;
  outline: none;
  height: 104px;
  box-sizing: border-box;
}
.slider-nav .slider-nav__thumb img {
  width: 100%;
  height: 104px;
  object-fit: cover;
  display: block;
  border-radius: 2px;
  border: 3px solid transparent;
  opacity: 1;
  box-sizing: border-box;
  transition: border-color 0.25s ease, opacity 0.25s ease;
}
.slider-nav .slick-current .slider-nav__thumb img {
  border-color: #000;
  opacity: 1;
}
.slider-nav .slider-nav__thumb:hover img { opacity: 1; }

/* ── Thumbnail arrows — bare chevron ── */
.slider-nav .slick-prev,
.slider-nav .slick-next {
  position: absolute !important;
  z-index: 20 !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 28px !important;
  height: 28px !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  font-size: 0 !important;
  line-height: 0 !important;
  color: transparent !important;
  padding: 0 !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}
.slider-nav .slick-prev { left: 6px !important; }
.slider-nav .slick-next { right: 6px !important; }

.slider-nav .slick-prev:before {
  content: '' !important;
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  width: 10px !important;
  height: 10px !important;
  border-left: 2.5px solid #444 !important;
  border-bottom: 2.5px solid #444 !important;
  transform: translate(-30%, -50%) rotate(45deg) !important;
  background: transparent !important;
  display: block !important;
  opacity: 1 !important;
  transition: border-color 0.2s ease !important;
}
.slider-nav .slick-prev:hover:before { border-color: #D90000 !important; }

.slider-nav .slick-next:before {
  content: '' !important;
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  width: 10px !important;
  height: 10px !important;
  border-right: 2.5px solid #444 !important;
  border-bottom: 2.5px solid #444 !important;
  transform: translate(-70%, -50%) rotate(-45deg) !important;
  background: transparent !important;
  display: block !important;
  opacity: 1 !important;
  transition: border-color 0.2s ease !important;
}
.slider-nav .slick-next:hover:before { border-color: #D90000 !important; }

/* ── No images message ── */
.pg-no-images {
  text-align: center;
  color: #999;
  padding: 20px;
}

/* ══════════════════════════════
   TABLET  768px – 1024px
   Arrows inside, 60px
══════════════════════════════ */
@media (min-width: 768px) and (max-width: 1024px) {
  .property-gallery-wrapper { overflow: hidden !important; }

  .slider-for,
  .slider-for .slick-list,
  .slider-for .slick-track,
  .slider-for .slick-slide,
  .slider-for .slider-for__slide,
  .pg-single-image { height: 480px !important; }
  .slider-for .slider-for__slide img,
  .pg-single-image img { height: 480px; }

  .slider-nav,
  .slider-nav .slick-list,
  .slider-nav .slick-track,
  .slider-nav .slick-slide,
  .slider-nav .slider-nav__thumb,
  .slider-nav .slider-nav__thumb img { height: 80px !important; }

  /* 60px arrows fully inside */
  .slider-for .slick-prev,
  .slider-for .slick-next {
    width: 65px !important;
    height: 65px !important;
  }
  .slider-for .slick-prev { left: 10px !important; }
  .slider-for .slick-next { right: 10px !important; }

  /* Proportional chevron for 60px circle */
  .slider-for .slick-prev:before,
  .slider-for .slick-next:before {
    width: 30px !important;
    height: 30px !important;
    border-width: 4px !important;
	border-radius: 3px
  }
}

/* ══════════════════════════════
   MOBILE  413px – 767px
   Arrows inside, 60px
══════════════════════════════ */
@media (min-width: 413px) and (max-width: 767px) {
  .property-gallery-wrapper { overflow: hidden !important; }

  .slider-for,
  .slider-for .slick-list,
  .slider-for .slick-track,
  .slider-for .slick-slide,
  .slider-for .slider-for__slide,
  .pg-single-image { height: 320px !important; }
  .slider-for .slider-for__slide img,
  .pg-single-image img { height: 320px; }

  .slider-nav,
  .slider-nav .slick-list,
  .slider-nav .slick-track,
  .slider-nav .slick-slide,
  .slider-nav .slider-nav__thumb,
  .slider-nav .slider-nav__thumb img { height: 70px !important; }

  .slider-for .slick-prev,
  .slider-for .slick-next {
    width: 50px !important;
    height:50px !important;
  }
  .slider-for .slick-prev { left: 3px !important; }
  .slider-for .slick-next { right: 3px !important; }

  .slider-for .slick-prev:before,
  .slider-for .slick-next:before {
    width: 14px !important;
    height: 14px !important;
    border-width: 2.5px !important;
  }
}

/* ══════════════════════════════
   MOBILE  ≤ 412px
   Arrows inside, 45px
══════════════════════════════ */
@media (max-width: 412px) {
  .property-gallery-wrapper { overflow: hidden !important; }

  .slider-for,
  .slider-for .slick-list,
  .slider-for .slick-track,
  .slider-for .slick-slide,
  .slider-for .slider-for__slide,
  .pg-single-image { height: 220px !important; }
  .slider-for .slider-for__slide img,
  .pg-single-image img { height: 220px; }

  .slider-nav,
  .slider-nav .slick-list,
  .slider-nav .slick-track,
  .slider-nav .slick-slide,
  .slider-nav .slider-nav__thumb,
  .slider-nav .slider-nav__thumb img { height: 60px !important; }

  /* 45px arrows inside */
  .slider-for .slick-prev,
  .slider-for .slick-next {
    width: 35px !important;
    height: 35px !important;
  }
  .slider-for .slick-prev { left: 10px !important; }
  .slider-for .slick-next { right: 10px !important; }

  /* 12×12 chevron for 45px circle */
  .slider-for .slick-prev:before,
  .slider-for .slick-next:before {
    width: 15px !important;
    height: 15px !important;
    border-width: 2px !important;

  }
}

/* OUR PROPERTIES CSS  */

/* The Grid Layout */
.custom-listing-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 columns like your image */
    gap: 20px;
    padding: 20px;
}

/* The Individual Card */
.listing-card {
    position: relative;
    border: 1px solid #eee;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    transition: 0.3s;
}

.listing-card:hover {
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* Featured Tag Overlay */
.featured-tag {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #ff4d4d;
    color: #fff;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    z-index: 10;
}

.sa-feed,
.sa-feed *,
.sa-feed *::before,
.sa-feed *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ── Tokens ────────────────────────────────────────────────────────────────── */
.sa-feed {
    --sa-red:          #e31b23;
    --sa-red-active:   #D90000;
    --sa-dark:         #1a1a2e;
    --sa-text:         #333;
    --sa-muted:        #A4A4A4;
    --sa-border:       #e0e0e0;

    font-family: "Gotham", "Gotham SSm", -apple-system, BlinkMacSystemFont,
                 "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--sa-text);
    background: #ffffff;
    max-width: 1440px;
    margin: 0 auto;
    padding: 24px;
}


.sa-feed .sa-card,
.sa-feed .sa-card__img-wrap,
.sa-feed .sa-card__img,
.sa-feed .sa-card__badge,
.sa-feed .sa-btn,
.sa-feed .sa-btn--solid,
.sa-feed .sa-btn--outline,
.sa-feed .sa-feed__dropdown,
.sa-feed .sa-feed__map {
    border-radius: 0 !important;
}

.sa-feed__topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    padding: 0 0 24px 0;
    margin-bottom: 24px;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}


.sa-feed__count {
    font-family: inherit;
    font-size: 20px;
    font-weight: 700;
    color: #000000;
    letter-spacing: .5px;
}
.sa-feed__count strong {
    color: var(--sa-dark);
    font-weight: 700;
}

.sa-feed__controls {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* ── Dropdown base ─────────────────────────────────────────────────────────── */
.sa-feed__dropdown {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    height: 52px;
    font-family: inherit;
    font-size: 20px !important;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .5px;
    cursor: pointer;

    color: var(--sa-muted) !important;
    background: transparent !important;
    border: 1px solid var(--sa-muted) !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    outline: none !important;
    transition: none !important;
}


.sa-feed__dropdown--refine {
    width: 245px;
    padding: 10px 20px;
}


.sa-feed__dropdown--sort {
    width: 305px;
    padding: 10px 15px 10px 15px;
	width: fit-content;
}

.sa-feed__dropdown-text {
    white-space: nowrap;
}

/* Chevron icon (Chevron-Down.svg) */
.sa-feed__dropdown-chevron {
    flex-shrink: 0;
    width: 30px;
    height: 16px;
    opacity: .7;
}


.sa-feed__dropdown:hover,
.sa-feed__dropdown:focus,
.sa-feed__dropdown:active,
.sa-feed__dropdown:visited {
    color: var(--sa-muted) !important;
    background: transparent !important;
    border-color: var(--sa-muted) !important;
    box-shadow: none !important;
    outline: none !important;
}
.sa-feed__dropdown:hover .sa-feed__dropdown-chevron,
.sa-feed__dropdown:focus .sa-feed__dropdown-chevron {
    opacity: .7;
	margin-left: 10px
}


.sa-feed__grid {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.sa-feed__listings {
    flex: 0 0 65%;
    max-width: 65%;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.sa-feed__map-col {
    flex: 0 0 35%;
    max-width: 35%;
    position: sticky;

    height: calc(100vh - 48px);
}

.sa-feed__map {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 117%;
    height: 100%;
    background: #ffffff;
    color: #bbb;
    font-size: 14px;
    font-weight: 500;
    user-select: none;
}


.sa-card {
    width: 100 !important; 
    background: #ffffff;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,.04);
    transition: none !important;
}
.sa-card:hover {
    box-shadow: 0 1px 4px rgba(0,0,0,.04) !important;
    transform: none !important;
}

/* ── Image ─────────────────────────────────────────────────────────────────── */
.sa-card__img-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #e8e8e8;
}
.sa-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: none !important;
}
.sa-card:hover .sa-card__img {
    transform: none !important;
}

/* Featured badge */
.sa-card__badge {
    position: absolute;
    top: 14px;
    left: 14px;
    padding: 4px 12px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .8px;
    color: #fff;
    background: var(--sa-red);
    z-index: 2;
}

/* ── Heart overlay — SVG has its own red triangle + white heart ────────────── */
.sa-card__heart-overlay {
    position: absolute;
    top: 0;
    right: 0;
    width: 140px;
    height: 72px;
    z-index: 3;
    display: block;
    pointer-events: none;
}

/* Hide old heart markup remnants */
.sa-card__fav,
.sa-card__fav-triangle,
.sa-card__fav-icon {
    display: none !important;
}

/* ── Card body ─────────────────────────────────────────────────────────────── */
.sa-card__body {
    padding: 20px 24px 28px;
    background: #F4F4F4;
}

.sa-card__date {
    display: block;
    font-size: 13px;
    font-weight: 400;
    color: var(--sa-muted);
    margin-bottom: 6px;
}

/* Address — bold red */
.sa-card__address {
    font-size: 22px;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 4px;
}
.sa-card__address a {
    color: var(--sa-red);
    text-decoration: none;
}
.sa-card__address a:hover {
    color: var(--sa-red);
    text-decoration: none;
}

.sa-card__avail {
    font-size: 13px;
    color: var(--sa-muted);
    margin-bottom: 18px;
}

/* ── Meta icon row ─────────────────────────────────────────────────────────── */
.sa-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 56px;
    padding: 16px 0;
    margin-bottom: 18px;
}
.sa-card__meta-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 600;
    color: var(--sa-text);
    white-space: nowrap;
}
.sa-card__meta-item img {
    flex-shrink: 0;
    opacity: .8;
}

/* ── Price ──────────────────────────────────────────────────────────────────── */
.sa-card__price {
    font-size: 24px;
    font-weight: 800;
    color: var(--sa-dark);
    margin-bottom: 50px !important;
}
.sa-card__price-label {
    font-size: 25px;
    font-weight: 900;
    color: var(--sa-text);
}

/* ═══════════════════════════════════════════════════════════════════════════════
   BUTTONS — stacked, 100% width, square, no hover effects
   ═══════════════════════════════════════════════════════════════════════════════ */
.sa-card__actions {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sa-btn {
    display: block !important;
    width: 99% !important;
    padding: 15px 20px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .8px;
    text-decoration: none;
    cursor: pointer;
    font-family: inherit;
    text-align: center;
    border-radius: 0 !important;
    transition: none !important;
}

/* Solid red BOOK NOW */
.sa-btn--solid {
    background: var(--sa-red) !important;
    color: #fff !important;
    border: 2px solid var(--sa-red) !important;
}
.sa-btn--solid:hover,
.sa-btn--solid:focus,
.sa-btn--solid:active {
    background: var(--sa-red) !important;
    color: #fff !important;
    border-color: var(--sa-red) !important;
    box-shadow: none !important;
}

/* White + red border VIEW MORE */
.sa-btn--outline {
    background: #ffffff !important;
    color: var(--sa-red) !important;
    border: 1px solid var(--sa-red) !important;
}
.sa-btn--outline:hover,
.sa-btn--outline:focus,
.sa-btn--outline:active {
    background: #ffffff !important;
    color: var(--sa-red) !important;
    border-color: var(--sa-red) !important;
    box-shadow: none !important;
}

/* No results */
.sa-feed__empty {
    text-align: center;
    padding: 60px 20px;
    font-size: 16px;
    color: var(--sa-muted);
}

.sa-pagination {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 16px;
    padding-top: 28px;
}

.sa-pagination__links {
    display: flex;
    gap: 5px;                /* boxes touch, like Image 11 */
}

.sa-pagination__item a,
.sa-pagination__item span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 14px;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    text-decoration: none;
    border-radius: 4px !important;      /* ★ small radius per brief */
    transition: none !important;
}

/* ★ Inactive pages — light gray */
.sa-pagination__item a {
    color: #555;
    background: #e0e0e0;
    border: 1px solid #d0d0d0;
}
.sa-pagination__item a:hover {
    color: #fff;
    background: var(--sa-red-active);
    border-color: var(--sa-red-active);
}

/* ★ Active page — solid #D90000 red with white text */
.sa-pagination__item span.current {
    color: #fff !important;
    background: var(--sa-red-active) !important;
    border: 1px solid var(--sa-red-active) !important;
    border-radius: 4px !important;
}

/* ★ Prev / Next arrows — darker gray */
.sa-pagination__item a.prev,
.sa-pagination__item a.next {
    background: #D9D9D9;
    color: #D9D9D9;
    border-color: #D9D9D9;
    font-size: 14px;
}
.sa-pagination__item a.prev:hover,
.sa-pagination__item a.next:hover {
    background: #D9D9D9;
    border-color: #D9D9D9;
}

/* Dots */
.sa-pagination__item span.dots {
    background: transparent;
    border: none;
    color: var(--sa-muted);
}

/* "1 - 13 of Listings" */
.sa-pagination__info {
    font-size: 14px;
    font-weight: 400;
    color: var(--sa-muted);
    margin-top: 6px;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
    .sa-feed__grid {
        flex-direction: column;
    }
    .sa-feed__listings,
    .sa-feed__map-col {
        flex: 0 0 100%;
        max-width: 100%;
    }
    .sa-feed__map-col {
        position: relative;
        top: 0;
        height: 320px;
        order: -1;
    }
    .sa-feed {
        padding: 16px;
    }
    /* Dropdowns go full-width on tablet */
    .sa-feed__dropdown--refine,
    .sa-feed__dropdown--sort {
        width: 100%;
    }
}

@media (max-width: 600px) {
    .sa-feed__topbar {
        flex-direction: column;
        align-items: stretch;
    }
    .sa-feed__controls {
        flex-direction: column;
    }
    .sa-feed__dropdown--refine,
    .sa-feed__dropdown--sort {
        width: 100%;
        justify-content: space-between;
    }
    .sa-feed__count {
        font-size: 16px;
    }
    .sa-feed__dropdown {
        font-size: 16px !important;
        height: 48px;
    }
    .sa-card__body {
        padding: 16px;
    }
    .sa-card__address {
        font-size: 18px;
    }
    .sa-card__price {
        font-size: 20px;
    }
    .sa-card__meta {
        gap: 52px;
    }
    .sa-feed__map-col {
        height: 220px;
    }
}

/* ══════════════════════════════════════════════════════
   REFINE SEARCH PANEL
══════════════════════════════════════════════════════ */

/* Panel wrapper */
.sa-refine-panel {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  width: 300px;
  background: #ffffff;
  border: 1px solid #e0e0e0;
  box-shadow: 0 6px 24px rgba(0,0,0,0.08);
  z-index: 500;
  box-sizing: border-box;
}
.sa-refine-panel.is-open { display: block; }

.sa-refine-inner {
  padding: 20px;
}

/* Active state on toggle button */
.sa-feed__dropdown--refine.is-active .sa-feed__dropdown-chevron {
  transform: rotate(180deg);
}
.sa-feed__dropdown-chevron {
  transition: transform 0.25s ease;
}

/* Price row */
.sa-refine-row--price {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}
.sa-refine-field { flex: 1; }
.sa-refine-field--full {
  width: 100%;
  margin-bottom: 14px;
}

/* Labels */
.sa-refine-label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: #222222;
  margin-bottom: 6px;
}

/* Inputs */
.sa-refine-input {
  width: 100%;
  height: 36px;
  border: 1px solid #cccccc;
  border-radius: 0 !important;
  padding: 0 10px;
  font-size: 13px;
  color: #333;
  box-sizing: border-box;
  outline: none;
  -moz-appearance: textfield;
  transition: border-color 0.2s ease;
}
.sa-refine-input::-webkit-inner-spin-button,
.sa-refine-input::-webkit-outer-spin-button { -webkit-appearance: none; }
.sa-refine-input:focus { border-color: #e31b23; }

/* Select */
.sa-refine-select-wrap {
  position: relative;
}
.sa-refine-select {
  width: 100%;
  height: 36px;
  border: 1px solid #cccccc;
  border-radius: 0 !important;
  padding: 0 30px 0 10px;
  font-size: 13px;
  color: #333;
  appearance: none;
  -webkit-appearance: none;
  background: #ffffff;
  outline: none;
  cursor: pointer;
  box-sizing: border-box;
  transition: border-color 0.2s ease;
}
.sa-refine-select:focus { border-color: #e31b23; }
.sa-refine-select-arrow {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  color: #666;
  pointer-events: none;
  line-height: 1;
}

/* Counter rows */
.sa-refine-counter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.sa-refine-counter .sa-refine-label { margin-bottom: 0; }

.sa-refine-counter__controls {
  display: flex;
  align-items: center;
  border: 1px solid #cccccc;
}

.sa-refine-counter__btn {
  width: 30px;
  height: 30px;
  background: #ffffff;
  border: none;
  border-radius: 0 !important;
  font-size: 16px;
  line-height: 1;
  color: #333333;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, color 0.2s ease;
  padding: 0;
}
.sa-refine-counter__btn:hover {
  background: #e31b23;
  color: #ffffff;
}

.sa-refine-counter__display {
  min-width: 30px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: #333333;
  border-left: 1px solid #cccccc;
  border-right: 1px solid #cccccc;
  line-height: 30px;
  display: inline-block;
}

/* Update Search button */
.sa-refine-submit {
  display: block;
  width: 100%;
  height: 44px;
  background: #e31b23;
  color: #ffffff;
  border: none;
  border-radius: 0 !important;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  margin-top: 8px;
  transition: background 0.2s ease;
}
.sa-refine-submit:hover    { background: #b8151c; }
.sa-refine-submit:disabled {
  background: #aaaaaa;
  cursor: not-allowed;
}

/* ── Loading spinner ── */
.sa-feed__listings { position: relative; min-height: 100px; }
.sa-feed__listings.is-loading { opacity: 0.5; pointer-events: none; }

.sa-filter-loading {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 80px 0;
}
.sa-filter-spinner {
  width: 42px;
  height: 42px;
  border: 3px solid #eeeeee;
  border-top-color: #e31b23;
  border-radius: 50%;
  animation: sa-spin 0.7s linear infinite;
}
@keyframes sa-spin { to { transform: rotate(360deg); } }

/* ── No results ── */
.sa-no-results {
  text-align: center;
  color: #999999;
  padding: 60px 20px;
  font-size: 15px;
}

/* FIX 2 — refine wrap anchors the absolute panel */
.sa-feed__refine-wrap {
  position: relative;
  display: inline-block;
}

/* ── Refine wrap anchors the panel ── */
.sa-feed__refine-wrap {
    position: relative;
    display: inline-block;
}

/* ── Panel hidden by default, shown with .is-open ── */
.sa-refine-panel {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    width: 300px;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    box-shadow: 0 6px 24px rgba(0,0,0,0.10);
    z-index: 9999;
    box-sizing: border-box;
}
.sa-refine-panel.is-open {
    display: block !important;
}

/* ── Refine panel positioning ── */
.sa-feed__refine-wrap {
    position: relative;
    display: inline-block;
}

.sa-refine-panel {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    width: 300px;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    box-shadow: 0 6px 24px rgba(0,0,0,0.10);
    z-index: 9999 !important;
    box-sizing: border-box;
}

.sa-refine-panel.is-open {
    display: block !important;
}

/* ══════════════════════════════════════════════════════
   LEFT COLUMN — wraps listings + pagination
   Replaces the old .sa-feed__listings flex rules
══════════════════════════════════════════════════════ */

/* Left col takes the 65% that .sa-feed__listings used to have */
.sa-feed__left-col {
    flex: 0 0 65%;
    max-width: 57.5%;
    display: flex;
    flex-direction: column;
    gap: 0;
    min-width: 0; /* prevents flex overflow */
}

/* Listings now fills 100% of left col */
.sa-feed__listings {
    flex: 0 0 100%;
    max-width: 98%;        /* ← was 65% before, now inherits from parent */
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 24px;
    min-height: 100px;
    position: relative;
}

/* Pagination sits below listings */
.sa-feed__pagination-wrap {
    width: 100%;
    margin-top: 0;
}

/* ── GRID — make sure it uses the left-col correctly ── */
.sa-feed__grid {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
    .sa-feed__left-col {
        flex: 0 0 100%;
        max-width: 100%;
    }
    .sa-feed__map-col {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

@media (max-width: 600px) {
    .sa-feed__left-col {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* ── Pagination arrows — Play.svg ── */
.sa-pagination__arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 14px;
    background: #D9D9D9;
    border: 1px solid #D9D9D9;
    border-radius: 4px !important;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}
.sa-pagination__arrow:hover {
    background: #D90000;
    border-color: #D90000;
}
.sa-pagination__arrow:hover img {
    filter: brightness(0) invert(1);
}
.sa-pagination__arrow--disabled {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 14px;
    background: #eeeeee;
    border: 1px solid #eeeeee;
    border-radius: 4px !important;
    opacity: 0.35;
    cursor: not-allowed;
}
/* ── BASE (desktop) ── */
.sa-feed__refine-wrap {
    position: relative;
    display: inline-block;
}

/* Default panel — anchored to right edge of button */
.sa-refine-panel {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    right: 0;       /* aligns to right edge of button */
    left: auto;
    width: 300px;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    box-shadow: 0 6px 24px rgba(0,0,0,0.12);
    z-index: 99999;
    box-sizing: border-box;
}

.sa-refine-panel.is-open {
    display: block !important;
}

/* ── Heart — base desktop size ── */
.sa-card__heart-overlay {
    width: 130px !important;
    height: 100px !important;
}

/* 1. Ensure the container allows absolute positioning */
.sa-card__img-wrap {
    position: relative !important;
    overflow: hidden;
}

/* 2. Force the button to the top layer */
.sa-card__favorite-btn {
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    z-index: 99 !important; 
    width: 180px !important; 
    height: 110px !important; 
    background: transparent !important;
    border: none !important;
    cursor: pointer !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* 3. Ensure the SVG inside doesn't block clicks */
.sa-card__heart-overlay {
    pointer-events: none !important; 
    display: block !important;
}
@media (max-width: 1024px) {
    
   
    .sa-card__favorite-btn {
        width: 90px !important; 
        height: 90px !important;
        top: 0 !important;
        right: 0 !important;
        padding: 0 !important;
        display: inline-flex !important; 
        align-items: flex-start !important; 
        justify-content: flex-end !important;
    }

    .sa-card__heart-overlay {
        width: 45px !important; 
        height: auto !important;
    }

    .sa-card__actions {
        display: flex;
        flex-direction: column; 
        gap: 10px;
    }
}


/* ══════════════════════════════════════════════════════
   RESPONSIVE — Property Feed
   Breakpoints: 1024px | 768px | 480px
══════════════════════════════════════════════════════ */

/* ── 1024px — Laptop ── */
@media (max-width: 1024px) {
    .sa-feed__topbar {
        flex-wrap: wrap;
        justify-content: space-between;
        padding: 15px 20px;
    }

    .sa-feed__controls {
        flex: 1;
        justify-content: flex-end;
        gap: 12px;
    }

    
    .sa-feed__dropdown {
        width: auto; 
        min-width: 170px; 
        padding: 10px 15px;
        white-space: nowrap;
    }

    .sa-feed__dropdown-text {
        max-width: none; 
    }
}

/* ── 768px — Tablet & Mobile ── */
@media (max-width: 768px) {
    .sa-feed__topbar {
        flex-direction: column; 
        align-items: flex-start;
        gap: 15px;
    }

    .sa-feed__count {
        width: 100%;
        text-align: left;
    }

    .sa-feed__controls {
        width: 100%;
        flex-direction: column; 
        gap: 10px;
    }

    .sa-feed__dropdown {
        width: 100%; 
        justify-content: space-between; 
        padding: 12px 15px;
    }

    
    .sa-refine-panel {
        width: 100%;
        position: absolute;
        left: 0;
        top: 100%;
        z-index: 100;
        box-sizing: border-box;
    }

 
    .sa-card__heart-overlay {
        width: 55px !important;
        height: 50px !important;
    }
}

/* ── 320px — Small Mobile ── */
@media (max-width: 360px) {
    .sa-feed__dropdown-text {
        font-size: 11px; 
    }
}


.sa-dynamic-map iframe {
    width: 100% !important;
    height: 400px !important; 
    border: 0 !important;
    border-radius: 12px; 
}