.btn-brand {
  background-color: #2398b6 !important;
  border-color: #2398b6 !important;
  color: #fff !important;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  border-radius: 8px;
}
.btn-brand:hover {
  background-color: #1d8299 !important;
  border-color: #1d8299 !important;
}
.btn-outline-dark {
  border-radius: 8px;
}
.section-heading {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}
h1 {
  font-size: 2rem;
  font-weight: 600;
}
hr {
  color: #ddd;
}
.header-details span {
  margin-right: 1rem;
}
.header-details .fa-star {
  color: #ff385c;
}
.photo-grid-wrapper {
  position: relative;
}
.photo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 8px;
  height: 450px;
  border-radius: 12px;
  overflow: hidden;
}
.photo-grid .photo-item {
  cursor: pointer;
  overflow: hidden;
}
.photo-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.photo-grid .photo-item:hover img {
  transform: scale(1.05);
}
.photo-grid .main-photo {
  grid-column: 1 / 3;
  grid-row: 1 / 3;
}
#show-all-photos {
  position: absolute;
  bottom: 20px;
  right: 20px;
  z-index: 10;
}
.booking-card-sticky {
  position: -webkit-sticky;
  position: sticky;
  top: 100px; /* Adjust top value based on your navbar height */
}
.booking-card {
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.amenity-item {
  gap: 1rem;
}
.amenity-item i {
  font-size: 1.2rem;
  width: 25px;
  text-align: center;
  color: #717171;
}
.bed-card {
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 1.5rem;
}
.bed-card i {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  color: #484848;
}
.bed-card .bedroom-title {
  font-weight: 600;
}
.bed-card .bed-desc {
  color: #717171;
}
.progress {
  height: 4px;
}
.progress-bar {
  background-color: #222;
}
.review-item .reviewer-name {
  font-weight: 600;
}
.review-item .review-date {
  color: #717171;
  font-size: 0.9rem;
}
.review-score {
  font-weight: 600;
}
.host-photo {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
}
#map {
  border-radius: 12px;
  height: 480px;
  width: 100%;
  z-index: 1;
}
.flatpickr-calendar.inline {
  box-shadow: none;
  width: 100%;
}
.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange {
  background: #2398b6;
  border-color: #2398b6;
}
.date-picker-trigger {
  cursor: pointer;
}
.date-picker-trigger:hover {
  background-color: #f7f7f7;
}
.calendar-section-card {
  border-radius: 12px;
  padding: 0;
}
#clear-dates-btn {
  font-weight: 600;
  text-decoration: underline;
  background: none;
  border: none;
  padding: 0;
  color: #222;
}
.custom-lightbox {
  display: none;
  position: fixed;
  z-index: 9999;
  padding-top: 60px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.9);
  -webkit-animation: fadeIn 0.4s;
  animation: fadeIn 0.4s;
}

.lightbox-content {
  position: relative;
  margin: auto;
  width: 90%;
  max-width: 900px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-image {
  max-width: 80%;
  max-height: 80vh;
  border-radius: 4px;
}

.lightbox-close {
  position: absolute;
  top: 15px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
  cursor: pointer;
}

.lightbox-close:hover,
.lightbox-close:focus {
  color: #bbb;
  text-decoration: none;
}

.lightbox-prev,
.lightbox-next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  padding: 16px;
  margin-top: -50px;
  color: white;
  font-weight: bold;
  font-size: 20px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
  -webkit-user-select: none;
  background-color: rgba(0, 0, 0, 0.8);
}

.lightbox-prev {
  left: 0;
  border-radius: 3px 0 0 3px;
}
.lightbox-next {
  right: 0;
  border-radius: 0 3px 3px 0;
}
.lightbox-prev:hover,
.lightbox-next:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

.lightbox-caption {
  text-align: center;
  color: #ccc;
  padding: 10px 0;
  height: 30px;
}

.day-tooltip {
  position: absolute;
  bottom: 110%; 
  left: 50%;
  transform: translateX(-50%);
  background-color: #ffffff;
  color: #222222;
  border: 1px solid #e0e0e0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15); 
  padding: 4px 8px; 
  border-radius: 6px;
  font-size: 12px;  
  font-weight: 600;
  white-space: nowrap;
  z-index: 10;
  opacity: 0;
  transform: translateX(-50%) translateY(5px); 
  transition: opacity 0.2s ease, transform 0.2s ease;
  display: block; 
  pointer-events: none;
}

.flatpickr-day:hover .day-tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.day-tooltip::after {
  content: '';
  position: absolute;
  top: 100%; 
  left: 50%;
  transform: translateX(-50%);
  border-width: 5px;
  border-style: solid;
  border-color: #ffffff transparent transparent transparent;
}
@media (max-width: 991px) {
  .booking-card-sticky {
    position: static;
    top: auto;
    margin-top: 2rem;
  }
}

@media (max-width: 767px) {
  h1 {
    font-size: 1.75rem;
  }

  .section-heading {
    font-size: 1.3rem;
  }

  .header-details span {
    margin-right: 0.75rem;
    font-size: 0.9rem;
  }

  .photo-grid {
    display: block;
    height: auto;
    border-radius: 12px;
    overflow: hidden;
  }

  .photo-grid .photo-item {
    width: 100%;
    height: 250px;
    margin-bottom: 8px;
  }

  .photo-grid .photo-item:last-child {
    margin-bottom: 0;
  }

  .photo-grid .photo-item:not(:first-child) {
    display: none;
  }

  #show-all-photos {
    position: absolute;
    bottom: 15px;
    right: 15px;
    width: auto;
    padding: 8px 16px;
  }

  .main-content-row {
    flex-direction: column;
  }

  .booking-card {
    padding: 1rem;
  }

  #things-to-know .col-md-4 {
    margin-bottom: 1.5rem;
  }
  #things-to-know .col-md-4:last-child {
    margin-bottom: 0;
  }
  .custom-lightbox {
    padding-top: 20px;
  }

  .lightbox-content {
    width: 95%;
  }

  .lightbox-image {
    max-height: 90vh;
  }

  .lightbox-close {
    font-size: 45px;
    top: 10px;
    right: 20px;
  }

  .lightbox-prev,
  .lightbox-next {
    font-size: 18px;
    padding: 12px;
    margin-top: -40px;
    background-color: rgba(0, 0, 0, 0.5);
  }

  .lightbox-caption {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .header-details {
    flex-direction: column;
    align-items: flex-start !important;
    gap: 5px;
  }

  .header-actions {
    margin-top: 1rem;
    width: 100%;
  }

  .header-actions .btn {
    width: 100%;
  }
}
