/* Header Styles - Extracted from inline styles */

.site-header {
  height: 90px;
  background-color: white;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  padding: 0 24px;
  position: relative;
  z-index: 100;
}

/* Fixed header for HomePage */
body.nariozemelapis .site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
}

.site-header-inner {
  max-width: 1600px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-header-logo {
  width: 316px;
  padding-left: 40px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.site-header-logo a {
  display: block;
  text-decoration: none;
}

.site-header-logo img {
  width: 190px;
  height: auto;
}

.site-header-nav {
  display: flex;
  gap: 32px;
  margin-left: 20px;
  flex: 1;
}

.site-header-nav a {
  font-size: 16px;
  font-weight: 500;
  color: #2f2f2f;
  text-decoration: none;
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  transition: all 0.2s ease;
}

.site-header-nav a:hover {
  color: #374151;
  border-bottom-color: #d1d5db;
}

.site-header-nav a.active {
  color: #374151;
  border-bottom-color: #0C7490;
}

.site-header-ad {
  margin-left: auto;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-left: 1px solid #E1E1E1;
  background-color: #e9f5fb;
  border-radius: 0px;
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  width: 728px;
  border-right: 1px solid #E1E1E1;
  background-image: url('/themes/aukcionai/images/728x90_placeholder.gif');
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.site-header-ad img {
  max-height: 90px;
  display: block;
}

.site-header-ad-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6px 12px;
  pointer-events: none;
}

.site-header-ad-inner {
  position: relative;
  z-index: 2;
}

.site-header-ad-placeholder h3 {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 700;
  color: #0C7490;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.site-header-ad-placeholder p {
  margin: 0;
  font-size: 12px;
  color: #26586a;
}

.site-header-ad-placeholder p.cta {
  margin-top: 6px;
  font-weight: 600;
}

/* MOBILE FILTERS TOGGLE (HomePage only) */
.mobile-filters-toggle {
  display: none; /* Hidden by default */
  align-items: center;
  gap: 6px;
  background-color: #0C7490;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease;
  flex: 1;
  max-width: fit-content;
  margin: 0 auto;
}

.mobile-filters-toggle:hover {
  background-color: #0a5f75;
}

.mobile-filters-toggle svg {
  width: 18px;
  height: 18px;
}

/* Show filters toggle only on HomePage mobile */
body.nariozemelapis .mobile-filters-toggle {
  display: none; /* Hidden on desktop */
}

/* Hamburger Menu Button (hidden by default) */
.hamburger-btn {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-shrink: 0;
}

.hamburger-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: #374151;
  transition: all 0.3s ease;
}

/* Mobile Menu Overlay */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 280px;
  height: 100vh;
  background-color: white;
  box-shadow: -2px 0 8px rgba(0, 0, 0, 0.1);
  padding: 80px 24px 24px;
  transition: right 0.3s ease;
  z-index: 9998;
}

.mobile-menu.open {
  right: 0;
}

.mobile-menu-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: #6b7280;
}

.mobile-menu-nav {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mobile-menu-nav a {
  font-size: 16px;
  font-weight: 500;
  color: #374151;
  text-decoration: none;
  padding: 12px 0;
  border-bottom: 1px solid #e5e7eb;
}

.mobile-menu-nav a.active {
  color: #0C7490;
}

/* Mobile Menu Overlay Background */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 9997;
}

.mobile-menu-overlay.open {
  opacity: 1;
  pointer-events: all;
}

/* ========================================
   RESPONSIVE STYLES
   ======================================== */

/* Hide banner on smaller screens <1400px */
@media (max-width: 1399px) {
  .site-header-ad {
    display: none;
  }
}

@media (min-width: 1399px) and (max-width: 1679px) {
  .site-header-nav a.nav-map,
  .site-header-nav a.nav-about {
    display: none;
  }
}

/* Hamburger menu at ≤996px */
@media (max-width: 996px) {
  .site-header-nav {
    display: none;
  }
  
  .hamburger-btn {
    display: flex;
  }
  
  /* Show filters toggle on HomePage mobile */
  body.nariozemelapis .mobile-filters-toggle {
    display: flex;
  }
  
  /* Hide filters toggle when sidebar is open */
  body.nariozemelapis.filters-open .mobile-filters-toggle {
    display: none;
  }
  
  .site-header-logo {
    width: auto;
    padding-left: 20px;
  }
  
  .site-header {
    padding: 5px 16px;
  }
}

/* Tablet adjustments <768px */
@media (max-width: 768px) {
  .site-header {
    height: 60px;
    padding: 5px 12px;
  }
  
  .site-header-logo {
    padding-left: 0;
  }
  
  .site-header-logo img {
    width: 150px;
  }
}

/* Mobile adjustments <480px */
@media (max-width: 480px) {
  .site-header {
    padding: 5px 8px;
  }
  
  .site-header-logo img {
    width: 130px;
  }
  
  .hamburger-btn {
    padding: 4px;
  }
  
  .mobile-menu {
    width: 100%;
    right: -100%;
  }
}
