:root {
    --brand: #00468E;
    --brand-dark: #003366;
    --brand-light: #E8F0FE;
    --white: #ffffff;
    --text-muted: #6b7280;
    --shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.10);
}

/* ── Hero ── */
.bs-hero {
    background: linear-gradient(135deg, var(--brand-light) 0%, #dce6f5 100%);
    padding: 4rem 0 3.5rem;
}

.bs-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: var(--brand);
    color: var(--white);
    padding: 0.4rem 1.1rem;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
}

.bs-hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #1a1a2e;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.bs-hero-title span {
    color: var(--brand);
}

.bs-hero-desc {
    color: var(--text-muted);
    max-width: 560px;
    margin: 0 auto 2rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Hero Tabs */
.bs-hero-tabs {
    display: inline-flex;
    background: rgba(0, 70, 142, 0.06);
    border-radius: 50px;
    padding: 4px;
    gap: 0;
}

.bs-hero-tab {
    padding: 0.6rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.92rem;
    border: none;
    background: transparent;
    color: #374151;
    cursor: pointer;
    transition: all 0.25s;
    white-space: nowrap;
}

.bs-hero-tab:hover {
    color: var(--brand);
}

.bs-hero-tab.is-active {
    background: var(--brand);
    color: var(--white);
    box-shadow: 0 2px 8px rgba(0, 70, 142, 0.25);
}

.bs-btn-filled {
    background: var(--brand);
    color: var(--white);
    font-weight: 700;
    border: 2px solid var(--brand);
    padding: 0.55rem 1.75rem;
    border-radius: 50px;
}

.bs-btn-filled:hover {
    background: var(--brand-dark);
    border-color: var(--brand-dark);
    color: var(--white);
}

/* ── Search & Filters ── */
.bs-filters {
    padding: 2rem 0 0;
    background: var(--white);
}

.bs-search-row {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    margin-bottom: 1.25rem;
}

.bs-search-wrap {
    flex: 1;
    position: relative;
}

.bs-search-wrap i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.bs-search-wrap .form-control {
    padding-left: 2.5rem;
    border-radius: 10px;
    border-color: #e5e7eb;
    font-size: 0.88rem;
}

.bs-search-wrap .form-control:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(0, 70, 142, 0.1);
}

.bs-filter-select {
    width: auto;
    min-width: 140px;
    border-radius: 10px;
    border-color: #e5e7eb;
    font-size: 0.85rem;
}

.bs-filter-select:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(0, 70, 142, 0.1);
}

/* Category Pills */
.bs-cat-pills {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    padding-bottom: 1.5rem;
}

.bs-cat-pill {
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid #e5e7eb;
    background: var(--white);
    color: #374151;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    transition: all 0.2s;
}

.bs-cat-pill:hover {
    border-color: var(--brand);
    color: var(--brand);
}

.bs-cat-pill.is-active {
    background: var(--brand);
    color: var(--white);
    border-color: var(--brand);
}

/* Hostel category pills */
.bh-cat-pill {
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid #e5e7eb;
    background: var(--white);
    color: #374151;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    transition: all 0.2s;
}

.bh-cat-pill:hover {
    border-color: var(--brand);
    color: var(--brand);
}

.bh-cat-pill.is-active {
    background: var(--brand);
    color: var(--white);
    border-color: var(--brand);
}

/* ── Items Grid ── */
.bs-items {
    padding: 2rem 0 4rem;
    background: #fafbfc;
}

.bs-items-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}

.bs-items-count {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.bs-items-count strong {
    color: var(--brand);
}

.bs-post-btn {
    background: var(--brand);
    color: var(--white);
    font-weight: 600;
    font-size: 0.82rem;
    border: none;
    border-radius: 8px;
    padding: 0.45rem 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.bs-post-btn:hover {
    background: var(--brand-dark);
    color: var(--white);
}

/* ── Item Card ── */
.bs-card {
    background: var(--white);
    border: 1px solid rgba(0, 70, 142, 0.06);
    border-radius: 14px;
    overflow: hidden;
    height: 100%;
    box-shadow: var(--shadow);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}

.bs-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.bs-card-img {
    position: relative;
    height: 180px;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bs-card-placeholder {
    font-size: 2.5rem;
    color: #d1d5db;
}

.bs-card-badges {
    position: absolute;
    top: 0.6rem;
    left: 0.6rem;
    display: flex;
    gap: 0.35rem;
    z-index: 2;
}

.bs-badge-verified {
    padding: 0.15rem 0.55rem;
    border-radius: 50px;
    font-size: 0.68rem;
    font-weight: 600;
    background: var(--brand-light);
    color: var(--brand);
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
}

.bs-badge-cond {
    padding: 0.15rem 0.55rem;
    border-radius: 50px;
    font-size: 0.68rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.9);
    color: #374151;
}

.bs-card-fav {
    position: absolute;
    top: 0.6rem;
    right: 0.6rem;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.9);
    color: #374151;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    cursor: pointer;
    z-index: 2;
    transition: color 0.2s;
}

.bs-card-fav .bi-heart-fill {
    color: #ef4444;
}

.bs-card-price {
    position: absolute;
    bottom: 0.6rem;
    left: 0.6rem;
    padding: 0.25rem 0.7rem;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 700;
    background: var(--brand);
    color: var(--white);
    z-index: 2;
}

/* Card Body */
.bs-card-body {
    padding: 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.bs-card-title {
    font-weight: 700;
    font-size: 0.92rem;
    color: #1a1a2e;
    margin-bottom: 0.2rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bs-card-loc {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-bottom: 0.4rem;
}

.bs-card-loc i {
    color: var(--brand);
    margin-right: 0.15rem;
}

.bs-card-desc {
    font-size: 0.78rem;
    color: #6b7280;
    line-height: 1.5;
    margin-bottom: 0.6rem;
    flex: 1;
}

.bs-card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(0, 70, 142, 0.06);
}

.bs-card-meta i {
    margin-right: 0.15rem;
}

.bs-contact-btn {
    border: 1px solid rgba(0, 70, 142, 0.15);
    color: #374151;
    font-weight: 600;
    font-size: 0.8rem;
    border-radius: 8px;
    padding: 0.4rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    background: var(--white);
    transition: all 0.2s;
}

.bs-contact-btn:hover {
    background: var(--brand);
    color: var(--white);
    border-color: var(--brand);
}

/* ── Empty ── */
.bs-empty {
    text-align: center;
    padding: 4rem 1rem;
    color: var(--text-muted);
}

.bs-empty i {
    font-size: 3rem;
    color: var(--brand);
    opacity: 0.3;
    display: block;
    margin-bottom: 1rem;
}

.bs-empty h5 {
    font-weight: 700;
    color: #374151;
}

/* ── CTA ── */
.bs-cta {
    padding: 4.5rem 0;
    background: var(--white);
}

.bs-cta-title {
    font-size: 2rem;
    font-weight: 800;
    color: #1a1a2e;
    margin-bottom: 0.75rem;
}

.bs-cta-desc {
    color: var(--text-muted);
    max-width: 540px;
    margin: 0 auto 2rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

.bs-cta-btn {
    background: var(--brand);
    color: var(--white);
    font-weight: 700;
    border: none;
    border-radius: 50px;
    padding: 0.7rem 2.5rem;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.bs-cta-btn:hover {
    background: var(--brand-dark);
    color: var(--white);
}

/* ── Modals ── */
.bs-modal {
    border: none;
    border-radius: 16px;
    overflow: hidden;
}

.bs-modal-header {
    background: var(--white);
    border-bottom: 1px solid rgba(0, 70, 142, 0.08);
    padding: 1.25rem 1.5rem;
}

.bs-modal-title {
    font-weight: 800;
    font-size: 1.15rem;
    color: #1a1a2e;
}

.bs-modal-body {
    padding: 1.5rem;
    background: #fafbfc;
}

.bs-modal-footer {
    padding: 1rem 1.5rem;
    background: var(--white);
    border-top: 1px solid rgba(0, 70, 142, 0.08);
}

.bs-label {
    font-size: 0.82rem;
    font-weight: 700;
    color: #374151;
    margin-bottom: 0.35rem;
    display: block;
}

.bs-label span {
    color: #c0392b;
}

.bs-input {
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    font-size: 0.88rem;
    padding: 0.6rem 0.85rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.bs-input:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(0, 70, 142, 0.1);
}

.bs-input::placeholder {
    color: #b0b6c0;
}

.bs-submit-btn {
    background: var(--brand);
    color: var(--white);
    font-weight: 700;
    font-size: 1rem;
    border: none;
    border-radius: 10px;
    padding: 0.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}

.bs-submit-btn:hover {
    background: var(--brand-dark);
    color: var(--white);
}

.text-brand {
    color: var(--brand);
}

.bs-input-prefix {
    background: var(--brand-light);
    color: var(--brand);
    border: 1px solid #e5e7eb;
    border-right: none;
    border-radius: 10px 0 0 10px;
    font-weight: 700;
    font-size: 0.88rem;
}

.bs-input-no-left {
    border-radius: 0 10px 10px 0 !important;
}

.bs-tips-box {
    background: rgba(0, 70, 142, 0.04);
    border: 1px solid rgba(0, 70, 142, 0.08);
    border-radius: 10px;
    padding: 1rem 1.25rem;
}

.bs-tips-box strong {
    font-size: 0.85rem;
    color: #1a1a2e;
    display: block;
    margin-bottom: 0.4rem;
}

.bs-tips-box ul {
    margin: 0;
    padding-left: 0;
    list-style: none;
}

.bs-tips-box ul li {
    font-size: 0.82rem;
    color: var(--text-muted);
    padding: 0.15rem 0;
}

.bs-tips-box ul li::before {
    content: "•";
    color: var(--brand);
    font-weight: 700;
    margin-right: 0.4rem;
}

.bs-upload-zone {
    border: 2px dashed rgba(0, 70, 142, 0.2);
    border-radius: 12px;
    padding: 2rem 1rem;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    background: var(--white);
}

.bs-upload-zone:hover {
    border-color: var(--brand);
    background: var(--brand-light);
}

.bs-upload-zone i {
    font-size: 2rem;
    color: var(--brand);
    opacity: 0.4;
    display: block;
    margin-bottom: 0.4rem;
}

.bs-upload-zone p {
    font-size: 0.85rem;
    font-weight: 600;
    color: #374151;
}

/* ── Hostels for Sale ── */
.bh-section {
    padding: 2rem 0 4rem;
    background: #fafbfc;
}

.bh-card {
    background: var(--white);
    border: 1px solid rgba(0, 70, 142, 0.06);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    display: flex;
    transition: box-shadow 0.2s;
}

.bh-card:hover {
    box-shadow: var(--shadow-lg);
}

.bh-card-img {
    position: relative;
    width: 320px;
    min-height: 280px;
    flex-shrink: 0;
    overflow: hidden;
}

.bh-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bh-card-price {
    position: absolute;
    bottom: 0.75rem;
    left: 0.75rem;
    background: var(--brand);
    color: var(--white);
    font-weight: 800;
    font-size: 0.9rem;
    padding: 0.4rem 1rem;
    border-radius: 8px;
    z-index: 2;
}

.bh-card-verified {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    background: var(--brand-light);
    color: var(--brand);
    font-weight: 600;
    font-size: 0.72rem;
    padding: 0.2rem 0.6rem;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    z-index: 2;
}

.bh-card-body {
    flex: 1;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
}

.bh-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.bh-card-name {
    font-weight: 800;
    font-size: 1.15rem;
    color: #1a1a2e;
    margin-bottom: 0.2rem;
}

.bh-card-loc {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin: 0;
}

.bh-card-loc i {
    color: var(--brand);
}

.bh-card-posted {
    font-size: 0.75rem;
    color: var(--text-muted);
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.bh-stats-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.bh-stat {
    background: var(--brand-light);
    padding: 0.4rem 0.75rem;
    border-radius: 8px;
    font-size: 0.75rem;
    color: #374151;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.bh-stat i {
    color: var(--brand);
    font-size: 0.8rem;
}

.bh-stat strong {
    color: #1a1a2e;
}

.bh-card-reason {
    font-size: 0.88rem;
    color: #4b5563;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.bh-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 1rem;
    flex: 1;
}

.bh-feature-tag {
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 500;
    background: rgba(0, 70, 142, 0.04);
    color: var(--brand);
    border: 1px solid rgba(0, 70, 142, 0.08);
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
}

.bh-feature-tag i {
    font-size: 0.7rem;
}

.bh-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 70, 142, 0.06);
    flex-wrap: wrap;
    gap: 0.75rem;
}

.bh-card-owner {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.bh-card-owner > i {
    font-size: 1.75rem;
    color: var(--brand);
}

.bh-card-owner strong {
    font-size: 0.88rem;
    color: #1a1a2e;
    display: block;
}

.bh-card-owner small {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.bh-card-actions {
    display: flex;
    gap: 0.5rem;
}

.bh-btn-outline {
    border: 1px solid rgba(0, 70, 142, 0.2);
    color: var(--brand);
    font-weight: 600;
    font-size: 0.82rem;
    border-radius: 8px;
    padding: 0.4rem 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.bh-btn-outline:hover {
    background: var(--brand-light);
    color: var(--brand-dark);
    border-color: rgba(0, 70, 142, 0.3);
}

.bh-btn-filled {
    background: var(--brand);
    color: var(--white);
    font-weight: 600;
    font-size: 0.82rem;
    border: none;
    border-radius: 8px;
    padding: 0.4rem 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.bh-btn-filled:hover {
    background: var(--brand-dark);
    color: var(--white);
}

/* ── Responsive ── */
@media (max-width: 991.98px) {
    .bs-hero-title {
        font-size: 2rem;
    }

    .bh-card {
        flex-direction: column;
    }

    .bh-card-img {
        width: 100%;
        min-height: 220px;
        height: 220px;
    }
}

@media (max-width: 767.98px) {
    .bs-hero {
        padding: 3rem 0 2.5rem;
    }

    .bs-hero-title {
        font-size: 1.6rem;
    }

    .bs-search-row {
        flex-direction: column;
    }

    .bs-filter-select {
        width: 100%;
    }

    .bs-card-img {
        height: 140px;
    }

    .bs-items {
        padding: 1.5rem 0 3rem;
    }

    .bs-cta {
        padding: 3rem 0;
    }

    .bs-cta-title {
        font-size: 1.5rem;
    }

    .bh-section {
        padding: 3rem 0;
    }

    .bh-title {
        font-size: 1.5rem;
    }

    .bh-card-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .bh-card-actions {
        width: 100%;
    }

    .bh-card-actions .btn {
        flex: 1;
    }
}
