:root {
  --bu-primary: #e02222;
  --bu-primary-dark: #c41e1e;
  --bu-primary-light: #fdecec;
  --bu-orange: #e02222;
  --bu-page-bg: #f4f5f7;
  --bu-slate-50: #f8fafc;
  --bu-slate-100: #f1f5f9;
  --bu-slate-200: #e2e8f0;
  --bu-slate-300: #cbd5e1;
  --bu-slate-400: #94a3b8;
  --bu-slate-500: #64748b;
  --bu-slate-700: #334155;
  --bu-slate-900: #0f172a;
  --bu-radius: 0.5rem;
  --bu-radius-lg: 0.75rem;
  --bu-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
  --bu-shadow-md: 0 4px 16px rgba(15, 23, 42, 0.08);
  --bu-header-top-h: 3.75rem;
  --bu-header-cat-h: 3rem;
  --bu-header-h: calc(var(--bu-header-top-h) + var(--bu-header-cat-h));
}

html {
  font-size: 15px;
  position: relative;
  min-height: 100%;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--bu-slate-700);
  background: var(--bu-page-bg);
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
  background: var(--bu-page-bg);
}

.bu-main {
  background: var(--bu-page-bg);
}

a {
  text-decoration: none;
}

/* Header — hepsiemlak-style two-row layout */
.bu-header {
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 1030;
  box-shadow: 0 1px 0 var(--bu-slate-200), 0 4px 16px rgba(15, 23, 42, 0.06);
}

.bu-header-top {
  border-bottom: 1px solid var(--bu-slate-200);
}

.bu-header-top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--bu-header-top-h);
}

.bu-brand {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--bu-slate-900);
  letter-spacing: -0.03em;
  line-height: 1;
  flex-shrink: 0;
}

.bu-brand span {
  color: var(--bu-primary);
}

.bu-brand-domain {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--bu-slate-900);
  margin-left: 0;
}

.bu-header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem 1rem;
  flex-wrap: wrap;
}

.bu-header-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.65rem;
  color: var(--bu-slate-700);
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 4px;
  white-space: nowrap;
  transition: color 0.15s;
}

.bu-header-link:hover {
  color: var(--bu-primary);
}

.bu-header-link-muted {
  color: var(--bu-slate-500);
}

.bu-header-link-muted:hover {
  color: var(--bu-primary-dark);
}

.bu-header-account .dropdown-toggle::after {
  margin-left: 0.35rem;
}

.bu-btn-header-cta {
  padding: 0.55rem 1.1rem;
  font-size: 0.875rem;
  border-radius: 4px;
  white-space: nowrap;
}

.bu-header-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 1px solid var(--bu-slate-200);
  border-radius: 4px;
  background: #fff;
}

.bu-header-toggle span {
  display: block;
  width: 1.15rem;
  height: 2px;
  margin: 0 auto;
  background: var(--bu-slate-700);
  border-radius: 1px;
}

@media (max-width: 991.98px) {
  .bu-header-top-inner {
    flex-wrap: wrap;
    align-items: center;
    padding-top: 0.65rem;
    padding-bottom: 0.65rem;
  }

  .bu-header-actions {
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
    padding: 0.75rem 0 0.25rem;
    border-top: 1px solid var(--bu-slate-100);
  }

  .bu-header-actions:not(.show) {
    display: none;
  }

  .bu-header-link {
    justify-content: flex-start;
    padding: 0.55rem 0.25rem;
  }

  .bu-btn-header-cta {
    width: 100%;
    margin-top: 0.25rem;
  }
}

/* Category nav */
.bu-category-nav {
  background: #fff;
  border-bottom: 1px solid var(--bu-slate-200);
}

.bu-category-list {
  display: flex;
  align-items: stretch;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.bu-category-list::-webkit-scrollbar {
  display: none;
}

.bu-category-link {
  display: inline-flex;
  align-items: center;
  height: var(--bu-header-cat-h);
  padding: 0 1rem;
  color: var(--bu-slate-700);
  font-weight: 600;
  font-size: 0.9375rem;
  border-bottom: 3px solid transparent;
  white-space: nowrap;
  transition: color 0.15s, border-color 0.15s;
}

.bu-category-link:hover {
  color: var(--bu-primary);
}

.bu-category-link.active {
  color: var(--bu-primary);
  border-bottom-color: var(--bu-primary);
}

.bu-nav-link {
  color: var(--bu-slate-700);
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.75rem 0.9rem !important;
}

.bu-nav-link:hover,
.bu-nav-link.active {
  color: var(--bu-primary);
}

.bu-search {
  max-width: 420px;
  width: 100%;
}

.bu-search .form-control {
  border-radius: 999px;
  border-color: var(--bu-slate-200);
  background: var(--bu-slate-50);
  padding-left: 2.5rem;
  font-size: 0.9rem;
}

.bu-search .form-control:focus {
  border-color: var(--bu-primary);
  box-shadow: 0 0 0 0.2rem rgba(224, 34, 34, 0.15);
  background: #fff;
}

.bu-search-icon {
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--bu-slate-400);
  pointer-events: none;
}

.bu-btn-primary {
  background: var(--bu-primary);
  border-color: var(--bu-primary);
  color: #fff;
  font-weight: 700;
  border-radius: 4px;
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
}

.bu-btn-primary:hover,
.bu-btn-primary:focus {
  background: var(--bu-primary-dark);
  border-color: var(--bu-primary-dark);
  color: #fff;
}

.bu-btn-dark {
  background: var(--bu-slate-900);
  border-color: var(--bu-slate-900);
  color: #fff;
  font-weight: 700;
  border-radius: 999px;
}

.bu-btn-dark:hover {
  background: var(--bu-primary-dark);
  border-color: var(--bu-primary-dark);
  color: #fff;
}

.bu-nav-badge {
  font-size: 0.65rem;
  vertical-align: super;
}

/* Hero / search panel — hepsiemlak-style photo + overlay */
.bu-hero {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: clamp(22rem, 52vh, 32rem);
  padding: 3.5rem 0 3rem;
  color: #fff;
  border-bottom: none;
}

.bu-hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.bu-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  transform: scale(1.03);
}

.bu-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.15) 0%, rgba(80, 10, 10, 0.52) 55%, rgba(110, 16, 16, 0.72) 100%),
    linear-gradient(135deg, rgba(224, 34, 34, 0.38) 0%, rgba(40, 8, 8, 0.55) 100%);
}

.bu-hero-inner {
  position: relative;
  z-index: 1;
}

.bu-hero-title {
  font-size: clamp(1.65rem, 3.8vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 0.75rem;
  color: #fff;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.25);
}

.bu-hero-title strong {
  font-weight: 800;
}

.bu-hero-sub {
  color: rgba(255, 255, 255, 0.9);
  max-width: 720px;
  margin: 0 auto 1.75rem;
  font-size: 1.05rem;
  line-height: 1.55;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.2);
}

.bu-hero .bu-search-panel {
  max-width: 920px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.22);
}

.bu-hero-chips {
  margin-top: 1.35rem;
}

.bu-hero .bu-city-chip {
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  backdrop-filter: blur(4px);
}

.bu-hero .bu-city-chip:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.bu-hero .bu-city-chip-all {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.75);
  color: #fff;
}

.bu-search-panel {
  background: #fff;
  border: 1px solid var(--bu-slate-200);
  border-radius: var(--bu-radius-lg);
  box-shadow: var(--bu-shadow-md);
  overflow: hidden;
}

.bu-search-tabs {
  display: flex;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--bu-slate-200);
  background: var(--bu-slate-50);
}

.bu-search-tab {
  padding: 0.75rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--bu-slate-500);
  border: none;
  background: transparent;
  border-bottom: 3px solid transparent;
  text-decoration: none;
}

.bu-search-tab:hover {
  color: var(--bu-primary);
}

.bu-search-tab.active {
  color: var(--bu-primary);
  background: #fff;
  border-bottom-color: var(--bu-primary);
}

.bu-search-body {
  padding: 1rem;
}

.bu-search-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.75rem;
  align-items: center;
}

@media (max-width: 767px) {
  .bu-search-row {
    grid-template-columns: 1fr;
  }
}

.bu-search-input-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--bu-slate-200);
  border-radius: 4px;
  padding: 0.35rem 0.75rem;
  background: #fff;
}

.bu-search-input-wrap:focus-within {
  border-color: var(--bu-primary);
  box-shadow: 0 0 0 0.15rem rgba(224, 34, 34, 0.12);
}

.bu-search-input-wrap input {
  border: none;
  outline: none;
  width: 100%;
  font-size: 0.9rem;
  background: transparent;
}

.bu-city-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.bu-city-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.85rem;
  border-radius: 4px;
  border: 1px solid var(--bu-slate-200);
  background: #fff;
  color: var(--bu-slate-700);
  font-size: 0.8rem;
  font-weight: 600;
  transition: border-color 0.15s, color 0.15s;
}

.bu-city-chip:hover {
  border-color: var(--bu-primary);
  color: var(--bu-primary);
}

.bu-city-chip-all {
  background: var(--bu-primary-light);
  border-color: rgba(224, 34, 34, 0.25);
  color: var(--bu-primary-dark);
}

/* Breadcrumb & list toolbar */
.bu-breadcrumb {
  font-size: 0.8rem;
  color: var(--bu-slate-500);
  margin-bottom: 1rem;
}

.bu-breadcrumb a {
  color: var(--bu-slate-500);
}

.bu-breadcrumb a:hover {
  color: var(--bu-primary);
}

.bu-breadcrumb span {
  color: var(--bu-slate-900);
  font-weight: 600;
}

.bu-list-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 0 0 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--bu-slate-100);
}

.bu-surface-panel .bu-list-toolbar {
  padding-top: 0;
}

.bu-vitrin-scroll {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(280px, 1fr);
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scroll-snap-type: x mandatory;
}

.bu-vitrin-scroll > * {
  scroll-snap-align: start;
}

.bu-feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.bu-hero-badge {
  display: none;
}

/* Sections */
.bu-section {
  padding: 3rem 0;
}

.bu-section-compact {
  padding: 1.75rem 0 2.5rem;
}

.bu-surface-panel {
  background: #fff;
  border: 1px solid var(--bu-slate-200);
  border-radius: var(--bu-radius-lg);
  padding: 1.5rem 1.25rem;
  box-shadow: var(--bu-shadow);
}

@media (min-width: 768px) {
  .bu-surface-panel {
    padding: 1.75rem 2rem;
  }

  .bu-surface-panel.bu-filter-sidebar {
    padding: 0;
  }
}

.bu-surface-panel-sticky {
  position: sticky;
  top: calc(var(--bu-header-h) + 0.75rem);
}

.bu-surface-panel.bu-filter-sidebar {
  position: sticky;
  top: calc(var(--bu-header-h) + 0.75rem);
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - var(--bu-header-h) - 1.5rem);
  padding: 0;
  overflow: hidden;
}

.bu-surface-panel .bu-filter-panel {
  background: transparent;
  border: none;
  padding: 0;
  border-radius: 0;
  position: static;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.bu-filter-form {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.bu-filter-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 0 1.25rem 0.75rem;
  scrollbar-width: thin;
  scrollbar-color: var(--bu-slate-300) transparent;
}

.bu-filter-body::-webkit-scrollbar {
  width: 6px;
}

.bu-filter-body::-webkit-scrollbar-thumb {
  background: var(--bu-slate-300);
  border-radius: 999px;
}

.bu-filter-actions {
  flex-shrink: 0;
  padding: 0.85rem 1.25rem 1rem;
  border-top: 1px solid var(--bu-slate-200);
  background: #fff;
  box-shadow: 0 -8px 20px rgba(15, 23, 42, 0.06);
}

.bu-filter-actions .btn {
  padding-top: 0.65rem;
  padding-bottom: 0.65rem;
}

.bu-filter-clear {
  display: block;
  margin-top: 0.65rem;
  text-align: center;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--bu-slate-500);
}

.bu-filter-clear:hover {
  color: var(--bu-primary);
}

.bu-section-alt {
  background: var(--bu-slate-50);
  border-top: 1px solid var(--bu-slate-200);
}

.bu-section-steps {
  background: var(--bu-page-bg);
  padding: 2rem 0 4rem;
  border-top: 1px solid var(--bu-slate-200);
}

.bu-section-steps .bu-section-sub {
  margin-bottom: 1.75rem;
}

.bu-step-card {
  background: var(--bu-slate-50);
  border: 1px solid var(--bu-slate-200);
  border-radius: var(--bu-radius-lg);
  padding: 1.35rem 1.5rem;
  height: 100%;
}

.bu-step-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.75rem;
  height: 1.75rem;
  padding: 0 0.5rem;
  margin-bottom: 0.85rem;
  border-radius: 999px;
  background: var(--bu-primary-light);
  color: var(--bu-primary-dark);
  font-size: 0.75rem;
  font-weight: 800;
}

.bu-step-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--bu-slate-900);
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.bu-step-text {
  color: var(--bu-slate-500);
  font-size: 0.875rem;
  line-height: 1.55;
  margin-bottom: 0;
}

.bu-section-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--bu-slate-900);
  letter-spacing: -0.02em;
  margin-bottom: 0.35rem;
}

.bu-section-sub {
  color: var(--bu-slate-500);
  margin-bottom: 2rem;
  max-width: 640px;
}

/* Listing cards */
.listing-card {
  background: #fff;
  border: 1px solid var(--bu-slate-200);
  border-radius: var(--bu-radius-lg);
  padding: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s, border-color 0.2s;
  overflow: hidden;
}

.listing-card:hover {
  box-shadow: var(--bu-shadow-md);
  border-color: rgba(224, 34, 34, 0.25);
}

.listing-card-icon {
  width: 100%;
  height: 180px;
  flex-shrink: 0;
}

.listing-card-body {
  padding: 1rem 1.1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.listing-card-grid .listing-card-right {
  padding: 0 1.1rem 1rem;
  border-top: 1px solid var(--bu-slate-100);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}

.listing-card-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.75rem;
}

.listing-card-badge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  background: var(--bu-primary-light);
  color: var(--bu-primary-dark);
}

.listing-card-badge-muted {
  background: var(--bu-slate-100);
  color: var(--bu-slate-500);
}

.listing-card-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--bu-slate-900);
  letter-spacing: -0.01em;
  margin-bottom: 0.5rem;
  line-height: 1.35;
}

.listing-card-title a {
  color: inherit;
}

.listing-card-title a:hover {
  color: var(--bu-primary-dark);
}

.listing-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  font-size: 0.8rem;
  color: var(--bu-slate-500);
  margin-bottom: 1rem;
}

.listing-card-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.listing-card-footer {
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid var(--bu-slate-100);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.listing-card-budget {
  font-weight: 800;
  color: var(--bu-primary);
  font-size: 1.05rem;
  white-space: nowrap;
}

.listing-card-link {
  color: var(--bu-primary);
  font-weight: 700;
  font-size: 0.85rem;
}

.listing-card-link:hover {
  color: var(--bu-primary-dark);
}

/* Horizontal Listing Card */
.listing-card-horizontal {
  flex-direction: row;
  padding: 0;
  overflow: hidden;
  align-items: stretch;
}

.listing-card-horizontal .listing-card-icon {
  width: 240px !important;
  height: auto !important;
  min-height: 168px;
  flex-shrink: 0;
}

.listing-card-horizontal .listing-card-body {
  flex: 1;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
}

.listing-card-horizontal .listing-card-right {
  width: 200px;
  padding: 1rem 1.15rem;
  border-left: 1px solid var(--bu-slate-100);
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: right;
  flex-shrink: 0;
  gap: 0.75rem;
}

.listing-card-horizontal .listing-card-footer {
  display: none; /* Hide default footer in horizontal mode if not needed */
}

@media (max-width: 768px) {
  .listing-card-horizontal {
    flex-direction: column;
  }
  .listing-card-horizontal .listing-card-icon {
    width: 100% !important;
    height: 200px !important;
  }
  .listing-card-horizontal .listing-card-right {
    width: 100%;
    border-left: none;
    border-top: 1px solid var(--bu-slate-100);
    text-align: left;
    flex-direction: row;
    align-items: center;
  }
}

/* Filter panel */
.bu-filter-panel {
  background: #fff;
  border: 1px solid var(--bu-slate-200);
  padding: 0;
  border-radius: var(--bu-radius-lg);
  box-shadow: var(--bu-shadow);
}

.bu-filter-title {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--bu-slate-900);
  margin-bottom: 0.85rem;
  padding: 1rem 1.25rem 0;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
}

.bu-filter-panel .form-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--bu-slate-500);
}

.bu-filter-panel .form-select,
.bu-filter-panel .form-control {
  border-radius: 4px;
  border-color: var(--bu-slate-200);
  background: #fff;
  font-size: 0.875rem;
  border-top: none;
  border-left: none;
  border-right: none;
  border-bottom: 1px solid var(--bu-slate-300);
  padding-left: 0;
}

.bu-filter-panel .form-select:focus,
.bu-filter-panel .form-control:focus {
  border-color: var(--bu-primary);
  box-shadow: 0 0 0 0.15rem rgba(224, 34, 34, 0.12);
}

/* Footer — hepsiemlak-style light layout */
.bu-footer {
  margin-top: auto;
  background: #fff;
  border-top: 1px solid var(--bu-slate-200);
}

.bu-footer-main {
  padding: 2.75rem 0 2.25rem;
}

.bu-footer-brand {
  display: inline-block;
  margin-bottom: 0.85rem;
}

.bu-footer-brand .bu-brand-domain {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--bu-slate-900);
}

.bu-footer-desc {
  color: var(--bu-slate-500);
  font-size: 0.875rem;
  line-height: 1.6;
  max-width: 320px;
  margin-bottom: 1.25rem;
}

.bu-footer-social {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.bu-footer-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid var(--bu-slate-200);
  border-radius: 999px;
  color: var(--bu-slate-500);
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.bu-footer-social-link:hover {
  color: var(--bu-primary);
  border-color: rgba(224, 34, 34, 0.35);
  background: var(--bu-primary-light);
}

.bu-footer-title {
  color: var(--bu-slate-900);
  font-weight: 800;
  font-size: 0.8125rem;
  letter-spacing: 0.01em;
  margin-bottom: 0.85rem;
}

.bu-footer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.bu-footer-nav a,
.bu-footer-legal a {
  color: var(--bu-slate-500);
  font-size: 0.8125rem;
  line-height: 1.4;
  transition: color 0.15s;
}

.bu-footer-nav a:hover,
.bu-footer-legal a:hover {
  color: var(--bu-primary);
}

.bu-footer-bottom {
  background: var(--bu-slate-50);
  border-top: 1px solid var(--bu-slate-200);
  padding: 1rem 0;
}

.bu-footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.bu-footer-copy {
  color: var(--bu-slate-500);
  font-size: 0.75rem;
}

.bu-footer-legal {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
}

@media (max-width: 767.98px) {
  .bu-footer-main {
    padding: 2rem 0 1.75rem;
  }

  .bu-footer-bottom-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Utilities */
.bu-page-header {
  margin-bottom: 1.5rem;
}

.bu-link-all {
  color: var(--bu-primary);
  font-weight: 700;
  font-size: 0.9rem;
}

.bu-link-all:hover {
  color: var(--bu-primary-dark);
}

.btn:focus,
.form-control:focus,
.form-select:focus {
  box-shadow: 0 0 0 0.15rem rgba(224, 34, 34, 0.2);
}

/* Form panels */
.bu-form-panel {
  background: #fff;
  border: 1px solid var(--bu-slate-200);
  border-radius: var(--bu-radius-lg);
  padding: 1.75rem;
}

.bu-form-panel .form-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--bu-slate-700);
}

.bu-form-panel .form-control,
.bu-form-panel .form-select {
  border-radius: var(--bu-radius);
  border-color: var(--bu-slate-200);
  background: var(--bu-slate-50);
}

.bu-form-panel .form-control:focus,
.bu-form-panel .form-select:focus {
  border-color: var(--bu-primary);
  background: #fff;
}

.bu-form-section {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--bu-slate-500);
  margin: 1.5rem 0 0.75rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--bu-slate-100);
}

.bu-form-section:first-of-type {
  margin-top: 0;
}

/* Page header */
.bu-page-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

/* Stat cards (admin) */
.bu-stat-card {
  background: #fff;
  border: 1px solid var(--bu-slate-200);
  border-radius: var(--bu-radius-lg);
  padding: 1.35rem;
  height: 100%;
}

.bu-stat-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--bu-slate-500);
  margin-bottom: 0.35rem;
}

.bu-stat-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--bu-slate-900);
  letter-spacing: -0.02em;
}

.bu-stat-card-accent {
  border-color: rgba(224, 34, 34, 0.25);
  background: linear-gradient(135deg, #fff 0%, var(--bu-primary-light) 100%);
}

/* Tables */
.bu-table-panel {
  background: #fff;
  border: 1px solid var(--bu-slate-200);
  border-radius: var(--bu-radius-lg);
  overflow: hidden;
}

.bu-table-panel .table {
  margin-bottom: 0;
}

.bu-table-panel thead th {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--bu-slate-500);
  background: var(--bu-slate-50);
  border-bottom: 1px solid var(--bu-slate-200);
  padding: 0.85rem 1.25rem;
}

.bu-table-panel tbody td {
  padding: 1rem 1.25rem;
  vertical-align: middle;
  border-bottom: 1px solid var(--bu-slate-100);
}

.bu-table-panel tbody tr:last-child td {
  border-bottom: none;
}

/* Notifications */
.bu-notification-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.bu-notification-item {
  background: #fff;
  border: 1px solid var(--bu-slate-200);
  border-radius: var(--bu-radius-lg);
  padding: 1.15rem 1.35rem;
}

.bu-notification-item.unread {
  border-color: rgba(224, 34, 34, 0.25);
  background: linear-gradient(135deg, #fff 0%, var(--bu-primary-light) 100%);
}

.bu-notification-title {
  font-weight: 800;
  color: var(--bu-slate-900);
  margin-bottom: 0.25rem;
}

/* Alert rule cards */
.bu-rule-card {
  background: #fff;
  border: 1px solid var(--bu-slate-200);
  border-radius: var(--bu-radius-lg);
  padding: 1.25rem 1.35rem;
}

.bu-empty-state {
  background: var(--bu-slate-50);
  border: 1px dashed var(--bu-slate-200);
  border-radius: var(--bu-radius-lg);
  padding: 2.5rem 1.5rem;
  text-align: center;
  color: var(--bu-slate-500);
}

.bu-btn-outline {
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.85rem;
}

/* Favorites */
.bu-favorite-action { margin-bottom: 1rem; }
.bu-favorite-btn {
  border: 1px solid var(--bu-slate-200);
  background: #fff;
  color: var(--bu-slate-700);
  font-weight: 700;
  font-size: .85rem;
  border-radius: 4px;
  padding: .45rem .9rem;
  width: 100%;
  transition: background .15s, border-color .15s, color .15s;
}
.bu-favorite-btn:hover { border-color: var(--bu-primary); color: var(--bu-primary); }
.bu-favorite-btn.is-active {
  background: var(--bu-primary-light);
  border-color: var(--bu-primary);
  color: var(--bu-primary-dark);
}
.bu-favorite-btn-sm {
  width: auto;
  padding: .2rem .55rem;
  font-size: .75rem;
  line-height: 1.2;
}
.listing-card-right .bu-favorite-action { margin-bottom: .35rem; width: 100%; }

.listing-card-gold {
  border: 2px solid #f0b429;
  box-shadow: 0 4px 18px rgba(240, 180, 41, .18);
}

.listing-badge-gold {
  background: linear-gradient(135deg, #ffd54f, #f0b429);
  color: #5c4a00;
  font-weight: 800;
}

.listing-badge-urgent {
  background: #dc3545;
  color: #fff;
  font-weight: 800;
}

.listing-promo-gold {
  border-top: 4px solid #f0b429;
}

.listing-promo-urgent {
  border-top: 4px solid #dc3545;
}

/* Admin panel */
.admin-body { background: #f4f5f7; }
.admin-shell { display: flex; min-height: 100vh; }
.admin-sidebar {
  width: 240px;
  background: #1a1d24;
  color: #fff;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}
.admin-brand {
  padding: 1.25rem 1rem;
  font-weight: 800;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.admin-brand a { color: #fff; text-decoration: none; }
.admin-nav { padding: .75rem 0; flex: 1; }
.admin-nav-link {
  display: block;
  padding: .55rem 1rem;
  color: rgba(255,255,255,.75);
  text-decoration: none;
  font-size: .9rem;
}
.admin-nav-link:hover { background: rgba(255,255,255,.06); color: #fff; }
.admin-nav-link.active {
  background: rgba(240, 106, 41, .18);
  color: #ffb380;
  border-left: 3px solid var(--bu-orange);
}
.admin-sidebar-footer { padding: .75rem 0; border-top: 1px solid rgba(255,255,255,.08); }
.admin-main { flex: 1; padding: 1.5rem 2rem; overflow-x: auto; }
@media (max-width: 768px) {
  .admin-shell { flex-direction: column; }
  .admin-sidebar { width: 100%; }
  .admin-nav { display: flex; flex-wrap: wrap; gap: .25rem; padding: .5rem; }
  .admin-nav-link { padding: .4rem .65rem; border-radius: .35rem; }
}
.listing-card-right .bu-favorite-btn { width: 100%; }

/* Detail List */
.bu-detail-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.bu-detail-list li {
  display: flex;
  justify-content: space-between;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--bu-slate-100);
  font-size: 0.85rem;
}
.bu-detail-list li:last-child {
  border-bottom: none;
}
.bu-detail-list-label {
  color: var(--bu-slate-500);
  font-weight: 500;
}
.bu-detail-list-value {
  color: var(--bu-slate-900);
  font-weight: 700;
  text-align: right;
  max-width: 60%;
}
.bu-profile-card {
  background: #fff;
  border: 1px solid var(--bu-slate-200);
  border-radius: var(--bu-radius);
  padding: 1.5rem;
  text-align: center;
}
.bu-profile-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--bu-slate-200);
  margin-bottom: 0.75rem;
}

/* ============================================================
   LISTING CARDS — hepsiemlak-style  (lc-*)
   ============================================================ */

/* -- Shared type badge (overlaid on image or standalone) -- */
.lc-type-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.25rem 0.65rem;
  border-radius: 4px;
  letter-spacing: 0.01em;
  pointer-events: none;
}
.lc-badge-devren   { background: #fff3cd; color: #856404; }
.lc-badge-ortak    { background: #d1e7dd; color: #0a3622; }
.lc-badge-bayilik  { background: #cfe2ff; color: #084298; }
.lc-badge-komisyon { background: #ede9fe; color: #5b21b6; }
.lc-badge-dayanisma { background: #dcfce7; color: #166534; }
.lc-devren-offer {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  line-height: 1.2;
  vertical-align: middle;
}
.lc-devren-kiralik { background: #dbeafe; color: #1d4ed8; }
.lc-devren-satilik { background: #ffedd5; color: #c2410c; }
.lc-dayanisma-kind {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  line-height: 1.2;
  vertical-align: middle;
  letter-spacing: 0.03em;
}
.lc-dayanisma-teklif { background: #dcfce7; color: #166534; }
.lc-dayanisma-talep { background: #fef3c7; color: #b45309; }
.lc-h-img .lc-dayanisma-kind,
.lc-g-img .lc-dayanisma-kind {
  position: absolute;
  top: 2.4rem;
  left: 8px;
  z-index: 2;
}
.lc-h-img .lc-devren-offer {
  position: absolute;
  top: 2.4rem;
  left: 8px;
  z-index: 2;
}
.lc-g-img .lc-devren-offer {
  position: absolute;
  top: 2.4rem;
  left: 8px;
  z-index: 2;
}

.bu-devren-offer-chips {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem;
  padding: 0 0.25rem;
}
.bu-devren-offer-chips-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--bu-slate-500);
  margin-right: 0.15rem;
}
.bu-devren-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--bu-slate-200);
  background: #fff;
  color: var(--bu-slate-700);
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.15s ease;
}
.bu-devren-chip:hover {
  border-color: var(--bu-primary);
  color: var(--bu-primary);
}
.bu-devren-chip.active {
  background: var(--bu-primary);
  border-color: var(--bu-primary);
  color: #fff;
}

/* -- Overlay badges (VİTRİN / ACİL) -- */
.lc-overlay-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 3;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  pointer-events: none;
}
.lc-overlay-gold   { background: linear-gradient(135deg,#ffd54f,#f0b429); color: #5c4a00; }
.lc-overlay-urgent { background: #dc3545; color: #fff; }

/* -- Favorite button overlaid on image -- */
.lc-fav-overlay {
  position: absolute;
  bottom: 8px;
  right: 8px;
  z-index: 4;
}

/* -- Shared price / date -- */
.lc-price {
  font-weight: 900;
  color: var(--bu-primary);
  font-size: 1.1rem;
  white-space: nowrap;
  letter-spacing: -0.02em;
}
.lc-date {
  font-size: 0.78rem;
  color: var(--bu-slate-400);
}

/* == HORIZONTAL card (list view) == */
.lc-h {
  display: flex;
  background: #fff;
  border: 1px solid var(--bu-slate-200);
  border-radius: var(--bu-radius-lg);
  overflow: hidden;
  transition: box-shadow 0.18s, border-color 0.18s;
}
.lc-h:hover {
  box-shadow: 0 6px 24px rgba(15,23,42,.1);
  border-color: rgba(224,34,34,.25);
}
.lc-gold {
  border: 2px solid #f0b429;
  box-shadow: 0 4px 18px rgba(240,180,41,.18);
}

.lc-h-img {
  width: 260px;
  min-height: 180px;
  max-height: 200px;
  flex-shrink: 0;
  overflow: hidden;
}
.lc-h-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.3s; }
.lc-h:hover .lc-h-img img { transform: scale(1.03); }

.lc-h-body {
  flex: 1;
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  padding: 1rem 1.25rem;
  gap: 1rem;
  min-width: 0;
}
.lc-h-main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.lc-h-top  { margin-bottom: 0.2rem; }

.lc-h-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--bu-slate-900);
  line-height: 1.35;
  margin-bottom: 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.lc-h-title a:hover { color: var(--bu-primary-dark); }

.lc-h-location {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.82rem;
  color: var(--bu-slate-500);
}

.lc-h-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 0.25rem;
  flex-shrink: 0;
  min-width: 180px;
  border-left: 1px solid var(--bu-slate-100);
  padding-left: 1.25rem;
}

@media (max-width: 768px) {
  .lc-h { flex-direction: column; }
  .lc-h-img { width: 100%; min-height: 200px; max-height: 220px; }
  .lc-h-body { flex-direction: column; padding: 0.85rem 1rem; }
  .lc-h-right { align-items: flex-start; border-left: none; border-top: 1px solid var(--bu-slate-100); padding-left: 0; padding-top: 0.75rem; min-width: unset; }
}

/* == GRID card == */
.lc-g {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--bu-slate-200);
  border-radius: var(--bu-radius-lg);
  overflow: hidden;
  transition: box-shadow 0.18s, border-color 0.18s;
}
.lc-g:hover {
  box-shadow: 0 6px 24px rgba(15,23,42,.1);
  border-color: rgba(224,34,34,.25);
}

.lc-g-img {
  width: 100%;
  height: 210px;
  overflow: hidden;
  display: block;
  flex-shrink: 0;
}
.lc-g-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.3s; }
.lc-g:hover .lc-g-img img { transform: scale(1.04); }

.lc-g-body {
  padding: 0.85rem 1rem 0.5rem;
  flex: 1;
}
.lc-g-sector { font-size: 0.78rem; color: var(--bu-slate-400); margin-bottom: 0.3rem; }
.lc-g-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--bu-slate-900);
  line-height: 1.35;
  margin-bottom: 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.lc-g-title a:hover { color: var(--bu-primary-dark); }

.lc-g-footer {
  padding: 0.65rem 1rem 0.85rem;
  border-top: 1px solid var(--bu-slate-100);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ============================================================
   DETAIL PAGE  (det-*)
   ============================================================ */

/* Gallery */
.det-gallery { border-radius: var(--bu-radius-lg); overflow: hidden; }
.det-carousel-inner { border-radius: var(--bu-radius-lg); background: #000; }
.det-gallery-img {
  max-height: 480px;
  min-height: 300px;
  object-fit: cover;
  border-radius: var(--bu-radius-lg);
  display: block;
  width: 100%;
}
.det-photo-counter {
  position: absolute;
  bottom: 12px;
  right: 14px;
  background: rgba(0,0,0,.55);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  pointer-events: none;
}
.det-no-photo {
  height: auto;
  background: var(--bu-slate-100);
  border-radius: var(--bu-radius-lg);
  overflow: hidden;
}
.lc-g-img img,
.lc-h-img img {
  display: block;
}
.lc-img-placeholder {
  object-fit: contain;
  background: var(--bu-slate-50);
}

/* Title row */
.det-title-row { display: flex; flex-direction: column; gap: 0.5rem; }
.det-title {
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  font-weight: 900;
  color: var(--bu-slate-900);
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin: 0;
}
.det-badges { display: flex; flex-wrap: wrap; gap: 0.4rem; }

/* Meta pills */
.det-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  font-size: 0.82rem;
  color: var(--bu-slate-500);
}
.det-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

/* Features card */
.det-features-card {
  background: #fff;
  border: 1px solid var(--bu-slate-200);
  border-radius: var(--bu-radius-lg);
  overflow: hidden;
}
.det-features-title {
  background: var(--bu-slate-50);
  border-bottom: 1px solid var(--bu-slate-200);
  padding: 0.65rem 1.1rem;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--bu-slate-500);
}
.det-features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.det-feature-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.75rem 1.1rem;
  border-bottom: 1px solid var(--bu-slate-100);
  border-right: 1px solid var(--bu-slate-100);
}
.det-feature-item:nth-child(even) { border-right: none; }
.det-feature-item:last-child,
.det-feature-item:nth-last-child(2):nth-child(odd) { border-bottom: none; }
.det-feature-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--bu-slate-400);
}
.det-feature-value {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--bu-slate-900);
}

/* Description card */
.det-desc-card {
  background: #fff;
  border: 1px solid var(--bu-slate-200);
  border-radius: var(--bu-radius-lg);
  overflow: hidden;
}
.det-desc-body {
  padding: 1.1rem 1.25rem 1.25rem;
}
.det-description {
  white-space: pre-line;
  line-height: 1.75;
  color: var(--bu-slate-700);
  font-size: 0.93rem;
  transition: max-height 0.3s;
}
.det-show-more {
  display: none;
  background: none;
  border: none;
  color: var(--bu-primary);
  font-weight: 700;
  font-size: 0.875rem;
  padding: 0.5rem 0 0;
  cursor: pointer;
  margin-top: 0.25rem;
}

/* Action toolbar */
.det-action-card {
  background: #fff;
  border: 1px solid var(--bu-slate-200);
  border-radius: var(--bu-radius-lg);
  padding: 0.85rem 1rem;
}
.det-action-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
}
.det-action-btn,
.det-action-bar .bu-favorite-toolbar-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  width: 100%;
  min-height: 42px;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--bu-slate-200);
  border-radius: var(--bu-radius);
  background: var(--bu-slate-50);
  color: var(--bu-slate-700);
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none;
  line-height: 1.2;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.det-action-btn:hover,
.det-action-bar .bu-favorite-toolbar-btn:hover {
  background: #fff;
  border-color: var(--bu-primary);
  color: var(--bu-primary-dark);
}
.det-action-btn.is-copied,
.det-action-bar .bu-favorite-toolbar-btn.is-copied {
  border-color: rgba(34, 197, 94, 0.45);
  background: #f0fdf4;
  color: #15803d;
}
.det-action-bar .bu-favorite-action-toolbar {
  margin: 0;
  min-width: 0;
}
.det-action-bar .bu-favorite-action-toolbar form {
  width: 100%;
}
.det-action-bar .bu-favorite-toolbar-btn.is-active {
  background: var(--bu-primary-light);
  border-color: var(--bu-primary);
  color: var(--bu-primary-dark);
}
.det-action-bar .bu-favorite-toolbar-btn.is-active:hover {
  background: #fde8e8;
}

@media (max-width: 767px) {
  .det-action-bar {
    grid-template-columns: 1fr;
  }
  .det-action-btn span,
  .det-action-bar .bu-favorite-toolbar-btn span {
    display: inline;
  }
}

/* Contact card */
.det-contact-card {
  background: #fff;
  border: 1px solid var(--bu-slate-200);
  border-radius: var(--bu-radius-lg);
  padding: 1.35rem 1.5rem;
}
.det-contact-price {
  font-size: 1.65rem;
  font-weight: 900;
  color: var(--bu-primary);
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.det-contact-location {
  font-size: 0.82rem;
  color: var(--bu-slate-500);
  display: flex;
  align-items: center;
  margin-top: 0.3rem;
}

/* Owner */
.det-owner {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}
.det-owner-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--bu-slate-200);
  flex-shrink: 0;
}
.det-owner-avatar-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--bu-slate-100);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--bu-slate-400);
}
.det-owner-name {
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--bu-slate-900);
}
.det-owner-badge {
  font-size: 0.78rem;
  color: #0a6ebd;
  font-weight: 700;
  display: flex;
  align-items: center;
}

/* Login prompt */
.det-login-prompt {
  text-align: center;
  padding: 0.5rem 0;
}

