/* ===================================
   PROPERTY GRID
=================================== */

.home-listings{
  padding:30px 0;
}

.section-title{
  font-size:24px;
  font-weight:700;
  margin-bottom:20px;
}

/* GRID */

.properties-row{

  display:grid !important;

  grid-template-columns:
  repeat(4,minmax(0,1fr));

  gap:20px;

  align-items:stretch;
}

/* bootstrap fix */

.properties-row > *{

  width:100% !important;

  max-width:100% !important;

  margin:0 !important;

  padding:0 !important;
}

/* CARD */

.property-card{

  background:#fff;

  border-radius:24px;

  overflow:hidden;

  border:1px solid #eceff3;

  box-shadow:
  0 4px 18px rgba(0,0,0,.04);

  transition:.25s;

  display:flex;

  flex-direction:column;

  height:100%;
}

.property-card:hover{

  transform:translateY(-4px);

  box-shadow:
  0 18px 40px rgba(0,0,0,.08);
}

/* BODY */

.property-card-body{

  padding:14px;

  display:flex;

  flex-direction:column;

  justify-content:space-between;

  flex:1;
}
.property-card-content{
  flex:1;
}

/* TITLE */

.property-card-title{

  font-size:15px;

  font-weight:600;

  line-height:1.4;

  min-height:42px;

  max-height:42px;

  overflow:hidden;
}

/* PRICE */

.property-card-price{

  color:var(--primary);

  font-size:20px;

  font-weight:700;

  margin-top:10px;
}
.property-card-price{
  margin-top:auto;
}
/* META */

.property-card-meta{

  display:flex;

  flex-wrap:wrap;

  gap:10px;

  margin-top:10px;

  font-size:13px;

  color:var(--muted);
}

/* FOOTER */

.property-card-footer{

  margin-top:auto;
}

/* TABLET */

@media(max-width:1200px){

  .properties-row{
    grid-template-columns:
    repeat(3,1fr);
  }

}

/* MOBILE */

@media(max-width:768px){

  .properties-row{
    grid-template-columns:
    repeat(2,1fr);
  }

}

/* SMALL MOBILE */

@media(max-width:480px){

  .properties-row{
    grid-template-columns:1fr;
  }

}
/* ===================================
   HARD FIX SAME CARD SIZE
=================================== */

/* GRID */

.properties-row{

  display:grid !important;

  grid-template-columns:
  repeat(4,minmax(0,1fr)) !important;

  gap:20px !important;
}

/* GRID CHILD */

.properties-row > *{

  display:flex !important;

  height:100% !important;
}

/* CARD */

.property-card{

  width:100% !important;

  min-height:430px !important;

  background:#fff;

  border-radius:16px;

  overflow:hidden;

  display:flex !important;

  flex-direction:column !important;
}

/* ALL IMAGES */

.property-card img{

  width:100% !important;

  height:220px !important;

  object-fit:cover !important;

  display:block !important;
}

/* BODY */

.property-card-body{

  display:flex !important;

  flex-direction:column !important;

  justify-content:space-between !important;

  flex:1 !important;

  padding:12px !important;
}

/* TITLE */

.property-card-title{

  min-height:42px !important;

  max-height:42px !important;

  overflow:hidden !important;
}

/* PRICE */

.property-card-price{

  margin-top:auto !important;

  font-size:22px !important;

  font-weight:700 !important;
}

/* MOBILE */

@media(max-width:1200px){

  .properties-row{
    grid-template-columns:repeat(3,1fr)!important;
  }

}

@media(max-width:768px){

  .properties-row{
    grid-template-columns:repeat(2,1fr)!important;
  }

}

@media(max-width:480px){

  .properties-row{
    grid-template-columns:1fr!important;
  }

}

.property-card:hover img{

  transform:scale(1.03);
}
.property-card-price{

  font-size:28px;

  font-weight:800;

  color:#111827;
}
.property-card-meta{

  color:#6b7280;

  font-size:14px;
}
.properties-row{

  gap:28px;
}
.home-listings .container-xl{
    max-width: 1280px;
}

.property-card{
    border-radius: 14px;
    overflow: hidden;
    transition: .2s;
}

.property-card:hover{
    transform: translateY(-3px);
}

.property-card img{
    height: 220px;
    object-fit: cover;
}

.property-card-body{
    padding: 12px;
}

.property-card-title{
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    min-height: 40px;
}

.property-card-price{
    font-size: 24px;
    font-weight: 700;
}
.property-card{
    background:#fff;
    border-radius:16px;
    overflow:hidden;
    border:1px solid #eee;
    box-shadow:0 2px 10px rgba(0,0,0,.04);
}

.property-card img{
    width:100%;
    height:230px;
    object-fit:cover;
    display:block;
}

.property-card-body{
    padding:14px;
}

.property-card-title{
    font-size:15px;
    font-weight:600;
    line-height:1.45;
    color:#222;
    margin-bottom:10px;
}

.property-card-meta{
    display:flex;
    gap:10px;
    color:#777;
    font-size:13px;
    margin-bottom:12px;
}

.property-card-price{
    font-size:28px;
    font-weight:700;
    color:#111;
}

.home-listings{
    padding:25px 0;
}
.property-card{
    position:relative;
}
.fav-btn.active {
    background: #ff4d6d !important;
    color: #fff !important;
    border-color: #ff4d6d !important;
}

.fav-btn.active svg,
.fav-btn.active i {
    color: #fff !important;
}
/* ===== FINAL IMAGE FIX ===== */

.property-card{
    position:relative;
    background:#fff;
    border-radius:16px;
    overflow:hidden;
}

.property-card-img{
    position:relative;
    width:100%;
    height:230px !important;
    overflow:hidden;
    background:#f3f4f6;
}

.property-card-img img{
    width:100% !important;
    height:100% !important;
    object-fit:cover !important;
    display:block !important;
}

/* favorites page */

#favoritesContainer .property-card-img{
    height:230px !important;
}

#favoritesContainer .property-card-img img{
    width:100% !important;
    height:100% !important;
    object-fit:cover !important;
}
.property-details-card table{
    font-size:14px;
}

.property-details-card table tr td,
.property-details-card table tr th{
    padding:8px 12px;
    line-height:1.3;
}

.property-details-card{
    margin-top:15px;
}

.property-details-card .card-header{
    font-size:18px;
    margin-bottom:10px;
}

.property-details-card table tr{
    border-bottom:1px solid #eee;
}
.info-card{
    padding:14px;
    border-radius:10px;
}
.property-meta{
    display:flex;
    align-items:center;
    gap:12px;
    margin:18px 0;
    color:#666;
    font-size:14px;
}

.property-short-info{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:30px;
    padding:25px 0;
    border-top:1px solid #eee;
    border-bottom:1px solid #eee;
}
@media(max-width:768px){

.property-short-info{
    grid-template-columns:repeat(2,1fr);
}

}
.property-short-info span{
    display:block;
    color:#777;
    font-size:14px;
    margin-bottom:6px;
}

.property-short-info strong{
    font-size:18px;
    color:#111;
}

.property-description{
    padding:30px 0;
}

.property-description h3{
    font-size:28px;
    margin-bottom:20px;
}

.property-description p{
    line-height:1.9;
    font-size:16px;
    color:#333;
}

.property-map-box{
    display:flex;
    align-items:center;
    gap:20px;
    border:1px solid #eee;
    border-radius:14px;
    padding:18px;
    margin-top:25px;
}

.property-map-box img{
    width:220px;
    border-radius:10px;
}

.map-info{
    display:flex;
    flex-direction:column;
    gap:14px;
}
.doc-badge{
  display:inline-block;
  margin-top:10px;
  padding:6px 12px;
  border-radius:8px;
  background:#eef8ee;
  border:1px solid #cfe8cf;
  color:#2e7d32;
  font-size:14px;
  font-weight:600;
}
.property-short-info{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:25px;
    padding:25px 0;
    border-top:1px solid #eee;
    border-bottom:1px solid #eee;
}

.info-item span{
    display:block;
    color:#777;
    font-size:14px;
    margin-bottom:6px;
}

.info-item strong{
    font-size:18px;
    color:#111;
    font-weight:600;
}

@media(max-width:768px){

.property-short-info{
    grid-template-columns:repeat(2,1fr);
}

}

.my-property-card{
border:none;
border-radius:18px;
overflow:hidden;
transition:.25s;
background:#fff;
height:100%;
box-shadow:0 2px 12px rgba(0,0,0,.06);
}

.my-property-card:hover{
transform:translateY(-4px);
box-shadow:0 10px 25px rgba(0,0,0,.12);
}

.my-property-image{
height:220px;
overflow:hidden;
position:relative;
}

.my-property-image img{
width:100%;
height:100%;
object-fit:cover;
transition:.4s;
}

.my-property-card:hover img{
transform:scale(1.05);
}

.property-badge{
position:absolute;
top:12px;
left:12px;
z-index:5;
}

.property-vip{
position:absolute;
top:12px;
right:12px;
z-index:5;
}

.property-content{
padding:16px;
}

.property-title{
font-size:17px;
font-weight:600;
line-height:1.4;
height:48px;
overflow:hidden;
}

.property-meta{
font-size:14px;
color:#777;
margin-top:8px;
}

.property-price{
font-size:22px;
font-weight:700;
margin-top:14px;
margin-bottom:16px;
}

.property-buttons .btn{
border-radius:10px;
font-size:14px;
font-weight:500;
}

.property-buttons{
display:flex;
flex-direction:column;
gap:8px;
}

.property-buttons .btn{
padding:7px 10px;
}

.property-content{
padding:14px;
}

.property-title{
font-size:15px;
font-weight:600;
}

.property-meta{
font-size:13px;
}

.my-property-card{
background:#fff;
border-radius:16px;
overflow:hidden;
}

.property-main-image-wrapper {
    height: 620px;
    overflow: hidden;
    border-radius: 16px;
    position: relative;
}

.property-main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.property-sidebar {
    position: sticky;
    top: 20px;
}

@media (max-width: 992px) {
    .property-main-image-wrapper {
        height: 420px;
    }

    .property-sidebar {
        position: static;
    }
}


.property-gallery {
    width: 100%;
}

.property-main-image-wrapper {
    width: 100%;
    height: 650px !important;
    background: #f5f5f5;
    border-radius: 14px;
    overflow: hidden;
}

.property-main-image {
    width: 100%;
    height: 100% !important;
    object-fit: cover;
    display: block;
}

.property-sidebar {
    position: sticky;
    top: 20px;
}

@media (max-width: 992px) {
    .property-main-image-wrapper {
        height: 420px !important;
    }

    .property-sidebar {
        position: static;
    }
}


.property-sidebar{
    position:sticky;
    top:20px;
}

@media(max-width:991px){

    .property-page .col-lg-8,
    .property-page .col-lg-4{
        width:100%;
        flex:0 0 100%;
        max-width:100%;
    }

    .property-sidebar{
        position:static;
    }
}

.property-side-card,
.seller-card{
    border-radius:14px;
    box-shadow:0 2px 10px rgba(0,0,0,.06);
}

.property-page{
    max-width:1400px;
    margin:auto;
}

.property-gallery{
    width:100%;
}

.property-main-image-wrapper{
    width:100%;
    height:650px;
    border-radius:16px;
    overflow:hidden;
    background:#f3f4f6;
}

.property-main-image{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
}

.property-sidebar{
    position:sticky;
    top:20px;
}

.property-side-card,
.seller-card{
    border-radius:16px;
    box-shadow:0 2px 12px rgba(0,0,0,.06);
}

@media(max-width:992px){

    .property-main-image-wrapper{
        height:420px;
    }

    .property-sidebar{
        position:static;
    }
}

.property-page .row{
    display:flex;
    flex-wrap:wrap;
}

.property-page .row{
    --bs-gutter-x: 24px;
    align-items:flex-start;
}


.property-sidebar{
    position:sticky;
    top:20px;
}

@media(max-width:991px){

   .property-page .col-lg-8,
   .property-page .col-lg-4{
      width:100%;
      flex:0 0 100%;
   }

}

.property-page.container-xl{
    max-width:1320px;
}

.property-gallery,
.property-description,
.property-short-info,
.property-map-box{
    width:100%;
}

.property-page .row{
    display:flex;
    flex-wrap:wrap;
    align-items:flex-start;
    --bs-gutter-x:24px;
}

.property-page .col-lg-8{
    flex:0 0 66.666667%;
    max-width:66.666667%;
}

.property-page .col-lg-4{
    flex:0 0 33.333333%;
    max-width:33.333333%;
}

@media(max-width:991px){

    .property-page .col-lg-8,
    .property-page .col-lg-4{
        flex:0 0 100%;
        max-width:100%;
    }

}

.property-title{
  font-size:42px;
  font-weight:700;
  line-height:1.2;
  margin-bottom:20px;
}

.property-features{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:15px;
}

.feature-card{
  background:#fff;
  border-radius:16px;
  padding:20px;
  text-align:center;
  box-shadow:0 5px 20px rgba(0,0,0,.08);
}

.feature-card span{
  display:block;
  color:#888;
  margin-top:10px;
}

.feature-card b{
  display:block;
  font-size:22px;
  margin-top:5px;
}