/* =========================================
   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{
    overflow:visible !important;
}

/* 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: #228B22 !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: 0 !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: 160px !important;
  height: 80px !important;
  max-height: 80px !important;
  object-fit: contain !important;
  object-position: center !important;
  border: 0 !important;
  filter: none !important;
  aspect-ratio: auto !important;
  /* stop Helix / template from stretching logo */
  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: 54px !important;
  height: 54px !important;
  border: 0 !important;
  border-radius: 8px !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: 54px !important;
  height: 54px !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 {
  flex: 0 0 110px !important;
  padding: 0 8px !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: 88px !important;
  }

  .jd-header-search {
    order: 3 !important;
    flex: 1 1 100% !important;
    width: 100% !important;
    flex-wrap: nowrap !important;
    gap: 6px !important;
  }

  /* Hide category search on mobile/tablet */
  .jd-header-search .jd-category-wrap {
    display: none !important;
  }

  .jd-header-search .jd-radius {
    display: none !important;
  }

  .jd-header-search .jd-field,
  .jd-header-search .jd-search-btn,
  .jd-header-search .jd-location {
    min-height: 36px !important;
    height: 36px !important;
    font-size: 13px !important;
  }

  .jd-header-search .jd-keyword {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    padding: 0 10px !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 auto !important;
    min-width: 64px !important;
    width: auto !important;
    padding: 0 10px !important;
    font-size: 13px !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: 72px !important;
  }

  .jd-header-search {
    gap: 5px !important;
  }

  .jd-header-search .jd-field,
  .jd-header-search .jd-search-btn,
  .jd-header-search .jd-location {
    min-height: 34px !important;
    height: 34px !important;
    font-size: 12px !important;
  }

  .jd-header-search .jd-search-btn {
    min-width: 58px !important;
    padding: 0 8px !important;
    font-size: 12px !important;
  }
}



/* =========================================================
   Homepage Ad banner (full width)
   ========================================================= */
.jd-ad-banner {
  width: 100% !important;
  background: #f3f3f3 !important;
  border-bottom: 1px solid #e5e5e5 !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;
}
.jd-ad-slot {
  width: 100% !important;
  min-height: 90px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  background: #eeeeee !important;
  color: #fff !important;
  border-radius: 4px !important;
  padding: 12px !important;
  box-sizing: border-box !important;
}
.jd-ad-label {
  font-size: 11px !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  opacity: 0.75 !important;
  margin-bottom: 6px !important;
}
.jd-ad-placeholder {
  font-size: 16px !important;
  font-weight: 700 !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;
}

/* Masonry collage: 4 staggered columns */
.jd-intro-collage {
  flex: 1 1 58% !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: flex-start !important;
  gap: 10px !important;
  height: 360px !important;
  max-height: 360px !important;
  overflow: hidden !important;
  min-width: 0 !important;
}

.jd-intro-col {
  flex: 1 1 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
  min-width: 0 !important;
}

.jd-intro-col--1 { margin-top: 28px !important; }
.jd-intro-col--2 { margin-top: 0 !important; }
.jd-intro-col--3 { margin-top: 48px !important; }
.jd-intro-col--4 { margin-top: 12px !important; }

.jd-intro-collage img {
  width: 100% !important;
  display: block !important;
  object-fit: cover !important;
  border-radius: 12px !important;
  background: #e8ecef !important;
}

.jd-intro-col--1 img { height: 300px !important; }
.jd-intro-col--2 img { height: 165px !important; }
.jd-intro-col--3 img { height: 120px !important; }
.jd-intro-col--4 img { height: 100px !important; }

@media (max-width: 991px) {
  .jd-intro-inner {
    flex-direction: column !important;
    padding: 36px 16px !important;
    gap: 28px !important;
    align-items: stretch !important;
  }

  .jd-intro-copy {
    flex: 1 1 auto !important;
    max-width: none !important;
  }

  .jd-intro-title {
    font-size: 34px !important;
  }

  .jd-intro-sub {
    font-size: 18px !important;
  }

  .jd-intro-collage {
    width: 100% !important;
    height: 280px !important;
    max-height: 280px !important;
  }

  .jd-intro-col--1 img { height: 240px !important; }
  .jd-intro-col--2 img { height: 130px !important; }
  .jd-intro-col--3 img { height: 95px !important; }
  .jd-intro-col--4 img { height: 80px !important; }
}

@media (max-width: 575px) {
  .jd-intro-collage {
    height: 220px !important;
    max-height: 220px !important;
    gap: 6px !important;
  }

  .jd-intro-col { gap: 6px !important; }
  .jd-intro-collage img { border-radius: 8px !important; }
  .jd-intro-col--1 { margin-top: 16px !important; }
  .jd-intro-col--3 { margin-top: 28px !important; }
  .jd-intro-col--1 img { height: 190px !important; }
  .jd-intro-col--2 img { height: 100px !important; }
  .jd-intro-col--3 img { height: 72px !important; }
  .jd-intro-col--4 img { height: 60px !important; }
}



/* Hard hide leftover Helix menu under custom header */
body.site section#sp-menu nav.sp-megamenu-wrapper,
body.site section#sp-menu ul.sp-megamenu-parent,
body.site #sp-logo {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  overflow: hidden !important;
}

/* =========================================================
   Discover popular categories (grid under intro)
   ========================================================= */

.jd-discover {
  width: 100% !important;
  background: #ffffff !important;
  box-sizing: border-box !important;
  padding: 40px 0 48px !important;
}

.jd-discover-inner {
  max-width: 1240px !important;
  margin: 0 auto !important;
  padding: 0 20px !important;
  box-sizing: border-box !important;
}

.jd-discover-title {
  margin: 0 0 24px !important;
  font-size: 28px !important;
  line-height: 1.2 !important;
  font-weight: 800 !important;
  color: #2d2933 !important;
  font-family: Montserrat, "Open Sans", sans-serif !important;
}

.jd-discover-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 18px !important;
}

.jd-discover-card {
  display: flex !important;
  flex-direction: column !important;
  background: #fff !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  text-decoration: none !important;
  color: #2d2933 !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06) !important;
  transition: transform 0.18s ease, box-shadow 0.18s ease !important;
}

.jd-discover-card:hover,
.jd-discover-card:focus {
  text-decoration: none !important;
  color: #5f6b1f !important;
  transform: translateY(-3px) !important;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.1) !important;
}

.jd-discover-media {
  display: block !important;
  width: 100% !important;
  aspect-ratio: 16 / 11 !important;
  background: #dfe8e1 !important;
  overflow: hidden !important;
}

.jd-discover-media img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  transition: transform 0.25s ease !important;
}

.jd-discover-card:hover .jd-discover-media img,
.jd-discover-card:focus .jd-discover-media img {
  transform: scale(1.04) !important;
}

.jd-discover-label {
  display: block !important;
  padding: 14px 16px !important;
  font-size: 16px !important;
  line-height: 1.3 !important;
  font-weight: 600 !important;
  font-family: Montserrat, "Open Sans", sans-serif !important;
  background: #fff !important;
  border-top: 1px solid #eeeeee !important;
}

@media (max-width: 991px) {
  .jd-discover {
    padding: 28px 0 36px !important;
  }

  .jd-discover-title {
    font-size: 24px !important;
    margin-bottom: 18px !important;
  }

  .jd-discover-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 14px !important;
  }
}

@media (max-width: 575px) {
  .jd-discover-inner {
    padding: 0 12px !important;
  }

  .jd-discover-title {
    font-size: 22px !important;
  }

  .jd-discover-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
  }

  .jd-discover-label {
    padding: 10px 12px !important;
    font-size: 14px !important;
  }
}

/* =========================================================
   Homepage - We think you'll love these (category carousel)
   Title card is fixed; only category cards slide.
   ========================================================= */

.jd-love {
  width: 100% !important;
  background: #fff !important;
  box-sizing: border-box !important;
  padding: 28px 0 36px !important;
}

.jd-love-wrap {
  display: flex !important;
  flex-direction: row !important;
  align-items: stretch !important;
  gap: 14px !important;
  max-width: 1240px !important;
  margin: 0 auto !important;
  padding: 0 20px !important;
  box-sizing: border-box !important;
}

/* Fixed title card (does not scroll) - same height as slider cards */
.jd-love-card--title {
  flex: 0 0 240px !important;
  width: 240px !important;
  height: 168px !important;
  min-height: 168px !important;
  max-height: 168px !important;
  border-radius: 20px !important;
  background: #f2f2f2 !important;
  padding: 28px 24px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  box-sizing: border-box !important;
  color: #2b2430 !important;
  align-self: stretch !important;
}

.jd-love-heading {
  margin: 0 0 10px !important;
  font-size: 28px !important;
  line-height: 1.2 !important;
  font-weight: 800 !important;
  color: #2b2430 !important;
  font-family: Montserrat, "Open Sans", sans-serif !important;
}

.jd-love-sub {
  margin: 0 !important;
  font-size: 15px !important;
  line-height: 1.35 !important;
  color: #5c5663 !important;
  font-weight: 400 !important;
}

/* Slider area only (category cards) */
.jd-love-slider {
  position: relative !important;
  flex: 1 1 auto !important;
  min-width: 0 !important;
  display: flex !important;
  align-items: stretch !important;
  height: 168px !important;
}

.jd-love-track {
  display: flex !important;
  flex-direction: row !important;
  align-items: stretch !important;
  gap: 14px !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  scroll-snap-type: x mandatory !important;
  scroll-behavior: smooth !important;
  -webkit-overflow-scrolling: touch !important;
  padding: 0 8px 0 0 !important;
  scrollbar-width: none !important;
  height: 168px !important;
  width: 100% !important;
}

.jd-love-track::-webkit-scrollbar {
  display: none !important;
}

.jd-love-track .jd-love-card {
  flex: 0 0 auto !important;
  width: 280px !important;
  height: 168px !important;
  min-height: 168px !important;
  max-height: 168px !important;
  border-radius: 20px !important;
  box-sizing: border-box !important;
  scroll-snap-align: start !important;
  text-decoration: none !important;
  color: #2b2430 !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px !important;
  padding: 18px 14px 18px 20px !important;
  transition: transform 0.18s ease, box-shadow 0.18s ease !important;
}

.jd-love-track .jd-love-card:hover,
.jd-love-track .jd-love-card:focus {
  text-decoration: none !important;
  color: #2b2430 !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08) !important;
}

.jd-love-text {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  font-size: 20px !important;
  line-height: 1.25 !important;
  font-weight: 700 !important;
  font-family: Montserrat, "Open Sans", sans-serif !important;
}

.jd-love-img {
  flex: 0 0 118px !important;
  width: 118px !important;
  height: 118px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.jd-love-img img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  border-radius: 10px !important;
}

.jd-love-card--pink { background: #fdeced !important; }
.jd-love-card--yellow { background: #fff6c9 !important; }
.jd-love-card--green { background: #e8f6e4 !important; }
.jd-love-card--blue { background: #e8f1fb !important; }
.jd-love-card--peach { background: #ffe8d9 !important; }
.jd-love-card--lilac { background: #efe8fb !important; }

.jd-love-nav {
  position: absolute !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 44px !important;
  height: 44px !important;
  border-radius: 50% !important;
  border: 0 !important;
  background: #fff !important;
  color: #222 !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.16) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  z-index: 3 !important;
  padding: 0 !important;
}

.jd-love-prev {
  left: 6px !important;
}

.jd-love-next {
  right: 6px !important;
}

.jd-love-nav:hover,
.jd-love-nav:focus {
  background: #f7f7f7 !important;
  outline: none !important;
}

.jd-love-nav.is-hidden {
  display: none !important;
}

@media (max-width: 991px) {
  .jd-love {
    padding: 20px 0 28px !important;
  }

  .jd-love-wrap {
    padding: 0 12px !important;
    gap: 10px !important;
  }

  .jd-love-card--title {
    flex-basis: 200px !important;
    width: 200px !important;
    height: 150px !important;
    min-height: 150px !important;
    max-height: 150px !important;
    padding: 22px 18px !important;
  }

  .jd-love-slider,
  .jd-love-track {
    height: 150px !important;
  }

  .jd-love-track .jd-love-card {
    width: 240px !important;
    height: 150px !important;
    min-height: 150px !important;
    max-height: 150px !important;
  }

  .jd-love-heading {
    font-size: 22px !important;
  }

  .jd-love-text {
    font-size: 17px !important;
  }

  .jd-love-img {
    flex-basis: 96px !important;
    width: 96px !important;
    height: 96px !important;
  }
}

@media (max-width: 575px) {
  .jd-love-wrap {
    flex-direction: column !important;
  }

  .jd-love-card--title {
    flex: 0 0 auto !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
  }

  .jd-love-slider,
  .jd-love-track {
    height: 150px !important;
  }

  .jd-love-track .jd-love-card {
    width: 220px !important;
    height: 150px !important;
    min-height: 150px !important;
    max-height: 150px !important;
  }

  .jd-love-nav {
    width: 40px !important;
    height: 40px !important;
  }

  .jd-love-prev {
    left: 4px !important;
  }

  .jd-love-next {
    right: 4px !important;
  }
}


/* =========================================================
   Homepage - Featured Blog Articles
   Featured card is fixed; smaller cards slide.
   ========================================================= */

.jd-blog {
  width: 100% !important;
  background: #f5f5f5 !important;
  box-sizing: border-box !important;
  padding: 40px 0 48px !important;
}

.jd-blog-inner {
  max-width: 1240px !important;
  margin: 0 auto !important;
  padding: 0 20px !important;
  box-sizing: border-box !important;
}

.jd-blog-head {
  display: flex !important;
  flex-direction: row !important;
  align-items: baseline !important;
  justify-content: space-between !important;
  gap: 16px !important;
  margin: 0 0 22px !important;
}

.jd-blog-title {
  margin: 0 !important;
  font-size: 28px !important;
  line-height: 1.2 !important;
  font-weight: 700 !important;
  color: #2d2933 !important;
  font-family: Montserrat, "Open Sans", sans-serif !important;
}

.jd-blog-all {
  color: #7e8c2e !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  white-space: nowrap !important;
}

.jd-blog-all:hover,
.jd-blog-all:focus {
  color: #616161 !important;
  text-decoration: none !important;
}

.jd-blog-row {
  display: flex !important;
  flex-direction: row !important;
  align-items: stretch !important;
  gap: 16px !important;
}

/* Fixed featured article */
.jd-blog-featured {
  flex: 0 0 48% !important;
  max-width: 560px !important;
  display: flex !important;
  flex-direction: row !important;
  background: #fff !important;
  border-radius: 16px !important;
  overflow: hidden !important;
  text-decoration: none !important;
  color: #2d2933 !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06) !important;
  min-height: 260px !important;
}

.jd-blog-featured:hover,
.jd-blog-featured:focus {
  text-decoration: none !important;
  color: #2d2933 !important;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1) !important;
}

.jd-blog-featured-media {
  flex: 0 0 48% !important;
  min-width: 0 !important;
  background: #e0e0e0 !important;
}

.jd-blog-featured-media img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

.jd-blog-featured-body {
  flex: 1 1 auto !important;
  padding: 22px 20px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  gap: 10px !important;
  min-width: 0 !important;
}

.jd-blog-cat {
  display: inline-block !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #7e8c2e !important;
  line-height: 1.2 !important;
}

.jd-blog-headline {
  display: block !important;
  font-size: 18px !important;
  line-height: 1.35 !important;
  font-weight: 700 !important;
  color: #2d2933 !important;
  font-family: Montserrat, "Open Sans", sans-serif !important;
}

.jd-blog-excerpt {
  display: block !important;
  font-size: 14px !important;
  line-height: 1.45 !important;
  color: #6b6570 !important;
}

.jd-blog-featured .jd-blog-headline {
  font-size: 22px !important;
}

/* Slider for smaller cards */
.jd-blog-slider {
  position: relative !important;
  flex: 1 1 auto !important;
  min-width: 0 !important;
}

.jd-blog-track {
  display: flex !important;
  flex-direction: row !important;
  gap: 14px !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  scroll-snap-type: x mandatory !important;
  scroll-behavior: smooth !important;
  -webkit-overflow-scrolling: touch !important;
  padding: 2px 8px 8px 0 !important;
  height: 100% !important;
  scrollbar-width: none !important;
}

.jd-blog-track::-webkit-scrollbar {
  display: none !important;
}

.jd-blog-card {
  flex: 0 0 240px !important;
  width: 240px !important;
  display: flex !important;
  flex-direction: column !important;
  background: #fff !important;
  border-radius: 16px !important;
  overflow: hidden !important;
  text-decoration: none !important;
  color: #2d2933 !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06) !important;
  scroll-snap-align: start !important;
  min-height: 260px !important;
}

.jd-blog-card:hover,
.jd-blog-card:focus {
  text-decoration: none !important;
  color: #2d2933 !important;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1) !important;
}

.jd-blog-card-media {
  display: block !important;
  width: 100% !important;
  height: 150px !important;
  background: #e0e0e0 !important;
  overflow: hidden !important;
}

.jd-blog-card-media img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

.jd-blog-card-body {
  padding: 14px 16px 18px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
}

.jd-blog-card .jd-blog-headline {
  font-size: 16px !important;
}

.jd-blog-nav {
  position: absolute !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 44px !important;
  height: 44px !important;
  border-radius: 50% !important;
  border: 0 !important;
  background: #fff !important;
  color: #222 !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.16) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  z-index: 3 !important;
  padding: 0 !important;
}

.jd-blog-prev { left: 6px !important; }
.jd-blog-next { right: 6px !important; }

.jd-blog-nav:hover,
.jd-blog-nav:focus {
  background: #f7f7f7 !important;
  outline: none !important;
}

.jd-blog-nav.is-hidden {
  display: none !important;
}

@media (max-width: 991px) {
  .jd-blog {
    padding: 32px 0 40px !important;
  }

  .jd-blog-row {
    flex-direction: column !important;
  }

  .jd-blog-featured {
    flex: 1 1 auto !important;
    max-width: none !important;
    width: 100% !important;
  }

  .jd-blog-title {
    font-size: 24px !important;
  }

  .jd-blog-featured .jd-blog-headline {
    font-size: 20px !important;
  }
}

@media (max-width: 640px) {
  .jd-blog-featured {
    flex-direction: column !important;
  }

  .jd-blog-featured-media {
    flex: 0 0 auto !important;
    height: 180px !important;
  }

  .jd-blog-card {
    flex-basis: 220px !important;
    width: 220px !important;
  }

  .jd-blog-nav {
    width: 40px !important;
    height: 40px !important;
  }
}


/* Hide default JClassifieds category cards on the Home page only.
   Search Ads By Categories (itemid-231) keeps the category grid. */
body.home.view-categories #sp-component .categories-container-2,
body.home.view-categories #sp-component .categories-style-2,
body.view-categories.itemid-101 #sp-component .categories-container-2,
body.view-categories.itemid-101 #sp-component .categories-style-2,
body.view-categories.itemid-1 #sp-component .categories-container-2,
body.view-categories.itemid-1 #sp-component .categories-style-2 {
  display: none !important;
}

body.home.view-categories #sp-component .sp-column:empty,
body.home.view-categories main#sp-component,
body.view-categories.itemid-101 #sp-component .sp-column:empty,
body.view-categories.itemid-101 main#sp-component,
body.view-categories.itemid-1 #sp-component .sp-column:empty,
body.view-categories.itemid-1 main#sp-component {
  min-height: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  margin: 0 !important;
}


/* =========================================================
   Homepage - Help, Business & Safety
   ========================================================= */

.jd-help {
  width: 100% !important;
  background: #fff !important;
  box-sizing: border-box !important;
  padding: 28px 0 48px !important;
}

.jd-help-inner {
  max-width: 1240px !important;
  margin: 0 auto !important;
  padding: 0 20px !important;
  box-sizing: border-box !important;
}

.jd-help-cards {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 18px !important;
  margin: 0 0 18px !important;
}

.jd-help-card {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  background: #f5f5f5 !important;
  border-radius: 18px !important;
  padding: 28px 24px !important;
  box-sizing: border-box !important;
  min-height: 220px !important;
}

.jd-help-card-copy {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  max-width: 360px !important;
}

.jd-help-card-title {
  margin: 0 0 12px !important;
  font-size: 28px !important;
  line-height: 1.2 !important;
  font-weight: 800 !important;
  color: #2d2933 !important;
  font-family: Montserrat, "Open Sans", sans-serif !important;
}

.jd-help-card-text {
  margin: 0 0 20px !important;
  font-size: 15px !important;
  line-height: 1.45 !important;
  color: #4f4a55 !important;
}

.jd-help-card-art {
  flex: 0 0 auto !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.jd-help-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 44px !important;
  padding: 10px 22px !important;
  background: #9aaa3a !important;
  color: #fff !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  border-radius: 8px !important;
  border: 0 !important;
  line-height: 1 !important;
}

.jd-help-btn:hover,
.jd-help-btn:focus {
  background: #7e8c2e !important;
  color: #fff !important;
  text-decoration: none !important;
}

.jd-help-btn--on-dark {
  flex: 0 0 auto !important;
  white-space: nowrap !important;
}

.jd-safety {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 20px !important;
  background: #212121 !important;
  border-radius: 18px !important;
  padding: 22px 28px !important;
  box-sizing: border-box !important;
}

.jd-safety-art {
  flex: 0 0 auto !important;
}

.jd-safety-copy {
  flex: 1 1 auto !important;
  min-width: 0 !important;
}

.jd-safety-title {
  margin: 0 0 8px !important;
  font-size: 26px !important;
  line-height: 1.2 !important;
  font-weight: 800 !important;
  color: #fff !important;
  font-family: Montserrat, "Open Sans", sans-serif !important;
}

.jd-safety-text {
  margin: 0 !important;
  font-size: 15px !important;
  line-height: 1.45 !important;
  color: #d7d7d7 !important;
}

.jd-safety-text a {
  color: #d4f0b0 !important;
  text-decoration: underline !important;
  font-weight: 600 !important;
}

.jd-safety-text a:hover,
.jd-safety-text a:focus {
  color: #d4f0b0 !important;
}

@media (max-width: 991px) {
  .jd-help-cards {
    grid-template-columns: 1fr !important;
  }

  .jd-help-card-title {
    font-size: 24px !important;
  }

  .jd-safety {
    flex-wrap: wrap !important;
  }

  .jd-safety-title {
    font-size: 22px !important;
  }
}

@media (max-width: 640px) {
  .jd-help-card {
    flex-direction: column !important;
    align-items: flex-start !important;
    padding: 22px 18px !important;
  }

  .jd-help-card-art {
    align-self: flex-end !important;
  }

  .jd-safety {
    flex-direction: column !important;
    align-items: flex-start !important;
    padding: 20px 18px !important;
  }

  .jd-help-btn--on-dark {
    width: 100% !important;
  }
}



/* Dark green Gumtree-style header overrides */
.jd-header-top {
  color: #ffffff !important;
}
.jd-action {
  color: #ffffff !important;
}
.jd-action:hover {
  color: #72ef36 !important;
}
.jd-ad-slot {
  color: #3d4518 !important;
}
.jd-ad-banner {
  background: #ffffff !important;
}
.jd-header-nav a:hover {
  background: #eef8e8 !important;
  color: #228B22 !important;
}
.jd-header-search .jd-search-btn {
  background: #72ef36 !important;
  color: #228B22 !important;
}
.jd-header-search .jd-search-btn:hover {
  background: #5fd62a !important;
  color: #228B22 !important;
}

/* Dark green Gumtree-style header; page body stays white */
.jd-header-top {
  background: #228B22 !important;
  color: #ffffff !important;
}
.jd-ad-slot {
  background: #ffffff !important;
  color: #3d4518 !important;
}
.jd-ad-banner {
  background: #ffffff !important;
}
.jd-action {
  color: #ffffff !important;
}
.jd-action:hover {
  color: #72ef36 !important;
}
.jd-header-nav {
  background: #fff !important;
  border-bottom: 1px solid #e5e5e5 !important;
}
.jd-header-nav a {
  color: #222 !important;
  border-right-color: #e5e5e5 !important;
}
.jd-header-nav a:hover,
.jd-header-nav a:focus {
  background: #eef8e8 !important;
  color: #228B22 !important;
}
.jd-header-search .jd-search-btn {
  background: #72ef36 !important;
  color: #228B22 !important;
}
.jd-header-search .jd-search-btn:hover {
  background: #5fd62a !important;
  color: #228B22 !important;
}
.jd-intro-btn {
  background: #228B22 !important;
  color: #fff !important;
}
.jd-intro-btn:hover {
  background: #1a6b1a !important;
  color: #fff !important;
}
body.site .body-wrapper,
body.site .body-innerwrapper {
  background: #ffffff !important;
}

/* Header location dropdown (matches hero search behavior) */
.jd-header-search .jd-location-wrap {
  position: relative !important;
  -webkit-box-flex: 0 !important;
  -ms-flex: 0 1 180px !important;
  flex: 0 1 180px !important;
  min-width: 140px !important;
}

.jd-location-input-wrap {
  position: relative !important;
  height: 100% !important;
}

.jd-header-search .jd-location {
  width: 100% !important;
  min-height: 54px !important;
  height: 54px !important;
  padding: 0 28px 0 12px !important;
  background: #fff !important;
  color: #222 !important;
  border: 0 !important;
  border-radius: 8px !important;
  box-sizing: border-box !important;
  font-size: 15px !important;
}

.jd-location-arrow {
  position: absolute !important;
  right: 10px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  color: #666 !important;
  pointer-events: none !important;
  font-size: 12px !important;
}

.jd-location-results {
  position: absolute !important;
  top: calc(100% + 4px) !important;
  left: 0 !important;
  right: 0 !important;
  min-width: 260px !important;
  max-height: 320px !important;
  overflow-y: auto !important;
  background: #fff !important;
  border: 1px solid #e5e5e5 !important;
  border-radius: 8px !important;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12) !important;
  z-index: 2000 !important;
  color: #222 !important;
}

.jd-location-results[hidden] {
  display: none !important;
}

.jd-location-results .jd-all-ireland,
.jd-location-results .all-ireland,
.jd-location-results .jd-county-item,
.jd-location-results .county-item,
.jd-location-results .county-select,
.jd-location-results .jd-county-select,
.jd-location-results .back-to-counties,
.jd-location-results .jd-back-to-counties,
.jd-location-results .town-item,
.jd-location-results .town-search-item {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 10px 12px !important;
  cursor: pointer !important;
  font-size: 14px !important;
  border-bottom: 1px solid #f0f0f0 !important;
}

.jd-location-results .jd-all-ireland:hover,
.jd-location-results .all-ireland:hover,
.jd-location-results .county-item:hover,
.jd-location-results .county-select:hover,
.jd-location-results .town-item:hover,
.jd-location-results .town-search-item:hover,
.jd-location-results .back-to-counties:hover {
  background: #ffffff !important;
  color: #5f6b1f !important;
}

.jd-location-results .featured-county {
  font-weight: 700 !important;
}

/* Keep header action links clickable above search UI */
.jd-header-search {
  position: relative !important;
  z-index: 1 !important;
}
.jd-actions {
  position: relative !important;
  z-index: 20 !important;
  pointer-events: auto !important;
  flex-shrink: 0 !important;
}
.jd-action,
.jd-action-login {
  position: relative !important;
  z-index: 21 !important;
  pointer-events: auto !important;
  cursor: pointer !important;
  color: #ffffff !important;
}
.jd-action .jd-action-ico,
.jd-action-login .jd-action-ico {
  color: #ffffff !important;
}
.jd-action:hover,
.jd-action:focus,
.jd-action-login:hover,
.jd-action-login:focus {
  color: #72ef36 !important;
}
.jd-action:hover .jd-action-ico,
.jd-action:focus .jd-action-ico,
.jd-action-login:hover .jd-action-ico,
.jd-action-login:focus .jd-action-ico {
  color: #72ef36 !important;
}

/* Force-hide homepage category cards (Cars / Jobs / Properties grid) */
body.home.view-categories #sp-main-body-component,
body.home.view-categories #sp-component .categories-container-2,
body.home.view-categories #sp-component .categories-style-2,
body.home.view-categories #sp-component .category-content-2,
body.view-categories.itemid-101 #sp-main-body-component,
body.view-categories.itemid-101 #sp-component .categories-container-2,
body.view-categories.itemid-101 #sp-component .categories-style-2,
body.view-categories.itemid-101 #sp-component .category-content-2,
body.com_jclassifiedsmanager.view-categories.itemid-101 .categories-container-2,
body.view-categories.itemid-1 #sp-main-body-component,
body.view-categories.itemid-1 #sp-component .categories-container-2,
body.view-categories.itemid-1 #sp-component .categories-style-2,
body.view-categories.itemid-1 #sp-component .category-content-2,
body.com_jclassifiedsmanager.view-categories.itemid-1 .categories-container-2 {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  max-height: 0 !important;
  overflow: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}

/* Mobile compact search: hide category, one-line keyword/location/Search */
@media (max-width: 991px) {
  .jd-header-search {
    flex-wrap: nowrap !important;
    gap: 6px !important;
  }
  .jd-header-search .jd-category-wrap {
    display: none !important;
  }
  .jd-header-search .jd-field,
  .jd-header-search .jd-search-btn,
  .jd-header-search .jd-location {
    min-height: 36px !important;
    height: 36px !important;
    font-size: 13px !important;
  }
  .jd-header-search .jd-keyword {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    padding: 0 10px !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-search-btn {
    flex: 0 0 auto !important;
    min-width: 64px !important;
    width: auto !important;
    padding: 0 10px !important;
    font-size: 13px !important;
  }
}
@media (max-width: 575px) {
  .jd-header-search .jd-field,
  .jd-header-search .jd-search-btn,
  .jd-header-search .jd-location {
    min-height: 34px !important;
    height: 34px !important;
    font-size: 12px !important;
  }
  .jd-header-search .jd-search-btn {
    min-width: 58px !important;
    padding: 0 8px !important;
    font-size: 12px !important;
  }
}

/* Category nav tabs: all visible, fixed 48px height */
.jd-header-nav {
  height: 48px !important;
  min-height: 48px !important;
  max-height: 48px !important;
  overflow: hidden !important;
}
.jd-header-nav a {
  flex: 1 1 0 !important;
  min-width: 0 !important;
  height: 48px !important;
  min-height: 48px !important;
  max-height: 48px !important;
  padding: 0 8px !important;
  white-space: normal !important;
  overflow: hidden !important;
  text-overflow: clip !important;
  line-height: 1.15 !important;
}
@media (max-width: 991px) {
  .jd-header-nav {
    height: 48px !important;
    min-height: 48px !important;
    max-height: 48px !important;
    overflow: hidden !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-header-nav a {
    padding: 0 3px !important;
    font-size: 11px !important;
  }
}

/* Category nav: allow 2-line labels inside fixed 48px tabs */
.jd-header-nav {
  height: 48px !important;
  min-height: 48px !important;
  max-height: 48px !important;
  overflow: hidden !important;
}
.jd-header-nav a {
  flex: 1 1 0 !important;
  min-width: 0 !important;
  height: 48px !important;
  min-height: 48px !important;
  max-height: 48px !important;
  padding: 2px 4px !important;
  white-space: normal !important;
  overflow: hidden !important;
  text-overflow: clip !important;
  text-align: center !important;
  line-height: 1.15 !important;
  word-break: break-word !important;
  overflow-wrap: anywhere !important;
  hyphens: auto !important;
  -webkit-hyphens: auto !important;
  display: -webkit-box !important;
  display: flex !important;
  -webkit-box-align: center !important;
  align-items: center !important;
  -webkit-box-pack: center !important;
  justify-content: center !important;
}
@media (max-width: 991px) {
  .jd-header-nav a {
    padding: 2px 3px !important;
    font-size: 11px !important;
    line-height: 1.2 !important;
    white-space: normal !important;
    text-overflow: clip !important;
  }
}
@media (max-width: 575px) {
  .jd-header-nav a {
    padding: 1px 2px !important;
    font-size: 10px !important;
    line-height: 1.15 !important;
  }
}

/* Force 2-line category tab labels (Cars & Vehicles) */
.jd-header-nav a {
  white-space: normal !important;
  text-overflow: clip !important;
  overflow: hidden !important;
  line-height: 1.15 !important;
}
.jd-header-nav a br {
  display: block !important;
  content: "" !important;
  line-height: 0 !important;
}
@media (min-width: 992px) {
  .jd-header-nav a br {
    display: none !important;
  }
}

/* Header #228B22; Intro Post Ad = search-button green #72ef36 */
.jd-header-top {
  background: #228B22 !important;
  color: #ffffff !important;
}
.jd-header-search .jd-search-btn {
  background: #72ef36 !important;
  color: #228B22 !important;
}
.jd-header-search .jd-search-btn:hover {
  background: #5fd62a !important;
  color: #228B22 !important;
}
.jd-intro-btn,
a.jd-intro-btn {
  background: #72ef36 !important;
  color: #228B22 !important;
}
.jd-intro-btn:hover,
.jd-intro-btn:focus,
a.jd-intro-btn:hover,
a.jd-intro-btn:focus {
  background: #5fd62a !important;
  color: #228B22 !important;
}
.jd-header-nav a:hover,
.jd-header-nav a:focus {
  color: #228B22 !important;
}

/* Header actions: Sign up pill | Log in | + Post FREE Ad */
.jd-actions {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 14px !important;
  flex-shrink: 0 !important;
}
.jd-actions .jd-action,
.jd-actions .jd-action-login,
.jd-actions .jd-action-signup,
.jd-actions .jd-action-post {
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center !important;
  color: #ffffff !important;
  min-width: 0 !important;
  min-height: 0 !important;
  font-size: 14px !important;
  white-space: nowrap !important;
  text-decoration: none !important;
}
.jd-actions .jd-action-signup {
  padding: 8px 18px !important;
  background: rgba(255, 255, 255, 0.18) !important;
  border-radius: 999px !important;
  font-weight: 600 !important;
}
.jd-actions .jd-action-login {
  background: transparent !important;
  padding: 0 !important;
  font-weight: 500 !important;
}
.jd-actions .jd-action-post {
  background: transparent !important;
  padding: 0 !important;
  font-weight: 700 !important;
  gap: 4px !important;
}
.jd-actions .jd-action-ico {
  color: #ffffff !important;
  margin: 0 !important;
}
.jd-actions .jd-action:hover,
.jd-actions .jd-action:focus {
  color: #ffffff !important;
  opacity: 0.9 !important;
}
@media (max-width: 575px) {
  .jd-actions {
    gap: 8px !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 12px !important;
  }
}

/* Logo: no green border/plate, larger size */
.jd-logo,
.jd-site-header .jd-logo,
#jd-site-header .jd-logo {
  background: transparent !important;
  background-color: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  outline: none !important;
  padding: 0 !important;
  border-radius: 0 !important;
}
.jd-logo img,
.jd-site-header .jd-logo img,
#jd-site-header .jd-logo img {
  height: 80px !important;
  max-height: 80px !important;
  max-width: 160px !important;
  width: auto !important;
}
@media (max-width: 991px) {
  .jd-logo img,
  .jd-site-header .jd-logo img,
  #jd-site-header .jd-logo img {
    height: 56px !important;
    max-height: 56px !important;
    max-width: 120px !important;
  }
}
@media (max-width: 575px) {
  .jd-logo img,
  .jd-site-header .jd-logo img,
  #jd-site-header .jd-logo img {
    height: 48px !important;
    max-height: 48px !important;
    max-width: 100px !important;
  }
}

/* Logo: keep larger size, restore rounded corners */
.jd-logo,
.jd-site-header .jd-logo,
#jd-site-header .jd-logo {
  background: #ffffff !important;
  border: 0 !important;
  box-shadow: none !important;
  outline: none !important;
  padding: 0 !important;
  border-radius: 8px !important;
  overflow: hidden !important;
}
.jd-logo img,
.jd-site-header .jd-logo img,
#jd-site-header .jd-logo img {
  border-radius: 8px !important;
  height: 80px !important;
  max-height: 80px !important;
  max-width: 160px !important;
  width: auto !important;
  display: block !important;
}
@media (max-width: 991px) {
  .jd-logo,
  .jd-site-header .jd-logo,
  #jd-site-header .jd-logo,
  .jd-logo img,
  .jd-site-header .jd-logo img,
  #jd-site-header .jd-logo img {
    border-radius: 6px !important;
  }
  .jd-logo img,
  .jd-site-header .jd-logo img,
  #jd-site-header .jd-logo img {
    height: 56px !important;
    max-height: 56px !important;
    max-width: 120px !important;
  }
}
@media (max-width: 575px) {
  .jd-logo img,
  .jd-site-header .jd-logo img,
  #jd-site-header .jd-logo img {
    height: 48px !important;
    max-height: 48px !important;
    max-width: 100px !important;
  }
}

/* Mobile search: Category + Location + Search (hide keyword) */
@media (max-width: 991px) {
  .jd-header-search {
    flex-wrap: nowrap !important;
    gap: 6px !important;
  }
  .jd-header-search .jd-keyword {
    display: none !important;
  }
  .jd-header-search .jd-category-wrap {
    display: block !important;
    flex: 1 1 0 !important;
    min-width: 0 !important;
    max-width: none !important;
    position: relative !important;
    z-index: 30 !important;
  }
  .jd-header-search .jd-category-btn {
    width: 100% !important;
    min-height: 36px !important;
    height: 36px !important;
    padding: 0 8px !important;
    font-size: 12px !important;
  }
  .jd-header-search .jd-category-btn-label {
    max-width: none !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }
  .jd-header-search .jd-location-wrap {
    display: block !important;
    flex: 1 1 0 !important;
    min-width: 0 !important;
    max-width: none !important;
  }
  .jd-header-search .jd-location {
    min-height: 36px !important;
    height: 36px !important;
    font-size: 12px !important;
    padding: 0 24px 0 10px !important;
  }
  .jd-header-search .jd-search-btn {
    display: inline-flex !important;
    flex: 0 0 auto !important;
    min-width: 58px !important;
    min-height: 36px !important;
    height: 36px !important;
    padding: 0 10px !important;
    font-size: 12px !important;
  }
  .jd-category-panel {
    min-width: 0 !important;
    width: min(92vw, 360px) !important;
    left: 0 !important;
    right: auto !important;
  }
}
@media (max-width: 575px) {
  .jd-header-search .jd-category-btn,
  .jd-header-search .jd-location,
  .jd-header-search .jd-search-btn {
    min-height: 34px !important;
    height: 34px !important;
    font-size: 11px !important;
  }
  .jd-header-search .jd-search-btn {
    min-width: 52px !important;
    padding: 0 8px !important;
  }
}

/* =========================================================
   Gumtree SA-style unified search bar
   Green icons/button: #78C222
   ========================================================= */
.jd-header-search {
  display: flex !important;
  flex: 1 1 auto !important;
  min-width: 0 !important;
  gap: 0 !important;
  background: transparent !important;
  align-items: stretch !important;
}
.jd-search-bar {
  display: flex !important;
  flex-direction: row !important;
  align-items: stretch !important;
  flex: 1 1 auto !important;
  width: 100% !important;
  min-width: 0 !important;
  height: 48px !important;
  background: #ffffff !important;
  border-radius: 8px !important;
  overflow: visible !important;
  box-shadow: none !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;
  border-radius: 0 !important;
  margin: 0 !important;
}
.jd-header-search .jd-category-wrap {
  flex: 0 0 150px !important;
  min-width: 130px !important;
  max-width: 180px !important;
  position: relative !important;
  z-index: 40 !important;
  display: block !important;
  border-right: 1px solid #d9d9d9 !important;
}
.jd-category-btn {
  width: 100% !important;
  height: 48px !important;
  min-height: 48px !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 0 12px !important;
  border: 0 !important;
  border-radius: 8px 0 0 8px !important;
  background: #f3f3f3 !important;
  color: #666666 !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  cursor: pointer !important;
}
.jd-category-btn-ico {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 0 !important;
  color: #78C222 !important;
  flex: 0 0 auto !important;
}
.jd-category-btn-ico .jd-ico-grid,
.jd-category-btn-ico svg {
  display: block !important;
  width: 18px !important;
  height: 18px !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;
  color: #666666 !important;
  font-weight: 500 !important;
}
.jd-category-arrow {
  display: inline-flex !important;
  align-items: center !important;
  line-height: 0 !important;
  flex: 0 0 auto !important;
}
.jd-header-search .jd-keyword {
  flex: 1 1 auto !important;
  min-width: 120px !important;
  height: 48px !important;
  min-height: 48px !important;
  padding: 0 14px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: #ffffff !important;
  color: #333333 !important;
  font-size: 15px !important;
  font-style: italic !important;
  box-shadow: none !important;
  outline: none !important;
}
.jd-header-search .jd-keyword::placeholder {
  color: #9a9a9a !important;
  font-style: italic !important;
  opacity: 1 !important;
}
.jd-header-search .jd-location-wrap {
  flex: 0 1 200px !important;
  min-width: 150px !important;
  max-width: 240px !important;
  position: relative !important;
  border-left: 1px solid #d9d9d9 !important;
  background: #ffffff !important;
  z-index: 35 !important;
}
.jd-location-input-wrap {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  height: 100% !important;
  padding-left: 12px !important;
}
.jd-location-pin {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 auto !important;
  line-height: 0 !important;
  margin-right: 8px !important;
}
.jd-location-pin svg {
  display: block !important;
  width: 14px !important;
  height: 18px !important;
}
.jd-header-search .jd-location {
  flex: 1 1 auto !important;
  width: 100% !important;
  height: 48px !important;
  min-height: 48px !important;
  padding: 0 12px 0 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #333333 !important;
  font-size: 14px !important;
  font-style: normal !important;
  box-shadow: none !important;
  outline: none !important;
}
.jd-location-arrow { display: none !important; }
.jd-header-search .jd-search-btn {
  flex: 0 0 56px !important;
  width: 56px !important;
  min-width: 56px !important;
  height: 48px !important;
  min-height: 48px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 8px 8px 0 !important;
  background: #78C222 !important;
  color: #ffffff !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
}
.jd-header-search .jd-search-btn:hover,
.jd-header-search .jd-search-btn:focus {
  background: #6bb01c !important;
  color: #ffffff !important;
}
.jd-search-btn .jd-ico-search {
  display: block !important;
  width: 22px !important;
  height: 22px !important;
}
.jd-search-btn-text {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0,0,0,0) !important;
  border: 0 !important;
}
.jd-category-panel {
  top: calc(100% + 4px) !important;
}
.jd-location-results {
  top: calc(100% + 4px) !important;
}

/* Keep intro Post Ad on search-green family */
.jd-intro-btn,
a.jd-intro-btn {
  background: #78C222 !important;
  color: #ffffff !important;
}
.jd-intro-btn:hover,
.jd-intro-btn:focus,
a.jd-intro-btn:hover,
a.jd-intro-btn:focus {
  background: #6bb01c !important;
  color: #ffffff !important;
}

/* Mobile: category + location + search icon */
@media (max-width: 991px) {
  .jd-search-bar {
    height: 42px !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-category-btn,
  .jd-header-search .jd-location {
    height: 42px !important;
    min-height: 42px !important;
  }
  .jd-header-search .jd-keyword {
    display: none !important;
  }
  .jd-header-search .jd-category-wrap {
    display: block !important;
    flex: 1 1 0 !important;
    min-width: 0 !important;
    max-width: none !important;
  }
  .jd-header-search .jd-location-wrap {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    max-width: none !important;
  }
  .jd-header-search .jd-search-btn {
    flex: 0 0 48px !important;
    width: 48px !important;
    min-width: 48px !important;
  }
  .jd-category-btn {
    padding: 0 8px !important;
    font-size: 12px !important;
  }
}

/* Lock Gumtree SA search visuals above older overrides */
.jd-search-bar .jd-search-btn {
  background: #78C222 !important;
  color: #fff !important;
  border-radius: 0 8px 8px 0 !important;
}
.jd-search-bar .jd-category-btn {
  background: #f3f3f3 !important;
  border-radius: 8px 0 0 8px !important;
}
.jd-search-bar .jd-category-btn-ico svg circle {
  fill: #78C222 !important;
}
.jd-search-bar .jd-location-pin svg path {
  fill: #78C222 !important;
}
.jd-search-bar .jd-location {
  height: 48px !important;
  min-height: 48px !important;
}
@media (max-width: 991px) {
  .jd-search-bar .jd-location {
    height: 42px !important;
    min-height: 42px !important;
  }
}
/* =========================================================
   JobsDoneDeal homepage layout fixes (local + production)
   Loaded from template index.php - keep this file ASCII/English only
   Note: JD Ad Banner and JD Intro Section modules must be assigned
   to Home only in Joomla Module Menu Assignment.

   Color palette (light green):
     -- brand soft:   #ffffff (was yellow)
     -- green primary:#9aaa3a
     -- green hover:  #7e8c2e
     -- green text:   #3d4518 / #5f6b1f
   ========================================================= */

/* ---------- Kill old homepage hero + floating search ----------
   These modules must be unpublished on production. CSS is a safety net
   so a leftover published module cannot break the new layout.
   ------------------------------------------------------------- */
#jcls-search,
#jcls-search .jcls-search-bar,
.homepage-hero,
.hero-overlay,
.hero-content,
#sp-top1,
#sp-top1 .sp-module,
#sp-top1 .moduletable,
body .mod_jclassifiedssearch,
body .mod-jclassifiedssearch {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  max-height: 0 !important;
  overflow: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  position: static !important;
  pointer-events: none !important;
}

/* Old ShowPlus excavator slider (keep JD Ad Banner visible) */
#sp-slider-banner .showplus,
#sp-slider-banner .slideshow,
#sp-slider-banner .mod_showplus,
#sp-slider-banner [class*="showplus"] {
  display: none !important;
  height: 0 !important;
  max-height: 0 !important;
  overflow: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Hide default Helix logo + old mega menu */
#sp-logo,
#sp-logo .logo,
.sp-megamenu-wrapper,
.sp-megamenu-parent,
#offcanvas-toggler,
.offcanvas-toggler-right {
  display: none !important;
  visibility: hidden !important;
  width: 0 !important;
  height: 0 !important;
  max-height: 0 !important;
  overflow: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}

/* Stop Helix logo from appearing huge if hide fails */
.logo-image,
.logo-image-phone {
  height: 40px !important;
  max-height: 40px !important;
  width: auto !important;
  max-width: 48px !important;
  object-fit: contain !important;
}

/* Full-width menu / slider rows */
#sp-menu,
#sp-menu > .container,
#sp-menu .container-inner,
#sp-menu .row,
#sp-menu [class*="col-"],
#sp-menu .sp-column,
#sp-menu .sp-module,
#sp-menu .sp-module-content,
#sp-slider-banner,
#sp-slider-banner > .container,
#sp-slider-banner .row,
#sp-slider-banner [class*="col-"] {
  width: 100% !important;
  max-width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  float: none !important;
}

#sp-menu .row {
  display: block !important;
}

/* ---------- Header ---------- */
.jd-site-header {
  width: 100% !important;
  position: relative !important;
  z-index: 1200 !important;
}

.jd-header-top {
  width: 100% !important;
  background: #228B22 !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: -webkit-box !important;
  display: -ms-flexbox !important;
  display: flex !important;
  -webkit-box-orient: horizontal !important;
  -webkit-box-direction: normal !important;
  -ms-flex-direction: row !important;
  flex-direction: row !important;
  -webkit-box-align: center !important;
  -ms-flex-align: center !important;
  align-items: center !important;
  gap: 16px !important;
  -ms-flex-wrap: wrap !important;
  flex-wrap: wrap !important;
  box-sizing: border-box !important;
}

.jd-logo {
  -webkit-box-flex: 0 !important;
  -ms-flex: 0 0 auto !important;
  flex: 0 0 auto !important;
  display: -webkit-inline-box !important;
  display: -ms-inline-flexbox !important;
  display: inline-flex !important;
  -webkit-box-align: center !important;
  -ms-flex-align: center !important;
  align-items: center !important;
  background: #ffffff !important;
  border-radius: 8px !important;
  padding: 0 !important;
  overflow: hidden !important;
  line-height: 0 !important;
}

.jd-logo img {
  display: block !important;
  width: auto !important;
  max-width: 160px !important;
  height: 80px !important;
  max-height: 80px !important;
  object-fit: contain !important;
  border: 0 !important;
}

.jd-header-search {
  -webkit-box-flex: 1 !important;
  -ms-flex: 1 1 auto !important;
  flex: 1 1 auto !important;
  display: -webkit-box !important;
  display: -ms-flexbox !important;
  display: flex !important;
  -webkit-box-orient: horizontal !important;
  -webkit-box-direction: normal !important;
  -ms-flex-direction: row !important;
  flex-direction: row !important;
  -ms-flex-wrap: wrap !important;
  flex-wrap: wrap !important;
  -webkit-box-align: stretch !important;
  -ms-flex-align: stretch !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: 54px !important;
  height: 54px !important;
  border: 0 !important;
  border-radius: 8px !important;
  font-size: 15px !important;
  margin: 0 !important;
  box-sizing: border-box !important;
}

.jd-header-search .jd-keyword {
  -webkit-box-flex: 1 !important;
  -ms-flex: 1 1 220px !important;
  flex: 1 1 220px !important;
  min-width: 140px !important;
  padding: 0 14px !important;
  background: #fff !important;
  color: #222 !important;
  width: auto !important;
}

/* Gumtree-style category selector inside header search */
.jd-header-search .jd-category-wrap {
  position: relative !important;
  -webkit-box-flex: 0 !important;
  -ms-flex: 0 0 150px !important;
  flex: 0 0 150px !important;
  min-width: 130px !important;
  z-index: 30 !important;
}

.jd-category-btn {
  width: 100% !important;
  min-height: 54px !important;
  height: 54px !important;
  display: -webkit-box !important;
  display: -ms-flexbox !important;
  display: flex !important;
  -webkit-box-align: center !important;
  -ms-flex-align: center !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 {
  font-size: 14px !important;
  color: #5f6b1f !important;
  line-height: 1 !important;
}

.jd-category-btn-label {
  -webkit-box-flex: 1 !important;
  -ms-flex: 1 1 auto !important;
  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, 0.16) !important;
  z-index: 4000 !important;
  overflow: hidden !important;
}

.jd-category-panel[hidden] {
  display: none !important;
}

.jd-category-panel-inner {
  display: -webkit-box !important;
  display: -ms-flexbox !important;
  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: -webkit-box !important;
  display: -ms-flexbox !important;
  display: flex !important;
  -webkit-box-align: center !important;
  -ms-flex-align: center !important;
  align-items: center !important;
  -webkit-box-pack: justify !important;
  -ms-flex-pack: justify !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;
  font-size: 14px !important;
}

.jd-category-children {
  -webkit-box-flex: 1 !important;
  -ms-flex: 1 1 auto !important;
  flex: 1 1 auto !important;
  overflow-y: auto !important;
  padding: 8px !important;
  background: #fff !important;
}

.jd-category-child-pane {
  display: -webkit-box !important;
  display: -ms-flexbox !important;
  display: flex !important;
  -ms-flex-wrap: wrap !important;
  flex-wrap: wrap !important;
  -webkit-box-align: start !important;
  -ms-flex-align: start !important;
  align-items: flex-start !important;
  -webkit-box-orient: vertical !important;
  -webkit-box-direction: normal !important;
  -ms-flex-direction: column !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;
  }

  .jd-category-panel-inner {
    -webkit-box-orient: vertical !important;
    -webkit-box-direction: normal !important;
    -ms-flex-direction: column !important;
    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 {
  -webkit-box-flex: 0 !important;
  -ms-flex: 0 1 160px !important;
  flex: 0 1 160px !important;
  padding: 0 10px !important;
  background: #fff !important;
  color: #222 !important;
  width: auto !important;
}

.jd-header-search .jd-radius {
  -webkit-box-flex: 0 !important;
  -ms-flex: 0 0 110px !important;
  flex: 0 0 110px !important;
  padding: 0 8px !important;
  background: #fff !important;
  color: #222 !important;
  width: auto !important;
}

.jd-header-search .jd-search-btn {
  -webkit-box-flex: 0 !important;
  -ms-flex: 0 0 auto !important;
  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: -webkit-box !important;
  display: -ms-flexbox !important;
  display: flex !important;
  -webkit-box-orient: horizontal !important;
  -webkit-box-direction: normal !important;
  -ms-flex-direction: row !important;
  flex-direction: row !important;
  -webkit-box-align: center !important;
  -ms-flex-align: center !important;
  align-items: center !important;
  gap: 14px !important;
  margin-left: auto !important;
  flex-shrink: 0 !important;
}

.jd-action {
  display: -webkit-inline-box !important;
  display: -ms-inline-flexbox !important;
  display: inline-flex !important;
  -webkit-box-orient: horizontal !important;
  -webkit-box-direction: normal !important;
  -ms-flex-direction: row !important;
  flex-direction: row !important;
  -webkit-box-align: center !important;
  -ms-flex-align: center !important;
  align-items: center !important;
  -webkit-box-pack: center !important;
  -ms-flex-pack: center !important;
  justify-content: center !important;
  color: #ffffff !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: #ffffff !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;
}

.jd-header-nav {
  width: 100% !important;
  display: -webkit-box !important;
  display: -ms-flexbox !important;
  display: flex !important;
  -webkit-box-align: stretch !important;
  -ms-flex-align: stretch !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 {
  -webkit-box-flex: 1 !important;
  -ms-flex: 1 1 0px !important;
  flex: 1 1 0 !important;
  display: -webkit-box !important;
  display: -ms-flexbox !important;
  display: flex !important;
  -webkit-box-align: center !important;
  -ms-flex-align: center !important;
  align-items: center !important;
  -webkit-box-pack: center !important;
  -ms-flex-pack: 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;
  border-right: 1px solid #e5e5e5 !important;
  box-sizing: border-box !important;
  text-align: center !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 {
  background: #ffffff !important;
  color: #5f6b1f !important;
}

/* ---------- Ad banner ---------- */
.jd-ad-banner {
  width: 100% !important;
  background: #f3f3f3 !important;
  border-bottom: 1px solid #e5e5e5 !important;
}

.jd-ad-banner-inner {
  max-width: 1240px !important;
  margin: 0 auto !important;
  padding: 12px 16px !important;
  box-sizing: border-box !important;
}

.jd-ad-slot {
  width: 100% !important;
  min-height: 90px !important;
  display: -webkit-box !important;
  display: -ms-flexbox !important;
  display: flex !important;
  -webkit-box-orient: vertical !important;
  -webkit-box-direction: normal !important;
  -ms-flex-direction: column !important;
  flex-direction: column !important;
  -webkit-box-align: center !important;
  -ms-flex-align: center !important;
  align-items: center !important;
  -webkit-box-pack: center !important;
  -ms-flex-pack: center !important;
  justify-content: center !important;
  background: #ffffff !important;
  color: #3d4518 !important;
  border-radius: 4px !important;
  padding: 12px !important;
  box-sizing: border-box !important;
}

.jd-ad-label {
  font-size: 11px !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  opacity: 0.75 !important;
  margin-bottom: 6px !important;
}

.jd-ad-placeholder {
  font-size: 16px !important;
  font-weight: 700 !important;
}

/* ---------- Intro ---------- */
.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;
  overflow: hidden !important;
}

.jd-intro-inner {
  max-width: 1240px !important;
  margin: 0 auto !important;
  padding: 48px 20px !important;
  display: -webkit-box !important;
  display: -ms-flexbox !important;
  display: flex !important;
  -webkit-box-orient: horizontal !important;
  -webkit-box-direction: normal !important;
  -ms-flex-direction: row !important;
  flex-direction: row !important;
  -webkit-box-align: center !important;
  -ms-flex-align: center !important;
  align-items: center !important;
  gap: 32px !important;
  box-sizing: border-box !important;
}

.jd-intro-copy {
  -webkit-box-flex: 0 !important;
  -ms-flex: 0 1 42% !important;
  flex: 0 1 42% !important;
  max-width: 480px !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;
}

.jd-intro-sub {
  margin: 0 0 22px !important;
  font-size: 22px !important;
  color: #707070 !important;
}

.jd-intro-points {
  list-style: none !important;
  margin: 0 0 28px !important;
  padding: 0 !important;
}

.jd-intro-points li {
  display: -webkit-box !important;
  display: -ms-flexbox !important;
  display: flex !important;
  -webkit-box-orient: horizontal !important;
  -webkit-box-direction: normal !important;
  -ms-flex-direction: row !important;
  flex-direction: row !important;
  -webkit-box-align: center !important;
  -ms-flex-align: center !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;
  -webkit-box-flex: 0 !important;
  -ms-flex: 0 0 18px !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;
  top: auto !important;
  left: auto !important;
}

.jd-intro-btn {
  display: -webkit-inline-box !important;
  display: -ms-inline-flexbox !important;
  display: inline-flex !important;
  -webkit-box-align: center !important;
  -ms-flex-align: center !important;
  align-items: center !important;
  -webkit-box-pack: center !important;
  -ms-flex-pack: 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;
}

.jd-intro-btn:hover {
  background: #7e8c2e !important;
  color: #fff !important;
  text-decoration: none !important;
}

/* Masonry collage: 4 staggered columns */
.jd-intro-collage {
  -webkit-box-flex: 1 !important;
  -ms-flex: 1 1 58% !important;
  flex: 1 1 58% !important;
  display: -webkit-box !important;
  display: -ms-flexbox !important;
  display: flex !important;
  -webkit-box-orient: horizontal !important;
  -webkit-box-direction: normal !important;
  -ms-flex-direction: row !important;
  flex-direction: row !important;
  -webkit-box-align: start !important;
  -ms-flex-align: start !important;
  align-items: flex-start !important;
  gap: 10px !important;
  height: 360px !important;
  max-height: 360px !important;
  overflow: hidden !important;
  min-width: 0 !important;
}

.jd-intro-col {
  -webkit-box-flex: 1 !important;
  -ms-flex: 1 1 0px !important;
  flex: 1 1 0 !important;
  display: -webkit-box !important;
  display: -ms-flexbox !important;
  display: flex !important;
  -webkit-box-orient: vertical !important;
  -webkit-box-direction: normal !important;
  -ms-flex-direction: column !important;
  flex-direction: column !important;
  gap: 10px !important;
  min-width: 0 !important;
}

.jd-intro-col--1 { margin-top: 28px !important; }
.jd-intro-col--2 { margin-top: 0 !important; }
.jd-intro-col--3 { margin-top: 48px !important; }
.jd-intro-col--4 { margin-top: 12px !important; }

.jd-intro-collage img {
  width: 100% !important;
  display: block !important;
  object-fit: cover !important;
  border-radius: 12px !important;
  background: #e8ecef !important;
}

.jd-intro-col--1 img { height: 300px !important; }
.jd-intro-col--2 img { height: 165px !important; }
.jd-intro-col--3 img { height: 120px !important; }
.jd-intro-col--4 img { height: 100px !important; }

@media (max-width: 991px) {
  .jd-header-search {
    -webkit-box-ordinal-group: 4 !important;
    -ms-flex-order: 3 !important;
    order: 3 !important;
    -webkit-box-flex: 1 !important;
    -ms-flex: 1 1 100% !important;
    flex: 1 1 100% !important;
    width: 100% !important;
    -ms-flex-wrap: nowrap !important;
    flex-wrap: nowrap !important;
    gap: 6px !important;
  }

  .jd-header-top-inner {
    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: 88px !important;
  }

  /* Hide category search on mobile/tablet */
  .jd-header-search .jd-category-wrap {
    display: none !important;
  }

  .jd-header-search .jd-radius {
    display: none !important;
  }

  .jd-header-search .jd-field,
  .jd-header-search .jd-search-btn,
  .jd-header-search .jd-location {
    min-height: 36px !important;
    height: 36px !important;
    font-size: 13px !important;
  }

  .jd-header-search .jd-keyword {
    -webkit-box-flex: 1 !important;
    -ms-flex: 1 1 0 !important;
    flex: 1 1 0 !important;
    min-width: 0 !important;
    padding: 0 10px !important;
  }

  .jd-header-search .jd-location-wrap {
    -webkit-box-flex: 1 !important;
    -ms-flex: 1 1 0 !important;
    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-search-btn {
    -webkit-box-flex: 0 !important;
    -ms-flex: 0 0 auto !important;
    flex: 0 0 auto !important;
    min-width: 64px !important;
    width: auto !important;
    padding: 0 10px !important;
    font-size: 13px !important;
    z-index: 5 !important;
  }

  .jd-actions {
    gap: 8px !important;
  }

  .jd-action {
    min-width: 48px !important;
    font-size: 11px !important;
  }

  .jd-intro-inner {
    -webkit-box-orient: vertical !important;
    -webkit-box-direction: normal !important;
    -ms-flex-direction: column !important;
    flex-direction: column !important;
    padding: 36px 16px !important;
    -webkit-box-align: stretch !important;
    -ms-flex-align: stretch !important;
    align-items: stretch !important;
  }

  .jd-intro-copy {
    max-width: none !important;
  }

  .jd-intro-title {
    font-size: 34px !important;
  }

  .jd-intro-collage {
    width: 100% !important;
    height: 280px !important;
    max-height: 280px !important;
  }

  .jd-intro-col--1 img { height: 240px !important; }
  .jd-intro-col--2 img { height: 130px !important; }
  .jd-intro-col--3 img { height: 95px !important; }
  .jd-intro-col--4 img { height: 80px !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: 72px !important;
  }

  .jd-header-search {
    gap: 5px !important;
  }

  .jd-header-search .jd-field,
  .jd-header-search .jd-search-btn,
  .jd-header-search .jd-location {
    min-height: 34px !important;
    height: 34px !important;
    font-size: 12px !important;
  }

  .jd-header-search .jd-search-btn {
    min-width: 58px !important;
    padding: 0 8px !important;
    font-size: 12px !important;
  }

  .jd-intro-collage {
    height: 220px !important;
    max-height: 220px !important;
    gap: 6px !important;
  }

  .jd-intro-col { gap: 6px !important; }

  .jd-intro-collage img { border-radius: 8px !important; }

  .jd-intro-col--1 { margin-top: 16px !important; }
  .jd-intro-col--3 { margin-top: 28px !important; }

  .jd-intro-col--1 img { height: 190px !important; }
  .jd-intro-col--2 img { height: 100px !important; }
  .jd-intro-col--3 img { height: 72px !important; }
  .jd-intro-col--4 img { height: 60px !important; }
}

/* =========================================================
   Discover popular categories (grid under intro)
   ========================================================= */

.jd-discover {
  width: 100% !important;
  background: #ffffff !important;
  box-sizing: border-box !important;
  padding: 40px 0 48px !important;
}

.jd-discover-inner {
  max-width: 1240px !important;
  margin: 0 auto !important;
  padding: 0 20px !important;
  box-sizing: border-box !important;
}

.jd-discover-title {
  margin: 0 0 24px !important;
  font-size: 28px !important;
  line-height: 1.2 !important;
  font-weight: 800 !important;
  color: #2d2933 !important;
  font-family: Montserrat, "Open Sans", sans-serif !important;
}

.jd-discover-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 18px !important;
}

.jd-discover-card {
  display: flex !important;
  flex-direction: column !important;
  background: #fff !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  text-decoration: none !important;
  color: #2d2933 !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06) !important;
  transition: transform 0.18s ease, box-shadow 0.18s ease !important;
}

.jd-discover-card:hover,
.jd-discover-card:focus {
  text-decoration: none !important;
  color: #5f6b1f !important;
  transform: translateY(-3px) !important;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.1) !important;
}

.jd-discover-media {
  display: block !important;
  width: 100% !important;
  aspect-ratio: 16 / 11 !important;
  background: #dfe8e1 !important;
  overflow: hidden !important;
}

.jd-discover-media img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  transition: transform 0.25s ease !important;
}

.jd-discover-card:hover .jd-discover-media img,
.jd-discover-card:focus .jd-discover-media img {
  transform: scale(1.04) !important;
}

.jd-discover-label {
  display: block !important;
  padding: 14px 16px !important;
  font-size: 16px !important;
  line-height: 1.3 !important;
  font-weight: 600 !important;
  font-family: Montserrat, "Open Sans", sans-serif !important;
  background: #fff !important;
  border-top: 1px solid #eeeeee !important;
}

@media (max-width: 991px) {
  .jd-discover {
    padding: 28px 0 36px !important;
  }

  .jd-discover-title {
    font-size: 24px !important;
    margin-bottom: 18px !important;
  }

  .jd-discover-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 14px !important;
  }
}

@media (max-width: 575px) {
  .jd-discover-inner {
    padding: 0 12px !important;
  }

  .jd-discover-title {
    font-size: 22px !important;
  }

  .jd-discover-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
  }

  .jd-discover-label {
    padding: 10px 12px !important;
    font-size: 14px !important;
  }
}

/* =========================================================
   Homepage - We think you'll love these (category carousel)
   Title card is fixed; only category cards slide.
   ========================================================= */

.jd-love {
  width: 100% !important;
  background: #fff !important;
  box-sizing: border-box !important;
  padding: 28px 0 36px !important;
}

.jd-love-wrap {
  display: flex !important;
  flex-direction: row !important;
  align-items: stretch !important;
  gap: 14px !important;
  max-width: 1240px !important;
  margin: 0 auto !important;
  padding: 0 20px !important;
  box-sizing: border-box !important;
}

/* Fixed title card (does not scroll) - same height as slider cards */
.jd-love-card--title {
  flex: 0 0 240px !important;
  width: 240px !important;
  height: 168px !important;
  min-height: 168px !important;
  max-height: 168px !important;
  border-radius: 20px !important;
  background: #f2f2f2 !important;
  padding: 28px 24px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  box-sizing: border-box !important;
  color: #2b2430 !important;
  align-self: stretch !important;
}

.jd-love-heading {
  margin: 0 0 10px !important;
  font-size: 28px !important;
  line-height: 1.2 !important;
  font-weight: 800 !important;
  color: #2b2430 !important;
  font-family: Montserrat, "Open Sans", sans-serif !important;
}

.jd-love-sub {
  margin: 0 !important;
  font-size: 15px !important;
  line-height: 1.35 !important;
  color: #5c5663 !important;
  font-weight: 400 !important;
}

/* Slider area only (category cards) */
.jd-love-slider {
  position: relative !important;
  flex: 1 1 auto !important;
  min-width: 0 !important;
  display: flex !important;
  -webkit-box-align: stretch !important;
  -ms-flex-align: stretch !important;
  align-items: stretch !important;
  height: 168px !important;
}

.jd-love-track {
  display: flex !important;
  flex-direction: row !important;
  align-items: stretch !important;
  gap: 14px !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  scroll-snap-type: x mandatory !important;
  scroll-behavior: smooth !important;
  -webkit-overflow-scrolling: touch !important;
  padding: 0 8px 0 0 !important;
  scrollbar-width: none !important;
  height: 168px !important;
  width: 100% !important;
}

.jd-love-track::-webkit-scrollbar {
  display: none !important;
}

.jd-love-track .jd-love-card {
  flex: 0 0 auto !important;
  width: 280px !important;
  height: 168px !important;
  min-height: 168px !important;
  max-height: 168px !important;
  border-radius: 20px !important;
  box-sizing: border-box !important;
  scroll-snap-align: start !important;
  text-decoration: none !important;
  color: #2b2430 !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px !important;
  padding: 18px 14px 18px 20px !important;
  transition: transform 0.18s ease, box-shadow 0.18s ease !important;
}

.jd-love-track .jd-love-card:hover,
.jd-love-track .jd-love-card:focus {
  text-decoration: none !important;
  color: #2b2430 !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08) !important;
}

.jd-love-text {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  font-size: 20px !important;
  line-height: 1.25 !important;
  font-weight: 700 !important;
  font-family: Montserrat, "Open Sans", sans-serif !important;
}

.jd-love-img {
  flex: 0 0 118px !important;
  width: 118px !important;
  height: 118px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.jd-love-img img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  border-radius: 10px !important;
}

.jd-love-card--pink { background: #fdeced !important; }
.jd-love-card--yellow { background: #fff6c9 !important; }
.jd-love-card--green { background: #e8f6e4 !important; }
.jd-love-card--blue { background: #e8f1fb !important; }
.jd-love-card--peach { background: #ffe8d9 !important; }
.jd-love-card--lilac { background: #efe8fb !important; }

.jd-love-nav {
  position: absolute !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 44px !important;
  height: 44px !important;
  border-radius: 50% !important;
  border: 0 !important;
  background: #fff !important;
  color: #222 !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.16) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  z-index: 3 !important;
  padding: 0 !important;
}

.jd-love-prev {
  left: 6px !important;
}

.jd-love-next {
  right: 6px !important;
}

.jd-love-nav:hover,
.jd-love-nav:focus {
  background: #f7f7f7 !important;
  outline: none !important;
}

.jd-love-nav.is-hidden {
  display: none !important;
}

@media (max-width: 991px) {
  .jd-love {
    padding: 20px 0 28px !important;
  }

  .jd-love-wrap {
    padding: 0 12px !important;
    gap: 10px !important;
  }

  .jd-love-card--title {
    flex-basis: 200px !important;
    width: 200px !important;
    height: 150px !important;
    min-height: 150px !important;
    max-height: 150px !important;
    padding: 22px 18px !important;
  }

  .jd-love-slider,
  .jd-love-track {
    height: 150px !important;
  }

  .jd-love-track .jd-love-card {
    width: 240px !important;
    height: 150px !important;
    min-height: 150px !important;
    max-height: 150px !important;
  }

  .jd-love-heading {
    font-size: 22px !important;
  }

  .jd-love-text {
    font-size: 17px !important;
  }

  .jd-love-img {
    flex-basis: 96px !important;
    width: 96px !important;
    height: 96px !important;
  }
}

@media (max-width: 575px) {
  .jd-love-wrap {
    flex-direction: column !important;
  }

  .jd-love-card--title {
    flex: 0 0 auto !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
  }

  .jd-love-slider,
  .jd-love-track {
    height: 150px !important;
  }

  .jd-love-track .jd-love-card {
    width: 220px !important;
    height: 150px !important;
    min-height: 150px !important;
    max-height: 150px !important;
  }

  .jd-love-nav {
    width: 40px !important;
    height: 40px !important;
  }

  .jd-love-prev {
    left: 4px !important;
  }

  .jd-love-next {
    right: 4px !important;
  }
}


/* =========================================================
   Homepage - Featured Blog Articles
   Featured card is fixed; smaller cards slide.
   ========================================================= */

.jd-blog {
  width: 100% !important;
  background: #f5f5f5 !important;
  box-sizing: border-box !important;
  padding: 40px 0 48px !important;
}

.jd-blog-inner {
  max-width: 1240px !important;
  margin: 0 auto !important;
  padding: 0 20px !important;
  box-sizing: border-box !important;
}

.jd-blog-head {
  display: flex !important;
  flex-direction: row !important;
  align-items: baseline !important;
  justify-content: space-between !important;
  gap: 16px !important;
  margin: 0 0 22px !important;
}

.jd-blog-title {
  margin: 0 !important;
  font-size: 28px !important;
  line-height: 1.2 !important;
  font-weight: 700 !important;
  color: #2d2933 !important;
  font-family: Montserrat, "Open Sans", sans-serif !important;
}

.jd-blog-all {
  color: #7e8c2e !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  white-space: nowrap !important;
}

.jd-blog-all:hover,
.jd-blog-all:focus {
  color: #616161 !important;
  text-decoration: none !important;
}

.jd-blog-row {
  display: flex !important;
  flex-direction: row !important;
  align-items: stretch !important;
  gap: 16px !important;
}

/* Fixed featured article */
.jd-blog-featured {
  flex: 0 0 48% !important;
  max-width: 560px !important;
  display: flex !important;
  flex-direction: row !important;
  background: #fff !important;
  border-radius: 16px !important;
  overflow: hidden !important;
  text-decoration: none !important;
  color: #2d2933 !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06) !important;
  min-height: 260px !important;
}

.jd-blog-featured:hover,
.jd-blog-featured:focus {
  text-decoration: none !important;
  color: #2d2933 !important;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1) !important;
}

.jd-blog-featured-media {
  flex: 0 0 48% !important;
  min-width: 0 !important;
  background: #e0e0e0 !important;
}

.jd-blog-featured-media img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

.jd-blog-featured-body {
  flex: 1 1 auto !important;
  padding: 22px 20px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  gap: 10px !important;
  min-width: 0 !important;
}

.jd-blog-cat {
  display: inline-block !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #7e8c2e !important;
  line-height: 1.2 !important;
}

.jd-blog-headline {
  display: block !important;
  font-size: 18px !important;
  line-height: 1.35 !important;
  font-weight: 700 !important;
  color: #2d2933 !important;
  font-family: Montserrat, "Open Sans", sans-serif !important;
}

.jd-blog-excerpt {
  display: block !important;
  font-size: 14px !important;
  line-height: 1.45 !important;
  color: #6b6570 !important;
}

.jd-blog-featured .jd-blog-headline {
  font-size: 22px !important;
}

/* Slider for smaller cards */
.jd-blog-slider {
  position: relative !important;
  flex: 1 1 auto !important;
  min-width: 0 !important;
}

.jd-blog-track {
  display: flex !important;
  flex-direction: row !important;
  gap: 14px !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  scroll-snap-type: x mandatory !important;
  scroll-behavior: smooth !important;
  -webkit-overflow-scrolling: touch !important;
  padding: 2px 8px 8px 0 !important;
  height: 100% !important;
  scrollbar-width: none !important;
}

.jd-blog-track::-webkit-scrollbar {
  display: none !important;
}

.jd-blog-card {
  flex: 0 0 240px !important;
  width: 240px !important;
  display: flex !important;
  flex-direction: column !important;
  background: #fff !important;
  border-radius: 16px !important;
  overflow: hidden !important;
  text-decoration: none !important;
  color: #2d2933 !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06) !important;
  scroll-snap-align: start !important;
  min-height: 260px !important;
}

.jd-blog-card:hover,
.jd-blog-card:focus {
  text-decoration: none !important;
  color: #2d2933 !important;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1) !important;
}

.jd-blog-card-media {
  display: block !important;
  width: 100% !important;
  height: 150px !important;
  background: #e0e0e0 !important;
  overflow: hidden !important;
}

.jd-blog-card-media img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

.jd-blog-card-body {
  padding: 14px 16px 18px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
}

.jd-blog-card .jd-blog-headline {
  font-size: 16px !important;
}

.jd-blog-nav {
  position: absolute !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 44px !important;
  height: 44px !important;
  border-radius: 50% !important;
  border: 0 !important;
  background: #fff !important;
  color: #222 !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.16) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  z-index: 3 !important;
  padding: 0 !important;
}

.jd-blog-prev { left: 6px !important; }
.jd-blog-next { right: 6px !important; }

.jd-blog-nav:hover,
.jd-blog-nav:focus {
  background: #f7f7f7 !important;
  outline: none !important;
}

.jd-blog-nav.is-hidden {
  display: none !important;
}

@media (max-width: 991px) {
  .jd-blog {
    padding: 32px 0 40px !important;
  }

  .jd-blog-row {
    flex-direction: column !important;
  }

  .jd-blog-featured {
    flex: 1 1 auto !important;
    max-width: none !important;
    width: 100% !important;
  }

  .jd-blog-title {
    font-size: 24px !important;
  }

  .jd-blog-featured .jd-blog-headline {
    font-size: 20px !important;
  }
}

@media (max-width: 640px) {
  .jd-blog-featured {
    flex-direction: column !important;
  }

  .jd-blog-featured-media {
    flex: 0 0 auto !important;
    height: 180px !important;
  }

  .jd-blog-card {
    flex-basis: 220px !important;
    width: 220px !important;
  }

  .jd-blog-nav {
    width: 40px !important;
    height: 40px !important;
  }
}


/* Hide default JClassifieds category cards on the Home page only.
   Search Ads By Categories (itemid-231) keeps the category grid. */
body.home.view-categories #sp-component .categories-container-2,
body.home.view-categories #sp-component .categories-style-2,
body.view-categories.itemid-101 #sp-component .categories-container-2,
body.view-categories.itemid-101 #sp-component .categories-style-2,
body.view-categories.itemid-1 #sp-component .categories-container-2,
body.view-categories.itemid-1 #sp-component .categories-style-2 {
  display: none !important;
}

body.home.view-categories #sp-component .sp-column:empty,
body.home.view-categories main#sp-component,
body.view-categories.itemid-101 #sp-component .sp-column:empty,
body.view-categories.itemid-101 main#sp-component,
body.view-categories.itemid-1 #sp-component .sp-column:empty,
body.view-categories.itemid-1 main#sp-component {
  min-height: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  margin: 0 !important;
}


/* =========================================================
   Homepage - Help, Business & Safety
   ========================================================= */

.jd-help {
  width: 100% !important;
  background: #fff !important;
  box-sizing: border-box !important;
  padding: 28px 0 48px !important;
}

.jd-help-inner {
  max-width: 1240px !important;
  margin: 0 auto !important;
  padding: 0 20px !important;
  box-sizing: border-box !important;
}

.jd-help-cards {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 18px !important;
  margin: 0 0 18px !important;
}

.jd-help-card {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  background: #f5f5f5 !important;
  border-radius: 18px !important;
  padding: 28px 24px !important;
  box-sizing: border-box !important;
  min-height: 220px !important;
}

.jd-help-card-copy {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  max-width: 360px !important;
}

.jd-help-card-title {
  margin: 0 0 12px !important;
  font-size: 28px !important;
  line-height: 1.2 !important;
  font-weight: 800 !important;
  color: #2d2933 !important;
  font-family: Montserrat, "Open Sans", sans-serif !important;
}

.jd-help-card-text {
  margin: 0 0 20px !important;
  font-size: 15px !important;
  line-height: 1.45 !important;
  color: #4f4a55 !important;
}

.jd-help-card-art {
  flex: 0 0 auto !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.jd-help-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 44px !important;
  padding: 10px 22px !important;
  background: #9aaa3a !important;
  color: #fff !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  border-radius: 8px !important;
  border: 0 !important;
  line-height: 1 !important;
}

.jd-help-btn:hover,
.jd-help-btn:focus {
  background: #7e8c2e !important;
  color: #fff !important;
  text-decoration: none !important;
}

.jd-help-btn--on-dark {
  flex: 0 0 auto !important;
  white-space: nowrap !important;
}

.jd-safety {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 20px !important;
  background: #212121 !important;
  border-radius: 18px !important;
  padding: 22px 28px !important;
  box-sizing: border-box !important;
}

.jd-safety-art {
  flex: 0 0 auto !important;
}

.jd-safety-copy {
  flex: 1 1 auto !important;
  min-width: 0 !important;
}

.jd-safety-title {
  margin: 0 0 8px !important;
  font-size: 26px !important;
  line-height: 1.2 !important;
  font-weight: 800 !important;
  color: #fff !important;
  font-family: Montserrat, "Open Sans", sans-serif !important;
}

.jd-safety-text {
  margin: 0 !important;
  font-size: 15px !important;
  line-height: 1.45 !important;
  color: #d7d7d7 !important;
}

.jd-safety-text a {
  color: #d4f0b0 !important;
  text-decoration: underline !important;
  font-weight: 600 !important;
}

.jd-safety-text a:hover,
.jd-safety-text a:focus {
  color: #d4f0b0 !important;
}

@media (max-width: 991px) {
  .jd-help-cards {
    grid-template-columns: 1fr !important;
  }

  .jd-help-card-title {
    font-size: 24px !important;
  }

  .jd-safety {
    flex-wrap: wrap !important;
  }

  .jd-safety-title {
    font-size: 22px !important;
  }
}

@media (max-width: 640px) {
  .jd-help-card {
    flex-direction: column !important;
    align-items: flex-start !important;
    padding: 22px 18px !important;
  }

  .jd-help-card-art {
    align-self: flex-end !important;
  }

  .jd-safety {
    flex-direction: column !important;
    align-items: flex-start !important;
    padding: 20px 18px !important;
  }

  .jd-help-btn--on-dark {
    width: 100% !important;
  }
}



/* Dark green Gumtree-style header overrides */
.jd-header-top {
  background: #228B22 !important;
  color: #ffffff !important;
}
.jd-action {
  color: #ffffff !important;
}
.jd-action:hover {
  color: #72ef36 !important;
}
.jd-ad-slot {
  color: #3d4518 !important;
}
.jd-ad-banner {
  background: #ffffff !important;
}
.jd-header-nav a:hover {
  background: #eef8e8 !important;
  color: #228B22 !important;
}
.jd-header-search .jd-search-btn {
  background: #72ef36 !important;
  color: #228B22 !important;
}
.jd-header-search .jd-search-btn:hover {
  background: #5fd62a !important;
  color: #228B22 !important;
}

/* Page background: white (no yellow) */
body.site .body-wrapper,
body.site .body-innerwrapper {
  background: #ffffff !important;
}

/* Keep dark green header locked above other theme rules */
.jd-header-top {
  background: #228B22 !important;
  color: #ffffff !important;
}
.jd-ad-slot {
  background: #ffffff !important;
  color: #3d4518 !important;
}
.jd-ad-banner {
  background: #ffffff !important;
}
.jd-action {
  color: #ffffff !important;
}
.jd-action:hover {
  color: #72ef36 !important;
}
.jd-header-nav {
  background: #fff !important;
  border-bottom: 1px solid #e5e5e5 !important;
}
.jd-header-nav a {
  color: #222 !important;
  border-right-color: #e5e5e5 !important;
}
.jd-header-nav a:hover,
.jd-header-nav a:focus {
  background: #eef8e8 !important;
  color: #228B22 !important;
}
.jd-header-search .jd-search-btn {
  background: #72ef36 !important;
  color: #228B22 !important;
}
.jd-header-search .jd-search-btn:hover {
  background: #5fd62a !important;
  color: #228B22 !important;
}
.jd-intro-btn {
  background: #228B22 !important;
  color: #fff !important;
}
.jd-intro-btn:hover {
  background: #1a6b1a !important;
  color: #fff !important;
}
body.site .body-wrapper,
body.site .body-innerwrapper {
  background: #ffffff !important;
}

/* Header location dropdown (matches hero search behavior) */
.jd-header-search .jd-location-wrap {
  position: relative !important;
  -webkit-box-flex: 0 !important;
  -ms-flex: 0 1 180px !important;
  flex: 0 1 180px !important;
  min-width: 140px !important;
}

.jd-location-input-wrap {
  position: relative !important;
  height: 100% !important;
}

.jd-header-search .jd-location {
  width: 100% !important;
  min-height: 54px !important;
  height: 54px !important;
  padding: 0 28px 0 12px !important;
  background: #fff !important;
  color: #222 !important;
  border: 0 !important;
  border-radius: 8px !important;
  box-sizing: border-box !important;
  font-size: 15px !important;
}

.jd-location-arrow {
  position: absolute !important;
  right: 10px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  color: #666 !important;
  pointer-events: none !important;
  font-size: 12px !important;
}

.jd-location-results {
  position: absolute !important;
  top: calc(100% + 4px) !important;
  left: 0 !important;
  right: 0 !important;
  min-width: 260px !important;
  max-height: 320px !important;
  overflow-y: auto !important;
  background: #fff !important;
  border: 1px solid #e5e5e5 !important;
  border-radius: 8px !important;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12) !important;
  z-index: 2000 !important;
  color: #222 !important;
}

.jd-location-results[hidden] {
  display: none !important;
}

.jd-location-results .jd-all-ireland,
.jd-location-results .all-ireland,
.jd-location-results .jd-county-item,
.jd-location-results .county-item,
.jd-location-results .county-select,
.jd-location-results .jd-county-select,
.jd-location-results .back-to-counties,
.jd-location-results .jd-back-to-counties,
.jd-location-results .town-item,
.jd-location-results .town-search-item {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 10px 12px !important;
  cursor: pointer !important;
  font-size: 14px !important;
  border-bottom: 1px solid #f0f0f0 !important;
}

.jd-location-results .jd-all-ireland:hover,
.jd-location-results .all-ireland:hover,
.jd-location-results .county-item:hover,
.jd-location-results .county-select:hover,
.jd-location-results .town-item:hover,
.jd-location-results .town-search-item:hover,
.jd-location-results .back-to-counties:hover {
  background: #ffffff !important;
  color: #5f6b1f !important;
}

.jd-location-results .featured-county {
  font-weight: 700 !important;
}

/* Keep header action links clickable above search UI */
.jd-header-search {
  position: relative !important;
  z-index: 1 !important;
}
.jd-actions {
  position: relative !important;
  z-index: 20 !important;
  pointer-events: auto !important;
  flex-shrink: 0 !important;
}
.jd-action,
.jd-action-login {
  position: relative !important;
  z-index: 21 !important;
  pointer-events: auto !important;
  cursor: pointer !important;
  color: #ffffff !important;
}
.jd-action .jd-action-ico,
.jd-action-login .jd-action-ico {
  color: #ffffff !important;
}
.jd-action:hover,
.jd-action:focus,
.jd-action-login:hover,
.jd-action-login:focus {
  color: #72ef36 !important;
}
.jd-action:hover .jd-action-ico,
.jd-action:focus .jd-action-ico,
.jd-action-login:hover .jd-action-ico,
.jd-action-login:focus .jd-action-ico {
  color: #72ef36 !important;
}

/* Force-hide homepage category cards (Cars / Jobs / Properties grid) */
body.home.view-categories #sp-main-body-component,
body.home.view-categories #sp-component .categories-container-2,
body.home.view-categories #sp-component .categories-style-2,
body.home.view-categories #sp-component .category-content-2,
body.view-categories.itemid-101 #sp-main-body-component,
body.view-categories.itemid-101 #sp-component .categories-container-2,
body.view-categories.itemid-101 #sp-component .categories-style-2,
body.view-categories.itemid-101 #sp-component .category-content-2,
body.com_jclassifiedsmanager.view-categories.itemid-101 .categories-container-2,
body.view-categories.itemid-1 #sp-main-body-component,
body.view-categories.itemid-1 #sp-component .categories-container-2,
body.view-categories.itemid-1 #sp-component .categories-style-2,
body.view-categories.itemid-1 #sp-component .category-content-2,
body.com_jclassifiedsmanager.view-categories.itemid-1 .categories-container-2 {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  max-height: 0 !important;
  overflow: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}

/* Mobile compact search: hide category, one-line keyword/location/Search */
@media (max-width: 991px) {
  .jd-header-search {
    flex-wrap: nowrap !important;
    gap: 6px !important;
  }
  .jd-header-search .jd-category-wrap {
    display: none !important;
  }
  .jd-header-search .jd-field,
  .jd-header-search .jd-search-btn,
  .jd-header-search .jd-location {
    min-height: 36px !important;
    height: 36px !important;
    font-size: 13px !important;
  }
  .jd-header-search .jd-keyword {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    padding: 0 10px !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-search-btn {
    flex: 0 0 auto !important;
    min-width: 64px !important;
    width: auto !important;
    padding: 0 10px !important;
    font-size: 13px !important;
  }
}
@media (max-width: 575px) {
  .jd-header-search .jd-field,
  .jd-header-search .jd-search-btn,
  .jd-header-search .jd-location {
    min-height: 34px !important;
    height: 34px !important;
    font-size: 12px !important;
  }
  .jd-header-search .jd-search-btn {
    min-width: 58px !important;
    padding: 0 8px !important;
    font-size: 12px !important;
  }
}

/* Category nav tabs: all visible, fixed 48px height */
.jd-header-nav {
  height: 48px !important;
  min-height: 48px !important;
  max-height: 48px !important;
  overflow: hidden !important;
}
.jd-header-nav a {
  flex: 1 1 0 !important;
  min-width: 0 !important;
  height: 48px !important;
  min-height: 48px !important;
  max-height: 48px !important;
  padding: 0 8px !important;
  white-space: normal !important;
  overflow: hidden !important;
  text-overflow: clip !important;
  line-height: 1.15 !important;
}
@media (max-width: 991px) {
  .jd-header-nav {
    height: 48px !important;
    min-height: 48px !important;
    max-height: 48px !important;
    overflow: hidden !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-header-nav a {
    padding: 0 3px !important;
    font-size: 11px !important;
  }
}

/* Category nav: allow 2-line labels inside fixed 48px tabs */
.jd-header-nav {
  height: 48px !important;
  min-height: 48px !important;
  max-height: 48px !important;
  overflow: hidden !important;
}
.jd-header-nav a {
  flex: 1 1 0 !important;
  min-width: 0 !important;
  height: 48px !important;
  min-height: 48px !important;
  max-height: 48px !important;
  padding: 2px 4px !important;
  white-space: normal !important;
  overflow: hidden !important;
  text-overflow: clip !important;
  text-align: center !important;
  line-height: 1.15 !important;
  word-break: break-word !important;
  overflow-wrap: anywhere !important;
  hyphens: auto !important;
  -webkit-hyphens: auto !important;
  display: -webkit-box !important;
  display: flex !important;
  -webkit-box-align: center !important;
  align-items: center !important;
  -webkit-box-pack: center !important;
  justify-content: center !important;
}
@media (max-width: 991px) {
  .jd-header-nav a {
    padding: 2px 3px !important;
    font-size: 11px !important;
    line-height: 1.2 !important;
    white-space: normal !important;
    text-overflow: clip !important;
  }
}
@media (max-width: 575px) {
  .jd-header-nav a {
    padding: 1px 2px !important;
    font-size: 10px !important;
    line-height: 1.15 !important;
  }
}

/* Force 2-line category tab labels (Cars & Vehicles) */
.jd-header-nav a {
  white-space: normal !important;
  text-overflow: clip !important;
  overflow: hidden !important;
  line-height: 1.15 !important;
}
.jd-header-nav a br {
  display: block !important;
  content: "" !important;
  line-height: 0 !important;
}
@media (min-width: 992px) {
  .jd-header-nav a br {
    display: none !important;
  }
}

/* Header #228B22; Intro Post Ad = search-button green #72ef36 */
.jd-header-top {
  background: #228B22 !important;
  color: #ffffff !important;
}
.jd-header-search .jd-search-btn {
  background: #72ef36 !important;
  color: #228B22 !important;
}
.jd-header-search .jd-search-btn:hover {
  background: #5fd62a !important;
  color: #228B22 !important;
}
.jd-intro-btn,
a.jd-intro-btn {
  background: #72ef36 !important;
  color: #228B22 !important;
}
.jd-intro-btn:hover,
.jd-intro-btn:focus,
a.jd-intro-btn:hover,
a.jd-intro-btn:focus {
  background: #5fd62a !important;
  color: #228B22 !important;
}
.jd-header-nav a:hover,
.jd-header-nav a:focus {
  color: #228B22 !important;
}

/* Header actions: Sign up pill | Log in | + Post FREE Ad */
.jd-actions {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 14px !important;
  flex-shrink: 0 !important;
}
.jd-actions .jd-action,
.jd-actions .jd-action-login,
.jd-actions .jd-action-signup,
.jd-actions .jd-action-post {
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center !important;
  color: #ffffff !important;
  min-width: 0 !important;
  min-height: 0 !important;
  font-size: 14px !important;
  white-space: nowrap !important;
  text-decoration: none !important;
}
.jd-actions .jd-action-signup {
  padding: 8px 18px !important;
  background: rgba(255, 255, 255, 0.18) !important;
  border-radius: 999px !important;
  font-weight: 600 !important;
}
.jd-actions .jd-action-login {
  background: transparent !important;
  padding: 0 !important;
  font-weight: 500 !important;
}
.jd-actions .jd-action-post {
  background: transparent !important;
  padding: 0 !important;
  font-weight: 700 !important;
  gap: 4px !important;
}
.jd-actions .jd-action-ico {
  color: #ffffff !important;
  margin: 0 !important;
}
.jd-actions .jd-action:hover,
.jd-actions .jd-action:focus {
  color: #ffffff !important;
  opacity: 0.9 !important;
}
@media (max-width: 575px) {
  .jd-actions {
    gap: 8px !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 12px !important;
  }
}

/* Logo: no green border/plate, larger size */
.jd-logo,
.jd-site-header .jd-logo,
#jd-site-header .jd-logo {
  background: transparent !important;
  background-color: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  outline: none !important;
  padding: 0 !important;
  border-radius: 0 !important;
}
.jd-logo img,
.jd-site-header .jd-logo img,
#jd-site-header .jd-logo img {
  height: 80px !important;
  max-height: 80px !important;
  max-width: 160px !important;
  width: auto !important;
}
@media (max-width: 991px) {
  .jd-logo img,
  .jd-site-header .jd-logo img,
  #jd-site-header .jd-logo img {
    height: 56px !important;
    max-height: 56px !important;
    max-width: 120px !important;
  }
}
@media (max-width: 575px) {
  .jd-logo img,
  .jd-site-header .jd-logo img,
  #jd-site-header .jd-logo img {
    height: 48px !important;
    max-height: 48px !important;
    max-width: 100px !important;
  }
}

/* Logo: keep larger size, restore rounded corners */
.jd-logo,
.jd-site-header .jd-logo,
#jd-site-header .jd-logo {
  background: #ffffff !important;
  border: 0 !important;
  box-shadow: none !important;
  outline: none !important;
  padding: 0 !important;
  border-radius: 8px !important;
  overflow: hidden !important;
}
.jd-logo img,
.jd-site-header .jd-logo img,
#jd-site-header .jd-logo img {
  border-radius: 8px !important;
  height: 80px !important;
  max-height: 80px !important;
  max-width: 160px !important;
  width: auto !important;
  display: block !important;
}
@media (max-width: 991px) {
  .jd-logo,
  .jd-site-header .jd-logo,
  #jd-site-header .jd-logo,
  .jd-logo img,
  .jd-site-header .jd-logo img,
  #jd-site-header .jd-logo img {
    border-radius: 6px !important;
  }
  .jd-logo img,
  .jd-site-header .jd-logo img,
  #jd-site-header .jd-logo img {
    height: 56px !important;
    max-height: 56px !important;
    max-width: 120px !important;
  }
}
@media (max-width: 575px) {
  .jd-logo img,
  .jd-site-header .jd-logo img,
  #jd-site-header .jd-logo img {
    height: 48px !important;
    max-height: 48px !important;
    max-width: 100px !important;
  }
}

/* Mobile search: Category + Location + Search (hide keyword) */
@media (max-width: 991px) {
  .jd-header-search {
    flex-wrap: nowrap !important;
    gap: 6px !important;
  }
  .jd-header-search .jd-keyword {
    display: none !important;
  }
  .jd-header-search .jd-category-wrap {
    display: block !important;
    flex: 1 1 0 !important;
    min-width: 0 !important;
    max-width: none !important;
    position: relative !important;
    z-index: 30 !important;
  }
  .jd-header-search .jd-category-btn {
    width: 100% !important;
    min-height: 36px !important;
    height: 36px !important;
    padding: 0 8px !important;
    font-size: 12px !important;
  }
  .jd-header-search .jd-category-btn-label {
    max-width: none !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }
  .jd-header-search .jd-location-wrap {
    display: block !important;
    flex: 1 1 0 !important;
    min-width: 0 !important;
    max-width: none !important;
  }
  .jd-header-search .jd-location {
    min-height: 36px !important;
    height: 36px !important;
    font-size: 12px !important;
    padding: 0 24px 0 10px !important;
  }
  .jd-header-search .jd-search-btn {
    display: inline-flex !important;
    flex: 0 0 auto !important;
    min-width: 58px !important;
    min-height: 36px !important;
    height: 36px !important;
    padding: 0 10px !important;
    font-size: 12px !important;
  }
  .jd-category-panel {
    min-width: 0 !important;
    width: min(92vw, 360px) !important;
    left: 0 !important;
    right: auto !important;
  }
}
@media (max-width: 575px) {
  .jd-header-search .jd-category-btn,
  .jd-header-search .jd-location,
  .jd-header-search .jd-search-btn {
    min-height: 34px !important;
    height: 34px !important;
    font-size: 11px !important;
  }
  .jd-header-search .jd-search-btn {
    min-width: 52px !important;
    padding: 0 8px !important;
  }
}

/* =========================================================
   Gumtree SA-style unified search bar
   Green icons/button: #78C222
   ========================================================= */
.jd-header-search {
  display: flex !important;
  flex: 1 1 auto !important;
  min-width: 0 !important;
  gap: 0 !important;
  background: transparent !important;
  align-items: stretch !important;
}
.jd-search-bar {
  display: flex !important;
  flex-direction: row !important;
  align-items: stretch !important;
  flex: 1 1 auto !important;
  width: 100% !important;
  min-width: 0 !important;
  height: 48px !important;
  background: #ffffff !important;
  border-radius: 8px !important;
  overflow: visible !important;
  box-shadow: none !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;
  border-radius: 0 !important;
  margin: 0 !important;
}
.jd-header-search .jd-category-wrap {
  flex: 0 0 150px !important;
  min-width: 130px !important;
  max-width: 180px !important;
  position: relative !important;
  z-index: 40 !important;
  display: block !important;
  border-right: 1px solid #d9d9d9 !important;
}
.jd-category-btn {
  width: 100% !important;
  height: 48px !important;
  min-height: 48px !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 0 12px !important;
  border: 0 !important;
  border-radius: 8px 0 0 8px !important;
  background: #f3f3f3 !important;
  color: #666666 !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  cursor: pointer !important;
}
.jd-category-btn-ico {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 0 !important;
  color: #78C222 !important;
  flex: 0 0 auto !important;
}
.jd-category-btn-ico .jd-ico-grid,
.jd-category-btn-ico svg {
  display: block !important;
  width: 18px !important;
  height: 18px !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;
  color: #666666 !important;
  font-weight: 500 !important;
}
.jd-category-arrow {
  display: inline-flex !important;
  align-items: center !important;
  line-height: 0 !important;
  flex: 0 0 auto !important;
}
.jd-header-search .jd-keyword {
  flex: 1 1 auto !important;
  min-width: 120px !important;
  height: 48px !important;
  min-height: 48px !important;
  padding: 0 14px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: #ffffff !important;
  color: #333333 !important;
  font-size: 15px !important;
  font-style: italic !important;
  box-shadow: none !important;
  outline: none !important;
}
.jd-header-search .jd-keyword::placeholder {
  color: #9a9a9a !important;
  font-style: italic !important;
  opacity: 1 !important;
}
.jd-header-search .jd-location-wrap {
  flex: 0 1 200px !important;
  min-width: 150px !important;
  max-width: 240px !important;
  position: relative !important;
  border-left: 1px solid #d9d9d9 !important;
  background: #ffffff !important;
  z-index: 35 !important;
}
.jd-location-input-wrap {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  height: 100% !important;
  padding-left: 12px !important;
}
.jd-location-pin {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 auto !important;
  line-height: 0 !important;
  margin-right: 8px !important;
}
.jd-location-pin svg {
  display: block !important;
  width: 14px !important;
  height: 18px !important;
}
.jd-header-search .jd-location {
  flex: 1 1 auto !important;
  width: 100% !important;
  height: 48px !important;
  min-height: 48px !important;
  padding: 0 12px 0 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #333333 !important;
  font-size: 14px !important;
  font-style: normal !important;
  box-shadow: none !important;
  outline: none !important;
}
.jd-location-arrow { display: none !important; }
.jd-header-search .jd-search-btn {
  flex: 0 0 56px !important;
  width: 56px !important;
  min-width: 56px !important;
  height: 48px !important;
  min-height: 48px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 8px 8px 0 !important;
  background: #78C222 !important;
  color: #ffffff !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
}
.jd-header-search .jd-search-btn:hover,
.jd-header-search .jd-search-btn:focus {
  background: #6bb01c !important;
  color: #ffffff !important;
}
.jd-search-btn .jd-ico-search {
  display: block !important;
  width: 22px !important;
  height: 22px !important;
}
.jd-search-btn-text {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0,0,0,0) !important;
  border: 0 !important;
}
.jd-category-panel {
  top: calc(100% + 4px) !important;
}
.jd-location-results {
  top: calc(100% + 4px) !important;
}

/* Keep intro Post Ad on search-green family */
.jd-intro-btn,
a.jd-intro-btn {
  background: #78C222 !important;
  color: #ffffff !important;
}
.jd-intro-btn:hover,
.jd-intro-btn:focus,
a.jd-intro-btn:hover,
a.jd-intro-btn:focus {
  background: #6bb01c !important;
  color: #ffffff !important;
}

/* Mobile: category + location + search icon */
@media (max-width: 991px) {
  .jd-search-bar {
    height: 42px !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-category-btn,
  .jd-header-search .jd-location {
    height: 42px !important;
    min-height: 42px !important;
  }
  .jd-header-search .jd-keyword {
    display: none !important;
  }
  .jd-header-search .jd-category-wrap {
    display: block !important;
    flex: 1 1 0 !important;
    min-width: 0 !important;
    max-width: none !important;
  }
  .jd-header-search .jd-location-wrap {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    max-width: none !important;
  }
  .jd-header-search .jd-search-btn {
    flex: 0 0 48px !important;
    width: 48px !important;
    min-width: 48px !important;
  }
  .jd-category-btn {
    padding: 0 8px !important;
    font-size: 12px !important;
  }
}

/* Lock Gumtree SA search visuals above older overrides */
.jd-search-bar .jd-search-btn {
  background: #78C222 !important;
  color: #fff !important;
  border-radius: 0 8px 8px 0 !important;
}
.jd-search-bar .jd-category-btn {
  background: #f3f3f3 !important;
  border-radius: 8px 0 0 8px !important;
}
.jd-search-bar .jd-category-btn-ico svg circle {
  fill: #78C222 !important;
}
.jd-search-bar .jd-location-pin svg path {
  fill: #78C222 !important;
}
.jd-search-bar .jd-location {
  height: 48px !important;
  min-height: 48px !important;
}
@media (max-width: 991px) {
  .jd-search-bar .jd-location {
    height: 42px !important;
    min-height: 42px !important;
  }
}
