/* =========================================================
   SEARCH PAGE — PRODUCTION STANDARD CSS
   ========================================================= */

body.search #main h2 { 
    font-size: 20px; 
    line-height: 22px; 
    margin: 10px 0; 
}

/* =========================================================
   SEARCH PAGE — SIDEBAR (MODERNIZED)
   ========================================================= */

#sidebar .filters {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 20px 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

#sidebar h3 {
    font-size: 13px;
    font-weight: 800;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

#sidebar fieldset {
    border: none;
    margin-bottom: 16px;
    padding: 0 0 14px 0;
    border-bottom: 1px solid #f1f5f9;
}

#sidebar fieldset:last-of-type {
    border-bottom: none;
    margin-bottom: 8px;
}

#sidebar input[type="text"],
#sidebar input[type="number"],
#sidebar input[type="date"],
#sidebar input[type="url"],
#sidebar select {
    width: 100%;
    height: 44px;
    background-color: #f8fafc;
    border: 1.5px solid #cbd5e1;
    border-radius: 8px;
    padding: 0 12px;
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    box-sizing: border-box;
    transition: all 0.2s ease;
}

#sidebar input:hover,
#sidebar select:hover {
    background-color: #f0fdf4 !important;
    border-color: #86efac !important;
}

#sidebar input:focus,
#sidebar select:focus {
    background-color: #ffffff !important;
    border-color: #0b8f43 !important;
    box-shadow: 0 0 0 3px rgba(11, 143, 67, 0.12);
    outline: none;
}

.apply-filter-btn,
.apply-section .btn {
    width: 100%;
    height: 46px;
    background: linear-gradient(135deg, #0b8f43 0%, #087638 100%);
    border: none;
    border-radius: 8px;
    color: #ffffff !important;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(11, 143, 67, 0.2);
    transition: all 0.2s ease;
}

.apply-filter-btn:hover,
.apply-section .btn:hover {
    background: linear-gradient(135deg, #0d9e4a 0%, #09833e 100%);
    box-shadow: 0 6px 16px rgba(11, 143, 67, 0.3);
    transform: translateY(-1px);
}

body.search .list-header .actions { float: right; }

body.search h1 { margin: 0 0 22px; font-size: 32px; line-height: 36px; font-weight: 600; }

#related-searches { padding-top: 20px; margin: 20px 0; border-top: 1px solid rgba(0,0,0,.1); }

#related-searches h5 { margin-bottom: 5px; font-size: 15px; }

#related-searches a { font-size: 14px; font-weight: normal; padding: 4px 6px; margin: 0 6px 5px 0; border: 1px solid #0d9ecc; border-radius: 4px; transition: .2s; display: block; float: left; }

#related-searches a:hover { border-color: #000; text-decoration: none; color: #000; }

body.search .listing-grid .listing-card { width: calc(33.33% - 20px); margin: 0 10px 20px; }

/* =========================================================
   SEARCH CARD CONTENT & LOCATION
   ========================================================= */

#search-items .item { 
    background: #fff; 
    border-radius: 12px; 
    overflow: hidden; 
    box-shadow: 0 2px 12px rgba(0,0,0,.08); 
    transition: all .3s cubic-bezier(0.16, 1, 0.3, 1); 
}

#search-items .item:hover { 
    transform: translateY(-4px); 
    box-shadow: 0 16px 32px rgba(0,0,0,.1); 
    border-color: #0b8f43;
}

#search-items .item .data { padding: 14px 16px; }

#search-items .item h3,
#search-items .item .title { margin-bottom: 8px; line-height: 1.4; font-weight: 600; }

#search-items .item .location,
.listing-card .location {
    display: flex !important;
    align-items: center;
    gap: 6px;
    margin: 2px 0 4px 0 !important;
    font-size: 13px;
    color: #64748b;
}

#search-items .currency-value { display: inline-block; margin-top: 8px; }

/* =========================================================
   LISTING CARD CONTAINER & THUMBNAIL (MODERN HOVER)
   ========================================================= */

.listing-card {
    position: relative;
    display: flex !important;
    align-items: stretch !important;
    gap: 16px;
    padding: 16px 20px 16px 16px !important;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
    border: 1px solid #e2e8f0;
    margin-bottom: 16px;
    box-sizing: border-box;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    overflow: hidden !important;
}

/* Modern Listing Hover Effect */
.listing-card:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(11, 143, 67, 0.06) !important;
    border-color: #0b8f43 !important;
}

.listing-card .listing-thumb {
    flex: 0 0 250px !important;
    width: 250px !important;
    height: 165px !important;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.listing-card .listing-thumb img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 10px !important;
    display: block !important;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.listing-card:hover .listing-thumb img {
    transform: scale(1.05) !important;
}

/* =========================================================
   LISTING DETAILS & DESCRIPTION
   ========================================================= */

.listing-card .listing-detail {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
}

.listing-card .listing-top-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 2px;
}

.listing-card .title {
    flex: 1;
    min-width: 0;
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.3;
    margin: 0;
}

.listing-card .listing-price {
    flex: 0 0 auto;
    text-align: right;
}

.listing-card .listing-price .currency-value {
    display: block;
    margin: 0 !important;
    font-size: 22px !important;
    font-weight: 800;
    color: #0f8f3d !important;
    line-height: 1;
}

.listing-actions {
    position: static;
    margin-top: auto;
    padding-top: 4px;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
}

.listing-time {
    color: #94a3b8 !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    margin: 0 !important;
    white-space: nowrap !important;
}

.action-buttons {
    display: flex;
    gap: 8px;
    align-items: center;
}

.action-buttons a {
    text-decoration: none;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.2s ease;
}

.call-btn {
    background: #ffffff !important;
    color: #334155 !important;
    border: 1px solid #cbd5e1;
}

.wa-btn {
    background: #25D366 !important;
    color: #ffffff !important;
    border: none;
}

.details-btn {
    background: #ffffff !important;
    color: #2563eb !important;
    border: 1px solid #bfdbfe;
}

.call-btn:hover { background: #f8fafc !important; }
.wa-btn:hover { background: #1ebe57 !important; }
.details-btn:hover { background: #eff6ff !important; }

.negotiable {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #166534;
    margin-top: 3px;
    text-align: right;
}

.property-features { display: flex; gap: 15px; margin-top: 8px; flex-wrap: wrap; }

.property-features span { font-size: 13px; color: #555; background: #f5f7fa; padding: 4px 8px; border-radius: 6px; }

.listing-description {
    margin: 2px 0 6px 0 !important;
    font-size: 13px;
    color: #475569;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hidden-review { display: none; }

/* =========================================================
   UNIVERSAL SEARCH PAGE STRUCTURE & LAYOUT
   ========================================================= */

.list-header { width: 100%; }

.list-header .resp-wrapper { width: 100%; max-width: 1480px; margin: 0 auto; padding: 0 20px; }

.banner-slider { width: 100%; height: 125px; overflow: hidden; position: relative; margin: 10px 0 18px; border-radius: 6px; background: #f5f5f5; }

.banner-slider img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; opacity: 0; transition: opacity .5s ease; }

.banner-slider img.active { opacity: 1; z-index: 2; }

.list-header h1 { margin: 0 0 8px; font-size: 26px; line-height: 1.25; font-weight: 700; color: #171717; }

.counter-search { display: inline-flex !important; align-items: center; justify-content: center;
    position: static !important; margin-left: 12px !important; padding: 5px 12px; height: 30px; box-sizing: border-box; border: 1px solid #b8e8c8; border-radius: 999px; background: #effbf3; color: #159447 !important; font-size: 13px; font-weight: 600; line-height: 1; vertical-align: middle; white-space: nowrap; }

body.search #content.wrapper {
    width: 100% !important;
    max-width: 1480px !important;
    margin: 0 auto !important;
    padding: 0 16px !important;
    box-sizing: border-box !important;
    display: grid !important;
    grid-template-columns: 230px minmax(0, 788px) minmax(300px, 1fr) !important;
    gap: 16px !important;
    align-items: start !important;
}

body.search #content.wrapper #sidebar {
    width: 230px !important;
}

body.search #content.wrapper #main {
    width: 100% !important;
    min-width: 0 !important;
}

body.search .search-right-sidebar {
    width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
}

body.search #sidebar,
body.search #main {
    clear: none !important;
}

/* =========================================================
   SEARCH RIGHT SIDEBAR & WIDGETS
   ========================================================= */

.search-right-box {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    margin-bottom: 16px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .06);
    box-sizing: border-box;
}

.search-right-title { display: flex; align-items: center; gap: 8px; padding: 14px 16px;
    background: #f8fafc; border-bottom: 1px solid #e5e7eb; font-size: 17px; font-weight: 700; color: #222; }

.search-right-title i { color: #1f7a3d; }

.search-right-content {
    padding: 12px;
    box-sizing: border-box;
}

.right-sidebar-placeholder { text-align: center; padding: 25px 10px; color: #777; }
.right-sidebar-placeholder i { font-size: 30px; color: #1f7a3d; margin-bottom: 10px; }
.right-sidebar-placeholder p { margin: 0; font-size: 13px; line-height: 1.5; }

.advertisement-placeholder { min-height: 220px; display: flex; align-items: center;
    justify-content: center; background: #f5f5f5; color: #999; font-size: 12px; letter-spacing: 1px; }

.search-ad-image {
    width: 100% !important;
    overflow: hidden;
    border-radius: 8px;
    display: flex;
    justify-content: center;
}

.search-ad-image img {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: 250px !important;
    object-fit: cover !important;
    border-radius: 8px !important;
}

/* =========================================================
   PREMIUM LISTINGS & ANIMATIONS
   ========================================================= */

.premium-sidebar-box { overflow: hidden; }
.premium-sidebar-box .search-right-content { padding: 14px; }
.premium-rotation { position: relative; }
.premium-slide { display: none; animation: premiumFadeIn .5s ease; }
.premium-slide.active { display: block; }

.premium-sidebar-info {
    min-width: 0;
    flex: 1;
}

.premium-sidebar-info h4 {
    margin: 0 0 6px 0;
    font-size: 14px;
    line-height: 1.35;
    font-weight: 700;
    color: #1e293b;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@keyframes premiumFadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* =========================================================
   PREMIUM RESULTS HEADER
   ========================================================= */

.lk-results-heading { width: 100%; display: flex !important; align-items: center; justify-content: flex-start; gap: 0 !important; margin: 0 !important; }

.lk-results-heading .lk-page-title { display: inline-flex !important; align-items: center; margin: 0 !important; min-width: 0; line-height: 1.15; }

.lk-results-heading .doublebutton { display: inline-flex !important; align-items: center; flex: 0 0 auto;
    margin: 0 0 0 auto !important; padding: 4px; gap: 3px; border: 1px solid #e1e8ed; border-radius: 10px; background: #f7f9fa; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05); }

.lk-results-heading .doublebutton a { width: 38px; height: 38px; display: inline-flex !important; align-items: center;
    justify-content: center; margin: 0 !important; padding: 0 !important; box-sizing: border-box; border: 0 !important; border-radius: 7px; background: transparent !important; color: #63727d; font-size: 15px; transition: background .2s ease, color .2s ease, box-shadow .2s ease, transform .2s ease; }

.lk-results-heading .doublebutton a:hover { background: #ffffff !important; color: #078b52 !important; box-shadow: 0 2px 7px rgba(0, 0, 0, 0.08); transform: translateY(-1px); }

.lk-results-heading .doublebutton a.active { background: #078b52 !important; color: #ffffff !important; box-shadow: 0 3px 8px rgba(0, 139, 82, 0.22); }

.lk-results-heading .see_by { flex: 0 0 auto; position: relative; height: 46px; display: inline-flex !important;
    align-items: center; gap: 7px; margin: 0 0 0 8px !important; padding: 0 14px 0 16px !important; box-sizing: border-box; border: 1px solid #dfe7ec !important; border-radius: 10px !important; background: #ffffff !important; color: #53636e !important; font-size: 13px; font-weight: 500; line-height: 1; white-space: nowrap; box-shadow: 0 2px 7px rgba(0, 0, 0, 0.05); cursor: pointer; transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease; }

.lk-results-heading .see_by:hover { border-color: #b9dcca !important; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); transform: translateY(-1px); }

.lk-results-heading .see_by > span { color: #7a8790; font-size: 12px; font-weight: 500; }

.lk-results-heading .see_by > label { display: inline-flex; align-items: center; gap: 7px;
    margin: 0 !important; color: #183b2c !important; font-size: 13px; font-weight: 600; cursor: pointer; }

.lk-results-heading .see_by > label i { margin-left: 2px; color: #078b52; font-size: 12px; }

.lk-results-heading .doublebutton + .see_by { margin-left: 2px !important; }

/* =========================================================
   MODERN FEATURED LISTING DESIGN (SIDEBAR / FEATURED BOX)
   ========================================================= */

aside .right-sidebar-item,
.right-sidebar li,
.sidebar_featured_item, 
.premium-sidebar-item,
div[class*="sidebar"] .listing-card,
div[class*="sidebar"] > div > a {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 14px !important;
    padding: 12px 14px !important;
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    margin-bottom: 12px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    text-decoration: none !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03) !important;
    transition: all 0.2s ease !important;
}

aside .right-sidebar-item:hover,
.right-sidebar li:hover,
.sidebar_featured_item:hover, 
.premium-sidebar-item:hover,
div[class*="sidebar"] .listing-card:hover,
div[class*="sidebar"] > div > a:hover {
    border-color: #0b8f43 !important;
    box-shadow: 0 4px 12px rgba(11, 143, 67, 0.1) !important;
    transform: translateY(-2px);
}

aside .right-sidebar-item img,
.right-sidebar li img,
.sidebar_featured_img, 
.premium-sidebar-image,
div[class*="sidebar"] img {
    flex: 0 0 130px !important;
    width: 130px !important;
    height: 100px !important;
    min-width: 130px !important;
    object-fit: cover !important;
    border-radius: 8px !important;
    margin: 0 !important;
    display: block !important;
}

aside .right-sidebar-item div,
.right-sidebar li div,
.sidebar_featured_content,
.premium-sidebar-info {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: center !important;
    flex: 1 !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

aside .right-sidebar-item h4,
.right-sidebar h4,
.sidebar_featured_content h4,
.premium-sidebar-info h4 {
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #1e293b !important;
    line-height: 1.3 !important;
    margin: 0 0 3px 0 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 1 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    width: 100% !important;
}

aside .right-sidebar-item p,
.right-sidebar p,
.sidebar_featured_location,
.premium-sidebar-info p {
    font-size: 12px !important;
    color: #64748b !important;
    margin: 0 0 6px 0 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    width: 100% !important;
}

aside .right-sidebar-item .price,
.right-sidebar .price,
.sidebar_featured_price,
.premium-sidebar-price {
    font-size: 14px !important;
    font-weight: 800 !important;
    color: #0b8f43 !important;
    line-height: 1 !important;
    margin: 0 !important;
}

/* =========================================================
   FULL-SCREEN SINGLE ROW HORIZONTAL SEARCH BAR
   ========================================================= */

.lk-horizontal-search-bar-wrapper {
  width: 100% !important;
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  padding: 14px 0;
  margin-bottom: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.lk-horizontal-search-bar-wrapper .resp-wrapper {
  width: 100% !important;
  max-width: 1480px !important;
  margin: 0 auto !important;
  padding: 0 20px !important;
  box-sizing: border-box !important;
}

.lk-horizontal-search-form {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.lk-horizontal-search-form .lk-h-field {
  position: relative !important;
  flex: 1 !important;
  min-width: 0 !important;
  margin: 0 !important;
  display: flex !important;
  align-items: center !important;
}

.lk-horizontal-search-form .lk-h-field.lk-h-keyword {
  flex: 1.5 !important;
}

.lk-horizontal-search-form .lk-h-field i {
  position: absolute !important;
  left: 14px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  color: #94a3b8 !important;
  font-size: 14px !important;
  pointer-events: none !important;
  z-index: 2;
}

.lk-horizontal-search-form .lk-h-field input[type="text"],
.lk-horizontal-search-form .lk-h-field select {
  width: 100% !important;
  height: 48px !important;
  background-color: #f8fafc !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 10px !important;
  padding: 0 14px 0 40px !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  color: #1e293b !important;
  outline: none !important;
  box-sizing: border-box !important;
  margin: 0 !important;
  vertical-align: middle !important;
  transition: all 0.25s ease !important;
}

.lk-horizontal-search-form .lk-h-field select {
  appearance: auto !important;
  cursor: pointer !important;
}

/* Modern Light Green Hover Effect */
.lk-horizontal-search-form .lk-h-field input[type="text"]:hover,
.lk-horizontal-search-form .lk-h-field select:hover {
  background-color: #f0fdf4 !important;
  border-color: #86efac !important;
}

/* Focus State */
.lk-horizontal-search-form .lk-h-field input[type="text"]:focus,
.lk-horizontal-search-form .lk-h-field select:focus {
  background-color: #ffffff !important;
  border-color: #0b8f43 !important;
  box-shadow: 0 0 0 4px rgba(11, 143, 67, 0.12) !important;
}

.lk-horizontal-search-form .lk-h-submit-btn {
  flex: 0 0 160px !important;
  height: 48px !important;
  background: #0b8f43 !important;
  border: none !important;
  border-radius: 10px !important;
  color: #ffffff !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  cursor: pointer !important;
  box-shadow: 0 4px 12px rgba(11, 143, 67, 0.2) !important;
  margin: 0 !important;
  align-self: center !important;
  transition: all 0.2s ease !important;
}

.lk-horizontal-search-form .lk-h-submit-btn:hover {
  background: #097d39 !important;
  box-shadow: 0 6px 16px rgba(11, 143, 67, 0.3) !important;
}

/* =========================================================
   PREMIUM / FEATURED CARD STYLING & BADGE
   ========================================================= */

.listing-card.premium-card,
.premium-listing-card {
  background: linear-gradient(135deg, #fffbeb 0%, #ffffff 100%) !important;
  border: 1px solid #fde68a !important;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.1) !important;
}

.listing-card.premium-card:hover,
.premium-listing-card:hover {
  border-color: #f59e0b !important;
  box-shadow: 0 18px 36px rgba(245, 158, 11, 0.16), 0 4px 12px rgba(0, 0, 0, 0.04) !important;
}

.listing-card.premium-card .premium-badge,
.premium-listing-card .premium-badge {
  position: absolute !important;
  top: 12px !important;
  left: 12px !important;
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%) !important;
  color: #ffffff !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  padding: 4px 10px !important;
  border-radius: 20px !important;
  z-index: 10 !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2) !important;
}

/* =========================================================
   ULTRA-MODERN GLASS & ELEVATED ADVERTISEMENT CONTAINER
   ========================================================= */

div.search-right-box.advertisement-box {
  padding: 0 !important;
  margin: 0 0 20px 0 !important;
  overflow: hidden !important;
  border-radius: 16px !important;
  border: 1px solid rgba(226, 232, 240, 0.8) !important;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.05) !important;
  background: #ffffff !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

div.search-right-box.advertisement-box:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 20px 30px -10px rgba(11, 143, 67, 0.12), 0 10px 15px -5px rgba(0, 0, 0, 0.04) !important;
  border-color: rgba(11, 143, 67, 0.3) !important;
}

div.search-right-box.advertisement-box .search-right-title {
  border-bottom: 1px solid #f1f5f9 !important;
  background: linear-gradient(to right, #f8fafc, #ffffff) !important;
  padding: 14px 18px !important;
  font-weight: 700 !important;
  letter-spacing: -0.2px !important;
  color: #0f172a !important;
}

div.search-right-box.advertisement-box .search-right-title i {
  color: #0b8f43 !important;
  background: #f0fdf4 !important;
  padding: 6px !important;
  border-radius: 8px !important;
  font-size: 13px !important;
}

div.search-right-box.advertisement-box .search-right-content {
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
}

div.search-right-box.advertisement-box .search-right-content .search-ad-image,
div.search-right-box.advertisement-box .search-ad-image {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow: hidden !important;
  border-radius: 0 !important;
  border: none !important;
  box-shadow: none !important;
  background: #0f172a !important;
  position: relative !important;
}

div.search-right-box.advertisement-box .search-ad-image img,
.search-right-sidebar .advertisement-box img {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  max-height: none !important;
  object-fit: cover !important;
  border-radius: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

div.search-right-box.advertisement-box:hover .search-ad-image img {
  transform: scale(1.03) !important;
}

/* =========================================================
   GLOBAL RESPONSIVE BREAKPOINTS
   ========================================================= */

@media screen and (max-width: 1024px) {
    body.search #content.wrapper {
        grid-template-columns: 1fr !important;
    }

    body.search #content.wrapper #sidebar,
    .search-right-sidebar {
        width: 100% !important;
    }

    .listing-card {
        flex-direction: column;
    }

    .listing-card .listing-thumb {
        flex: 0 0 100%;
        width: 100%;
    }

    .listing-card .listing-thumb img {
        width: 100% !important;
        height: 220px !important;
    }
}

@media screen and (max-width: 900px) {
  .lk-horizontal-search-form {
    flex-direction: column !important;
    gap: 8px !important;
  }
  .lk-horizontal-search-form .lk-h-field,
  .lk-horizontal-search-form .lk-h-submit-btn {
    width: 100% !important;
    flex: none !important;
  }
}

@media screen and (max-width: 600px) {
    body.search .lk-results-heading { width: 100% !important; display: flex !important;
        flex-wrap: wrap !important; align-items: center !important; justify-content: space-between !important; gap: 8px !important; }

    body.search .lk-results-heading .lk-page-title { display: inline-flex !important; width: auto !important;
        max-width: 100% !important; flex: 1 1 auto !important; min-width: 0 !important; white-space: normal !important; word-break: normal !important; overflow-wrap: normal !important; margin: 0 !important; }

    body.search .lk-results-heading .counter-search { display: inline-flex !important;
        width: auto !important; flex: 0 0 auto !important; white-space: nowrap !important; margin: 0 !important; }

    body.search .lk-results-heading .doublebutton { display: inline-flex !important; width: auto !important; flex: 0 0 auto !important; margin: 0 !important; }

    body.search .lk-results-heading .see_by { display: inline-flex !important; width: auto !important;
        flex: 0 0 auto !important; margin: 0 !important; height: 42px !important; white-space: nowrap !important; float: none !important; }

    body.search .lk-results-heading .see_by > span { display: inline-flex !important;
        float: none !important; margin: 0 !important; width: auto !important; visibility: visible !important; }

    body.search .lk-results-heading .see_by > label { display: inline-flex !important; width: auto !important; white-space: nowrap !important; }
}

/* =========================================================
   LIVING KANYAKUMARI — FINAL RESPONSIVE / PRODUCTION OVERRIDES
   Safe override layer: preserves existing desktop behaviour.
   ========================================================= */

/* Prevent accidental horizontal overflow */
html, body {
    max-width: 100%;
    overflow-x: hidden;
}

body.search #content.wrapper,
body.search #content.wrapper * {
    box-sizing: border-box;
}

.search-right-sidebar,
.search-right-box,
.search-right-content,
.search-ad-image {
    min-width: 0;
    max-width: 100%;
}

/* =========================================================
   UNIFORM ADVERTISEMENT STYLING & MOBILE RESPONSIVENESS
   ========================================================= */

.search-right-sidebar .advertisement-box .search-ad-image,
.search-right-sidebar .search-ad-image {
    width: 100% !important;
    aspect-ratio: 4 / 3 !important;
    overflow: hidden !important;
    background: #f8fafc !important;
    border-radius: 8px !important;
    display: block !important;
}

.search-right-sidebar .advertisement-box .search-ad-image img,
.search-right-sidebar .search-ad-image img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-height: none !important;
    object-fit: cover !important;
    object-position: center !important;
    border-radius: 8px !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Mobile Responsive Adjustments */
@media screen and (max-width: 767px) {
    .search-right-sidebar .advertisement-box .search-ad-image {
        aspect-ratio: 16 / 10 !important;
    }
}

/* Premium sidebar cards must shrink cleanly */
.premium-sidebar-box,
.premium-rotation,
.premium-slide {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.premium-slide img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: cover;
}

/* Tablet: keep the listing card readable */
@media screen and (max-width: 1024px) {
    body.search #content.wrapper {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 16px !important;
    }

    body.search #content.wrapper #sidebar,
    body.search #content.wrapper #main,
    body.search #content.wrapper .search-right-sidebar {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    body.search #content.wrapper #sidebar {
        margin-bottom: 16px !important;
    }

    body.search #content.wrapper #main {
        margin-bottom: 16px !important;
    }

    .listing-card {
        width: 100% !important;
        max-width: 100% !important;
    }

    .listing-card .listing-thumb {
        flex: 0 0 220px !important;
        width: 220px !important;
        height: 150px !important;
    }

    .listing-card .listing-thumb img {
        width: 100% !important;
        height: 100% !important;
    }
}

/* Mobile / small tablets */
@media screen and (max-width: 767px) {
    body.search #content.wrapper {
        padding: 0 12px !important;
    }

    .list-header .resp-wrapper {
        padding: 0 12px !important;
    }

    .banner-slider {
        height: 105px !important;
        margin: 8px 0 14px !important;
        border-radius: 8px !important;
    }

    .list-header h1 {
        font-size: 22px !important;
        line-height: 1.25 !important;
    }

    /* Search result card becomes a clean mobile card */
    .listing-card {
        display: flex !important;
        flex-direction: column !important;
        gap: 0 !important;
        padding: 0 !important;
        border-radius: 12px !important;
        margin-bottom: 14px !important;
    }

    .listing-card .listing-thumb {
        flex: 0 0 auto !important;
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 16 / 10 !important;
        border-radius: 0 !important;
    }

    .listing-card .listing-thumb img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        border-radius: 0 !important;
    }

    .listing-card .listing-detail {
        width: 100% !important;
        padding: 12px 13px 13px !important;
        box-sizing: border-box !important;
    }

    .listing-card .listing-top-row {
        gap: 8px !important;
    }

    .listing-card .title {
        font-size: 16px !important;
        line-height: 1.35 !important;
    }

    .listing-card .listing-price .currency-value {
        font-size: 18px !important;
    }

    .listing-description {
        font-size: 12.5px !important;
        line-height: 1.45 !important;
        -webkit-line-clamp: 2 !important;
    }

    .property-features {
        gap: 6px !important;
        margin-top: 7px !important;
    }

    .property-features span {
        font-size: 11px !important;
        padding: 4px 7px !important;
    }

    .listing-actions {
        gap: 8px !important;
        flex-wrap: wrap !important;
        align-items: center !important;
    }

    .action-buttons {
        gap: 6px !important;
        flex-wrap: wrap !important;
    }

    .action-buttons a {
        padding: 6px 10px !important;
        font-size: 12px !important;
    }

    .listing-time {
        font-size: 11px !important;
    }

    /* Sponsor/ad blocks: full width, predictable thumbnail-like display */
    .search-right-sidebar .search-right-box,
    div.search-right-box.advertisement-box {
        width: 100% !important;
        max-width: 100% !important;
        margin-bottom: 14px !important;
        border-radius: 12px !important;
    }

    .search-right-sidebar .advertisement-box .search-right-title {
        padding: 11px 13px !important;
        font-size: 15px !important;
    }

    .search-right-sidebar .advertisement-box .search-ad-image {
        width: 100% !important;
        aspect-ratio: 4 / 3 !important;
        background: #f8fafc !important;
    }

    .search-right-sidebar .advertisement-box .search-ad-image img {
        width: 100% !important;
        height: 100% !important;
        max-height: none !important;
        object-fit: contain !important;
        object-position: center !important;
        background: #ffffff !important;
    }

    .premium-sidebar-box .search-right-content {
        padding: 10px !important;
    }

    /* Results toolbar wraps without squeezing */
    body.search .lk-results-heading {
        row-gap: 8px !important;
    }

    .lk-results-heading .doublebutton a {
        width: 36px !important;
        height: 36px !important;
    }

    .lk-results-heading .see_by {
        height: 40px !important;
        padding: 0 10px !important;
        font-size: 12px !important;
    }
}

/* Very small phones */
@media screen and (max-width: 420px) {
    body.search #content.wrapper {
        padding: 0 10px !important;
    }

    .list-header .resp-wrapper {
        padding: 0 10px !important;
    }

    .banner-slider {
        height: 92px !important;
    }

    .listing-card .listing-thumb {
        aspect-ratio: 16 / 10 !important;
    }

    .listing-card .listing-detail {
        padding: 11px 12px 12px !important;
    }

    .listing-card .listing-top-row {
        display: block !important;
    }

    .listing-card .listing-price {
        margin-top: 6px !important;
        text-align: left !important;
    }

    .listing-card .listing-price .currency-value {
        font-size: 17px !important;
    }

    .listing-actions {
        align-items: flex-start !important;
    }

    .action-buttons {
        width: 100% !important;
    }

    .action-buttons a {
        flex: 1 1 auto !important;
        justify-content: center !important;
    }

    .search-right-sidebar .advertisement-box .search-ad-image {
        aspect-ratio: 4 / 3 !important;
    }
}
/* ==========================================================
   FEATURED SIDEBAR ROTATION (FIXED BLANK SLIDE ISSUE)
========================================================== */
.search-right-box.premium-sidebar-box .premium-rotation {
    position: relative;
    min-height: 120px;
    height: auto;
    overflow: hidden;
}

.search-right-box.premium-sidebar-box .premium-slide {
    position: relative;
    width: 100%;
}

.search-right-box.premium-sidebar-box .premium-slide:not(.active) {
    display: none !important;
}