/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  width: 100%;
  overflow-x: hidden;   /* prevent horizontal scroll */
  overflow-y: auto;     /* allow vertical scroll */
}

.video-container {
  position: relative;
  width: 100%;
  height: 100vh;   /* one full viewport height */
  overflow: hidden;
}

/* Spinner */
.spinner {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 60px;
  height: 60px;
  margin: -30px 0 0 -30px;
  border: 6px solid #ccc;
  border-top: 6px solid #2c3e50;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  z-index: 10;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Background video */
video#bg-video {
  position: absolute;   /* instead of fixed */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;          /* push behind nav and text */
  display: none;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

/* Fullscreen loading image */
.loading-image {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-size: cover;
  background-position: center;
  z-index: 0;
  transition: opacity 1s ease-in-out;
  opacity: 1;
}

/* Desktop image */
.loading-image {
  background-image: url("images/desktop-placeholder.jpg");
}

/* Mobile image */
@media (max-width: 600px) {
  .loading-image {
    background-image: url("images/mobile-placeholder.jpg");
  }
}

/* Hide loading image once video is ready */
.video-container.is-ready .loading-image {
  opacity: 0;
  pointer-events: none;
  display: none;
}
.video-container.is-ready #bg-video {
  display: block;
  opacity: 1;
}
.video-container.is-ready .spinner {
  display: none;
}

/* Navigation bar */
.main-nav {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 20px 40px;
  display: flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.3);
  z-index: 25;
  overflow: hidden;
}

/* Brand wrapper */
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
}

.brand img {
  width: 80px;
  height: auto;
}

/* Brand title */
.brand-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 36px;
  font-weight: 400;
  letter-spacing: 0.5px;
  color: #fff;
  white-space: nowrap;
  text-align: left;
}

/* Navigation menu (desktop) */
.main-nav ul {
  list-style: none;
  display: flex;
  gap: 30px;
  padding: 0;
  margin: 0;
  margin-left: auto;
}

/* Navigation links */
.main-nav a {
  font-family: 'Cormorant Garamond', serif;
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  font-size: 18px;
  letter-spacing: 0.3px;
  transition: color 0.3s ease;
  -webkit-tap-highlight-color: transparent;
}

.main-nav a:focus {
  outline: none;
}
.main-nav a:hover {
  color: #f0c040;
}

/* Hamburger button */
.menu-toggle {
  display: none;
  font-size: 36px;
  color: #fff;
  cursor: pointer;
  z-index: 40;
  margin-left: auto;
  padding: 8px;
}

/* Mobile adjustments */
@media (max-width: 600px) {
  .menu-toggle {
    display: block;
  }

  .brand {
    flex-direction: row;
    align-items: center;
    gap: 8px;
    margin-right: auto;
  }

  .brand img {
    width: 70px;
  }

  .brand-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 26px;
    font-weight: 400;
    letter-spacing: 0.5px;
    text-align: left;
  }

  /* Mobile dropdown menu */
  .main-nav ul {
    position: fixed;
    top: 60px;
    left: 50%;
    transform: translateX(-50%);
    flex-direction: column;
    align-items: center;
    background: rgba(0,0,0,0.85);
    width: 90%;
    height: calc(100vh - 60px);
    border-radius: 6px;
    max-height: 0;
    opacity: 0;
    overflow-y: auto;
    transition: max-height 0.4s ease, opacity 0.4s ease;
    padding: 0;
    margin: 0;
    z-index: 30;
  }

  .main-nav.open ul {
    max-height: 100vh;
    opacity: 1;
  }

  .main-nav ul li {
    width: 100%;
  }

  .main-nav ul li a {
    display: block;
    width: 100%;
    padding: 14px 20px;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.15);
  }

  .main-nav ul li:last-child a {
    border-bottom: none;
  }
}

.intro-text {
  font-family: 'Cormorant Garamond', serif;
  color: #2c3e50;
  background: #fdfdfd;
  padding: 60px 20px;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  line-height: 1.6;
  font-size: 18px;
}

.intro-text h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 5px;
  color: #1a1a1a;
  letter-spacing: 1px;
}

.intro-text h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px;
  font-weight: 400;
  margin-bottom: 10px;
  color: #444;
  font-style: normal;   /* remove italic */
}
.intro-text h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px;
  font-weight: 300;
  margin-top: 0;
  margin-bottom: 0px;
  color: #444;
  font-style: normal;   /* remove italic */
}
.intro-text p {

  margin-top: 0;        /* remove stacked margin */
  margin-bottom: 0px;
}

.image-section {
  width: 100%;
  text-align: center;
  background: #fff;   /* optional background */
  padding: 40px 20px;
}

.image-section img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;   /* optional rounded corners */
  box-shadow: 0 4px 12px rgba(0,0,0,0.15); /* subtle shadow */
}

/* --- Updated three-images with captions and links --- */
.three-images {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 30px;              /* more space between cards */
  padding: 40px 20px;
  background: #fff;
  margin-bottom: 0.5rem;
}

.image-card  {
  text-align: center;
  max-width: 420px;       /* increased size for all cards */
  flex: 1;                /* let them grow evenly */
  margin-bottom: 0.5rem;
  margin: 0; 
  padding: 0;
}

.image-card img {
  width: 100%;            /* fill the card width */
  height: auto;           /* keep aspect ratio */
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.image-card h3 {
  text-align: center;
  margin: 8px 0;
  font-size: 25px;        /* slightly larger text */
  font-family: 'Cormorant Garamond', serif;
  color: #2c3e50;

}

.discover-link {
  display: inline-block;
  padding: 10px 20px;     /* bigger button */
  background-color: #2c3e50;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  transition: background 0.3s ease;
  font-size: 17px;
  display: inline-block;
  margin-top: 10px;   /* small gap above */
}

.discover-link:hover {
  background-color: #f0c040;
  color: #000;
}

/* Mobile layout: stack vertically */
@media (max-width: 768px) {
  .three-images {
    flex-direction: column;
    align-items: center;
  }

  .image-card {
    max-width: 95%;       /* nearly full width on mobile */
    margin-top: 0;        /* remove stacked margin */
    margin-bottom: 5px;
  }
}
.intro-text--large {
  font-family: 'Cormorant Garamond', serif;
  font-size: 42px;
  font-weight: 700;

  color: #1a1a1a;
  letter-spacing: 1px;


  font-style: normal;   /* remove italic */

  background: #fdfdfd;

  text-align: center;

  margin-top: 0;        /* no extra space above */
  margin-bottom: 2px;   /* very tight gap below heading */
  line-height: 1.3;     /* slightly tighter line spacing */
}
.intro-text--p {
  font-family: 'Cormorant Garamond', serif;
  color: #2c3e50;
  background: #fdfdfd;
  padding: 60px 20px;
  text-align: center;
  max-width: 900px;
  line-height: 1.6;
  font-size: 18px;
  margin-top: 0;        /* remove stacked margin */
  margin-bottom: 5px;  /* small breathing room before link */
}
h3, p {
  margin: 0;
}
.image-card p {
  margin: 8px 0;   /* small gap */
  padding: 0;      /* no extra padding */
}
.social-footer {
  background: #111;        /* dark background */
  padding: 20px;
  text-align: center;
}

.social-icons a {
  color: #fff;             /* white icons */
  margin: 0 15px;
  font-size: 24px;
  transition: color 0.3s ease;
}

.social-icons a:hover {
  color: #f0c040;          /* gold hover effect */
}
.reserve-btn-container {
  display: flex;
  justify-content: flex-end;   /* pushes button to the right */
  margin: 20px 40px;           /* spacing from edges */
}

.reserve-btn {
  background-color: #f0c040;   /* gold color */
  color: #111;                 /* dark text */
  padding: 12px 24px;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  border-radius: 6px;
  transition: background 0.3s ease;
}

.reserve-btn:hover {
  background-color: #d4a020;   /* darker gold on hover */
  color: #fff;
}
.youtube-section {
  text-align: center;
  background: #fff;
  padding: 60px 20px;
}

.youtube-section h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 30px;
  color: #2c3e50;
}

.youtube-container {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
}

.youtube-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.villa-reservations {
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding: 40px 20px;
  background: #fff;
}

.villa-row {
  display: grid;
  grid-template-columns: 2fr 1.5fr 1fr; /* images | description | price */
  gap: 20px;
  align-items: start;
  margin-bottom: 40px;
}

.villa-images {
  position: relative;   /* establish positioning context */
  width: 100%;
  display: inline-block; /* ensures container wraps image height */
}

.villa-images img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Arrow buttons */
.villa-images button {
  position: absolute;
  top: 50%;                     /* vertical center */
  transform: translateY(-50%);  /* adjust for button height */
  background: rgba(0,0,0,0.5);
  color: #fff;
  border: none;
  padding: 10px 14px;
  cursor: pointer;
  border-radius: 4px;
  font-size: 20px;
  z-index: 10;                  /* keep above image */
}

.villa-images .prev { left: 15px; }
.villa-images .next { right: 15px; }





.villa-description {
  font-family: 'Cormorant Garamond', serif;
  color: #2c3e50;
}

.villa-price {
  text-align: center;
}

.villa-price h4 {
  font-size: 20px;
  margin-bottom: 10px;
}

.select-btn {
  background: #2c3e50;
  color: #fff;
  border: none;
  padding: 10px 20px;
  font-size: 16px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.select-btn:hover {
  background: #f0c040;
}

/* Mobile layout */
@media (max-width: 768px) {
  .villa-row {
    grid-template-columns: 1fr; /* stack vertically */
    text-align: center;
  }
}
/* Modal background */
.modal {
  display: none; 
  position: fixed; 
  z-index: 999; 
  padding-top: 60px; 
  left: 0;
  top: 0;
  width: 100%; 
  height: 100%; 
  overflow: auto;
  background-color: rgba(0,0,0,0.8);
}

/* Modal image */
.modal-content {
  margin: auto;
  display: block;
  max-width: 90%;
  max-height: 80%;
  border-radius: 8px;
}

/* Caption */
#caption {
  margin: 15px auto;
  text-align: center;
  color: #fff;
  font-size: 18px;
}

/* Close button */
.close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
}
.villa-video {
  margin-top: 15px;
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
}

.villa-video iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.image-wrapper {
  position: relative;   /* anchor for arrows */
  width: 100%;
  display: inline-block;
}

.image-wrapper img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Arrow buttons */
.image-wrapper button {
  position: absolute;
  top: 50%;                     /* vertical center */
  transform: translateY(-50%);  /* adjust for button height */
  background: rgba(0,0,0,0.5);
  color: #fff;
  border: none;
  padding: 10px 14px;
  cursor: pointer;
  border-radius: 4px;
  font-size: 20px;
  z-index: 10;                  /* keep above image */
}

.image-wrapper .prev { left: 15px; }
.image-wrapper .next { right: 15px; }
.row-divider {
  border-top: 2px solid #ccc;
  margin: 30px 0;
}
/* Popup overlay */
.popup-overlay {
  display: none; /* hidden by default */
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

/* Popup content */
.popup-content {
  background: #fff;
  padding: 30px;
  border-radius: 10px;
  width: 400px;
  max-width: 90%;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.popup-content h2 {
  margin-top: 0;
  text-align: center;
}

.popup-content label {
  display: block;
  margin-top: 15px;
  font-weight: bold;
}

.popup-content input, 
.popup-content select {
  width: 100%;
  padding: 8px;
  margin-top: 5px;
  border-radius: 5px;
  border: 1px solid #ccc;
}

#next-btn {
  margin-top: 20px;
  width: 100%;
  padding: 12px;
  background: #2a9d8f;
  color: #fff;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  cursor: pointer;
}

#next-btn:hover {
  background: #21867a;
}

/* Close button */
.close-btn {
  float: right;
  font-size: 24px;
  cursor: pointer;
}
/* General popup button style */
.popup-content button {
  display: inline-block;
  padding: 10px 18px;
  margin-top: 10px;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  background-color: #2c7a7b; /* teal tone */
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.popup-content button:hover {
  background-color: #225e5f; /* darker teal on hover */
}

/* Specific spacing for Proceed button */
#proceed-btn {
  margin-top: 15px;
  background-color: #3182ce; /* blue tone */
}

#proceed-btn:hover {
  background-color: #2b6cb0;
}


.payment-message {
  text-align: center;
  padding: 30px;
  background: #f9fff9;
  border-radius: 8px;
  font-family: "Segoe UI", sans-serif;
}

.payment-message .icon {
  font-size: 48px;
  color: #2ecc71; /* green check */
  margin-bottom: 15px;
}

.payment-message h3 {
  color: #333;
  margin-bottom: 10px;
}

.payment-message p {
  color: #555;
  margin-bottom: 20px;
}

.payment-message .close-btn {
  background: #2ecc71;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 16px;
}

.payment-message .close-btn:hover {
  background: #27ae60;
}
.faq-question {
  width: 100%;
  text-align: left;
  padding: 12px;
  font-size: 16px;
  font-weight: bold;
  background: #f0f0f0;
  border: none;
  cursor: pointer;
  margin-top: 10px;
  border-radius: 6px;
  transition: background 0.3s ease;
}

.faq-question:hover {
  background: #e0e0e0;
}

.faq-answer {
  display: none;
  padding: 12px;
  margin-top: 5px;
  background: #fff;
  border-left: 3px solid #2c3e50;
  border-radius: 4px;
}

.faq-item.active .faq-answer {
  display: block;
}


