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

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    background: white;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05); /* Softer shadow */
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
    box-sizing: border-box;
}

.logo {
    font-size: 1.8em;
    font-weight: bold;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  color: #333;
  scroll-behavior: smooth;
  background-color: #f8f9fa;
  line-height: 1.6;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    max-width: 1200px;
    margin: 0 auto;
}

nav ul {
    list-style: none;
    display: flex;
}

nav a:not(.cta-button a) {
    text-decoration: none;
    color: #555;
    padding: 10px 18px;
    transition: color 0.3s, border-bottom 0.3s;
}

nav a:not(.cta-button a):hover {
    color: #f08080;
    border-bottom: 2px solid #f08080;
}

.cta-button a {
    background: #f08080;
    color: white;
    padding: 12px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s, transform 0.2s;
}
.cta-button a:hover {
    background: #d96f6f;
    transform: translateY(-2px);
}

/* --- 5. Lightbox (Refactored for Large Hit Zones) --- */
#lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  visibility: hidden;
  opacity: 0;
  transition: opacity var(--transition);
  z-index: 9999;
}

#lightbox-overlay.active {
  visibility: visible;
  opacity: 1;
}

#lightbox-img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 0 25px rgba(0,0,0,0.8);
}

#lightbox-prev, 
#lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 45%;      /* Reaches to the middle */
  height: 90%;     /* Full image height */
  background: transparent !important;
  border: none;
  color: white;
  font-size: 3.5rem;
  display: flex;
  align-items: center;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity var(--transition);
  -webkit-tap-highlight-color: transparent; /* Mobile fix */
  user-select: none;
}

#lightbox-prev {
  left: 5%;
  justify-content: flex-start;
  padding-left: 20px;
}

#lightbox-next {
  right: 5%;
  justify-content: flex-end;
  padding-right: 20px;
}

#lightbox-prev:hover, 
#lightbox-next:hover {
  opacity: 1;
}

/* Hero Slider */
.hero {
  position: relative;
  height: 70vh;
  overflow: hidden;
}

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

.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s;
}

.slide.active {
  opacity: 1;
  /* z-index: 1; */
}

.hero-text {
  position: absolute;
  bottom: 20%;
  left: 10%;
  color: #fff;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
}

.hero-text h1 {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  margin-bottom: 0.5rem;
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 10px;
}

.gallery-grid img {
  width: 100%;
  height: 100%;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.3s ease;
}

.gallery-grid img:hover {
  transform: scale(1.02);
}


/* Form */
form {
  margin: 0 auto;
  max-width: 600px;
  display: flex;
  flex-direction: column;
}

form input,
form textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family: 'Open Sans', sans-serif;
  font-size: 1rem;
}

button {
  background: #f08080;
  color: #fff;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.3s ease;
}

button:hover {
  background: #d96f6f;
}

#form-status {
  margin-top: 1rem;
  font-weight: 500;
}

/* Footer */
footer {
  background: #222;
  color: #fafafa;
  text-align: center;
  padding: 1rem;
  margin-top: 2rem;
}

.about-text p {
  max-width: 700px;
  margin: 1rem auto;
  font-size: 1.1rem;
  line-height: 1.7;
  text-align: center;
  color: #555;
  position: relative;
  padding-bottom: 1rem;
}

.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.hamburger .bar {
    width: 25px;
    height: 3px;
    background-color: #f08080;
    transition: 0.3s;
}

@media screen and (max-width: 768px) {
    .hamburger {
        display: flex;
        z-index: 1001;
    }

    .nav-links {
        position: fixed;
        right: -100%;
        top: 0;
        width: 70%;
        height: 100vh;
        background-color: white;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 30px;
        transition: 0.4s ease-in-out;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        z-index: 1000;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links .cta-button {
        margin-top: 10px;
    }

    .hamburger.active .bar:nth-child(2) { opacity: 0; }
    .hamburger.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .hamburger.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}

.amenities-list {
  max-width: 600px;
  margin: 2rem auto 0;
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  font-size: 1rem;
}

.amenities-list li {
  display: flex;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid #eee;
}

.amenities-list .icon {
  margin-right: 0.6rem;
  font-size: 1.2rem;
  width: 1.5rem;
  text-align: center;
}

@media (max-width: 600px) {
  .amenities-list {
    grid-template-columns: 1fr;
  }
}


/* Container styling */
.booking-details-container {
    padding: 40px 20px;
    max-width: 1100px;
    margin: 0 auto;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
}

.details-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 30px;
    color: #2c3e50;
}

/* Grid layout: 3 columns on desktop, 1 on mobile */
.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
}

/* Individual Card Styling */
.details-card {
    background: #ffffff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    border-top: 5px solid #f08080;
    transition: transform 0.3s ease;
}

.details-card:hover {
    transform: translateY(-5px);
}

.details-card h4 {
    margin-top: 0;
    color: #2c3e50;
    font-size: 1.2rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.details-card ul {
    list-style: none;
    padding: 0;
}

.details-card ul li {
    margin-bottom: 12px;
    padding-left: 5px;
    line-height: 1.5;
}

/* Check-in styles */
.policy-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px dashed #ddd;
}

.policy-note {
    font-size: 0.85rem;
    color: #777;
    font-style: italic;
    margin-top: 15px;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .details-title {
        font-size: 1.6rem;
    }
}

/* General Section Styling */
.villa-section {
    padding: 50px 20px;
    max-width: 1200px;
    margin: 0 auto;
    font-family: 'Helvetica Neue', sans-serif;
}

.section-title {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: #333;
}

/* Card Grid Layout */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .card-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 20px;
    }
}

/* Pricing Card Design */
.card {
    background: #fff;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    border: 1px solid #eee;
    position: relative;
    transition: transform 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    border-top: 5px solid #f08080;
}

.card:hover {
    transform: translateY(-5px);
}

.featured {
    border: 2px solid #f08080;
}

.card-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #f08080;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
}

.price-box {
    margin: 20px 0;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 10px;
}

.price-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.total-villa {
    border-top: 1px solid #ddd;
    padding-top: 10px;
    color: #f08080;
}

.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: flex;
    gap: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #2c3e50;
}

input, select, textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
}

.section-card {
    background: #ffffff;
    max-width: 1000px;
    margin: 40px auto; /* Centers the card and adds space between them */
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid #eee;
}

.section-title {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 25px;
    text-align: center;
    border-bottom: 2px solid #f08080; /* Gold accent line */
    display: inline-block;
    padding-bottom: 10px;
}

.title-wrapper {
    text-align: center;
}

