:root {
  --brand: #f97316;
  --brand-dark: #ea580c;
  --brand-soft: #fff7ed;
  --header-dark: #0f1218;
  --bg-soft: #f4f6f9;
  --bg-page: radial-gradient(1200px 600px at 10% -10%, rgba(249, 115, 22, 0.08), transparent 55%),
    radial-gradient(900px 500px at 90% 0%, rgba(99, 102, 241, 0.06), transparent 50%),
    #eef1f6;
  --card-border: #e2e8f0;
  --text: #0f172a;
  --muted: #64748b;
  --surface: rgba(255, 255, 255, 0.72);
  --surface-solid: #ffffff;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 12px 40px rgba(15, 23, 42, 0.08);
  --radius-lg: 1rem;
  --radius-xl: 1.25rem;
  --bs-primary: #f97316;
  --bs-primary-rgb: 249, 115, 22;
  --bs-link-color: #ea580c;
  --bs-link-hover-color: #c2410c;
}

body {
  font-family: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: var(--bg-soft);
}

.btn-primary {
  background-color: var(--brand);
  border-color: var(--brand);
}
.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--brand-dark);
  border-color: var(--brand-dark);
}

/* ——— Ön yüz: modern marketplace ——— */
.front-marketplace {
  background: var(--bg-page);
  min-height: 100vh;
}

.front-main-wrap {
  max-width: 1600px;
  margin-left: auto;
  margin-right: auto;
}

.front-topbar {
  background: linear-gradient(135deg, #1a1f2e 0%, #12151c 100%);
  color: #fff;
  box-shadow: var(--shadow-md);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.front-topbar--glass {
  /* backdrop-filter Popper/Bootstrap dropdown konumunu bozar (menü ekranda kayar) */
  background: linear-gradient(135deg, rgba(26, 31, 46, 0.98) 0%, rgba(18, 21, 28, 0.995) 100%);
}

/* Üst çubuk: Kategoriler açılır menüsü tetikleyicinin altında kalsın */
.front-nav-categories {
  position: relative;
}

.front-nav-categories .dropdown-menu {
  z-index: 1060;
}

.front-header-row {
  min-height: 3.25rem;
}

.front-search-pill {
  display: flex;
  align-items: stretch;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  max-width: 720px;
  margin: 0 auto;
}

.front-search-pill-input {
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 0.65rem 1rem;
  font-size: 0.95rem;
}

.front-search-pill-btn {
  background: transparent;
  border: none;
  padding: 0 1.1rem;
  font-size: 1.25rem;
  line-height: 1;
  color: var(--muted);
}

.front-search-pill-btn:hover {
  background: rgba(0, 0, 0, 0.06);
  color: var(--brand-dark);
}

.front-search-meta .front-search-il::placeholder {
  color: rgba(255, 255, 255, 0.55);
}

.front-promo-banner {
  background: linear-gradient(105deg, #ffedd5 0%, #fdba74 45%, #f97316 100%);
  color: #431407;
  border-bottom: 1px solid rgba(234, 88, 12, 0.15);
}

.front-promo-banner--modern {
  background: linear-gradient(120deg, #0f172a 0%, #1e293b 38%, #c2410c 92%, #ea580c 100%);
  color: #f8fafc;
  border-bottom: none;
  box-shadow: 0 16px 48px rgba(15, 23, 42, 0.2);
}

.front-promo-eyebrow {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(248, 250, 252, 0.65);
}

.front-promo-headline {
  font-family: "Outfit", "DM Sans", sans-serif;
  font-weight: 700;
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: #fff;
}

.front-promo-lead {
  font-size: 0.9rem;
  color: rgba(248, 250, 252, 0.78);
  max-width: 36rem;
}

.front-promo-cta {
  border-radius: 999px;
  font-weight: 600;
  padding: 0.45rem 1.15rem;
  border: none;
}

.front-promo-cta--dark {
  background: rgba(15, 23, 42, 0.55);
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.front-promo-cta--dark:hover {
  background: rgba(15, 23, 42, 0.75);
  color: #fff !important;
}

.front-promo-cta--light {
  background: #fff;
  color: #c2410c !important;
}

.front-promo-cta--light:hover {
  background: #fff7ed;
  color: #9a3412 !important;
}

.front-promo-title {
  color: #7c2d12;
}

.front-promo-close {
  position: absolute;
  top: 0.5rem;
  right: 0.65rem;
  z-index: 2;
  font-size: 0.7rem;
  color: rgba(248, 250, 252, 0.7);
  opacity: 0.9;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  padding: 0.2rem 0.65rem;
  background: rgba(15, 23, 42, 0.35);
}

.front-promo-close:hover {
  opacity: 1;
  color: #fff;
  background: rgba(15, 23, 42, 0.5);
}

.front-promo-banner--modern .front-promo-close {
  color: rgba(248, 250, 252, 0.85);
}

.front-glass-card {
  background: var(--surface);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(226, 232, 240, 0.8) !important;
  border-radius: var(--radius-lg) !important;
  box-shadow: var(--shadow-sm);
}

.front-chip-row {
  gap: 0.5rem !important;
}

.front-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--muted);
  background: var(--surface-solid);
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.front-chip:hover {
  color: var(--brand-dark);
  border-color: rgba(249, 115, 22, 0.35);
  transform: translateY(-1px);
}

.front-chip--active {
  background: linear-gradient(135deg, #1e293b, #0f172a);
  color: #fff !important;
  border-color: transparent;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.2);
}

.front-section-title {
  font-family: "Outfit", "DM Sans", sans-serif;
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  color: var(--text);
}

.front-section-sub {
  font-size: 0.8rem;
}

.front-empty-state {
  border-radius: var(--radius-xl) !important;
  background: var(--surface-solid);
}

.front-empty-icon {
  width: 3rem;
  height: 3rem;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 1rem;
  background: linear-gradient(135deg, #fff7ed, #ffedd5);
  color: var(--brand-dark);
  font-size: 1.25rem;
}

.front-empty-text {
  max-width: 420px;
}

.front-side-quick-wrap .front-quick-link {
  display: block;
  padding: 0.5rem 0.85rem;
  font-size: 0.8rem;
  color: #334155;
  text-decoration: none;
  border-bottom: 1px solid #f1f5f9;
}

.front-side-quick-wrap .front-quick-link:hover {
  background: var(--brand-soft);
  color: var(--brand-dark);
}

.front-side-quick-wrap .front-quick--active {
  background: #fff7ed;
  font-weight: 600;
  color: var(--brand-dark);
  box-shadow: inset 3px 0 0 var(--brand);
}

.front-side-quick-wrap .front-quick--emergency {
  font-weight: 600;
}

.front-side-quick-wrap .front-quick--all {
  border-bottom: none;
  color: #64748b;
}

/* Sahibinden tarzı vitrin — daha küçük kartlar için ek sütun + sıkı boşluk */
.front-vitrin-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
}

@media (min-width: 400px) {
  .front-vitrin-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 576px) {
  .front-vitrin-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.55rem;
  }
}

@media (min-width: 768px) {
  .front-vitrin-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

@media (min-width: 992px) {
  .front-vitrin-grid {
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0.55rem;
  }
}

@media (min-width: 1200px) {
  .front-vitrin-grid {
    grid-template-columns: repeat(8, minmax(0, 1fr));
  }
}

@media (min-width: 1400px) {
  .front-vitrin-grid {
    grid-template-columns: repeat(9, minmax(0, 1fr));
  }
}

.front-vitrin-cell {
  min-width: 0;
}

.front-vitrin-all {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--brand-dark) !important;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: rgba(249, 115, 22, 0.1);
}

.front-vitrin-all:hover {
  background: rgba(249, 115, 22, 0.18);
  color: #9a3412 !important;
}

.front-logo-badge {
  background: var(--brand);
  color: #fff;
  padding: 0.35rem 0.75rem;
  border-radius: 0.35rem;
  font-size: 0.95rem;
  letter-spacing: -0.02em;
}

.front-search .form-control:focus {
  box-shadow: none;
  border-color: #ced4da;
}

.front-search-icon {
  font-size: 1.1rem;
  line-height: 1;
}

.btn-ilan-ver {
  background: var(--brand);
  color: #fff !important;
  border: none;
  border-radius: 0.35rem;
  white-space: nowrap;
}
.btn-ilan-ver:hover {
  background: var(--brand-dark);
  color: #fff !important;
}

.front-side-cats {
  font-size: 0.875rem;
}

.front-cat-root {
  color: inherit;
}
.front-cat-root:hover {
  background: var(--brand-soft);
}
.front-cat-root.is-active {
  background: var(--brand-soft);
  box-shadow: inset 3px 0 0 var(--brand);
}

.front-cat-icon {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  flex-shrink: 0;
  background: #e5e7eb;
}
.front-cat-icon--emlak {
  background: linear-gradient(135deg, #fb923c, #ea580c);
  box-shadow: 0 1px 4px rgba(234, 88, 12, 0.35);
}
.front-cat-icon--vasita {
  background: linear-gradient(135deg, #f87171, #dc2626);
  box-shadow: 0 1px 4px rgba(220, 38, 38, 0.3);
}
.front-cat-icon--other {
  background: linear-gradient(135deg, #fdba74, #f97316);
}

.front-cat-sublink {
  color: #334155;
}
.front-cat-sublink:hover {
  color: var(--brand-dark);
}
.front-cat-sublink--active {
  color: var(--brand-dark) !important;
}

.front-cat-note {
  color: #15803d;
  line-height: 1.35;
}

.front-cat-show-all {
  color: var(--brand-dark);
  background: var(--brand-soft);
}
.front-cat-show-all:hover {
  background: #ffedd5;
  color: #c2410c;
}

.front-card-media {
  position: relative;
  overflow: hidden;
  border-radius: 0.4rem 0.4rem 0 0;
}

.front-card-badge {
  position: absolute;
  top: 0.25rem;
  left: 0.25rem;
  font-size: 0.5rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 0.1rem 0.28rem;
  border-radius: 0.2rem;
  background: rgba(15, 23, 42, 0.82);
  color: #f8fafc;
}

.card-ilan--vitrin .thumb {
  aspect-ratio: 1;
}

.card-ilan--vitrin {
  border: 1px solid #e2e8f0;
  border-radius: 0.4rem;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.card-ilan--vitrin:hover {
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.09);
  transform: translateY(-1px);
  border-color: rgba(249, 115, 22, 0.35);
}

.front-card-body {
  padding: 0.35rem 0.4rem 0.45rem;
}

.front-card-cat {
  font-size: 0.55rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--brand-dark);
  margin-bottom: 0.12rem;
  opacity: 0.88;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-ilan--vitrin .vitrin-title {
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 0.65rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 1.55rem;
  margin-bottom: 0.12rem;
}

.front-card-meta {
  font-size: 0.58rem;
  color: var(--muted);
  margin-bottom: 0.12rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-ilan--vitrin .front-card-price {
  font-size: 0.68rem;
  font-weight: 700;
  margin-top: 0;
  letter-spacing: -0.02em;
}

.tiny {
  font-size: 0.7rem;
}

@media (max-width: 767.98px) {
  .front-search {
    width: 100%;
  }
  .front-chip-row {
    margin-top: 0.25rem;
  }
}

.navbar-brand.fw-bold {
  letter-spacing: -0.02em;
}

.front-hero {
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  color: #fff;
  border-radius: 0 0 1.25rem 1.25rem;
}

.card-ilan {
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
  background: var(--surface-solid);
}

.card-ilan:hover {
  border-color: rgba(249, 115, 22, 0.25);
}

.card-ilan .thumb {
  aspect-ratio: 16/10;
  object-fit: cover;
  width: 100%;
  background: #e2e8f0;
}

.badge-tip {
  background: rgba(255, 106, 0, 0.12);
  color: var(--brand-dark);
  font-weight: 600;
}

.price-tag {
  font-weight: 700;
  color: var(--brand-dark);
  font-size: 1.1rem;
}

.panel-sidebar {
  min-height: 100vh;
  background: linear-gradient(180deg, #1e2229 0%, #141820 100%);
  color: #e2e8f0;
  border-right: 1px solid rgba(249, 115, 22, 0.15);
}

.panel-sidebar a {
  color: #cbd5e1;
  text-decoration: none;
  display: block;
  padding: 0.55rem 1rem;
  border-radius: 0.5rem;
  border-left: 3px solid transparent;
}

.panel-sidebar a:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.panel-sidebar a.active {
  background: rgba(249, 115, 22, 0.12);
  color: #fff;
  border-left-color: var(--brand);
}

.panel-content {
  min-height: 100vh;
}

.stat-card {
  border: 1px solid var(--card-border);
  border-radius: 0.75rem;
  padding: 1rem 1.15rem;
  background: #fff;
}

.table-mobile {
  font-size: 0.9rem;
}

@media (max-width: 767.98px) {
  .panel-sidebar {
    min-height: auto;
  }
  .table-responsive-stack td:before {
    content: attr(data-label);
    font-weight: 600;
    display: block;
    color: var(--muted);
    font-size: 0.75rem;
  }
}

.print-only {
  display: none;
}

@media print {
  .no-print {
    display: none !important;
  }
  .print-only {
    display: block !important;
  }
  body {
    background: #fff;
  }
}
