/* ===== CUSTOM CARD WRAPPER ===== */
.custom-card-wrapper {
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  padding: 0;
  margin: 0 auto 20px auto;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* ===== IMAGE SECTION ===== */
.custom-card-image {
  position: relative;
  overflow: hidden;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.custom-card-image img {
  width: 100% !important;
  height: auto;
  display: block;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.custom-card-wrapper:hover .custom-card-image img {
  transform: scale(1.05);
}

/* ===== TOP LABELS ===== */
.custom-card-top-labels {
  position: absolute;
  top: 10px;
  left: 10px;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
}

.custom-label.payment-plan,
.custom-label.property-type {
  display: inline-block;
  width: auto !important;
  max-width: 100%;
  white-space: nowrap;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  box-sizing: border-box;
}

.custom-label.payment-plan {
  background: #cc3333;
  color: #fff;
}

.custom-label.property-type {
  background: #fff;
  color: #000;
  border: 1px solid #ddd;
  font-weight: 500;
}

/* ===== CARD CONTENT ===== */
.custom-card-content {
  padding: 10px 15px 0 15px;
}

.custom-card-price {
  font-weight: 600;
  color: #000;
  margin-bottom: 5px;
}

.custom-card-title {
  font-size: 16px;
  font-weight: 500;
  color: #cc3333;
  margin-bottom: 5px;
}

.custom-card-location {
  font-size: 14px;
  color: #777;
  margin-bottom: 8px;
  position: relative;
  padding-bottom: 8px;
}

.custom-card-location::after {
  content: "";
  display: block;
  width: 100%;
  height: 1px;
  background-color: #cc3333;
  margin-top: 8px;
}

/* ===== DEVELOPER & HANDOVER ===== */
.custom-card-developer,
.custom-card-handover {
  font-size: 13px;
  margin: 0;
  line-height: 1.4;
}

.custom-card-developer .label,
.custom-card-handover .label {
  color: #777;
  font-weight: 400;
}

.custom-card-developer .value,
.custom-card-handover .value {
  color: #000;
  font-weight: 400;
}

/* ===== CLEAN-UP CONTENT ===== */
.custom-card-content * {
  border: none !important;
  border-bottom: none !important;
}

/* ===== BUTTON STYLES ===== */
.custom-card-button {
  margin: 10px 15px 15px 15px;
}

.custom-card-button a {
  display: block;
  background: #cc3333;
  color: #fff;
  text-align: center;
  padding: 10px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 500;
}

.custom-card-button a:hover {
  background-color: #a32929;
  transform: translateY(-1px);
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* ===== GRID & SPACING FIXES ===== */
#module_properties {
  --bs-gutter-x: 1.5rem !important;
  --bs-gutter-y: 1.5rem !important;
  margin-top: 1.5rem;
}

/* Responsive columns */
#module_properties > .custom-card-wrapper {
  flex: 0 0 100%;
  width: 100%;
}

@media (min-width: 576px) {
  #module_properties > .custom-card-wrapper {
    flex: 0 0 calc(50% - 1.5rem);
    width: calc(50% - 1.5rem);
  }
}

@media (min-width: 992px) {
  #module_properties > .custom-card-wrapper {
    flex: 0 0 calc(33.333% - 1.5rem);
    width: calc(33.333% - 1.5rem);
  }
}

/* ===== READY & NEW PROJECTS BUTTONS ===== */
.nav-pills .nav-link {
  background-color: #cc3333 !important;
  border-color: #cc3333 !important;
  color: white !important;
  transition: all 0.3s ease !important;
}

.nav-pills .nav-link:hover {
  background-color: #a32929 !important;
  transform: translateY(-1px) !important;
}

.nav-pills .nav-link.active,
.nav-pills .show > .nav-link {
  background-color: #666 !important;
  border-color: #666 !important;
  color: white !important;
}

/* ===== SEARCH BUTTON HOVER EFFECT ===== */
.btn-search:hover,
.houzez-search-button:hover,
.search-button:hover {
  background-color: #a32929 !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1) !important;
}

/* ===== Currency toggle button style ===== */
.currency-btn {
  background-color: #cc3333;
  color: #fff;
  border: none;
  padding: 6px 14px;
  border-radius: 20px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-right: 5px;
}

.currency-btn:hover {
  background-color: #a32929;
  transform: translateY(-1px);
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.currency-btn.active {
  background-color: #666;
  color: #fff;
}

/* ===== Photo Stack Styles ===== */
.photo-stack {
  position: relative;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  height: 350px;
}

.photo-stack img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  max-width: 90%;
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
  transform-origin: center center;
  border-radius: 8px;
  object-fit: cover;
}

.photo-stack img:nth-child(1) {
  transform: rotate(-8deg) translate(-15px, -10px);
  z-index: 1;
}

.photo-stack img:nth-child(2) {
  transform: rotate(5deg) translate(10px, 5px);
  z-index: 2;
}

.photo-stack img:nth-child(3) {
  transform: rotate(-3deg) translate(-10px, 15px);
  z-index: 3;
}

.photo-stack img:nth-child(4) {
  transform: rotate(7deg) translate(5px, -15px);
  z-index: 4;
}
