/* ── Ber Street Business Directory — Frontend Styles ────────────────────── */

/* ── Flash Messages ───────────────────────────────────────────────────────── */
.bs-flash {
    padding: 14px 18px;
    border-radius: 6px;
    margin-bottom: 24px;
    font-size: 0.95rem;
    line-height: 1.5;
}
.bs-flash-success { background: #edf7ed; color: #1e601e; border: 1px solid #a3d6a3; }
.bs-flash-error   { background: #fdecea; color: #921f1f; border: 1px solid #f0b4b4; }
.bs-flash-warning { background: #fff8e1; color: #7a5c00; border: 1px solid #f0d87a; }

/* ── Login / Register Box ─────────────────────────────────────────────────── */
.bs-login-wrap { margin-bottom: 40px; }

.bs-login-box {
    background: #f8f8f8;
    border: 1px solid #e2e2e2;
    border-radius: 8px;
    padding: 28px 32px;
    max-width: 560px;
}
.bs-login-box h3 {
    margin: 0 0 8px;
    font-size: 1.15rem;
}
.bs-login-box p {
    margin: 0 0 16px;
    color: #555;
    font-size: 0.9rem;
}
.bs-login-form .bs-field-row {
    display: flex;
    gap: 10px;
    align-items: flex-end;
    flex-wrap: wrap;
}
.bs-login-form input[type="email"] {
    flex: 1;
    min-width: 220px;
    padding: 10px 14px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 0.95rem;
}
.bs-session-info { font-size: 0.9rem; color: #555; }

/* ── Category Filter ──────────────────────────────────────────────────────── */
.bs-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 24px 0 28px;
}
.bs-filter-btn {
    padding: 7px 16px;
    border-radius: 20px;
    border: 1px solid #ddd;
    background: #fff;
    color: #333;
    text-decoration: none;
    font-size: 0.85rem;
    transition: background 0.15s, border-color 0.15s;
}
.bs-filter-btn:hover,
.bs-filter-btn.active {
    background: #1a1a1a;
    color: #fff;
    border-color: #1a1a1a;
}

/* ── Business Directory Grid ──────────────────────────────────────────────── */
.bs-directory {
    display: grid;
    gap: 24px;
    margin-bottom: 40px;
}
.bs-cols-2 { grid-template-columns: repeat(2, 1fr); }
.bs-cols-3 { grid-template-columns: repeat(3, 1fr); }
.bs-cols-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 900px) {
    .bs-cols-3,
    .bs-cols-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .bs-directory { grid-template-columns: 1fr; }
}

/* ── Business Card ────────────────────────────────────────────────────────── */
.bs-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.18s, transform 0.18s;
}
.bs-card:hover {
    box-shadow: 0 6px 24px rgba(0,0,0,0.10);
    transform: translateY(-2px);
}

.bs-card-header {
    width: 100%;
    height: 160px;
    background-size: cover;
    background-position: center;
    background-color: #f0f0f0;
}

.bs-card-body {
    padding: 18px 20px 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.bs-card-logo {
    margin-bottom: 10px;
}
.bs-card-logo img {
    max-height: 48px;
    max-width: 140px;
    object-fit: contain;
}

.bs-type-badge {
    display: inline-block;
    background: #f0f0f0;
    color: #555;
    font-size: 0.75rem;
    padding: 3px 10px;
    border-radius: 12px;
    margin-bottom: 8px;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.bs-card-title {
    margin: 0 0 8px;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.3;
}

.bs-card-excerpt {
    margin: 0 0 10px;
    font-size: 0.875rem;
    color: #666;
    line-height: 1.55;
    flex: 1;
}

.bs-card-phone {
    margin: 0;
    font-size: 0.85rem;
    color: #444;
}

.bs-no-results {
    color: #888;
    font-style: italic;
    padding: 20px 0;
}

/* ── Business Form ────────────────────────────────────────────────────────── */
.bs-form-wrap {
    max-width: 780px;
    margin: 0 auto;
}
.bs-form-header {
    margin-bottom: 28px;
}
.bs-form-header h2 {
    margin: 0 0 6px;
}
.bs-form-header p {
    margin: 0;
    font-size: 0.9rem;
    color: #666;
}

.bs-fieldset {
    border: 1px solid #e2e2e2;
    border-radius: 8px;
    padding: 22px 24px 24px;
    margin-bottom: 24px;
}
.bs-fieldset legend {
    font-weight: 700;
    font-size: 1rem;
    padding: 0 8px;
    color: #1a1a1a;
}

.bs-field {
    margin-bottom: 16px;
}
.bs-field:last-child { margin-bottom: 0; }

.bs-field label {
    display: block;
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 5px;
    color: #333;
}
.bs-required { color: #c00; }

.bs-field input[type="text"],
.bs-field input[type="email"],
.bs-field input[type="tel"],
.bs-field input[type="url"],
.bs-field textarea,
.bs-field select {
    width: 100%;
    padding: 10px 13px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 0.95rem;
    transition: border-color 0.15s;
    box-sizing: border-box;
}
.bs-field input:focus,
.bs-field textarea:focus {
    border-color: #555;
    outline: none;
}

.bs-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
@media (max-width: 600px) {
    .bs-field-row { grid-template-columns: 1fr; }
}

.bs-coord-row {
    grid-template-columns: 1fr 1fr;
    max-width: 400px;
}

.bs-hint {
    font-size: 0.8rem;
    color: #888;
    margin: 4px 0 0;
}

/* Current image previews */
.bs-current-image {
    margin-bottom: 8px;
}
.bs-current-image img {
    max-height: 80px;
    max-width: 200px;
    border-radius: 4px;
    border: 1px solid #ddd;
    object-fit: contain;
    background: #f5f5f5;
    padding: 4px;
}

/* Checkboxes */
.bs-checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.bs-checkbox-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    font-weight: 400;
    cursor: pointer;
}

/* Social rows */
.bs-social-row {
    display: flex;
    gap: 10px;
    margin-bottom: 8px;
    align-items: center;
    flex-wrap: wrap;
}
.bs-social-platform { width: 180px !important; flex-shrink: 0; }
.bs-social-url      { flex: 1; min-width: 160px; }

/* Buttons */
.bs-btn {
    display: inline-block;
    padding: 11px 22px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.15s;
    background: #1a1a1a;
    color: #fff;
}
.bs-btn:hover { background: #333; color: #fff; }
.bs-btn-primary { background: #1a6fbf; }
.bs-btn-primary:hover { background: #155a9e; }
.bs-btn-small {
    padding: 7px 14px;
    font-size: 0.82rem;
    border-radius: 5px;
    border: 1px solid #ccc;
    background: #fff;
    cursor: pointer;
    transition: background 0.15s;
}
.bs-btn-small:hover { background: #f0f0f0; }
.bs-btn-cancel {
    font-size: 0.9rem;
    color: #888;
    text-decoration: none;
    margin-left: 12px;
}
.bs-btn-cancel:hover { color: #333; }

.bs-form-footer {
    display: flex;
    align-items: center;
    padding-top: 8px;
    margin-top: 4px;
}
