/* ============================================
   NAVBAR RESPONSIVE STYLES flat2rent 
   ============================================ */

/* 🔵 Desktop – 1024px to 1439px */
@media (max-width: 1439px) {
  .navbar-logo {
    margin-left: 120px;
  }

  .navbar-menu {
    gap: 25px;
  }

  .navbar-menu-link {
    font-size: 15px;
  }

  .language-switcher {
    margin-right: 50px;
  }
}

/* 🟡 Tablet – 768px to 1023px */
@media (max-width: 1023px) {
  .navbar {
    padding: 20px 0;
  }

  .navbar-logo {
    margin-left: 40px;
  }

  .navbar-logo img {
    width: 110px;
    height: auto;
  }

  .navbar-menu {
    gap: 20px;
    position: static;
    transform: none;
    margin-left: 60px;
  }

  .navbar-menu-link {
    font-size: 14px;
  }

  .dropdown-menu {
    width: 180px;
  }

  .dropdown-link {
    font-size: 12px;
    padding: 10px 15px;
  }

  .language-switcher {
    margin-right: 30px;
  }

  .language-text {
    font-size: 12px;
  }

  /* Hide hamburger on tablet */
  .navbar-hamburger {
    display: none;
  }

  .navbar-mobile-overlay {
    display: none;
  }
}

/* 🟠 Large Phones – 480px to 767px */
@media (max-width: 767px) {
  .navbar {
    height: 60px;
  }

  .navbar-container {
    flex-direction: row;
    justify-content: space-between;
    padding: 0 20px;
    gap: 0;
    align-items: center;
    height: 100%;
  }

  .navbar-logo {
    margin-left: 0;
    display: flex;
    align-items: center;
  }

  .navbar-logo img {
    width: 100px;
    height: auto;
  }

  /* Scrolled state logo */
  .navbar.scrolled .navbar-logo img {
    width: 53px;
  }

  /* Hamburger Button */
  .navbar-hamburger {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1300;
    margin-top: 6px;
    touch-action: manipulation;
  }

  .hamburger-item {
    display: flex;
    align-items: center;
    gap: 2px;
  }

  .hamburger-dot {
    width: 4px;
    height: 4px;
    background-color: var(--black);
    border-radius: 50%;
    transition: all 0.3s ease;
  }

  .hamburger-line {
    width: 20px;
    height: 3px;
    background-color: var(--black);
    transition: all 0.3s ease;
    border-radius: 4px;
  }

  .navbar-hamburger.active .hamburger-item:nth-child(1) .hamburger-line {
    transform: rotate(45deg) translateX(8px);
  }

  .navbar-hamburger.active .hamburger-item:nth-child(1) .hamburger-dot {
    opacity: 0;
  }
 
  .navbar-hamburger.active .hamburger-item:nth-child(2) {
    opacity: 0;
  }

  .navbar-hamburger.active .hamburger-item:nth-child(3) .hamburger-line {
    transform: rotate(-45deg) translateX(8px);
  }

  .navbar-hamburger.active .hamburger-item:nth-child(3) .hamburger-dot {
    opacity: 0;
  }


  /* Mobile Overlay */
  .navbar-mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1100;
  }

  .navbar-mobile-overlay.active {
    opacity: 1;
    visibility: visible;
  }

  /* Mobile Menu - Slide from Right */
  .navbar-menu {
    position: fixed;
    top: 0;
    right: -300px;
    width: 280px;
    height: 100vh;
    background-color: var(--white);
    flex-direction: column;
    gap: 0;
    padding: 80px 20px 20px;
    margin: 0;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
    overflow-y: auto;
    transition: right 0.3s ease;
    z-index: 1200;
    transform: none;
    left: auto;
  }

  .navbar-menu.active {
    right: 0;
  }

  .navbar-menu-item {
    width: 100%;
    text-align: left;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  }

  .navbar-menu-link {
    font-size: 15px;
    display: block;
    padding: 15px 10px;
  }

  /* Dropdown in Mobile Menu */
  .dropdown-menu {
    position: static;
    transform: none;
    width: 100%;
    margin-top: 0;
    box-shadow: none;
    border: none;
    border-radius: 0;
    background-color: rgba(208, 66, 120, 0.03);
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .dropdown-menu.active {
    max-height: 400px;
    padding: 5px 0;
    transform: none;
  }

  .dropdown-menu::before {
    display: none;
  }

  .dropdown-list {
    width: 100%;
  }

  .dropdown-item {
    width: 100%;
  }

  .dropdown-link {
    text-align: center;
    border-left: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
    padding: 12px 20px;
    font-size: 13px;
    width: 100%;
    display: block;
  }

  .dropdown-link:hover {
    border-left: none;
    padding-left: 20px;
    background-color: rgba(208, 66, 120, 0.08);
  }

  /* Language Switcher in Mobile Menu */
  .language-switcher {
    position: fixed;
    top: 0;
    right: -300px;
    width: 280px;
    margin: 0;
    padding: 20px;
    background-color: var(--white);
    justify-content: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    z-index: 1200;
  }

  .language-switcher.active {
    right: 0;
  }

  /* Mobile Social Media Links */
  .navbar-mobile-social {
    display: block;
    width: 100%;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    border-bottom: none;
  }

  .navbar-social-title {
    font-size: 14px;
    font-weight: var(--font-semibold);
    color: var(--pink);
    text-align: center;
    margin-bottom: 15px;
  }

  .navbar-social-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 0 10px;
  }

  .navbar-social-link {
    display: block;
  }

  .navbar-social-icon {
    width: 25px;
    height: 25px;
    transition: opacity 0.3s ease;
  }

  .navbar-social-icon:hover {
    opacity: 0.7;
  }
}

/* 🔴 Small Phones – up to 479px */
@media (max-width: 479px) {
  .navbar-container {
    padding: 0 15px;
    gap: 12px;
  }

  .navbar-logo img {
    width: 90px;
    height: auto;
  }

  .navbar-menu {
    gap: 10px;
  }

  .navbar-menu-link {
    font-size: 13px;
    padding: 6px 0;
  }

  .dropdown-link {
    font-size: 11px;
    padding: 8px 12px;
  }

  .language-option {
    padding: 4px 6px;
  }

  .language-text {
    font-size: 11px;
  }

  .language-icon {
    width: 14px;
    height: 10px;
  }
}