/* Container and row */
.emlakx-container {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.emlakx-search-results-page {
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
}

@media (min-width: 1200px) {
    .emlakx-search-results-page.container-fluid {
        padding-left: 50px !important;
        padding-right: 50px !important;
    }
}

.emlakx-row {
  --bs-gutter-x: 1rem;
  --bs-gutter-y: 1.5rem;
}

/* Card */
.emlakx-card {
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  background: #fff;
  border: 1px solid #eee !important;
  display: flex;
  flex-direction: column;
}

.emlakx-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Image */
.emlakx-img-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/11;
}

.emlakx-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.emlakx-card:hover .emlakx-card-img {
  transform: scale(1.1);
}

/* Badges */
.emlakx-discount-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #f59e0b; /* Orange/Amber */
  color: #fff;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  z-index: 10;
}

.emlakx-price-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #1e3a8a; /* Deep Blue */
  color: #fff !important;
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 700;
  z-index: 10;
}

/* Finance section */
.emlakx-finance {
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
  font-size: 0.85rem;
  background: #fff;
  padding: 12px 15px !important;
}

.emlakx-finance small {
  color: #6b7280;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
}

.emlakx-finance strong, 
.emlakx-cash-text {
  color: #132f66; /* Matching the dark blue in image */
  font-size: 0.95rem;
  font-weight: 700;
}

.emlakx-finance .vr {
  width: 1px;
  background-color: #eee;
  opacity: 1;
}

/* Sidebar & Filters Global */
.page-sidebar-main {
    border: 1px solid #eee;
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
}

.emlakx-sidebar-filter {
    position: sticky;
    top: 100px;
    z-index: 10;
}

.emlakx-sidebar-filter select, 
.emlakx-sidebar-filter input {
    height: 45px !important;
    border-radius: 8px !important;
    border-color: #eee !important;
    font-size: 0.9rem !important;
    background-color: #fff !important;
}

.emlakx-sidebar-filter .form-group label {
    font-weight: 500;
    margin-bottom: 6px;
    display: block;
    color: #4b5563;
}

/* Common Search/Filter Buttons */
.emlakx-search-btn {
    background: #132f66 !important;
    color: #fff !important;
    font-weight: 600 !important;
    border: none !important;
    padding: 8px 18px !important;
    transition: all 0.2s ease !important;
}

.emlakx-search-btn:hover {
    background: #1a3a7a !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1) !important;
}

/* Sidebar Input Group Modernized */
.page-sidebar-main .input-group {
    border: 1px solid #e5e7eb !important;
    border-radius: 8px !important;
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #fff;
}

.page-sidebar-main .input-group:focus-within {
    border-color: #132f66 !important;
    box-shadow: 0 0 0 3px rgba(19, 47, 102, 0.1) !important;
}

.page-sidebar-main .input-group .input-group-text {
    background: #fff !important;
    border: none !important;
    color: #9ca3af !important;
    padding-right: 5px !important;
}

.page-sidebar-main .input-group .form-control {
    border: none !important;
    box-shadow: none !important;
    height: 45px !important;
    padding-left: 10px !important;
}

.page-sidebar-main .input-group .btn {
    border-radius: 0 !important;
    margin: 0 !important;
    height: 45px !important;
}

html[dir="rtl"] .page-sidebar-main .input-group .input-group-text {
    padding-left: 5px !important;
    padding-right: 15px !important;
}

.emlakx-search-results-page .emlakx-card {
    height: 100%;
}

.emlakx-card-body h6 {
  font-weight: 700;
  font-size: 0.95rem;
  color: #111827;
  margin-bottom: 8px;
  line-height: 1.4;
}

.emlakx-card-body p {
  color: #6b7280;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 0.825rem;
  line-height: 1.6;
  margin-bottom: 0;
  min-height: 3rem; /* Increased for 'longer' look */
}

/* Footer */
.emlakx-card-footer {
  font-size: 0.75rem;
  background: #fff;
  padding: 12px 15px !important;
  border-top: 1px solid #f1f5f9;
}

.emlakx-location {
  color: #4b5563;
  font-weight: 500;
  display: flex !important;
  align-items: center;
  gap: 6px;
}

.emlakx-flag {
  width: 20px;
  height: 14px;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
  display: inline-block;
}

.emlakx-status-badge {
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
}

/* Land Card Specifics */
.emlakx-land-card .emlakx-main-price {
  color: #132f66;
  font-size: 1.5rem;
  font-weight: 800;
}

.emlakx-land-card .emlakx-unit {
  font-size: 1.2rem;
  font-weight: 600;
}

.emlakx-exclusive-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #132f66;
  color: #fff;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  z-index: 2;
}

.emlakx-featured-badge {
  background: #10b981; /* Green branding */
  color: #fff;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  z-index: 2;
}

.emlakx-land-card .card-title {
  font-size: 0.95rem;
  line-height: 1.4;
  color: #1f2937;
}

.emlakx-area-info strong {
  font-size: 0.9rem;
  color: #132f66;
  font-weight: 700;
}

/* Resale Card specific */
.emlakx-resale-card .emlakx-finance {
  background: #f8fafc;
}

.emlakx-resale-card .card-title {
  color: #132f66 !important;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.4;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 2.8em;
}

.emlakx-resale-val {
  color: #132f66 !important;
  font-weight: 800 !important;
}

.emlakx-area-info i {
  color: #132f66 !important;
}

.emlakx-status-badge.text-success {
  color: #10b981 !important;
  background: rgba(16, 185, 129, 0.1);
  padding: 2px 8px;
  border-radius: 4px;
}

/* Responsive tweaks */
@media (max-width: 575.98px) {
  .emlakx-img-wrap {
    aspect-ratio: 16/11;
  }
  .emlakx-finance {
    padding: 8px 10px !important;
  }
}

/* show more button */
.emlakx-showmore-wrap {
  margin-top: 20px;
}

.emlakx-showmore {
  background-color: #132f66;
  color: #fff;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 6px;
  border: none;
  transition: background 0.2s ease-in-out;
  text-decoration: none;
  display: inline-block;
}

.emlakx-showmore:hover {
  background-color: #0f244d;
  color: #fff;
}

a.btn.emlakx-showmore {
    text-decoration: none;
}
/* RTL support */
html[dir="rtl"] .emlakx-card {
  text-align: right;
}

html[dir="rtl"] .emlakx-finance {
  direction: rtl;
}

html[dir="rtl"] .emlakx-badge-discount {
  left: auto !important;
  right: 10px;
}

html[dir="rtl"] .emlakx-badge-price {
  left: auto !important;
  right: 12px;
}

/* for detail page */
.emlakx-project-detail { max-width: 1200px; margin: auto; padding: 20px; }
.emlakx-hero img { width: 100%; max-height: 500px; object-fit: cover; }
.emlakx-facts ul, .emlakx-services ul, .emlakx-location-info ul { list-style: none; padding: 0; }
.emlakx-facts li, .emlakx-services li, .emlakx-location-info li { margin: 5px 0; }
.emlakx-rooms table { width: 100%; border-collapse: collapse; margin-top: 20px; }
.emlakx-rooms th, .emlakx-rooms td { border: 1px solid #ddd; padding: 8px; text-align: center; }
.emlakx-related-grid { display: flex; gap: 20px; flex-wrap: wrap; }
.emlakx-related-card { flex: 1 1 30%; text-decoration: none; color: inherit; }
.emlakx-related-card img { width: 100%; border-radius: 8px; }

/* Not found */
/* Wrapper */
/* Full wrapper */
/* Card */
/* Empty State */
.emlakx-empty-card {
  background: #fff;
  border-radius: 5px;
  padding: 50px 40px;
  width: 100%;
  text-align: center;
  box-shadow: 0 20px 45px rgba(0,0,0,0.06), 0 4px 15px rgba(0,0,0,0.03);
  transition: transform .25s ease, box-shadow .25s ease;
}
.emlakx-empty-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 25px 55px rgba(0,0,0,0.08);
}
.emlakx-empty-art img {
  max-width: 200px;
  margin-bottom: 25px;
  opacity: 0.95;
}
.emlakx-empty-card h2 {
  font-size: 1.8rem;
  font-weight: 700;
  margin: 0 0 12px;
  color: #111827;
}
.emlakx-empty-card p {
  font-size: 1rem;
  color: #6b7280;
  margin: 0 0 30px;
  line-height: 1.6;
}
.emlakx-btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  background: #132f66;
  color: #fff;
  box-shadow: 0 6px 15px rgba(37,99,235,0.25);
  transition: all .3s ease;
}
.emlakx-btn:hover {
  background: #132f66;
  color:#fff;
  box-shadow: 0 8px 20px rgba(37,99,235,0.35);
  transform: translateY(-2px);
}

/* ==== Lands Card ==== */
.emlakx-lands-card {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.2s ease-in-out;
  background: #fff;
}
.emlakx-lands-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}
.emlakx-lands-img {
  height: 180px;
  object-fit: cover;
  transition: transform 0.3s ease-in-out;
}
.emlakx-lands-card:hover .emlakx-lands-img {
  transform: scale(1.08);
}
.emlakx-lands-badge {
  position: absolute;
  top: 10px;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #fff;
}
.emlakx-lands-badge.featured { left: 10px; background: #10b981; }
.emlakx-lands-badge.exclusive { right: 10px; background: #1e3a8a; }

.emlakx-lands-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: #0d3b84;
}
.emlakx-lands-price strong {
  font-size: 1.2rem;
  margin-right: 4px;
}

.emlakx-lands-card h6 {
  font-size: 1rem;
  font-weight: 600;
  color: #0d3b84;
}

.emlakx-lands-card .emlakx-location {
  font-size: 0.85rem;
  color: #374151;
  display: flex;
  align-items: center;
  gap: 4px;
}

.emlakx-lands-area {
  font-weight: 600;
  color: #0d3b84;
}

.emlakx-flag {
  width: 20px;
  height: auto;
  border-radius: 2px;
}

/* ===== Resale Cards ===== */
.emlakx-resale-card {
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.2s ease-in-out;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  margin-bottom: 10px;
  background: #fff;
  position: relative;
}

.emlakx-resale-card:hover {
  transform: translateY(-5px);
}

/* Image */
.emlakx-resale-img-wrap {
  position: relative;
}

.emlakx-resale-img {
  height: 220px;
  width: 100%;
  object-fit: cover;
  border-bottom: 1px solid #eee;
  transition: transform 0.3s ease-in-out;
}
.emlakx-resale-card:hover .emlakx-resale-img {
  transform: scale(1.08);
}

/* Badges */
.emlakx-resale-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #132f66;
  color: #fff;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  z-index: 2;
}

.emlakx-resale-badge.featured {
  background: #28a745; /* green */
}
.emlakx-resale-badge.exclusive {
  background: #dc3545; /* red */
}

/* Price */
.emlakx-resale-price {
  font-size: 1rem;
  font-weight: 700;
  color: #132f66;
}

.emlakx-resale-price span {
  font-size: 0.85rem;
  font-weight: 500;
  color: #374151;
}

/* Body */
.emlakx-card-body h6 {
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.3;
  margin-bottom: 0.5rem;
}

/* Footer */
.emlakx-card-footer {
  font-size: 0.8rem;
  background: #fff;
  border-top: 1px solid #eee;
  padding: 6px 10px;
}

.emlakx-card-footer span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.emlakx-flag {
  width: 18px;
  height: auto;
  border-radius: 2px;
  vertical-align: middle;
}

/* Responsive tweaks */
@media (max-width: 575.98px) {
  .emlakx-resale-img { height: 160px; }
  .emlakx-resale-price { font-size: 0.9rem; }
  .emlakx-card-body h6 { font-size: 0.85rem; }
  .emlakx-card-footer { font-size: 0.7rem; flex-direction: column; align-items: flex-start; }
}

@media (max-width: 767.98px) {
  .emlakx-resale-price { font-size: 0.95rem; }
  .emlakx-card-body h6 { font-size: 0.9rem; }
}

/* EmlakX Universal Filter Styles */
.emlakx-uf { width:100%; }
/* EmlakX Universal Filter - Premium Modern Style */
.emlakx-uf { 
    width: 100%; 
    margin-bottom: 30px;
}

.emlakx-uf__form {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 0;
    background: #fff;
    padding: 8px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border: 1px solid #edf2f7;
    overflow: hidden;
}

.emlakx-uf__search {
    flex: 2;
    position: relative;
    display: flex;
    align-items: center;
    border-right: 1px solid #eee;
    padding-left: 15px;
}

.emlakx-uf__search-icon {
    color: #a0aec0;
    font-size: 16px;
    margin-right: 10px;
}

.emlakx-uf__search input {
    border: none !important;
    padding: 12px 5px !important;
    font-size: 15px;
    width: 100%;
    outline: none !important;
    box-shadow: none !important;
    background: transparent !important;
}

.emlakx-uf__select, 
.emlakx-uf__control {
    flex: 1;
    border: none !important;
    border-right: 1px solid #eee !important;
    background: transparent !important;
    font-size: 14px;
    font-weight: 500;
    color: #4a5568;
    padding: 12px 15px !important;
    height: auto !important;
}

.emlakx-uf__select:last-of-type {
    border-right: none !important;
}

.emlakx-uf__submit {
    background: #132f66;
    color: #fff !important;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 15px;
    transition: all 0.3s ease;
    margin-left: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.emlakx-uf__submit:hover {
    background: #1a3a7a;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(19, 47, 102, 0.2);
}

/* Specific input widths */
.emlakx-uf__select[name="status"] { flex: 0.8; }
.emlakx-uf__control { flex: 0.5; min-width: 80px; }

/* Responsive Grid for Tablets/Phones */
@media (max-width: 991px) {
    .emlakx-uf__form {
        flex-wrap: wrap;
        padding: 15px;
        gap: 10px;
    }
    .emlakx-uf__search,
    .emlakx-uf__select,
    .emlakx-uf__control {
        flex: 1 1 calc(50% - 10px) !important;
        border: 1px solid #eee !important;
        border-radius: 8px !important;
        white-space: nowrap;
    }
    .emlakx-uf__submit {
        flex: 1 1 100%;
        margin-left: 0;
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .emlakx-uf__search {
        flex: 1 1 100% !important;
        margin-bottom: 5px;
    }
    .emlakx-uf__field,
    .emlakx-uf__select,
    .emlakx-uf__control {
        flex: 1 1 calc(50% - 5px) !important;
        min-width: 0 !important;
    }
}

.emlakx-uf__results-wrap {
  position: relative;
  min-height: 100px;
}

.emlakx-uf__loader {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
  display: none;
  text-align: center;
  z-index: 20;
}

.emlakx-loader {
  border: 4px solid #f3f3f3;
  border-top: 4px solid #132f66;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: emlakx-spin 1s linear infinite;
  margin: auto;
}

@keyframes emlakx-spin {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.emlakx-uf__loader span {
  display: block;
  margin-top: 8px;
  font-size: 14px;
  color: #132f66;
}

.col-6.col-md-4.emlakx-col {
    margin-bottom: 20px;
}

/* ===== Pagination ===== */
.pagination .page-link {
  border-radius: 6px;
  margin: 0 2px;
  color: #1e3a8a;
  text-decoration: none !important;
}

.pagination .active .page-link {
  background: #1e3a8a;
  color: #fff;
  border-color: #1e3a8a;
  text-decoration: none;
}

.pagination .disabled .page-link {
  color: #aaa;
}
.emlakx-uf__price .form-control {
  font-size: 14px;
  padding: 10px;
}

.emlakx-uf__price .form-label {
  font-weight: 600;
  color: #1e3a8a;
  margin-bottom: 6px;
}

/* RTL support for search input */
html[dir="rtl"] .emlakx-uf__search {
  flex-direction: row-reverse; /* flip input + icon */
  display: flex;
}

html[dir="rtl"] .emlakx-uf__search .emlakx-uf__search-icon {
  border-radius: 0 4px 4px 0; /* rounded on right side now */
  border-left: 1px solid #ddd;
  border-right: 0;
}

html[dir="rtl"] .emlakx-uf__search .form-control {
  text-align: right; /* keep placeholder on the right */
  border-radius: 4px 0 0 4px; /* rounded on left side */
}

/* Search Results Page & Sidebar */
.emlakx-search-page {
    padding-top: 40px;
    padding-bottom: 60px;
    background-color: #f8f9fa;
}

/* Search Page Content Styles */
.emlakx-search-results-page .emlakx-card {
    height: 100%;
}

.emlakx-search-results-page h4 {
    margin-bottom: 25px;
    font-weight: 700;
    color: #111827;
}
.emlakx-sidebar-form .form-control {
    border-radius: 8px;
    border: 1px solid #ddd;
    padding: 10px 15px;
    height: auto;
    font-size: 14px;
}

.emlakx-sidebar-form .form-control:focus {
    border-color: #132f66;
    box-shadow: 0 0 0 0.2rem rgba(19, 47, 102, 0.1);
}

.emlakx-sidebar-form .btn-primary {
    transition: all 0.3s ease;
}

.emlakx-sidebar-form .btn-primary:hover {
    background: #0d214a !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(19, 47, 102, 0.2);
}

/* Ensure results are in a nice grid */
#emlakx-search-results-container .row {
    margin-left: -10px;
    margin-right: -10px;
}

#emlakx-search-results-container [class*="col-"] {
    padding-left: 10px;
    padding-right: 10px;
    margin-bottom: 20px;
}

/* Pagination Styling in Search Page */
.emlakx-pagination {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.emlakx-pagination a, .emlakx-pagination span {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #fff;
    color: #132f66;
    text-decoration: none;
    border: 1px solid #ddd;
    transition: all 0.3s ease;
}

.emlakx-pagination .current {
    background: #132f66;
    color: #fff;
    border-color: #132f66;
}

.emlakx-pagination a:hover {
    background: #e9ecef;
}

@media (max-width: 768px) {
    .emlakx-sidebar-filter {
        position: static;
        margin-top: 20px;
    }
    .emlakx-search-page {
        padding-top: 20px;
    }
}
