.homepage1-body .vl-transparent-header .vl-logo img {
    width: auto;
}

.pro-location1 .cs_case_study.cs_style_1 {
    transition: all 0.3s ease;
}

.footer-cta-bg-area .vl-footer1-section-area .footer-time-area img {
    width: auto;
    height: 50px;
}

/* Custom popup styling */
.mapboxgl-popup-content {
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}

.property-popup {
    text-align: center;
    max-width: 250px;
}

.property-popup h4 {
    margin: 0 0 8px;
    color: #333;
    font-size: 16px;
    font-weight: 600;
}

.others-section-area .tab-header{
    display: flex;
    justify-content: center;
    gap: 30px;
}

.property-single-boxarea {
    position: relative;
    z-index: 1;
    overflow: hidden;
    border-radius: 30px;
    background: var(--ztc-bg-bg-1);
    padding: 16px;
    margin-bottom: 30px;
    transition: all 0.4s;
}

.property-single-boxarea:hover {
    transition: all 0.4s;
}

.property-single-boxarea:hover .img1 {
    border-radius: 30px;
}

.property-single-boxarea:hover .img1 img {
    transform: scale(1.1) rotate(-4deg);
    transition: all 0.4s;
}

.property-single-boxarea .property-list-img-area {
    position: relative;
    z-index: 1;
}

.property-single-boxarea .property-list-img-area .owl-dots {
    text-align: center;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.5);
    padding: 5px;
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
}

.property-single-boxarea .property-list-img-area .owl-dots button {
    height: 8px;
    width: 8px;
    display: inline-block;
    transition: all 0.4s;
    background: var(--ztc-bg-bg-3);
    border-radius: 50%;
    margin: 0 6px 0 0;
    position: relative;
    z-index: 1;
}

.property-single-boxarea .property-list-img-area .owl-dots button::after {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: -4px;
    top: -4px;
    border: 1px solid var(--ztc-text-text-1);
    border-radius: 50%;
    visibility: visible;
    opacity: 0;
    transition: all 0.4s;
}

.property-single-boxarea .property-list-img-area .owl-dots button.active {
    background: var(--ztc-bg-bg-1);
}

.property-single-boxarea .property-list-img-area .owl-dots button.active::after {
    visibility: visible;
    opacity: 1;
    transition: all 0.4s;
}

.property-single-boxarea .property-list-img-area .owl-dots button:nth-last-child(1) {
    margin: 0;
}

.property-single-boxarea .property-list-img-area .img1 {
    position: relative;
    z-index: 1;
    border-radius: 30px;
    transition: all 0.4s;
    overflow: hidden;
    width: 100%;
    padding-bottom: 60%; /* 16:9 Aspect Ratio (9/16*100) */
    height: 0;
}

.property-single-boxarea .property-list-img-area .img1 img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    border-radius: 30px;
    transition: all 0.4s;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.property-single-boxarea .property-price {
    background: #F1F2F3;
    padding: 16px 12px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

@media (max-width: 1199px) {
    .property-single-boxarea .property-price {
        display: block;
    }
}

@media (max-width: 767px) {
    .property-single-boxarea .property-price {
        display: block;
    }
}

@media (max-width: 575px) {
    .property-single-boxarea .property-price {
        display: block;
    }
}

.property-single-boxarea .property-price .text a {
    color: var(--ztc-text-text-2);
    font-family: var(--ztc-family-font1);
    font-size: var(--ztc-font-size-font-s20);
    font-style: normal;
    font-weight: var(--ztc-weight-semibold);
    line-height: 20px;
    text-transform: capitalize;
    display: inline-block;
    transition: all 0.4s;
}

.property-single-boxarea .property-price .text a:hover {
    color: var(--ztc-text-text-4);
    transition: all 0.4s;
}

.property-single-boxarea .property-price .text p {
    color: var(--ztc-text-text-3);
    font-family: var(--ztc-family-font1);
    font-size: var(--ztc-font-size-font-s16);
    font-style: normal;
    font-weight: var(--ztc-weight-regular);
    line-height: 16px;
}

.property-single-boxarea .property-price .price {
    color: var(--ztc-text-text-4);
    font-family: var(--ztc-family-font1);
    font-size: var(--ztc-font-size-font-s20);
    font-style: normal;
    font-weight: var(--ztc-weight-semibold);
    line-height: 20px;
    text-transform: capitalize;
    display: inline-block;
    transition: all 0.4s;
    padding: 14px 16px;
    border: 1px solid var(--ztc-text-text-4);
    border-radius: 44px;
}

.property-single-boxarea .property-price .price:hover {
    background: var(--ztc-bg-bg-3);
    transition: all 0.4s;
    color: var(--ztc-text-text-1);
}

@media (max-width: 1199px) {
    .property-single-boxarea .property-price .price {
        margin-top: 16px;
    }
}

@media (max-width: 767px) {
    .property-single-boxarea .property-price .price {
        margin-top: 16px;
    }
}

@media (max-width: 575px) {
    .property-single-boxarea .property-price .price {
        margin-top: 16px;
    }
}

.property-single-boxarea .property-other-widget {
    position: relative;
    z-index: 1;
    background: #F1F2F3;
    border-radius: 30px;
    padding: 16px;
}

.property-single-boxarea .property-other-widget ul {
    padding-bottom: 24px;
    border-bottom: 1px solid #CECFD0;
}

.property-single-boxarea .property-other-widget ul li {
    display: inline-block;
    color: var(--ztc-text-text-3);
    font-family: var(--ztc-family-font1);
    font-size: var(--ztc-font-size-font-s16);
    font-style: normal;
    font-weight: var(--ztc-weight-medium);
    line-height: 16px;
    margin: 0 20px 0 0;
}

.property-single-boxarea .property-other-widget ul li:nth-last-child(1) {
    margin: 0;
}

@media (max-width: 1199px) {
    .property-single-boxarea .property-other-widget ul li:nth-last-child(1) {
        margin-top: 10px;
    }
}

@media (max-width: 767px) {
    .property-single-boxarea .property-other-widget ul li:nth-last-child(1) {
        margin-top: 10px;
    }
}

@media (max-width: 575px) {
    .property-single-boxarea .property-other-widget ul li:nth-last-child(1) {
        margin-top: 10px;
    }
}

@media (max-width: 1399px) {
    .property-single-boxarea .property-other-widget ul li {
        margin: 0 10px 0 0;
    }
}

@media (max-width: 1199px) {
    .property-single-boxarea .property-other-widget ul li {
        margin: 0 10px 0 0;
    }
}

@media (max-width: 767px) {
    .property-single-boxarea .property-other-widget ul li {
        margin: 0 10px 0 0;
    }
}

@media (max-width: 575px) {
    .property-single-boxarea .property-other-widget ul li {
        margin: 0 10px 0 0;
    }
}

.property-single-boxarea .property-other-widget ul li span {
    display: inline-block;
    transition: all 0.4s;
    line-height: 40px;
    text-align: center;
    margin: 0 6px 0 0;
}

.property-single-boxarea .property-other-widget .btn-area {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

@media (max-width: 767px) {
    .property-single-boxarea .property-other-widget .btn-area {
        display: inline-block;
    }
}

@media (max-width: 575px) {
    .property-single-boxarea .property-other-widget .btn-area {
        display: inline-block;
    }
}

.property-single-boxarea .property-other-widget .btn-area .name-area {
    display: flex;
    align-items: center;
}

.property-single-boxarea .property-other-widget .btn-area .name-area .img img {
    height: 40px;
    width: 40px;
    object-fit: cover;
    border-radius: 50%;
}

.property-single-boxarea .property-other-widget .btn-area .name-area .text a {
    color: var(--ztc-text-text-2);
    font-family: var(--ztc-family-font1);
    font-size: var(--ztc-font-size-font-s16);
    font-style: normal;
    font-weight: var(--ztc-weight-medium);
    line-height: 16px;
    display: inline-block;
    transition: all 0.4s;
    padding-left: 6px;
}

@media (max-width: 767px) {
    .property-single-boxarea .property-other-widget .btn-area .love-share {
        margin-top: 16px;
    }
}

@media (max-width: 575px) {
    .property-single-boxarea .property-other-widget .btn-area .love-share {
        margin-top: 16px;
    }
}

.property-single-boxarea .property-other-widget .btn-area .love-share .heart {
    height: 40px;
    width: 40px;
    text-align: center;
    line-height: 40px;
    display: inline-block;
    transition: all 0.4s;
    background: #F1E7E0;
    border-radius: 50%;
    position: relative;
}

.property-single-boxarea .property-other-widget .btn-area .love-share .heart.active .heart2 {
    visibility: hidden;
    opacity: 0;
    transition: all 0.4s;
}

.property-single-boxarea .property-other-widget .btn-area .love-share .heart.active .heart1 {
    visibility: visible;
    opacity: 1;
    transition: all 0.4s;
}

.property-single-boxarea .property-other-widget .btn-area .love-share .heart:hover {
    transition: all 0.4s;
}

.property-single-boxarea .property-other-widget .btn-area .love-share .heart:hover .heart2 {
    visibility: hidden;
    opacity: 0;
    transition: all 0.4s;
}

.property-single-boxarea .property-other-widget .btn-area .love-share .heart:hover .heart1 {
    visibility: visible;
    opacity: 1;
    transition: all 0.4s;
}

.property-single-boxarea .property-other-widget .btn-area .love-share .heart .heart2 {
    visibility: visible;
    opacity: 1;
    transition: all 0.4s;
    height: 21px;
    width: 21px;
    object-fit: contain;
    display: inline-block;
}

.property-single-boxarea .property-other-widget .btn-area .love-share .heart .heart1 {
    visibility: hidden;
    opacity: 0;
    transition: all 0.4s;
    position: absolute;
    top: 12px;
    left: 10px;
    height: 18px;
    width: 18px;
    object-fit: contain;
    display: inline-block;
}

.property-single-boxarea .property-other-widget .btn-area .love-share .share {
    height: 40px;
    width: 40px;
    text-align: center;
    line-height: 37px;
    display: inline-block;
    transition: all 0.4s;
    background: #F1E7E0;
    border-radius: 50%;
    position: relative;
    color: var(--ztc-text-text-7);
}

.property-single-boxarea .property-other-widget .btn-area .love-share .share svg {
    height: 22px;
    width: 22px;
    object-fit: cover;
}

.property-single-boxarea .rent-sale-area {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: absolute;
    left: 40px;
    top: 40px;
    z-index: 1;
    right: 40px;
}

.property-single-boxarea .rent-sale-area ul li {
    display: inline-block;
}

.property-single-boxarea .rent-sale-area ul li:nth-last-child(1) {
    margin-left: 6px;
}

.property-single-boxarea .rent-sale-area ul li:nth-last-child(1) a {
    background: var(--ztc-bg-bg-3);
    color: var(--ztc-text-text-1);
    transition: all 0.4s;
    border-radius: 28px;
}

.property-single-boxarea .rent-sale-area ul li a {
    color: var(--ztc-text-text-2);
    font-family: var(--ztc-family-font1);
    font-size: var(--ztc-font-size-font-s16);
    font-style: normal;
    font-weight: var(--ztc-weight-medium);
    line-height: 16px;
    display: inline-block;
    transition: all 0.4s;
    background: var(--ztc-bg-bg-1);
    padding: 6px 12px;
    border-radius: 28px;
}

.property-single-boxarea .rent-sale-area ul li a:hover {
    background: var(--ztc-bg-bg-3);
    color: var(--ztc-text-text-1);
    transition: all 0.4s;
}

.property-single-boxarea .rent-sale-area .camera {
    border-radius: 28px;
    background: var(--ztc-bg-bg-1);
    padding: 6px 12px;
    color: var(--ztc-text-text-2);
    font-family: var(--ztc-family-font1);
    font-size: var(--ztc-font-size-font-s16);
    font-style: normal;
    font-weight: var(--ztc-weight-medium);
    line-height: 16px;
}

.property-single-boxarea .rent-sale-area .camera svg {
    height: 16px;
    width: 16px;
    object-fit: contain;
    margin: -4px 0 0 0;
}

.btn-filter {
    display: flex;
    gap: 10px;
}

.btn-filter button {
    background: var(--ztc-bg-bg-1);
    color: var(--ztc-text-text-4);
    font-family: var(--ztc-family-font1);
    font-size: var(--ztc-font-size-font-s16);
    font-style: normal;
    font-weight: var(--ztc-weight-medium);
    line-height: 16px;
    display: inline-block;
    transition: all 0.4s;
    padding: 6px 12px;
    border-radius: 28px;
    border: 1px solid var(--ztc-text-text-4);
}

.btn-filter button:hover {
    background: var(--ztc-bg-bg-3);
    color: var(--ztc-text-text-1);
    transition: all 0.4s;
}

.btn-filter button.active {
    background: var(--ztc-bg-bg-3);
    color: var(--ztc-text-text-1);
    transition: all 0.4s;
}

/* Map */
.property-marker {
    width: 36px;
    height: 36px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    background-color: #ED8438;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    cursor: pointer;
    transition: transform 0.2s ease;
  }
  
  /* Property status marker colors */
  .property-marker.status-active {
    background-color: var(--ztc-bg-bg-3); /* Blue for Active */
  }
  
  .property-marker.status-pending {
    background-color: #ff9900; /* Orange for Pending contract */
  }
  
  .property-marker.status-sold {
    background-color: #ff3333; /* Red for Sold */
  }
  
  .property-marker:hover {
    transform: scale(1.1);
  }
  
  .popup-link {
    display: inline-block;
    padding: 5px 10px;
    background-color: #ED8438;
    color: white;
    border-radius: 4px;
    text-decoration: none;
  }

  /* Property popup styling */
  .popup-thumbnail {
    margin-bottom: 10px;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  }
  
  .property-popup h4 {
    margin-top: 0;
    margin-bottom: 5px;
    color: #333;
    font-size: 16px;
    font-weight: 600;
  }
  
  .property-popup .price {
    font-weight: 700;
    color: #ED8438;
    margin-bottom: 5px;
  }
  
  .property-popup .address {
    font-size: 12px;
    color: #666;
    margin-bottom: 8px;
  }
  
  .property-popup .popup-details {
    font-size: 12px;
    color: #777;
    border-top: 1px solid #eee;
    padding-top: 8px;
    margin-top: 8px;
  }
  
  .popup-link:hover {
    background-color: #d9731f;
    color: white;
    text-decoration: none;
  }

  /* Applied filters styling */
  .applied-filters-container {
    margin: 15px 0;
    padding: 12px 15px;
    background-color: #f9f9f9;
    border-radius: 8px;
    border: 1px solid #eee;
  }
  
  .applied-filters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
  }
  
  .applied-filters-header span {
    font-size: 14px;
    font-weight: 600;
    color: #555;
  }
  
  .reset-filters {
    background-color: transparent;
    border: none;
    color: #ED8438;
    cursor: pointer;
    font-size: 13px;
    padding: 0;
    font-weight: 500;
    text-decoration: underline;
  }
  
  .reset-filters:hover {
    color: #d9731f;
  }
  
  .applied-filters-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }
  
  .filter-tag {
    display: inline-flex;
    align-items: center;
    background-color: #f0f0f0;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 4px 10px;
    font-size: 12px;
    color: #555;
  }
  
  .filter-tag .tag-label {
    font-weight: 600;
    margin-right: 3px;
  }
  
  .filter-tag .tag-value {
    color: #ED8438;
  }
  
  .filter-tag .remove-tag {
    margin-left: 8px;
    color: #999;
    cursor: pointer;
    font-size: 12px;
    display: flex;
    align-items: center;
  }
  
  .filter-tag .remove-tag:hover {
    color: #555;
  }

  /* Property details panel */
  .property-details-panel {
    position: absolute;
    right: -350px;
    top: 0;
    width: 320px;
    height: 100%;
    background: white;
    border-left: 1px solid #ddd;
    box-shadow: -2px 0 10px rgba(0,0,0,0.1);
    z-index: 999;
    transition: right 0.3s ease;
    overflow-y: auto;
  }
  
  .property-details-panel.active {
    right: 0;
  }
  
  .panel-header {
    padding: 15px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .panel-header h3 {
    margin: 0;
    font-size: 18px;
    color: #333;
  }
  
  .close-panel {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    font-size: 16px;
    padding: 0;
  }
  
  .close-panel:hover {
    color: #333;
  }
  
  .panel-content {
    padding: 15px;
  }
  
  .property-detail-item {
    padding-bottom: 20px;
  }
  
  .property-thumbnail {
    margin-bottom: 15px;
    border-radius: 6px;
    overflow: hidden;
  }
  
  .property-thumbnail img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
  }
  
  .property-detail-item h4 {
    margin: 0 0 10px;
    font-size: 18px;
    color: #333;
  }
  
  .property-detail-item .price {
    color: #ED8438;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
  }
  
  .property-detail-item .address {
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
  }
  
  .details {
    margin: 15px 0;
  }
  
  .detail-row {
    display: flex;
    flex-wrap: wrap;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    padding: 12px 0;
  }
  
  .detail-item {
    flex: 1;
    text-align: center;
    color: #666;
    font-size: 14px;
    padding: 5px;
  }
  
  .detail-item i {
    display: block;
    margin-bottom: 5px;
    color: #ED8438;
    font-size: 16px;
  }
  
  .property-actions {
    margin-top: 20px;
    text-align: center;
  }
  
  .btn-view-property {
    display: inline-block;
    background: #ED8438;
    color: white;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.2s;
  }
  
  .btn-view-property:hover {
    background: #d9731f;
    text-decoration: none;
    color: white;
  }
  
  /* Make map container position relative for absolute panel positioning */
  .grid-maps-area {
    position: relative;
    overflow: hidden;
  }

  /* Mobile filter styles */
  .mobile-filter-button {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    padding: 10px;
    background-color: transparent;
    text-align: center;
  }
  
  .mobile-filter-button button {
    background-color: #ED8438;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 12px 20px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    max-width: 400px;
    transition: background-color 0.2s ease;
  }
  
  .mobile-filter-button button:hover {
    background-color: #d9731f;
  }
  
  .mobile-filter-button button i {
    margin-right: 8px;
  }
  
  .filter-close-btn {
    display: none;
    position: sticky;
    top: 0;
    background-color: white;
    padding: 15px;
    border-bottom: 1px solid #eee;
    text-align: right;
    z-index: 10;
  }
  
  .filter-close-btn button {
    background-color: transparent;
    border: none;
    color: #555;
    font-size: 16px;
    cursor: pointer;
    padding: 5px 10px;
  }
  
  .filter-close-btn button:hover {
    color: #ED8438;
  }
  
  /* When filters are open, change button style */
  body.filter-open .mobile-filter-button button {
    background-color: #555;
  }
  
  body.filter-open .mobile-filter-button button:hover {
    background-color: #444;
  }
  
  /* Mobile styles */
  @media (max-width: 991px) {
    .mobile-filter-button {
      display: block;
    }
    
    .filter-close-btn {
      display: block;
      /* Make sure it's positioned at the very top of the filter panel */
      top: 0;
      left: 0;
      width: 100%;
      position: sticky;
      z-index: 10000000; /* Even higher z-index */
      padding-top: 20px; /* Add extra padding to account for the header */
    }
    
    .sidebar1-area.main-filters {
      position: fixed;
      top: 0; /* Start from the very top */
      left: 0;
      width: 100%;
      height: 100vh; /* Use viewport height instead of % */
      background-color: white;
      z-index: 9999999;
      overflow-y: auto;
      padding: 0 0 80px;
      transform: translateY(100%);
      transition: transform 0.3s ease;
      box-shadow: 0 -2px 15px rgba(0, 0, 0, 0.2);
    }
    
    /* Add this to ensure content starts below any fixed headers */
    .sidebar1-area.main-filters .row {
      margin: 0;
      width: 100%;
      padding-top: 60px; /* Additional space for header - adjust based on your header height */
    }
    
    .sidebar1-area.main-filters.active {
      transform: translateY(0);
    }
    
    .sidebar1-area.main-filters .row {
      margin: 0;
      width: 100%;
    }
    
    .sidebar1-area.main-filters .col-lg-12 {
      padding: 0 15px;
      width: 100%;
    }
    
    /* Add padding to bottom of property container on mobile to account for filter button */
    .property-half-grid-area {
      padding-bottom: 70px;
    }
    
    /* Make the map container shorter on mobile */
    .grid-maps-area {
      min-height: 300px !important;
    }
  }

  /* Map Container Styling */
  .map-container {
    background: #fff;
    padding: 10px;
    border-radius: 30px;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    overflow: hidden;
  }
  
  .map-container #map {
    border-radius: 20px;
    width: 100%;
    height: 100%;
  }

  /* Map Styling */
  .grid-maps-area {
    position: relative;
    min-height: 400px;
  }
  
  /* Create a container with padding using ::before */
  .grid-maps-area::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #fff;
    border-radius: 30px;
    z-index: 1;
    pointer-events: none;
  }
  
  /* Inner container for the actual map with adjusted positioning */
  #map {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    border-radius: 20px;
    overflow: hidden;
    z-index: 2;
  }
  
  /* Force the canvas to have rounded corners */
  .mapboxgl-canvas-container {
    border-radius: 20px;
    overflow: hidden;
  }
  
  /* Set the canvas itself to have rounded corners */
  .mapboxgl-canvas {
    border-radius: 20px;
  }
  
  /* Ensure controls stay within the rounded corners */
  .mapboxgl-ctrl-top-right {
    right: 20px;
    top: 20px;
  }

  /* Map container with 16:9 aspect ratio */
  .aspect-ratio-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 40%; /* 16:9 aspect ratio (9/16 = 0.5625 = 56.25%) */
    overflow: hidden;
    background-color: #fff;
    border-radius: 30px;
  }

  @media (max-width: 991px) {
    .aspect-ratio-container {
      padding-bottom: 56.25%;
    }
  }
  
  .aspect-ratio-container #map {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    border-radius: 20px;
    overflow: hidden;
  }

  /* Filter Off-Canvas Styles - Improved */
  .filter-offcanvas {
    position: fixed;
    width: 85%;
    max-width: 360px;
    height: 100vh;
    top: 0;
    right: -100%;
    background-color: #fff;
    z-index: 99999999;
    transition: all 0.4s ease;
    overflow-y: auto;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.15);
  }
  
  .filter-offcanvas.active {
    right: 0;
  }
  
  .filter-offcanvas-wrapper {
    padding: 20px 25px 80px;
    height: 100%;
  }
  
  .filter-offcanvas-header {
    padding-bottom: 15px;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .filter-offcanvas-title h3 {
    font-size: 20px;
    margin: 0;
    color: #333;
    font-weight: 600;
  }
  
  .filter-offcanvas-close-toggle {
    background: none;
    border: none;
    color: #555;
    font-size: 20px;
    cursor: pointer;
    padding: 5px 10px;
    transition: color 0.3s ease;
  }
  
  .filter-offcanvas-close-toggle:hover {
    color: #ED8438;
  }
  
  .filter-offcanvas-content {
    padding-bottom: 30px;
  }
  
  .filter-offcanvas-content .input-area {
    margin-bottom: 15px;
  }
  
  .filter-offcanvas-content input {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #e2e2e2;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s ease;
  }
  
  .filter-offcanvas-content input:focus {
    border-color: #ED8438;
    outline: none;
  }
  
  .filter-offcanvas-content .row {
    margin-left: -8px;
    margin-right: -8px;
  }
  
  .filter-offcanvas-content .col-6 {
    padding-left: 8px;
    padding-right: 8px;
  }
  
  /* Filter type buttons in off-canvas */
  .filter-offcanvas-content .btn-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
  }
  
  .filter-offcanvas-content .btn-filter button {
    background-color: #f5f5f5;
    border: 1px solid #e2e2e2;
    border-radius: 20px;
    color: #555;
    padding: 8px 16px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 0 0 auto;
  }
  
  .filter-offcanvas-content .btn-filter button.active {
    background-color: #ED8438;
    border-color: #ED8438;
    color: white;
  }
  
  .filter-offcanvas-content .btn-filter button:hover:not(.active) {
    background-color: #e9e9e9;
  }
  
  /* Applied filters in off-canvas */
  .filter-offcanvas-content .applied-filters-container {
    background-color: #f9f9f9;
    border-radius: 4px;
    padding: 12px 15px;
    margin-bottom: 20px;
  }
  
  .filter-offcanvas-content .applied-filters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
  }
  
  .filter-offcanvas-content .applied-filters-header span {
    font-size: 14px;
    font-weight: 600;
    color: #333;
  }
  
  .filter-offcanvas-content .reset-filters {
    background: none;
    border: none;
    color: #ED8438;
    font-size: 13px;
    cursor: pointer;
    padding: 0;
    text-decoration: underline;
  }
  
  .filter-offcanvas-content .applied-filters-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }
  
  .filter-offcanvas-content .filter-tag {
    background-color: #fff;
    border: 1px solid #e2e2e2;
    border-radius: 4px;
    padding: 6px 10px;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
  }
  
  .filter-offcanvas-content .filter-tag .remove-filter {
    background: none;
    border: none;
    color: #999;
    font-size: 12px;
    margin-left: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
  }
  
  .filter-offcanvas-content .filter-tag .remove-filter:hover {
    color: #ED8438;
  }
  
  /* Find button */
  .filter-offcanvas-content .btn-area1 {
    margin-top: 10px;
  }
  
  .filter-offcanvas-content .vl-btn1 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #ED8438;
    color: white;
    font-size: 16px;
    font-weight: 500;
    border-radius: 4px;
    padding: 12px 24px;
    width: 100%;
    text-decoration: none;
    transition: background-color 0.3s ease;
    position: relative;
    overflow: hidden;
  }
  
  .filter-offcanvas-content .vl-btn1:hover {
    background-color: #d97730;
  }
  
  .filter-offcanvas-content .vl-btn1 .arrow1 {
    margin-left: 10px;
    transition: transform 0.3s ease;
  }
  
  .filter-offcanvas-content .vl-btn1:hover .arrow1 {
    transform: translateX(4px);
  }
  
  .filter-offcanvas-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 99999;
    visibility: hidden;
    opacity: 0;
    transition: all 0.4s ease;
  }
  
  .filter-offcanvas-overlay.active {
    visibility: visible;
    opacity: 1;
  }
  
  /* Hide the sidebar filters on mobile */
  @media (max-width: 991px) {
    .sidebar1-area.main-filters {
      display: none;
    }
    
    .col-lg-9 {
      width: 100%;
      flex: 0 0 100%;
      max-width: 100%;
    }
    
    /* Mobile filter button styling */
    .mobile-filter-button {
      position: fixed;
      bottom: 0;
      right: 20px;
      z-index: 100;
      background-color: transparent;
    }
    
    .mobile-filter-button button {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      background-color: #ED8438;
      color: white;
      font-size: 15px;
      font-weight: 500;
      border: none;
      border-radius: 30px;
      padding: 12px 20px;
      cursor: pointer;
      transition: all 0.3s ease;
    }
    
    .mobile-filter-button button i {
      margin-right: 8px;
    }
    
    .mobile-filter-button button:hover {
      background-color: #d97730;
      transform: translateY(-2px);
      box-shadow: 0 6px 15px rgba(237, 132, 56, 0.4);
    }
  }

  .inner-header-area {
    padding-bottom: 30px;
    padding-top: 160px;
  }
  .heading1 h2 {
    margin-bottom: 20px;
  }

  .inner-header-area .inner-header {
    padding: 30px;
    text-align: center;
  }

  /* Property Gallery */
  .property-gallery {
    width: 100%;
    margin-bottom: 30px;
  }

  .gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 10px;
  }

  .gallery-item {
    position: relative;
    cursor: pointer;
    overflow: hidden;
    border-radius: 8px;
    transition: transform 0.3s ease;
  }

  .gallery-item:hover {
    transform: scale(1.02);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  }

  .aspect-ratio-box {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    background: #f5f5f5;
  }

  .aspect-ratio-box img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  /* Lightbox */
  .property-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: none;
    z-index: 99999; /* Increased z-index to ensure it's above everything */
    opacity: 0;
    transition: opacity 0.3s ease;
  }

  .property-lightbox.active {
    display: flex;
    opacity: 1;
  }

  .lightbox-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
  }

  .lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
  }

  .lightbox-image-container {
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .lightbox-image {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transform: scale(0.95);
    opacity: 0;
    transition: transform 0.4s ease, opacity 0.4s ease;
  }

  .lightbox-image.active {
    transform: scale(1);
    opacity: 1;
  }

  .close-lightbox {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    color: white;
    font-size: 40px;
    cursor: pointer;
    z-index: 10;
    transition: transform 0.2s ease;
  }

  .close-lightbox:hover {
    transform: scale(1.1);
  }

  .lightbox-controls {
    position: absolute;
    width: 100%;
    display: flex;
    justify-content: space-between;
    top: 50%;
    transform: translateY(-50%);
    padding: 0 20px;
  }

  .lightbox-prev, .lightbox-next {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 30px;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: background 0.2s ease;
  }

  .lightbox-prev:hover, .lightbox-next:hover {
    background: rgba(255, 255, 255, 0.4);
  }

  /* Mobile Responsiveness */
  @media (max-width: 768px) {
    .gallery-grid {
      grid-template-columns: repeat(2, 1fr);
    }
    
    .lightbox-controls {
      padding: 0 10px;
    }
    
    .lightbox-prev, .lightbox-next {
      width: 40px;
      height: 40px;
      font-size: 24px;
    }
  }

  @media (max-width: 480px) {
    .gallery-grid {
      grid-template-columns: 1fr;
    }
  }

  /* Fix Page listing mobile */
  @media (max-width: 767px) {
    .inner-header-area {
        margin: 0 15px;
        padding: 110px 0 20px 0;
    }

    .inner-header-area .inner-header {
        border-radius: 20px!important;
        padding: 10px;
    }

    .heading1 h2 {
        font-size: 24px;
        margin-bottom: 0;
    }

    .heading1 p, .heading1 p > *{
        font-size: 14px!important;
    }

    .property-single-boxarea .property-price .text > * {
        font-size: 15px!important;
    }

    .property-single-boxarea .property-price .text > a {
        font-size: 16px!important;
    }

    .property-single-boxarea .property-price .price {
        font-size: 15px!important;
        border-radius: 20px;
        padding: 5px 10px;
    }

    .property-single-boxarea .property-other-widget .btn-area {
        display: flex;
        justify-content: space-between;
    }

    .property-single-boxarea .property-other-widget ul li {
        font-size: 14px!important;
        margin-right: 20px;
    }

    .property-single-boxarea .property-other-widget ul {
        padding-bottom: 10px;
    }

    .property-other-widget .space24 {
        height: 10px;
    }

    .property-half-grid-area {
        padding-bottom: 30px;
    }
  }

  /* Single Property */
  .properties2-details .heading1  {
    padding: 20px;
    width: 100%
  }

  .properties2-details .heading1 .content-area a.title {
    font-size: 24px;
    line-height: 1.5;
  }

  /* Property Slider */
  .property-slider-wrapper {
    margin-bottom: 30px;
  }

  .property-slider .slider-item {
    position: relative;
  }

  .aspect-ratio-box {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    background: #f5f5f5;
    border-radius: 8px;
    overflow: hidden;
  }

  .aspect-ratio-box img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  /* Thumbnail Navigation */
  .property-slider-nav {
    margin-top: 10px;
  }

  .property-slider-nav .slider-thumb {
    cursor: pointer;
    padding: 2px;
    border-radius: 4px;
    overflow: hidden;
    opacity: 0.7;
    transition: all 0.3s ease;
  }

  .property-slider-nav .slider-thumb.active {
    opacity: 1;
    border: 2px solid #007bff;
  }

  .property-slider-nav .slider-thumb:hover {
    opacity: 1;
  }

  .property-slider-nav .slider-thumb img {
    border-radius: 4px;
    width: 100%;
    height: 70px;
    object-fit: cover;
  }

  /* Owl Nav Customization */
  .property-slider .owl-nav button,
  .property-slider-nav .owl-nav button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.7) !important;
    width: 40px;
    height: 40px;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    font-size: 22px !important;
    color: #333 !important;
  }

  .property-slider .owl-nav button:hover,
  .property-slider-nav .owl-nav button:hover {
    background: rgba(255, 255, 255, 0.9) !important;
  }

  .property-slider .owl-nav .owl-prev,
  .property-slider-nav .owl-nav .owl-prev {
    left: 10px;
  }

  .property-slider .owl-nav .owl-next,
  .property-slider-nav .owl-nav .owl-next {
    right: 10px;
  }

  .property-slider-nav .owl-nav button {
    width: 30px;
    height: 30px;
    font-size: 18px !important;
  }

  /* Mobile Adjustments */
  @media (max-width: 768px) {
    .property-slider .owl-nav button {
      width: 30px;
      height: 30px;
      font-size: 18px !important;
    }
    
    .property-slider-nav .slider-thumb img {
      height: 50px;
    }
  }

  /* Property Gallery Grid - Zillow Style */
  .property-gallery-grid {
    margin-bottom: 30px;
  }

  .gallery-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: auto;
    grid-gap: 10px;
    height: 500px;
  }

  .featured-image {
    grid-column: 1;
    grid-row: 1 / span 2;
    height: 100%;
    border-radius: 8px 0 0 8px;
    overflow: hidden;
  }

  .secondary-images {
    grid-column: 2;
    grid-row: 1 / span 2;
    display: grid;
    grid-template-rows: repeat(3, 1fr);
    grid-gap: 10px;
    height: 100%;
  }

  .secondary-images .gallery-item:first-child {
    border-radius: 0 8px 0 0;
  }

  .secondary-images .gallery-item:last-child {
    border-radius: 0 0 8px 0;
    position: relative;
  }

  .gallery-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease;
  }

  .gallery-item:hover {
    transform: scale(1.02);
  }

  .aspect-ratio-box {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
  }

  .aspect-ratio-box img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .view-all-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .view-all-btn {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
  }

  .view-all-btn:hover {
    background: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  }

  /* Gallery Modal */
  .property-gallery-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: none;
    z-index: 999999; /* Much higher z-index to ensure it's above header (z-index: 99) */
    opacity: 0;
    transition: opacity 0.3s ease;
  }

  .property-gallery-modal.active {
    display: flex;
    opacity: 1;
  }

  .gallery-modal-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
  }

  .gallery-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    flex-direction: column;
  }

  .main-image-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 70vh;
    margin-bottom: 20px;
  }

  .main-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transform: scale(0.95);
    opacity: 0;
    transition: transform 0.4s ease, opacity 0.4s ease;
  }

  .main-image.active {
    transform: scale(1);
    opacity: 1;
  }

  .close-gallery {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    color: white;
    font-size: 40px;
    cursor: pointer;
    z-index: 10;
    transition: transform 0.2s ease;
  }

  .close-gallery:hover {
    transform: scale(1.1);
  }

  .gallery-controls {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
  }

  .gallery-counter {
    color: white;
    font-size: 16px;
    font-weight: 600;
  }

  .gallery-prev, .gallery-next {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 30px;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: background 0.2s ease;
  }

  .gallery-prev:hover, .gallery-next:hover {
    background: rgba(255, 255, 255, 0.4);
  }

  .gallery-thumbnails {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 10px;
    padding: 10px 0;
    max-width: 100%;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
  }

  .gallery-thumbnails::-webkit-scrollbar {
    height: 6px;
  }

  .gallery-thumbnails::-webkit-scrollbar-track {
    background: transparent;
  }

  .gallery-thumbnails::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 6px;
  }

  .thumbnail-item {
    flex: 0 0 auto;
    width: 80px;
    height: 60px;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.3s ease, transform 0.3s ease;
  }

  .thumbnail-item:hover {
    opacity: 0.9;
  }

  .thumbnail-item.active {
    opacity: 1;
    border: 2px solid #fff;
    transform: scale(1.05);
  }

  .thumbnail-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  /* Mobile Responsiveness */
  @media (max-width: 992px) {
    .gallery-container {
      height: 400px;
    }
  }

  @media (max-width: 768px) {
    .gallery-container {
      height: 350px;
      grid-template-columns: 1fr;
      grid-template-rows: 2fr repeat(3, 1fr);
      grid-gap: 5px;
    }
    
    .featured-image {
      grid-column: 1;
      grid-row: 1;
      border-radius: 8px 8px 0 0;
    }
    
    .secondary-images {
      grid-column: 1;
      grid-row: 2 / span 3;
      display: grid;
      grid-template-rows: 1fr;
      grid-template-columns: repeat(3, 1fr);
      grid-gap: 5px;
    }
    
    .secondary-images .gallery-item:first-child {
      border-radius: 0 0 0 8px;
    }
    
    .secondary-images .gallery-item:last-child {
      border-radius: 0 0 8px 0;
    }
    
    .main-image-container {
      height: 50vh;
    }
    
    .gallery-modal-container {
      padding: 20px;
    }
    
    .gallery-content {
      max-width: 100%;
    }
    
    .thumbnail-item {
      width: 60px;
      height: 45px;
    }
  }

  @media (max-width: 480px) {
    .gallery-container {
      height: 300px;
    }
    
    .view-all-btn {
      padding: 8px 14px;
      font-size: 12px;
    }
  }

  /* Gallery Modal */
  .property-gallery-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: none;
    z-index: 999999; /* Much higher z-index to ensure it's above header (z-index: 99) */
    opacity: 0;
    transition: opacity 0.3s ease;
  }

  /* Ensure no parent elements have position properties that might create stacking contexts */
  

  /* Force modal above all other elements when active */
  .property-gallery-modal.active {
    display: flex;
    opacity: 1;
    position: fixed; /* Re-enforce position */
  }

  /* Make sure modal container has high z-index as well */
  .gallery-modal-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
    z-index: 1000000; /* Even higher z-index for child elements */
  }

  /* Gallery Modal with Aggressive Styling to Override Header */
  .property-gallery-modal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background-color: rgba(0, 0, 0, 0.95) !important;
    display: none !important;
    z-index: 9999999 !important; /* Extremely high z-index with !important */
    opacity: 0 !important;
    transition: opacity 0.3s ease !important;
    pointer-events: none !important;
  }

  .property-gallery-modal.active {
    display: flex !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }

  .gallery-modal-container,
  .gallery-content,
  .main-image-container,
  .gallery-controls,
  .gallery-thumbnails,
  .close-gallery,
  .gallery-prev,
  .gallery-next {
    position: relative !important;
    z-index: 10000000 !important; /* Even higher z-index for child elements */
  }

  /* Force the header to a lower z-index when modal is open */
  body.gallery-open .vl-transparent-header,
  body.gallery-open header,
  body.gallery-open .site-header,
  body.gallery-open nav {
    z-index: 90 !important; /* Force header to a lower z-index */
  }

  /* Enhanced Gallery Modal - Modern UI/UX */
  .property-gallery-modal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background-color: rgba(0, 0, 0, 0.95) !important;
    z-index: 999999 !important;
    opacity: 0 !important;
    transition: opacity 0.3s ease, transform 0.3s ease !important;
    transform: translateY(10px) !important;
    pointer-events: none !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
  }

  .property-gallery-modal.active {
    opacity: 1 !important;
    transform: translateY(0) !important;
    pointer-events: auto !important;
  }

  .gallery-modal-container {
    position: relative !important;
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    padding: 0 !important;
  }

  .gallery-content {
    position: relative !important;
    width: 90% !important;
    height: 90% !important;
    max-width: 1200px !important;
    display: flex !important;
    flex-direction: column !important;
  }

  .main-image-container {
    flex: 1 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    margin-bottom: 15px !important;
    position: relative !important;
  }

  .main-image {
    max-width: 100% !important;
    max-height: 75vh !important;
    object-fit: contain !important;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2) !important;
    border-radius: 4px !important;
    transition: opacity 0.3s ease, transform 0.3s ease !important;
    opacity: 0 !important;
    transform: scale(0.98) !important;
  }

  .main-image.active {
    opacity: 1 !important;
    transform: scale(1) !important;
  }

  .close-gallery {
    position: absolute !important;
    top: 15px !important;
    right: 15px !important;
    width: 40px !important;
    height: 40px !important;
    background-color: rgba(255, 255, 255, 0.2) !important;
    border: none !important;
    border-radius: 50% !important;
    color: white !important;
    font-size: 28px !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    cursor: pointer !important;
    z-index: 10 !important;
    transition: background-color 0.2s ease, transform 0.2s ease !important;
    backdrop-filter: blur(4px) !important;
  }

  .close-gallery:hover {
    background-color: rgba(255, 255, 255, 0.3) !important;
    transform: scale(1.05) !important;
  }

  .gallery-controls {
    position: relative !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 0 !important;
    margin-bottom: 15px !important;
    position: absolute !important;
    top: 50% !important;
    left: 0 !important;
    transform: translateY(-50%) !important;
    pointer-events: none !important;
    z-index: 5 !important;
  }

  .gallery-counter {
    color: white !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    background-color: rgba(0, 0, 0, 0.6) !important;
    padding: 5px 15px !important;
    border-radius: 20px !important;
    position: absolute !important;
    bottom: 20px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    z-index: 5 !important;
    backdrop-filter: blur(4px) !important;
  }

  .gallery-prev, .gallery-next {
    width: 50px !important;
    height: 50px !important;
    background-color: rgba(255, 255, 255, 0.15) !important;
    border: none !important;
    border-radius: 50% !important;
    color: white !important;
    font-size: 30px !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    cursor: pointer !important;
    transition: background-color 0.2s ease, transform 0.2s ease !important;
    z-index: 5 !important;
    pointer-events: auto !important;
    margin: 0 15px !important;
    backdrop-filter: blur(4px) !important;
  }

  .gallery-prev:hover, .gallery-next:hover {
    background-color: rgba(255, 255, 255, 0.25) !important;
    transform: scale(1.05) !important;
  }

  .gallery-thumbnails {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    gap: 10px !important;
    padding: 5px 0 10px 0 !important;
    scrollbar-width: thin !important;
    scrollbar-color: rgba(255, 255, 255, 0.3) transparent !important;
    justify-content: center !important;
    max-width: 100% !important;
  }

  .gallery-thumbnails::-webkit-scrollbar {
    height: 5px !important;
  }

  .gallery-thumbnails::-webkit-scrollbar-track {
    background: transparent !important;
  }

  .gallery-thumbnails::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.3) !important;
    border-radius: 3px !important;
  }

  .thumbnail-item {
    flex: 0 0 auto !important;
    width: 80px !important;
    height: 60px !important;
    border-radius: 4px !important;
    overflow: hidden !important;
    cursor: pointer !important;
    opacity: 0.6 !important;
    transition: all 0.2s ease !important;
    border: 2px solid transparent !important;
  }

  .thumbnail-item:hover {
    opacity: 0.9 !important;
  }

  .thumbnail-item.active {
    opacity: 1 !important;
    border: 2px solid #fff !important;
    transform: scale(1.05) !important;
  }

  .thumbnail-item img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }

  /* Mobile Optimizations */
  @media (max-width: 768px) {
    .gallery-content {
      width: 95% !important;
      height: 95% !important;
    }

    .main-image {
      max-height: 65vh !important;
    }

    .close-gallery {
      top: 10px !important;
      right: 10px !important;
      width: 36px !important;
      height: 36px !important;
      font-size: 24px !important;
    }

    .gallery-prev, .gallery-next {
      width: 40px !important;
      height: 40px !important;
      font-size: 24px !important;
      margin: 0 5px !important;
    }

    .gallery-counter {
      font-size: 14px !important;
      padding: 4px 12px !important;
    }

    .thumbnail-item {
      width: 60px !important;
      height: 45px !important;
    }
  }

  /* Small Mobile Devices */
  @media (max-width: 480px) {
    .gallery-content {
      width: 100% !important;
      height: 100% !important;
    }

    .main-image-container {
      margin-bottom: 10px !important;
    }

    .main-image {
      max-height: 60vh !important;
    }

    .gallery-prev, .gallery-next {
      width: 36px !important;
      height: 36px !important;
      font-size: 20px !important;
    }

    .thumbnail-item {
      width: 50px !important;
      height: 38px !important;
    }

    .gallery-thumbnails {
      gap: 6px !important;
      padding-bottom: 5px !important;
    }
  }

  /* Fancybox Override Styles */
  .fancybox__container {
    z-index: 999999 !important; /* Ensure fancybox is above everything */
  }

  .fancybox__backdrop {
    background-color: rgba(0, 0, 0, 0.9) !important;
  }

  .fancybox__caption {
    font-family: inherit !important;
  }

  /* Ensure gallery maintains its appearance */
  .property-gallery-grid {
    width: 100%;
    position: relative;
  }

  .gallery-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-gap: 12px;
    height: 500px;
  }

  .featured-image {
    display: block;
    height: 500px;
    overflow: hidden;
    border-radius: 8px;
  }

  .secondary-images {
    display: grid;
    grid-template-rows: repeat(3, 1fr);
    grid-gap: 12px;
    height: 500px;
  }

  .gallery-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: opacity 0.3s ease;
  }

  .gallery-item:hover {
    opacity: 0.9;
  }

  .aspect-ratio-box {
    width: 100%;
    height: 100%;
    position: relative;
  }

  .aspect-ratio-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
  }

  .view-all-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 8px;
  }

  .view-all-btn {
    background-color: rgba(255, 255, 255, 0.9);
    border: none;
    color: #222;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
  }

  .view-all-btn:hover {
    background-color: #fff;
    transform: scale(1.05);
  }

  /* Mobile responsive adjustments */
  @media (max-width: 768px) {
    .gallery-container {
      grid-template-columns: 1fr;
      height: auto;
    }
    
    .featured-image {
      height: 300px;
    }
    
    .secondary-images {
      grid-template-columns: repeat(3, 1fr);
      grid-template-rows: 1fr;
      height: 100px;
    }
  }

  /* Small mobile devices */
  @media (max-width: 480px) {
    .secondary-images {
      grid-template-columns: repeat(3, 1fr);
      grid-template-rows: 1fr;
      height: 80px;
    }
    
    .featured-image {
      height: 250px;
    }
  }

  .propert-bottom-section {
    padding: 30px;
  }

  .property-inner-section-find .property-widget-sidebar .padding-side {
    padding: 0!important;
  }

  .propery-content > * {
    margin-bottom: 30px;
  }

  .vl-mobile-menu-active li.active a {
    color: var(--ztc-bg-bg-3)!important;
    font-weight: 600!important;
  }

  /* Property Status Styles */
  .rent-sale-area ul li a.status-active {
    background-color: var(--ztc-bg-bg-3); /* Blue for Active */
    color: white;
  }

  .rent-sale-area ul li a.status-pending {
    background-color: #ff9900!important; /* Orange for Pending contract */
    color: white;
  }

  .rent-sale-area ul li a.status-sold {
    background-color: #ff3333!important; /* Red for Sold */
    color: white;
  }

  /* Make the status badges more noticeable */
  .rent-sale-area ul li a.status-active,
  .rent-sale-area ul li a.status-pending,
  .rent-sale-area ul li a.status-sold {
    padding: 5px 10px;
    border-radius: 4px;
    font-weight: 600;
    transition: all 0.3s ease;
  }

  .rent-sale-area ul li a.status-active:hover,
  .rent-sale-area ul li a.status-pending:hover,
  .rent-sale-area ul li a.status-sold:hover {
    opacity: 0.9;
  }

  .team1 .team-widget-boxarea .img1 img {
    min-height: 320px;
    aspect-ratio: 1/1;
  }

  .inner-header-area .heading1 h1 {
    font-size: 28px;
    line-height: 1.5;
    margin-bottom: 1rem;
  }

  .inner-header-area .inner-header p {
    font-size: 16px;
  }

  .wyswig > * {
    line-height: 1.5;
    margin-bottom: 20px;
  }

  .wyswig h2 {
    font-size: 24px;
    line-height: 1.5!important;
  }

  .wyswig h3 {
    font-size: 20px;
    line-height: 1.5!important;
  }

  .wyswig h4 {
    font-size: 18px;
    line-height: 1.5!important;
  }

  .wyswig h5 {
    font-size: 16px;
    line-height: 1.5!important;
  }

  .wyswig h6 {
    font-size: 14px;
    line-height: 1.5!important;
  }

  .wyswig ul {
    padding-left: 2rem;
  }

  .wyswig ul li {
    list-style-type: square;
  }

  .wyswig blockquote {
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #a3cfbb;
    background-color: #d1e7dd;
    color: #0a3622;
    font-size: 14px;
  }

  .vl-blog-1-area .vl-blog-1-item .vl-blog-1-thumb img {
    min-height: 283px;
  }

/* Fix responsive */
@media (max-width: 768px) {
  .testimonials-2 .testimonials-box-2 .content-area .text {
    font-size: 16px;
    line-height: 1.5;
  }

  .gallery-container {
    height: 320px;
  }

  .footer-cta-bg-area {
    padding: 10px;
  }

  .property-inner-section-find .property-widget-sidebar .padding-side .contact-box span {
    display: none;
  }
  .property-inner-section-find .property-widget-sidebar .padding-side .contact-box .text {
    padding-left: 0;
  }

  .inner-header-area .heading1 h1 {
    font-size: 18px;
  }

  .inner-header-area .inner-header p {
    line-height: 1.5;
  }

  .properties2-details .heading1,
  .property-inner-section-find .sidebar1-area,
  .property-inner-section-find .property-widget-sidebar {
    padding: 10px;
    font-size: 14px;
  }

  .vl-blog-1-area .vl-blog-1-item .vl-blog-1-content .vl-blog-1-title a {
    font-size: 15px;
    padding-bottom: 10px;
  }

  .vl-blog-1-area .vl-blog-1-item .vl-blog-1-content .vl-blog-meta ul li a {
    font-size: 13px;
  }

  .vl-blog-1-area .vl-blog-1-item .vl-blog-1-content {
    padding: 10px;
  }
  .vl-blog-1-area .vl-blog-1-item .vl-blog-1-content .vl-blog-meta ul li {
    margin-right: 10px;
  }

  .vl-blog-1-area .vl-blog-1-item .vl-blog-1-content .readmore {
    font-size: 14px;
  }

  .vl-blog-1-area .vl-blog-1-item .vl-blog-1-content .space24 {
    height: 10px;
  }

  .vl-blog-1-area .vl-blog-1-item .vl-blog-1-thumb,
  .vl-blog-1-area .vl-blog-1-item .vl-blog-1-thumb img {
    border-radius: 10px;
  }

  .pagination-area ul li a {
    width: 30px;
    height: 30px;
    line-height: 30px;
    font-size: 14px;
  }

  .blog-inner-section .blog-post-details-area .tags-social .tags ul li:nth-child(1),
  .blog-inner-section .blog-post-details-area .tags-social .social ul li:nth-child(1) {
    font-size: 14px;
  }

  .contact-inner .contact-boxarea {
    padding: 20px 10px;
  }

  .maps-area {
    padding: 10px;
  }
}