/* Verdante Luxury Estates - Design System */
:root {
  /* Colors */
  --primary: #ffffff;
  --secondary: #111111;
  --accent: #2d5a27; /* Emerald Green */
  --accent-light: #4c8a41;
  --text-dark: #121212;
  --text-light: #f4f4f4;
  --gray-light: #f8f9fa;
  --gray-mid: #e9ecef;
  
  /* Typography */
  --font-main: 'Inter', sans-serif;
  --font-heading: 'Playfair Display', serif;
  
  /* Transitions */
  --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --shadow: 0 10px 30px rgba(0,0,0,0.08);
  --shadow-lg: 0 20px 50px rgba(0,0,0,0.15);
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: var(--font-main);
  background-color: var(--primary);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
  overscroll-behavior: none; /* App-like Scroll Lock */
  padding-bottom: constant(safe-area-inset-bottom);
  padding-bottom: env(safe-area-inset-bottom);
  -webkit-tap-highlight-color: transparent;
  opacity: 0;
  transition: opacity 0.8s ease;
}

body.sidebar-active {
  overflow: hidden;
  height: 100vh;
  height: 100dvh;
}

body.page-loaded {
  opacity: 1;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.02em;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
}

@media (max-width: 768px) {
  .container {
    padding: 0 20px;
  }
}

/* Sections */
section {
  padding: 100px 0;
}

/* Header & Nav */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 20px 0;
  transition: var(--transition);
}

header.scrolled {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  padding: 15px 0;
  box-shadow: 0 2px 20px rgba(0,0,0,0.05);
}

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

.logo {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.logo span {
  color: var(--accent);
}

.nav-links {
  display: flex;
  gap: 40px;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.nav-links a:hover {
  color: var(--accent);
}

/* Sidebar Hamburger Menu */
.hamburger-menu {
  display: none;
}

.sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

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

.sidebar-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 400px;
  max-width: 90vw;
  height: 100vh;
  height: 100dvh;
  background: rgba(17, 17, 17, 0.98); /* Dark Sleek Background */
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  color: var(--primary);
  z-index: 1001;
  transition: right 0.5s cubic-bezier(0.77, 0, 0.175, 1);
  display: flex;
  flex-direction: column;
  box-shadow: -20px 0 50px rgba(0,0,0,0.3);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.sidebar-menu.active {
  right: 0;
}

.sidebar-close {
  position: absolute;
  top: 30px;
  right: 30px;
  font-size: 24px;
  color: rgba(255,255,255,0.8);
  cursor: pointer;
  transition: var(--transition);
}

.sidebar-close:hover {
  color: var(--accent);
  transform: rotate(90deg);
}

.sidebar-content {
  padding: 100px 40px;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  padding-top: calc(80px + env(safe-area-inset-top));
  padding-bottom: calc(40px + env(safe-area-inset-bottom));
}

.sidebar-logo {
  font-family: var(--font-heading);
  font-size: 32px;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 50px;
}
.sidebar-logo span {
  color: var(--accent);
}

.sidebar-links {
  list-style: none;
  flex-grow: 1;
}

.sidebar-links li {
  margin-bottom: 25px;
}

.sidebar-links a {
  font-family: var(--font-heading);
  font-size: 24px;
  color: rgba(255,255,255,0.9);
  transition: var(--transition);
  display: block;
  user-select: none;
}

.sidebar-links a:active {
  opacity: 0.6;
  transform: scale(0.98);
}

.sidebar-links a:hover {
  color: var(--accent);
  padding-left: 10px;
}

.sidebar-footer {
  border-top: 1px solid #ddd;
  padding-top: 30px;
}

.sidebar-footer p {
  color: var(--secondary);
  margin-bottom: 15px;
}

.sidebar-socials a {
  color: var(--primary);
  font-size: 20px;
  margin-right: 15px;
  transition: var(--transition);
}
.sidebar-socials a:hover {
  color: var(--accent);
}

/* Hero Section */
.hero {
  height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  overflow: hidden;
}

.hero-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  filter: brightness(0.7);
}

.hero-content {
  text-align: center;
  max-width: 900px;
  z-index: 1;
}

.hero h1 {
  font-size: 80px;
  margin-bottom: 20px;
  line-height: 1.1;
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 38px;
    margin-bottom: 15px;
  }
  .hero p {
    font-size: 16px;
    margin-bottom: 30px;
  }
}

.hero p {
  font-size: 20px;
  margin-bottom: 40px;
  font-weight: 300;
  letter-spacing: 1px;
}

.btn {
  display: inline-block;
  padding: 18px 45px;
  background: var(--accent);
  color: var(--primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 14px;
  border: none;
  transition: var(--transition);
  cursor: pointer;
  user-select: none;
}

.btn:hover {
  background: var(--secondary);
  transform: translateY(-5px);
}

.btn:active {
  transform: translateY(0) scale(0.96);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--primary);
  margin-left: 20px;
}

.btn-outline:hover {
  background: var(--primary);
  color: var(--secondary);
}

/* Featured Properties */
.section-title {
  text-align: center;
  margin-bottom: 60px;
}

.section-title p {
  color: #666;
  font-size: 18px;
  max-width: 600px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .section-title h2 {
    font-size: 32px;
  }
  .section-title p {
    font-size: 16px;
  }
}


/* ========================
   MODERN PROPERTY CONTROLS
   ======================== */
.property-controls {
  margin-top: -20px;
  margin-bottom: 60px;
  background: #fff;
  padding: 45px;
  border-radius: 30px;
  border: 1px solid rgba(45, 90, 39, 0.1);
  box-shadow: 0 20px 60px rgba(0,0,0,0.04);
  position: relative;
  z-index: 100;
}

@media (max-width: 768px) {
  .property-controls {
    padding: 25px 20px;
    margin-top: 0;
    border-radius: 15px;
  }
  .search-box i {
    left: 20px;
    font-size: 18px;
  }
  #propertySearch {
    padding: 15px 20px 15px 55px;
    font-size: 15px;
  }
}

.search-box {
  position: relative;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.search-box i {
  position: absolute;
  left: 28px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent);
  font-size: 22px;
  z-index: 5;
}

#propertySearch {
  width: 100%;
  padding: 24px 35px 24px 75px;
  border-radius: 100px;
  border: 1px solid #eee;
  background: #fcfcfc;
  font-family: var(--font-main);
  font-size: 17px;
  color: var(--primary);
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

#propertySearch:focus {
  background: #fff;
  border-color: var(--accent);
  box-shadow: 0 15px 40px rgba(45, 90, 39, 0.12), 0 0 0 6px rgba(45, 90, 39, 0.05);
  outline: none;
  transform: translateY(-3px);
}

#propertySearch::placeholder {
  color: #aaa;
  font-weight: 300;
}

.filter-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

.filter-tabs {
  background: var(--gray-mid);
  padding: 8px;
  border-radius: 100px;
  display: inline-flex;
  gap: 8px;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.03);
}

.filter-tab {
  padding: 12px 30px !important;
  font-size: 13px !important;
  border-radius: 100px !important;
  background: transparent !important;
  color: #777 !important;
  border: none !important;
  text-transform: uppercase !important;
  letter-spacing: 1.5px !important;
  font-weight: 700 !important;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.filter-tab:hover {
  color: var(--accent) !important;
}

.filter-tab.active {
  background: var(--accent) !important;
  color: #fff !important;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1) !important;
}

.view-toggles {
  display: flex;
  gap: 15px;
  background: #f0f0f0;
  padding: 8px;
  border-radius: 100px;
}

.view-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: #999;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.view-btn.active {
  background: #fff;
  color: var(--accent);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.map-view-container {
  margin-top: -40px;
  margin-bottom: 70px;
  border-radius: 30px;
  overflow: hidden;
  border: 1px solid var(--gray-mid);
  box-shadow: var(--shadow);
}

#propertyMap {
  width: 100%;
  height: 600px;
  z-index: 10;
}

.property-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

@media (max-width: 768px) {
  .property-grid {
    grid-template-columns: 1fr;
  }
}

.property-card {
  background: var(--primary);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: var(--transition);
  cursor: pointer;
}

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

.property-card:active {
  transform: translateY(-5px) scale(0.98);
}

.property-img-wrapper {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  position: relative;
}

@media (max-width: 600px) {
  .property-img-wrapper {
    aspect-ratio: 16 / 11;
  }
}

.property-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.property-card:hover .property-img {
  scale: 1.1;
}

.property-tag {
  position: absolute;
  top: 20px;
  left: 20px;
  background: var(--accent);
  color: var(--primary);
  padding: 5px 15px;
  font-size: 12px;
  text-transform: uppercase;
  font-weight: 600;
}

.property-info {
  padding: 30px;
}

.property-price {
  font-size: 24px;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 10px;
  font-family: var(--font-heading);
}

.property-title {
  font-size: 20px;
  margin-bottom: 10px;
}

.property-address {
  color: #777;
  font-size: 14px;
  margin-bottom: 20px;
}

.property-features {
  display: flex;
  gap: 20px;
  border-top: 1px solid var(--gray-mid);
  padding-top: 20px;
  font-size: 14px;
  color: #555;
}

.property-features span b {
  color: var(--secondary);
}

/* Why Choose Us Section */
.why-choose-us {
  background: var(--primary);
  padding: 100px 0;
  border-top: 1px solid var(--gray-mid);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
}

.feature-card {
  background: var(--gray-light);
  padding: 50px 40px;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.03);
  transition: var(--transition);
  border: 1px solid transparent;
}

.feature-card:hover {
  transform: translateY(-10px);
  background: #fff;
  box-shadow: var(--shadow-lg);
  border-color: rgba(45, 90, 39, 0.2);
}

.feature-icon {
  width: 80px;
  height: 80px;
  background: rgba(45, 90, 39, 0.08);
  color: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  margin: 0 auto 25px;
  transition: var(--transition);
}

.feature-card:hover .feature-icon {
  background: var(--accent);
  color: var(--primary);
  transform: scale(1.1) rotate(5deg);
}

.feature-card h3 {
  font-size: 24px;
  margin-bottom: 15px;
  font-family: var(--font-heading);
}

.feature-card p {
  color: #666;
  font-size: 16px;
  line-height: 1.7;
}

/* Typed.js Specific Overrides */
.hero-content h1 span.typed-text {
  color: #ffffff;
}
.typed-cursor {
  color: var(--accent);
  font-weight: 300;
}

/* Featured Neighborhoods */
.neighborhoods {
  background: var(--gray-light);
}

.neighborhoods-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.neighborhood-card {
  position: relative;
  height: 400px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.neighborhood-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.neighborhood-card:hover img {
  transform: scale(1.1);
}

.neighborhood-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 40px;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
  color: #fff;
  transition: var(--transition);
}

.neighborhood-overlay h3 {
  font-size: 28px;
  margin-bottom: 10px;
}

.neighborhood-overlay p {
  font-size: 14px;
  margin-bottom: 20px;
  opacity: 0.8;
}

/* Instagram Feed */
.instagram-feed {
  background: #fff;
}

.ig-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}

.ig-item {
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 10px;
}

.ig-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
  filter: brightness(0.9);
}

.ig-item:hover img {
  filter: brightness(1.1);
  transform: scale(1.05);
}

@media (max-width: 768px) {
  .ig-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* About Section */
.about {
  background: var(--gray-light);
}

.about-flex {
  display: flex;
  align-items: center;
  gap: 80px;
}

@media (max-width: 992px) {
  .about-flex {
    flex-direction: column;
    gap: 40px;
  }
  .about-content h2 {
    font-size: 32px;
  }
}

.about-img {
  flex: 1;
  position: relative;
}

.about-img::after {
  content: '';
  position: absolute;
  top: 20px;
  left: 20px;
  width: 100%;
  height: 100%;
  border: 4px solid var(--accent);
  z-index: -1;
}

.about-content {
  flex: 1.2;
}

.about-content h2 {
  font-size: 45px;
  margin-bottom: 30px;
}

.about-content p {
  font-size: 18px;
  color: #555;
  margin-bottom: 30px;
}

/* Interior Showcase */
.lifestyle-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.lifestyle-item {
  position: relative;
  height: 500px;
  overflow: hidden;
}

.lifestyle-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.lifestyle-item:hover img {
  scale: 1.05;
}

.lifestyle-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 40px;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  color: var(--primary);
}

/* Testimonials Slider */
.testimonials {
  background: var(--secondary);
  color: var(--primary);
  text-align: center;
  padding: 120px 0;
}

.testimonials-slider {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 30px;
  padding: 20px 0;
  scrollbar-width: none; /* Hide scrollbar for Firefox */
  -ms-overflow-style: none; /* Hide scrollbar for IE/Edge */
}

.testimonials-slider::-webkit-scrollbar {
  display: none; /* Hide scrollbar for Chrome/Safari */
}

.testimonials-slider .testimonial-card {
  flex: 0 0 100%;
  scroll-snap-align: center;
  max-width: 800px;
  margin: 0 auto;
  background: rgba(255,255,255,0.03);
  padding: 60px 40px;
  border-radius: 30px;
  border: 1px solid rgba(255,255,255,0.1);
  transition: var(--transition);
}

.testimonial-text {
  font-family: var(--font-heading);
  font-size: 28px;
  line-height: 1.5;
  font-style: italic;
  margin-bottom: 40px;
  color: #fff;
}

.testimonial-info {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.testimonial-info img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent);
}

.testimonial-info div {
  text-align: left;
}

.testimonial-info strong {
  display: block;
  font-size: 18px;
  color: var(--accent);
}

.testimonial-info span {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
}

@media (max-width: 768px) {
  .testimonial-text {
    font-size: 22px;
  }
}

/* Premium Contact Section */
.premium-contact {
  background: var(--secondary);
  color: var(--primary);
  padding: 120px 0;
  position: relative;
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 0;
  background: #151515;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 40px 100px rgba(0,0,0,0.5);
  border: 1px solid rgba(255,255,255,0.05);
}

@media (max-width: 992px) {
  .contact-wrapper {
    grid-template-columns: 1fr;
  }
  .contact-info {
    padding: 50px 30px;
  }
  .contact-info h2 {
    font-size: 32px;
  }
  .contact-form-container {
    padding: 40px 30px;
  }
}

.contact-info {
  padding: 70px 50px;
  background: linear-gradient(135deg, rgba(45, 90, 39, 0.4), rgba(17, 17, 17, 1));
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-info h2 {
  font-size: 55px;
  line-height: 1.1;
  margin-bottom: 25px;
}

.contact-info p {
  color: rgba(255,255,255,0.6);
  font-size: 17px;
  margin-bottom: 60px;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 35px;
}

.method-item {
  display: flex;
  align-items: center;
  gap: 25px;
}

.method-item i {
  font-size: 22px;
  color: var(--accent);
  width: 60px;
  height: 60px;
  background: rgba(255,255,255,0.03);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(45, 90, 39, 0.2);
}

.method-item h4 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 5px;
  font-family: var(--font-main);
  color: rgba(255,255,255,0.4);
}

.method-item p {
  margin: 0;
  font-size: 20px;
  color: var(--primary);
}

.contact-form-container {
  padding: 70px 60px;
}

.contact-form-container h3 {
  font-size: 36px;
  margin-bottom: 40px;
  color: var(--primary);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
}

.input-group {
  margin-bottom: 30px;
  position: relative;
}

.input-group label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: rgba(255,255,255,0.3);
  margin-bottom: 12px;
}

.input-group input,
.input-group textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 2px solid rgba(255,255,255,0.05);
  padding: 10px 0 15px;
  color: var(--primary);
  font-size: 18px;
  font-family: var(--font-main);
  transition: var(--transition);
}

.input-group input:focus,
.input-group textarea:focus {
  outline: none;
  border-bottom-color: var(--accent);
}

.input-group input::placeholder,
.input-group textarea::placeholder {
  color: rgba(255,255,255,0.15);
}

.premium-btn {
  width: 100%;
  padding: 22px;
  font-size: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
  background: var(--primary);
  color: var(--secondary);
  border-radius: 15px;
}

.premium-btn:hover {
  background: var(--accent);
  color: var(--primary);
}

@media (max-width: 900px) {
  .contact-wrapper {
    grid-template-columns: 1fr;
  }
  .contact-info, .contact-form-container {
    padding: 40px 25px;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .contact-info h2 {
    font-size: 40px;
  }
}

/* Footer */
footer {
  background: var(--primary);
  padding: 80px 0 30px;
  border-top: 1px solid var(--gray-mid);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 60px;
  margin-bottom: 60px;
}

.footer-logo {
  font-family: var(--font-heading);
  font-size: 28px;
  margin-bottom: 20px;
}

.footer-logo span {
  color: var(--accent);
}

.footer-about {
  color: #666;
  margin-bottom: 30px;
}

.footer-links h4 {
  margin-bottom: 25px;
  font-size: 18px;
  color: var(--secondary);
}

.footer-links ul li {
  margin-bottom: 15px;
}

.footer-links ul li a:hover {
  color: var(--accent);
  padding-left: 5px;
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid var(--gray-mid);
  color: #999;
  font-size: 14px;
}

/* Mobile Responsiveness */
/* Partnership Section */
.partners {
  padding: 60px 0;
  background: var(--primary);
  border-top: 1px solid var(--gray-mid);
  border-bottom: 1px solid var(--gray-mid);
}

.partner-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 30px;
  opacity: 0.6;
}

.partner-item {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #777;
  transition: var(--transition);
}

.partner-item:hover {
  color: var(--accent);
  opacity: 1;
}

/* Mobile Bottom Navigation */
/* Retired Mobile Bottom Nav Styles Removed for Parity */

/* Floating Contact Button */
.floating-contact {
  position: fixed;
  bottom: 100px;
  right: 30px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 15px;
  transition: var(--transition);
}

.float-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 24px;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  transition: var(--transition);
  border: none;
  text-decoration: none;
}

.float-btn:hover {
  transform: translateY(-5px) scale(1.05);
}

.float-whatsapp {
  background: #25d366;
}

.float-inquiry {
  background: var(--accent);
}

/* Animations Reveal */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 600px) {
  section { padding: 60px 0; }
  .hero h1 { font-size: 40px; }
  .container { padding: 0 20px; }
  .nav-links { display: none; }
  
  /* Hide desktop header button on mobile to avoid overlap */
  header .btn { display: none; }
  
  /* Show mobile nav */
  .mobile-nav { display: flex; }
  
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { padding-bottom: 100px; } /* Space for bottom nav */
  .partner-flex { justify-content: center; text-align: center; }

  .floating-contact {
    bottom: 110px;
    right: 20px;
  }
  
  .float-btn {
    width: 50px;
    height: 50px;
    font-size: 20px;
  }
}


/* Toast Notifications */
.toast {
  position: fixed;
  top: 30px;
  right: 30px;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 25px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.2);
  animation: toastSlideIn 0.5s cubic-bezier(0.16, 1, 0.3, 1),
             toastFadeOut 0.5s 5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  max-width: 450px;
}

.toast i {
  font-size: 20px;
  flex-shrink: 0;
}

.toast-success {
  background: rgba(45, 90, 39, 0.92);
  border: 1px solid rgba(76, 138, 65, 0.4);
}

.toast-error {
  background: rgba(180, 40, 40, 0.92);
  border: 1px solid rgba(220, 80, 80, 0.4);
}

.toast-close {
  background: none;
  border: none;
  color: rgba(255,255,255,0.7);
  font-size: 22px;
  cursor: pointer;
  padding: 0 0 0 10px;
  line-height: 1;
  transition: color 0.2s;
}

.toast-close:hover {
  color: #fff;
}

@keyframes toastSlideIn {
  from { transform: translateX(100px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes toastFadeOut {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(-20px); pointer-events: none; }
}

/* Form Input Focus States */
#inquiry-form input:focus,
#inquiry-form textarea:focus {
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 3px rgba(45, 90, 39, 0.1);
  transition: all 0.3s ease;
}

#inquiry-form input,
#inquiry-form textarea {
  font-family: var(--font-main);
  font-size: 14px;
  border-radius: 4px;
  transition: all 0.3s ease;
}

#inquiry-form button[type="submit"] {
  width: 100%;
}

@media (max-width: 600px) {
  .toast {
    left: 15px;
    right: 15px;
    top: 15px;
    max-width: none;
  }
}

/* ========================
   FILTER TABS
   ======================== */
.filter-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 50px;
  overflow-x: auto;
  padding: 10px 0;
  scrollbar-width: none; /* Hide scrollbar for clean look */
  -ms-overflow-style: none;
}

.filter-tabs::-webkit-scrollbar {
  display: none;
}

.filter-tab {
  padding: 12px 25px;
  border: 1px solid var(--gray-mid);
  background: var(--primary);
  font-family: var(--font-main);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  cursor: pointer;
  transition: var(--transition);
  color: #666;
  border-radius: 50px; /* Pill design */
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

.filter-tab:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

.filter-tab.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 8px 20px rgba(45, 90, 39, 0.2);
}

/* Property Card as Link */
a.property-card {
  text-decoration: none;
  color: inherit;
  display: block;
}

.property-view-btn {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 15px;
  background: rgba(45, 90, 39, 0.9);
  color: #fff;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transform: translateY(100%);
  transition: var(--transition);
}

.property-card:hover .property-view-btn {
  transform: translateY(0);
}

/* Property card hide/show for filter */
.property-card.filter-hidden {
  display: none;
}

/* ========================
   PROPERTY DETAIL PAGE
   ======================== */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 25px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.back-link:hover {
  color: var(--secondary);
}

/* Gallery */
.gallery-wrapper {
  margin-bottom: 20px;
}

.gallery-main {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  height: 550px;
  cursor: pointer;
}

.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

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

.gallery-tag {
  position: absolute;
  top: 20px;
  left: 20px;
  background: var(--accent);
  color: #fff;
  padding: 8px 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 6px;
  z-index: 2;
}

.gallery-expand {
  position: absolute;
  bottom: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(10px);
  color: #fff;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-size: 18px;
  z-index: 2;
  transition: var(--transition);
}

.gallery-expand:hover {
  background: var(--accent);
  transform: scale(1.1);
}

.gallery-thumbs {
  display: flex;
  gap: 10px;
  margin-top: 10px;
  overflow-x: auto;
  padding-bottom: 5px;
}

.gallery-thumb {
  flex: 0 0 110px;
  height: 80px;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  opacity: 0.5;
  transition: var(--transition);
  border: 3px solid transparent;
}

.gallery-thumb.active {
  opacity: 1;
  border-color: var(--accent);
}

.gallery-thumb:hover {
  opacity: 0.8;
}

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

/* Property Detail Info */
.prop-detail-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 60px;
  align-items: start;
}

.prop-detail-price {
  font-family: var(--font-heading);
  font-size: 36px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 10px;
}

.prop-detail-title {
  font-size: 38px;
  margin-bottom: 10px;
  line-height: 1.2;
}

.prop-detail-address {
  color: #777;
  font-size: 16px;
  margin-bottom: 30px;
}

.prop-detail-address i {
  color: var(--accent);
  margin-right: 8px;
}

.prop-detail-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  margin-bottom: 40px;
}

.feature-box {
  padding: 15px;
  background: var(--gray-light);
  border-radius: 12px;
  text-align: center;
  border: 1px solid var(--gray-mid);
}

.feature-box i {
  font-size: 18px;
  color: var(--accent);
  margin-bottom: 8px;
}

.feature-box strong {
  display: block;
  font-size: 18px;
  font-family: var(--font-heading);
}

.feature-box span {
  font-size: 11px;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.prop-detail-desc h2 {
  font-size: 28px;
  margin-bottom: 20px;
}

.prop-detail-desc p {
  font-size: 17px;
  color: #555;
  line-height: 1.8;
}

/* Sidebar */
.inquiry-card {
  background: var(--gray-light);
  border-radius: 16px;
  padding: 35px;
  position: sticky;
  top: 100px;
}

.inquiry-card h3 {
  font-size: 22px;
  margin-bottom: 8px;
}

.inquiry-card > p {
  color: #777;
  font-size: 14px;
  margin-bottom: 25px;
}

.agent-card {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 25px;
  padding-top: 25px;
  border-top: 1px solid #ddd;
}

.agent-avatar {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  object-fit: cover;
  filter: grayscale(1);
}

.agent-card strong {
  display: block;
  font-size: 14px;
}

.agent-card span {
  display: block;
  font-size: 12px;
  color: #999;
}

/* ========================
   LIGHTBOX
   ======================== */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.95);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.lightbox.active {
  opacity: 1;
  pointer-events: all;
}

.lightbox-content {
  max-width: 90vw;
  max-height: 85vh;
  text-align: center;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 8px;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  background: none;
  border: none;
  color: #fff;
  font-size: 40px;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s;
  z-index: 10;
}

.lightbox-close:hover {
  opacity: 1;
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  border: none;
  color: #fff;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  transition: var(--transition);
  z-index: 10;
}

.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

.lightbox-prev:hover,
.lightbox-next:hover {
  background: var(--accent);
}

.lightbox-caption {
  color: rgba(255,255,255,0.7);
  margin-top: 15px;
  font-size: 14px;
}

.lightbox-counter {
  color: rgba(255,255,255,0.4);
  font-size: 13px;
  margin-top: 5px;
}

/* ========================
   DETAIL PAGE RESPONSIVE
   ======================== */
@media (max-width: 992px) {
  .prop-detail-grid { grid-template-columns: 1fr; gap: 40px; }
  .prop-detail-features { grid-template-columns: repeat(2, 1fr); }
  .gallery-main { height: 400px; }
}

@media (max-width: 768px) {
  .gallery-main { height: 280px; }
  .prop-detail-title { font-size: 28px; }
  .prop-detail-price { font-size: 28px; }
  .prop-detail-features { 
    grid-template-columns: repeat(2, 1fr); 
    gap: 10px;
  }
  .prop-detail-desc p {
    font-size: 16px;
  }
  .inquiry-card {
    padding: 25px 20px;
    position: relative;
    top: 0;
  }
  .prop-location-section {
    padding: 40px 0;
  }
  #detailMap {
    height: 300px !important;
  }
  .filter-tabs { 
    padding: 10px 20px; 
    justify-content: flex-start;
  }
  .filter-tab { padding: 10px 20px; font-size: 11px; }

  /* Gallery Swipe Hint */
  .gallery-thumbs {
    padding-left: 5px;
  }
  .gallery-thumb {
    flex: 0 0 90px;
    height: 65px;
  }

  /* Sticky CTA for detail page */
  .detail-sticky-cta {
    position: fixed;
    bottom: 100px; /* Above mobile nav */
    left: 20px;
    right: 20px;
    z-index: 1500;
    display: block !important;
    animation: fadeIn 0.5s 1s both;
  }

  /* Hamburger Menu Visibility */
  .nav-links, .desktop-btn {
    display: none !important;
  }
  .hamburger-menu {
    display: block !important;
  }
  
  .sidebar-menu {
    width: 320px;
  }
  .sidebar-content {
    padding: 60px 40px;
  }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ========================
   ELITE PROPERTY CONTROLS
   ======================== */
.property-controls {
  padding: 30px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  margin-bottom: 40px;
}

.search-box {
  position: relative;
  max-width: 600px;
  margin: 0 auto 20px;
}

#propertySearch {
  width: 100%;
  padding: 15px 25px;
  border: 2px solid #eee;
  border-radius: 50px;
  transition: all 0.3s ease;
}

#propertySearch:focus {
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 0 10px rgba(var(--accent-rgb), 0.2);
}

.view-toggles {
  display: flex;
  justify-content: center;
  gap: 10px;
}
