/* Base Styles */
:root {
  --madbrand-50: #f0f3f9;
  --madbrand-100: #e1e7f4;
  --madbrand-500: #3b56d4;
  --madbrand-600: #344abd;
  --madbrand-700: #2d3fa6;
  --madbrand-800: #253487;
  --madbrand-900: #1e2968;
  --madbrand-950: #111640;
  
  --madgold-400: #ffd048;
  --madgold-500: #ffbf00;
  --madgold-600: #e6ac00;
  
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  
  --white: #ffffff;
  --black: #000000;
  
  --primary: var(--madbrand-600);
  --accent: var(--madgold-500);
  --text: var(--gray-800);
  --text-light: var(--gray-600);
  --background: var(--gray-50);
  
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  
  --border-radius: 0.5rem;
  --border-radius-lg: 0.75rem;
  --border-radius-full: 9999px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  color: var(--text);
  background-color: var(--white);
  line-height: 1.5;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  cursor: pointer;
  font-family: inherit;
}

img {
  max-width: 100%;
  height: auto;
}

.icon {
  width: 1rem;
  height: 1rem;
}

.hide {
  display: none !important;
}

/* Navbar */
.navbar {
  background-color: var(--white);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 50;
}

.navbar-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}

.logo img {
  height: 3rem;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 2rem;
  margin-left: 1.5rem;
}

.nav-link {
  color: var(--gray-700);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.5rem 0;
  transition: color 0.2s;
}

.nav-link:hover {
  color: var(--primary);
}

.btn-ghost {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--gray-700);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius);
  transition: background-color 0.2s;
}

.btn-ghost:hover {
  background-color: var(--gray-100);
  color: var(--primary);
}

.menu-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--gray-700);
}

.mobile-nav {
  display: none;
  padding: 1rem 0;
  border-top: 1px solid var(--gray-100);
  background-color: var(--white);
}

.mobile-nav .nav-link {
  display: block;
  padding: 0.75rem 0;
}

/* Hero Section */
.hero {
  position: relative;
  height: 600px;
  display: flex;
  align-items: center;
  background-image: url('https://images.unsplash.com/photo-1571896349842-33c89424de2d');
  background-size: cover;
  background-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(244, 196, 48, 0.8), rgba(244, 196, 48, 0.9));

}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  color: var(--white);
  padding: 0 1rem;
}

.hero-title {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  letter-spacing: -0.025em;
  color: var(--white);
}

.hero-description {
  font-size: 1.25rem;
  font-weight: 300;
  max-width: 48rem;
  margin: 0 auto 2rem;
  color: var(--white);
}

.highlight {
  color: var(--madgold-400);
}

/* Search Form */
.search-form-container {
  margin-top: -6rem;
  position: relative;
  z-index: 20;
  margin-bottom: 2rem;
}

.search-form {
  background-color: var(--white);
  border-radius: var(--border-radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1rem;
}

.form-group {
  position: relative;
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--gray-100);
  border-radius: var(--border-radius);
  font-size: 0.875rem;
  background-color: var(--white);
  color: var(--text);
  appearance: none;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
}

.date-picker-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-align: left;
  cursor: pointer;
}

.date-picker-container {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-lg);
  z-index: 30;
  margin-top: 0.5rem;
  padding: 1rem;
}

.search-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: #ff5f00; /* Vivid Orange */
  color: var(--white);
  font-weight: 500;
  padding: 0.75rem 1rem;
  border: none;
  border-radius: var(--border-radius);
  transition: background-color 0.2s;
}

.search-btn:hover {
  background-color: #e65600; /* Darker Orange on hover */
}

/* Featured Properties Section */
.featured-properties {
  padding: 5rem 0;
  background-color: var(--gray-50);
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--madbrand-900);
  margin-bottom: 1.5rem;
}

.section-description {
  font-size: 1.125rem;
  color: var(--text-light);
  max-width: 36rem;
  margin: 0 auto;
}

.property-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 2rem;
}

.property-card {
  background-color: var(--white);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s;
}

.property-card:hover {
  transform: translateY(-0.25rem);
  box-shadow: var(--shadow-lg);
}

.property-image {
  position: relative;
  height: 16rem;
  overflow: hidden;
}

.property-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.property-card:hover .property-image img {
  transform: scale(1.1);
}

.property-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background-color: var(--accent);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.25rem 0.75rem;
  border-radius: var(--border-radius-full);
}

.property-content {
  padding: 1.5rem;
}

.property-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--gray-800);
  margin-bottom: 0.5rem;
}

.property-location {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-light);
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.property-features {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.feature {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-light);
  font-size: 0.875rem;
}

.property-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--gray-100);
}

.property-price {
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
}

.price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
}

.price-unit {
  font-size: 0.875rem;
  color: var(--text-light);
}

.book-btn {
  display: inline-block;
  background-color: #ff5f00; /* Vivid Orange */
  color: var(--white);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius);
  transition: background-color 0.2s;
}

.book-btn:hover {
  background-color: #e65600; /* Darker Orange on hover */
}

.view-all-container {
  text-align: center;
  margin-top: 4rem;
}

.view-all-btn {
  display: inline-block;
  background-color: transparent;
  color: var(--text);
  font-size: 1.125rem;
  font-weight: 500;
  padding: 0.75rem 2rem;
  border: 1px solid var(--gray-100);
  border-radius: var(--border-radius);
  transition: background-color 0.2s, border-color 0.2s;
}

.view-all-btn:hover {
  background-color: var(--madbrand-50);
  border-color: var(--madbrand-100);
}

/* Call to Action Section */
.cta-section {
  padding: 5rem 2rem;
  background: linear-gradient(to right, var(--madbrand-800), var(--madbrand-900));
  color: var(--white);
  text-align: center;
}

.cta-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.cta-description {
  font-size: 1.25rem;
  font-weight: 300;
  max-width: 36rem;
  margin: 0 auto 2.5rem;
}

.cta-btn {
  display: inline-block;
  background-color: #ff5f00; /* Vivid Orange */
  color: var(--white);
  font-size: 1.125rem;
  font-weight: 500;
  padding: 0.75rem 2rem;
  border-radius: var(--border-radius);
  transition: background-color 0.2s;
}

.cta-btn:hover {
  background-color: #e65600; /* Darker Orange on hover */
}

/* Footer */
.footer {
  background-color: var(--white);
  border-top: 1px solid var(--gray-100);
  padding: 4rem 0 1.5rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 2rem;
  margin-bottom: 3rem;
}

.footer-logo img {
  height: 9rem;
  margin-bottom: 1rem;
}

.footer-logo p {
  font-size: 0.875rem;
  color: var(--text-light);
}

.footer-links h3,
.footer-contact h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  font-size: 0.875rem;
  color: var(--text-light);
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-contact p {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

.footer-bottom {
  border-top: 1px solid var(--gray-100);
  padding-top: 1.5rem;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.875rem;
  color: var(--text-light);
}

/* Responsive Styles */
@media (min-width: 640px) {
  .property-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .search-form {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 3.5rem;
  }
  
  .footer-content {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .search-form {
    grid-template-columns: repeat(5, 1fr);
  }
  
  .property-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .desktop-nav {
    display: none;
  }
  
  .menu-toggle {
    display: block;
  }
  
  .mobile-nav.active {
    display: block;
  }
  
  .hero {
    height: 500px;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-description {
    font-size: 1rem;
  }
  
  .search-form-container {
    margin-top: -3rem;
  }
}