/* Reset and base styles */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body, html {
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f9f9f9;
  color: #333;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Link styles */
a {
  color: #2a7ae2;
  text-decoration: none;
  transition: color 0.3s ease;
}
a:hover,
a:focus {
  color: #1a5ec8;
  outline: none;
  text-decoration: underline;
}

/* Remove underline from navigation links */
nav a,
nav a:hover,
nav a:focus {
  text-decoration: none;
}

/* Header bar */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 90px;
  background: rgba(255 255 255 / 0.40);
  backdrop-filter: saturate(180%) blur(10px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  z-index: 1000;
  user-select: none;
  gap: 60px;
}

.logo {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 154px;
}

.logo img {
  max-width: 132px;
  height: auto;
  display: block;
  width: auto;
}

/* Navigation */
nav {
  display: flex;
  gap: 8px;
  align-items: center;
  font-weight: 600;
  font-size: 0.9rem;
  margin-left: auto;
  white-space: nowrap;
}

nav a {
  padding: 8px 14px;
  border-radius: 6px;
  transition: all 0.3s ease;
  white-space: nowrap;
}

nav a:hover:not(.btn-highlight),
nav a:focus-visible:not(.btn-highlight) {
  background-color: rgba(42, 122, 226, 0.1);
  color: #2a7ae2;
  outline-offset: 2px;
  outline: 2px solid transparent;
}

.btn-highlight {
  background-color: #2a7ae2;
  color: white !important;
  font-weight: 700;
  padding: 10px 18px;
  box-shadow: 0 2px 6px rgba(42, 122, 226, 0.4);
  transition: all 0.3s ease;
}

.btn-highlight:hover,
.btn-highlight:focus-visible {
  background-color: #1a5ec8;
  box-shadow: 0 3px 10px rgba(42, 122, 226, 0.6);
  outline-offset: 2px;
  outline: 2px solid transparent;
}

/* Main content area */
main {
  margin-top: 90px; /* offset for fixed header */
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 120px);
}

/* Header responsiveness - Tablet */
@media (max-width: 768px) {
  header {
    height: 80px;
    padding: 0 20px;
    gap: 30px;
  }
  
  .logo {
    width: 132px;
  }
  
  .logo img {
    max-width: 110px;
  }
  
  main {
    margin-top: 80px;
  }
  
  nav {
    gap: 4px;
    font-size: 0.8rem;
  }
  
  nav a {
    padding: 6px 10px;
  }
  
  .btn-highlight {
    padding: 8px 14px;
    font-size: 0.85rem;
  }
}

/* Header responsiveness - Mobile */
@media (max-width: 480px) {
  header {
    height: 70px;
    padding: 0 15px;
    gap: 15px;
  }
  
  .logo {
    width: 110px;
    flex-shrink: 1;
  }
  
  .logo img {
    max-width: 88px;
  }
  
  main {
    margin-top: 70px;
  }
  
  nav {
    gap: 2px;
    font-size: 0.75rem;
  }
  
  nav a {
    padding: 4px 8px;
    border-radius: 4px;
  }
  
  .btn-highlight {
    padding: 6px 12px;
    font-size: 0.8rem;
  }
}

/* Hamburger menu button */
.hamburger-menu {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.hamburger-menu span {
  width: 24px;
  height: 3px;
  background-color: #333;
  border-radius: 2px;
  transition: all 0.3s ease;
  display: block;
}

.hamburger-menu.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.hamburger-menu.active span:nth-child(2) {
  opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* Mobile navigation menu */
.mobile-nav {
  display: none;
  position: fixed;
  top: 70px;
  left: 0;
  right: 0;
  flex-direction: column;
  background-color: rgba(255, 255, 255, 0.98);
  backdrop-filter: saturate(180%) blur(10px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 999;
  padding: 10px 0;
  max-height: calc(100vh - 70px);
  overflow-y: auto;
}

.mobile-nav.open {
  display: flex;
}

.mobile-nav-link {
  padding: 16px 20px;
  font-weight: 600;
  font-size: 1rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  transition: background-color 0.3s ease;
}

.mobile-nav-link:hover {
  background-color: rgba(42, 122, 226, 0.1);
  color: #2a7ae2;
  text-decoration: none;
}

.mobile-nav-link.btn-highlight {
  background-color: #2a7ae2;
  color: white !important;
  font-weight: 700;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  margin: 5px 10px;
  border-radius: 6px;
  text-align: center;
}

.mobile-nav-link.btn-highlight:hover {
  background-color: #1a5ec8;
  text-decoration: none;
}

/* Show hamburger menu on mobile */
@media (max-width: 900px) {
  .hamburger-menu {
    display: flex;
  }
  
  header nav {
    display: none;
  }
  
  .mobile-nav {
    top: 80px;
  }
}

@media (max-width: 480px) {
  .mobile-nav {
    top: 70px;
  }
}

/* Banner section */
.banner {
  position: relative;
  height: 500px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  color: white;
  font-size: 2.5rem;
  font-weight: 700;
  text-shadow: 0 2px 8px rgba(0,0,0,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  text-align: center;
}

/* Banner mobile responsiveness */
@media (max-width: 768px) {
  .banner {
    height: 240px;
    font-size: 1.8rem;
  }
}

@media (max-width: 480px) {
  .banner {
    height: 180px;
    font-size: 1.4rem;
  }
}

/* Intro text */
.intro-text {
  max-width: 900px;
  margin: 40px auto 60px;
  padding: 0 20px;
  font-size: 1.15rem;
  line-height: 1.6;
  text-align: center;
  color: #444;
}

/* Intro text mobile responsiveness */
@media (max-width: 768px) {
  .intro-text {
    margin: 30px auto 40px;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .intro-text {
    margin: 20px auto 30px;
    font-size: 0.95rem;
    padding: 0 15px;
  }
}

/* Stay options container */
.stay-options {
  display: flex;
  justify-content: center;
  gap: 50px;
  max-width: 1200px;
  margin: 0 auto 80px;
  padding: 0 20px;
  flex-wrap: wrap;
}

/* Stay options mobile responsiveness */
@media (max-width: 768px) {
  .stay-options {
    gap: 30px;
    margin: 0 auto 60px;
  }
}

@media (max-width: 480px) {
  .stay-options {
    gap: 20px;
    margin: 0 auto 40px;
    padding: 0 15px;
  }
}

/* Individual stay card */
.stay-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  width: 100%;
  max-width: 480px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  outline-offset: 3px;
}

.stay-card:hover,
.stay-card:focus-visible {
  transform: scale(1.06);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

/* Stay card mobile responsiveness */
@media (max-width: 768px) {
  .stay-card {
    max-width: 100%;
    width: 90%;
  }
  
  .stay-card:hover,
  .stay-card:focus-visible {
    transform: scale(1.02);
  }
}

@media (max-width: 480px) {
  .stay-card {
    max-width: 100%;
    width: 95%;
  }
}

/* Image container inside stay card */
.stay-image {
  height: 400px;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}

/* Stay image mobile responsiveness */
@media (max-width: 768px) {
  .stay-image {
    height: 300px;
  }
}

@media (max-width: 480px) {
  .stay-image {
    height: 250px;
  }
}

.stay-image picture {
  width: 100%;
  height: 100%;
  display: block;
}

.stay-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  background: #f0f0f0;
  transition: opacity 0.35s ease, transform 0.35s ease;
  transform: translateX(0);
  opacity: 1;
  will-change: opacity, transform;
}

.stay-image img.fade-out {
  opacity: 0;
}

.stay-image img.fade-in {
  opacity: 1;
}

.carousel-thumbnails {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 14px auto 0;
  padding: 0 12px;
}

@media (max-width: 768px) {
  .carousel-thumbnails {
    display: none;
  }
}

.carousel-thumb {
  width: 56px;
  height: 44px;
  border: 2px solid transparent;
  border-radius: 10px;
  overflow: hidden;
  background: #f5f5f5;
  padding: 0;
  cursor: pointer;
  opacity: 0.65;
  transition: opacity 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.carousel-thumb.active,
.carousel-thumb:hover {
  opacity: 1;
  border-color: #2a7ae2;
  transform: translateY(-1px);
}

.carousel-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Side navigation bars for image navigation */
.side-nav {
  position: absolute;
  top: 0;
  width: 12%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: rgba(0,0,0,0.05);
  transition: background-color 0.3s ease, color 0.3s ease;
  user-select: none;
  -webkit-user-select: none;
  font-size: 2rem;
  color: rgba(255,255,255,0.35);
  border: none;
  padding: 0;
  touch-action: none;
  font-weight: bold;
}

.side-nav:hover {
  background: rgba(0,0,0,0.2);
  color: rgba(255,255,255,0.8);
}

.side-nav.prev {
  left: 0;
}

.side-nav.next {
  right: 0;
}

.stay-image:hover .side-nav {
  color: rgba(255,255,255,0.5);
}

/* Content inside stay card */
.stay-content {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Stay content mobile responsiveness */
@media (max-width: 768px) {
  .stay-content {
    padding: 15px;
  }
}

@media (max-width: 480px) {
  .stay-content {
    padding: 12px;
  }
}

.stay-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: #2a7ae2;
}

/* Stay title mobile responsiveness */
@media (max-width: 768px) {
  .stay-title {
    font-size: 1.1rem;
  }
}

@media (max-width: 480px) {
  .stay-title {
    font-size: 1rem;
  }
}

.stay-title a {
  color: #2a7ae2;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.3s ease;
}

.stay-title a:hover {
  color: #1a5ec8;
  text-decoration: underline;
}

.title-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  gap: 15px;
}

.airbnb-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  color: #333;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.3s ease;
  white-space: nowrap;
}

.airbnb-rating:hover {
  opacity: 0.7;
}

.airbnb-rating a {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #333;
  text-decoration: none;
  transition: color 0.3s ease;
}

.airbnb-rating a:hover {
  color: #2a7ae2;
}

.rating-stars {
  font-size: 1rem;
  color: #ffd600;
  letter-spacing: 2px;
}

.stay-description {
  font-size: 1rem;
  color: #555;
  line-height: 1.4;
  flex-grow: 1;
}

/* Disabled/coming soon card style */
.stay-card[aria-disabled="true"] {
  filter: grayscale(80%);
  cursor: not-allowed;
  pointer-events: none;
}

/* Footer styles */
footer {
  background: #222;
  color: #eee;
  padding: 20px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  font-size: 0.9rem;
  user-select: none;
  gap: 10px;
}

/* Reviews container */
.reviews {
  flex: 1 1 300px;
  text-align: center;
  max-width: 600px;
  margin: 10px auto;
  font-style: italic;
  min-height: 60px;
  color: #ccc;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.reviews-carousel {
  width: 100%;
  position: relative;
}

.review-item {
  position: relative;
  width: 100%;
  opacity: 1;
  padding: 20px;
  line-height: 1.6;
  word-wrap: break-word;
  transition: opacity 0.6s ease-in-out;
  display: none;
}

.reviews .review-item:first-child {
  display: block;
}

.review-item.fade-out {
  opacity: 0;
}

.review-item.fade-in {
  opacity: 1;
}

.review-stars {
  color: #ffd700;
  font-size: 1rem;
  letter-spacing: 2px;
  margin-bottom: 5px;
  display: block;
}

/* Social media links */
.social-links {
  flex: 0 0 auto;
  display: flex;
  gap: 15px;
  align-items: center;
  color: #eee;
}

.social-links a {
  color: #eee;
  font-size: 1.3rem;
  transition: transform 0.3s ease, color 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  padding: 0;
  margin: 0;
}

.social-links a:hover,
.social-links a:focus-visible {
  transform: scale(1.3);
  color: #2a7ae2;
}

.social-links a img {
  transition: filter 0.3s ease;
}

.social-links a:hover img,
.social-links a:focus-visible img {
  filter: none;
}

/* Footer center: Book Now button and address */
.footer-center {
  flex: 0 0 250px;
  text-align: center;
  color: #eee;
  font-weight: 600;
}

.footer-center a.book-now-btn {
  display: inline-block;
  margin-bottom: 6px;
  padding: 8px 16px;
  background-color: #2a7ae2;
  color: white;
  border-radius: 6px;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.footer-center a.book-now-btn:hover,
.footer-center a.book-now-btn:focus-visible {
  background-color: #1a5ec8;
  outline-offset: 2px;
  outline: 2px solid #1a5ec8;
}

.footer-center a.address-link {
  font-size: 0.85rem;
  color: #ccc;
  display: block;
  margin-top: 4px;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-center a.address-link:hover,
.footer-center a.address-link:focus-visible {
  color: #2a7ae2;
  outline: none;
}

/* View All Reviews Button Container */
.view-reviews-container {
  flex: 0 0 100%;
  text-align: center;
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* View All Reviews Button */
.view-reviews-btn {
  background-color: #2a7ae2;
  color: white;
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 3px 8px rgba(42, 122, 226, 0.5);
}

.view-reviews-btn:hover,
.view-reviews-btn:focus-visible {
  background-color: #1a5ec8;
  box-shadow: 0 4px 12px rgba(26, 94, 200, 0.7);
  outline: 2px solid transparent;
  outline-offset: 2px;
}

/* View reviews button mobile responsiveness */
@media (max-width: 768px) {
  .view-reviews-btn {
    padding: 10px 20px;
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .view-reviews-btn {
    padding: 8px 16px;
    font-size: 0.9rem;
  }
}

/* Reviews Modal Overlay */
.reviews-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  animation: fadeIn 0.3s ease;
  align-items: center;
  justify-content: center;
}

.reviews-overlay.active {
  display: flex;
}

/* Reviews Modal Container */
.reviews-modal-container {
  background: white;
  border-radius: 12px;
  width: 90%;
  max-width: 900px;
  max-height: 85vh;
  overflow-y: auto;
  animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}

/* Reviews Modal Header */
.reviews-modal-header {
  background: linear-gradient(135deg, #2a7ae2 0%, #1e5cb8 100%);
  color: white;
  padding: 40px 30px;
  border-radius: 12px 12px 0 0;
  position: relative;
  overflow: hidden;
}

.reviews-modal-header::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  animation: pulse 4s ease-in-out infinite;
}

.reviews-modal-header h2 {
  margin: 0;
  font-size: 2rem;
  position: relative;
  z-index: 1;
}

.reviews-modal-header p {
  margin: 10px 0 0 0;
  opacity: 0.95;
  font-size: 1rem;
  position: relative;
  z-index: 1;
}

/* Reviews Close Button */
.reviews-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid white;
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 10;
}

.reviews-close-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(90deg);
}

/* Reviews Grid Container */
.reviews-grid {
  padding: 30px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 20px;
}

/* Individual Review Card */
.review-card {
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.review-card:hover {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  transform: translateY(-4px);
}

.review-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 15px;
  gap: 10px;
}

.review-name {
  font-weight: 700;
  font-size: 1.1rem;
  color: #2a7ae2;
  margin: 0;
}

.review-stars {
  color: #ffd600;
  font-size: 1rem;
  letter-spacing: 2px;
  white-space: nowrap;
}

.review-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 0.85rem;
  color: #666;
}

.review-location {
  background: #f0f0f0;
  padding: 4px 8px;
  border-radius: 4px;
  font-weight: 500;
}

.review-source {
  background: #e3f2fd;
  color: #2a7ae2;
  padding: 4px 8px;
  border-radius: 4px;
  font-weight: 500;
}

.review-text {
  color: #444;
  line-height: 1.6;
  font-size: 0.95rem;
  margin: 0;
  flex-grow: 1;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .reviews-grid {
    grid-template-columns: 1fr;
    padding: 20px;
  }

  .reviews-modal-container {
    width: 95%;
    border-radius: 8px;
  }

  .reviews-modal-header {
    padding: 30px 20px;
  }

  .reviews-modal-header h2 {
    font-size: 1.5rem;
  }
}

/* Responsive adjustments - Tablet */
@media (max-width: 768px) {
  .stay-options {
    flex-direction: column;
    align-items: center;
  }
  footer {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }
  .footer-center {
    flex: none;
  }
  .reviews {
    margin: 0 auto;
    max-width: 100%;
  }
  .social-links {
    justify-content: center;
    gap: 20px;
  }
}

/* Responsive adjustments - Mobile */
@media (max-width: 480px) {
  footer {
    padding: 15px 20px;
    gap: 10px;
  }
  .reviews {
    padding: 10px;
    min-height: auto;
  }
  .review-item {
    padding: 10px;
    font-size: 0.9rem;
  }
  .social-links {
    gap: 12px;
  }
  .social-links a {
    font-size: 1.1rem;
  }
  .social-links a:hover,
  .social-links a:focus-visible {
    transform: scale(1.2);
  }
}

/* ================================
   PHOTOS MODAL AND LIGHTBOX STYLES
   ================================ */

/* Photo Gallery Modal Overlay */
.photos-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  animation: fadeIn 0.3s ease;
  align-items: center;
  justify-content: center;
}

.photos-overlay.active {
  display: flex;
}

/* Photos Modal Container */
.photos-modal-container {
  background: white;
  border-radius: 12px;
  width: 90%;
  max-width: 900px;
  max-height: 85vh;
  overflow-y: auto;
  animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}

/* Photos Modal Header */
.photos-modal-header {
  background: linear-gradient(135deg, #2a7ae2 0%, #1e5cb8 100%);
  color: white;
  padding: 40px 30px;
  border-radius: 12px 12px 0 0;
  position: relative;
  overflow: hidden;
}

.photos-modal-header::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  animation: pulse 4s ease-in-out infinite;
}

.photos-modal-header h2 {
  margin: 0;
  font-size: 2rem;
  position: relative;
  z-index: 1;
}

.photos-modal-header p {
  margin: 10px 0 0 0;
  opacity: 0.95;
  font-size: 1rem;
  position: relative;
  z-index: 1;
}

/* Photos Close Button */
.photos-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid white;
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 10;
}

.photos-close-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(90deg);
}

/* Photos Grid Container */
.photos-grid {
  padding: 30px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  background: #f9f9f9;
}

/* Photo Card */
.photo-item {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  cursor: pointer;
}

.photo-item:hover {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  transform: translateY(-4px);
}

.photo-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

/* Lightbox Styles */
.lightbox-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 1000;
  animation: fadeIn 0.3s ease;
  justify-content: center;
  align-items: center;
}

.lightbox-overlay.active {
  display: flex;
}

.lightbox-container {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 80px 60px;
}

.lightbox-image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  animation: fadeIn 0.4s ease;
  display: block;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: 2px solid white;
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 10;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid white;
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 10;
  font-weight: 700;
}

.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(255, 255, 255, 0.4);
}

.lightbox-prev {
  left: 20px;
}

.lightbox-next {
  right: 20px;
}

/* ================================
   EMAIL BUTTON AND MODAL STYLES
   ================================ */

.email-btn {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
  position: relative;
  z-index: 900;
  line-height: 1;
  margin: 0;
}

.email-btn img {
  width: 24px;
  height: 24px;
  filter: brightness(0.95);
  transition: filter 0.3s ease, transform 0.3s ease;
}

.email-btn:hover,
.email-btn:focus-visible {
  outline: none;
}

.email-btn:hover img,
.email-btn:focus-visible img {
  transform: scale(1.3);
  filter: brightness(0.8);
}

.email-modal {
  position: fixed;
  bottom: 70px;
  right: 30px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  z-index: 950;
  min-width: 180px;
  animation: slideUp 0.3s ease forwards;
}

.email-modal[hidden] {
  display: none;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.email-modal-content {
  display: flex;
  flex-direction: column;
  padding: 8px;
}

.email-option {
  background: none;
  border: none;
  padding: 12px 16px;
  cursor: pointer;
  text-align: left;
  font-size: 0.95rem;
  color: #333;
  transition: background-color 0.3s ease, color 0.3s ease;
  border-radius: 4px;
  margin-bottom: 4px;
}

.email-option:last-child {
  margin-bottom: 0;
}

.email-option:hover,
.email-option:focus-visible {
  background-color: #2a7ae2;
  color: white;
  outline: 2px solid #1a5ec8;
  outline-offset: -2px;
}

/* ================================
   GOAT GALLERY STYLES
   ================================ */

.goat-gallery {
  max-width: 1400px;
  margin: 40px auto 80px;
  padding: 0 20px;
}

.goat-gallery-title {
  text-align: center;
  font-size: 1.8rem;
  font-weight: 700;
  color: #2a7ae2;
  margin-bottom: 50px;
}

.gallery-container {
  position: relative;
  width: 100%;
  min-height: 600px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  padding: 20px 0;
}

.gallery-photo {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  opacity: 0;
  transform: scale(0.5);
  cursor: pointer;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.gallery-photo[data-loaded="false"] {
  opacity: 0;
  transform: scale(0.5);
}

.gallery-photo.fade-in {
  animation: expandIn 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.gallery-photo:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}

.gallery-photo:hover.fade-in {
  transform: scale(1.05);
}

@keyframes expandIn {
  0% {
    opacity: 0;
    transform: scale(0.4);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.gallery-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-photo picture {
  width: 100%;
  height: 100%;
  display: block;
}

/* ================================
   AMENITIES HIERARCHICAL STYLES
   ================================ */

.amenity-item {
  padding: 12px 18px;
  background: #f9f9f9;
  border-left: 4px solid #d0d0d0;
  margin-bottom: 8px;
  border-radius: 4px;
  font-size: 0.95rem;
  color: #555;
  line-height: 1.5;
  transition: all 0.2s ease;
}

.amenity-item:hover {
  background: #f5f5f5;
  border-left-color: #2a7ae2;
}

.amenity-item.amenity-nested {
  background: #ffffff;
  border-left-color: #b0d4ff;
  border-left-width: 3px;
  padding: 10px 16px;
  font-size: 0.9rem;
  margin-bottom: 6px;
  margin-left: 8px;
}

.amenity-nested-accordion {
  margin-bottom: 12px;
  border-radius: 6px;
  border: 1px solid #e8e8e8;
  overflow: hidden;
}

.amenity-nested-accordion .faq-accordion-header {
  padding: 14px 16px;
  background: #f8fafb;
  font-size: 0.95rem;
  border: none;
  border-bottom: 1px solid transparent;
  transition: all 0.2s ease;
}

.amenity-nested-accordion .faq-accordion-header:hover {
  background: #f0f3f7;
  border-bottom-color: #e0e0e0;
}

.amenity-header {
  font-weight: 600;
  color: #333;
}

.amenity-header.active {
  color: #2a7ae2;
  background: #f0f5ff;
  border-bottom-color: #2a7ae2;
}

.amenity-header.active .faq-accordion-toggle {
  color: #2a7ae2;
}

@media (max-width: 768px) {
  .amenity-item {
    padding: 10px 14px;
    font-size: 0.9rem;
    margin-bottom: 6px;
  }

  .amenity-item.amenity-nested {
    padding: 8px 12px;
    font-size: 0.85rem;
    margin-bottom: 4px;
    margin-left: 4px;
  }

  .amenity-nested-accordion .faq-accordion-header {
    padding: 12px 14px;
    font-size: 0.9rem;
  }

  .amenity-header {
    font-weight: 500;
  }
}

@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
  }
  
  .goat-gallery-title {
    font-size: 1.4rem;
    margin-bottom: 30px;
  }
}

/* ================================
   BOOKING PAGE STYLES
   ================================ */

/* Listings Section */
.listings-section {
  margin: 40px auto;
  padding: 0 20px;
}

.listings-container {
  max-width: 1400px;
  margin: 0 auto;
}

.listings-container h1 {
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  color: #2a7ae2;
  margin-bottom: 50px;
}

/* Unit Selection Section */
.unit-selection-section {
  margin-bottom: 60px;
  text-align: center;
}

.unit-selection-section h3 {
  font-size: 1.3rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 25px;
  margin-top: 0;
}

.unit-selection-buttons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}

.unit-selection-btn {
  padding: 20px;
  border: 3px solid #e0e0e0;
  border-radius: 8px;
  background: white;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
}

.unit-selection-btn:hover {
  border-color: #2a7ae2;
  background: #f0f5ff;
  transform: translateY(-2px);
}

.unit-selection-btn[aria-pressed="true"] {
  border-color: #2a7ae2;
  background: linear-gradient(135deg, #e8f0ff 0%, #f0f5ff 100%);
  box-shadow: 0 0 0 1px #2a7ae2 inset, 0 4px 12px rgba(42, 122, 226, 0.2);
}

.unit-name {
  font-weight: 700;
  color: #2a7ae2;
  font-size: 1.1rem;
}

.unit-price {
  font-size: 0.95rem;
  color: #666;
}

.listings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-bottom: 60px;
}

.listing-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  position: relative;
}

.listing-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 20px rgba(42, 122, 226, 0.15);
}

.listing-image {
  width: 100%;
  height: 250px;
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, #f5f5f5 0%, #fff 100%);
}

.listing-image picture,
.listing-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.listing-card:hover .listing-image img {
  transform: scale(1.05);
}

/* Make listing cards with data-treehouse attribute clickable */
.listing-card[data-treehouse] {
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.listing-card[data-treehouse]:hover,
.listing-card[data-treehouse]:focus {
  transform: translateY(-8px);
  box-shadow: 0 8px 20px rgba(42, 122, 226, 0.15);
  outline: 2px solid #2a7ae2;
  outline-offset: 2px;
}

.listing-card[data-treehouse]:active {
  transform: translateY(-4px);
}

.coming-soon-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(42, 122, 226, 0.9);
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1px;
  z-index: 10;
}

.listing-coming-soon {
  opacity: 0.8;
}

.listing-coming-soon:hover {
  transform: translateY(-4px);
  opacity: 0.9;
}

.listing-content {
  padding: 20px;
}

.listing-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #2a7ae2;
  margin-bottom: 8px;
  margin-top: 0;
}

.listing-description {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.6;
  margin-bottom: 12px;
}

.listing-price {
  font-size: 1rem;
  font-weight: 700;
  color: #2a7ae2;
  padding-top: 8px;
  border-top: 1px solid #e0e0e0;
}

/* Calendar Section */
.calendar-section {
  margin: 60px auto;
  padding: 0 20px;
}

.calendar-container {
  max-width: 800px;
  margin: 0 auto;
  background: white;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.calendar-container h2 {
  text-align: center;
  font-size: 1.8rem;
  font-weight: 700;
  color: #2a7ae2;
  margin-top: 0;
  margin-bottom: 30px;
}

.calendar-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  gap: 15px;
}

.calendar-nav-btn {
  background: #f0f0f0;
  border: 1px solid #ddd;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  color: #333;
  transition: all 0.3s ease;
}

.calendar-nav-btn:hover,
.calendar-nav-btn:focus {
  background: #2a7ae2;
  color: white;
  border-color: #2a7ae2;
  outline: none;
}

.calendar-month-display {
  text-align: center;
  font-size: 1.2rem;
  font-weight: 700;
  color: #2a7ae2;
  min-width: 200px;
}

.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  margin-bottom: 12px;
  text-align: center;
}

.weekday {
  font-weight: 700;
  color: #2a7ae2;
  padding: 10px 0;
  font-size: 0.9rem;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
}

.calendar-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #ddd;
  border-radius: 6px;
  cursor: pointer;
  background: white;
  font-weight: 600;
  transition: all 0.3s ease;
  color: #333;
  font-size: 0.9rem;
  position: relative;
}

.calendar-day:not(.other-month):not(.booked):hover {
  background: linear-gradient(135deg, #2a7ae2 0%, #1a5ec8 100%);
  color: white;
  border-color: #2a7ae2;
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(42, 122, 226, 0.3);
}

.calendar-day.other-month {
  color: #ccc;
  cursor: default;
  background: #f9f9f9;
}

.calendar-day.booked {
  background: #f5f5f5;
  color: #aaa;
  cursor: not-allowed;
  border-color: #ddd;
  text-decoration: line-through;
}

/* Viewpoint Booked - Blue diagonal stripes (left-top to right-bottom) */
.calendar-day.viewpoint-booked {
  background: repeating-linear-gradient(
    45deg,
    #e3f0ff,
    #e3f0ff 10px,
    #c0dfff 10px,
    #c0dfff 20px
  );
  color: #0056b3;
  cursor: not-allowed;
  border-color: #2a7ae2;
  font-weight: 600;
  text-decoration: none;
}

/* DawnTreader Booked - Green diagonal stripes (right-top to left-bottom) */
.calendar-day.dawntreader-booked {
  background: repeating-linear-gradient(
    -45deg,
    #e8f5e9,
    #e8f5e9 10px,
    #c8e6c9 10px,
    #c8e6c9 20px
  );
  color: #1b5e20;
  cursor: not-allowed;
  border-color: #4caf50;
  font-weight: 600;
  text-decoration: none;
}

/* Both units booked */
.calendar-day.both-booked {
  background: repeating-linear-gradient(
    45deg,
    #e3f0ff 0px,
    #e3f0ff 10px,
    #c0dfff 10px,
    #c0dfff 15px,
    #e8f5e9 15px,
    #e8f5e9 25px,
    #c8e6c9 25px,
    #c8e6c9 30px
  );
  color: #333;
  cursor: not-allowed;
  border-color: #999;
  font-weight: 600;
}

/* Other unit booked (dimmed when viewing different unit) */
.calendar-day.other-unit-booked {
  background: #f0f0f0;
  color: #bbb;
  cursor: not-allowed;
  border-color: #e0e0e0;
  opacity: 0.6;
}

/* Calendar Legend */
.calendar-legend {
  display: flex;
  gap: 30px;
  margin: 20px 0 30px;
  padding: 15px;
  background: #f9f9f9;
  border-radius: 8px;
  justify-content: center;
  flex-wrap: wrap;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  color: #333;
}

.legend-dash {
  width: 40px;
  height: 30px;
  border-radius: 4px;
  border: 1px solid #999;
}

.viewpoint-dash {
  background: repeating-linear-gradient(
    45deg,
    #e3f0ff,
    #e3f0ff 10px,
    #c0dfff 10px,
    #c0dfff 20px
  );
  border-color: #2a7ae2;
}

.dawntreader-dash {
  background: repeating-linear-gradient(
    -45deg,
    #e8f5e9,
    #e8f5e9 10px,
    #c8e6c9 10px,
    #c8e6c9 20px
  );
  border-color: #4caf50;
}

.calendar-day.selected {
  background: linear-gradient(135deg, #2a7ae2 0%, #1a5ec8 100%);
  color: white;
  border-color: #2a7ae2;
  box-shadow: 0 4px 12px rgba(42, 122, 226, 0.4);
}

.calendar-day.in-range {
  background: rgba(42, 122, 226, 0.1);
  border-color: #2a7ae2;
}

/* AirBnB Calendar Links Section */
.airbnb-calendar-section {
  margin: 60px auto;
  padding: 0 20px;
}

.airbnb-calendar-section .calendar-container {
  max-width: 1000px;
}

.calendar-description {
  text-align: center;
  color: #666;
  font-size: 1rem;
  margin-bottom: 30px;
  line-height: 1.6;
}

.airbnb-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 25px;
  margin-top: 20px;
}

.airbnb-link-box {
  background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  padding: 25px;
  transition: all 0.3s ease;
}

.airbnb-link-box:hover {
  border-color: #2a7ae2;
  box-shadow: 0 4px 12px rgba(42, 122, 226, 0.1);
}

.airbnb-link-box h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #333;
  margin-top: 0;
  margin-bottom: 10px;
}

.placeholder-text {
  font-size: 0.9rem;
  color: #666;
  margin: 10px 0;
  font-weight: 500;
}

.placeholder-input-area {
  margin-top: 15px;
}

.airbnb-link-input {
  width: 100%;
  padding: 12px;
  border: 2px solid #e0e0e0;
  border-radius: 6px;
  font-size: 0.9rem;
  font-family: monospace;
  transition: border-color 0.3s ease;
  box-sizing: border-box;
  margin-bottom: 8px;
}

.airbnb-link-input:focus {
  outline: none;
  border-color: #2a7ae2;
  box-shadow: 0 0 0 3px rgba(42, 122, 226, 0.1);
}

.placeholder-input-area small {
  display: block;
  color: #999;
  font-size: 0.8rem;
  margin-top: 5px;
}

/* Booking Form Section */
.booking-form-section {
  margin: 60px auto;
  padding: 0 20px;
}

.form-container {
  max-width: 600px;
  margin: 0 auto;
  background: white;
  border-radius: 12px;
  padding: 40px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.form-container h2 {
  text-align: center;
  font-size: 1.8rem;
  font-weight: 700;
  color: #2a7ae2;
  margin-top: 0;
  margin-bottom: 30px;
}

.booking-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-weight: 600;
  color: #333;
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.3s ease;
  background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #2a7ae2;
  box-shadow: 0 0 0 3px rgba(42, 122, 226, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.submit-btn {
  padding: 14px 24px;
  background: linear-gradient(135deg, #2a7ae2 0%, #1a5ec8 100%);
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 10px;
  box-shadow: 0 4px 12px rgba(42, 122, 226, 0.2);
}

.submit-btn:hover,
.submit-btn:focus {
  background: linear-gradient(135deg, #1a5ec8 0%, #0f4a9c 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(42, 122, 226, 0.3);
  outline: none;
}

.submit-btn:active {
  transform: translateY(0);
}

/* Responsive - Tablet */
@media (max-width: 768px) {
  .listings-container h1 {
    font-size: 1.6rem;
    margin-bottom: 35px;
  }

  .listings-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .calendar-container {
    padding: 20px;
  }

  .calendar-nav {
    flex-direction: column;
    gap: 12px;
  }

  .calendar-nav-btn {
    width: 100%;
  }

  .calendar-month-display {
    font-size: 1rem;
  }

  .form-container {
    padding: 25px;
  }

  .booking-form {
    gap: 15px;
  }
}

/* Small screens - ensure single-column stacking and prevent horizontal overflow */
@media (max-width: 600px) {
  .unit-selection-buttons,
  .listings-grid {
    grid-template-columns: 1fr !important;
    gap: 16px;
    max-width: 100%;
    padding: 0 12px;
  }

  .listing-image {
    height: 150px;
  }

  .footer-center {
    flex: 1 1 100%;
  }

  .email-modal {
    max-width: calc(100% - 40px);
    right: 10px;
    left: auto;
  }
}

/* Responsive - Mobile */
@media (max-width: 480px) {
  .listings-container h1,
  .form-container h2,
  .calendar-container h2 {
    font-size: 1.3rem;
  }

  .listing-image {
    height: 180px;
  }

  .calendar-container {
    padding: 15px;
  }

  .calendar-grid {
    gap: 6px;
  }

  .calendar-day {
    font-size: 0.8rem;
    border-radius: 4px;
  }

  .form-container {
    padding: 20px;
  }

  .form-group input,
  .form-group select,
  .form-group textarea {
    padding: 10px;
    font-size: 16px;
  }

  .submit-btn {
    padding: 12px 20px;
    font-size: 1rem;
  }
}
