@import url('../css/stylesv2.css');

/* houses.css - Styles for individual property pages */

/* Gallery Component Container */
.gallery-component {
  max-width: 800px;
  margin: 1.5rem auto;
  padding: 0 1rem; /* ensure on mobile space for arrows */
}

/* Main Image Area - fixed aspect ratio to prevent height shifting */
.gallery-main {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: visible; /* allow arrows to display outside image */
}
.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* ensures all images fill the aspect ratio box */
  display: block;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Navigation Arrows */
.gallery-main button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #0077b6;          /* theme blue */
  border: none;
  color: #fff;
  font-size: 1.25rem;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.2s ease;
  z-index: 10;
}
.gallery-main button:hover {
  background: #023e8a;
}
.gallery-main button.prev {
  left: -60px;  /* completely outside left edge on desktop */
}
.gallery-main button.next {
  right: -60px; /* completely outside right edge on desktop */
}

/* Thumbnail Strip */
.gallery-thumbs {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}
.gallery-thumbs .thumb {
  flex: 0 0 auto;
  width: 80px;
  height: 45px;
  object-fit: cover;
  border-radius: 4px;
  cursor: pointer;
  opacity: 0.6;
  border: 2px solid transparent;
  transition: opacity 0.2s ease, border-color 0.2s ease;
}
.gallery-thumbs .thumb:hover,
.gallery-thumbs .thumb.active {
  opacity: 1;
  border-color: #0077b6;
}

/* Tablet Adjustments (iPads, small laptops) */
@media (max-width: 1024px) {
  .gallery-component {
    max-width: 600px;
    margin: 1.5rem auto;
  }
  .gallery-main button.prev {
    left: -50px; /* slightly inside from full desktop offset */
  }
  .gallery-main button.next {
    right: -50px;
  }
}

/* Mobile Adjustments */
@media (max-width: 600px) {
  .gallery-component {
    max-width: 100%;
    margin: 1.5rem 0.5rem;
  }
  /* Smaller thumbnails on mobile */
  .gallery-thumbs .thumb {
    width: 60px;
    height: 34px;
  }
  /* Resize and reposition arrows completely outside wrapper */
  .gallery-main button {
    font-size: 1.1rem;
    width: 32px;
    height: 32px;
  }
  .gallery-main button.prev {
    left: -42px; /* covers arrow + margin 0.5rem */
  }
  .gallery-main button.next {
    right: -42px;
  }
}

/* Thumbnail Strip */
.gallery-thumbs {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}
.gallery-thumbs .thumb {
  flex: 0 0 auto;
  width: 80px;
  height: 60px;
  object-fit: cover;
  border-radius: 4px;
  cursor: pointer;
  opacity: 0.6;
  border: 2px solid transparent;
  transition: opacity 0.2s ease, border-color 0.2s ease;
}
.gallery-thumbs .thumb:hover,
.gallery-thumbs .thumb.active {
  opacity: 1;
  border-color: #0077b6;
}

/* Responsive Adjustments */
@media (max-width: 600px) {
  .gallery-thumbs .thumb {
    width: 60px;
    height: 45px;
  }
  .gallery-main button {
    font-size: 1.25rem;
    padding: 0.4rem;
  }
}

/* Section Headings */
main h1, main h2 {
  color: #0077b6;
  text-align: center;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

/* Description & Info */
main p {
  font-size: 1rem;
  line-height: 1.6;
  color: #333;
  max-width: 800px;
  margin: 0 auto 2rem auto;
}
main ul {
  list-style: none;
  padding: 0;
  max-width: 400px;
  margin: 0 auto 2rem auto;
}
main ul li {
  display: flex;
  align-items: center;
  margin-bottom: 0.5rem;
  font-size: 1rem;
}
main ul li::before {
  content: '✔';
  color: #0077b6;
  margin-right: 0.5rem;
}

/* Information List Spacing Fix */
main ul li strong {
  display: inline-block;
  margin-right: 0.5rem;
  font-weight: 700;
}

/* Button Group for External Links */
.gallery-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin: 2rem 0;
}
.gallery-buttons a {
  text-decoration: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 700;
  transition: background 0.3s ease;
}
.btn-airbnb {
  background: #0077b6;
  color: #fff;
}
.btn-airbnb:hover {
  background: #004f66;
}
.btn-vrbo {
  background: #0077b6;
  color: #fff;
}
.btn-vrbo:hover {
  background: #004f66;
}


/* Availability Calendar */
#calendar {
  max-width: 600px;
  margin: 0 auto 2rem auto;
}

/* FullCalendar Day Styling */
.fc-daygrid-day {
  position: relative;
}
.fully-booked::before,
.half-booked-left::before,
.half-booked-right::before,
.past-date::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
}
.fully-booked::before {
  background-color: rgba(128, 128, 128, 0.7);
}
.half-booked-left::before {
  background: linear-gradient(to right, rgba(128, 128, 128, 0.7) 50%, transparent 50%);
}
.half-booked-right::before {
  background: linear-gradient(to right, transparent 50%, rgba(128, 128, 128, 0.7) 50%);
}
.past-date::before {
  background-color: rgba(200, 200, 200, 0.5);
}
.fc-daygrid-day-number {
  position: relative;
  z-index: 2;
}
.fc-daygrid-day-frame {
  z-index: 1;
}

/* Lightbox2 overrides */
.lightboxOverlay {
  z-index: 2000 !important;
}
.lightbox {
  z-index: 2001 !important;
}

/* Ensure mobile nav works under 1000px */
@media (max-width: 1000px) {
    .nav-menu nav {
    display: block !important;
  }
}