/* Sahiplen - arayuz stilleri
   Bootstrap uzerine ince bir katman: renk paleti, baslik cubugu, filtre
   paneli ve ilan kartlari. */

:root {
  --sh-header: #242c3f;
  --sh-header-dark: #1b2233;
  --sh-yellow: #ffe800;
  --sh-link: #3b6ea5;
  --sh-price: #c00000;
  --sh-border: #dfe2e6;
  --sh-panel: #f6f7f9;
  --sh-breadcrumb: #eef0f3;
  --sh-highlight: #fffbe6;
}

body {
  background: #fff;
  color: #333;
  font-size: 0.875rem;
}

a {
  color: var(--sh-link);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ------------------------------------------------------------- baslik */
.site-header {
  background: var(--sh-header);
  color: #fff;
}

.brand {
  background: var(--sh-yellow);
  color: #111 !important;
  font-weight: 800;
  font-size: 1.15rem;
  padding: 0.35rem 0.6rem;
  border-radius: 3px;
  white-space: nowrap;
  line-height: 1.1;
}

.brand:hover {
  text-decoration: none;
}

.brand span {
  font-weight: 600;
}

.brand-footer {
  display: inline-block;
}

.search-form {
  max-width: 420px;
  min-width: 200px;
}

.search-form .form-control {
  border: none;
  font-size: 0.85rem;
}

.search-form .form-control:focus {
  box-shadow: none;
}

.btn-search {
  background: #fff;
  border: none;
  color: #666;
}

.header-link {
  color: #dfe3ea !important;
  font-size: 0.82rem;
  white-space: nowrap;
}

.header-link:hover {
  color: #fff !important;
}

.header-user {
  color: #9fb0c9;
  font-size: 0.82rem;
  white-space: nowrap;
}

.btn-post-listing {
  background: #2b7fd4;
  border-color: #2b7fd4;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
}

.btn-post-listing:hover {
  background: #2569b0;
  color: #fff;
}

.breadcrumb-bar {
  background: var(--sh-breadcrumb);
  border-bottom: 1px solid var(--sh-border);
  font-size: 0.78rem;
  padding: 0.45rem 0;
}

.breadcrumb-bar span {
  color: #999;
}

/* ------------------------------------------------------- filtre paneli */
.filter-panel {
  position: sticky;
  top: 0.75rem;
}

.filter-block {
  border: 1px solid var(--sh-border);
  border-radius: 4px;
  margin-bottom: 0.75rem;
  background: #fff;
}

.filter-block > .filter-title {
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.55rem 0.75rem;
  border-bottom: 1px solid var(--sh-border);
  background: var(--sh-panel);
  border-radius: 4px 4px 0 0;
}

.filter-body {
  padding: 0.7rem 0.75rem;
}

.filter-body.scrollable {
  max-height: 240px;
  overflow-y: auto;
}

.filter-option {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.15rem 0;
  font-size: 0.82rem;
}

.filter-option label {
  cursor: pointer;
  flex: 1;
  margin: 0;
}

.filter-option .count {
  color: #999;
  font-size: 0.75rem;
}

.filter-option.is-empty label,
.filter-option.is-empty .count {
  color: #bbb;
}

.currency-tabs .btn {
  --bs-btn-padding-y: 0.15rem;
  --bs-btn-padding-x: 0.5rem;
  --bs-btn-font-size: 0.75rem;
}

.filter-panel .form-control,
.filter-panel .form-select {
  font-size: 0.82rem;
}

.btn-apply-filters {
  background: #2b7fd4;
  border-color: #2b7fd4;
  color: #fff;
  font-weight: 600;
  width: 100%;
}

.btn-apply-filters:hover {
  background: #2569b0;
  color: #fff;
}

.active-filters .badge {
  background: #eef4fb;
  color: #2b6cab;
  border: 1px solid #cfe0f2;
  font-weight: 500;
}

/* -------------------------------------------------------- sonuc alani */
.result-header {
  border: 1px solid var(--sh-border);
  border-radius: 4px;
  padding: 0.6rem 0.85rem;
  margin-bottom: 0.75rem;
  background: #fff;
}

.result-count strong {
  color: var(--sh-price);
}

.listing-card {
  border: 1px solid var(--sh-border);
  border-radius: 4px;
  background: #fff;
  height: 100%;
  display: flex;
  overflow: hidden;
  transition: box-shadow 0.15s ease;
}

.listing-card:hover {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.09);
}

.listing-card .thumb {
  width: 140px;
  min-width: 140px;
  background: var(--sh-panel);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.listing-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.listing-card .thumb .placeholder-icon {
  color: #c4c9d0;
  font-size: 1.75rem;
}

.listing-card .body {
  padding: 0.6rem 0.75rem;
  flex: 1;
  min-width: 0;
}

.listing-no {
  color: #999;
  font-size: 0.72rem;
}

.listing-title {
  font-weight: 600;
  font-size: 0.86rem;
  line-height: 1.3;
  display: block;
  margin: 0.1rem 0 0.25rem;
}

.listing-price {
  color: var(--sh-price);
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 0.3rem;
}

.listing-meta {
  font-size: 0.78rem;
  color: #555;
  line-height: 1.55;
}

.listing-meta dt {
  display: inline;
  font-weight: 400;
  color: #777;
}

.listing-meta dd {
  display: inline;
  margin: 0 0 0 0.2rem;
  font-weight: 600;
  color: #333;
}

.listing-meta .row-item {
  display: block;
}

.status-badge {
  font-size: 0.68rem;
  font-weight: 600;
  padding: 0.15rem 0.5rem;
  border-radius: 10px;
}

.status-published { background: #d4edda; color: #1c6b34; }
.status-pending   { background: #fff3cd; color: #8a6100; }
.status-rejected  { background: #f8d7da; color: #a01f2c; }
.status-draft     { background: #e2e3e5; color: #4a4f55; }

/* --------------------------------------------------------- detay sayfa */
.gallery-main {
  border: 1px solid var(--sh-border);
  border-radius: 4px;
  overflow: hidden;
  background: var(--sh-panel);
}

.gallery-main img {
  width: 100%;
  max-height: 460px;
  object-fit: cover;
  display: block;
}

.gallery-thumbs img {
  width: 84px;
  height: 62px;
  object-fit: cover;
  border: 1px solid var(--sh-border);
  border-radius: 3px;
  cursor: pointer;
}

.gallery-thumbs img.active {
  border-color: #2b7fd4;
  box-shadow: 0 0 0 2px rgba(43, 127, 212, 0.25);
}

.spec-table th {
  width: 45%;
  font-weight: 500;
  color: #666;
  background: var(--sh-panel);
}

.spec-table td {
  font-weight: 600;
}

.detail-price {
  color: var(--sh-price);
  font-size: 1.6rem;
  font-weight: 700;
}

/* ------------------------------------------------------------- formlar */
.auth-card,
.form-card {
  border: 1px solid var(--sh-border);
  border-radius: 4px;
  background: #fff;
}

.form-section-title {
  font-weight: 700;
  font-size: 0.9rem;
  padding-bottom: 0.4rem;
  margin-bottom: 0.9rem;
  border-bottom: 1px solid var(--sh-border);
}

.image-tile {
  position: relative;
  border: 1px solid var(--sh-border);
  border-radius: 4px;
  overflow: hidden;
}

.image-tile img {
  width: 100%;
  height: 110px;
  object-fit: cover;
  display: block;
}

.image-tile .cover-flag {
  position: absolute;
  top: 4px;
  left: 4px;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  font-size: 0.65rem;
  padding: 0.1rem 0.35rem;
  border-radius: 3px;
}

.image-tile .remove-btn {
  position: absolute;
  top: 4px;
  right: 4px;
}

/* -------------------------------------------------------------- footer */
.site-footer {
  background: var(--sh-panel);
  border-top: 1px solid var(--sh-border);
}

.footer-title {
  font-weight: 700;
  font-size: 0.82rem;
  margin-bottom: 0.4rem;
}

.site-footer li {
  margin-bottom: 0.15rem;
}

/* -------------------------------------------------------------- mobil */
@media (max-width: 991.98px) {
  .listing-card .thumb {
    width: 110px;
    min-width: 110px;
  }

  .filter-panel {
    position: static;
  }
}
