/* ===== Property Cards Layout ===== */
/* ===== Property Cards Layout ===== */
.property-cards {
  --navy: #0b2640;
  --text: #4a5663;
  --paper: #fff;
  --radius: 8px;
  --gap: 5px;
}

.cards-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 5px; /* 5px gap */
  width: 100%;
  
}


.property-card {
  background: var(--paper);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.24);
  transition: transform 0.2s ease;

  height: 580px!important;       /* fixed height for all cards */
}

.property-card:hover {
  background: linear-gradient(180deg, #EFE9DF 0%, #E5D8C2 100%) !important;
}

/* ===== Media / Image Container ===== */
.media {
  position: relative !important;
  width: 100% !important;
  height: 250px !important;           /* Fixed height for consistent images */
  overflow: hidden;
  flex-shrink: 0;
}

.media img,
.property-image {
  width: 100% !important;
  height: 100%!important;            /* Force to fill container */
  object-fit: cover!important;       /* Crops & fills without distortion */
  object-position: center!important; /* Always centered */
  display: block;
  transition: transform 0.5s ease;
}

/* Hover zoom effect */
.property-card:hover .property-image {
  transform: scale(1.03);
}

.badge {
  position: absolute;
  top: 15px!important;          /* moves badge 10px down from the top */
  left: 15px!important;         /* moves badge 10px right from the left */
  padding: 10px 20px;  /* adds more space inside the badge */
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  color: #fff;
  font-size: 0.74rem;
  font-weight: 600;
  text-transform: uppercase;
  border-radius: 50px!important;
}


.card-body {
  padding: 15px !important;
  min-height: 230px;
  height: auto !important;
}

.kicker {
  margin: 0 0 10px;
  color: var(--navy);
  font-size: 1.9rem;
  font-weight: 400;
}

.sub {
  font-weight: 400;
  color: var(--navy);
  font-size: 1.08rem;
  margin: 0 !important;
}

.price {
  font-weight: 600;
  font-size: 30px;
  margin: 0 !important;
}

.meta {
  font-size: 16px;
  margin-bottom: 5px !important;
}

.price svg {
  flex-shrink: 0!important;
}

.features,
.note {
  display: flex;
  gap: 12px;
  align-items: center;
  font-weight: 400;
  color: var(--navy);
  margin-bottom: 8px;
  font-size: 0.98rem;
  flex-wrap: wrap;
}

.f svg,
.note svg {

  flex-shrink: 0!important;
}

.f span,
.note span {
  display: inline-block;
  margin-left: 6px;
}

.btn-row {
  padding-right:15px!important;
  padding-left:15px!important;
  padding-bottom:35px!important;
 
}

.view-details {
  display: inline-flex;
  align-items: center;
  padding: 15px 30px !important;
  border-radius: 999px;
  background: transparent;
  color: var(--navy);
  border: 1px solid #0b2640;
  text-decoration: none;
  transition: all 0.2s ease;
}

.view-details:hover {
  background: #0C1A4C;
  color: #fff;
   border: 1px solid #0C1A4C;
}

.view-details:active {
  transform: translateY(1px);
}

/* ===== Pagination ===== */
.property-gallery .pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 32px;
    gap: 10px;
    flex-wrap: wrap;
}

.property-gallery .pagination ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 6px;
}

.property-gallery .pagination li {
    display: inline;
}

.property-gallery .pagination a,
.property-gallery .pagination span {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 50px;
    border: 1px solid #0b2640;
    background: transparent;
    color: #0b2640;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.property-gallery .pagination a:hover {
    background: #0b2640;
    color: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.property-gallery .pagination .current {
    background: #0b2640;
    color: #fff;
    font-weight: 600;
    border-color: #0b2640;
}

/* Responsive Pagination */
@media (max-width: 639.98px) {
    .property-gallery .pagination a,
    .property-gallery .pagination span {
        padding: 6px 12px;
        font-size: 13px;
    }
}

/* ===== Responsive ===== */

/* Tablet */
@media (max-width: 1024px) {
  .property-gallery .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile */
@media (max-width: 639.98px) {
  .property-gallery .gallery-grid {
    grid-template-columns: 1fr;
  }
  .property-card {
  background: var(--paper);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.24);
  transition: transform 0.2s ease;

  height: 600px!important;       /* fixed height for all cards */
}
  .features,
  .note {
    font-size: 0.9rem;
    gap: 8px;
  }
}