/* =========================================================
   MZANSI SERVICES - MAIN STYLE
   Modern South African Business Marketplace
   ========================================================= */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #f4f7f5;
    color: #172019;
    line-height: 1.6;
}

button,
input,
select,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

/* =========================================================
   CONTAINER
   ========================================================= */

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
}

/* =========================================================
   HEADER
   ========================================================= */

.site-header {
    position: sticky;
    top: 0;
    width: 100%;
    background: #050505;
    color: #fff;
    z-index: 5000;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.25);
}

.header-inner {
    position: relative;
    width: 100%;
    max-width: 1200px;
    min-height: 70px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-size: 1.35rem;
    font-weight: 800;
    white-space: nowrap;
}

.menu-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 9px 15px;
    background: #111;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 11px;
    font-size: 0.95rem;
    font-weight: 800;
    transition: 0.2s ease;
}

.menu-button:hover {
    background: #202020;
    transform: translateY(-1px);
}

/* =========================================================
   MAIN MENU
   ========================================================= */

.main-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 20px;
    width: 270px;
    max-width: calc(100vw - 30px);
    background: #fff;
    color: #172019;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.30);
    border: 1px solid #e2e8e3;
    z-index: 6000;
}

.main-menu.open {
    display: block;
}

.main-menu a {
    display: block;
    width: 100%;
    padding: 13px 17px;
    background: #fff;
    color: #172019;
    font-size: 0.95rem;
    font-weight: 700;
    border-bottom: 1px solid #edf1ee;
    transition: 0.2s ease;
}

.main-menu a:last-child {
    border-bottom: none;
}

.main-menu a:hover,
.main-menu a.active {
    background: #edf8f1;
    color: #078542;
}

/* =========================================================
   HERO
   ========================================================= */

.hero {
    position: relative;
    min-height: 520px;
    background-image:
        linear-gradient(
            rgba(0, 0, 0, 0.30),
            rgba(0, 0, 0, 0.55)
        ),
        url("mountains.jpg");
    background-size: cover;
    background-position: center;
    color: #fff;
    overflow: hidden;
}

.homepage-hero {
    min-height: 520px;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            180deg,
            rgba(0, 0, 0, 0.03),
            rgba(0, 0, 0, 0.18)
        );
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 85px 20px 80px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    padding: 9px 17px;
    background: rgba(0, 155, 75, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 999px;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 800;
    margin-bottom: 22px;
}

.hero h1 {
    max-width: 850px;
    margin-bottom: 20px;
    color: #fff;
    font-size: clamp(2.5rem, 7vw, 5rem);
    line-height: 1.02;
    letter-spacing: -2.5px;
    font-weight: 900;
}

.hero h1 span {
    color: #64df8e;
}

.hero-content > p {
    max-width: 700px;
    margin-bottom: 25px;
    color: rgba(255, 255, 255, 0.94);
    font-size: clamp(1rem, 2vw, 1.25rem);
}

.hero-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 18px;
}

.hero-highlights span {
    display: inline-flex;
    align-items: center;
    padding: 8px 13px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.20);
    border-radius: 999px;
    backdrop-filter: blur(7px);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
}

/* =========================================================
   SEARCH
   ========================================================= */

.search-panel {
    position: relative;
    z-index: 20;
    width: calc(100% - 40px);
    max-width: 1100px;
    margin: -55px auto 0;
    background: #fff;
    border-radius: 22px;
    padding: 25px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.16);
    border: 1px solid #e2e9e4;
}

.homepage-search-panel {
    margin-top: -55px;
}

.search-heading {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-bottom: 20px;
}

.search-heading-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: #e9f7ee;
    border-radius: 14px;
    font-size: 1.45rem;
}

.search-heading h2 {
    color: #172019;
    font-size: 1.35rem;
    line-height: 1.2;
    margin-bottom: 3px;
}

.search-heading p {
    color: #68746c;
    font-size: 0.88rem;
}

.search-form {
    display: grid;
    grid-template-columns: 1.5fr 1fr 0.9fr auto;
    gap: 13px;
    align-items: end;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    color: #4e5a51;
    font-size: 0.78rem;
    font-weight: 800;
}

.form-group input,
.form-group select {
    width: 100%;
    height: 50px;
    padding: 0 14px;
    background: #fff;
    border: 1px solid #d8e2da;
    border-radius: 11px;
    color: #172019;
    outline: none;
    transition: 0.2s ease;
}

.form-group input::placeholder {
    color: #9aa49e;
}

.form-group input:focus,
.form-group select:focus {
    border-color: #08a64f;
    box-shadow: 0 0 0 3px rgba(8, 166, 79, 0.12);
}

.search-button {
    height: 50px;
    padding: 0 22px;
    background: #08a64f;
    color: #fff;
    border: 0;
    border-radius: 11px;
    font-weight: 800;
    white-space: nowrap;
    transition: 0.2s ease;
}

.search-button:hover {
    background: #078c43;
    transform: translateY(-1px);
}

.search-tip {
    margin-top: 15px;
    padding: 11px 13px;
    background: #f3f8f4;
    border-radius: 10px;
    color: #607066;
    font-size: 0.82rem;
}

.search-tip strong {
    color: #087d3e;
}

/* =========================================================
   SECTIONS
   ========================================================= */

.section {
    width: 100%;
    padding: 65px 0;
}

.section-title {
    margin-bottom: 30px;
}

.section-eyebrow {
    margin-bottom: 7px;
    color: #078842;
    font-size: 0.75rem;
    font-weight: 900;
    letter-spacing: 1.5px;
}

.section-title h2 {
    color: #142018;
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    line-height: 1.15;
    margin-bottom: 8px;
}

.section-title p {
    max-width: 700px;
    color: #66736a;
    font-size: 0.95rem;
}

/* =========================================================
   CATEGORIES
   ========================================================= */

.categories {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 17px;
}

.category-button {
    appearance: none;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    color: #172019;
    text-align: center;
    cursor: pointer;
}

.photo-category {
    transition: transform 0.2s ease;
}

.photo-category:hover {
    transform: translateY(-5px);
}

.category-photo {
    position: relative;
    display: block;
    width: 100%;
    height: 145px;
    background-color: #dfe8e1;
    background-size: cover;
    background-position: center;
    border-radius: 17px;
    overflow: hidden;
    box-shadow: 0 7px 20px rgba(0, 0, 0, 0.10);
}

.category-photo::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        transparent 35%,
        rgba(0, 0, 0, 0.28)
    );
}

.category-photo-all {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(
        135deg,
        #087d3e,
        #0dbb5b
    );
    font-size: 3rem;
    color: #fff;
}

.category-photo-all::after {
    display: none;
}

.category-label {
    display: block;
    margin-top: 9px;
    color: #26332b;
    font-size: 0.9rem;
    font-weight: 800;
}

.categories-more {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

/* =========================================================
   BUTTONS
   ========================================================= */

.primary-button,
.secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 11px 18px;
    border-radius: 11px;
    font-weight: 800;
    transition: 0.2s ease;
}

.primary-button {
    background: #08a64f;
    color: #fff;
    border: 0;
}

.primary-button:hover {
    background: #078c43;
    transform: translateY(-1px);
}

.secondary-button {
    background: #fff;
    color: #087d3e;
    border: 1px solid #bcd8c4;
}

.secondary-button:hover {
    background: #edf8f1;
}

/* =========================================================
   AI HOME SECTION
   ========================================================= */

.ai-home-section {
    padding-top: 10px;
}

.ai-home-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 30px;
    overflow: hidden;
    padding: 35px;
    background: linear-gradient(
        135deg,
        #06140c,
        #074323 55%,
        #088044
    );
    color: #fff;
    border-radius: 26px;
    box-shadow: 0 18px 45px rgba(0, 70, 35, 0.22);
}

.ai-home-card::before {
    content: "";
    position: absolute;
    width: 300px;
    height: 300px;
    right: -100px;
    top: -130px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.07);
}

.ai-home-image {
    position: relative;
    z-index: 2;
    width: 105px;
    height: 105px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.16);
    font-size: 3.5rem;
}

.ai-home-content {
    position: relative;
    z-index: 2;
    max-width: 750px;
}

.ai-home-content h2 {
    margin-bottom: 10px;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    line-height: 1.1;
}

.ai-home-content p {
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.88);
}

/* =========================================================
   BUSINESS RESULTS
   ========================================================= */

.business-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.empty-state {
    grid-column: 1 / -1;
    background: #fff;
    border: 1px dashed #ccd8cf;
    border-radius: 18px;
    padding: 45px 25px;
    text-align: center;
}

.empty-state-icon {
    font-size: 2.5rem;
    margin-bottom: 8px;
}

.empty-state h3 {
    color: #172019;
    margin-bottom: 5px;
}

.empty-state p {
    color: #69756d;
    max-width: 550px;
    margin: 0 auto;
}

.message-box {
    margin-bottom: 20px;
    padding: 14px;
    border-radius: 12px;
    background: #edf8f1;
    color: #087d3e;
}

/* =========================================================
   BUSINESS CARDS
   ========================================================= */

.business-card {
    background: #fff;
    border: 1px solid #e2e9e3;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
    transition: 0.25s ease;
}

.business-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.11);
}

.business-card-image {
    width: 100%;
    height: 190px;
    object-fit: cover;
    background: #e8eee9;
}

.business-card-content {
    padding: 18px;
}

.business-card h3 {
    color: #152019;
    font-size: 1.15rem;
    margin-bottom: 5px;
}

.business-category {
    color: #078842;
    font-size: 0.84rem;
    font-weight: 800;
    margin-bottom: 7px;
}

.business-location {
    color: #68746c;
    font-size: 0.88rem;
    margin-bottom: 12px;
}

.business-description {
    color: #536058;
    font-size: 0.9rem;
    margin-bottom: 14px;
}

.business-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.business-actions button,
.business-actions a {
    border: 0;
    border-radius: 9px;
    padding: 8px 11px;
    background: #edf5ef;
    color: #087d3e;
    font-size: 0.8rem;
    font-weight: 800;
}

/* =========================================================
   BUSINESS OWNER
   ========================================================= */

.business-owner-home-card {
    display: flex;
    align-items: center;
    gap: 35px;
    padding: 35px;
    background: #fff;
    border: 1px solid #e2e9e3;
    border-radius: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

.business-owner-home-content {
    flex: 1;
}

.business-owner-home-content h2 {
    margin-bottom: 10px;
    color: #142018;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    line-height: 1.12;
}

.business-owner-home-content p {
    max-width: 650px;
    color: #66736a;
    margin-bottom: 18px;
}

.owner-benefits {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 22px;
}

.owner-benefits span {
    padding: 7px 10px;
    background: #edf8f1;
    color: #087d3e;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
}

.form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.business-owner-home-image {
    width: 240px;
    flex-shrink: 0;
}

.business-owner-image-placeholder {
    width: 100%;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(
        135deg,
        #087d3e,
        #0dbb5b
    );
    border-radius: 25px;
    font-size: 5rem;
}

/* =========================================================
   MZANSI MESSAGE
   ========================================================= */

.mzansi-message-section {
    padding: 20px 0 65px;
}

.mzansi-message {
    width: calc(100% - 40px);
    max-width: 1160px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 30px;
    background: linear-gradient(
        135deg,
        #e8f6ed,
        #f5faf6
    );
    border: 1px solid #c9e8d2;
    border-radius: 22px;
}

.mzansi-message-flag {
    width: 70px;
    height: 70px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 20px;
    font-size: 2.5rem;
}

.mzansi-message h2 {
    color: #142018;
    margin-bottom: 5px;
}

.mzansi-message p {
    color: #557060;
}

/* =========================================================
   FOOTER
   ========================================================= */

.site-footer {
    background: #050505;
    color: #fff;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 35px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 25px;
}

.footer-inner strong {
    font-size: 1rem;
}

.footer-inner p {
    margin-top: 4px;
    color: rgba(255, 255, 255, 0.60);
    font-size: 0.82rem;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px 18px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.82rem;
}

.footer-links a:hover {
    color: #64df8e;
}

/* =========================================================
   FLOATING AI BUTTON
   ========================================================= */

.ai-button {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 66px;
    height: 66px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    background: linear-gradient(
        145deg,
        #0dbb5b,
        #047f3b
    );
    color: #fff;
    font-size: 2rem;
    box-shadow:
        0 10px 28px rgba(0, 0, 0, 0.25),
        0 0 0 5px rgba(8, 166, 79, 0.15);
    z-index: 4500;
    transition: 0.25s ease;
}

.ai-button:hover {
    transform: scale(1.07) translateY(-2px);
}

/* =========================================================
   AI OVERLAY
   ========================================================= */

.mz-ai-overlay {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;

    display: none;

    align-items: flex-end;
    justify-content: flex-end;

    padding: 20px;

    background: rgba(0, 0, 0, 0.55);

    backdrop-filter: blur(4px);

    z-index: 7000;
}

.mz-ai-overlay.open {
    display: flex;
}

/* =========================================================
   AI PANEL
   ========================================================= */

.mz-ai-panel {
    position: relative;

    width: min(480px, 100%);
    max-width: 480px;

    height: min(
        760px,
        calc(100vh - 40px)
    );

    max-height: min(
        760px,
        calc(100vh - 40px)
    );

    margin: 0;
    padding: 0;

    background: #fff;

    border-radius: 24px;

    overflow: hidden;

    box-shadow:
        0 25px 70px
        rgba(0, 0, 0, 0.30);

    display: flex;
    flex-direction: column;

    animation:
        aiPanelIn
        0.25s ease;
}

/* =========================================================
   AI HEADER
   ========================================================= */

.mz-ai-panel .mz-ai-header {
    position: relative;

    width: 100% !important;
    min-width: 100% !important;
    max-width: none !important;

    flex: 0 0 auto;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 15px;

    padding: 18px;

    margin: 0;

    background:
        linear-gradient(
            135deg,
            #07150d,
            #087d3e
        );

    color: #fff;

    border: 0;

    border-radius: 0;
}

.mz-ai-header-left {
    min-width: 0;
    flex: 1;

    display: flex;
    align-items: center;

    gap: 12px;
}

.mz-ai-logo {
    width: 50px;
    height: 50px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 15px;

    background:
        rgba(255, 255, 255, 0.13);

    border:
        1px solid
        rgba(255, 255, 255, 0.16);
}

.mz-ai-logo svg {
    width: 34px;
    height: 34px;
}

.mz-ai-title {
    color: #fff;

    font-size: 1.25rem;

    font-weight: 900;

    line-height: 1.15;
}

.mz-ai-subtitle {
    margin-top: 3px;

    color:
        rgba(
            255,
            255,
            255,
            0.82
        );

    font-size: 0.78rem;

    line-height: 1.35;
}

.mz-ai-close {
    width: 42px;
    height: 42px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;

    border: 0;

    border-radius: 50%;

    background:
        rgba(
            255,
            255,
            255,
            0.12
        );

    color: #fff;

    font-size: 1.35rem;

    line-height: 1;
}

.mz-ai-close:hover {
    background:
        rgba(
            255,
            255,
            255,
            0.22
        );
}

/* =========================================================
   AI BODY
   ========================================================= */

.mz-ai-panel .mz-ai-body {
    position: relative;

    width: 100% !important;

    min-width: 0;

    max-width: none !important;

    flex: 1 1 auto;

    min-height: 0;

    box-sizing: border-box;

    padding: 20px;

    margin: 0;

    overflow-y: auto;
    overflow-x: hidden;

    /*
       REAL SOUTH AFRICAN FLAG
       Used as a subtle background.
    */

    background-color: #ffffff;

    background-image:
        linear-gradient(
            rgba(255, 255, 255, 0.73),
            rgba(255, 255, 255, 0.73)
        ),
        url("https://upload.wikimedia.org/wikipedia/commons/a/af/Flag_of_South_Africa.svg");

    background-size: cover;

    background-position: center;

    background-repeat: no-repeat;
}

/* =========================================================
   REMOVE OLD CSS FLAG DRAWING
   ========================================================= */

.mz-ai-panel .mz-ai-body::before,
.mz-ai-panel .mz-ai-body::after {
    content: none !important;
    display: none !important;
}

/* =========================================================
   AI CONTENT
   ========================================================= */

.mz-ai-panel .mz-ai-body > * {
    position: relative;
    z-index: 2;
}

/* =========================================================
   AI WELCOME
   ========================================================= */

.mz-ai-welcome {
    width: 100%;

    padding: 18px;

    margin-bottom: 14px;

    background:
        rgba(
            255,
            255,
            255,
            0.95
        );

    border:
        1px solid
        rgba(
            218,
            229,
            221,
            0.95
        );

    border-radius: 18px;

    box-shadow:
        0 8px 25px
        rgba(
            0,
            0,
            0,
            0.05
        );
}

.mz-ai-welcome strong {
    display: block;

    margin-bottom: 6px;

    color: #172019;

    font-size: 1.05rem;
}

.mz-ai-welcome p {
    color: #66736a;

    font-size: 0.88rem;
}

/* =========================================================
   AI CHAT
   ========================================================= */

.mz-ai-message {
    display: flex;

    width: 100%;

    margin-bottom: 13px;
}

.mz-ai-message.user {
    justify-content: flex-end;
}

.mz-ai-message.assistant {
    justify-content: flex-start;
}

.mz-ai-bubble {
    max-width: 88%;

    padding: 11px 13px;

    border-radius: 16px;

    font-size: 0.88rem;

    line-height: 1.5;
}

.mz-ai-message.user .mz-ai-bubble {
    background: #08a64f;

    color: #fff;

    border-bottom-right-radius: 5px;
}

.mz-ai-message.assistant .mz-ai-bubble {
    background:
        rgba(
            255,
            255,
            255,
            0.95
        );

    color: #26332b;

    border:
        1px solid
        #e0e8e2;

    border-bottom-left-radius: 5px;
}

/* =========================================================
   AI RESULTS
   ========================================================= */

.mz-ai-results {
    width: 100%;

    display: flex;

    flex-direction: column;

    gap: 12px;

    margin-top: 12px;
}

.mz-ai-result-card {
    width: 100%;

    overflow: hidden;

    background:
        rgba(
            255,
            255,
            255,
            0.97
        );

    border:
        1px solid
        #dfe9e1;

    border-radius: 16px;

    box-shadow:
        0 5px 16px
        rgba(
            0,
            0,
            0,
            0.06
        );
}

.mz-ai-result-image {
    width: 100%;

    height: 145px;

    object-fit: cover;

    background: #e8eee9;
}

.mz-ai-result-content {
    padding: 13px;
}

.mz-ai-result-name {
    margin-bottom: 3px;

    color: #172019;

    font-weight: 900;
}

.mz-ai-result-category {
    margin-bottom: 4px;

    color: #078842;

    font-size: 0.78rem;

    font-weight: 800;
}

.mz-ai-result-location {
    margin-bottom: 8px;

    color: #66736a;

    font-size: 0.78rem;
}

.mz-ai-result-description {
    margin-bottom: 10px;

    color: #59655d;

    font-size: 0.82rem;
}

.mz-ai-result-actions {
    display: flex;

    flex-wrap: wrap;

    gap: 6px;
}

.mz-ai-result-actions a,
.mz-ai-result-actions button {
    padding: 7px 9px;

    border: 0;

    border-radius: 8px;

    background: #edf5ef;

    color: #087d3e;

    font-size: 0.74rem;

    font-weight: 800;
}

/* =========================================================
   AI WEB RESULTS
   ========================================================= */

.mz-ai-web-results {
    width: 100%;

    margin-top: 14px;
}

.mz-ai-web-title {
    margin-bottom: 8px;

    color: #4b5a50;

    font-size: 0.82rem;

    font-weight: 900;
}

.mz-ai-web-card {
    margin-bottom: 7px;

    padding: 11px 12px;

    background:
        rgba(
            255,
            255,
            255,
            0.96
        );

    border:
        1px solid
        #e1e7e2;

    border-radius: 12px;
}

.mz-ai-web-card a {
    color: #087d3e;

    font-size: 0.83rem;

    font-weight: 800;
}

.mz-ai-web-card p {
    margin-top: 3px;

    color: #68736c;

    font-size: 0.76rem;
}

/* =========================================================
   AI LOADING
   ========================================================= */

.mz-ai-loading {
    display: flex;

    align-items: center;

    gap: 5px;

    padding: 10px 3px;
}

.mz-ai-loading span {
    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: #08a64f;

    animation:
        aiDots
        1.2s
        infinite
        ease-in-out;
}

.mz-ai-loading span:nth-child(2) {
    animation-delay: 0.15s;
}

.mz-ai-loading span:nth-child(3) {
    animation-delay: 0.30s;
}

@keyframes aiDots {

    0%,
    60%,
    100% {
        transform: translateY(0);
        opacity: 0.45;
    }

    30% {
        transform: translateY(-5px);
        opacity: 1;
    }
}

/* =========================================================
   AI INPUT
   ========================================================= */

.mz-ai-panel .mz-ai-input-area {
    width: 100% !important;

    flex: 0 0 auto;

    box-sizing: border-box;

    padding: 12px;

    margin: 0;

    background: #fff;

    border-top:
        1px solid
        #e2e9e3;
}

.mz-ai-input-wrap {
    width: 100%;

    display: flex;

    align-items: flex-end;

    gap: 8px;

    padding: 7px;

    background: #f3f7f4;

    border:
        1px solid
        #dce6df;

    border-radius: 15px;
}

.mz-ai-input {
    flex: 1;

    min-width: 0;

    min-height: 42px;

    max-height: 100px;

    padding: 8px 7px;

    background: transparent;

    border: 0;

    outline: none;

    resize: none;

    color: #172019;

    font-size: 1rem;
}

.mz-ai-input::placeholder {
    color: #7b8580;
}

.mz-ai-send {
    width: 42px;
    height: 42px;

    flex-shrink: 0;

    display: flex;

    align-items: center;
    justify-content: center;

    border: 0;

    border-radius: 12px;

    background: #08a64f;

    color: #fff;
}

.mz-ai-send:hover {
    background: #078c43;
}

.mz-ai-send svg {
    width: 20px;
    height: 20px;
}

/* =========================================================
   AI POWERED TEXT
   ========================================================= */

.mz-ai-powered {
    width: 100%;

    padding-top: 7px;

    text-align: center;

    color: #89928c;

    font-size: 0.76rem;
}

/* =========================================================
   AI ANIMATION
   ========================================================= */

@keyframes aiPanelIn {

    from {
        opacity: 0;

        transform:
            translateY(25px)
            scale(0.97);
    }

    to {
        opacity: 1;

        transform:
            translateY(0)
            scale(1);
    }
}

/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1000px) {

    .search-form {
        grid-template-columns: 1fr 1fr;
    }

    .search-button {
        width: 100%;
    }

    .categories {
        grid-template-columns:
            repeat(
                3,
                minmax(0, 1fr)
            );
    }

    .business-grid {
        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );
    }

    .business-owner-home-card {
        flex-direction: column;
        align-items: stretch;
    }

    .business-owner-home-image {
        width: 100%;
        max-width: 260px;
        margin: 0 auto;
    }
}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 650px) {

    .container {
        padding-left: 15px;
        padding-right: 15px;
    }

    .header-inner {
        min-height: 62px;
        padding: 0 14px;
    }

    .logo {
        font-size: 1.05rem;
    }

    .menu-button {
        min-height: 42px;
        padding: 8px 11px;
        font-size: 0.84rem;
    }

    .main-menu {
        top: calc(100% + 6px);
        right: 12px;

        width:
            calc(
                100vw - 24px
            );

        max-height:
            calc(
                100vh - 80px
            );

        overflow-y: auto;
    }

    .main-menu a {
        padding:
            14px 16px;

        font-size: 0.94rem;
    }

    .hero,
    .homepage-hero {
        min-height: 570px;
    }

    .hero-content {
        padding:
            65px 15px 95px;
    }

    .hero-badge {
        font-size: 0.82rem;
        padding: 8px 12px;
    }

    .hero h1 {
        font-size: 2.55rem;
        letter-spacing: -1.5px;
    }

    .hero-content > p {
        font-size: 0.98rem;
    }

    .hero-highlights {
        gap: 6px;
    }

    .hero-highlights span {
        font-size: 0.73rem;
        padding: 7px 9px;
    }

    .search-panel,
    .homepage-search-panel {
        width:
            calc(
                100% - 24px
            );

        margin-top: -45px;

        padding: 16px;

        border-radius: 18px;
    }

    .search-heading {
        align-items: flex-start;
    }

    .search-heading h2 {
        font-size: 1.15rem;
    }

    .search-heading p {
        font-size: 0.78rem;
    }

    .search-form {
        grid-template-columns: 1fr;
    }

    .form-group input,
    .form-group select,
    .search-button {
        height: 48px;
    }

    .section {
        padding: 45px 0;
    }

    .categories {
        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );

        gap: 11px;
    }

    .category-photo {
        height: 125px;
        border-radius: 14px;
    }

    .category-label {
        font-size: 0.78rem;
    }

    .ai-home-card {
        flex-direction: column;
        align-items: flex-start;
        padding: 27px 22px;
        border-radius: 21px;
    }

    .ai-home-image {
        width: 75px;
        height: 75px;
        border-radius: 20px;
        font-size: 2.5rem;
    }

    .business-grid {
        grid-template-columns: 1fr;
    }

    .business-owner-home-card {
        padding: 25px 20px;
        border-radius: 20px;
    }

    .business-owner-home-image {
        max-width: 200px;
    }

    .mzansi-message {
        width:
            calc(
                100% - 24px
            );

        padding: 22px;

        flex-direction: column;

        text-align: center;
    }

    .footer-inner {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
    }

    .ai-button {
        width: 58px;
        height: 58px;

        right: 15px;
        bottom: 15px;

        font-size: 1.7rem;
    }

    /* =====================================================
       AI MOBILE
       ===================================================== */

    .mz-ai-overlay {
        padding: 0;

        align-items: flex-end;

        justify-content: center;
    }

    .mz-ai-panel {
        width: 100% !important;

        max-width: 100% !important;

        height: 92vh;

        max-height: 92vh;

        border-radius:
            22px 22px 0 0;
    }

    .mz-ai-panel .mz-ai-header {
        width: 100% !important;

        min-width: 100% !important;

        padding: 16px;
    }

    .mz-ai-logo {
        width: 46px;
        height: 46px;
    }

    .mz-ai-title {
        font-size: 1.15rem;
    }

    .mz-ai-subtitle {
        font-size: 0.74rem;
    }

    .mz-ai-panel .mz-ai-body {
        width: 100% !important;

        padding: 15px;

        /*
           Keep the flag visible on phones,
           but slightly softer behind the text.
        */

        background-image:
            linear-gradient(
                rgba(255, 255, 255, 0.76),
                rgba(255, 255, 255, 0.76)
            ),
            url("https://upload.wikimedia.org/wikipedia/commons/a/af/Flag_of_South_Africa.svg");

        background-size: cover;

        background-position: center;
    }

    .mz-ai-panel .mz-ai-input-area {
        width: 100% !important;
        padding: 10px;
    }

    .mz-ai-powered {
        font-size: 0.72rem;
    }
}

/* =========================================================
   VERY SMALL PHONES
   ========================================================= */

@media (max-width: 390px) {

    .logo {
        font-size: 0.95rem;
    }

    .menu-button {
        padding:
            7px 9px;

        font-size: 0.78rem;
    }

    .hero h1 {
        font-size: 2.25rem;
    }

    .categories {
        grid-template-columns: 1fr 1fr;
    }

    .category-photo {
        height: 115px;
    }

    .category-label {
        font-size: 0.73rem;
    }

    .mz-ai-panel .mz-ai-header {
        padding: 14px;
    }

    .mz-ai-logo {
        width: 42px;
        height: 42px;
    }

    .mz-ai-title {
        font-size: 1.05rem;
    }

    .mz-ai-subtitle {
        font-size: 0.70rem;
    }
}

/* =========================================================
   ACCESSIBILITY
   ========================================================= */

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline:
        3px solid
        rgba(
            8,
            166,
            79,
            0.35
        );

    outline-offset: 2px;
}

/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;

        animation-iteration-count: 1 !important;

        transition-duration: 0.01ms !important;
    }
}
/* MZANSI MOBILE BUTTON LAYOUT CLEANUP */
@media (max-width: 600px) {
    .search-panel,
    .homepage-search-panel {
        box-sizing: border-box;
        width: calc(100% - 24px);
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
        padding: 18px;
    }

    .search-form {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
        width: 100%;
    }

    .search-form input,
    .search-form select {
        box-sizing: border-box;
        width: 100%;
        min-width: 0;
    }

    .search-button {
        box-sizing: border-box;
        width: 100%;
        min-height: 48px;
        height: auto;
        white-space: normal;
        margin-top: 2px;
    }

    .business-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        width: 100%;
    }

    .business-actions button,
    .business-actions a {
        box-sizing: border-box;
        display: flex;
        align-items: center;
        justify-content: center;
        min-width: 0;
        min-height: 42px;
        padding: 8px;
        text-align: center;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .mobile-actions {
        left: 0;
        right: 0;
        width: 100%;
        box-sizing: border-box;
    }
}

@media (max-width: 380px) {
    .search-panel,
    .homepage-search-panel {
        width: calc(100% - 16px);
        padding: 14px;
    }

    .business-actions {
        gap: 6px;
    }

    .business-actions button,
    .business-actions a {
        padding: 8px 6px;
        font-size: 0.75rem;
    }
}

/* MZANSI ANDROID BOTTOM BAR FIX */
@media (max-width: 600px) {
    .mobile-actions {
        position: fixed;
        left: 0;
        right: 0;
        bottom: calc(24px + env(safe-area-inset-bottom, 0px));
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding: 8px 8px calc(8px + env(safe-area-inset-bottom, 0px));
        background: #ffffff;
        border-top: 1px solid #dce5e1;
        z-index: 4400;
    }

    .mobile-action {
        color: #176b45;
        opacity: 1;
        text-align: center;
        min-width: 0;
        overflow-wrap: anywhere;
    }

    body {
        padding-bottom: 180px;
    }

    .ai-button {
        right: 16px;
        bottom: 105px;
        z-index: 4300;
    }
}
