:root {
    --aladin-green: #1da959;
    --dark-footer: #0a0a0a;
    --light-gray: #f8f9fa;
}

body {
    font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #fff;
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Navbar Styles */
.custom-navbar {
    background: #fff;
    padding: 12px 0;
    border-bottom: 1px solid #e0e0e0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* Logo Styles */
.logo-img {
    height: 55px;
}

/* Parish Select Styles */
.parish-select {
    height: 44px;
    border-radius: 8px;
    border: 1px solid #ced4da;
    padding: 0 10px;
    font-size: 14px;
    appearance: none;
    background: #fff
        url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e")
        no-repeat right 0.7rem center/12px 12px;
}

/* Search Box Styles */
.search-box {
    position: relative;
    width: 100%;
}

.search-input {
    height: 44px;
    border-radius: 8px;
    padding-left: 40px;
    border: 1px solid #ced4da;
    font-size: 14px;
    background-color: var(--light-gray);
}

.search-icon-pos {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #888;
    font-size: 18px;
}

/* Button Styles */
.btn-filter {
    background: #000;
    color: #fff;
    height: 44px;
    border-radius: 8px;
    border: none;
    padding: 0 15px;
    font-weight: 500;
}

.btn-post-ad {
    background: var(--aladin-green);
    color: #fff;
    height: 44px;
    border-radius: 8px;
    border: none;
    padding: 0 15px;
    font-weight: 600;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-post-ad:hover {
    background: #1a8a4a;
    color: #fff;
    text-decoration: none;
}

.btn-login-reg {
    height: 44px;
    border-radius: 8px;
    border: 1px solid #ced4da;
    background: #fff;
    padding: 0 15px;
    font-weight: 500;
    white-space: nowrap;
}

.btn-my-profile {
    height: 44px;
    border-radius: 8px;
    border: 1px solid #ced4da;
    background: #fff;
    padding: 0 15px;
    font-weight: 500;
    white-space: nowrap;
    color: #000 !important;
}

.user-icon-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid #d0d0d0;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.user-icon-circle i {
    color: #666;
    font-size: 18px;
}

.user-profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

/* Profile Dropdown Styles */
.profile-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 200px;
    padding: 8px 0;
    z-index: 1000;
    display: none;
    border: 1px solid #e0e0e0;
}

.profile-dropdown.show {
    display: block;
}

.profile-dropdown-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #000;
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    transition: background-color 0.2s;
    border-bottom: 1px solid #f0f0f0;
}

.profile-dropdown-item:last-child {
    border-bottom: none;
}

.profile-dropdown-item:hover {
    background-color: #f8f9fa;
}

.profile-dropdown-item i {
    color: #999;
    font-size: 18px;
    width: 24px;
    margin-right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Sidebar Styles */
.offcanvas {
    width: 380px !important;
    border-top-left-radius: 20px;
    border-bottom-left-radius: 20px;
}

/* Price Range Styles */
.price-range-container {
    padding: 10px 0;
}

.price-label {
    min-width: 120px;
    max-width: 150px;
}

.price-display {
    color: var(--aladin-green);
    font-size: 18px;
}

.price-min-max {
    color: #333;
    font-size: 16px;
}

/* Price Input Fields */
.price-input {
    width: 100%;
    max-width: 150px;
    height: 38px;
    border: 1px solid var(--aladin-green);
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    text-align: left;
}

.price-input:focus {
    border-color: #dc3545;
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.price-input::placeholder {
    color: #999;
}

/* Dual Range Wrapper */
.dual-range-wrapper {
    position: relative;
    height: 20px;
    margin: 20px 0;
    padding: 0 10px;
}

.dual-range-wrapper .range-input {
    position: absolute;
    width: calc(100% - 20px);
    left: 10px;
    height: 0;
    pointer-events: none;
    margin: 0;
}

.dual-range-wrapper .range-input::-webkit-slider-thumb {
    pointer-events: all;
    position: relative;
    z-index: 3;
}

.dual-range-wrapper .range-input::-moz-range-thumb {
    pointer-events: all;
    position: relative;
    z-index: 3;
}

.dual-range-wrapper #minPriceRange {
    z-index: 2;
}

.dual-range-wrapper #maxPriceRange {
    z-index: 1;
}

.dual-range-wrapper #maxPriceRange::-webkit-slider-thumb {
    z-index: 4;
}

.dual-range-wrapper #maxPriceRange::-moz-range-thumb {
    z-index: 4;
}

/* Range Slider Styles */
.custom-range::-webkit-slider-runnable-track {
    background: #e9ecef;
    height: 6px;
    border-radius: 3px;
}

.custom-range::-webkit-slider-thumb {
    background: var(--aladin-green);
    border: 2px solid #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    margin-top: -6px;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.custom-range::-moz-range-thumb {
    background: var(--aladin-green);
    border: 2px solid #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    cursor: pointer;
}

.custom-green-range {
    width: 100%;
    height: 6px;
    cursor: pointer;
    --slider-fill-start: 0%;
    --slider-fill-end: 100%;
}

.custom-green-range::-webkit-slider-runnable-track {
    background: linear-gradient(to right,
        #e9ecef 0%,
        #e9ecef var(--slider-fill-start),
        #1da959 var(--slider-fill-start),
        #1da959 var(--slider-fill-end),
        #e9ecef var(--slider-fill-end),
        #e9ecef 100%);
    height: 6px;
    border-radius: 3px;
}

.custom-green-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    background: #1da959;
    border: 2px solid #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    margin-top: -7px;
    cursor: pointer;
}

.custom-green-range::-moz-range-track {
    background: #e9ecef;
    height: 6px;
    border-radius: 3px;
}

/* Firefox progress fill */
.custom-green-range::-moz-range-progress {
    background: #1da959;
    height: 6px;
    border-radius: 3px 0 0 3px;
}

.custom-green-range::-moz-range-thumb {
    background: #1da959;
    border: 2px solid #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    cursor: pointer;
}

/* Condition Button Styles */
.btn-condition {
    border-radius: 20px !important;
    background-color: #f0f4f2;
    border: 1px solid transparent;
    color: #444;
    font-size: 14px;
    padding: 6px 18px;
    transition: 0.2s;
}

.btn-check:checked + .btn-condition {
    background-color: #e8f5ed !important;
    border-color: #d1e7dd !important;
    color: #333 !important;
}

.btn-outline-secondary:hover {
    background-color: #e8f5ed;
    color: #333;
    border-color: transparent;
}

/* Filter Pill Styles */
.btn-filter-pill {
    border-radius: 25px;
    background-color: #f1f3f2;
    border: 1px solid transparent;
    color: #444;
    font-size: 14px;
    padding: 8px 20px;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
}

.btn-filter-pill:hover {
    background-color: #e8f5ed;
    border-color: #d1e7dd;
}

.btn-filter-pill.active {
    background-color: #e8f5ed !important;
    border-color: #d1e7dd !important;
    color: #1da959 !important;
    font-weight: 500;
}

.btn.btn-filter-pill.active i.bi.bi-check2{
    display: inline-block;
}

.btn.btn-filter-pill i.bi.bi-check2{
    display: none;
}

.btn-filter-pill i {
    font-size: 12px;
    margin-right: 4px;
    color: #666;
    transition: color 0.2s ease;
    display: inline-block;
}

.btn-filter-pill.active i {
    color: #1da959 !important;
}

/* Reset Link Style */
#resetFilters {
    font-size: 14px;
    text-decoration: none;
}

/* <!-- <----------- select block start -----------> */
.select-block{
    height: 35px;
    gap: 10px;
    padding: 5px 10px;
    border: 1px solid rgba(var(--table-border));
    border-radius: 10px;
    -webkit-border-radius: 10px;
    -moz-border-radius: 10px;
    -ms-border-radius: 10px;
    -o-border-radius: 10px;
    width: fit-content;
}

.label-bar {
    white-space: nowrap;
    color: #333;
}
.select2-container--default .select2-selection--single{
    border: none !important;
}
.select2-container--default .select2-selection--single .select2-selection__rendered{
    padding-left: 0;
    font-size: 13px;
    font-weight: 600;
    color: rgba(var(--black));
    line-height: 29px;
}
.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable{
    background-color: transparent !important;
    color: rgba(var(--main)) !important;
    font-weight: 500 !important;
}
.select2-container--default .select2-results__option--selected{
    background-color: transparent !important;
}
.select2-results__option{
    font-size: 14px;
    padding: 0;
}
.select2-dropdown{
    border-color: rgba(var(--table-border));
    padding: 10px;
    box-shadow: rgba(0, 0, 0, 0.2) 0px 18px 50px -10px;
}
.select2-container--default .select2-results>.select2-results__options{
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.select2-search--dropdown .select2-search__field:focus{
    outline: none;
    box-shadow: none;
}
.select2-search--dropdown .select2-search__field{
    height: 25px;
}
.select2-search--dropdown{
    padding: 0 0 10px 0;
}
.select2-container--default .select2-search--dropdown .select2-search__field{
    font-size: 13px;
    font-weight: 500;
    border-color: rgba(var(--box-border));
    border-radius: 5px;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    -ms-border-radius: 5px;
    -o-border-radius: 5px;
}
.select2-container--default .select2-search--dropdown .select2-search__field:focus{
    border-color: rgba(var(--main));
}
.select2-container--default .select2-selection--single .select2-selection__rendered {
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
  width: 100%;
  max-width: 150px;
}

/* Select2 container width control for select-block */
.select-block .select2-container {
  flex: 1;
  min-width: 120px;
  max-width: 200px;
}

.select-block .select2-container--default .select2-selection--single {
  height: auto;
  min-height: 25px;
}
.form-wapper .select2-container--default .select2-selection--single .select2-selection__rendered{
    max-width: 100%;
}

/* .select2-dropdown.custom-select2-dropdown {
    min-width: 150px !important;
    width: auto !important;
    max-width: 250px;
} */

/* <!-- <----------- select block end -----------> */

/* <!-- <----------- Footer Styles start -----------> */
.custom-footer {
    background-color: var(--dark-footer);
    color: #fff;
    margin-top: auto;
}

.footer-brand-section {
    height: 100%;
}

.footer-logo {
    display: flex;
    align-items: center;
}

.footer-logo a {
    text-decoration: none;
    color: var(--aladin-green);
}

.footer-logo-img {
    height: 70px;
    margin-right: 10px;
}

.footer-logo-text {
    font-size: 24px;
    font-weight: 700;
    color: var(--aladin-green);
}

.footer-download-text {
    color: #fff;
    font-size: 14px;
    margin: 0;
}

.app-download-buttons {
    margin-top: 15px;
}

.app-store-btn {
    display: inline-flex;
    align-items: center;
    border: 1px solid #fff;
    border-radius: 5px;
    padding: 8px 15px;
    background-color: transparent;
    transition: all 0.3s ease;
    text-decoration: none;
    min-height: 50px;
}

.app-store-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    border-color: var(--aladin-green);
}

.app-btn-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.app-btn-icon {
    font-size: 24px;
    color: #fff;
}

.app-btn-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.app-btn-small {
    font-size: 10px;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.app-btn-large {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
}

.footer-links-section {
    justify-content: end;
}

.footer-link-column {
    min-width: 120px;
}

.footer-link-heading {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    /* margin-bottom: 15px; */
    padding-bottom: 8px;
    display: inline-block;
}
.footer-heading-divider{
    height: 2px;
    background: linear-gradient(90deg, #136D35 20.81%, #19AC54 46.73%, #136D35 79.19%);
    margin-bottom: 15px;
}

.footer-link-list {
    margin: 0;
    padding: 0;
}

.footer-link-list li {
    margin-bottom: 10px;
}

.footer-link {
    color: #ccc;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--aladin-green);
}

.footer-divider {
    height: 2px;
    background: linear-gradient(90deg, #136D35 20.81%, #19AC54 46.73%, #136D35 79.19%);
    margin: 20px 0;
}

.social-media-section {
    padding: 20px 0;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    width: 100%;
    grid-gap: 15px;
}

.social-icons {
    gap: 15px;
}

.social-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: var(--aladin-green);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 20px;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background-color: #1a8a4a;
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(29, 169, 89, 0.3);
    color: #fff;
}

.copyright-section {
    padding: 15px 0;
}

.copyright-text {
    color: #999;
    font-size: 14px;
    margin: 0;
}
/* <!-- <----------- Footer Styles end -----------> */

.header-right-position{
    position: absolute;
    right: 3rem;
}
