/* ============================================
   GLOBAL RESET & BASE
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
    color: #212529;
    padding-bottom: 80px; /* space for sticky buttons on mobile */
}

a {
    text-decoration: none;
    color: #0d6efd;
}
a:hover {
    color: #0a58ca;
}

/* ============================================
   NAVBAR (Bubbas Branding)
   ============================================ */
.navbar {
    background-color: #ffffff !important;
    border-bottom: 2px solid #e9ecef;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}
.navbar-brand {
    font-size: 1.8rem;
    font-weight: 800;
    color: #dc3545 !important; /* Red accent like Bubbas */
    letter-spacing: -0.5px;
}
.navbar-brand:hover {
    color: #b02a37 !important;
}
.navbar .btn-success {
    background-color: #28a745;
    border-color: #28a745;
    font-weight: 600;
    border-radius: 30px;
    padding: 6px 20px;
}
.navbar .btn-success:hover {
    background-color: #218838;
    border-color: #1e7e34;
}

/* ============================================
   BREADCRUMB
   ============================================ */
.breadcrumb {
    background-color: transparent;
    padding: 12px 0 0 0;
    margin-bottom: 16px;
    font-size: 0.9rem;
}
.breadcrumb-item a {
    color: #0d6efd;
}
.breadcrumb-item.active {
    color: #6c757d;
    font-weight: 600;
}

/* ============================================
   HEADINGS
   ============================================ */
h1 {
    font-size: 2.2rem;
    font-weight: 700;
    color: #212529;
    margin-bottom: 12px;
}
h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #212529;
    margin-top: 30px;
    margin-bottom: 16px;
    border-left: 5px solid #dc3545;
    padding-left: 15px;
}
h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-top: 25px;
    margin-bottom: 15px;
}
h5.card-title {
    font-weight: 700;
    font-size: 1.05rem;
    min-height: 48px;
}

/* ============================================
   TOP CITIES GRID (Homepage)
   ============================================ */
.row .col-6 .btn-outline-secondary {
    border-radius: 30px;
    padding: 10px 6px;
    font-size: 0.85rem;
    font-weight: 500;
    background-color: white;
    border: 1px solid #dee2e6;
    color: #212529;
    transition: all 0.2s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.row .col-6 .btn-outline-secondary:hover {
    background-color: #0d6efd;
    color: white;
    border-color: #0d6efd;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(13, 110, 253, 0.2);
}

/* ============================================
   CARDS (Ad Listings)
   ============================================ */
.card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    background: #ffffff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    height: 100%;
}
.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}
.card-img-top {
    height: 200px;
    object-fit: cover;
    background-color: #e9ecef;
}
.card-body {
    padding: 16px;
}
.card-body .card-title {
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: 6px;
    color: #212529;
}
.card-body .card-text {
    font-size: 0.95rem;
    color: #495057;
    margin-bottom: 4px;
}
.card-body .card-text i {
    color: #dc3545;
    width: 18px;
}
.card-body .btn-sm {
    border-radius: 30px;
    font-weight: 600;
    padding: 5px 14px;
    font-size: 0.8rem;
}
.card-body .btn-success {
    background-color: #25d366;
    border-color: #25d366;
    color: white;
}
.card-body .btn-success:hover {
    background-color: #1ebe57;
    border-color: #1ebe57;
}
.card-body .btn-info {
    background-color: #25d366;
    border-color: #25d366;
    color: white;
}
.card-body .btn-info:hover {
    background-color: #1ebe57;
    border-color: #1ebe57;
}
.card-body .btn-outline-primary {
    border-color: #0d6efd;
    color: #0d6efd;
}
.card-body .btn-outline-primary:hover {
    background-color: #0d6efd;
    color: white;
}

/* ============================================
   PHONE NUMBERS (Highlight)
   ============================================ */
.phone-number {
    display: inline-block;
    font-size: 1.3rem;
    font-weight: 700;
    color: #0d6efd;
    background: #e7f1ff;
    padding: 4px 18px;
    border-radius: 40px;
    margin: 4px 0;
    letter-spacing: 1px;
}
.phone-number a {
    color: #0d6efd;
}
.price-tag {
    display: inline-block;
    font-size: 1.4rem;
    font-weight: 800;
    color: #dc3545;
    background: #fff0f0;
    padding: 6px 20px;
    border-radius: 40px;
    margin: 8px 0;
    border: 1px solid #fccccc;
}

/* ============================================
   ARTICLE / CONTENT STYLING (1k word)
   ============================================ */
.content-article {
    background: #ffffff;
    padding: 30px 25px;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    margin-top: 30px;
}
.content-article p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #212529;
    margin-bottom: 18px;
    text-align: justify;
}
.content-article h2 {
    border-left: 5px solid #dc3545;
    padding-left: 15px;
}
.content-article ul, .content-article ol {
    padding-left: 25px;
    line-height: 1.8;
}
.content-article li {
    margin-bottom: 8px;
}

/* ============================================
   SIMILAR LISTINGS SIDEBAR
   ============================================ */
.card .card-header {
    background-color: #f8f9fa;
    font-weight: 700;
    border-bottom: 2px solid #e9ecef;
    font-size: 1.05rem;
}
.similar-item {
    padding: 8px 0;
    border-bottom: 1px solid #f1f3f5;
}
.similar-item:last-child {
    border-bottom: none;
}
.similar-item a {
    font-weight: 600;
    color: #212529;
}
.similar-item a:hover {
    color: #0d6efd;
}
.similar-item small {
    color: #6c757d;
}

/* ============================================
   FOOTER
   ============================================ */
footer {
    background-color: #212529;
    color: #adb5bd;
    padding: 40px 0 20px;
    margin-top: 50px;
    border-top: 4px solid #dc3545;
}
footer a {
    color: #adb5bd;
    text-decoration: none;
    margin: 0 12px;
    font-size: 0.9rem;
}
footer a:hover {
    color: #ffffff;
    text-decoration: underline;
}
footer .footer-links {
    margin-bottom: 16px;
}
footer .copyright {
    font-size: 0.85rem;
    color: #6c757d;
    border-top: 1px solid #343a40;
    padding-top: 20px;
}
footer .warning-text {
    background: #2c2c2c;
    padding: 16px 20px;
    border-radius: 10px;
    font-size: 0.85rem;
    color: #ffc107;
    border-left: 4px solid #ffc107;
    margin-top: 16px;
    line-height: 1.6;
}

/* ============================================
   STICKY BUTTONS (Mobile Bottom)
   ============================================ */
.sticky-buttons {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1050;
    background: #ffffff !important;
    border-top: 2px solid #dee2e6;
    padding: 10px 12px !important;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
    display: none; /* hidden by default, shown on mobile via media query */
}
.sticky-buttons .btn {
    border-radius: 40px !important;
    font-weight: 700;
    font-size: 1.1rem;
    padding: 12px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.sticky-buttons .btn-success {
    background-color: #25d366;
    border-color: #25d366;
}
.sticky-buttons .btn-success:hover {
    background-color: #1ebe57;
}
.sticky-buttons .btn-info {
    background-color: #0d6efd;
    border-color: #0d6efd;
}
.sticky-buttons .btn-info:hover {
    background-color: #0b5ed7;
}
.sticky-buttons .btn i {
    margin-right: 8px;
}

/* ============================================
   SEARCH FORM
   ============================================ */
.search-form .form-control {
    border-radius: 40px 0 0 40px;
    padding: 14px 20px;
    font-size: 1rem;
    border: 2px solid #dee2e6;
}
.search-form .form-control:focus {
    border-color: #0d6efd;
    box-shadow: none;
}
.search-form .btn {
    border-radius: 0 40px 40px 0;
    padding: 14px 30px;
    font-weight: 600;
    background-color: #0d6efd;
    border-color: #0d6efd;
}
.search-form .btn:hover {
    background-color: #0b5ed7;
}

/* ============================================
   RESPONSIVE (Mobile First)
   ============================================ */

/* Small devices (phones, up to 767px) */
@media (max-width: 767px) {
    body {
        padding-bottom: 90px;
    }
    .sticky-buttons {
        display: flex !important; /* show sticky on mobile */
    }
    h1 {
        font-size: 1.6rem;
    }
    h2 {
        font-size: 1.4rem;
    }
    .navbar-brand {
        font-size: 1.4rem;
    }
    .card-img-top {
        height: 160px;
    }
    .card-body .card-title {
        font-size: 0.95rem;
        min-height: auto;
    }
    .content-article {
        padding: 16px 14px;
    }
    .content-article p {
        font-size: 0.98rem;
        line-height: 1.7;
    }
    .phone-number {
        font-size: 1.1rem;
        padding: 4px 12px;
    }
    .price-tag {
        font-size: 1.1rem;
        padding: 4px 14px;
    }
    footer a {
        display: inline-block;
        margin: 4px 8px;
    }
    .breadcrumb {
        font-size: 0.8rem;
    }
    .navbar .btn-success {
        padding: 4px 14px;
        font-size: 0.85rem;
    }
    .search-form .form-control {
        padding: 12px 16px;
        font-size: 0.95rem;
    }
    .search-form .btn {
        padding: 12px 20px;
    }
}

/* Medium devices (tablets, 768px - 991px) */
@media (min-width: 768px) and (max-width: 991px) {
    .sticky-buttons {
        display: none !important;
    }
    h1 {
        font-size: 2rem;
    }
    .card-img-top {
        height: 180px;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
    .sticky-buttons {
        display: none !important;
    }
    .container {
        max-width: 1140px;
    }
    .card-img-top {
        height: 220px;
    }
}

/* Extra large (1200px+) */
@media (min-width: 1200px) {
    .container {
        max-width: 1200px;
    }
}

/* ============================================
   UTILITY HELPERS
   ============================================ */
.text-red {
    color: #dc3545;
}
.bg-soft-red {
    background-color: #fff5f5;
}
.bg-soft-blue {
    background-color: #f0f7ff;
}
.rounded-pill-custom {
    border-radius: 40px;
}
.shadow-hover:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.12) !important;
    transition: 0.3s;
}

/* ============================================
   AD DETAIL PAGE - IMAGE CAROUSEL
   ============================================ */
.carousel-item img {
    height: 400px;
    object-fit: cover;
    background-color: #dee2e6;
}
@media (max-width: 767px) {
    .carousel-item img {
        height: 250px;
    }
}
.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: rgba(0,0,0,0.5);
    border-radius: 50%;
    padding: 20px;
}

/* ============================================
   FORMS (Login/Register/Post Ad)
   ============================================ */
.form-container {
    max-width: 520px;
    margin: 40px auto;
    background: white;
    padding: 35px 30px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}
.form-container h2 {
    border-left: none;
    text-align: center;
    margin-bottom: 25px;
    font-weight: 700;
}
.form-control {
    border-radius: 10px;
    padding: 12px 16px;
    border: 1.5px solid #dee2e6;
}
.form-control:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
}
.form-container .btn-primary {
    border-radius: 40px;
    padding: 12px;
    font-weight: 700;
    width: 100%;
    background-color: #0d6efd;
    border-color: #0d6efd;
}
.form-container .btn-primary:hover {
    background-color: #0b5ed7;
}
.form-label {
    font-weight: 600;
    font-size: 0.95rem;
}

/* ============================================
   POST AD PAGE
   ============================================ */
.post-ad-container {
    max-width: 720px;
    margin: 30px auto;
    background: white;
    padding: 35px 30px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}
.post-ad-container .btn-primary {
    border-radius: 40px;
    padding: 12px 40px;
    font-weight: 700;
}

/* ============================================
   WARNING / DISCLAIMER (Footer)
   ============================================ */
.disclaimer-box {
    background: #212529;
    border-radius: 12px;
    padding: 20px 24px;
    color: #ffc107;
    font-size: 0.9rem;
    line-height: 1.7;
    border-left: 6px solid #ffc107;
    margin-top: 20px;
}