:root {
  --primary: #0a192f;
  --accent: #c5a059;
  --accent-hover: #b38f4d;
  --white: #ffffff;
  --slate: #f4f7f6;
  --text-main: #2d3436;
  --text-muted: #636e72;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: "Montserrat", sans-serif;
  color: var(--text-main);
  line-height: 1.7;
  background: var(--white);
  overflow-x: hidden;
}
h1,
h2,
h3,
.logo {
  font-family: "Playfair Display", serif;
}
a {
  text-decoration: none;
  color: inherit;
}

/* Navigation */
nav {
  background: var(--primary);
  padding: 1rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 2000;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.logo {
  color: var(--accent);
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: 1px;
  cursor: pointer;
}

/* NEW: Mobile Toggle Button Hidden by default */
.menu-toggle {
  display: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
  transition: var(--transition); /* Smooth transition for mobile slide */
}

.nav-links a {
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  transition: var(--transition);
  letter-spacing: 1px;
  cursor: pointer;
}

.nav-links a:hover {
  color: var(--accent);
}

.whatsap-btn {
  padding: 10px 20px;
  font-size: 0.7rem;
}

/* RESPONSIVE OVERRIDES */
@media (max-width: 900px) {
  .menu-toggle {
    display: block; /* Show hamburger icon on mobile */
    order: 2; /* Positions toggle after the logo */
  }

  .logo {
    order: 1;
  }

  nav .whatsap-btn {
    padding: 10px 20px;
    font-size: 0.7rem; /* Hide WhatsApp button on mobile to save space */
  }

  .nav-links {
    display: none; /* Hide links by default */
    flex-direction: column;
    position: absolute;
    top: 100%; /* Sits right below the nav bar[cite: 1] */
    left: 0;
    width: 100%;
    background: var(--primary);
    padding: 20px;
    gap: 1.5rem;
    text-align: center;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    z-index: 1000;
  }

  /* When JS adds the .active class, show the menu[cite: 1] */
  .nav-links.active {
    display: flex;
  }
}

/* Layout Controls */
.page-section {
  display: none;
}
.page-section.active {
  display: block;
}

/* Hero & Sections */
/* .hero {
  height: 85vh;
  background:
    linear-gradient(rgba(10, 25, 47, 0.7), rgba(10, 25, 47, 0.7)),
    url("https://images.unsplash.com/photo-1600607687920-4e2a09cf159d?q=80&w=2070&auto=format&fit=crop");
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: var(--white);
  padding: 0 10%;
}  */
.hero-sub {
  text-transform: uppercase;
  letter-spacing: 5px;
  color: var(--accent);
  margin-bottom: 10px;
  font-weight: 700;
}
.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  margin-bottom: 1.5rem;
  line-height: 1.1;
}
.hero p {
  font-size: clamp(1rem, 2vw, 1.3rem);
  max-width: 800px;
  margin-bottom: 2.5rem;
  font-weight: 300;
}
.hero-btns {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  justify-content: center;
}

.section {
  padding: 80px 8%;
}
.section-header {
  text-align: center;
  margin-bottom: 50px;
}
.section-header h2 {
  font-size: 2.8rem;
  color: var(--primary);
  margin-bottom: 10px;
}
.section-header p {
  margin-top: 50px;
  color: var(--accent);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 3px;
}

.hero {
  position: relative;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
}

.hero-slider,
.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-slider::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7); /* Adjust darkness here */
  z-index: 5;
}

.slide {
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 7s ease-in-out; /* The "Fade In Slowly" effect */
  transform: scale(1);
}

/* The Ken Burns Effect Animation */
@keyframes kenburns {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(1.15);
  }
}

.slide.active {
  opacity: 1;
  z-index: 2;
  animation: kenburns 10s linear forwards; /* Slow zoom over 10 seconds */
  transition: opacity 7s ease; /* The "Fade In Slowly" effect */
}

/* Ensure content stays on top of images */
.hero-content {
  position: relative;
  z-index: 10;
  max-width: 800px;
  padding: 20px;
}
/* Property Listing Grid */
.property-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 30px;
}
.prop-card {
  background: var(--white);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
  cursor: pointer;
  border: 1px solid #eee;
}
.prop-card:hover {
  transform: translateY(-10px);
}
.prop-img {
  height: 250px;
  background-size: cover;
  background-position: center;
}
.prop-body {
  padding: 25px;
}
.prop-view-btn {
  color: var(--accent);
  font-weight: 800;
  font-size: 1.2rem;
  border: none;
  border-radius: 50px;
  padding: 10px 20px;
  cursor: pointer;
}

/* Diaspora Section */
#diaspora {
  background: var(--primary);
  color: white;
  width: 100%;
}
.diaspora-box {
  background: var(--primary);
  color: white;
  padding: 15px;
  border-radius: 30px;
  display: flex;
  align-items: center;
  gap: 60px;
  flex-wrap: wrap;
}
.diaspora-content {
  flex: 1;
  min-width: 320px;
}
.diaspora-sub {
  color: var(--accent);
  font-weight: 800;
  text-transform: uppercase;
}
.diaspora-title {
  font-size: 2.5rem;
  margin: 20px 0;
}
.diaspora-list {
  list-style: none;
  margin: 30px 0;
}
.diaspora-list li {
  margin-bottom: 20px;
  display: flex;
  align-items: flex-start;
  gap: 15px;
}
.diaspora-list i {
  color: var(--accent);
  font-size: 1.5rem;
}

.diaspora-image {
  flex: 1;
  min-width: 300px;
  height: 450px;
  border-radius: 20px;
  background: url("https://images.unsplash.com/photo-1560518883-ce09059eeffa?q=80&w=2070&auto=format&fit=crop")
    center/cover;
}
/* .amenities-grid Styles */
.amenities-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin: 25px 0;
}
.amenity {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.amenity i {
  color: var(--accent);
  width: 18px;
}

/* Detail View Styles */
.detail-header {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 40px;
  margin-top: 40px;
}
.detail-gallery {
  height: 500px;
  border-radius: 20px;
  background-size: cover;
  background-position: center;
}
.detail-info {
  padding: 20px;
}
.related-section {
  margin-top: 80px;
  border-top: 1px solid #eee;
  padding-top: 50px;
}

/* About Us Styles */
.about-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.about-img {
  height: 600px;
  border-radius: 30px;
  background: url("https://images.unsplash.com/photo-1560518883-ce09059eeffa?auto=format&fit=crop&w=800&q=80")
    center/cover;
}

/* Testimonials */
.testi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}
.testi-card {
  background: white;
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  border-bottom: 4px solid var(--accent);
}
.testi-card p {
  font-style: italic;
  margin-bottom: 20px;
}
.testi-card h5 {
  color: var(--primary);
  font-weight: 700;
  font-size: 1rem;
}

/* Contact Section */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 60px;
}
.contact-info p {
  margin: 20px 0;
}
.contact-details {
  margin-top: 30px;
}
.contact-details p {
  margin-bottom: 10px;
}
.contact-details i {
  color: var(--accent);
  margin-right: 10px;
}

.contact-social {
  display: flex;
  gap: 20px;
  margin-top: 30px;
  font-size: 1.5rem;
  color: var(--primary);
}

.contact-form {
  background: var(--slate);
  padding: 40px;
  border-radius: 20px;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 15px;
  margin-bottom: 20px;
  border: 1px solid #ddd;
  border-radius: 8px;
}
.contact-form select {
  color: var(--text-muted);
}
.contact-form button {
  width: 100%;
}

/* Blog Styles */
/* Main Blog Grid */
#blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 30px;
  padding: 40px 0;
}

.blog-card {
  background: var(--white);
  border-radius: 15px;
  padding: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
  border: 1px solid #eee;
}
.blog-card:hover {
  transform: translateY(-7px);
}

.blog-img {
  width: 100%;
  border-radius: 7px;
  height: 220px;
  margin-bottom: 50px;
  background-size: cover;
  background-position: center;
  transition: transform 0.5s ease;
}

/* The Container for the Detailed View */
.article-container {
  display: flex;
  flex-wrap: wrap; /* Allows stacking on mobile */
  gap: 40px;
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
}

/* Main Content Area */
.article-main {
  flex: 2; /* Takes up 2/3 of space */
  min-width: 300px;
}

/* Hero Image for Detailed View */
.article-hero-img {
  width: 100%;
  height: 450px;
  object-fit: cover;
  border-radius: 15px;
  margin-bottom: 25px;
}

.sidebar-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 15px;
  margin-bottom: 20px;
  cursor: pointer;
  align-items: center;
}

.sidebar-item img {
  width: 80px;
  height: 60px;
  object-fit: cover;
  border-radius: 8px;
}

.sidebar-item h4 {
  font-size: 0.95rem;
  margin: 0;
  line-height: 1.3;
  transition: color 0.3s;
}

.sidebar-item:hover h4 {
  color: var(--accent);
}

/* Image Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.gallery-item {
  height: 300px;
  border-radius: 15px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.5s ease;
}
.gallery-item:hover img {
  transform: scale(1.1);
}
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 25, 47, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: 0.3s;
  color: white;
  font-weight: 600;
  text-align: center;
  padding: 20px;
}
.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

/* Lightbox Modal */
.lightbox {
  display: none;
  position: fixed;
  z-index: 5000;
  padding-top: 50px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 25, 47, 0.98);
  backdrop-filter: blur(10px);
}
.lightbox-content {
  margin: auto;
  display: block;
  width: 90%;
  max-width: 1100px;
  border-radius: 10px;
  animation: zoom 0.3s;
}
#caption {
  text-align: center;
  color: var(--accent);
  padding: 20px;
  font-weight: 600;
  font-size: 1.2rem;
}
.close-lightbox {
  position: absolute;
  top: 25px;
  right: 35px;
  color: white;
  font-size: 40px;
  cursor: pointer;
}
@keyframes zoom {
  from {
    transform: scale(0.8);
  }
  to {
    transform: scale(1);
  }
}
/* Buttons */
.btn {
  padding: 15px 30px;
  border-radius: 8px;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.8rem;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  display: inline-block;
}
.btn-gold {
  background: var(--accent);
  color: var(--primary);
}
.btn-gold:hover {
  background: var(--accent-hover);
  transform: translateY(-3px);
}

/* Lightbox Layout Fixes */
.lightbox-modal {
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  display: none;
  align-items: center;
  justify-content: center;
}

/* Base Arrow Angles Styling */
.lb-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 2rem;
  padding: 15px 20px;
  cursor: pointer;
  border-radius: 5px;
  z-index: 10000;
  transition: all 0.3s ease;
  user-select: none;
}

.lb-arrow:hover {
  background: var(--accent, #c5a875); /* Your gold accent color */
  color: #000;
  border-color: var(--accent, #c5a875);
}

/* Position Left and Right specifically */
.lb-prev {
  left: 30px;
}
.lb-next {
  right: 30px;
}

/* Hide arrows on very small mobile devices if they overlap the content */
@media (max-width: 600px) {
  .lb-arrow {
    padding: 10px 15px;
    font-size: 1.5rem;
  }
  .lb-prev {
    left: 10px;
  }
  .lb-next {
    right: 10px;
  }
}

/* Footer */
footer {
  background: var(--primary);
  color: white;
  padding: 100px 8% 40px;
}
.footer-grid {
  display: flex;
  justify-content: space-evenly;
  flex-wrap: wrap;
  text-align: left;
  gap: 60px;
  margin-bottom: 60px;
}

.header-logo {
  font-size: 2rem;
  color: var(--accent);
  font-weight: 800;
  display: block;
  text-decoration: none;
  cursor: pointer;
}

.footer-logo {
  font-size: 2rem;
  color: var(--accent);
  font-weight: 800;
  margin-bottom: 20px;
  display: block;
  text-decoration: none;
}

.footer-desc {
  opacity: 0.7;
  width: 300px;
}
.footer-links {
  list-style: none;
}
.footer-links li {
  margin-bottom: 12px;
  opacity: 0.7;
  font-size: 0.9rem;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 50px 0px;
  text-align: left;
  font-size: 0.8rem;
  opacity: 0.5;
}

.footer-subscribe {
  max-width: 400px;
}

.useful-links,
.footer-subscribe h3 {
  color: var(--accent);
  margin-bottom: 15px;
  font-family: "Playfair Display", serif;
}

.footer-subscribe p {
  font-size: 0.9rem;
  color: #ccc;
  margin-bottom: 20px;
}

.subscribe-input-group {
  display: flex;
  gap: 10px;
}

.subscribe-input-group input {
  flex: 1;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: white;
  border-radius: 5px;
  outline: none;
}

.subscribe-input-group input:focus {
  border-color: var(--accent);
}

.footer-socials h3 {
  color: var(--accent);
  margin-bottom: 15px;
  font-family: "Playfair Display", serif;
}

.social-icons {
  display: flex;
  gap: 15px;
}

.social-icons a {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--white);
  font-size: 1.2rem;
  transition: var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.contact-socials a {
  width: 40px;
  height: 40px;
  background: rgb(41, 41, 41);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--white);
  font-size: 1.2rem;
  transition: var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-icons a:hover {
  background: var(--accent);
  color: var(--primary);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(197, 168, 117, 0.3); /* Uses your gold accent color */
}

@media (max-width: 600px) {
  .subscribe-input-group {
    flex-direction: column;
  }
}

@media (max-width: 900px) {
  .detail-header,
  .about-split {
    grid-template-columns: 1fr;
  }
  .detail-gallery {
    height: 300px;
  }
}
@media (max-width: 900px) {
  .header-logo {
    font-size: 1.5rem;
    color: var(--accent);
    font-weight: 800;
    display: block;
    text-decoration: none;
    cursor: pointer;
  }
}

/* Container for the image and text */
.detail-header {
  display: grid;
  grid-template-columns: 1.2fr 1fr; /* Image gets slightly more space */
  gap: 40px;
  margin-top: 40px;
  align-items: start;
}

/* The grid holding your dynamic amenities */
.amenities-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* Two columns by default */
  gap: 15px;
  margin: 25px 0;
}

/* Responsive Breakpoint for Tablets/Mobile */
@media (max-width: 900px) {
  .detail-header {
    grid-template-columns: 1fr; /* Stack image on top of text */
    gap: 30px;
  }

  .detail-gallery {
    height: 350px; /* Adjust height for mobile viewing */
    border-radius: 15px;
  }

  .amenities-grid {
    grid-template-columns: 1fr; /* Single column for easier reading on small screens */
  }

  .detail-info h2 {
    font-size: 2rem; /* Scale down heading size */
  }
}

.article-container {
  display: grid;
  grid-template-columns: 2fr 1fr; /* 2 parts content, 1 part sidebar */
  gap: 40px;
  margin-top: 30px;
}

.article-hero-img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 15px;
  margin-bottom: 20px;
}

/* Sidebar Styles */
.article-sidebar {
  background: rgba(255, 255, 255, 0.05);
  padding: 20px;
  border-radius: 15px;
  height: fit-content;
}

.sidebar-item {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
  cursor: pointer;
  transition: var(--transition);
}

.sidebar-item:hover h4 {
  color: var(--accent);
}

.sidebar-item img {
  width: 80px;
  height: 60px;
  object-fit: cover;
  border-radius: 5px;
}

.sidebar-item h4 {
  font-size: 0.9rem;
  margin-bottom: 5px;
  line-height: 1.2;
}

/* CTA Section Styles */
.article-cta {
  margin-top: 50px;
  padding: 40px;
  background: var(--primary);
  border: 1px solid var(--accent);
  border-radius: 15px;
  text-align: center;
}

.article-cta h3,
.article-cta p {
  color: var(--white);
}
.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 20px;
}

/* Mobile Responsiveness */
@media (max-width: 900px) {
  .article-container {
    grid-template-columns: 1fr;
  }
  .article-hero-img {
    height: 250px;
  }
  .cta-buttons {
    flex-direction: column;
  }
}

/* Small Gallery inside Detail View */
.property-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 10px;
  margin-top: 15px;
}

.prop-gallery-item {
  height: 80px;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
}

.prop-gallery-item:hover {
  border-color: var(--accent);
  transform: scale(1.05);
}

.prop-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Ensure the main detail image is responsive */
.detail-gallery-main {
  width: 100%;
  height: 500px;
  background-size: cover;
  background-position: center;
  border-radius: 15px;
}

@media (max-width: 900px) {
  .detail-gallery-main {
    height: 300px;
  }
}

.video-container {
  max-width: 1920px; /* Limits the video size on large screens */
  margin: 0 auto;
  padding: 0 20px;
}

/* Container that holds the 3 items */
.video-grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px; /* Increased slightly to accommodate captions */
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Wraps both the video frame and its text together */
.video-card {
  display: flex;
  flex-direction: column;
}

/* Aspect ratio maintenance container for each video */
.video-wrapper {
  position: relative;
  padding-bottom: 70%; /* Forces classic 16:9 widescreen ratio */
  height: 0;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  background: #000;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Video Caption Styling */
.video-caption {
  padding: 1px 5px 0 5px;
  margin-bottom: 70px;
}

.video-caption h2 {
  font-size: 1.2rem;
  font-family: "Playfair Display", serif;
  color: var(--white, #ffffff);
  margin: 0 0 5px 0;
}

.video-caption p {
  font-size: 0.9rem;
  color: var(--accent, #c5a875); /* Soft Gold styling */
  margin: 0;
}

.video-caption p i {
  margin-right: 5px;
}

/* Hide all page sections by default */
.page-section {
  display: none;
  width: 100%;
}

/* Show only the one that has the active class or state */
.page-section.active {
  display: block !important;
}
