    html,
    body {
      overflow-x: hidden;
    }

    body {
      font-family: "Nunito Sans", sans-serif !important;
      color: #6b7280 !important;
      font-size: 16px;
      overflow-x: hidden;
    }

    .property-card {
      cursor: pointer;
    }

    .main-container {
      padding: 110px 15px;
    }

    .filters-section {
      padding-top: 15px;
    }

    .filter-btn {
      border: 1px solid #ddd;
      border-radius: 20px;
      padding: 8px 16px;
      margin-right: 8px;
      margin-bottom: 8px;
      background-color: #fff;
    }

    #map-container {
      height: 650px;
      position: sticky;
      top: 80px; /* offset for sticky header */
    }

    /* Mobile and Tablet View */
    @media (max-width: 991px) {
      #map-container {
        position: relative;
        /* Scrollable on mobile/tablet */
        height: auto;
        /* Remove fixed height */
      }
    }

    /* Desktop View */
    @media (min-width: 992px) {
      #map-container {
        position: fixed;
        top: 110px;
        width: 40%;
        height: calc(100vh - 110px);
      }
    }

    .map-column {
      position: relative;
    }

    /* Pagination */
    #pagination {
      justify-content: left;
      margin-top: 20px;
    }


    /* ============================================
   SCHEDULE VISIT FORM STYLES
   ============================================ */
    .cb-grid1 {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 14px 16px;
    }

    .cb-field1 {
      display: flex;
      flex-direction: column;
      gap: 6px;
    }

    .cb-field1 span {
      font-weight: 600;
      font-size: 14px;
    }

    .cb-field1 input,
    .cb-field1 select,
    .cb-field1 textarea {
      width: 100%;
      padding: 12px 14px;
      border-radius: 10px;
      border: 1px solid #e5e7eb;
      font-size: 14px;
      background: #fff;
      outline: none;
    }

    .cb-field1 input:focus,
    .cb-field1 select:focus,
    .cb-field1 textarea:focus {
      border-color: #174261;
      box-shadow: 0 0 0 3px rgba(23, 66, 97, 0.1);
    }

    .cb-span-21 {
      grid-column: span 2;
    }

    .cb-submit1 {
      margin-top: 10px;
      width: 160px;
      height: 44px;
      border: none;
      border-radius: 999px;
      cursor: pointer;
      background: #174261;
      color: #fff;
      font-weight: 600;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
    }

    .cb-submit1[disabled] {
      opacity: 0.7;
      cursor: not-allowed;
    }

    .cb-spinner1 {
      width: 16px;
      height: 16px;
      border-radius: 50%;
      border: 2px solid #fff;
      border-right-color: transparent;
      display: none;
      animation: cb-spin 0.8s linear infinite;
    }

    .cb-submit1.loading .cb-spinner1 {
      display: inline-block;
    }

    .cb-submit1.loading .cb-submit-text1 {
      opacity: 0.8;
    }

    .cb-status1 {
      min-height: 20px;
      margin-top: 10px;
      font-size: 14px;
    }

    .cb-status1.ok {
      color: #065f46;
    }

    .cb-status1.err {
      color: #991b1b;
    }

    .cb-error1 {
      color: #b91c1c;
      min-height: 16px;
      font-size: 12px;
    }

    /* ============================================
   MOBILE VIEW (<768px) - Grid Layout
   Updated footer with padding and border styling
   ============================================ */
    @media (max-width: 767px) {
      .property-card {
        display: grid;
        grid-template-columns: 220px 1fr;
        column-gap: 16px;
        row-gap: 0;
        border: none;
        border-bottom: 1px solid #e5e7eb;
        padding: 20px 0;
        margin: 0;
      }

      /* Image wrapper - 220px x 150px */
      .property-card-img-wrapper {
        grid-row: 1;
        grid-column: 1;
        width: 220px !important;
        height: 150px !important;
        border-radius: 12px !important;
        overflow: hidden;
        margin: 0 !important;
        flex-shrink: 0;
      }

      .property-card-img-wrapper .carousel-inner,
      .property-card-img-wrapper .carousel-item {
        width: 100%;
        height: 100%;
      }

      .property-card-img-wrapper img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 12px !important;
      }

      /* Hide carousel controls on mobile */
      .property-card-img-wrapper .carousel-control-prev,
      .property-card-img-wrapper .carousel-control-next {
        display: none !important;
      }

      /* Content wrapper */
      .property-details {
        grid-row: 1 / 3;
        grid-column: 1 / 3;
        display: contents;
      }

      /* Content section - Right side, LEFT ALIGNED with overflow protection */
      .property-details>div:first-child {
        grid-row: 1;
        grid-column: 2;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        text-align: left;
        padding-left: 0;
        padding-right: 0;
        min-width: 0;
        overflow: hidden;
      }

      .property-header {
        display: flex;
        flex-direction: column;
        margin-bottom: 6px;
        align-items: flex-start;
        width: 100%;
      }

      /* Property type & location */
      .property-info {
        font-size: 12px !important;
        color: #6b7280 !important;
        font-weight: 400;
        margin-bottom: 4px;
        line-height: 1.4;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        width: 100%;
      }

      /* Property title - with ellipsis for long text */
      .property-title {
        font-size: 16px !important;
        font-weight: 600 !important;
        color: #111827 !important;
        margin-bottom: 6px;
        line-height: 1.4;
        display: -webkit-box;
        /* -webkit-line-clamp: 2; */
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        word-wrap: break-word;
        word-break: break-word;
      }

      /* Property metadata (beds, baths) */
      .property-amenities {
        font-size: 13px !important;
        color: #6b7280 !important;
        margin-bottom: 5px;
        line-height: 1.4;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        width: 100%;
      }

      /* Hide star rating on mobile */
      .property-card .star-rating {
        display: none !important;
      }

      /* Footer section - FULL WIDTH with horizontal padding */
      .property-footer {
        grid-row: 2;
        grid-column: 1 / 3;
        display: flex;
        flex-direction: column;
        gap: 12px;
        margin-top: 14px;
        padding: 0 20px;
        /* Add left and right padding */
        width: 100%;
        box-sizing: border-box;
      }

      /* Location + Price row */
      .review-price-line {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        margin-bottom: 0;
        gap: 10px;
      }

      /* Location - LEFT aligned with ellipsis */
      .property-rating {
        display: flex !important;
        align-items: center;
        gap: 6px;
        font-size: 13px;
        color: #6b7280;
        flex: 1;
        min-width: 0;
      }

      .property-rating .icon {
        color: #ef4444;
        font-size: 12px;
        flex-shrink: 0;
      }

      .property-rating span {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
      }

      /* Price - RIGHT aligned */
      .price-tag {
        font-size: 18px !important;
        font-weight: 700 !important;
        color: #111827 !important;
        flex-shrink: 0;
        white-space: nowrap;
      }

      /* Action buttons - Auto width, aligned to right */
      .card-actions {
        display: flex;
        flex-direction: row !important;
        gap: 10px;
        width: 100%;
        justify-content: space-between !important;
      }

      .action-btn {
        flex: none !important;
        width: auto !important;
        border: 1px solid #717171 !important;
        border-radius: 30px !important;
        padding: 12px 18px !important;
        background-color: #fff !important;
        font-weight: 600 !important;
        font-size: 14px !important;
        color: #111827 !important;
        text-align: center;
        cursor: pointer;
        transition: all 0.2s ease;
        margin-left: 0 !important;
        white-space: nowrap;
      }

      .action-btn:hover {
        background-color: #f9fafb;
        border-color: #111827 !important;
      }

      .action-btn:active {
        background-color: #f3f4f6;
      }

      /* Form grid adjustments */
      .cb-grid1 {
        grid-template-columns: 1fr 1fr;
        gap: 14px 16px;
      }

      .cb-name1,
      .cb-message1 {
        grid-column: 1 / -1;
      }

      .cb-field1 {
        display: flex;
        flex-direction: column;
      }
    }



    
   /* ============================================
   TABLET VIEW (768px - 991px)
   ============================================ */
@media (min-width: 768px) and (max-width: 991px) {
  /* Grid: 2 cards ek row me */
  .property-grid-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    align-items: stretch; /* sab cards ki height equal */
  }

  /* Card styling */
  .property-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: none;
    border-bottom: 1px solid #e5e7eb;
    padding: 20px;
    margin: 0;
    height: 100%; /* equal height ke liye */
    background: #fff;
  }

  /* Image wrapper fix */
  .property-card-img-wrapper {
    width: 100% !important;
    height: 220px !important; /* sab images equal */
    border-radius: 16px !important;
    overflow: hidden;
    margin-bottom: 14px !important;
  }

  .property-card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px !important;
  }

  /* Details block */
  .property-details {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    text-align: left;
  }

  /* Footer neeche chipka rahe */
  .property-footer {
    margin-top: auto;
    padding-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  /* Buttons full width */
  .card-actions {
    display: flex;
    gap: 12px !important;
    width: 100%;
    justify-content: space-between !important;
  }

  .action-btn {
    /* flex: 1 !important; */
    border: 1.5px solid #111827 !important;
    border-radius: 50px !important;
    padding: 14px 20px !important;
    background-color: #fff !important;
    font-weight: 600 !important;
    font-size: 15px !important;
    color: #717171 !important;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-left: 0 !important;
  }

  .action-btn:hover {
    background-color: #f9fafb;
  }
  .review-price-line {
    display: flex; /* yaha bhi visible rahega */
    justify-content: space-between;
    align-items: center;
    gap: 10px;
  }
}

    /* ============================================
   DESKTOP VIEW (992px+) - Horizontal Layout
   ============================================ */
    @media (min-width: 992px) {
      .main-container {
        padding-left: 40px;
        padding-right: 20px;
      }

      .listings-column {
        padding-right: 60px;
      }

      .property-card {
        display: flex;
        flex-direction: row;
        align-items: flex-start;
        border-top: 1px solid #ebebeb;
        border-bottom: none;
        padding: 24px 0;
      }

      .property-card-img-wrapper {
        width: 280px;
        height: 180px;
        border-radius: 30px;
        overflow: hidden;
        margin-right: 20px;
        margin-bottom: 0;
        flex-shrink: 0;
      }

      .property-card-img-wrapper .carousel-inner,
      .property-card-img-wrapper .carousel-item {
        width: 100%;
        height: 100%;
      }

      .property-card-img-wrapper img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 30px;
      }

      .property-details {
        display: flex;
        flex-direction: column;
        width: 100%;
        flex-grow: 1;
      }

      .property-header {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
      }

      .property-title {
        font-size: 18px;
        font-weight: 500;
        color: #374151;
      }

      .property-info,
      .property-amenities {
        color: #717171;
        font-size: 14px;
        line-height: 1.4;
      }

      /* Show star rating on desktop */
      .property-card .star-rating {
        display: flex !important;
        align-items: center;
        gap: 6px;
        margin-top: 8px;
      }

      /* Hide location on desktop */
      .property-rating {
        display: flex !important;
        /* show it again */
        align-items: center;
        gap: 6px;
        font-size: 14px;
        color: #6b7280;
      }

      .property-footer {
        margin-top: auto;
        padding-top: 15px;
      }

      .review-price-line {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 15px;
      }

      .price-tag {
        font-weight: 600;
        font-size: 18px;
        color: #717171;
      }

      .card-actions {
        display: flex;
        gap: 12px;
        justify-content: space-between !important;
      }

      .action-btn {
        border: 1px solid #222;
        border-radius: 30px;
        padding: 8px 18px;
        background-color: #fff;
        font-weight: 100;
        font-size: 14px;
        color: #717171;
        margin-left: 10px;
      }

      .icon {
        color: #f59e0b;
      }
    }

    /* Between 992px and 1200px */
    @media (min-width: 992px) and (max-width: 1199px) {
      .property-title {
        font-size: 16px;
      }

      .price-tag {
        font-size: 16px;
      }

      .property-info,
      .property-amenities {
        font-size: 13px;
      }

      .action-btn {
        padding: 6px 14px;
        font-size: 13px;
      }

      .card-actions {
        gap: 8px;
      }

      .review-price-line {
        flex-wrap: wrap;
        gap: 6px;
      }
    }

    /* When screen is narrower than 1100px */
    @media (max-width: 1100px) and (min-width: 992px) {
      .property-title {
        font-size: 15px;
      }

      .price-tag {
        font-size: 15px;
      }

      .property-info,
      .property-amenities {
        font-size: 12px;
      }

      .action-btn {
        padding: 5px 12px;
        font-size: 12px;
      }

      .card-actions {
        gap: 6px;
      }

      .property-card-img-wrapper {
        width: 260px;
        height: 170px;
      }
    }

    /* Large Desktop */
    @media (min-width: 1200px) {
      .main-container {
        padding-left: 60px;
        padding-right: 0;
      }

      .property-card-img-wrapper {
        width: 300px;
        height: 200px;
      }

      .property-title {
        font-size: 20px;
      }

      .property-info,
      .property-amenities {
        font-size: 14px;
      }

      .action-btn {
        font-size: 16px;
        padding: 10px 20px;
      }
    }
    #main-head{
      top: 80px;
    }
  