
/* ========== Portfolio Container ========== */
.portfolio-container {
    max-width: 1200px;
    margin: auto;
    padding: 20px;
}

.portfolio-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 20px;
}

.portfolio-grid {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.portfolio-content {
    display: flex;
    align-items: flex-start;
}

/* ========== Image Slider ========== */
.portfolio-slider {
    width: 50%;
    position: relative;
}

.slider-container {
    position: relative;
    width: 100%;
    overflow: hidden;
}

/* Slides */
.slider .slide {
    display: none;
    width: 623px;
    height: 398px;
}
.slider .slide.active {
    display: block;
    position: relative;
}
.slider .slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ========== Slider Header (New, Image Count, Save) ========== */
.slider-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.5);
    padding: 10px 15px;
    color: #fff;
    font-size: 0.9rem;
    z-index: 10;
}

.slider-label {
    font-size: 11px;
    padding: 5px 10px;
    border-radius: 5px;
}

/* Label Variations */
.sold {
    color: #fff;
    background: #CD171E;
}
.available {
    background: #FFDF00;
    color: #000;
}

.slider-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.image-count {
    display: flex;
    align-items: center;
}

/* Save Listing Button */
.save-listing {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 1rem;
    gap: 5px;
}
.heart-icon {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: white;
    stroke-width: 2;
    transition: fill 0.3s, stroke 0.3s;
}
.save-listing.saved .heart-icon .heart-path {
    fill: #e72626;
    stroke: #e72626;
}

/* ========== Navigation Buttons ========== */
.prev-slide, 
.next-slide {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 18px;
    border-radius: 50%;
    transition: background 0.3s;
    z-index: 10;
}
.prev-slide:hover,
.next-slide:hover {
    background: rgba(0, 0, 0, 0.8);
}
.prev-slide {
    left: 10px;
}
.next-slide {
    right: 10px;
}

/* ========== Property Details ========== */
.portfolio-details {
    width: 50%;
    position: relative;
    height: 398px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.property-price {
    font-size: 1rem;
    color: gray;
}

.property-title {
    font-size: 1.7rem;
    margin: 5px 0;
}

.property-location {
    font-size: 16px;
    color: #555;
}

h3.property-location {
    font-size: 26px;
    font-weight: bold;
    margin: 0;
}


h3.property-location a:hover {
    color: unset!important;
}

.property-location  {
    color: #000;
}

.property-location a {
    color: unset!important;
}


.property-features {
    margin-top: 10px;
    padding-left: 0;
}

.property-features li {
    margin-bottom: 5px;
}

/* ========== Agent Info ========== */
.agent-info {
    display: flex;
    gap: 15px;
    margin-top: 15px;
    align-items: center;
}

.agent-photo {
    width: 70px;
    height: 70px;
}

.agent-text p {
    margin: 2px 0;
}

.agent-text a {
    color: #222;
}

.contact-link {
    color: blue;
    text-decoration: underline;
}

/* ========== Property Icons ========== */
.property-icons-wrapper {
    width: 100%;
    height: 100%;
}

.property-icons {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    padding: 10px 15px;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 15px;
}

.property-icons span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.current-slide {
    margin-left: 10px;
}

/* ========== Property Footer ========== */
.property-footer {
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 12px 15px;
    color: #000;
    font-size: 0.9rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #bfbfbf;
}

/* ========== Portfolio Item ========== */
.portfolio-item {
    position: relative;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
    overflow: hidden;
    height: 398px;
    padding-bottom: 50px; 
}

.property-footer-left,
.property-footer-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.property-attribute {
    display: flex;
    align-items: center;
    gap: 8px;
}

.property-attribute img {
    width: 22px!important;
}

.property-icon i {
    font-size: 18px;
}

.property-label {
    font-size: 0.85rem;
    /* color: #A4A4A9; */
}

/* ========== Additional Layout Helpers ========== */
.portfolio-container-lx {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    padding-left: 20px;
    color: #000;
}

.agent-features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto;
    gap: 0;
    padding: 0 20px;
    margin: 0;
    font-size: 14px;
}

.sale-property-bg-black {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto;
    gap: 0;
    padding: 0 20px;
    margin: 0;
    font-size: 14px;
    color: #fff;
}

.feature-item {
    padding-right: 30px;
}

/* Price Container */
.property-price-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.price-label {
    font-size: 14px;
    color: #666;
}
.price-value {
    font-size: 36px;
    font-weight: bold;
    line-height: 15px;
    color: #000;
    font-family: "Cormorant Garamond", sans-serif;
    margin-bottom: 20px;
}

/* ========== Pagination Styles ========== */
.portfolio-pagination {
    text-align: center;
    margin: 20px 0;
}
.portfolio-pagination .page-numbers {
    display: inline-block;
    margin: 0 4px;
    padding: 6px 12px;
    background: #f7f7f7;
    color: #333;
    text-decoration: none;
    border: 1px solid #ccc;
    transition: background 0.2s, color 0.2s;
}
.portfolio-pagination .page-numbers:hover {
    background: #e0e0e0;
}
.portfolio-pagination .page-numbers.current {
    background: #333;
    color: #fff;
    border-color: #333;
    cursor: default;
}
.portfolio-pagination .page-numbers.dots {
    border: none;
    background: transparent;
}



.bg-black {
    background: #84897b;
    color: #fff;
}

.bg-black a {
    color: #fff;
}

/* .bg-black a:hover {
    color: #c5c5c5;
} */

.bg-black i {
    color: #fff;
}



/* ============================= */
/*       RESPONSIVE STYLES      */
/* ============================= */

/* ----- Tablet (up to 1024px) ----- */
@media (max-width: 1024px) {
  .portfolio-container {
    padding: 15px;
  }
  
  /* Reduce the gap between items for smaller screens */
  .portfolio-grid {
    gap: 20px;
  }

  .portfolio-content {
    display: flex;
    flex-direction: column;  /* Stack them on tablets and below */
    /* max-width: 600px; */
  }

  /* Make slider and details full width */
  .portfolio-slider,
  .portfolio-details {
    width: 100%;
  }

  /* Override any fixed heights so content can grow */
  .portfolio-item {
    height: auto;  /* Let the content dictate height */
  }

  /* Smaller font sizes on tablets */
  .portfolio-title {
    font-size: 1.8rem;
  }
  h3.property-location {
    font-size: 22px;
  }
  .price-value {
    font-size: 30px;
  }
  .slider .slide {
    width: 100%;
  }
}

/* ----- Mobile (up to 767px) ----- */
@media (max-width: 767px) {
  .portfolio-container {
    padding: 10px;
  }

  .portfolio-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
  }

  .portfolio-item {
    box-shadow: none;
/*     margin: 0 auto; */
    height: auto;
    padding-bottom: 0;
  }

  /* Stack everything in one column */
  .portfolio-content {
    flex-direction: column;
  }

  /* Slider takes full width on mobile */
  .portfolio-slider {
    width: 100%;
  }

  /* Ensure the images scale down properly */
  .slider-container {
    /* Remove aspect ratio if desired and use a fixed height */
    aspect-ratio: unset;
    height: 240px;
  }
  .slider .slide,
  .slider .slide img {
    width: 100%;
    height: 100%;
  }

  /* Details full width */
  .portfolio-details {
    width: 100%;
    padding: 10px 0; 
    height: auto;
  }

  /* Make agent features single-column if desired */
  .agent-features-grid {
    grid-template-columns: 1fr; 
    padding-left: 15px;
  }

  /* Footer attributes can stack */
  .property-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .property-footer-left,
  .property-footer-right {
    gap: 10px;
  }

  /* Adjust font sizes */
  .property-price-container .price-value {
    font-size: 24px;
  }
  h3.property-location {
    font-size: 18px;
  }
  .property-location {
    font-size: 14px;
  }

  /* Navigation arrows: smaller size or reposition if needed */
  .prev-slide, 
  .next-slide {
    font-size: 16px;
    width: 32px;
    height: 32px;
    top: 45%;
    padding: 0;
  }
  .slider {
    height: 250px;
  }
  .slider-header {
    bottom: 0;
  }
}

/* For very small devices (up to 420px) */
@media (max-width: 420px) { 
    .portfolio-pagination .page-numbers {
        margin-top: 10px;
    }
}
