/* =============================================================
   Mzuzi — Reusable Page Header & Breadcrumb
   Drop into: public/site_assets/css/page-header.css
   Load in site_app.blade.php: <link rel="stylesheet" href="{{ URL::asset('site_assets/css/page-header.css') }}">
   ============================================================= */

/* ── Layout container ───────────────────────────────────────── */
.mz-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ── 1. Slim breadcrumb bar ─────────────────────────────────── */
.mz-breadcrumb-bar {
    background: #ffffff;
    border-bottom: 1px solid #f0f0f0;
    padding: 0;
}

.mz-crumb-list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 2px;
    list-style: none;
    margin: 0;
    padding: 10px 0;
    font-size: 13px;
}

.mz-crumb-item {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #888;
}

.mz-crumb-link {
    color: #666;
    text-decoration: none;
    transition: color 0.15s;
}

.mz-crumb-link:hover {
    color: #ff5730;
    text-decoration: underline;
}

.mz-crumb-sep {
    color: #ccc;
    font-size: 12px;
    margin: 0 2px;
}

.mz-crumb-current {
    color: #333;
    font-weight: 500;
    /* truncate long business names on mobile */
    max-width: 200px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ── 2. Cover strip ─────────────────────────────────────────── */
.mz-page-header {
    background: #ffffff;
    border-bottom: 1px solid #f0f0f0;
}

.mz-cover-strip {
    width: 100%;
    height: 200px;
    background-color: #1a1a2e;           /* fallback when no cover photo */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* ── 3. Header body row ─────────────────────────────────────── */
.mz-header-body {
    display: flex;
    align-items: flex-end;
    gap: 16px;
    padding-bottom: 18px;
    flex-wrap: wrap;
}

.mz-has-cover {
    /* logo overlaps the cover strip by half */
    padding-top: 0;
}

.mz-no-cover {
    padding-top: 20px;
}

/* ── 4. Logo / initials ─────────────────────────────────────── */
.mz-logo-wrap {
    width: 76px;
    height: 76px;
    border-radius: 12px;
    border: 3px solid #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
    flex-shrink: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ff5730;
}

.mz-has-cover .mz-logo-wrap {
    margin-top: -38px;   /* pulls logo up over the cover strip */
}

.mz-no-cover .mz-logo-wrap {
    margin-top: 0;
}

.mz-logo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 9px;
}

.mz-logo-initials {
    font-size: 28px;
    font-weight: 600;
    color: #ffffff;
    line-height: 1;
    text-transform: uppercase;
}

/* ── 5. Name / meta ─────────────────────────────────────────── */
.mz-biz-info {
    flex: 1;
    min-width: 0;          /* allows text-overflow to work in flex child */
    padding-top: 10px;
}

.mz-name-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 5px;
}

.mz-biz-name {
    font-size: 22px;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.2;
    margin: 0;
}

.mz-biz-subtitle {
    font-size: 13px;
    color: #999;
    margin: 0 0 4px 0;
}

.mz-biz-address {
    font-size: 13px;
    color: #666;
    margin: 3px 0 6px 0;
    display: flex;
    align-items: center;
    gap: 5px;
}

.mz-biz-address .fa {
    color: #ff5730;
    font-size: 12px;
    flex-shrink: 0;
}

/* ── 6. MLIC chip ───────────────────────────────────────────── */
.mz-mlic-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #f5f5f5;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    padding: 3px 10px;
    font-size: 12px;
    color: #666;
    font-family: 'Courier New', Courier, monospace;
}

.mz-mlic-chip .fa {
    color: #ff5730;
    font-size: 12px;
}

.mz-mlic-chip strong {
    color: #333;
    font-weight: 600;
    letter-spacing: 0.03em;
}

/* ── 7. Badges ──────────────────────────────────────────────── */
.mz-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 9px;
    border-radius: 20px;
    white-space: nowrap;
}

.mz-badge-verified {
    background: #e6f4ff;
    color: #1a7cc4;
    border: 1px solid #b8dbf7;
}

.mz-badge-verified .fa {
    font-size: 11px;
}

.mz-badge-cat {
    background: #f5f5f5;
    color: #666;
    border: 1px solid #e8e8e8;
}

/* ── 8. Right column: rating + actions ──────────────────────── */
.mz-header-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    padding-top: 10px;
    flex-shrink: 0;
}

/* Stars rating */
.mz-rating-row {
    display: flex;
    align-items: center;
    gap: 5px;
}

.mz-stars {
    display: flex;
    gap: 1px;
}

.mz-star-on  { color: #f5b301; font-size: 14px; }
.mz-star-off { color: #ddd;    font-size: 14px; }

.mz-rating-num {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.mz-rating-ct {
    font-size: 13px;
    color: #888;
}

/* Action buttons */
.mz-action-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.mz-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
    padding: 7px 16px;
    border-radius: 8px;
    cursor: pointer;
    border: none;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.15s, color 0.15s;
    line-height: 1;
}

.mz-btn-primary {
    background: #ff5730;
    color: #ffffff;
}

.mz-btn-primary:hover {
    background: #e04820;
    color: #ffffff;
}

.mz-btn-outline {
    background: #ffffff;
    color: #555;
    border: 1px solid #ddd;
}

.mz-btn-outline:hover {
    background: #f9f9f9;
    color: #333;
    border-color: #ccc;
}

/* ── 9. Responsive ──────────────────────────────────────────── */
@media (max-width: 768px) {
    .mz-cover-strip {
        height: 140px;
    }

    .mz-header-body {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .mz-has-cover .mz-logo-wrap {
        margin-top: -30px;
    }

    .mz-logo-wrap {
        width: 60px;
        height: 60px;
    }

    .mz-logo-initials {
        font-size: 22px;
    }

    .mz-biz-name {
        font-size: 18px;
    }

    .mz-header-right {
        align-items: flex-start;
        width: 100%;
    }

    .mz-action-row {
        justify-content: flex-start;
    }

    .mz-crumb-current {
        max-width: 140px;
    }
}
