/* Responsive card viewport widths */
.cards-viewport {
  overflow: hidden;
  margin: 0 auto;
  flex: 0 0 auto;
  transition: width 0.3s ease;
}

/* Large Desktop: 4 cards (1200px+) */
@media (min-width: 1200px) {
  .cards-viewport {
    width: calc(4 * 291px + 3 * 24px); /* 4 cards + 3 gaps = 1236px */
  }
  .card {
    width: 291px;
  }
}

/* Smaller Desktop: 3 cards (992px - 1199px) */
@media (min-width: 992px) and (max-width: 1199px) {
  .cards-viewport {
    width: calc(3 * 280px + 2 * 24px); /* 3 cards + 2 gaps = 888px */
  }
  .card {
    width: 280px;
  }
}

/* Tablet: 2 cards (768px - 991px) */
@media (min-width: 768px) and (max-width: 991px) {
  .cards-viewport {
    width: calc(2 * 270px + 1 * 24px); /* 2 cards + 1 gap = 564px */
  }
  .card {
    width: 270px;
  }
}

/* Mobile: 1 card (up to 767px) */
@media (max-width: 767px) {
  .cards-viewport {
    width: 280px; /* Single card width */
  }
  .card {
    width: 280px;
  }
  .slider-track > .card:not(:last-child) {
    margin-right: 16px; /* Smaller gap on mobile */
  }
}

/* Slider track smooth transitions */
.slider-track {
  display: flex;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}

/* Arrow button improvements */
.arrow-btn {
  transition: opacity 0.2s ease, background 0.2s ease;
}

.arrow-btn:disabled {
  cursor: not-allowed !important;
  opacity: 0.5 !important;
}

.arrow-btn:not(:disabled):hover {
  background: #e0e0e0;
}




    /* Fixed heights for desktop gallery */
.main-image {
  height: 400px !important;
  object-fit: cover;
  object-position: center;
}

.thumbnail-image {
  height: 195px !important;
  object-fit: cover;
  object-position: center;
}

/* Fixed height for mobile carousel */
.carousel-item img {
  height: 300px !important;
  object-fit: cover;
  object-position: center;
}

/* Ensure carousel has consistent height */
.carousel-inner {
  height: 300px;
}

/* Alternative: Different mobile height */
@media (max-width: 768px) {
  .carousel-item img {
    height: 250px !important;
    margin-top: 60px;
  }
  
  .carousel-inner {
    height: 250px;
  }
}

    
      body {
  font-family: 'Nunito Sans', sans-serif !important;
}

.fixed-image-wrapper {
  position: relative;
  width: 100%;
  padding-top: 60%; 
  overflow: hidden;
  border-radius: 4px;
}

.fixed-image-wrapper img.fixed-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}


.section-title{
  font-size: 24px;
  font-weight: 500;

}

    .overview-content{
      color: #000000;
    }
    .property-header { font-size: 24px; font-weight: 600; margin-bottom: 0.5rem; }
    .trust-badge { font-weight: 600; font-size: 0.875rem; padding: 0.25rem 0.75rem; background-color: #e8f5e8; color: #2c7a2c; border-radius: 20px; display: inline-block; margin-left: 0.5rem; }
    .trust-badge::before {  margin-right: 0.25rem; }
    .rating { color: #f4b41a; font-weight: 600; }
      
    .divider1 { border-top: 1px solid #e5e7eb; margin: 2rem 0; }
    .amenity-item { display: flex; align-items: center; padding: 0.5rem 0; font-size: 0.95rem; }
    .amenity-icon { width: 20px; height: 20px; margin-right: 12px; opacity: 0.8; }
    .pricing-item {
      height: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  margin-bottom: 30px; /* gap between rows */
  border: 1.06px solid #E5E7EB;
  box-shadow: 0px 1.06px 2.12px 0px #1F293714;
  border-radius: 8px; /* optional, makes it look softer */
  background-color: #fff; /* keeps it clean against page bg */
}
    .price { font-weight: 700; color: #000000; }
    .booking-section { background-color: #f8f9fa; border-radius: 4px; padding: 1rem; margin-top: 2rem; }
    .booking-title { font-size: 1.25rem; font-weight: 600; color: #000000; margin-bottom: 1.5rem; }
    .form-label { font-weight: 500; margin-bottom: 0.5rem; }
    .btn-submit { background-color: #4a90e2; border: none; padding: 12px 40px; border-radius: 6px; font-weight: 500; }
    .btn-schedule { color: #4a90e2; text-decoration: none; font-weight: 500; }
    .image-gallery { border-radius: 12px; overflow: hidden; }
    .main-image { height: 400px; object-fit: cover; }
    .thumbnail-image { height: 195px; object-fit: cover; }
    .show-photos-btn { position: absolute; bottom: 15px; right: 15px; background: white; border: 1px solid #ccc; padding: 8px 16px; border-radius: 6px; font-size: 0.9rem; }
    .map-container { height: 480px; background-color: #f0f0f0; border-radius: 8px; margin-bottom: 1rem; }
    .nearby-item { display: flex; align-items: center; padding: 0.5rem; margin: 0 1rem; }
    .nearby-icon { width: 24px; height: 24px; margin-right: 8px; }
    .booking-section.sticky-limited { position: sticky; top: 20px; }
    .loading-spinner { border: 4px solid #f3f3f3; border-top: 4px solid #4a90e2; border-radius: 50%; width: 40px; height: 40px; animation: spin 2s linear infinite; }
    @keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

   

      .section-subtitle {
        text-align: center;
        color: #52a6db;
        font-size: 2rem;
        font-weight: 600;
        margin-top: 0;
        margin-bottom: 32px;
      }

      .slider-container {
        position: relative;
        max-width: 1240px;
        margin: 0 auto 48px;
        box-sizing: border-box;
      }

      .cards-viewport {
        overflow: hidden;
        margin: 0 auto;
        flex: 0 0 auto;
      }

      /* 4 cards */
      .cards-viewport {
        width: calc(4 * 291px + 3 * 24px);
      }

      @media (min-width: 993px) and (max-width: 1200px) {
        .cards-viewport {
          width: calc(3 * 250px + 2 * 24px);
        }
      }

      @media (min-width: 650px) and (max-width: 992px) {
        .cards-viewport {
          width: calc(2 * 210px + 1 * 16px);
        }
      }

      @media (max-width: 649px) {
        .cards-viewport {
          width: 292px;
        }
      }

      .slider-track {
        display: flex;
        transition: transform 0.5s cubic-bezier(0.55, 0, 0.1, 1);
        will-change: transform;
      }

      .slider-track > .card:not(:last-child) {
        margin-right: 24px;
      }

      @media (min-width: 650px) and (max-width: 992px) {
        .slider-track > .card:not(:last-child) {
          margin-right: 16px;
        }
      }

      @media (max-width: 649px) {
        .slider-track > .card:not(:last-child) {
          margin-right: 0;
        }
      }

      .slider-arrows {
        position: absolute;
        right: 0;
        bottom: -70px;
        display: flex;
        flex-direction: row;
        align-items: flex-end;
        justify-content: flex-end;
        z-index: 2;
        gap: 10px;
        padding: 0 0 8px 0;
      }

      .arrow-btn {
        width: var(--arrow-btn-width);
        height: var(--arrow-btn-height);
        border: none;
        background: #f2f2f2;
        color: #333;
        border-radius: 4px;
        font-size: 1.7rem;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: background 0.15s;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
        user-select: none;
        margin: 0;
      }

      .arrow-btn:active {
        background: #e2e2e2;
      }

      .card {
        width: 291px;
        height: 310px;
        background: #fff;
        border-radius: 4px;
        box-shadow: 0 2px 16px rgba(32, 35, 48, 0.07);
        border: 1px solid #f2f2f2;
        overflow: hidden;
        display: flex;
        flex-direction: column;
        flex-shrink: 0;
        font-size: 1rem;
        padding: 0;
        margin: 0;
        transition: box-shadow 0.2s;
      }

      .card-img-outer {
        width: 100%;
        padding: 10px;
        box-sizing: border-box;
        background: #fff;
        border-radius: 4px 4px 0 0;
        position: relative;
      }

      .card-img-inner {
        width: 100%;
        height: 180px;
        overflow: hidden;
        border-radius: 4px 4px 0 0;
        background: #f5f5f5;
        position: relative;
      }

      .card-img-inner img {
        width: 100%;
        height: 180px;
        object-fit: cover;
        border-radius: 4px 4px 0 0;
        display: block;
      }

      .guest-favourite {
        position: absolute;
        top: 18px;
        left: 20px;
        background: #52a6db;
        color: #fff;
        font-size: 12px;
        font-weight: 600;
        border-radius: 4px;
        padding: 2px 10px;
        z-index: 1;
      }

      .card-content1 {
        padding: 14px 16px 0 16px;
        display: flex;
        flex-direction: column;
        flex: 1 1 auto;
        gap: 0;
      }

      .row-title-price {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 10px;
      }

      .apt-title {
        font-size: 1.04rem;
        font-weight: 600;
        color: #222;
        margin: 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        flex: 1;
        margin-right: 12px;
      }

      .apt-price {
        color: #52a6db;
        font-size: 1.04rem;
        font-weight: 500;
        margin: 0;
        white-space: nowrap;
      }

      .apt-price span {
        color: #444;
        font-size: 1.04rem;
        font-weight: 400;
        margin-left: 2px;
      }

      .apt-meta {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 18px;
        color: #777;
        font-size: 13px;
        margin-bottom: 20px;
      }

      .apt-meta span {
        display: flex;
        align-items: center;
        gap: 4px;
      }

      .card-actions {
        margin-top: auto;
        margin-bottom: 17px;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        gap: 0;
      }

      .book-now-btn {
        width: 70px;
        height: 21px;
        border-radius: 4px;
        border: 1px solid #183153;
        background: #fff;
        color: #183153;
        font-size: 8px;
        font-weight: 600;
        cursor: pointer;
        transition: background 0.15s, color 0.15s;
        display: flex;
        align-items: center;
        justify-content: center;
        letter-spacing: 0.5px;
        padding: 0;
        text-decoration: none;
      }
      .form-control{
        background-color: #FAFDFF !important;
      }

      .book-now-btn:hover {
        background: #183153;
        color: #fff;
      }




      .booking-section {
  background: #FAFDFF; 

  box-shadow: 1.28px 1.28px 13.92px 0px #0000001A; /* soft shadow */
  padding: 1rem;
  margin-top: 2rem;
}

.booking-title {
  font-size: 1.5rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: 1.5rem;
}

.booking-title span {
  color: #58A0C8; /* highlight color */
}

.form-label {
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.btn-submit {
  background: #58A0C8;
  border: none;
  color: #fff;
  font-weight: 600;
  padding: 10px 0;
  width: 170px;               /* fixed width */
  margin: 0 auto;             /* center align */
  display: block;             /* make center work */
  border-radius: 4px;
  transition: background 0.2s ease-in-out;
}

.btn-submit:hover {
  background: #4a90e2;
}

.toggle-text {
  text-align: center;
  margin-top: 1rem;
}

.toggle-btn {
  width: 170px;
  display: block;
  margin: 0.5rem auto 0;   /* center align */
  color: #58A0C8;
  border: 1px solid #58A0C8;
  background: transparent;
  font-weight: 600;
  border-radius: 4px;
  padding: 8px 0;
  transition: all 0.2s ease-in-out;
}

.toggle-btn:hover {
  background: #58A0C8;
  color: #fff;
}


.nearby-container {
  display: flex;
  gap: 1rem;              /* spacing between cards */
  flex-wrap: wrap;        /* wrap on small screens */
}

.nearby-card {

  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border: 2px solid #e5e7eb;
  border-radius: 4px;
  padding: 12px 20px;
  transition: all 0.2s ease-in-out;
}

.nearby-icon-wrap {
  font-size: 1.5rem;   /* adjust icon size */
  color: #444;         /* icon color */
}

.nearby-text {
  font-size: 1rem;
  font-weight: 500;
  color: #222;
}


/* ========== IMAGE GALLERY MODAL STYLES ========== */
.image-gallery-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  background: #000;
}

.gallery-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: -1;
}

.gallery-modal-content {
  display: flex;
  flex-direction: column;
  height: 100vh;
  position: relative;
}

/* Gallery Header */
.gallery-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  position: relative;
  z-index: 10;
  flex-shrink: 0;
}

.gallery-close-btn {
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  transition: background-color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
}

.gallery-close-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.gallery-counter {
  font-size: 14px;
  font-weight: 500;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.gallery-actions {
  display: flex;
  gap: 12px;
}

.gallery-action-btn {
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
}

.gallery-action-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
}

/* Main Image Display */
.gallery-main-display {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  overflow: hidden;
}

.gallery-image-container {
  max-width: 90vw;
  max-height: calc(100vh - 200px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-image-container img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
}

.gallery-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  border: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  z-index: 10;
  color: #333;
}

.gallery-nav-btn:hover {
  background: white;
  transform: translateY(-50%) scale(1.1);
}

.gallery-prev {
  left: 24px;
}

.gallery-next {
  right: 24px;
}

/* Thumbnails */
.gallery-thumbnails {
  padding: 16px 24px;
  background: rgba(0, 0, 0, 0.8);
  flex-shrink: 0;
}

.thumbnails-container {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
}

.thumbnails-container::-webkit-scrollbar {
  height: 4px;
}

.thumbnails-container::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
}

.thumbnails-container::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 2px;
}

.thumbnail-item {
  flex-shrink: 0;
  width: 80px;
  height: 60px;
  cursor: pointer;
  border-radius: 6px;
  overflow: hidden;
  border: 2px solid transparent;
  transition: all 0.2s;
}

.thumbnail-item:hover {
  border-color: rgba(255, 255, 255, 0.5);
}

.thumbnail-item.active {
  border-color: white;
}

.thumbnail-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .gallery-header {
    padding: 12px 16px;
  }
  
  .gallery-counter {
    position: static;
    transform: none;
  }
  
  .gallery-nav-btn {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }
  
  .gallery-prev {
    left: 16px;
  }
  
  .gallery-next {
    right: 16px;
  }
  
  .gallery-actions {
    gap: 8px;
  }
  
  .gallery-action-btn {
    padding: 6px 12px;
    font-size: 12px;
  }
  
  .thumbnail-item {
    width: 60px;
    height: 45px;
  }
  
  .gallery-image-container {
    max-height: calc(100vh - 160px);
  }
}

@media (max-width: 480px) {
  .gallery-actions {
    display: none; /* Hide on very small screens */
  }
  
  .gallery-header {
    justify-content: space-between;
  }
  
  .gallery-counter {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }
}

/* Show photos button enhancement */
.show-photos-btn {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 14px;
  transition: all 0.2s;
}


/* Heart icon fill state */
.bi-heart-fill {
  color: #ff385c !important;
}


.show-button{
  position: absolute;
  bottom: 16px;
  right: 16px;
  background: white;
  color: #222222;
  border: 1px solid #222222;
  padding: 8px 12px;
  border-radius: 2px;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
  z-index: 10;
  
}

/* Amenities Layout */
.amenities-container {
  padding: 20px 0;
}

.amenity-item {
  display: flex;
  align-items: center;
  border-bottom: 1px solid #f0f0f0;
}

.amenity-item:last-child {
  border-bottom: none;
}

.amenity-icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;   /* fixed width */
  height: 50px;  /* fixed height */
  margin-right: 20px;
  flex-shrink: 0;
}

.amenity-icon-wrapper svg {
  width: 20px !important;
  height: 20px !important;
}

/* Text */
.amenity-name {
  font-size: 16px;
  font-weight: 400;
  color: #222;
}

/* Two-column layout */
@media (min-width: 768px) {
  .amenities-container .row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    margin: 0;
  }
  .amenities-container .col-md-6,
  .amenities-container .col-lg-4 {
    width: 100%;
    padding: 0;
  }
}

/* Single column mobile */
@media (max-width: 767px) {
  .amenities-container .row {
    display: block;
  }
  .amenity-item {
    padding: 16px 0;
  }
  .amenity-icon-wrapper {
    margin-right: 16px;
  }
  .amenity-name {
    font-size: 15px;
  }
}


.property-header {
  font-size: 24px;
  font-weight: 500;
}


.trust-badge {
  font-size: 0.9rem;
  background-color: #58A0C833; /* 20% opacity */
  color: #58A0C8;
  font-weight: 500;
}



/* ===== Recommended Properties (new design with suffix 1) ===== */

.slider-container1 {
  position: relative;
  margin: 0 auto 48px;
  max-width: 1440px;
}

.scroll-container1 {
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  gap: 20px;
  padding-bottom: 10px;
}
.scroll-container1::-webkit-scrollbar {
  display: none;
}

.slider-card1 {
  flex: 0 0 auto;
  background: #f8f9fa;
  border-radius: 16px;
  position: relative;
  overflow: hidden;
}

.slider-card1 img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 16px 16px 16px 16px;
}

.slider-badge1 {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #fff;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 12px;
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.slider-card-body1 {
  padding: 10px;
}

.slider-card-title1 {
  font-weight: 700;
  margin-bottom: 6px;
  font-size: 14px;
  color: #222;
}

.slider-card-price1 {
  font-weight: 600;
  font-size: 13px;
  color: #444;
  margin-bottom: 10px;
}

.slider-card-buttons1 {
      display: flex;
      gap: 10px;
      /* more gap between buttons */
      justify-content: space-between;
      /* align to left */
}
    .slider-card-buttons1 button {
      font-size: 12px;
      /* bigger text like in image */
      padding: 5px 5px;
      /* proper padding */
      border: 1px solid #717171;
      border-radius: 20px;
      cursor: pointer;
      flex: unset;
      /* prevent equal stretching */
    }


.btn-primary1,
.btn-secondary1 {
      background: white;
      color: #717171;
      font-size: 12px;
      padding: 5px 5px;
      border: 1px solid #717171;
      border-radius: 20px;
      cursor: pointer;
      flex: unset;
      text-decoration: none;
}

.btn-primary1:hover,
.btn-secondary1:hover {
  background-color: #58a0c8;
  color: #fff;
}

/* Scroll Buttons */
.scroll-buttons1 {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 12px;
}
.scroll-buttons1 button {
  background: #f1f1f1;
  border: none;
  padding: 8px 12px;
  cursor: pointer;
  border-radius: 6px;
  font-size: 18px;
  transition: background 0.2s;
}
.scroll-buttons1 button:hover {
  background: #ddd;
}

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

/* Large Desktop ≥1443px → 6 cards */
@media (min-width: 1443px) {
  .slider-card1 {
    width: calc((100% - 5 * 20px) / 6);
  }
}

/* Smaller Desktop 1024–1442px → 4 cards */
@media (min-width: 1024px) and (max-width: 1442px) {
  .slider-card1 {
    width: calc((100% - 3 * 20px) / 4);
  }
}

/* Tablet 768–1023px → 3 cards */
@media (min-width: 768px) and (max-width: 1023px) {
  .slider-card1 {
    width: calc((100% - 2 * 16px) / 3);
  }
  .scroll-container1 {
    gap: 16px;
  }
}

/* Mobile 431–767px → 2 cards side by side */
@media (min-width: 431px) and (max-width: 767px) {
  .slider-card1 {
    width: 50%;
  }
}

/* Small Mobile ≤430px → ~2.5 scrollable cards */
@media (max-width: 430px) {
  .slider-card1 {
    width: 183px;
  }
  .scroll-container1 {
    gap: 5px;
    padding-left: 10px;
  }
  .scroll-buttons1 {
    display: none;
  }
}
#error-state{
    display: none;
}
#property-content{
     display: none;
}
