

/* =========================
   CARD & IMAGE STYLES
========================= */
.card-img-top {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.card-body {
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.item-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 2px solid #198754;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.item-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

.text-truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* =========================
   BADGES
========================= */
.premium-badge,
.top-badge,
.boost-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 10;
    font-size: 0.7rem;
    padding: 0.25em 0.4em;
    border-radius: 4px;
}

.premium-badge { background: #ffc107; color: #000; }
.top-badge { background: #0d6efd; color: #fff; }
.boost-badge { background: #198754; color: #fff; }

/* =========================
   GRID SPACING
========================= */
.row.custom-gutter {
    --bs-gutter-x: 0.5rem;
    --bs-gutter-y: 0.5rem;
}

/* =========================
   MOBILE BOTTOM NAV
========================= */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid #ddd;
    z-index: 1050;
}

.mobile-bottom-nav a {
    flex: 1;
    text-align: center;
    padding: 8px 0;
    font-size: 12px;
    color: #555;
    text-decoration: none;
}

.mobile-bottom-nav a.active,
.mobile-bottom-nav a:hover {
    color: #0d6efd;
}

.mobile-bottom-nav i {
    font-size: 20px;
    display: block;
}

.mobile-bottom-nav .post-ad-btn {
    color: #ffc107;
    font-weight: bold;
}

/* =========================
   RESPONSIVE RULES
========================= */
@media (min-width: 992px) {
    .mobile-bottom-nav {
        display: none;
    }
}

@media (max-width: 991px) {

    body {
        padding-bottom: 60px;
    }

    .small-card {
        border-radius: 8px;
        padding: 0.5rem !important;
        height: 100%;
    }

    .small-card i {
        display: block;
    }

    .small-card h6 {
        font-size: 0.85rem;
        font-weight: 600;
    }

    .small-card p {
        font-size: 0.7rem;
        margin-bottom: 0.25rem;
    }

    .small-card a.btn {
        font-size: 0.65rem;
    }
}

/* =========================
   SCROLLBAR
========================= */
.d-flex {
    padding-left: 10px;
    padding-right: 10px;
}

.d-flex::-webkit-scrollbar {
    height: 6px;
}

.d-flex::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.2);
    border-radius: 3px;
}

/* =========================
   NAVBAR
========================= */
.navbar-logo {
    height: 40px;
    width: auto;
}

/* =========================
   POPUP (NEW YEAR)
========================= */
.ny-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.65);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.ny-popup {
    background: #fff;
    padding: 30px;
    max-width: 420px;
    width: 90%;
    text-align: center;
    border-radius: 12px;
    position: relative;
    animation: popIn 0.4s ease;
}

.ny-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
}

.ny-popup h2 {
    color: #198754;
    margin-bottom: 15px;
}

.ny-popup p {
    font-size: 16px;
    margin-bottom: 20px;
}

.ny-btn {
    display: inline-block;
    background: #198754;
    color: #fff;
    padding: 12px 22px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
}

.ny-btn:hover {
    background: #146c43;
}

/* =========================
   ANIMATIONS
========================= */
@keyframes popIn {
    from {
        transform: scale(0.7);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes scrollText {
    0% { transform: translateX(0%); }
    100% { transform: translateX(-100%); }
}

/* =========================
   BANNERS
========================= */
.ramadan-banner {
    width: 100%;
    background: #0b3d2e;
    color: #fff;
    overflow: hidden;
    padding: 10px 0;
    font-size: 15px;
}

.marquee {
    display: flex;
    white-space: nowrap;
}

.marquee span {
    display: inline-block;
    padding-left: 100%;
    animation: scrollText 15s linear infinite;
}

/* =========================
   UI BOXES
========================= */
.section-box {
    background: #fff;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.trending-card{
    border:2px solid #28a745;
    border-radius:10px;
    background:#fff;
    padding:8px;
    transition:all .2s ease;
    position:relative;
}

.trending-card:hover{
    transform:translateY(-3px);
    box-shadow:0 6px 14px rgba(0,0,0,0.08);
}

.trending-card img{
    width:100%;
    height:160px;
    object-fit:cover;
    border-radius:8px;
}

.trending-title{
    font-size:14px;
    font-weight:600;
    margin-top:8px;
    margin-bottom:4px;
    min-height:34px;
}

.trending-price{
    color:#28a745;
    font-weight:bold;
    font-size:15px;
}

.trending-location{
    font-size:12px;
    color:#777;
}

.hot-badge{
    position:absolute;
    top:8px;
    left:8px;
    font-size:11px;
    padding:4px 6px;
    border-radius:6px;
}

.super-hot{
    background:#ff9800;
    color:#fff;
}

.hot{
    background:#dc3545;
    color:#fff;
}


.verified-badge {
    position: absolute;
    top: 10px;
    left: 10px;

    background: linear-gradient(135deg, #00c853, #0d6efd);
    color: #fff;

    font-size: 11px;
    padding: 5px 12px;
    border-radius: 50px;

    font-weight: 700;
    letter-spacing: 0.3px;

    display: flex;
    align-items: center;
    gap: 5px;

    z-index: 20;

    box-shadow: 0 6px 15px rgba(0,0,0,0.25);
}

.app-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #0d6efd;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 10px;
    z-index: 9999;
    font-size: 14px;
}

.app-bar a {
    background: #fff;
    color: #0d6efd;
    padding: 5px 10px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
}

.app-bar button {
    position: absolute;
    right: 10px;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
}

select option {
  color: #000;
}

.negotiable-badge {
    display: block;
    font-size: 12px;
    border-radius: 6px;
    font-weight: 600;
    text-align: center;
    margin-top: 6px;
}

.price-type-label {
    font-size: 12px;
    color: #666;
    background: transparent;
    border: none;
    padding: 0;
    margin-top: 6px;
    font-weight: 500;
}


/* ===== INSTALL APP BAR ===== */
.app-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #0d6efd;
    color: #fff;

    display: none; /* JS will control visibility */
    align-items: center;
    justify-content: space-between;

    padding: 10px 12px;
    z-index: 9999;
    font-size: 14px;

    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Text */
#appText {
    font-size: 14px;
    font-weight: 500;
}

/* Install button */
.app-bar a {
    background: #fff;
    color: #0d6efd;
    padding: 6px 12px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 13px;
    font-weight: bold;
    white-space: nowrap;
}

/* Close button */
.app-bar button {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
}

/* Hide on desktop */
@media (min-width: 768px) {
    .app-bar {
        display: none !important;
    }
}