/*index*/
:root {
    --primary-color: #023e8a;
    --secondary-color: #42c3e6;
}

body {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", "Liberation Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    background-color: #f8f9fa;
}
a{text-decoration:none;}
.navbar {
    background-color: var(--primary-color) !important;
}

.navbar-brand,
.nav-link {
    color: white !important;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.hero-section {
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 50px 0;
}
.postAdBtn:hover{background-color:white;}
.category-chips .badge {
    margin: 0 5px 10px 0;
    font-size: 1rem;
}

.category-grid .card {
    border: none;
    text-align: center;
    transition: transform 0.3s;
    cursor: pointer;
}

.category-grid .card:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.category-grid .card-body {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 114px;
}

.category-grid .card-title {
    margin: 0;
    text-align: left;
}

.category-grid .card-body img {
    width: 48px;
    height: auto;
}

.category-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.listing-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.wishlist-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    color: #ccc;
    font-size: 1.5rem;
    cursor: pointer;
}

.wishlist-icon:hover {
    color: red;
}

.card-title {
    margin: 0;
    text-align: left;
}

.footer {
    background-color: var(--primary-color);
    color: white;
    padding: 20px 0;
}

.footer a {
    color: var(--secondary-color);
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

.text-secondary-color {
    color: var(--secondary-color);
}

.text-primary,
.border-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}
/* =========================
   LOCATION DROPDOWN
========================= */
.location-select{
  border:1px solid #ced4da;
  border-radius:0.375em;
  padding:10px 14px;
  background:#fff;
  display:flex;
  align-items:center;
  cursor:pointer;
}

.location-menu{
  position:absolute;
  top:110%;
  left:0;
  width:100%;
  background:#fff;
  border-radius:0.375em;
  box-shadow:0 10px 30px rgba(0,0,0,.15);
  z-index:1000;
}

.location-item{
  padding:12px 14px;
  cursor:pointer;
  font-size:14px;
}

.location-item:hover{
  background:#f1f5ff;
}

.location-item.current{
  color:var(--primary);
  font-weight:600;
}

.location-divider{
  height:1px;
  background:#eee;
  margin:6px 0;
}

/*forgot password*/
.auth-card {
    background: #fff;
    border-radius: 16px;
    padding: 35px 30px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .12);
}

.auth-title {
    color: var(--primary-color);
    font-weight: 700;
}

.btn-main {
    background: var(--primary-color);
    color: #fff;
    border: none;
}

.btn-main:hover {
    background: #012f66;
}

.back-link {
    color: var(--primary-color);
    text-decoration: none;
}

.back-link:hover {
    text-decoration: underline;
}

.icon-box {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: rgba(66, 195, 230, .15);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 32px;
    color: var(--primary-color);
}

/*listing*/


.search-section {
    background-color: #fff;
    padding: 20px 0;
    border-bottom: 1px solid #ddd;
}

.breadcrumb {
    background-color: transparent;
    margin-bottom: 0;
}

.breadcrumb-item a {
    color: var(--secondary-color);
}

.category-name {
    color: var(--primary-color);
    font-weight: bold;
    margin-bottom: 20px;
}

.filters {
    background-color: #fff;
    padding: 20px;
    border-right: 1px solid #ddd;
}

.price-range-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: #666;
    margin-top: 5px;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 10px 0;
    border-bottom: 1px solid #ddd;
}

.total-items {
    font-weight: bold;
    color: var(--primary-color);
}

.h-48vh {
    height: 182px;
}


/*login*/

.login-card {
    max-width: 400px;
    width: 100%;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.social-btn {
    width: 100%;
    margin-bottom: 10px;
}

.form-check-label,
.text-muted a {
    color: var(--secondary-color);
}

.text-muted a:hover {
    text-decoration: underline;
}



/* post ad         */

/* Progress */
.progress {
    height: 6px;
}

.progress-bar {
    background: var(--secondary-color);
}

/* Box */
.box {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: 20px;
}

/* Title */
.page-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
}

/* Category / Subcategory */
.cat {
    border: 1px solid #dee2e6;
    border-radius: 12px;
    padding: 18px;
    text-align: center;
    cursor: pointer;
    transition: 0.3s;
}

.cat:hover {
    border-color: var(--primary-color);
    background: #eaf1ff;
}

.cat h6 {
    margin-top: 8px;
    font-weight: 600;
}

/* Chips */
.chips input {
    display: none;
}

.chips label {
    border: 1px solid #ced4da;
    padding: 6px 14px;
    border-radius: 20px;
    margin: 5px;
    cursor: pointer;
    font-size: 14px;
}

.chips input:checked+label {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

/* Back */
.back {
    cursor: pointer;
    color: var(--primary-color);
    font-weight: 600;
}


/* Image Preview */
.preview {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.preview img {
    width: 90px;
    height: 90px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.preview-item {
    position: relative;
}

.preview-item img {
    width: 90px;
    height: 90px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.remove-img {
    position: absolute;
    top: -6px;
    right: -6px;
    background: #dc3545;
    color: #fff;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.top-30vh {
    top: 11vh;
}

.c-pointer {
    cursor: pointer;
}

/* post success */



.card-box {
    background: #fff;
    border-radius: 14px;
    padding: 40px 30px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, .12);
    max-width: 420px;
    width: 100%;
    text-align: center;
}

/* Success icon */
.success-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(66, 195, 230, .15);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.success-icon span {
    font-size: 42px;
    color: var(--primary-color);
}


.btn-outline-main {
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline-main:hover {
    background: var(--primary-color);
    color: #fff;
}

/* product detail */

.product-title {
    color: var(--primary-color);
    font-weight: bold;
}

.product-price {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.seller-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    background-color: #fff;
}

.seller-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #ccc;
    display: inline-block;
}

.contact-btn {
    margin: 5px;
}

.overview-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    background-color: #fff;
    margin-bottom: 20px;
}

.details-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    background-color: #fff;
    margin-bottom: 20px;
}

.map-container {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    height: 300px;
}

.related-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
}


/* profile */





/* Profile */
.profile-img {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--secondary-color);
}

.edit-img {
    position: absolute;
    bottom: 0;
    right: 0;
    background: var(--primary-color);
    color: #fff;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    cursor: pointer;
}

/* Tabs */
.nav-pills .nav-link {
    font-weight: 600;
    color: #555 !important;
}

.nav-pills .nav-link.active {
    background: var(--primary-color);
    color:#fff !important;
}



/* Filters */
.filter-chip {
    border: 1px solid #ced4da;
    padding: 6px 14px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    margin-left: 6px;
}

.filter-chip.active {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

/* Ad Card */
.ad-card>div:nth-child(1) {
    width: 150px;
    object-fit: cover;
    border-radius: 10px;
    padding-top: 150px;
    position: relative;
    border-radius: 10px;
    border: 1px solid #ccc;
    background: #efefef;
}

.ad-card img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: auto;
}

.price {
    color: var(--primary-color);
    font-weight: 700
}

/* Status */
.badge-active {
    background: #28a745
}

.badge-pending {
    background: #ffc107;
    color: #000
}

.badge-inactive {
    background: #6c757d
}

.badge-moderated {
    background: #0dcaf0;
    color: #000
}

.badge-sold {
    background: #6f42c1
}

.badge-rejected {
    background: #dc3545
}

/* Actions */
.ad-actions a {
    cursor: pointer;
    margin-right: 14px;
    font-size: 1.2rem;
    color: #555;
}

.ad-actions a:hover i {
    color: var(--primary-color)
}

.colCount2 {
    column-count: 2;
}

.pagination .page-item.active .page-link {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

.pagination .page-link {
    color: var(--primary-color);
}

.ad-card>div:nth-child(2) {
    flex: 1
}

.clrRed {
    color: #df0b0b;
}



/* reset password */




.password-toggle {
    cursor: pointer;
    font-size: 14px;
    color: var(--primary-color);
}

.rule {
    font-size: 13px;
    color: #6c757d;
}

.rule.valid {
    color: #198754
}

/* sign up */


.signup-card {
    max-width: 400px;
    width: 100%;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}


/* wishlist */


.empty-wishlist {
    text-align: center;
    padding: 100px 20px;
}

.empty-wishlist i {
    font-size: 4rem;
    color: #ccc;
    margin-bottom: 20px;
}

.wishlist-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    margin-bottom: 20px;
}

.wishlist-card .card-body {
    padding: 15px;
}

.wishlist-card .card-title {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.wishlist-card .card-price {
    font-weight: bold;
    color: var(--primary-color);
    font-size: 1.2rem;
}

.wishlist-card .card-location {
    color: #666;
    font-size: 0.9rem;
}
.mob_searchBox{
    display:none;
}
.mob_navHeight{
    height:56px;
}
.mob_locationBox{
    display: none;
}
.category-grid .card-body i.position-relative{
    width:48px;
}
.mob_db{
    display: none;
}
/* =========================
   EMPTY STATE UI
========================= */
.empty-state{
  background:#fff;
  border-radius:14px;
  padding:60px 20px;
  box-shadow:0 8px 25px rgba(0,0,0,.08);
}

.empty-icon{
  font-size:70px;
  width:100px;
  height:100px;
  margin:auto;
  background:rgba(66,195,230,.15);
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
}

.empty-title{
  font-weight:700;
  color:#222;
}

.empty-text{
  color:#666;
  max-width:420px;
  margin:auto;
}


@media only screen and (max-width:1023px) {
    .category-chips{
        display:none;
    }
    .filter-chip {
        display: inline-block;
        margin-bottom: 10px;
    }

    .colCount2 {
        column-count: initial;
    }

    .ad-card>div:nth-child(2) {
        flex: 1
    }
    .category-grid .card-body{
        flex-direction: column;
    }
    .category-grid .col-md-2.col-sm-4{
        width:50%;
    }
    .category-grid .col-md-12.col-sm-4{
        display: block !important;
    }
    .category-grid .col-md-12.col-sm-4 .card-body{
        min-height: auto;
    }
    .location-select{
        padding: 5px 5px;
    }
    .location-select span#selectedLocation,
    .location-select span#selectedLocationMob{
        display: block;
        white-space: nowrap;
        text-overflow: ellipsis;
        overflow: hidden;
    }
    .location-menu#locationMenuMob{
        position: fixed;
        top: 0;
        left: -100%;
        right: 0;
        bottom: 0;
        border-radius: 0;
        transition: all 0.4s ease-in-out;
    }
    .location-menu#locationMenuMob.actv{
        left:0;
    }
}
@media only screen and (max-width:991px){
    .navbar-toggler{
        padding: 0;
        border: none;
        margin-right: 5px;
    }
    .mob_locationBox{
        width: 35%;
        display: block;
    }
    .mob_locationBox select{
        margin: 0;
        width: 100%; 
        background-color: rgba(255,255,255,0.1); 
        color: white; 
        border: 1px solid rgba(255,255,255,0.3);
    }
    .mob_dn{
        display: none;
    }
    .mob_db{
        display: block;
    }
    .mob_searchBox{
        display:flex;
        align-items: center;
        border-bottom: 1px solid #ddd;
    }
    .mob_navHeight{
        height: 108px;
    }
    .navbar-nav{
        padding-top: 10px;
    }
}


@media (max-width: 768px) {
    .product-details {
        margin-top: 20px;
    }

    .map-container {
        height: 250px;
    }
    .filters {
        border-right: none;
        border-bottom: 1px solid #ddd;
    }

    .results-header {
        flex-direction: column;
        align-items: flex-start;
    }
}
@media only screen and (max-width:767px) {
    .w640_mb15 {
        margin-bottom: 15px;
    }
    .mob_mt_30{
        margin-top: 30px;
    }
    .mob_mb_10{
        margin-bottom:10px;
    }
}
@media (max-width: 576px) {
    .signup-card {
        margin: 20px;
    }
    .login-card {
        margin: 20px;
    }
}
@media only screen and (max-width:479px) {
    .ad-card {
        flex-direction: column;
    }

    .ad-card>div:nth-child(1) {
        width: 100%;
    }

    .pagination .page-link {
        font-size: 12px;
    }
    .contact-btn {
        margin: 5px 0.05em;
        padding: 6px 0.5em;
    }
    .profile_nav_pills.nav-pills .nav-link {
        padding: 8px 13px;
    }
}
@media only screen and (max-width:359px){
        .mob_locationBox {
            width: 30%;
        }
        .pagination {
            flex-wrap: wrap;
        }
}
