/* Outfit font preloaded via <link rel="preconnect"> in head-css.php — @import removed for render performance */

/* ==================== NAVBAR ==================== */
.navbar {
  background-color: var(--bg-white);
  border-bottom: 1px solid var(--border-light);
  box-shadow: var(--shadow-xs);
  height: 65px;
  /* STRICT height to prevent any vertical bouncing during load */
  display: flex;
  align-items: center;
  position: relative;
  width: 100%;
  z-index: var(--z-navbar);
}

.navbar .container {
  display: flex;
  align-items: center;
  gap: 30px;
  width: 100%;
  height: 100%;
}

/* Logo */
.logo {
  font-family: 'Outfit', var(--font-sans);
  font-size: 24px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.03em;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  min-width: 180px;
  /* Lock horizontal width to prevent logo FOUC from pushing links */
  line-height: 1;
  transition: color var(--transition-base);
}

.logo:hover {
  color: var(--primary-dark);
}

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-links>a {
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.1px;
  text-decoration: none;
  transition: color var(--transition-base);
  display: inline-flex;
  align-items: center;
  padding: 6px 0;
}

.nav-links>a:hover,
.nav-links>.nav-item:hover>a {
  color: var(--primary);
}

/* Nav actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

/* Nav buttons */
.nav-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--primary);
  color: #ffffff;
  padding: 8px 18px;
  border-radius: var(--radius-xs);
  font-weight: 500;
  font-size: 14.5px;
  text-decoration: none;
  transition: all var(--transition-base);
  white-space: nowrap;
  user-select: none;
  cursor: pointer;
}

.nav-btn-primary:hover {
  background: var(--primary-dark);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 3px 0 var(--primary-dark);
}

.nav-btn-primary:active {
  transform: translateY(1px);
  box-shadow: none;
}

.nav-btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-dark);
  color: var(--text-muted);
  background: var(--bg-white);
  padding: 7px 16px;
  border-radius: var(--radius-sm);
  font-weight: var(--font-weight-semi);
  font-size: 14px;
  text-decoration: none;
  transition: all var(--transition-base);
}

.nav-btn-outline:hover {
  background: var(--bg-off);
  color: var(--text-primary);
  border-color: var(--border-dark);
}

/* Mobile helpers */
.mobile-login-wrapper {
  display: none;
}

/* ==================== DROPDOWN ==================== */
.nav-item {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-item>a.nav-link {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: var(--text-main);
  font-size: 16px;
  letter-spacing: 0.1px;
  text-decoration: none;
  cursor: pointer;
  transition: color var(--transition-base);
  padding: 6px 0;
}

.nav-item:hover>a.nav-link {
  color: var(--primary);
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background-color: var(--bg-white);
  min-width: 220px;
  box-shadow: var(--shadow-lg);
  border-radius: 0;
  padding: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all var(--transition-base);
  z-index: var(--z-dropdown);
  border: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
}

.nav-item:hover .dropdown-menu,
.nav-item.dropdown-open .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu a {
  padding: 10px 14px;
  border-radius: 0;
  font-size: 14px;
  font-weight: var(--font-weight-medium);
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 10px;
  transition: background var(--transition-fast), color var(--transition-fast);
}

.dropdown-menu a:not(:last-child) {
  border-bottom: 1px solid var(--border-light);
}

.dropdown-menu a:hover {
  background: var(--bg-surface);
  color: var(--primary);
}

.dropdown-menu a i {
  width: 18px;
  text-align: center;
  color: var(--primary);
  font-size: 13px;
  flex-shrink: 0;
}

/* ==================== PAGE LAYOUT ==================== */
.layout-wrapper {
  display: flex;
  gap: 20px;
}

.layout-main {
  flex: 1;
  min-width: 0;
}

.layout-sidebar {
  width: var(--sidebar-width);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Empty ad containers — no layout shift */
.listing-sidebar-ad:empty,
.detail-sidebar-ad:empty,
.manset-ad-box:empty,
.layout-sidebar>div:empty {
  display: none !important;
}

@media (max-width: 992px) {
  .layout-sidebar {
    width: 100%;
  }
}

/* Footer stilleri — footer.php içinde scoped <style> olarak tanımlıdır.
   Bu sayede duplicate olmaz ve footer bağımsız bir component olur. */


/* ==================== SECTION TITLE ==================== */
.section-title {
  font-size: 24px;
  font-weight: var(--font-weight-extra);
  margin-bottom: var(--space-6);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

/* ==================== SEARCH LAYOUT ==================== */
.search-layout {
  display: grid;
  grid-template-columns: 250px 1fr 250px;
  gap: 12px;
  align-items: start;
}

.search-layout>* {
  min-width: 0;
}

.search-layout .layout-sidebar {
  width: 100%;
}

.search-sidebar-right {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.search-sidebar-right .listing-sidebar-ad {
  position: sticky;
  top: 10px;
  z-index: 10;
}

@media (max-width: 1200px) {
  .search-layout {
    grid-template-columns: 260px 1fr;
  }

  .search-sidebar-right {
    display: none;
  }
}

@media (max-width: 992px) {
  .search-layout {
    grid-template-columns: 1fr;
  }
}