/*
 * Component: Image Card (.oneCard)
 * This card is now flexible to work inside Swiper.
*/
.oneCard {
  display: flex;
  flex-direction: column;
  width: 100%; /* Fill the slide */
  height: 350px; /* Maintain consistent height */
  border-radius: 10px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  color: var(--color-white);
  overflow: hidden;
  cursor: pointer;
}

.oneCard:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}

.oneCard::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
}

.oneCard span,
.oneCard h3,
.oneCard .bottomCard {
  position: relative;
  z-index: 2;
  color: var(--color-white);
}

.oneCard span {
  display: inline-block;
  width: fit-content;
  margin: 10px;
  padding: 5px 10px;
  background: var(--color-brand-primary);
  color: var(--color-black);
  border-radius: 5px;
  font-weight: bold;
  font-size: 14px;
}

.oneCard .propertyName {
  font-size: 16px;
  margin: 10px;
}

.oneCard .propertyPrice {
  font-size: 18px;
  font-weight: bold;
  margin: 10px;
}

.oneCard .bottomCard {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 10px;
  margin-top: auto;
}

.oneCard .bottomCard button {
  flex: 1;
  padding: 8px;
  border: none;
  border-radius: 5px;
  background: transparent;
  border: 1px solid var(--color-white);
  color: var(--color-white);
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
}

.oneCard .bottomCard .WhatsButton {
    background-color: var(--color-whatsapp);
}

.oneCard .bottomCard .callButton {
    background-color: var(--color-call);
}

.oneCard .bottomCard .zoomButton {
    background-color: var(--color-zoom);
}

.oneCard .bottomCard .contactButtons {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 5px;
}