:root {
  --primary: #0a7160;
  --primary-light: #0d9488;
  --primary-dark: #065f52;
  --accent: #f59e0b;
  --accent-hover: #d97706;
  --bg-light: #f0fdf9;
  --text: #1f2937;
  --text-muted: #6b7280;
  --white: #ffffff;
  --shadow: 0 4px 20px rgba(10, 113, 96, 0.08);
  --shadow-hover: 0 12px 40px rgba(10, 113, 96, 0.15);
  --radius: 12px;
  --radius-lg: 16px;
  --transition: 0.25s ease;
}

* {
  scroll-behavior: smooth;
}

html {
  font-size: 16px;
  position: relative;
  min-height: 100%;
}

@media (min-width: 768px) {
  html {
    font-size: 17px;
  }
}

body {
  margin: 0;
  font-family: "Be Vietnam Pro", "Segoe UI", system-ui, sans-serif;
  color: var(--text);
  background: var(--white);
  padding-bottom: 0;
}

/* ===== Header ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1040;
  box-shadow: var(--shadow);
  width: 100%;
}

.top-bar {
  background: var(--primary);
  color: var(--white);
  padding: 0.5rem 0;
  font-size: 0.875rem;
}

.top-bar {
  background: var(--primary);
  color: var(--white);
  padding: 0.5rem 0;
  font-size: 0.875rem;
}

/* Hide top-bar on mobile/tablet */
@media (max-width: 991.98px) {
  .top-bar {
    display: none;
  }
}

.top-bar-text {
  opacity: 0.95;
}

.top-bar-phone {
  color: var(--white) !important;
  text-decoration: none !important;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  transition: opacity var(--transition);
}

.top-bar-phone:hover {
  opacity: 0.9;
  color: var(--white) !important;
}

.zalo-badge {
  background: var(--accent);
  color: #1f2937;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
}

/* ===== Modern Navbar with Glassmorphism ===== */
.navbar-main {
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 0.75rem 0;
  transition: all 0.3s ease;
  border-bottom: 1px solid rgba(10, 113, 96, 0.08);
  position: relative;
  width: 100%;
}

.navbar-main.scrolled {
  background: rgba(255, 255, 255, 0.98) !important;
  box-shadow: 0 4px 30px rgba(10, 113, 96, 0.12);
  padding: 0.5rem 0;
}

/* Brand Styles */
.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.navbar-brand {
  padding: 0;
  margin: 0;
  text-decoration: none !important;
}

.brand-icon {
  width: 45px;
  height: 45px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--white);
  box-shadow: 0 4px 15px rgba(10, 113, 96, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.navbar-brand:hover .brand-icon {
  transform: translateY(-2px) rotate(-5deg);
  box-shadow: 0 6px 20px rgba(10, 113, 96, 0.4);
}

.brand-text-wrapper {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-text {
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--primary);
  letter-spacing: -0.5px;
}

.brand-tagline {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Navigation Links */
.navbar-nav {
  align-items: center;
  gap: 0.25rem;
}

.nav-item {
  position: relative;
}

.navbar-main .nav-link {
  color: var(--text) !important;
  font-weight: 600;
  padding: 0.6rem 1rem !important;
  border-radius: 10px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
  overflow: hidden;
}

.nav-icon {
  font-size: 1.1rem;
  transition: transform 0.3s ease;
}

.navbar-main .nav-link:hover .nav-icon {
  transform: translateY(-2px);
}

/* Underline animation effect */
.navbar-main .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateX(-50%);
  border-radius: 2px;
}

.navbar-main .nav-link:hover::after,
.navbar-main .nav-link.active::after {
  width: 60%;
}

.navbar-main .nav-link:hover,
.navbar-main .nav-link.active {
  color: var(--primary) !important;
  background: rgba(10, 113, 96, 0.06);
}

/* CTA Button */
.nav-item-cta {
  margin-left: 0.5rem;
}

.nav-cta {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%) !important;
  color: var(--white) !important;
  border-radius: 50px !important;
  padding: 0.6rem 1.25rem !important;
  box-shadow: 0 4px 15px rgba(10, 113, 96, 0.3);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  position: relative;
  overflow: hidden;
}

.nav-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.nav-cta:hover::before {
  left: 100%;
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(10, 113, 96, 0.4) !important;
  color: var(--white) !important;
}

.cta-icon {
  font-size: 1rem;
}

.cta-arrow {
  margin-left: 0.25rem;
  transition: transform 0.3s ease;
}

.nav-cta:hover .cta-arrow {
  transform: translateX(4px);
}

/* Modern Toggle Button */
.navbar-toggler {
  border: none !important;
  padding: 0;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(10, 113, 96, 0.08) !important;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.navbar-toggler:focus {
  box-shadow: none !important;
}

.toggler-icon {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--primary);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.3s ease;
}

.toggler-icon::before,
.toggler-icon::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 2px;
  background: var(--primary);
  left: 50%;
  transform: translateX(-50%);
  transition: all 0.3s ease;
}

.toggler-icon::before {
  top: -8px;
}

.toggler-icon::after {
  top: 8px;
}

.navbar-toggler[aria-expanded="true"] .toggler-icon {
  background: transparent;
}

.navbar-toggler[aria-expanded="true"] .toggler-icon::before {
  top: 0;
  transform: translateX(-50%) rotate(45deg);
}

.navbar-toggler[aria-expanded="true"] .toggler-icon::after {
  top: 0;
  transform: translateX(-50%) rotate(-45deg);
}

/* Mobile Menu - Full Screen Overlay */
@media (max-width: 991.98px) {
  .navbar-collapse {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    min-height: 100vh !important;
    max-height: 100vh !important;
    background: #ffffff !important;
    border-radius: 0 !important;
    margin: 0 !important;
    padding: 100px 2rem 2rem !important;
    box-shadow: none !important;
    border: none !important;
    z-index: 9999 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    align-items: center !important;
    overflow-y: auto !important;
    opacity: 0;
    visibility: hidden;
    transform: translateX(100%);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    pointer-events: none;
  }

  .navbar-collapse.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    pointer-events: auto;
  }

  .navbar-collapse.collapsing {
    display: flex !important;
    position: fixed !important;
    background: #ffffff !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 9999 !important;
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
  }

  .navbar-nav {
    gap: 0.75rem;
    width: 100%;
    max-width: 400px;
    align-items: stretch;
  }

  .nav-item {
    width: 100%;
    text-align: center;
  }

  .navbar-main .nav-link {
    padding: 1rem 1.5rem !important;
    border-radius: 12px;
    justify-content: center;
    font-size: 1.1rem;
  }

  .nav-icon {
    font-size: 1.25rem;
  }

  .nav-item-cta {
    margin-left: 0;
    margin-top: 1rem;
  }

  .nav-cta {
    justify-content: center;
    padding: 1rem 1.5rem !important;
  }

  /* Ensure toggle button and brand stay on top */
  .navbar-toggler {
    z-index: 10000 !important;
    position: relative;
  }

  .navbar-brand {
    z-index: 10000 !important;
    position: relative;
  }

  .brand-text {
    font-size: 1rem;
  }

  .brand-tagline {
    display: none;
  }

  /* Hide top bar on mobile */
  .top-bar {
    display: none;
  }
}

/* ===== Hero ===== */
/* ===== HERO SECTION ===== */

/* ===== Hero Carousel ===== */
.hero-carousel {
  position: relative;
  height: 70vh;
  min-height: 500px;
  max-height: 800px;
}

.hero-carousel .carousel-inner,
.hero-carousel .carousel-item {
  height: 100%;
}

/* Slide Image Wrapper */
.slide-image-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.slide-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 6s ease;
}

.carousel-item.active .slide-image {
  transform: scale(1.05);
}

.slide-link {
  display: block;
  width: 100%;
  height: 100%;
}

/* Overlay Gradient */
.slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right,
      rgba(0, 0, 0, 0.7) 0%,
      rgba(0, 0, 0, 0.4) 50%,
      rgba(0, 0, 0, 0.2) 100%);
  z-index: 1;
}

/* Carousel Indicators */
.hero-carousel .carousel-indicators {
  bottom: 20px;
  gap: 8px;
}

.hero-carousel .carousel-indicators button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.4);
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.hero-carousel .carousel-indicators button.active {
  background-color: var(--primary);
  border-color: var(--white);
  transform: scale(1.2);
}

.hero-carousel .carousel-indicators button:hover {
  background-color: rgba(255, 255, 255, 0.8);
}

/* Caption */
.hero-carousel .carousel-caption {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  bottom: auto;
  text-align: left;
  z-index: 2;
  padding: 0 5%;
}

.caption-content {
  max-width: 600px;
  animation: fadeInUp 0.8s ease;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Slide Title */
.slide-title {
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1rem;
  line-height: 1.2;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Slide Subtitle */
.slide-subtitle {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
  line-height: 1.6;
}

/* Slide Button */
.btn-slide {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  background: var(--primary);
  border: 2px solid var(--primary);
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(10, 113, 96, 0.4);
}

.btn-slide:hover {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Carousel Controls */
.hero-carousel .carousel-control-prev,
.hero-carousel .carousel-control-next {
  width: 50px;
  height: 50px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.hero-carousel .carousel-control-prev {
  left: 20px;
}

.hero-carousel .carousel-control-next {
  right: 20px;
}

.hero-carousel .carousel-control-prev:hover,
.hero-carousel .carousel-control-next:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-50%) scale(1.1);
}

.hero-carousel .carousel-control-prev-icon,
.hero-carousel .carousel-control-next-icon {
  width: 24px;
  height: 24px;
}

/* Hero Fallback (No Slides) */
.hero-fallback {
  height: 70vh;
  min-height: 500px;
  max-height: 800px;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
}

.hero-fallback-content h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.hero-fallback-content p {
  font-size: 1.25rem;
  opacity: 0.9;
}

/* Responsive */
@media (max-width: 991.98px) {

  .hero-carousel,
  .hero-fallback {
    height: 60vh;
    min-height: 400px;
  }

  .slide-title {
    font-size: 2.5rem;
  }

  .slide-subtitle {
    font-size: 1.1rem;
  }

  .hero-carousel .carousel-control-prev,
  .hero-carousel .carousel-control-next {
    width: 40px;
    height: 40px;
  }

  .hero-carousel .carousel-control-prev {
    left: 10px;
  }

  .hero-carousel .carousel-control-next {
    right: 10px;
  }

  .hero-fallback-content h1 {
    font-size: 2.5rem;
  }
}

@media (max-width: 767.98px) {

  .hero-carousel,
  .hero-fallback {
    height: 50vh;
    min-height: 350px;
  }

  .hero-carousel .carousel-caption {
    text-align: center;
    padding: 0 1rem;
  }

  .caption-content {
    max-width: 100%;
  }

  .slide-title {
    font-size: 1.75rem;
  }

  .slide-subtitle {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }

  .btn-slide {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
  }

  .hero-carousel .carousel-indicators {
    bottom: 10px;
  }

  .hero-carousel .carousel-indicators button {
    width: 10px;
    height: 10px;
  }

  .hero-fallback-content h1 {
    font-size: 1.75rem;
  }

  .hero-fallback-content p {
    font-size: 1rem;
  }
}


/* ===== Section titles ===== */
.section-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 0.5rem;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 2.5rem;
}

.title-accent {
  display: inline-block;
  width: 60px;
  height: 4px;
  background: var(--primary);
  border-radius: 2px;
  margin-bottom: 0.75rem;
}

/* ===== Category cards ===== */
.category-card {
  text-decoration: none;
  color: inherit;
  display: block;
  height: 100%;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid rgba(10, 113, 96, 0.1);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.category-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: var(--primary-light);
  color: inherit;
}

.category-card .card-body {
  padding: 1.5rem 1rem;
  text-align: center;
}

.category-card .category-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1rem;
  background: var(--primary);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.5rem;
}

.category-card .card-title {
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.category-card .badge {
  background: rgba(10, 113, 96, 0.12);
  color: var(--primary);
  font-weight: 600;
}

/* ===== Filter ===== */
.filter-card {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(10, 113, 96, 0.12);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.filter-card .card-body {
  padding: 1.25rem 1.5rem;
}

.filter-card .form-label {
  font-weight: 600;
  color: var(--text);
  font-size: 0.8rem;
}

.filter-card .form-select {
  border-radius: 8px;
  border-color: rgba(10, 113, 96, 0.2);
}

.filter-card .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(10, 113, 96, 0.15);
}

.btn-search {
  background: var(--primary);
  border: none;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  transition: transform var(--transition), box-shadow var(--transition);
}

.btn-search:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(10, 113, 96, 0.3);
}

/* ===== Property cards ===== */
.property-card {
  border-radius: var(--radius);
  border: 1px solid rgba(10, 113, 96, 0.08);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
  height: 100%;
}

.property-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.property-card .property-img-wrap {
  position: relative;
  overflow: hidden;
}

.property-img {
  height: 200px;
  background-size: cover;
  background-position: center;
  transition: transform 0.4s ease;
}

.property-card:hover .property-img {
  transform: scale(1.05);
}

.property-card .badge-new {
  background: #059669;
  color: white;
  font-weight: 600;
  font-size: 0.7rem;
  padding: 0.35rem 0.6rem;
  border-radius: 6px;
}

.property-card .badge-type {
  background: rgba(0, 0, 0, 0.5);
  color: white;
  backdrop-filter: blur(6px);
  font-size: 0.7rem;
  padding: 0.35rem 0.6rem;
  border-radius: 6px;
}

.property-card .card-body {
  padding: 1.25rem;
}

.property-card .price {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.35rem;
}

.property-card .location {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.property-card .meta {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.property-img-1 {
  background: var(--primary);
}

.property-img-2 {
  background: var(--primary-dark);
}

.property-img-3 {
  background: var(--primary);
}

.property-img-4 {
  background: var(--primary-dark);
}

.property-img-5 {
  background: var(--primary);
}

.property-img-6 {
  background: var(--primary-dark);
}

/* ===== Area buttons ===== */
.area-section {
  background: var(--bg-light);
}

.btn-area {
  border-radius: 8px;
  font-weight: 500;
  border: 1px solid rgba(10, 113, 96, 0.25);
  color: var(--primary);
  transition: all var(--transition);
}

.btn-area:hover {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

/* ===== Footer ===== */
.site-footer {
  background: var(--primary-dark);
  color: rgba(255, 255, 255, 0.9);
  position: relative;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
}

.footer-brand {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
}

.footer-brand i {
  color: #5eead4;
}

.footer-title {
  font-weight: 600;
  color: var(--white);
  margin-bottom: 1rem;
  font-size: 1rem;
}

.footer-desc {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer-contact li {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  margin-bottom: 0.6rem;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.footer-contact i {
  color: #5eead4;
  margin-top: 0.2rem;
}

.footer-newsletter .form-control {
  border-radius: 8px 0 0 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

.footer-newsletter .form-control::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.footer-newsletter .btn-cta {
  background: var(--accent);
  color: #1f2937;
  border: none;
  font-weight: 600;
  border-radius: 0 8px 8px 0;
}

.footer-newsletter .btn-cta:hover {
  background: var(--accent-hover);
  color: #1f2937;
}

.footer-divider {
  border-color: rgba(255, 255, 255, 0.15) !important;
}

.footer-copy {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.85rem;
}

/* ===== Zalo float ===== */
.zalo-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 4px 20px rgba(10, 113, 96, 0.4);
  z-index: 1050;
  transition: transform var(--transition);
}

.zalo-float i {
  position: relative;
  z-index: 1;
}

.zalo-float:hover {
  color: var(--white);
  transform: scale(1.08);
}

.zalo-float-pulse {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--primary-light);
  animation: zalo-pulse 2s infinite;
  opacity: 0.5;
}

@keyframes zalo-pulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 0.5;
  }

  50% {
    transform: scale(1.15);
    opacity: 0;
  }
}

/* Mobile adjustments for Zalo button */
@media (max-width: 767.98px) {
  .zalo-float {
    bottom: 16px;
    right: 16px;
    width: 48px;
    height: 48px;
    font-size: 1.25rem;
  }

  .zalo-float-pulse {
    inset: -3px;
  }
}

/* ===== Utilities ===== */
html {
  scroll-padding-top: 140px;
  overflow-x: hidden;
}

body {
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
  padding-top: 110px;
}

@media (max-width: 991.98px) {
  body {
    padding-top: 70px;
  }
}

.btn-outline-primary {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-outline-primary:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

.bg-section-alt {
  background: var(--bg-light);
}