div.gallery {
  max-width: 100%;
  flex: 0 0 100%; }
  
/* ===============================
   Override Flynax gallery defaults
   =============================== */

.listing-details div.gallery > #media {
    border-radius: 0;
    overflow: hidden;
}

.listing-details div.gallery > #media .preview,
.listing-details div.gallery > #media .map-container {
    border-radius: inherit;
    overflow: hidden;
}

.listing-details div.gallery > #media img,
.listing-details div.gallery > #media iframe,
.listing-details div.gallery > #media video {
    border-radius: inherit;
}
/* ===============================
   Flynax gallery – MASTER RADIUS
   =============================== */

.listing-details div.gallery {
    border-radius:14px;     /* clearly rounded */
    overflow: hidden;        /* THIS is the key */
   background: #fff;
}

  @media screen and (max-width: 991px) {
    div.gallery {
      max-width: 825px;
      flex: 0 0 100%; } }
  @media screen and (max-width: 767px) {
    div.gallery {
      padding-bottom: 48px;
      max-width: 100%;
      flex: 0 0 100%; } }
  div.gallery > #media {
    padding-bottom: 66%;
    position: relative;
    border: 0; }
    @media screen and (max-width: 767px) {
      div.gallery > #media {
        border: 0; }
        div.gallery > #media[data-view=gallery] .preview {
          display: none; } }
    div.gallery > #media iframe,
    div.gallery > #media #player,
    div.gallery > #media .map-container,
    div.gallery > #media .picture_locked,

      /* added 25012026 ******************/
    div.gallery > #media .preview {
      width: 100%;
      height: 100%;
        border-radius: 0; 
         
    } 
    /******   End 25012026 **************/
    /********** Added 26012026 ************************/
      /* ===============================*/
 
/* Thumbnails */
.listing-details div.gallery .thumbs {
    border: 1px  solid pink;
} 
    
    /* ===============================
   DEBUG – outer gallery only
   =============================== */

/* OUTER gallery wrapper 
.listing-details div.gallery {
    border: 4px solid red;
}*/

/* Inner layers – explicitly no borders 
.listing-details div.gallery > #media,
.listing-details div.gallery #media .preview,
.listing-details div.gallery #media img,
.listing-details div.gallery #media iframe,
.listing-details div.gallery #media video,
.listing-details div.gallery #media .map-container,
.listing-details div.gallery .thumbs {
    border: none !important;
}
*/
     
    /* Hide top navigation bar on listing details */
.listing-details div.top-navigation {
    display: none !important;
}

    
    /************ End 26012026 ************************/
      div.gallery > #media .preview.video iframe {
        display: block; }
      div.gallery > #media .preview.video img {
        display: none; }
      div.gallery > #media .preview.local #player {
        display: block; }
      div.gallery > #media .preview.local img {
        display: none; }
      div.gallery > #media .preview.locked > * {
        display: none; }
      div.gallery > #media .preview.locked .picture_locked {
        display: block; }
      div.gallery > #media .preview.locked + .nav-buttons .nav-button.zoom {
        display: none; }
      div.gallery > #media .preview.picture .picture_locked p.picture-hint,
      div.gallery > #media .preview.fake-video .picture_locked p.video-hint {
        display: block; }
    
    div.gallery > #media[data-view=gallery] .nav-button.gallery {
      display: none; }
    @media screen and (min-width: 768px) {
      div.gallery > #media[data-view=gallery] .preview:not(.locked) + .map-container + .nav-buttons .nav-button.zoom {
        display: inline-flex; } }
    div.gallery > #media[data-view=map] > *:not(.nav-buttons) {
      display: none; }
    div.gallery > #media[data-view=map] .map-container {
      display: block; }
    div.gallery > #media[data-view=map] .nav-button.map {
      display: none; }
    div.gallery > #media[data-view]:not([data-view=gallery]) + div.thumbs {
      display: none; }
  div.gallery > div.thumbs {
    background: rgba(45, 45, 45, 0.5);
    position: relative;
    padding: 11px; }
    @media screen and (max-width: 767px) {
      div.gallery > div.thumbs {
        position: absolute;
        display: block;
        height: auto;
        width: 100%;
        top: 0;
        padding: 0; } }
    div.gallery > div.thumbs span.play {
      width: calc(100% - 4px);
      height: calc(100% - 4px);
      position: absolute;
      background: url("../../img/play.svg") center center no-repeat rgba(0, 0, 0, 0.2);
      margin: 2px;
      left: 0;
      top: 0;
      background-size: contain; }
    div.gallery > div.thumbs .f-carousel {
      --f-carousel-spacing: 2px;
      margin-bottom: 0; }
    div.gallery > div.thumbs .f-carousel__viewport {
      overflow: hidden;
      margin: 0 71px;
      padding: 0;
      width: auto; }
      @media screen and (max-width: 767px) {
        div.gallery > div.thumbs .f-carousel__viewport {
          margin: 0;
          padding: 0;
          background: #cccccc; } }
    div.gallery > div.thumbs .f-button {
      --f-button-width: 71px;
      --f-button-height: 71px;
      --f-button-color: #5caed9;
      --f-button-border-radius: 0;
      --f-button-shadow: none;
      --f-button-svg-width: 40%;
      --f-button-svg-height: 40%;
      background: white;
      border-radius: 0;
      top: 0 !important;
      transform: none !important; }
      div.gallery > div.thumbs .f-button:hover {
        background: white;
        color: #111111; }
      @media screen and (max-width: 767px) {
        div.gallery > div.thumbs .f-button {
          height: 100%;
          width: 30px;
          background: transparent;
          box-shadow: none; }
          div.gallery > div.thumbs .f-button:hover {
            background: transparent; } }
      div.gallery > div.thumbs .f-button.is-prev {
        left: 0 !important; }
      div.gallery > div.thumbs .f-button.is-next {
        right: 0 !important; }
      @media screen and (max-width: 767px) {
        div.gallery > div.thumbs .f-button > svg {
          width: 80%;
          height: 80%;
          color: white;
          filter: drop-shadow(1px 1px 1px rgba(0, 0, 0, 0.6)); } }
    div.gallery > div.thumbs .f-carousel__slide {
      padding: 0;
      flex: 0 0 71px;
      width: 71px;
      height: 71px;
      margin-right: 2px;
      position: relative;
      overflow: unset;
      background: #e2e2e2;
      border-radius: 0; }
      @media screen and (max-width: 767px) {
        div.gallery > div.thumbs .f-carousel__slide {
          position: relative;
          padding-bottom: 66%;
          flex: 0 0 90%;
          width: 90%; } }
      div.gallery > div.thumbs .f-carousel__slide img,
      div.gallery > div.thumbs .f-carousel__slide video {
        width: 100%;
        height: 100%;
        border: 2px white solid;
        border-radius: 0;
        cursor: pointer;
        object-fit: cover;
        box-shadow: none; }
        @media screen and (max-width: 767px) {
          div.gallery > div.thumbs .f-carousel__slide img,
          div.gallery > div.thumbs .f-carousel__slide video {
            position: absolute;
            width: 100%;
            height: 100%;
            border: 0;
            box-shadow: none !important;
            border-radius: 0; } }
      div.gallery > div.thumbs .f-carousel__slide.active img,
      div.gallery > div.thumbs .f-carousel__slide.active video {
        border-color: #222222;
        box-shadow: none; }
      div.gallery > div.thumbs .f-carousel__slide.locked img {
        background-color: #eeeeee;
        background-image: url("../../img/lock.svg");
        background-repeat: no-repeat;
        background-position: center center;
        background-size: auto; }
        @media screen and (max-width: 767px) {
          div.gallery > div.thumbs .f-carousel__slide.locked img {
            background-size: auto 50%; } }
  div.gallery .nav-buttons {
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    justify-content: flex-start;
    width: 100%;
    margin-top: 10px;
    padding: 0 10px; }
    @media screen and (max-width: 767px) {
      div.gallery .nav-buttons {
        top: 100%; } }
    div.gallery .nav-buttons .map-group {
      margin-left: auto;
      z-index: 99; }
      @media screen and (max-width: 767px) {
        div.gallery .nav-buttons .map-group {
          margin-left: unset;
          display: flex;
          width: 100%;
          justify-content: center; } }
    div.gallery .nav-buttons .nav-button {
      margin: 0 1px;
      height: 38px;
      padding: 0 12px;
      color: white;
      background: rgba(55, 55, 55, 0.6);
      font-weight: inherit;
      font-size: 0.929em;
      border-radius: 0;
      cursor: pointer;
      user-select: none;
      text-transform: unset;
      display: inline-flex;
      align-items: center; }
      div.gallery .nav-buttons .nav-button:hover {
        color: white;
        background: #111111; }
      div.gallery .nav-buttons .nav-button.zoom {
        display: none; }
  div.gallery span.img-loading {
    display: inline-block;
    background: url("../../img/img_loader.gif") center center no-repeat #444444;
    position: absolute;
    top: 0;
    left: 0;
    margin: 2px;
    width: calc(100% - 4px);
    height: calc(100% - 4px);
    opacity: 0.5; }

.listing-fit-contain .f-carousel__slide img {
  object-fit: contain !important; }

.picture_locked {
  height: 100%;
  background-color: #eeeeee; }
  .picture_locked > div {
    height: 100%;
    display: flex; }
    .picture_locked > div > div {
      width: 100%;
      align-self: center; }

.restricted-content img.locked-media {
  width: 96px;
  height: 142px;
  background: url("../../img/lock.svg") center center no-repeat;
  text-align: center;
  margin-bottom: 20px;
  background-size: cover; }

.f-carousel__track .f-carousel__slide.has-video:after {
  content: '';
  position: absolute;
  width: 64px;
  height: 64px;
  background: url("../../img/play.svg") center center no-repeat;
  background-size: cover; }

.f-carousel__track .f-carousel__slide.has-html5video .fancybox__thumb {
  background-size: contain; }
/* added 26012026 *******************************************/
/* Space between gallery and content section */
.listing-details .gallery {
    margin-bottom: 32px;
}
/* Remove borders & shadows under gallery */
.listing-details section.content-section {
    border: none !important;
    box-shadow: none !important;
}
/* Remove divider pseudo-elements */
.listing-details section.content-section::before,
.listing-details section.content-section::after {
    content: none !important;
    display: none !important;
}
/* ===============================
   Listing gallery nav buttons
   =============================== */

.listing-details .gallery .nav-buttons .nav-button {
    border-radius: 999px;     /* pill shape */
}
.listing-details .gallery .nav-button.map {
    position: relative;
    padding-left: 28px;
}

/* ===============================
   Map icon using SirajProperty SVG
   =============================== */

.listing-details .gallery .nav-button.map {
    position: relative;
    padding-left: 32px; /* space for icon */
}

/* ===============================
   Prominent Map icon (SVG)
   =============================== */

.listing-details .gallery .nav-button.map {
    position: relative;
    padding-left: 40px; /* more space for bigger icon */
}

.listing-details .gallery .nav-button.map::before {
    content: "";
    position: absolute;
    left: 12px;
    top: 50%;
    width: 20px;              /* 👈 bigger */
    height: 20px;             /* 👈 bigger */
    transform: translateY(-50%);
    background: url("/templates/realty_wide/img/svg/map.svg") no-repeat center / contain;
}
/* ===============================
   Gallery nav pills – Siraj style
   =============================== */
/* added 27012026 *************************************/
.listing-details .gallery .nav-buttons .nav-button {
    background: #ffffff;
    border: 1.5px solid #C8A44D;   /* Siraj gold */
    color: #0D2238;               /* deep navy text */
    border-radius: 999px;
    padding: 6px 14px;
}
/* ===============================
   Match Map pill to View Larger
   =============================== */

/* Base pill sizing (match others) */
.listing-details .gallery .nav-buttons .nav-button {
    padding: 6px 14px;      /* reference size (View Larger) */
    line-height: 1.2;
}

/* Map pill: same size, extra room for icon */
.listing-details .gallery .nav-button.map {
    padding-left: 42px;     /* space for SVG */
    padding-right: 14px;    /* SAME as View Larger */
    min-height: 32px;       /* ensures equal height */
    font-size: 14px;        /* match text pills */
}

/* Ensure icon is vertically centred */
.listing-details .gallery .nav-button.map::before {
    left: 14px;
    width: 20px;
    height: 20px;
}


/* ===============================
   Camera count pill (next to View Larger)
   =============================== */

/* Replace View Larger text 
.listing-details .gallery .nav-button.zoom {
    font-size: 0;
}

.listing-details .gallery .nav-button.zoom::after {
    content: "View Photos";
    font-size: 14px;
    font-weight: 500;
} This works */
/* Hide text, keep button */


.listing-details .gallery .nav-button.zoom {
    font-size: 0;
    padding: 8px 14px;
}

/* Camera icon */
.listing-details .gallery .nav-button.zoom::before {
    content: "";
    width: 18px;
    height: 18px;
    background: url("/templates/realty_wide/img/svg/camera.svg") no-repeat center / contain;
    display: inline-block;
}
/* Space between camera icon and count */
.listing-details .gallery .nav-button.zoom .photo-count {
    margin-left: 6px;
    font-weight: 600;
}
/* Restore font size for photo count */
.listing-details .gallery .nav-button.zoom .photo-count {
    font-size: 15px;
    line-height: 1;
}
/* ===============================
   Green background on pill focus
   =============================== */

.listing-details .gallery .nav-button.zoom:hover,
.listing-details .gallery .nav-button.zoom:focus,
.listing-details .gallery .nav-button.zoom.active,
.listing-details .gallery .nav-button.map:hover,
.listing-details .gallery .nav-button.map:focus,
.listing-details .gallery .nav-button.map.active {
    background-color: #1f9d55; /* rich green */
    border-color: #1f9d55;
    color: #ffffff;
}

/* Hero gallery image – single source of truth */
div.gallery > #media img.default-picture {
    width: 100%;
    height: 100%;
    object-fit: cover;   /* 🔥 fills container */
    display: block;
    position: absolute;
    inset: 0;
    cursor: pointer;
    border-radius: 0;
}
/* Gallery media container – fixed height */
.listing-details div.gallery > #media {
    position: relative;
    padding-bottom: 0 !important;
    height: 520px !important;
    overflow: hidden;
}
@media (max-width: 767px) {
    .listing-details div.gallery > #media {
        height: 340px !important;
    }
}
@media (max-width: 767px) {
    .listing-details div.gallery > #media img.default-picture {
        object-fit: contain;
        background-color: #000; /* elegant letterbox */
    }
}
@media (max-width: 767px) {
    .listing-details div.gallery > #media .preview {
        padding: 8px;
    }
}
/* Results page: PF horizontal search */
.results-search{
  background:#fff;
  padding:16px 0 8px;
  border-bottom:1px solid #e6e6e6;
}
.results-search #search_area{
  max-width:1200px;
  margin:0 auto;
}
