/* =========================================
   DONEDEAL STYLE HOMEPAGE HERO
========================================= */

#sp-banner{
    position:relative;
    min-height:500px !important;
    background-size:cover;
    background-position:center;
    overflow:visible !important;
    display:flex;
    align-items:flex-start;
}



/* =========================================
   SEARCH MODULE WRAPPER
========================================= */

#jcls-search{
    position:relative;
    z-index:5;
    width:100%;
    max-width:100%;
    padding-top:70px;

    display:flex;
    justify-content:flex-end;
    align-items:flex-start;
}

/* =========================================
   HEADING
========================================= */

.jcls-search-form h1{
    color:#fff !important;
    font-size:56px;
    font-weight:700;
    line-height:1.12;
    width:100%;
    margin-bottom:36px;
    text-align:center;
}

/* HIDE UNUSED TEXT */
.activeAds,
.search-description{
    display:none !important;
}

/* =========================================
   SEARCH AREA
========================================= */

.jcls-search-bar{
    width:460px;
    margin-right:80px;
}

/* SEARCH CARD */
.jcls-search-bar form{
    width:420px;
    background:#fff;
    border-radius:24px;
    padding:28px;
    box-shadow:0 20px 55px rgba(0,0,0,0.22);
}

/* =========================================
   STACK FIELDS VERTICALLY
========================================= */

.fields-container{
    display:flex;
    flex-direction:column;
    gap:16px;
    width:100%;
}

.form-field{
    width:100%;
    position:relative;
}

/* REMOVE OLD DIVIDERS */
.form-field:after{
    display:none !important;
}

/* =========================================
   INPUTS
========================================= */

#searchbar,
#locationSearch,
#radius,
#categorySearch,
#adTypeClassifieds{
    width:100% !important;
    height:56px !important;
    border:1px solid #d9d9d9 !important;
    border-radius:12px !important;
    background:#fff !important;
    padding:0 18px !important;
    font-size:15px !important;
    color:#222 !important;
    box-shadow:none !important;
    outline:none !important;
    appearance:none;
}

/* PLACEHOLDERS */
#searchbar::placeholder,
#locationSearch::placeholder{
    color:#666 !important;
    opacity:1;
}

/* =========================================
   LOCATION FIELD
========================================= */

.location-dropdown{
    width:100%;
}

.location-input-wrap{
    position:relative;
    width:100%;
}

.location-search-icon{
    position:absolute;
    left:16px;
    top:50%;
    transform:translateY(-50%);
    color:#777;
    font-size:18px;
    z-index:2;
}

.location-arrow{
    position:absolute;
    right:16px;
    top:50%;
    transform:translateY(-50%);
    color:#777;
    font-size:18px;
    z-index:2;
    transition:0.2s;
}

#locationSearch{
    height:56px;
    border-radius:14px;
    padding-left:46px !important;
    padding-right:46px !important;
    font-size:15px;
}


/* =========================================
   LOCATION DROPDOWN
========================================= */

.location-results{
    display:none;
    position:absolute;
    top:calc(100% + 8px);
    left:0;
    width:100%;
    background:#fff;
    border:1px solid #e5e5e5;
    border-radius:14px;
    overflow-y:auto;
    box-shadow:0 10px 25px rgba(0,0,0,0.12);
    z-index:99999;
    max-height:320px;
}

/* =========================================
   DROPDOWN SEARCH FIELD
========================================= */

.location-filter-wrap{
    padding:12px;
    border-bottom:1px solid #f1f1f1;
    background:#fff;
    position:sticky;
    top:0;
    z-index:20;
}

#locationFilter{
    width:100%;
    height:42px;
    border:1px solid #dcdcdc;
    border-radius:10px;
    padding:0 14px;
    font-size:14px;
    outline:none;
    box-sizing:border-box;
    background:#fff;
    color:#222;
}

#locationFilter:focus{
    border-color:#00bcd4;
}

/* COUNTY + TOWN ROWS */
.county-item,
.town-item,
.town-search-item,
.back-to-counties,
.all-ireland,
.county-select{
    padding:9px 16px;
    min-height:42px;
    font-size:13px;
    color:#222 !important;
    background:#fff;
    border-bottom:1px solid #f1f1f1;
    cursor:pointer;
    display:flex;
    align-items:center;
    justify-content:space-between;
    transition:0.2s;
    line-height:1.4;
}

.county-item:hover,
.town-item:hover,
.town-search-item:hover,
.back-to-counties:hover,
.all-ireland:hover{
    background:#f8f8f8;
}

.location-results div:last-child{
    border-bottom:none;
}

.county-arrow{
    color:#999;
    font-size:14px;
}

/* =========================================
   MOBILE
========================================= */

@media(max-width:991px){

    #sp-banner{
        min-height:650px !important;
    }

    #jcls-search{
        padding-top:70px;
        padding-left:20px;
        padding-right:20px;
    }

    .jcls-search-form h1{
        font-size:38px;
        max-width:100%;
        text-align:center;
        margin-bottom:28px;
    }

    .jcls-search-bar{
        justify-content:center;
    }

    .jcls-search-bar form{
        width:100%;
        max-width:460px;
        padding:22px;
    }
}

    /* SELECT COUNTY ROW */
    .county-select{
        font-weight:600;
        color:#222 !important;
    }
    
/* SMOOTH SCROLL */
.location-results::-webkit-scrollbar{
    width:6px;
}

.location-results::-webkit-scrollbar-thumb{
    background:#d0d0d0;
    border-radius:20px;
}

/* AUTOCOMPLETE RESULTS */
.town-search-item{
    padding:12px 16px;
    border-bottom:1px solid #f1f1f1;
    cursor:pointer;
    background:#fff;
}

.town-search-item:hover{
    background:#f8f8f8;
}

/* FEATURED COUNTY */
.county-item.featured-county{
    background:#f7fbff;
    font-weight:600;
}

.county-select,
.county-select span,
.county-select *{
    color:#222 !important;
}

/* =========================================
   FIX DROPDOWN POSITIONING
========================================= */

.location-dropdown{
    position:relative;
}

/* =========================================
   FIX DROPDOWN WIDTH + LAYER
========================================= */

.location-results{
    width:100%;
    min-width:0;
    box-sizing:border-box;
    z-index:999999 !important;
}

/* =========================================
   FIX INPUT TEXT CUTTING
========================================= */

#locationSearch{
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
}

/* =========================================
   FIX LONG TOWN NAMES
========================================= */

.town-item,
.town-search-item,
.county-item,
.county-select{
    gap:10px;
    word-break:break-word;
}

/* =========================================
   BETTER HOVER FEEL
========================================= */

.county-item:hover,
.town-item:hover,
.town-search-item:hover,
.back-to-counties:hover,
.all-ireland:hover,
.county-select:hover{
    background:#f5f7fa;
}

/* =========================================
   ACTIVE CLICK FEEDBACK
========================================= */

.county-item:active,
.town-item:active,
.town-search-item:active{
    transform:scale(0.995);
}

/* =========================================
   FIX MOBILE DROPDOWN OVERFLOW
========================================= */

@media(max-width:767px){

    .location-results{
        max-height:280px;
        border-radius:14px;
    }

    #locationSearch{
        font-size:16px !important;
    }

}

#sp-header,
#sp-banner,
#sp-banner .container,
#sp-banner .container-inner{
    overflow:visible !important;
}

.select2-container{
    width:100% !important;
}

.select2-results__options{
    max-height:260px !important;
}

/* =========================================
   FIX LOCATION DROPDOWN CLIPPING
========================================= */

.manage-reservation,
.classifiedContainer,
.defaultAdStyle,
.location,
.location-dropdown,
.town-dropdown,
.search-filter,
#search-filter,
#adFilters {
    overflow:visible !important;
}

/* Search-results sidebar location (homepage-style) */
.jd-sr-location {
  position: relative !important;
  z-index: 40;
  width: 100%;
}

.jd-sr-location-input-wrap {
  position: relative !important;
  width: 100%;
}

#jd-sr-locationSearch,
.jd-sr-location-input {
  width: 100% !important;
  height: 48px !important;
  border: 1px solid #d9d9d9 !important;
  border-radius: 12px !important;
  background: #fff !important;
  padding: 0 40px 0 42px !important;
  font-size: 14px !important;
  color: #222 !important;
  box-sizing: border-box !important;
}

.jd-sr-location-pin {
  left: 14px !important;
  display: inline-flex !important;
  align-items: center;
}

.jd-sr-location-results,
#jd-sr-locationResults {
  display: none !important;
  position: absolute !important;
  top: calc(100% + 6px) !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  max-height: 280px !important;
  overflow-y: auto !important;
  background: #fff !important;
  border: 1px solid #e5e5e5 !important;
  border-radius: 12px !important;
  box-shadow: 0 10px 24px rgba(0,0,0,.12) !important;
  z-index: 10050 !important;
}

#jd-sr-locationResults:not([hidden]),
#jd-sr-locationResults[data-open="1"] {
  display: block !important;
}

#jd-sr-locationResults .jd-sr-all-ireland,
#jd-sr-locationResults .all-ireland,
#jd-sr-locationResults .jd-sr-county-item,
#jd-sr-locationResults .county-item,
#jd-sr-locationResults .county-select,
#jd-sr-locationResults .jd-sr-county-select,
#jd-sr-locationResults .back-to-counties,
#jd-sr-locationResults .jd-sr-back,
#jd-sr-locationResults .town-item,
#jd-sr-locationResults .town-search-item {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 14px !important;
  cursor: pointer !important;
  border-bottom: 1px solid #f1f1f1 !important;
  background: #fff !important;
  color: #222 !important;
  font-size: 14px !important;
}

#jd-sr-locationResults .jd-sr-all-ireland:hover,
#jd-sr-locationResults .all-ireland:hover,
#jd-sr-locationResults .county-item:hover,
#jd-sr-locationResults .county-select:hover,
#jd-sr-locationResults .town-item:hover,
#jd-sr-locationResults .town-search-item:hover,
#jd-sr-locationResults .back-to-counties:hover {
  background: #f5f7f9 !important;
}

#jd-sr-locationResults .featured-county {
  font-weight: 700;
}

/* MODERN RESULT ITEMS */
.location-results .town-item{
    padding:14px 16px;
    font-size:14px;
    background:#fff;
    border-bottom:1px solid #f1f1f1;
    transition:0.15s ease;
}

.location-results .town-item:hover{
    background:#f7f7f7;
}

.location-results .town-item:last-child{
    border-bottom:none;
}
.location-input-wrap{
    position:relative;
    width:100%;
}

.location-search-icon{
    position:absolute;
    left:16px;
    top:50%;
    transform:translateY(-50%);
    color:#777;
    font-size:15px;
    z-index:5;
    pointer-events:none;
}

.location-arrow{
    position:absolute;
    right:16px;
    top:50%;
    transform:translateY(-50%);
    color:#777;
    font-size:14px;
    z-index:5;
    pointer-events:none;
    transition:0.2s ease;
}

.location-dropdown.active .location-arrow{
    transform:translateY(-50%) rotate(180deg);
}

/* =========================================
   FORCE TOWN SEARCH DROPDOWN BELOW INPUT
========================================= */

/* parent */
.location-dropdown.town-dropdown{
    position:relative !important;
    overflow:visible !important;
}

/* input wrapper */
.location-dropdown.town-dropdown .location-input-wrap{
    position:relative !important;
    z-index:1001 !important;
}

/* dropdown */
#townResults.town-results{
    position:absolute !important;

    top:100% !important;
    left:0 !important;
    right:0 !important;

    margin-top:8px !important;

    width:100% !important;

    background:#fff !important;

    border:1px solid #ddd !important;

    border-radius:12px !important;

    max-height:250px !important;

    overflow-y:auto !important;

    display:none;

    z-index:99999 !important;

    box-shadow:0 6px 18px rgba(0,0,0,0.08) !important;
}

/* items */
#townResults .town-item{
    padding:12px 16px;
    cursor:pointer;
}

/* hover */
#townResults .town-item:hover{
    background:#f5f5f5;
}

/* FIX TOWN SEARCH INPUT LAYOUT */

.location-dropdown.town-dropdown input#townSearch{
    float:none !important;
    width:100% !important;
    display:block !important;
    margin:0 !important;
}

/* wrapper */
.location-dropdown.town-dropdown .location-input-wrap{
    position:relative !important;
    width:100% !important;
}

/* dropdown */
#townResults.town-results{
    position:absolute !important;
    top:100% !important;
    left:0 !important;
    right:0 !important;

    margin-top:8px !important;

    z-index:99999 !important;
}

/* =========================================
   SEARCH BOX OVER HERO IMAGE
========================================= */

/* hero section */
#sp-banner{
    position:relative !important;
    min-height:620px !important;
}

/* search module */
#jcls-search{
    position:absolute !important;
    top:120px;
    right:80px;
    z-index:9999;
    width:auto !important;
    padding-top:0 !important;
}

/* remove old spacing */
.jcls-search-bar{
    margin:0 !important;
    width:460px;
}

/* form card */
.jcls-search-bar form{
    width:420px;
}

/* HERO SECTION */
#sp-banner{
    position:relative;
    min-height:620px !important;
}

/* SEARCH OVER IMAGE */
#jcls-search{
    position:absolute;
    top:120px;
    right:80px;
    z-index:9999;
    width:auto;
    padding-top:0;
}

/* SEARCH CARD */
.jcls-search-bar{
    width:460px;
    margin:0;
}

/* =========================================
   FINAL PREMIUM HOMEPAGE HERO
========================================= */

.homepage-hero{
    position:relative;
    height:500px;
    width:100%;
    overflow:hidden;

    background-image:url('/images/homepage-banner/Banner4.jpg');
    background-size:cover;
    background-position:center;
    background-repeat:no-repeat;
}

/* DONEDEAL STYLE SHARP DARK GRADIENT */
.homepage-hero::before{
    content:"";
    position:absolute;
    inset:0;

    background:linear-gradient(
        90deg,
        rgba(0,0,0,0.55) 0%,
        rgba(0,0,0,0.38) 38%,
        rgba(0,0,0,0.12) 68%,
        rgba(0,0,0,0.04) 100%
    );

    z-index:1;
    pointer-events:none;
}

/* KEEP OVERLAY LAYER BUT REMOVE EXTRA DARKNESS */
.hero-overlay{
    position:absolute;
    inset:0;
    background:transparent !important;
    z-index:2;
}

/* CONTENT */
.hero-content{
    position:relative;
    z-index:5;
    height:100%;
}

/* TITLE */
.hero-content h1{
    position:absolute;

    top:70px;

    left:50%;

    transform:translateX(-50%);

    width:100%;

    max-width:900px;

    text-align:center;

    color:#fff !important;

    font-size:42px;

    font-weight:700;

    line-height:1.18;

    margin:0;

    z-index:30;

    text-shadow:0 4px 18px rgba(0,0,0,0.55);
}

/* SEARCH MODULE POSITION */
#jcls-search{
    position:absolute !important;

    top:135px !important;

    right:60px !important;

    z-index:50 !important;

    width:auto !important;

    padding-top:0 !important;
}

/* SEARCH CARD */
.jcls-search-bar{
    width:430px !important;
    margin:0 !important;
}

/* CARD */
.jcls-search-bar form{
    width:100% !important;

    background:rgba(255,255,255,0.97) !important;

    border-radius:24px !important;

    padding:26px !important;

    box-shadow:0 18px 45px rgba(0,0,0,0.22) !important;

    backdrop-filter:blur(8px);
    -webkit-backdrop-filter:blur(8px);
}

/* BUTTON */
#jcls-search button,
#jcls-search .ui-button,
#jcls-search .ui-ad-button,
#jcls-search input[type="submit"]{

    width:100% !important;

    height:58px !important;

    border:none !important;

    border-radius:14px !important;

    background:#9aaa3a !important;

    background-image:none !important;

    color:#fff !important;

    font-size:18px !important;

    font-weight:700 !important;

    box-shadow:none !important;
}

/* BUTTON HOVER */
#jcls-search button:hover,
#jcls-search .ui-button:hover,
#jcls-search .ui-ad-button:hover,
#jcls-search input[type="submit"]:hover{

    background:#0b5ed7 !important;
}

/* MOBILE */
@media(max-width:991px){

    .homepage-hero{
        height:650px;
    }

    .hero-content h1{
        font-size:36px;
        padding:0 20px;
        top:50px;
    }

    #jcls-search{
        position:relative !important;

        top:auto !important;
        right:auto !important;

        display:flex !important;
        justify-content:center !important;

        padding:160px 20px 0 !important;
    }

    .jcls-search-bar{
        width:100% !important;
        max-width:430px !important;
    }
}

/* CENTER SEARCH CARD INSIDE HERO IMAGE */
#sp-search-module{
    position:relative !important;
}

#jcls-search{
    position:absolute !important;
    top:95px !important;
    left:50% !important;
    right:auto !important;
    transform:translateX(-50%) !important;

    width:min(920px, calc(100vw - 40px)) !important;
    margin:0 !important;
    padding:0 !important;
    z-index:999 !important;
    text-align:center !important;
}

#jcls-search .jcls-search-form h1{
    width:100% !important;
    max-width:none !important;
    white-space:nowrap !important;
    text-align:center !important;
    font-size:32px !important;
    line-height:1.15 !important;
    margin:0 0 28px !important;
}

.jcls-search-bar{
    width:430px !important;
    margin:0 auto !important;
}

.jcm-success-overlay{
    text-align:center;
    background:#fff;
}

.jcm-success-icon{
    width:70px;
    height:70px;
    line-height:70px;
    border-radius:50%;
    background:#dff0d8;
    color:#28a745;
    font-size:40px;
    font-weight:bold;
    margin:0 auto 20px;
}

.jcm-success-overlay h2{
    margin:0 0 10px;
    font-size:36px;
}

.jcm-success-overlay p{
    font-size:20px;
    color:#666;
}

@media(max-width:767px){
    #jcls-search .jcls-search-form h1{
        white-space:normal !important;
        font-size:28px !important;
    }
}

/* =========================================================
   JobsDoneDeal - stable full-width header
   Append to: templates/j-myclassifieds/css/custom.css
   Then: System -> Clear Cache (+ purge PageSpeed/CDN if any)
   ========================================================= */

/* --- 1) Kill Helix default header (logo column + old menu) --- */
body .body-innerwrapper > section#sp-menu #sp-logo,
body .body-innerwrapper > section#sp-menu .logo,
body .body-innerwrapper > section#sp-menu .sp-megamenu-wrapper,
body .body-innerwrapper > section#sp-menu .sp-megamenu-parent,
body .body-innerwrapper > section#sp-menu #offcanvas-toggler,
body .body-innerwrapper > section#sp-menu .offcanvas-toggler-right,
body .body-innerwrapper > section#sp-menu .jn-user-menu {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  border: 0 !important;
}

/* --- JD: hide leftover old hero/search if still published on production --- */
body #jcls-search,
body #sp-top1,
body .homepage-hero,
body .mod_jclassifiedssearch,
body .mod-jclassifiedssearch,
body #sp-slider-banner .showplus,
body #sp-slider-banner .slideshow,
body #sp-slider-banner .mod_showplus {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  max-height: 0 !important;
  overflow: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
  pointer-events: none !important;
}

/* --- 2) Make header section truly full width --- */
body .body-innerwrapper > section#sp-menu {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  overflow: visible !important;
}

body .body-innerwrapper > section#sp-menu > .container,
body .body-innerwrapper > section#sp-menu .container-inner,
body .body-innerwrapper > section#sp-menu .row,
body .body-innerwrapper > section#sp-menu [class*="col-"],
body .body-innerwrapper > section#sp-menu .sp-column,
body .body-innerwrapper > section#sp-menu .sp-module,
body .body-innerwrapper > section#sp-menu .sp-module-content,
body .body-innerwrapper > section#sp-menu .mod-custom,
body .body-innerwrapper > section#sp-menu .jd-site-header {
  width: 100% !important;
  max-width: 100% !important;
  flex: 0 0 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  float: none !important;
}

body .body-innerwrapper > section#sp-menu .row {
  display: block !important;
}

/* Remove broken 100vw hack leftovers */
body .body-innerwrapper > section#sp-menu .gt-fullwidth {
  width: 100% !important;
  max-width: 100% !important;
  left: auto !important;
  right: auto !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  position: relative !important;
}

/* --- 3) New header UI --- */
.jd-site-header {
  width: 100% !important;
  max-width: 100% !important;
  position: relative !important;
  z-index: 1100 !important;
  box-sizing: border-box !important;
}

.jd-header-top {
  width: 100% !important;
  background: #3B5F8A !important;
  color: #ffffff !important;
}

.jd-header-top-inner {
  width: 100% !important;
  max-width: 1240px !important;
  margin: 0 auto !important;
  padding: 18px 20px !important;
  min-height: 88px !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 16px !important;
  box-sizing: border-box !important;
}

.jd-logo {
  flex: 0 0 auto !important;
  flex-shrink: 0 !important;
  align-self: center !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: #ffffff !important;
  border-radius: 8px !important;
  padding: 4px 6px !important;
  overflow: hidden !important;
  line-height: 0 !important;
  width: auto !important;
  max-width: none !important;
}

.jd-logo img,
.jd-site-header .jd-logo img,
#jd-site-header .jd-logo img {
  display: block !important;
  width: auto !important;
  max-width: 56px !important;
  height: 48px !important;
  max-height: 48px !important;
  object-fit: contain !important;
  object-position: center !important;
  border: 0 !important;
  filter: none !important;
  aspect-ratio: 1 / 1 !important;
  min-width: 0 !important;
  flex: none !important;
}

.jd-header-search {
  flex: 1 1 auto !important;
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  align-items: stretch !important;
  gap: 8px !important;
  min-width: 0 !important;
}

.jd-header-search .jd-field,
.jd-header-search .jd-search-btn {
  min-height: 48px !important;
  height: 48px !important;
  border: 0 !important;
  border-radius: 0 !important;
  font-size: 15px !important;
  box-sizing: border-box !important;
  margin: 0 !important;
}

.jd-header-search .jd-keyword {
  flex: 1 1 220px !important;
  min-width: 140px !important;
  padding: 0 14px !important;
  background: #fff !important;
  color: #222 !important;
}

/* Gumtree-style category selector inside header search */
.jd-header-search .jd-category-wrap {
  position: relative !important;
  flex: 0 0 150px !important;
  min-width: 130px !important;
  z-index: 30 !important;
}
.jd-category-btn {
  width: 100% !important;
  min-height: 48px !important;
  height: 48px !important;
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 0 10px !important;
  border: 0 !important;
  border-radius: 8px !important;
  background: #fff !important;
  color: #222 !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  box-sizing: border-box !important;
}
.jd-category-btn-ico { color: #5f6b1f !important; line-height: 1 !important; }
.jd-category-btn-label {
  flex: 1 1 auto !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  text-align: left !important;
}
.jd-category-arrow { font-size: 10px !important; color: #666 !important; pointer-events: none !important; }
.jd-category-panel {
  position: absolute !important;
  top: calc(100% + 6px) !important;
  left: 0 !important;
  min-width: 520px !important;
  max-width: min(720px, 92vw) !important;
  background: #fff !important;
  border: 1px solid #e5e5e5 !important;
  border-radius: 10px !important;
  box-shadow: 0 12px 32px rgba(0,0,0,.16) !important;
  z-index: 4000 !important;
  overflow: hidden !important;
}
.jd-category-panel[hidden] { display: none !important; }
.jd-category-panel-inner {
  display: flex !important;
  min-height: 220px !important;
  max-height: 360px !important;
}
.jd-category-parents {
  list-style: none !important;
  margin: 0 !important;
  padding: 8px 0 !important;
  width: 200px !important;
  min-width: 180px !important;
  border-right: 1px solid #eee !important;
  overflow-y: auto !important;
  background: #fafafa !important;
}
.jd-category-parent {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px !important;
  padding: 10px 14px !important;
  font-size: 14px !important;
  color: #222 !important;
  cursor: pointer !important;
}
.jd-category-parent:hover,
.jd-category-parent.is-hover,
.jd-category-parent.is-active {
  background: #f7fadb !important;
  color: #3d4518 !important;
}
.jd-category-parent-arrow { color: #999 !important; }
.jd-category-children {
  flex: 1 1 auto !important;
  overflow-y: auto !important;
  padding: 8px !important;
  background: #fff !important;
}
.jd-category-child-pane {
  display: flex !important;
  flex-direction: column !important;
  gap: 2px !important;
}
.jd-category-child-pane[hidden] { display: none !important; }
.jd-category-pick {
  width: 100% !important;
  text-align: left !important;
  border: 0 !important;
  background: transparent !important;
  color: #222 !important;
  font-size: 14px !important;
  padding: 8px 12px !important;
  border-radius: 6px !important;
  cursor: pointer !important;
}
.jd-category-pick:hover,
.jd-category-pick:focus {
  background: #f7fadb !important;
  color: #3d4518 !important;
}
.jd-category-pick--all {
  font-weight: 700 !important;
  border-bottom: 1px solid #eee !important;
  margin-bottom: 4px !important;
  border-radius: 0 !important;
}
@media (max-width: 900px) {
  .jd-header-search .jd-category-wrap {
    -webkit-box-flex: 0 !important;
    -ms-flex: 0 0 auto !important;
    flex: 0 0 auto !important;
    min-width: 46px !important;
  }
  .jd-category-panel {
    min-width: 0 !important;
    width: min(520px, 92vw) !important;
    left: 0 !important;
    right: auto !important;
  }
  .jd-category-panel-inner {
    flex-direction: column !important;
    max-height: 70vh !important;
  }
  .jd-category-parents {
    width: 100% !important;
    max-height: 180px !important;
    border-right: 0 !important;
    border-bottom: 1px solid #eee !important;
  }
}

.jd-header-search .jd-region {
  flex: 0 1 160px !important;
  padding: 0 10px !important;
  background: #fff !important;
  color: #222 !important;
}

.jd-header-search .jd-radius-wrap {
  flex: 0 0 108px !important;
  display: flex !important;
  align-items: center !important;
}

.jd-header-search .jd-radius {
  flex: 1 1 auto !important;
  width: 100% !important;
  padding: 0 28px 0 12px !important;
  background: #fff !important;
  color: #222 !important;
}

.jd-header-search .jd-search-btn {
  flex: 0 0 auto !important;
  padding: 0 18px !important;
  background: #9aaa3a !important;
  color: #fff !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  white-space: nowrap !important;
}

.jd-actions {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 14px !important;
  flex: 0 0 auto !important;
  margin-left: auto !important;
}

.jd-action {
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center !important;
  color: #fff !important;
  text-decoration: none !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  line-height: 1.2 !important;
  min-width: 0 !important;
  min-height: 0 !important;
  white-space: nowrap !important;
}

.jd-action:hover,
.jd-action:focus {
  color: #fff !important;
  text-decoration: none !important;
  opacity: 0.9 !important;
}

.jd-action-signup {
  padding: 8px 18px !important;
  background: rgba(255, 255, 255, 0.18) !important;
  border-radius: 999px !important;
  font-weight: 600 !important;
}

.jd-action-signup:hover,
.jd-action-signup:focus {
  background: rgba(255, 255, 255, 0.28) !important;
  opacity: 1 !important;
}

.jd-action-login {
  font-weight: 500 !important;
  padding: 0 !important;
  background: transparent !important;
}

.jd-action-post {
  font-weight: 700 !important;
  gap: 4px !important;
  padding: 0 !important;
  background: transparent !important;
}

.jd-action-ico {
  font-size: 16px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  margin: 0 !important;
  margin-bottom: 0 !important;
}

/* Equal-width full nav */
.jd-header-nav {
  width: 100% !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: stretch !important;
  height: 48px !important;
  min-height: 48px !important;
  max-height: 48px !important;
  background: #fff !important;
  border-bottom: 1px solid #e5e5e5 !important;
  overflow: hidden !important;
}

.jd-header-nav a {
  flex: 1 1 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 48px !important;
  min-height: 48px !important;
  max-height: 48px !important;
  padding: 0 8px !important;
  color: #222 !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  line-height: 1.15 !important;
  text-decoration: none !important;
  text-align: center !important;
  border-right: 1px solid #e5e5e5 !important;
  box-sizing: border-box !important;
  white-space: normal !important;
  overflow: hidden !important;
  text-overflow: clip !important;
}

.jd-header-nav a:last-child {
  border-right: 0 !important;
}

.jd-header-nav a:hover,
.jd-header-nav a:focus {
  background: #ffffff !important;
  color: #5f6b1f !important;
}

/* Mobile */
@media (max-width: 991px) {
  .jd-header-top-inner {
    flex-wrap: wrap !important;
    padding: 10px 12px !important;
    min-height: 0 !important;
    gap: 8px !important;
  }

  .jd-logo {
    padding: 4px 6px !important;
  }

  .jd-logo img,
  .jd-site-header .jd-logo img,
  #jd-site-header .jd-logo img {
    height: 40px !important;
    max-height: 40px !important;
    max-width: 44px !important;
    aspect-ratio: 1 / 1 !important;
  }

  .jd-header-search {
    order: 3 !important;
    flex: 1 1 100% !important;
    width: 100% !important;
    flex-wrap: nowrap !important;
    gap: 0 !important;
  }

  /* Unified mobile search: keep category, hide keyword */
  .jd-header-search .jd-keyword {
    display: none !important;
  }

  .jd-header-search .jd-radius-wrap {
    flex: 0 0 88px !important;
    width: 88px !important;
    min-width: 80px !important;
    max-width: 96px !important;
    display: flex !important;
  }

  .jd-header-search .jd-radius {
    display: block !important;
    height: 44px !important;
    min-height: 44px !important;
    font-size: 12px !important;
    padding: 0 22px 0 8px !important;
  }

  .jd-header-search .jd-category-btn,
  .jd-header-search .jd-search-btn,
  .jd-header-search .jd-location {
    min-height: 44px !important;
    height: 44px !important;
    font-size: 12px !important;
  }

  .jd-header-search .jd-location-wrap {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    max-width: none !important;
  }

  .jd-header-search .jd-location {
    padding: 0 24px 0 10px !important;
  }

  .jd-header-search .jd-region {
    flex: 1 1 auto !important;
  }

  .jd-header-search .jd-search-btn {
    flex: 0 0 44px !important;
    min-width: 44px !important;
    width: 44px !important;
    padding: 0 !important;
    font-size: 12px !important;
    z-index: 5 !important;
  }

  .jd-actions {
    margin-left: auto !important;
    gap: 8px !important;
  }

  .jd-action {
    min-width: 48px !important;
    font-size: 11px !important;
  }

  .jd-header-nav {
    overflow: hidden !important;
    height: 48px !important;
    min-height: 48px !important;
    max-height: 48px !important;
  }

  .jd-header-nav a {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    width: auto !important;
    height: 48px !important;
    min-height: 48px !important;
    max-height: 48px !important;
    padding: 0 4px !important;
    font-size: 12px !important;
    white-space: normal !important;
    overflow: hidden !important;
    text-overflow: clip !important;
  }
}

@media (max-width: 575px) {
  .jd-logo img,
  .jd-site-header .jd-logo img,
  #jd-site-header .jd-logo img {
    height: 34px !important;
    max-height: 34px !important;
    max-width: 40px !important;
    aspect-ratio: 1 / 1 !important;
  }

  .jd-header-search {
    gap: 0 !important;
  }

  .jd-header-search .jd-category-btn,
  .jd-header-search .jd-search-btn,
  .jd-header-search .jd-location {
    min-height: 44px !important;
    height: 44px !important;
    font-size: 12px !important;
  }

  .jd-header-search .jd-search-btn {
    flex: 0 0 44px !important;
    min-width: 44px !important;
    width: 44px !important;
    padding: 0 !important;
    font-size: 12px !important;
  }
}



/* =========================================================
   Homepage Ad banner (full width)
   IMPORTANT: do NOT use flex centering here — AdSense measures
   parent width; flex+align-items:center often yields 0-width ads.
   ========================================================= */
.jd-ad-banner {
  width: 100% !important;
  min-height: 120px !important;
  background: #ffffff !important;
  border-bottom: 1px solid #e5e5e5 !important;
  overflow: visible !important;
  contain: layout !important;
}
.jd-ad-banner-inner {
  width: 100% !important;
  max-width: 1240px !important;
  margin: 0 auto !important;
  padding: 12px 16px !important;
  box-sizing: border-box !important;
  overflow: visible !important;
}
.jd-ad-slot {
  width: 100% !important;
  min-height: 100px !important;
  display: block !important;
  background: #f7f7f7 !important;
  color: #3d4518 !important;
  border-radius: 4px !important;
  padding: 10px 12px !important;
  box-sizing: border-box !important;
  overflow: visible !important;
  text-align: center !important;
}
.jd-ad-label {
  display: block !important;
  font-size: 11px !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  opacity: 0.75 !important;
  margin: 0 0 8px !important;
  color: #707070 !important;
}
.jd-ad-placeholder {
  font-size: 16px !important;
  font-weight: 700 !important;
  color: #9aaa3a !important;
}
.jd-ad-code,
.jd-ad-code--auto {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  min-height: 100px !important;
  overflow: visible !important;
  margin: 0 auto !important;
}
.jd-ad-code ins.adsbygoogle,
.jd-ad-banner ins.adsbygoogle {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  min-height: 100px !important;
  margin: 0 auto !important;
}
/* Reserve AdSense height when unfilled — collapsing caused major CLS on PSI. */
ins.adsbygoogle[data-ad-status="unfilled"] {
  visibility: hidden !important;
  min-height: 100px !important;
  height: 100px !important;
}
.jd-ad-banner {
  height: 120px !important;
  min-height: 120px !important;
  max-height: 120px !important;
  overflow: hidden !important;
}
/* When AdSense injects creatives, hide the static placeholder text */
.jd-ad-auto-host:has(iframe) .jd-ad-placeholder,
.jd-ad-auto-host:has(ins.adsbygoogle) .jd-ad-placeholder {
  display: none !important;
}

/* full-width slider section for ad */
body .body-innerwrapper > section#sp-slider-banner,
body .body-innerwrapper > section#sp-slider-banner .container,
body .body-innerwrapper > section#sp-slider-banner .row,
body .body-innerwrapper > section#sp-slider-banner [class*="col-"] {
  width: 100% !important;
  max-width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin: 0 !important;
}

/* intro section full width wrappers */
body .body-innerwrapper #sp-top2,
body .body-innerwrapper section#sp-top2 {
  width: 100% !important;
  max-width: 100% !important;
}

/* =========================================================
   Homepage Intro - Free local classifieds
   Append to: templates/j-myclassifieds/css/custom.css
   ========================================================= */

.jd-intro {
  width: 100% !important;
  background: #fff !important;
  border-bottom: 1px solid #ececec !important;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06) !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}

.jd-intro-inner {
  max-width: 1240px !important;
  margin: 0 auto !important;
  padding: 48px 20px !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 32px !important;
  box-sizing: border-box !important;
}

.jd-intro-copy {
  flex: 0 1 42% !important;
  max-width: 480px !important;
  min-width: 240px !important;
}

.jd-intro-title {
  margin: 0 0 10px !important;
  font-size: 42px !important;
  line-height: 1.15 !important;
  font-weight: 800 !important;
  color: #2d2933 !important;
  font-family: Montserrat, "Open Sans", sans-serif !important;
}

.jd-intro-sub {
  margin: 0 0 22px !important;
  font-size: 22px !important;
  line-height: 1.35 !important;
  color: #707070 !important;
  font-weight: 400 !important;
}

.jd-intro-points {
  list-style: none !important;
  margin: 0 0 28px !important;
  padding: 0 !important;
}

.jd-intro-points li {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 10px !important;
  margin: 0 0 12px !important;
  padding: 0 !important;
  font-size: 13px !important;
  line-height: 1.35 !important;
  letter-spacing: 0.04em !important;
  font-weight: 600 !important;
  color: #9e9e9e !important;
  text-transform: uppercase !important;
}

.jd-intro-points li::before {
  content: "\2713" !important;
  position: static !important;
  flex: 0 0 18px !important;
  width: 18px !important;
  height: 18px !important;
  line-height: 18px !important;
  text-align: center !important;
  background: #9aaa3a !important;
  color: #fff !important;
  border-radius: 50% !important;
  font-size: 11px !important;
  transform: none !important;
  box-shadow: none !important;
  background-image: none !important;
}

.jd-intro-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 48px !important;
  padding: 12px 28px !important;
  background: #9aaa3a !important;
  color: #fff !important;
  font-size: 18px !important;
  font-weight: 800 !important;
  text-decoration: none !important;
  border-radius: 8px !important;
  border: 0 !important;
  line-height: 1 !important;
}

.jd-intro-btn:hover,
.jd-intro-btn:focus {
  background: #7e8c2e !important;
  color: #fff !important;
  text-decoration: none !important;
}

/* =========================================================
   Intro collage: compact overlapping cluster (desktop)
   ========================================================= */
.jd-intro-col { display: none !important; }

.jd-intro-collage,
.jd-intro-collage--squares,
.jd-intro-collage--cluster {
  position: relative !important;
  display: block !important;
  flex: 0 0 520px !important;
  width: 520px !important;
  max-width: 520px !important;
  height: 460px !important;
  margin-left: auto !important;
  padding: 0 !important;
  overflow: visible !important;
  min-width: 0 !important;
  max-height: none !important;
}

.jd-intro-tile {
  position: absolute !important;
  margin: 0 !important;
  width: 180px !important;
  height: 180px !important;
  aspect-ratio: 1 / 1 !important;
  border-radius: 20px !important;
  overflow: hidden !important;
  background: #e8ecef !important;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.65) inset,
    0 12px 28px rgba(35, 48, 64, 0.16) !important;
  border: 3px solid #fff !important;
  transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s ease !important;
  will-change: transform !important;
}

.jd-intro-collage img,
.jd-intro-tile img {
  width: 100% !important;
  height: 100% !important;
  aspect-ratio: 1 / 1 !important;
  object-fit: cover !important;
  border-radius: 17px !important;
  display: block !important;
}

.jd-intro-tile--1 { left: 2%;  top: 14%; width: 158px !important; height: 158px !important; transform: rotate(-8deg); z-index: 2; }
.jd-intro-tile--2 { left: 32%; top: 0%;  width: 198px !important; height: 198px !important; transform: rotate(5deg);  z-index: 4; }
.jd-intro-tile--3 { left: 66%; top: 10%; width: 152px !important; height: 152px !important; transform: rotate(9deg);  z-index: 3; }
.jd-intro-tile--4 { left: 0%;  top: 50%; width: 148px !important; height: 148px !important; transform: rotate(6deg);  z-index: 1; }
.jd-intro-tile--5 { left: 28%; top: 44%; width: 186px !important; height: 186px !important; transform: rotate(-4deg); z-index: 5; }
.jd-intro-tile--6 { left: 60%; top: 52%; width: 168px !important; height: 168px !important; transform: rotate(-7deg); z-index: 2; }

.jd-intro-tile:hover {
  animation: none !important;
  transform: translateY(-6px) rotate(0deg) scale(1.06) !important;
  box-shadow: 0 16px 28px rgba(35, 48, 64, 0.22) !important;
  z-index: 8 !important;
}

@keyframes jd-intro-drift {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -4px; }
}

@media (prefers-reduced-motion: no-preference) {
  .jd-intro-tile--2 { animation: jd-intro-drift 5.5s ease-in-out infinite; }
  .jd-intro-tile--5 { animation: jd-intro-drift 6.5s ease-in-out infinite .6s; }
  .jd-intro-tile--3 { animation: jd-intro-drift 7s ease-in-out infinite 1.1s; }
}

@media (max-width: 991px) {
  .jd-intro-collage,
  .jd-intro-collage--squares,
  .jd-intro-collage--cluster {
    flex: 1 1 auto !important;
    width: min(280px, 86vw) !important;
    max-width: min(280px, 86vw) !important;
    height: 248px !important;
    margin: 0 auto !important;
  }
  .jd-intro-tile--1 { left: 2%;  top: 14%; width: 84px !important; height: 84px !important; }
  .jd-intro-tile--2 { left: 32%; top: 2%;  width: 104px !important; height: 104px !important; }
  .jd-intro-tile--3 { left: 66%; top: 12%; width: 80px !important; height: 80px !important; }
  .jd-intro-tile--4 { left: 0%;  top: 50%; width: 78px !important; height: 78px !important; }
  .jd-intro-tile--5 { left: 28%; top: 44%; width: 96px !important; height: 96px !important; }
  .jd-intro-tile--6 { left: 60%; top: 52%; width: 86px !important; height: 86px !important; }
  .jd-intro-tile, .jd-intro-tile img { border-radius: 14px !important; }
}

@media (max-width: 575px) {
  .jd-intro-collage,
  .jd-intro-collage--squares,
  .jd-intro-collage--cluster {
    width: min(250px, 92vw) !important;
    max-width: min(250px, 92vw) !important;
    height: 220px !important;
  }
  .jd-intro-tile--1 { width: 74px !important; height: 74px !important; }
  .jd-intro-tile--2 { width: 92px !important; height: 92px !important; }
  .jd-intro-tile--3 { width: 70px !important; height: 70px !important; }
  .jd-intro-tile--4 { width: 68px !important; height: 68px !important; }
  .jd-intro-tile--5 { width: 84px !important; height: 84px !important; }
  .jd-intro-tile--6 { width: 76px !important; height: 76px !important; }
  .jd-intro-tile, .jd-intro-tile img { border-radius: 12px !important; }
}


/* =========================================================
   Header actions: keep + Post Ad inside viewport on all pages
   ========================================================= */
.jd-site-header,
.jd-header-top,
#jd-site-header,
#sp-menu {
  max-width: 100% !important;
  box-sizing: border-box !important;
}
.jd-header-top {
  overflow-x: clip !important;
}
.jd-header-top-inner {
  width: 100% !important;
  max-width: 1240px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 20px !important;
  padding-right: 20px !important;
  box-sizing: border-box !important;
}
.jd-actions {
  flex: 0 1 auto !important;
  flex-shrink: 1 !important;
  min-width: 0 !important;
  max-width: 100% !important;
  margin-left: auto !important;
  margin-right: 0 !important;
  gap: 12px !important;
}
.jd-action-post-short { display: none !important; }
.jd-action-post-full { display: inline !important; }

@media (max-width: 991px) {
  .jd-header-top-inner {
    padding: 10px 14px !important;
    gap: 6px !important;
  }
  .jd-actions {
    gap: 6px !important;
    margin-left: 4px !important;
    justify-content: flex-end !important;
  }
  .jd-actions .jd-action,
  .jd-actions .jd-action-login,
  .jd-actions .jd-action-signup,
  .jd-actions .jd-action-post {
    font-size: 12px !important;
  }
  .jd-actions .jd-action-signup {
    padding: 6px 10px !important;
  }
  .jd-action-post-full { display: none !important; }
  .jd-action-post-short { display: inline !important; }
}

@media (max-width: 575px) {
  .jd-header-top-inner {
    padding: 8px 12px !important;
  }
  .jd-actions {
    gap: 5px !important;
  }
  .jd-actions .jd-action,
  .jd-actions .jd-action-login,
  .jd-actions .jd-action-signup,
  .jd-actions .jd-action-post {
    font-size: 11px !important;
  }
  .jd-actions .jd-action-signup {
    padding: 5px 8px !important;
  }
}

@media (min-width: 992px) {
  .jd-header-top-inner {
    padding-left: 24px !important;
    padding-right: 24px !important;
  }
}


/* =========================================================
   Unified search bar LOCK — location must not overflow bar
   (custom.css .jd-field{54px} was breaking non-home pages)
   ========================================================= */
.jd-search-bar {
  display: flex !important;
  align-items: stretch !important;
  height: 48px !important;
  min-height: 48px !important;
  max-height: 48px !important;
  overflow: visible !important; /* dropdowns */
  background: #fff !important;
  border-radius: 8px !important;
  box-sizing: border-box !important;
}
.jd-search-bar > .jd-category-wrap,
.jd-search-bar > .jd-keyword,
.jd-search-bar > .jd-location-wrap,
.jd-search-bar > .jd-search-btn {
  height: 48px !important;
  min-height: 48px !important;
  max-height: 48px !important;
  margin: 0 !important;
  box-sizing: border-box !important;
}
.jd-search-bar .jd-location-wrap {
  display: flex !important;
  align-items: stretch !important;
  background: transparent !important;
  border-radius: 0 !important;
  overflow: visible !important;
  box-shadow: none !important;
}
.jd-search-bar .jd-location-input-wrap {
  display: flex !important;
  align-items: center !important;
  width: 100% !important;
  height: 48px !important;
  min-height: 48px !important;
  max-height: 48px !important;
  padding: 0 0 0 10px !important;
  margin: 0 !important;
  box-sizing: border-box !important;
  background: transparent !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  overflow: hidden !important;
}
.jd-search-bar .jd-field,
.jd-search-bar .jd-location,
.jd-search-bar input.jd-location,
.jd-header-search .jd-search-bar .jd-location,
.jd-header-search .jd-search-bar .jd-field {
  height: 48px !important;
  min-height: 48px !important;
  max-height: 48px !important;
  line-height: 48px !important;
  padding: 0 10px 0 0 !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  box-sizing: border-box !important;
  width: 100% !important;
  flex: 1 1 auto !important;
  align-self: stretch !important;
}
.jd-search-bar .jd-category-btn {
  height: 48px !important;
  min-height: 48px !important;
  max-height: 48px !important;
  border-radius: 8px 0 0 8px !important;
}
.jd-search-bar .jd-search-btn {
  height: 48px !important;
  min-height: 48px !important;
  max-height: 48px !important;
  border-radius: 0 8px 8px 0 !important;
}

@media (max-width: 991px) {
  .jd-search-bar {
    height: 44px !important;
    min-height: 44px !important;
    max-height: 44px !important;
  }
  .jd-search-bar > .jd-category-wrap,
  .jd-search-bar > .jd-keyword,
  .jd-search-bar > .jd-location-wrap,
  .jd-search-bar > .jd-search-btn,
  .jd-search-bar .jd-location-input-wrap,
  .jd-search-bar .jd-field,
  .jd-search-bar .jd-location,
  .jd-search-bar input.jd-location,
  .jd-header-search .jd-search-bar .jd-location,
  .jd-header-search .jd-search-bar .jd-field,
  .jd-search-bar .jd-category-btn,
  .jd-search-bar .jd-search-btn {
    height: 44px !important;
    min-height: 44px !important;
    max-height: 44px !important;
  }
  .jd-search-bar .jd-location,
  .jd-search-bar input.jd-location,
  .jd-header-search .jd-search-bar .jd-location {
    line-height: 44px !important;
  }
}


/* =========================================================
   Business & Services: Post your business or service CTA
   ========================================================= */
.jd-biz-post-cta {
  width: 100% !important;
  max-width: 1240px !important;
  margin: 0 auto 16px !important;
  padding: 12px 16px 4px !important;
  box-sizing: border-box !important;
}
.jd-biz-post-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  min-height: 44px !important;
  padding: 10px 20px !important;
  background: #78C222 !important;
  color: #fff !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  text-decoration: none !important;
  border-radius: 8px !important;
  border: 0 !important;
  box-shadow: 0 2px 8px rgba(35, 48, 64, 0.12) !important;
  white-space: nowrap !important;
}
.jd-biz-post-btn:hover,
.jd-biz-post-btn:focus {
  background: #6bb01c !important;
  color: #fff !important;
  text-decoration: none !important;
}
.jd-biz-post-ico {
  font-size: 18px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
}
@media (max-width: 575px) {
  .jd-biz-post-cta {
    padding: 10px 12px 2px !important;
  }
  .jd-biz-post-btn {
    width: 100% !important;
    font-size: 14px !important;
    white-space: normal !important;
  }
}


/* =========================================================
   Classifieds sidebar: Categories + filters layout fix
   ========================================================= */
#searchDiv .search-filter,
#searchDiv #search-filter,
.mainContainer .search-filter {
  padding: 14px 16px 16px !important;
  box-sizing: border-box !important;
  overflow: visible !important;
}
#searchDiv .search-filter h3,
.mainContainer .search-filter h3 {
  margin: 0 0 10px !important;
  padding: 0 0 8px !important;
  border-bottom: 1px solid #ececec !important;
  line-height: 1.3 !important;
  font-size: 15px !important;
  font-weight: 700 !important;
}
#searchDiv .search-category-box,
.mainContainer .search-category-box {
  display: block !important;
  float: none !important;
  clear: none !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1.4 !important;
}
#searchDiv .search-category-box ul,
.mainContainer .search-category-box ul {
  float: none !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}
#searchDiv .search-category-box li,
.mainContainer .search-category-box li {
  align-items: center !important;
  gap: 6px !important;
  width: 100% !important;
  margin: 0 0 6px !important;
  padding: 4px 0 !important;
  box-sizing: border-box !important;
}
/* Top-level only: do not force display on .firstSub/.secondSub (they stay collapsed). */
#searchDiv .search-category-box li:not(.firstSub):not(.secondSub),
.mainContainer .search-category-box li:not(.firstSub):not(.secondSub) {
  display: flex !important;
}
#searchDiv .search-category-box li.firstSub,
#searchDiv .search-category-box li.secondSub,
.mainContainer .search-category-box li.firstSub,
.mainContainer .search-category-box li.secondSub {
  display: none;
  padding-left: 12px !important;
}
#searchDiv .search-category-box li.secondSub,
.mainContainer .search-category-box li.secondSub {
  padding-left: 30px !important;
}
#searchDiv .search-category-box .categoryLabel,
#searchDiv .search-category-box .catFilterLabel,
.mainContainer .search-category-box .categoryLabel,
.mainContainer .search-category-box .catFilterLabel {
  float: none !important;
  display: inline !important;
  width: auto !important;
  line-height: 1.35 !important;
  color: #333 !important;
}
#galleryDiv:empty,
#galleryAds:empty {
  display: none !important;
}
