* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Open Sans", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: #ffffff;
}

/* ===== HEADER ===== */

.top-header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  height: 70px;
  z-index: 1000;
  background-color: #001f3f; /* Navy blue background */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-header-inner {
  max-width: 1200px;
  height: 100%;
  margin: 0 auto;
  padding: 0 16px;

  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo img {
  height: 40px;
  display: block;
}

/* Nav */

.nav {
  flex: 1;
  margin: 0 40px;
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
}

.nav-links li {
  position: relative;
  font-size: 13px;
}

.nav-links a {
  text-decoration: none;
  color: #ffffff;  /* White text for better contrast */
  font-weight: 500;
  letter-spacing: 0.4px;
  transition: all 0.2s ease;
  padding: 8px 12px;
  border-radius: 4px;
}

.nav-links a:hover {
  opacity: 0.75;
}

.caret {
  font-size: 9px;
  margin-left: 4px;
  color: #ffffff;
  display: inline-block;
  transition: transform 0.2s ease;
}

.has-dropdown:hover .caret {
  transform: rotate(180deg);
}

/* Right side */

.right-box {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: auto;
}

/* Dropdown menu styles */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: #0a2d5a; /* Slightly lighter navy for dropdown */
  min-width: 200px;
  border-radius: 6px;
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 1000;
}

.has-dropdown {
  position: relative;
}

.has-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu li {
  padding: 0;
  margin: 0;
}

.dropdown-menu a {
  display: block;
  padding: 8px 16px;
  color: #ffffff !important;
  font-weight: 400 !important;
  white-space: nowrap;
}

.dropdown-menu a:hover {
  background: rgba(255, 255, 255, 0.1);
  opacity: 1 !important;
}

.phone-box {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  padding: 6px 12px;
  border-radius: 20px;
  transition: all 0.2s ease;
}

.phone-box:hover {
  background: rgba(255, 255, 255, 0.2);
}

.phone-icon {
  font-size: 14px;
}

/* Profile */

.profile-btn {
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  width: 36px;
  height: 36px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: all 0.2s ease;
}

.profile-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.profile-circle {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  border: 1px solid #ffffff;
}

/* Mobile burger */

.menu-toggle {
  display: none;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #ffffff;
  font-size: 20px;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.menu-toggle:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* ===== PROPERTIES SECTION ===== */
.properties-section {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 16px;
  box-sizing: border-box;
  position: relative;
}

.properties-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  gap: 16px;
}

.properties-title {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  color: #1e293b;
}

.view-all-btn {
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  color: #2563eb;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0;
}

.properties-grid {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 10px 0 20px;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 #f1f5f9;
}

.properties-grid::-webkit-scrollbar {
  height: 6px;
}

.properties-grid::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 3px;
}

.properties-grid::-webkit-scrollbar-thumb {
  background-color: #cbd5e1;
  border-radius: 3px;
}

.property-card {
  position: relative;
  min-width: 220px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  background: white;
  cursor: pointer;
}

.property-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.property-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  font-size: 12px;
  font-weight: 500;
  padding: 4px 8px;
  border-radius: 4px;
  z-index: 1;
}

.property-image {
  width: 100%;
  height: 140px;
  object-fit: cover;
}

.property-details {
  padding: 12px;
}

.property-price {
  font-size: 16px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 4px;
}

.property-address {
  font-size: 12px;
  color: #64748b;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.property-features {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: #64748b;
}

.feature {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ===== TESTIMONIALS SECTION ===== */
.testimonials-section {
  padding: 60px 16px;
  background: #f8fafc;
}

.testimonials-container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

.testimonial-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: white;
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  z-index: 10;
}

#prevBtn {
  left: -20px;
}

#nextBtn {
  right: -20px;
}

.testimonial-slide {
  background: white;
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.testimonial-rating {
  color: #f59e0b;
  font-size: 20px;
  margin-bottom: 16px;
  letter-spacing: 2px;
}

.testimonial-text {
  font-size: 18px;
  line-height: 1.6;
  color: #334155;
  margin-bottom: 24px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.author-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 12px;
  border: 3px solid #e2e8f0;
}

.author-name {
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 4px;
}

author-role {
  font-size: 14px;
  color: #64748b;
}

/* ===== FAQ SECTION ===== */
.faq-section {
  padding: 60px 16px;
  background: white;
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-title {
  text-align: center;
  font-size: 28px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 40px;
}

.faq-item {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: #f8fafc;
  cursor: pointer;
  user-select: none;
}

.faq-question-text {
  font-weight: 600;
  color: #1e293b;
}

.faq-toggle {
  transition: transform 0.3s ease;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background: white;
  padding: 0 20px;
}

.faq-answer-content {
  padding: 16px 0;
  color: #475569;
  line-height: 1.6;
}

/* ===== HERO ===== */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: stretch;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url("../Images/chico-ferreira-de-almeida-gmJchWEu1hE-unsplash.jpg");
  background-size: cover;
  background-position: center;
  z-index: -2;
  background-repeat: no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.35),
    rgba(0, 0, 0, 0.35)
  );
  z-index: -1;
}

.hero-inner {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 100px 16px 60px; /* space for fixed header */
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Arrows */

.hero-arrow {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  background: rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
}

/* Center content */

.hero-center {
  flex: 1;
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.hero-cta {
  padding: 8px 32px;
  border-radius: 999px;
  border: 1px solid #ffffff;
  background: rgba(0, 0, 0, 0.3);
  color: #ffffff;
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  margin-bottom: 16px;
}

.hero-title {
  font-size: 40px;
  font-weight: 700;
  margin-bottom: 8px;
}

.hero-subtitle {
  font-size: 14px;
  opacity: 0.9;
  margin-bottom: 28px;
}

/* Search card */

.search-card {
  margin: 0 auto;
  max-width: 760px;
  background: #ffffff;
  color: #000000;
  border-radius: 18px;
  padding: 16px 22px 18px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.2);
}

/* Tabs */

.search-tabs {
  display: flex;
  gap: 20px;
  margin-bottom: 14px;
  padding-left: 10px;
}

.search-tab {
  border: none;
  background: transparent;
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  position: relative;
  padding-bottom: 6px;
  opacity: 0.6;
}

.search-tab.active {
  opacity: 1;
  font-weight: 600;
}

.search-tab.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 999px;
  background: #000000;
}

/* Fields row */

.search-fields {
  display: grid;
  grid-template-columns: repeat(3, 1fr) 56px;
  gap: 10px;
  align-items: center;
}

.field-group {
  background: #ffffff;
  border-radius: 12px;
  padding: 10px 14px;
}

.field-label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #999999;
  margin-bottom: 4px;
}

.field-value {
  font-size: 13px;
  color: #333333;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.field-caret {
  font-size: 10px;
  margin-left: 6px;
  color: #888888;
}

/* Search button */

.search-btn {
  width: 100%;
  height: 100%;
  border-radius: 14px;
  border: none;
  background: #000000;
  color: #ffffff;
  font-size: 18px;
  cursor: pointer;
}

/* Bottom chips */

.hero-bottom {
  margin-top: 26px;
}

.hero-bottom-title {
  font-size: 13px;
  margin-bottom: 12px;
}

.property-types {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
}

.property-chip {
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  padding: 8px 18px;
  background: rgba(0, 0, 0, 0.25);
  font-size: 12px;
  cursor: pointer;
  opacity: 0.9;
}

.property-chip.active,
.property-chip:hover {
  background: #ffffff;
  color: #000000;
}

/* ===== RESPONSIVE ===== */

@media (max-width: 900px) {
  .hero-inner {
    padding-top: 90px;
    padding-left: 10px;
    padding-right: 10px;
  }

  .hero-title {
    font-size: 30px;
  }

  .search-fields {
    grid-template-columns: 1fr;
  }

  .hero-arrow {
    display: none;
  }
}

@media (max-width: 768px) {
  .nav {
    position: absolute;
    left: 0;
    top: 60px;
    width: 100%;
    background: rgba(0, 0, 0, 0.9);
    transform: translateY(-120%);
    transition: transform 0.3s ease;
  }

  .nav.open {
    transform: translateY(0);
  }

  .nav-links {
    flex-direction: column;
    padding: 10px 0 14px;
    gap: 10px;
  }

  .top-header-inner {
    padding: 0 10px;
  }

  .nav {
    margin: 0;
    flex: unset;
  }

  .menu-toggle {
    display: block;
  }
}

/* Dropdown menu styles */
.has-dropdown {
  position: relative;
}

.has-dropdown > ul {
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  min-width: 200px;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 100;
  padding: 8px 0;
  margin-top: 10px;
}

.has-dropdown:hover > ul {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.has-dropdown > ul li {
  display: block;
  margin: 0;
}

.has-dropdown > ul a {
  color: #333 !important;
  padding: 8px 20px;
  display: block;
  white-space: nowrap;
  transition: all 0.2s ease;
  font-size: 13px;
}

.has-dropdown > ul a:hover {
  background: #f5f5f5;
  color: #000 !important;
  opacity: 1 !important;
}

/* Caret animation */
.has-dropdown .caret {
  display: inline-block;
  transition: transform 0.2s ease;
}

.has-dropdown:hover .caret {
  transform: rotate(180deg);
}

/* Slider Styles */
.slider {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  background-repeat: no-repeat;
}

.slide.active {
  opacity: 1;
}

.slider-nav {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 15px;
  z-index: 10;
}

.slider-btn {
  background: rgba(255, 255, 255, 0.3);
  border: none;
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
}

.slider-btn:hover {
  background: rgba(255, 255, 255, 0.5);
}

.slider-dots {
  display: flex;
  gap: 8px;
}

.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.slider-dot.active {
  background: white;
  transform: scale(1.2);
}