﻿.business-form .form-text {
    color: #9eb2ce;
}

.business-category-options {
    max-height: 280px;
    overflow-y: auto;
    padding: 10px 14px;
    border: 1px solid #3a4f6c;
    border-radius: 12px;
    background: #0e1826;
    color: #dce5f5;
}

.business-category-option {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0;
    padding: 9px 0;
    cursor: pointer;
}

    .business-category-option + .business-category-option {
        border-top: 1px solid #24354d;
    }

    .business-category-option .form-check-input {
        float: none;
        flex-shrink: 0;
        margin: 3px 0 0;
    }

.business-filters {
    margin-bottom: 24px;
    padding: 20px;
    border: 1px solid #30415a;
    border-radius: 16px;
    background: #152232;
}

    .business-filters .form-label {
        color: #dce5f5;
        font-size: 0.8rem;
        font-weight: 700;
    }

.business-result-count {
    margin-bottom: 16px;
    color: #9eb2ce;
    font-size: 0.85rem;
}

.business-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.business-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid #30415a;
    border-radius: 18px;
    background: #152232;
}

.business-card-cover {
    position: relative;
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, #294878, #101927);
}

    .business-card-cover > img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.business-card-logo {
    position: absolute;
    bottom: 12px;
    left: 12px;
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    padding: 4px;
    overflow: hidden;
    border: 1px solid #63758e;
    border-radius: 14px;
    background: #101927;
}

    .business-card-logo img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

.business-card-body {
    padding: 20px;
}

    .business-card-body h2 {
        margin: 0 0 8px;
        color: #fff;
        font-size: 1.25rem;
        font-weight: 800;
        overflow-wrap: anywhere;
    }

.business-owner-label {
    display: block;
    margin-bottom: 8px;
    color: #a7bdff;
    font-size: 0.75rem;
    font-weight: 700;
}

.business-card-location {
    margin-bottom: 14px;
    color: #aebfd6;
    font-size: 0.85rem;
    overflow-wrap: anywhere;
}

.business-service-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

    .business-service-tags span {
        padding: 4px 8px;
        border-radius: 6px;
        background: #243b60;
        color: #dce8ff;
        font-size: 0.7rem;
        font-weight: 600;
        overflow-wrap: anywhere;
    }

.business-card-description {
    display: -webkit-box;
    margin: 16px 0 0;
    overflow: hidden;
    color: #c8d5e9;
    font-size: 0.85rem;
    line-height: 1.6;
    overflow-wrap: anywhere;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

@media (max-width: 900px) {
    .business-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .business-card-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

.business-profile-hero {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: 320px;
    margin-bottom: 24px;
    overflow: hidden;
    border: 1px solid #30415a;
    border-radius: 20px;
    background: linear-gradient(135deg, #294878, #101927);
}

.business-profile-cover {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.business-profile-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient( to bottom, rgb(0 0 0 / 10%), rgb(0 0 0 / 85%) );
}

.business-profile-back {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 2;
    border: 1px solid #94a9c7;
    background: rgb(16 22 35 / 85%);
    color: #dce5f5;
}

    .business-profile-back svg {
        stroke-width: 3;
    }

.business-profile-caption {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
    padding: 96px 24px 24px;
}

.business-profile-logo {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    padding: 5px;
    overflow: hidden;
    border: 1px solid #63758e;
    border-radius: 18px;
    background: #101927;
    color: #b9cdff;
    font-size: 2rem;
    font-weight: 800;
}

    .business-profile-logo img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

.business-profile-identity {
    min-width: 0;
}

    .business-profile-identity h1 {
        margin: 8px 0;
        color: #fff;
        font-size: clamp(1.5rem, 4vw, 2.5rem);
        font-weight: 800;
        overflow-wrap: anywhere;
    }

    .business-profile-identity p {
        margin: 0;
        color: #dce5f5;
        font-size: 0.85rem;
        overflow-wrap: anywhere;
    }

.business-profile-description {
    margin: 16px 0 0;
    color: #d5e0f1;
    line-height: 1.8;
    white-space: pre-line;
    overflow-wrap: anywhere;
}

.business-profile-address {
    margin: 10px 0 0;
    color: #d5e0f1;
    overflow-wrap: anywhere;
}

.business-draft-notice {
    margin-bottom: 24px;
    padding: 14px 18px;
    border: 1px solid #805063;
    border-radius: 12px;
    background: #251c28;
    color: #eadce3;
}

.business-contact-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.business-contact-link {
    display: block;
    min-width: 0;
    padding: 14px;
    border: 1px solid #3a5482;
    border-radius: 12px;
    background: #213657;
    color: #dce8ff;
    text-decoration: none;
}

    .business-contact-link span {
        display: block;
        margin-bottom: 6px;
        color: #aebfd6;
        font-size: 0.75rem;
    }

    .business-contact-link strong {
        font-size: 0.85rem;
        overflow-wrap: anywhere;
    }

    .business-contact-link:hover {
        border-color: #9bbaff;
        background: #2a456f;
        color: #fff;
    }

.business-profile-link {
    color: inherit;
    text-decoration: none;
}

    .business-profile-link:hover {
        color: #a7bdff;
    }

@media (max-width: 600px) {
    .business-profile-caption {
        gap: 12px;
        padding: 96px 16px 20px;
    }

    .business-profile-logo {
        width: 64px;
        height: 64px;
        border-radius: 14px;
    }

    .business-contact-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

.business-profile-edit {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 2;
    border: 1px solid #63758e;
    background: rgb(16 22 35 / 85%);
    color: #dce5f5;
}

    .business-profile-edit:hover {
        border-color: #c3d5ff;
        background: #26364c;
        color: #fff;
    }

.business-code-result {
    margin-bottom: 28px;
    padding: 24px;
    border: 1px solid #3a5482;
    border-radius: 18px;
    background: linear-gradient(135deg, #1b2b45, #142031);
    color: #dce5f5;
}

    .business-code-result h2 {
        margin: 8px 0 16px;
        color: #fff;
        font-size: 1.3rem;
        font-weight: 800;
    }

.business-code-value {
    display: block;
    margin: 16px 0;
    padding: 16px;
    border: 1px solid #435f89;
    border-radius: 10px;
    background: #0e1826;
    color: #c5d6ff;
    font-size: 1rem;
    font-weight: 700;
    overflow-wrap: anywhere;
    user-select: all;
}

.business-code-status {
    margin: 10px 0 16px;
    color: #a7bdff;
    font-size: 0.85rem;
}

.business-brand-background {
    background: radial-gradient( circle at center, #263f60 0%, #17273c 55%, #101927 100% );
}

.business-brand-mark {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    color: #b9cdff;
    font-size: 4rem;
    font-weight: 800;
}

    .business-brand-mark img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

.home-business-identity-image .business-brand-mark {
    padding: 0;
}

    .home-business-identity-image .business-brand-mark img {
        object-fit: cover;
    }

.business-identity-hero {
    display: block;
    min-height: 0;
}

    .business-identity-hero::after {
        display: none;
    }

    .business-identity-hero .business-profile-caption {
        flex-direction: column;
        align-items: center;
        gap: 18px;
        padding: 80px 24px 28px;
        text-align: center;
    }

    .business-identity-hero .business-profile-logo {
        display: flex;
        align-items: center;
        justify-content: center;
        width: min(100%, 220px);
        height: 220px;
        padding: 0;
        border: 0;
        border-radius: 0;
        background: transparent;
        font-size: 4rem;
    }

        .business-identity-hero .business-profile-logo img {
            display: block;
            width: 100%;
            height: 100%;
            min-width: 0;
            min-height: 0;
            object-fit: contain;
        }

/* Business directory */
.business-card-cover .business-brand-mark {
    padding: 0;
}

    .business-card-cover .business-brand-mark img {
        object-fit: contain;
    }

/* Business profile */
.business-identity-hero .business-profile-logo {
    width: min(100%, 280px);
    height: auto;
    aspect-ratio: 1;
}

    .business-identity-hero .business-profile-logo img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.business-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.business-card-cover {
    aspect-ratio: 3 / 4;
}

@media (max-width: 600px) {
    .business-card-grid {
        gap: 12px;
    }

    .business-card-body {
        padding: 12px;
    }

        .business-card-body h2 {
            font-size: 1rem;
        }

    .business-card-location {
        font-size: 0.75rem;
    }

    .business-service-tags span {
        font-size: 0.65rem;
    }

    .business-card-description {
        font-size: 0.75rem;
    }
}

.business-identity-hero .business-profile-caption {
    padding: 0;
    gap: 0;
}

.business-identity-hero .business-profile-logo {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: auto;
}

    .business-identity-hero .business-profile-logo img {
        display: block;
        width: 100%;
        height: auto;
        object-fit: contain;
    }

.business-identity-hero .business-profile-identity {
    width: 100%;
    padding: 24px 16px;
}

a.business-card {
    display: block;
    color: inherit;
    text-decoration: none;
}

    a.business-card:hover {
        border-color: #9bbaff;
        color: inherit;
    }

    a.business-card:focus-visible {
        outline: 2px solid #a7bdff;
        outline-offset: 4px;
    }

.business-branch {
    margin-bottom: 16px;
    padding: 18px;
    border: 1px solid #354b6b;
    border-radius: 14px;
    background: #152232;
}

.business-branch-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

    .business-branch-heading h3 {
        color: #fff;
        font-weight: 800;
    }

    .business-branch-heading button {
        min-height: 40px;
    }

.business-branch-list {
    display: grid;
    gap: 14px;
}

.business-branch-details {
    padding: 16px;
    background: #101c2c;
    border: 1px solid #30465f;
    border-radius: 12px;
    min-width: 0;
}

    .business-branch-details h3 {
        margin: 0 0 6px;
        color: #fff;
        font-size: 1rem;
        font-weight: 800;
    }

    .business-branch-details .business-branch-place {
        margin: 0;
        color: #b8cdf0;
        font-size: 0.85rem;
    }

    .business-branch-details .business-branch-address {
        margin: 8px 0 0;
        color: #dce5f5;
        overflow-wrap: anywhere;
    }

    .business-branch-details .business-contact-link {
        margin-top: 12px;
    }

/* A single compact carousel in the existing business header. */
.business-gallery { position: relative; }
.business-gallery-stage {
    position: relative;
    aspect-ratio: 4 / 3;
    max-height: 420px;
    overflow: hidden;
    background: #101927;
}
.business-gallery-stage > img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.business-gallery-stage > img.is-logo { object-fit: contain; }
.business-gallery-stage.is-showing-logo {
    aspect-ratio: auto;
    max-height: none;
}
.business-gallery-stage.is-showing-logo > img.is-logo {
    height: auto;
}
.business-gallery-stage > [hidden] { display: none; }
.business-gallery-fallback {
    display: grid;
    place-items: center;
    height: 100%;
    color: #b9cdff;
    font-size: 5rem;
    font-weight: 800;
}
.business-gallery-stage .garage-gallery-arrow {
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
}
.business-gallery-stage .garage-gallery-counter { top: auto; bottom: 12px; right: 12px; }
.business-gallery-thumbnails {
    position: relative;
    padding: 10px;
    background: #101927;
}
.business-gallery-thumbnails[hidden] { display: none; }
.business-gallery-thumbnails .garage-gallery-thumb {
    display: grid;
    place-items: center;
    color: #b9cdff;
    background: #17273c;
}
.business-gallery-thumbnails [data-photo-id="0"] img { object-fit: contain; }
.business-gallery-tools {
    position: absolute;
    z-index: 2;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    max-width: calc(100% - 136px);
}
.business-gallery-tools button { min-height: 40px; white-space: nowrap; }
.business-photo-delete-preview { display: block; width: 100%; max-height: 240px; object-fit: contain; margin-bottom: 16px; }
.business-gallery:focus-visible { outline: 2px solid #a7bdff; outline-offset: -3px; }
