/* =========================================
   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;
}

/* DARK OVERLAY */
#sp-banner:before{
    content:"";
    position:absolute;
    inset:0;
    background:rgba(0,0,0,0.30);
    z-index:1;
}

/* =========================================
   SEARCH MODULE WRAPPER
========================================= */

#jcls-search{
    position:relative;
    z-index:5;
    width:100%;
    max-width:100%;
    margin:0 auto;
    padding-top:70px;

    display:flex;
    flex-direction:column;
    align-items:center;
}

/* =========================================
   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:0 auto;
}

/* 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%;
}

#locationSearch{
    padding-left:44px !important;
    padding-right:44px !important;
}

/* LOCATION ICON */
.location-search-icon{
    position:absolute;
    left:15px;
    top:50%;
    transform:translateY(-50%);
    color:#666;
    font-size:14px;
    z-index:5;
    pointer-events:none;
}

/* LOCATION ARROW */
.location-arrow{
    position:absolute;
    right:16px;
    top:50%;
    transform:translateY(-50%);
    color:#666;
    font-size:14px;
    z-index:5;
    pointer-events:none;
}

/* =========================================
   LOCATION DROPDOWN
========================================= */

.location-results{
    display:none;
    position:absolute;
    top:64px;
    left:0;
    width:100%;
    background:#fff;
    border-radius:16px;
    overflow:hidden;
    box-shadow:0 14px 35px rgba(0,0,0,0.18);
    z-index:99999;
    max-height:320px;
    overflow-y:auto;
}

/* COUNTY + TOWN ROWS */
.county-item,
.town-item,
.back-to-counties,
.all-ireland,
.county-select{
    padding:9px 16px;
    min-height:30px;
    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.1;
}

.county-item:hover,
.town-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;
}

/* =========================================
   SEARCH BUTTON
========================================= */

.ui-ad-button{
    width:100% !important;
    height:58px !important;
    border:none !important;
    border-radius:12px !important;
    background:#e85b14 !important;
    color:#fff !important;
    font-size:17px !important;
    font-weight:700 !important;
    margin-top:4px;
    transition:0.2s;
}

.ui-ad-button:hover{
    background:#d84f0d !important;
}

.ui-button-text{
    color:#fff !important;
}

/* =========================================
   MAKE HERO OVERLAP NEXT SECTION
========================================= */

#sp-main-body{
    margin-top:-60px;
    position:relative;
    z-index:10;
}

/* =========================================
   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:#00bcd4 !important;
    }
    
