/* 
  Component Styles (Buttons, Cards, Nav, Footer) 
*/

/* Buttons */
.btn-mah-primary {
  background-color: var(--mah-secondary);
  color: #fff;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: var(--mah-radius-md);
  font-weight: 600;
  font-family: var(--mah-font-body);
  transition: all var(--mah-transition-fast);
  box-shadow: var(--mah-shadow-md);
}

.btn-mah-primary:hover {
  background-color: var(--mah-primary);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--mah-shadow-lg);
}

.btn-mah-outline {
  background-color: transparent;
  color: var(--mah-secondary);
  border: 2px solid var(--mah-secondary);
  padding: 0.65rem 1.5rem;
  border-radius: var(--mah-radius-md);
  font-weight: 600;
  transition: all var(--mah-transition-fast);
}

.btn-mah-outline:hover {
  background-color: var(--mah-secondary);
  color: #fff;
}

.btn-mah-accent {
  background-color: var(--mah-accent);
  color: #fff;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: var(--mah-radius-md);
  font-weight: 600;
  transition: all var(--mah-transition-fast);
  box-shadow: var(--mah-shadow-md);
}

.btn-mah-accent:hover {
  background-color: #d97706;
  color: #fff;
  transform: translateY(-2px);
}

/* New Header Styling based on User Screenshot */
.mah-new-header {
  background: #0d4b96; /* Solid corporate blue matching Image 2 */
  padding: 0 1.5rem;
  height: 75px; /* Enforced slim size */
  border-bottom: 1px solid rgba(255, 255, 255, 0.1); 
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  z-index: 1030;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  box-sizing: border-box;
}

.mah-new-header .logo-container {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  height: 100%;
}

.mah-new-header .logo-img {
  height: 50px; /* Constrain by height instead of absolute width to prevent overlap */
  width: auto;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 1)) drop-shadow(0 0 5px rgba(255, 255, 255, 0.8));
}

.mah-new-header .search-container {
  flex: 1 1 auto;
  max-width: 600px; /* Reduced max-width so it leaves room for icons */
  margin: 0 2rem;
  min-width: 200px;
}

.mah-new-header .search-bar {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.95);
  border: 2px solid transparent;
  border-radius: 50px;
  padding: 0.6rem 1.5rem;
  width: 100%;
  transition: all var(--mah-transition-fast);
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
}

.mah-new-header .search-bar:focus-within {
  background: #ffffff;
  border-color: var(--mah-secondary); /* Vibrant Orange border on focus */
  box-shadow: 0 0 15px rgba(255, 90, 0, 0.3);
}

.mah-new-header .search-bar input {
  border: none;
  background: transparent;
  width: 100%;
  padding-left: 0.75rem;
  outline: none;
  font-size: 0.95rem;
  color: #1e293b;
}

.mah-new-header .search-bar i {
  color: #64748b;
  font-size: 1.1rem;
}

.mah-new-header .icon-container {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-shrink: 0;
}

.mah-new-header .header-icon {
  font-size: 1.35rem; /* Slightly larger */
  color: #f8fafc; /* Default bright white if class missing */
  transition: all var(--mah-transition-fast);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mah-new-header .header-icon:hover {
  transform: scale(1.2) translateY(-2px);
  filter: brightness(1.2);
}

/* Bright Neon-like Colorful Icon Scheme for Dark Header */
.mah-new-header .header-icon.yt { color: #FF3333; filter: drop-shadow(0 0 5px rgba(255,51,51,0.5)); }
.mah-new-header .header-icon.home { color: #3B82F6; filter: drop-shadow(0 0 5px rgba(59,130,246,0.5)); }
.mah-new-header .header-icon.list { color: #F59E0B; filter: drop-shadow(0 0 5px rgba(245,158,11,0.5)); }
.mah-new-header .header-icon.clip { color: #10B981; filter: drop-shadow(0 0 5px rgba(16,185,129,0.5)); }
.mah-new-header .header-icon.check { color: #A78BFA; filter: drop-shadow(0 0 5px rgba(167,139,250,0.5)); }
.mah-new-header .header-icon.grid { color: #F472B6; filter: drop-shadow(0 0 5px rgba(244,114,182,0.5)); }
.mah-new-header .header-icon.user { color: #38BDF8; filter: drop-shadow(0 0 5px rgba(56,189,248,0.5)); }

/* Mobile Controls & Search Dropdown */
.mobile-search-collapse {
    position: fixed;
    top: 75px;
    left: 0;
    width: 100%;
    background: #ffffff;
    padding: 1rem;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
    z-index: 1020;
}

.mobile-controls-container {
    display: none;
}

/* Responsive Header Media Queries */
@media (max-width: 991px) {
  .mah-new-header {
    padding: 0 1rem;
  }
  .mah-new-header .search-container {
    display: none !important;
  }
  .mah-new-header .icon-container {
    display: none !important;
  }
  .mah-new-header .logo-container {
    width: 140px;
  }
  .mah-new-header .logo-img {
    width: 160px;
  }
  .mobile-controls-container {
    display: flex;
    gap: 1.25rem;
    align-items: center;
  }
  .mobile-controls-container .header-icon {
    color: #ffffff;
    font-size: 1.25rem;
    cursor: pointer;
  }
}

/* Property Cards */
.mah-property-card {
  background: var(--mah-surface);
  border-radius: var(--mah-radius-xl);
  border: 1px solid var(--mah-border);
  overflow: hidden;
  transition: all var(--mah-transition-normal);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.mah-property-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--mah-shadow-hover);
  border-color: var(--mah-secondary);
}

.mah-property-card .card-img-wrapper {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
}

.mah-property-card .card-img-top {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--mah-transition-normal);
}

.mah-property-card:hover .card-img-top {
  transform: scale(1.05);
}

.mah-property-card .badge-featured {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background-color: var(--mah-accent);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: var(--mah-radius-pill);
  font-size: 0.75rem;
  font-weight: 600;
  z-index: 2;
  box-shadow: var(--mah-shadow-md);
}

.mah-property-card .badge-type {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background-color: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: var(--mah-radius-pill);
  font-size: 0.75rem;
  font-weight: 500;
  z-index: 2;
}

.mah-property-card .card-body {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.mah-property-card .property-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--mah-primary);
  margin-bottom: 0.5rem;
}

.mah-property-card .property-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--mah-text-dark);
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.mah-property-card .property-location {
  color: var(--mah-text-body);
  font-size: 0.875rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.mah-property-card .property-features {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--mah-border);
  padding-top: 1rem;
  margin-top: auto;
}

.mah-property-card .feature-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--mah-text-body);
  font-weight: 500;
}

.mah-property-card .feature-item i {
  color: var(--mah-secondary);
  font-size: 1.1rem;
}

/* Agent/Service Provider Cards */
.mah-agent-card {
  background: var(--mah-surface);
  border-radius: var(--mah-radius-xl);
  padding: 1.5rem;
  text-align: center;
  border: 1px solid var(--mah-border);
  transition: all var(--mah-transition-normal);
}

.mah-agent-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--mah-shadow-lg);
}

.mah-agent-card img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1rem;
  border: 3px solid white;
  box-shadow: var(--mah-shadow-md);
}

.mah-agent-card h4 {
  font-size: 1.125rem;
  margin-bottom: 0.25rem;
}

.mah-agent-card p {
  font-size: 0.875rem;
  color: var(--mah-text-body);
  margin-bottom: 1rem;
}

/* Footer */
.mah-footer {
  background-color: var(--mah-primary);
  color: rgba(255, 255, 255, 0.8);
  padding: 4rem 0 2rem;
}

.mah-footer h5 {
  color: white;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.mah-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mah-footer ul li {
  margin-bottom: 0.75rem;
}

.mah-footer ul a {
  color: rgba(255, 255, 255, 0.8);
  transition: color var(--mah-transition-fast);
}

.mah-footer ul a:hover {
  color: var(--mah-secondary);
}

.mah-footer .footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 3rem;
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Hero Search Component */
.mah-hero-search {
  background: var(--mah-surface);
  border-radius: var(--mah-radius-xl);
  padding: 1rem;
  box-shadow: var(--mah-shadow-xl);
  max-width: 900px;
  margin: -4rem auto 0;
  position: relative;
  z-index: 10;
}

.mah-hero-search .nav-tabs {
  border-bottom: none;
  margin-bottom: 1rem;
  justify-content: center;
}

.mah-hero-search .nav-link {
  border: none;
  color: var(--mah-text-body);
  font-weight: 600;
  border-radius: var(--mah-radius-pill);
  padding: 0.5rem 1.5rem;
}

.mah-hero-search .nav-link.active {
  background-color: var(--mah-secondary);
  color: white;
}

.mah-hero-search .search-form-row {
  display: flex;
  gap: 0.5rem;
}

.mah-hero-search .form-control, .mah-hero-search .form-select {
  border: 1px solid var(--mah-border);
  border-radius: var(--mah-radius-md);
  padding: 0.75rem 1rem;
  font-size: 1rem;
}

.mah-hero-search .form-control:focus, .mah-hero-search .form-select:focus {
  border-color: var(--mah-secondary);
  box-shadow: 0 0 0 0.25rem rgba(66, 133, 244, 0.25);
}
