/* ===== Sidebar ===== */
.emlakx-resales .page-sidebar-main {
  border: 1px solid #eee;
  border-radius: 8px;
  background: #fff;
}

.emlakx-resales .page-sidebar-main .sticky-top {
  top: 90px;
  z-index: 10;
}

/* Sidebar form spacing */
.emlakx-resales .page-sidebar .form-group label {
  font-weight: 500;
  margin-bottom: 4px;
  display: block;
}

.emlakx-resales .page-sidebar .form-control {
  border-radius: 6px;
  font-size: 14px;
}

/* ===== Search Bar ===== */
.emlakx-resales .input-group .input-group-text {
  background: #fff;
  border-right: 0;
  border-radius: 6px 0 0 6px;
}

.emlakx-resales .input-group .form-control {
  border-left: 0;
  border-right: 0;
}

.emlakx-resales .input-group .btn {
  border-radius: 0 6px 6px 0;
  background: #1e3a8a;
  border-color: #1e3a8a;
  color: #fff;
}

.emlakx-resales .input-group .btn:hover {
  background: #162e6d;
  border-color: #162e6d;
}

/* ===== Pagination ===== */
.emlakx-resales .pagination .page-link {
  border-radius: 6px;
  margin: 0 2px;
  color: #1e3a8a;
}

.emlakx-resales .pagination .active .page-link {
  background: #1e3a8a;
  color: #fff;
  border-color: #1e3a8a;
}

.emlakx-resales .pagination .disabled .page-link {
  color: #aaa;
}

/* Grid tweaks */
.emlakx-resales .col-6.col-md-4.emlakx-col {
  margin-bottom: 4px;
  padding: 6px;
}

/* Search button (global override) */
.btn.emlakx-search-btn {
  background: #1e3a8a;
  border-color: #1e3a8a;
  color: #fff;
}
.btn.emlakx-search-btn:hover {
  background: #162e6d;
  border-color: #162e6d;
}

/* ===== RTL Support ===== */
body.rtl .emlakx-resales {
  direction: rtl;
  text-align: right;
}

/* Flip input-group for RTL */
body.rtl .emlakx-resales .input-group .input-group-text {
  border-radius: 0 6px 6px 0 !important;
  border-left: 0;
  border-right: 1px solid #ced4da;
}

body.rtl .emlakx-resales .input-group .form-control {
  border-right: 0;
  border-left: 0;
}

body.rtl .emlakx-resales .input-group .btn {
  border-radius: 6px 0 0 6px !important;
}

/* Align form labels and selects */
body.rtl .emlakx-resales .page-sidebar .form-group label {
  text-align: right;
}

body.rtl .emlakx-resales select.form-control,
body.rtl .emlakx-resales input.form-control {
  padding-right: .75rem;
  padding-left: .25rem;
}

html[dir="rtl"] .emlakx-resales .row.mb-3 .col:first-child {
  text-align: right;
}
html[dir="rtl"] .emlakx-resales .row.mb-3 .col.text-end {
  text-align: left !important;
}

/* Filter toggle */
button#filterToggleBtn {
  border: none;
  box-shadow: none;
  color: #1e3a8a;
}
button#filterToggleBtn:hover {
  background-color: #1e3a8a !important;
  color: #fff !important;
}

/* Collapse */
.collapse { display: none; transition: all 0.3s ease; }
.collapse.show { display: block; }
