/* ===== GENERAL RESET ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
}

body {
  background: #e6f0ff; /* light blue theme */
  color: #333;
}

/* ===== NAVBAR ===== */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: #FFF; /* white */
  color: #fff;
}

.nav-contact {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
}

.nav-contact a {
  color: #333;
  text-decoration: none;
}

.nav-contact a:hover {
  font-weight: 700;
}



.divider {
  width: 1px;
  height: 18px;
  background-color: #999;
}


.divider {
  margin: 0 0.3rem;
  color: #fff;
}

/* ===== HERO ===== */
.hero {
  background: url('images/hero.jpg') center/cover no-repeat;
  height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  color: #fff;
}

.hero-content {
  text-align: center;
}

.hero h1 {
  font-size: 3rem;
  color: #fff;
  text-shadow: 0 2px 6px rgba(0,0,0,0.4);
  margin-bottom: 1.5rem;
}

/* HERO SEARCH */
.hero-search {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

.hero-search select,
.hero-search input {
  padding: 0.6rem 1rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
  outline: none;
}

.hero-search button {
  padding: 0.6rem 1.2rem;
  background-color: #ffd200;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1.3rem;
  cursor: pointer;
  transition: background 0.2s;
}

.email-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: #f97316; /* orange */
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(249, 115, 22, 0.45);
  transition: background 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
}

.email-btn:hover {
  background: #ea580c;
  transform: scale(1.1);
  box-shadow: 0 10px 26px rgba(249, 115, 22, 0.6);
}

.email-btn:active {
  transform: scale(0.95);
}


.hero-search button:hover {
  background-color: #eea70d;
}

/* ===== CATEGORY GRID ===== */
#categories-section {
  max-width: 1200px;
  margin: 3rem auto;
  padding: 0 1rem;
}

.categories-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.category-card {
  display: block;
  border-radius: 12px;
  overflow: hidden;
  text-align: center;
  text-decoration: none;
  color: #333;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  transition: transform 0.2s, box-shadow 0.2s;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

.category-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.category-card h3 {
  margin: 0.8rem 0 1rem;
  font-size: 1.2rem;
}

/* ===== PROPERTIES GRID ===== */
#properties-section {
  max-width: 1200px;
  margin: 3rem auto;
  padding: 0 1rem;
}

.properties-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.property-card {
  display: block;
  border-radius: 12px;
  overflow: hidden;
  text-align: center;
  text-decoration: none;
  color: #333;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  transition: transform 0.2s, box-shadow 0.2s;
}

.property-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

.property-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.property-card h3 {
  margin: 0.5rem 0 0.3rem;
  font-size: 1.1rem;
}

.property-card p {
  margin-bottom: 1rem;
  color: #555;
}

/* ===== FOOTER ===== */
footer {
  text-align: center;
  padding: 1.5rem;
  background: #1a4d99;
  color: #fff;
  margin-top: 2rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2rem;
  }

  .hero-search {
    flex-direction: column;
    gap: 0.5rem;
  }

  .hero-search select,
  .hero-search input,
  .hero-search button {
    width: 100%;
  }
}


.listing-page {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
}

.listing-page h1 {
  text-align: center;
  margin-bottom: 10px;
}

.listing-intro {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 40px;
  color: #666;
}

.listing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 25px;
}

.listing-card {
  text-decoration: none;
  color: #000;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.listing-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.listing-card h3 {
  margin: 15px 15px 5px;
  font-size: 18px;
}

.listing-card p {
  margin: 0 15px 20px;
  font-size: 14px;
  color: #555;
}

.listing-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}

.villa-page {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
}

.villa-page h1 {
  text-align: center;
  margin-bottom: 5px;
}

.villa-location {
  text-align: center;
  color: #666;
  margin-bottom: 30px;
}

/* GALLERY */
.villa-gallery {
  max-width: 900px;
  margin: 0 auto;
}

.gallery-main {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
}

.gallery-main img {
  width: 100%;
  height: 500px;
  object-fit: cover;
}

.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.55); /* keep semi-transparent */
  color: #fff;
  border: none;
  font-size: 28px;
  padding: 10px 16px;
  cursor: pointer;
  border-radius: 8px; /* CHANGE from 50% to 8px or 0px for sharp corners */
}


.arrow.left { left: 15px; }
.arrow.right { right: 15px; }

.gallery-thumbs {
  display: flex;
  gap: 12px;
  margin-top: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.gallery-thumbs img {
  width: 90px;
  height: 70px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  opacity: 0.6;
  transition: 0.3s;
}

.gallery-thumbs img:hover,
.gallery-thumbs img.active {
  opacity: 1;
  transform: scale(1.05);
  outline: 2px solid #000;
}


.villa-nav {
  max-width: 1200px;
  margin: 20px auto 0;
  padding: 0 20px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #333;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.3px;
  transition: color 0.3s ease, transform 0.3s ease;
}

.back-arrow {
  font-size: 18px;
  transition: transform 0.3s ease;
}

.back-link:hover {
  color: #000;
}

.back-link:hover .back-arrow {
  transform: translateX(-4px);
}
.back-nav .back-home {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: #333;
  font-weight: bold;
  font-size: 1rem;
  transition: color 0.3s;
  position: relative;
  padding-left: 25px; /* space for arrow */
}

/* Arrow using pseudo-element */
.back-nav .back-home::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  border: solid #333;
  border-width: 0 2px 2px 0;
  display: inline-block;
  padding: 5px;
  transform: translateY(-50%) rotate(135deg);
  transition: border-color 0.3s, transform 0.3s;
}

/* Hover animation */
.back-nav .back-home:hover {
  color: #0077cc;
}

.back-nav .back-home:hover::before {
  border-color: #0077cc;
  transform: translateY(-50%) rotate(180deg);
}


.gallery-book {
  text-align: center; /* center the button under the gallery */
  margin: 30px 0;
}

.book-now-btn {
  display: inline-block;
  background-color: #0077cc;   /* main button color */
  color: #fff;
  font-weight: bold;
  font-size: 1.1rem;
  padding: 12px 28px;
  border-radius: 8px;
  text-decoration: none;
  transition: background-color 0.3s, transform 0.2s;
}

.book-now-btn:hover {
  background-color: #005fa3;  /* darker on hover */
  transform: translateY(-2px); /* subtle lift effect */
}


/* ===============================
   MOBILE RESPONSIVE
=============================== */
@media (max-width: 768px) {
  
  /* NAVBAR */
  .navbar {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
  }

  .nav-contact {
    flex-direction: column;
    gap: 5px;
  }

  /* HERO SECTION */
  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-search {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 90%;
    margin: 0 auto;
  }

  .hero-search input,
  .hero-search select,
  .hero-search button {
    width: 100%;
  }

  /* CATEGORY GRID */
  .categories-container {
    grid-template-columns: 1fr !important;
    gap: 15px;
    padding: 0 5%;
  }

  .category-card img {
    height: 200px;
    object-fit: cover;
  }

  /* OFFERS GRID */
  .properties-container {
    grid-template-columns: 1fr !important;
    gap: 15px;
    padding: 0 5%;
  }

  .property-card img {
    height: 200px;
    object-fit: cover;
  }

  /* FOOTER */
  footer {
    padding: 20px 10px;
    font-size: 0.9rem;
    text-align: center;
  }
}

/* SMALLER PHONES */
@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 1.5rem;
  }

  .hero-search input,
  .hero-search select,
  .hero-search button {
    font-size: 0.9rem;
    padding: 8px;
  }
}
/* ===== HERO SEARCH MOBILE ===== */
.hero-search {
  display: flex;
  gap: 12px;
  align-items: center;
}

/* Desktop only */
.desktop-only {
  display: inline-flex;
}

/* Mobile only */
.mobile-only {
  display: none;
}

/* ===== MOBILE VIEW ===== */
@media (max-width: 768px) {
  .hero-search {
    flex-direction: column;
    width: 100%;
    padding: 16px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
  }

  .hero-search select,
  .hero-search input {
    width: 100%;
    padding: 14px;
    font-size: 16px;
    border-radius: 10px;
  }

  /* Hide arrow button */
  .desktop-only {
    display: none;
  }

  /* Show Book Now button */
  .mobile-only {
    display: block;
    width: 100%;
    padding: 16px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 12px;
    background: #000;
    color: #fff;
    border: none;
    cursor: pointer;
  }

  .mobile-only:hover {
    opacity: 0.9;
  }
  
 /* ===== MOBILE SEARCH WIDTH + TRANSPARENCY FIX ===== */
@media (max-width: 768px) {

  .hero-search {
    max-width: 360px;          /* controls width */
    margin: 0 auto;            /* centers it */
    background: transparent;   /* SHOW BACKGROUND IMAGE */
    box-shadow: none;
  }

  .hero-search select,
  .hero-search input,
  .book-now-btn {
    width: 100%;
  }

}
/* Desktop / mobile visibility (keep your previous rules) */
.mobile-only { display: none; }
.desktop-only { display: inline-block; }

@media only screen and (max-width: 768px) {
  .mobile-only { display: inline-block; }
  .desktop-only { display: none; }

  /* Make all inputs the same width on mobile */
  #hero-search input,
  #hero-search select {
    width: 100%;           /* full width of container */
    box-sizing: border-box;
    margin-bottom: 10px;   /* spacing between inputs */
    padding: 12px;         /* make inputs taller / easier to tap */
    font-size: 16px;       /* mobile-friendly font */
  }

  /* Optional: buttons full width too */
  .book-now-btn {
    width: 100%;
    padding: 14px;
    font-size: 18px;
  }
}
@media only screen and (max-width: 768px) {
  /* Mobile inputs full width (previous rule) */
  #hero-search input,
  #hero-search select {
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 10px;
    padding: 12px;
    font-size: 16px;
  }

  /* Mobile date inputs white background */
  #checkin-mobile,
  #checkout-mobile {
    background-color: #ffffff;
    border: 1px solid #ccc;  /* optional: subtle border */
    border-radius: 6px;      /* optional: rounded corners */
    color: #000;             /* text color black for readability */
  }

  /* Optional: mobile book button styling */
  .book-now-btn {
    width: 100%;
    padding: 14px;
    font-size: 18px;
  }
  
  /* Desktop / mobile visibility */
.mobile-only { display: none; }
.desktop-only { display: inline-block; }

/* Mobile styles */
@media only screen and (max-width: 768px) {

  .mobile-only { display: block; }
  .desktop-only { display: none; }

  /* Flex container for date + guests inputs */
  .form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px; /* spacing between inputs */
    justify-content: space-between;
  }

  /* Mobile inputs - restrained width */
  #checkin-mobile,
  #checkout-mobile,
  #guests {
    flex: 1 1 48%; /* each input takes about 48% width */
    min-width: 120px; /* don’t shrink too small on tiny screens */
    padding: 12px;
    font-size: 16px;
    border-radius: 6px;
    border: 1px solid #ccc;
    background-color: #fff;
    color: #000;
  }

  /* Make select full width */
  #location {
    width: 100%;
    margin-bottom: 12px;
    padding: 12px;
    border-radius: 6px;
    border: 1px solid #ccc;
  }

  /* Mobile book button full width */
  .book-now-btn {
    width: 100%;
    padding: 14px;
    font-size: 18px;
    border-radius: 6px;
    border: none;
    background-color: #ff6f61;
    color: #fff;
    cursor: pointer;
  }

  .book-now-btn:hover {
    background-color: #ff4a3a;
  }
  
  /* Desktop / mobile visibility */
.mobile-only { display: none; }
.desktop-only { display: inline-block; }

/* Mobile styles */
@media only screen and (max-width: 768px) {

  .mobile-only { display: block; }
  .desktop-only { display: none; }

  /* Flex container for date + guests inputs */
  .form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px; /* spacing between inputs */
    justify-content: space-between;
  }

  /* Mobile inputs - restrained width and white background */
  #checkin-mobile,
  #checkout-mobile,
  #guests {
    flex: 1 1 48%; /* each input ~48% width */
    min-width: 120px; /* don’t shrink too small */
    padding: 12px;
    font-size: 16px;
    border-radius: 6px;
    border: 1px solid #ccc;
    background-color: #ffffff; /* WHITE background */
    color: #000; /* black text for readability */
  }

  /* Make select full width */
  #location {
    width: 100%;
    margin-bottom: 12px;
    padding: 12px;
    border-radius: 6px;
    border: 1px solid #ccc;
    background-color: #ffffff; /* optional white background */
    color: #000;
  }

  /* Mobile book button full width */
  .book-now-btn {
    width: 100%;
    padding: 14px;
    font-size: 18px;
    border-radius: 6px;
    border: none;
    background-color: #ff6f61;
    color: #fff;
    cursor: pointer;
  }

  .book-now-btn:hover {
    background-color: #ff4a3a;
  }
}




