:root {
    color-scheme: dark;
    --bg: #0b1020;
    --panel: #131c31;
    --border: #293957;
    --text: #eef3ff;
    --muted: #a9b5cc;
    --accent: #77a7ff;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 15px/1.6 system-ui, sans-serif;
}

a {
    color: var(--accent);
    text-decoration: none;
}

.bd-header {
    background: #10182a;
    border-bottom: 1px solid var(--border);
}

.bd-nav {
    max-width: 1400px;
    margin: auto;
    padding: 18px 24px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.bd-brand {
    font-size: 24px;
    font-weight: 900;
    letter-spacing: 3px;
}

.bd-nav nav {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.bd-nav form {
    display: flex;
    gap: 6px;
}

.bd-container {
    width: min(1350px, 94%);
    margin: 30px auto;
}

.bd-hero {
    padding: clamp(24px, 5vw, 65px);
    border: 1px solid var(--border);
    border-radius: 22px;
    background: linear-gradient(
        130deg,
        #172747,
        #11192c
    );
}

.bd-eyebrow {
    color: var(--accent);
    font-size: 12px;
    letter-spacing: 3px;
}

h1 {
    font-size: clamp(28px, 5vw, 48px);
    line-height: 1.2;
}

h2 {
    margin-top: 35px;
}

.bd-total {
    font-size: 32px;
    font-weight: 800;
    color: var(--accent);
}

.bd-search {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 25px 0;
}

input,
select,
button {
    padding: 13px;
    border: 1px solid var(--border);
    border-radius: 9px;
    background: #10182a;
    color: var(--text);
    font: inherit;
    min-width: 0;
}

.bd-search input,
.bd-search select {
    flex: 1 1 160px;
}

button,
.bd-button {
    display: inline-block;
    background: var(--accent);
    color: #0b1020;
    border: 0;
    border-radius: 9px;
    padding: 12px 18px;
    font-weight: 700;
    cursor: pointer;
}

.bd-categories {
    display: grid;
    grid-template-columns:
        repeat(auto-fill, minmax(155px, 1fr));
    gap: 14px;
}

.bd-category {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 140px;
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--panel);
    text-align: center;
    color: var(--text);
    transition: .2s;
}

.bd-category:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
}

.bd-icon {
    font-size: 34px;
    margin-bottom: 10px;
}

.bd-category small {
    color: var(--muted);
}

.bd-grid {
    display: grid;
    grid-template-columns:
        repeat(auto-fill, minmax(260px, 1fr));
    gap: 18px;
}

.bd-card,
.bd-panel,
.bd-profile {
    padding: 24px;
    border: 1px solid var(--border);
    background: var(--panel);
    border-radius: 15px;
    overflow-wrap: anywhere;
}

.bd-card h3 {
    margin-bottom: 5px;
}

.bd-card p {
    color: var(--muted);
}

.bd-company-icon {
    display: grid;
    place-items: center;
    width: 75px;
    height: 75px;
    background: #1d3157;
    border-radius: 16px;
    font-size: 36px;
}

.bd-featured {
    display: inline-block;
    background: #47391a;
    color: #ffd879;
    padding: 5px 12px;
    border-radius: 8px;
    margin-bottom: 15px;
    font-size: 12px;
}

.bd-verified {
    color: #6ee7b7 !important;
}

.bd-excerpt {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 20px;
}

.bd-panel {
    margin-top: 20px;
}

.bd-panel h2 {
    margin-top: 0;
}

.bd-review {
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
}

.bd-review strong {
    color: #ffd879;
}

.bd-empty {
    padding: 45px;
    background: var(--panel);
    border: 1px dashed var(--border);
    border-radius: 14px;
    text-align: center;
    color: var(--muted);
}

.bd-pagination {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 30px 0;
}

.bd-footer {
    padding: 35px 20px;
    border-top: 1px solid var(--border);
    text-align: center;
    margin-top: 50px;
    color: var(--muted);
}

.bd-footer a {
    display: inline-block;
    margin: 8px 12px;
}

@media (max-width: 600px) {

    .bd-nav {
        padding: 15px;
    }

    .bd-nav nav {
        gap: 10px;
        font-size: 13px;
    }

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

    .bd-search {
        flex-direction: column;
    }

    .bd-search input,
    .bd-search select {
        flex: auto;
        width: 100%;
    }

    .bd-grid {
        grid-template-columns: 1fr;
    }
}
/* ADROVIA BUSINESS MANAGEMENT */

.bd-management-form {
    max-width: 900px;
    margin: 25px auto;
    padding: 28px;
    display: grid;
    gap: 20px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--panel);
}

.bd-management-form label {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-weight: 600;
}

.bd-management-form input,
.bd-management-form select,
.bd-management-form textarea {
    width: 100%;
    padding: 13px;
    border: 1px solid var(--border);
    border-radius: 9px;
    background: #10182a;
    color: var(--text);
    font: inherit;
}

.bd-management-form textarea {
    min-height: 160px;
    resize: vertical;
}

.bd-management-form input:focus,
.bd-management-form textarea:focus,
.bd-management-form select:focus {
    outline: 2px solid var(--accent);
}

.bd-gps {
    display: grid;
    gap: 15px;
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: 12px;
}

.bd-delete-form {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid var(--border);
}

.bd-delete-form label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 13px;
}

.bd-delete-form button {
    background: #991b1b;
    color: white;
}

.bd-delete-form input {
    width: auto;
}

.bd-container > .bd-button {
    margin-bottom: 25px;
}

@media (max-width: 600px) {
    .bd-management-form {
        padding: 16px;
    }
}
/* ADROVIA BUSINESS GEOLOCATION */

.bd-geo-panel {
    margin: 25px 0;
    padding: 25px;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 16px;
}

.bd-geo-panel h2 {
    margin: 0 0 15px;
}

.bd-geo-panel form {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 15px;
}

.bd-geo-panel label {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.bd-geo-panel p {
    color: var(--muted);
}

.bd-distance {
    color: #6ee7b7 !important;
    font-weight: 800;
}

.bd-geo-panel button:disabled {
    opacity: .5;
    cursor: wait;
}

@media (max-width: 600px) {

    .bd-geo-panel form {
        flex-direction: column;
        align-items: stretch;
    }
}