@tailwind base;
@tailwind components;
@tailwind utilities;

/* FONT RULES */
p,
span,
div {
  font-family: "Poppins", sans-serif;
}

/* H1 only */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Roboto Condensed", sans-serif;
}

/* RESET */
body {
  padding: 0;
  margin: 0;
}
html,
body {
  overflow-x: hidden;
  max-width: 100dvw;
}

/* NAVBAR */
.navbar {
  width: 100%;
  padding: 10px 0px;
  background: #ffffff;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 999;
  display: flex;
  justify-content: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  width: 25%;
}
/* Desktop menu */
.nav-menu {
  display: flex;
  width: 100%;
  justify-content: space-between;
  list-style: none;
}

.nav-menu li a {
  position: relative;
  text-decoration: none;
  color: #6b6b6b;
  font-size: 16px;
  font-weight: 500;
  display: inline-block;
  transition: color 0.3s ease-in-out;
}

/* Base underline hidden below */
.nav-menu li a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  background: #9bdd7c;
  transform: translateY(6px);
  opacity: 0;
  transition: transform 0.3s ease-in-out, height 0.3s ease-in-out,
    opacity 0.3s ease-in-out;
}

/* Hover — underline rises smoothly */
.nav-menu li a:hover::after {
  transform: translateY(-1px);
  opacity: 1;
}

/* Active — thicker & closer */
.nav-menu li a.active::after {
  height: 3px;
  transform: translateY(-3px);
  opacity: 1;
}

/* Colors */
.nav-menu a:hover {
  color: #2a2a2a;
}
.nav-menu a.active {
  color: #000;
}

/* HAMBURGER */
.hamburger {
  display: none;
  width: 30px;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
}

.hamburger span {
  height: 3px;
  background: #333;
  width: 100%;
  transition: 0.3s;
}

.hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}
.hamburger.open span:nth-child(2) {
  opacity: 0;
}
.hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile menu */
@media (max-width: 1023px) {
  .nav-menu {
    position: absolute;
    top: 70px;
    right: 0;
    background: white;
    width: 100%;
    flex-direction: column;
    padding: 20px;
    gap: 20px;
    display: none;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    justify-content: space-around;
  }

  .nav-menu.active {
    display: flex;
  }

  .hamburger {
    display: flex;
  }
  .nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
}

@media (max-width: 1100px) {
}
/* HERO SLIDER */
.hero-slider .item {
  height: 100vh;
  position: relative;
  overflow: hidden;
}

.slide-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transform: scale(1);
  transition: transform 3s ease-in-out;
  z-index: 1;
}

/* zoom only image, not text */
.hero-slider .owl-item.active .slide-bg {
  transform: scale(1.05);
}

/* Text styling */
.slide-text {
  position: absolute;
  bottom: 15%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: #fff;
  text-align: center;
  font-size: 38px;
  text-shadow: 0 3px 10px rgba(0, 0, 0, 0.6);
}
/* OWL DOTS (Number Style + Visible on Banner) */
.hero-slider .owl-dots {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 30; /* ensures visible above banner */
  display: flex;
  gap: 22px;
}

.hero-slider .owl-dot span {
  font-size: 18px;
  font-weight: 600;
  color: #ffffff;
  opacity: 0.5;
  transition: all 0.3s ease-in-out;
}

.hero-slider .owl-dot.active span {
  opacity: 1;
  transform: scale(1.4);
}

/* Luxury Section Base */
.luxury-section {
  position: relative;
  padding: 120px 0;
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
}

/* Center background content block */
.luxury-container {
  background: #d9f1e7;
  position: relative;
  padding: 60px;
  text-align: center;
  border-radius: 4px;
  max-width: 60%;
  display: flex;
  min-height: 50dvh;
}

/* Headings + Paragraphs */
.luxury-content h2 {
  font-family: "Roboto Condensed", sans-serif;
  font-size: 40px;
  font-weight: 700;
  color: #557d84;
  margin-bottom: 24px;
  line-height: 1.3;
}
.luxury-section h1 {
  font-size: 45px;
  color: #557d84;
}
.luxury-content {
  max-width: 65%;
  margin-left: auto;
  margin-right: auto;
}
.luxury-content p {
  font-family: "Poppins", sans-serif;
  font-size: 17px;
  color: #7a7a7a;
  line-height: 1.7;
  max-width: 850px;
  margin: 0 auto 18px;
}

/* Side Images */
.luxury-img {
  height: 300px;
  aspect-ratio: 4/5;
  border-radius: 4px;
  position: absolute;
  top: 30%;
  z-index: 10;
}
/* Side Images (start positions) */
.left-img,
.right-img,
.leaves-decoration {
  will-change: transform;
  transition: transform 0.5s linear;
}

/* Starting positions remain unchanged */
.left-img {
  top: 40%;
  left: -120px;
}

.right-img {
  top: 20%;
  right: -120px;
}
.city-right h2 {
  font-family: "Roboto Condensed", sans-serif !important;
}

.leaves-decoration {
  right: 40px;
  top: 80%;
  height: 200px;
  width: 100px;
}
/* Starting transform values for desktop animation */
.left-img {
  transform: translateX(-40%);
}

.right-img {
  transform: translateX(40%);
}

.leaves-decoration {
  transform: translateY(20%);
}
.iti {
  width: 100%;
}
@media (max-width: 768px) {
  .luxury-container {
    padding: 0px 18px !important;
    flex-direction: column !important;
    align-items: center !important;
    position: relative;
  }
  .logo {
    width: auto;
  }
  .luxury-img {
    position: relative !important;
    width: 85% !important;
    max-width: 320px !important;
    margin: 15px auto !important;
    height: auto !important;
    transition: transform 0.8s ease-out; /* allow movement */
  }

  .left-img {
    order: 1;
  }
  .luxury-content {
    order: 2;
    max-width: 100% !important;
    margin: 15px auto !important;
    padding: 0px 20px;
  }
  .right-img {
    order: 3;
  }

  .leaves-decoration {
    left: 10px !important;
    top: auto !important;
    margin-top: 10px !important;
    width: 80px !important;
    height: auto !important;
    transition: transform 1s ease-out;
  }
}
/* Smooth response to scroll */
.left-img,
.right-img,
.leaves-decoration {
  will-change: transform;
}

/* Mobile transform responsiveness without killing animation */
@media (max-width: 768px) {
  .luxury-img {
    transition: transform 0.15s linear !important;
  }
  .leaves-decoration {
    transition: transform 0.2s linear !important;
  }
}

/* IMAGE SCROLL TRANSFORM */
.left-img,
.right-img,
.leaves-decoration {
  transition: transform 1.2s ease-out;
  will-change: transform;
}

/* FIX DOT VISIBILITY + POSITION */
.hero-slider .owl-dots {
  position: absolute !important;
  bottom: 50px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  display: flex !important;
  gap: 22px;
  z-index: 9999 !important; /* higher than text & bg */
}

.hero-slider .owl-dot {
  background: none !important;
  outline: none !important;
}

.hero-slider .owl-dot span {
  font-size: 20px;
  font-weight: 700;
  color: white;
  opacity: 0.5;
  transition: all 0.3s ease-in-out;
}

.hero-slider .owl-dot.active span {
  opacity: 1;
  transform: scale(1.4);
}
.hero-slider .owl-dot span {
  font-size: 20px;
  font-weight: 700;
  color: white;
  opacity: 0.5;
  transition: all 0.3s ease-in-out;
}

.hero-slider .owl-dot.active span {
  opacity: 1;
  transform: scale(1.4);
}
.city-right {
  height: 55dvh;
}
@media (max-width: 767px) {
  .map-img {
    z-index: 5;
    background: none !important;
    outline: none !important;
    position: static;
    align-self: center;
  }
  .parkview-grid ul {
    width: 100%;
  }
  .city-right {
    object-fit: contain;
    height: 300px;
  }
  .luxury-section {
    padding: 0px;
  }
}
@media (min-width: 767px) {
  .map-img {
    z-index: 5;
    background: none !important;
    outline: none !important;
    position: absolute;
    left: 15%;
    align-self: center;
  }
}
.hero-slider .owl-dot span {
  font-size: 20px;
  font-weight: 700;
  color: white;
  opacity: 0.5;
  transition: all 0.3s ease-in-out;
}

.hero-slider .owl-dot.active span {
  opacity: 1;
  transform: scale(1.4);
}
/* Remove transition property for smooth continuous scroll sync on mobile */
@media (max-width: 768px) {
  .luxury-img,
  .leaves-decoration {
    will-change: transform;
    transition: transform 1.2s ease-out;
  }

  /* Ensure images start from proper positions */
  .left-img {
    left: 0 !important;
  }

  .right-img {
    right: 0 !important;
  }

  .leaves-decoration {
    left: 10px !important;
    top: auto !important;
    height: 200px !important;
  }
}
/* AMENITIES SECTION */
.amenities {
  display: flex;
  justify-content: center;
}
.amenities-section {
  padding: 120px 0;
  text-align: center;
  position: relative;
}

.amenities-header h2 {
  font-size: 45px;
  color: #557d84;
  font-family: "Roboto Condensed", sans-serif;
  margin-bottom: 10px;
}

.amenities-header p {
  margin: 0 auto 40px;
  font-size: 16px;
  color: #7a7a7a;
  line-height: 1.7;
}

.amenities-leaf {
  width: 70px;
  margin: 0 auto 20px;
  display: block;
}

.amenities-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  place-items: center;
  align-items: stretch;
}

.amenity-card {
  text-align: center;
  transition: transform 1.2s ease-out;
  will-change: transform;
  display: flex;
  justify-content: space-between;
  flex-direction: column;
  align-items: center;
}

.amenity-card img {
  width: 100%;
  margin-bottom: 12px;
  height: 200px;
}

.amenity-card h3 {
  font-size: 20px;
  color: #557d84;
  margin-bottom: 6px;
}

.amenity-card p {
  font-size: 15px;
  color: #7a7a7a;
  line-height: 1.5;
  padding-bottom: 10px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .amenities-section {
    padding: 70px 0;
  }

  .amenities-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 0 16px;
  }

  .amenity-card img {
    max-width: 330px;
  }
}
.amenities-leaf {
  will-change: transform;
  transition: none !important; /* Remove for continuous scroll sync */
}

/* Remove transition property for smooth continuous scroll sync on mobile */
@media (max-width: 768px) {
  .luxury-img,
  .leaves-decoration,
  .amenities-leaf {
    transition: none !important;
    will-change: transform;
  }

  /* Ensure images start from proper positions */
  .left-img {
    left: 0 !important;
  }

  .right-img {
    right: 0 !important;
  }

  .leaves-decoration {
    left: 10px !important;
    top: auto !important;
  }
}

/* CSS ADDITIONS FOR MOBILE ANIMATION */
/* Add these to your style.css file: */

/* Remove transition property for smooth continuous scroll sync */
@media (max-width: 768px) {
  .luxury-img,
  .leaves-decoration {
    transition: none !important;
    will-change: transform;
  }

  /* Ensure images start from off-screen positions */
  .left-img {
    left: 0 !important;
  }

  .right-img {
    right: 0 !important;
    padding-bottom: 20px;
  }

  .leaves-decoration {
    left: 10px !important;
    top: auto !important;
  }
}
/* GALLERY SECTION - ENHANCED CAROUSEL */
.gallery-section {
  padding: 80px 0;
  display: flex;
  justify-content: center;
}
.gallery-section .container {
  text-align: center;
  position: relative;
  display: flex;
  justify-content: center;
  padding-top: 80px;
  padding-bottom: 80px;
  flex-direction: column;
}
.gallery-header h2 {
  font-size: 40px;
  color: #557d84;
  font-family: "Roboto Condensed", sans-serif;
  margin-bottom: 12px;
}

.hallmark-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
}

.hallmark-text p {
  font-size: 16px;
  color: #7a7a7a;
  margin: 0;
}

.gallery-desc {
  max-width: 1550px;
  margin: 20px 50px;
  font-size: 17px;
  color: #7a7a7a;
  line-height: 1.65;
}

.gallery-logo {
  height: 45px;
  margin: 0;
}

/* Gallery Carousel */
.gallery-carousel {
  margin-bottom: 60px;
  padding: 0 40px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  cursor: pointer;
}

.gallery-item a {
  display: block;
  position: relative;
}

.gallery-item img {
  width: 100%;
  object-fit: contain;
  border-radius: 8px;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.08);
}

/* Overlay */
.gallery-overlay {
  bottom: 0;
  left: 0;
  right: 0;
  padding: 30px 20px 20px;
  transform: translateY(0);
  transition: all 0.4s ease;
}

.gallery-overlay h3 {
  font-size: 22px;
  font-weight: 700;
  color: #333333;
  margin: 0;
  font-family: "Poppins", sans-serif;
}

.gallery-item:hover .gallery-item img {
  background: linear-gradient(
    to top,
    rgba(85, 125, 132, 0.95) 0%,
    transparent 100%
  );
}

/* Owl Carousel Navigation */
.gallery-carousel .owl-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
  margin-top: 0;
}

.gallery-carousel .owl-nav button {
  pointer-events: all;
  background: none !important;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #557d84 !important;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.gallery-carousel .owl-nav button:hover {
  background: #557d84 !important;
  color: white !important;
  transform: scale(1.1);
}

.gallery-carousel .owl-nav button.owl-prev {
  margin-left: 45%;
  margin-top: 300px;
  border-top-right-radius: 40%;
  border-bottom-left-radius: 40%;
  display: none;
}

.gallery-carousel .owl-nav button.owl-next {
  margin-right: 45%;
  margin-top: 300px;
  border-top-left-radius: 40%;
  border-bottom-right-radius: 40%;
  display: none;
}
.gallery-carousel .owl-nav button.owl-next svg {
  justify-self: center;
}

.gallery-carousel .owl-nav button svg {
  width: 24px;
  height: 24px;
}

/* Owl Dots */
.gallery-carousel .owl-dots {
  margin-top: 30px;
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.gallery-carousel .owl-dot {
  width: 14px;
  height: 14px;
  border-bottom-left-radius: 0.35rem;
  background: rgba(85, 125, 132, 0.3) !important;
  transition: all 0.3s ease;
  border-top-right-radius: 0.35rem;
  border-top-left-radius: 0.1rem;
  border-bottom-right-radius: 0.1rem;
}
.gallery-carousel .owl-dot span {
  display: none !important;
}

.gallery-carousel .owl-dot.active,
.gallery-carousel .owl-dot:hover {
  background: #557d84 !important;
  transform: scale(1.3);
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .gallery-section {
    padding: 70px 0;
  }

  .gallery-header h2 {
    font-size: 32px;
  }

  .gallery-desc {
    font-size: 15px;
    padding: 0 20px;
  }

  .gallery-carousel {
    padding: 0 20px;
  }

  .gallery-carousel .owl-nav button {
    width: 40px;
    height: 40px;
  }

  .gallery-carousel .owl-nav button.owl-prev {
    margin-left: -20px;
  }

  .gallery-carousel .owl-nav button.owl-next {
    margin-right: 20px;
  }

  .gallery-overlay h3 {
    font-size: 18px;
  }

  .gallery-section .container {
    width: 90%;
  }
  .gallery-section .container {
    padding-top: 40px;
    padding-bottom: 40px;
  }
}

@media (max-width: 480px) {
  .gallery-carousel .owl-nav button {
    display: none;
  }
  .gallery-desc {
    font-size: 14px;
    padding: 0px;
    margin: 20px;
  }
}
.fancybox__container .fancybox__caption {
  text-align: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.85);
  color: white;
  font-size: 20px;
  font-family: "Roboto", sans-serif;
  font-weight: 500;
  position: relative;
  bottom: 0;
}

/* Fancybox Counter */
.fancybox__container .fancybox__counter {
  color: white;
  font-size: 16px;
  font-weight: 500;
}

/* Thumbnails styling */
.fancybox__container .fancybox__thumbs {
  background: rgba(0, 0, 0, 0.95);
  padding: 10px 0;
}

.fancybox__container .fancybox__thumb {
  opacity: 0.5;
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.fancybox__container .fancybox__thumb:hover,
.fancybox__container .fancybox__thumb.is-nav-selected {
  opacity: 1;
  border-color: #557d84;
}

/* Fullscreen button visible */
.fancybox__container .fancybox__button--fullscreen {
  display: block !important;
}
.site-footer a:hover {
  color: #ffffff !important;
}

.content {
  width: 100%;
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
  padding-top: 60px;
  padding-bottom: 60px;
  gap: 40px;
}
.content p {
  font-weight: 300;
  color: #557d84;
  margin-bottom: 15px;
}
@media (max-width: 768px) {
  .content {
    padding: 0px 20px;
  }
  .site-footer {
    text-align: center;
    padding: 30px 15px;
  }

  .gallery-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    text-align: center;
    margin-top: 80px;
    flex-wrap: wrap;
  }
}
.site-footer a:hover i {
  color: #ffffff !important;
  transform: scale(1.15);
  transition: 0.3s ease;
}
.gallery-leaves {
  width: 90px;
  margin: -120px auto 100px auto;
  display: block;
  will-change: transform;
  transition: transform 0.8s ease-out;
  z-index: 5;
}

.gallery-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  text-align: center;
  margin-top: 80px;
  flex-wrap: wrap;
}

.gallery-btn {
  padding: 12px 30px;
  margin: 0 10px;
  font-size: 16px;
  font-weight: 600;
  border: 2px solid #333;
  background: #fff;
  color: #333;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 5px;
}

.gallery-btn:hover {
  background: #333;
  color: #fff;
}

.gallery-btn.active {
  background: #333;
  color: #fff;
}

.gallery-section-wrapper {
  display: none;
}

.gallery-section-wrapper.visible {
  display: block;
}

.gallery-section {
  padding-top: 0px !important;
}
/* Dropdown base */
.nav-menu .dropdown {
  position: relative;
}

.nav-menu .dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: #ffffff;
  padding: 10px 0;
  min-width: 200px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  display: none;
  z-index: 999;
}

.nav-menu .dropdown-menu li a {
  display: block;
  padding: 10px 20px;
  color: #000;
  white-space: nowrap;
}

.nav-menu .dropdown-menu li a:hover {
  background: #f1f1f1;
}

/* Show on hover for desktop */
.nav-menu .dropdown:hover .dropdown-menu {
  display: block;
}

/* Mobile style: show under menu */
@media (max-width: 991px) {
  .nav-menu .dropdown-menu {
    position: static;
    box-shadow: none;
    background: #f7f7f7;
  }

  .nav-menu .dropdown .dropdown-menu a {
    padding-left: 40px;
  }
}
.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.accordion-item.active .accordion-content {
  max-height: 1500px;
}

.accordion-icon {
  transition: transform 0.3s ease;
}

.accordion-item.active .accordion-icon {
  transform: rotate(45deg);
}
@media (max-width: 1600px) {
  .container {
    max-width: 90% !important;
  }
}

@media (min-width: 768px) and (max-width: 1600px) {
  .luxury-container {
    max-width: 70% !important;
  }
}
@media (max-width: 400px) {
  .accordion-header {
    font-size: 16px !important;
  }
  .accordion-content td {
    font-size: 14px;
  }
}
@media (min-width: 1400px) {
  .luxury-container {
    min-height: 30vh;
  }
}
