/* Mobile Hamburger Menu Styles */

/* Hide hamburger by default; show only on mobile */
.hamburger-btn {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
}

.hamburger-btn:focus-visible {
  outline: 2px solid #000;
  outline-offset: 2px;
}

/* Fullscreen overlay menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  background: #000000; /* Solid black */
  color: #ffffff;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 300ms ease, transform 300ms ease, visibility 0s linear 300ms;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  z-index: 10000;
}

.mobile-menu.open {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 300ms ease, transform 300ms ease;
}

.mobile-menu-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  text-align: center;
  padding: 24px;
}

.mobile-menu-link {
  color: #ffffff;
  text-decoration: none;
  font-size: 1.25rem;
  text-transform: uppercase;
  padding: 12px 16px;
}

.mobile-menu-link:focus-visible,
.mobile-menu-link:hover {
  text-decoration: underline;
}

/* Prevent background scroll when menu open */
body.menu-open {
  overflow: hidden;
}

/* Responsive behaviors */
@media (max-width: 991.98px) {
  html, body {
    max-width: 100vw;
    overflow-x: hidden;
  }
  .header {
    overflow-x: hidden;
    max-width: 100vw;
  }
  .container {
    width: 100%;
    max-width: 100%;
  }
  .header-content {
    flex-direction: row;
    justify-content: space-between;
    padding: 10px 1rem;
    max-width: 100vw;
    gap: 8px;
  }
  .header {
    width: 100%;
  }
  .header .container {
    max-width: 100%;
    padding-left: 12px;
    padding-right: 12px;
  }
  .nav-container {
    gap: 8px;
    margin-left: 0;
    align-items: center;
    flex: 1 1 0;
    min-width: 0;
    justify-content: flex-end;
  }
  .logo {
    flex: 0 1 auto;
    min-width: 0;
    max-width: 50vw;
  }
  .nav-menu {
    display: none;
  }
  .hamburger-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    font-size: 18px;
    color: #1c1c1c;
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(145, 126, 98, 0.2);
  }
  .logo-img {
    height: 25px;
    max-width: 65vw;
  }
  .user-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    font-size: 1.1rem;
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(145, 126, 98, 0.2);
  }

  .properties-grid {
    gap: 1rem;
    padding: 0 0.5rem;
  }
  .property-card {
    flex: 0 0 280px;
    min-width: 280px;
  }
}

@media (max-width: 360px) {
  .logo-img { height: 32px; }
  .hamburger-btn { 
    width: 44px; 
    height: 44px; 
    min-width: 44px;
    min-height: 44px;
    font-size: 16px; 
  }
  .user-icon { 
    width: 44px; 
    height: 44px; 
    min-width: 44px;
    min-height: 44px;
    font-size: 1rem; 
  }
}