/* ==========================================================
   BEACHDELIVERY DESIGN SYSTEM
   One shared visual language for every customer-facing page.

   Loaded AFTER css/style.css, so the tokens and component
   rules below unify the existing page styles (which were
   written page by page) without rewriting them.

   Rules of this file:
   * tokens first, components second, page overrides last
   * never change layout structure, only presentation
   * no animation beyond the existing subtle transitions
   * mobile-first: the small-screen rules are the defaults
   ========================================================== */

/* ---------- 1. Tokens ---------- */

:root {
    /* Brand */
    --bd-brand: #0878db;
    --bd-brand-dark: #0566c0;
    --bd-brand-soft: #e8f3ff;
    --bd-accent: #15966a;
    --bd-accent-soft: #e8f7ef;
    --bd-whatsapp: #25d366;
    --bd-warn: #e66b3d;
    --bd-danger: #d64545;
    --bd-star: #f5a524;

    /* Text */
    --bd-ink: #172235;
    --bd-ink-soft: #3c4a5c;
    --bd-muted: #687486;
    --bd-muted-soft: #8b96a5;

    /* Surfaces */
    --bd-surface: #ffffff;
    --bd-surface-soft: #f7fafd;
    --bd-canvas: #f6f8fb;
    --bd-line: #e6ecf2;
    --bd-line-soft: #f0f4f8;

    /* Shape */
    --bd-radius-sm: 10px;
    --bd-radius: 14px;
    --bd-radius-lg: 18px;
    --bd-radius-pill: 999px;

    /* Depth */
    --bd-shadow-sm: 0 2px 8px rgba(23, 34, 53, .06);
    --bd-shadow: 0 6px 20px rgba(23, 34, 53, .08);
    --bd-shadow-lg: 0 14px 36px rgba(23, 34, 53, .12);

    /* Rhythm */
    --bd-gap: 16px;
    --bd-gap-sm: 10px;
    --bd-gap-lg: 26px;

    /* Type */
    --bd-font: system-ui, -apple-system, "Segoe UI", Roboto,
        "Helvetica Neue", Arial, sans-serif;
    --bd-h1: clamp(1.45rem, 4.4vw, 2.05rem);
    --bd-h2: clamp(1.1rem, 3vw, 1.35rem);

    /* Layout */
    --bd-tap: 44px;
    --bd-bottom-nav: 58px;
}

/* ---------- 2. Base ---------- */

body {
    background-color: var(--bd-canvas);
    color: var(--bd-ink);
    font-family: var(--bd-font);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--bd-ink);
    font-weight: 800;
    letter-spacing: -.01em;
}

h1 {
    font-size: var(--bd-h1);
    line-height: 1.18;
}

a {
    color: var(--bd-brand);
}

a:focus-visible,
button:focus-visible,
.btn:focus-visible,
.form-control:focus-visible,
.form-select:focus-visible,
[tabindex]:focus-visible {
    outline: 3px solid rgba(8, 120, 219, .45);
    outline-offset: 2px;
}

img {
    max-width: 100%;
}

/* Keyboard-only shortcut past the navigation. */

.bd-skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 2100;
    padding: 10px 16px;
    border-radius: 0 0 var(--bd-radius-sm) 0;
    background: var(--bd-brand);
    color: #fff;
    font-weight: 700;
    text-decoration: none;
}

.bd-skip-link:focus {
    left: 0;
}

/* Screen-reader-only helper (Bootstrap's .visually-hidden is kept
   as-is; this exists for templates that need it without Bootstrap). */

.bd-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ---------- 3. Page header ---------- */

.bd-page-head {
    margin: 0 0 var(--bd-gap);
}

.bd-page-head h1,
.bd-page-head .bd-page-title {
    margin: 0 0 4px;
    font-size: var(--bd-h1);
}

.bd-page-head p {
    margin: 0;
    color: var(--bd-muted);
    font-size: .95rem;
    line-height: 1.55;
}

.bd-page-head-row {
    display: flex;
    flex-wrap: wrap;
    gap: var(--bd-gap-sm);
    align-items: center;
    justify-content: space-between;
}

.bd-eyebrow {
    display: block;
    margin-bottom: 6px;
    color: var(--bd-brand);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.bd-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0 0 12px;
    padding: 0;
    list-style: none;
    color: var(--bd-muted);
    font-size: .85rem;
}

.bd-breadcrumb a {
    color: var(--bd-brand);
    text-decoration: none;
}

.bd-breadcrumb a:hover {
    text-decoration: underline;
}

/* ---------- 4. Section headings ---------- */

.bd-section-head,
.section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--bd-gap-sm);
    margin: 0 0 12px;
}

.bd-section-head h2,
.section-heading h2 {
    margin: 0;
    font-size: var(--bd-h2);
}

.bd-section-head a,
.section-heading a {
    flex: 0 0 auto;
    color: var(--bd-brand);
    font-weight: 700;
    font-size: .9rem;
    text-decoration: none;
}

.bd-section-head a:hover,
.section-heading a:hover {
    text-decoration: underline;
}

.bd-section-sub {
    margin: -6px 0 14px;
    color: var(--bd-muted);
    font-size: .9rem;
}

/* ---------- 5. Cards ---------- */

.bd-card,
.card {
    border-radius: var(--bd-radius-lg);
}

.card {
    border: 1px solid var(--bd-line);
    background: var(--bd-surface);
    box-shadow: var(--bd-shadow-sm);
}

.card.shadow-sm,
.card.border-0 {
    box-shadow: var(--bd-shadow-sm) !important;
}

.card-body {
    padding: 16px;
}

/* Every listing card uses one picture box, so photo sizes line up
   across the homepage, category, location and search pages. */

.bd-media,
.mkt-noimage,
.product-image,
.product-placeholder {
    width: 100%;
    aspect-ratio: 16 / 10;
    height: auto;
    object-fit: cover;
    object-position: center;
    display: block;
    background: var(--bd-line-soft);
}

.bd-media--tall {
    aspect-ratio: 16 / 11;
}

.bd-media--square {
    aspect-ratio: 1 / 1;
}

/* Placeholder art keeps the same box as a real photo, so nothing
   jumps once an image is uploaded. */

.mkt-noimage,
.product-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.4rem;
    color: var(--bd-muted-soft);
}

.bd-card-title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.3;
}

.bd-card-title a {
    color: inherit;
    text-decoration: none;
}

.bd-card-title a:hover {
    color: var(--bd-brand);
}

.bd-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 10px;
    color: var(--bd-muted);
    font-size: .85rem;
    line-height: 1.5;
}

.bd-meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.bd-card-text {
    margin: 8px 0 0;
    color: var(--bd-ink-soft);
    font-size: .9rem;
    line-height: 1.5;
}

.bd-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.bd-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ---------- 6. Buttons ---------- */

.btn {
    border-radius: var(--bd-radius-sm);
    font-weight: 600;
    font-size: .92rem;
    padding: .5rem 1rem;
    transition: background-color .15s ease, border-color .15s ease;
}

.btn-lg {
    font-size: 1rem;
    padding: .7rem 1.25rem;
}

.btn-sm {
    font-size: .84rem;
    padding: .38rem .8rem;
}

.btn-primary {
    --bs-btn-bg: var(--bd-brand);
    --bs-btn-border-color: var(--bd-brand);
    --bs-btn-hover-bg: var(--bd-brand-dark);
    --bs-btn-hover-border-color: var(--bd-brand-dark);
    --bs-btn-active-bg: var(--bd-brand-dark);
    --bs-btn-active-border-color: var(--bd-brand-dark);
    background-color: var(--bd-brand);
    border-color: var(--bd-brand);
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--bd-brand-dark);
    border-color: var(--bd-brand-dark);
}

.btn-outline-primary {
    --bs-btn-color: var(--bd-brand);
    --bs-btn-border-color: var(--bd-brand);
    --bs-btn-hover-bg: var(--bd-brand);
    --bs-btn-hover-border-color: var(--bd-brand);
    color: var(--bd-brand);
    border-color: var(--bd-brand);
}

.btn-outline-secondary {
    color: var(--bd-ink-soft);
    border-color: var(--bd-line);
}

.btn-success {
    --bs-btn-bg: var(--bd-accent);
    --bs-btn-border-color: var(--bd-accent);
    background-color: var(--bd-accent);
    border-color: var(--bd-accent);
}

/* Action rows used on cards and detail pages. Every button keeps a
   44px touch target on a phone. */

.bd-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--bd-gap-sm);
    margin-top: 14px;
}

.bd-actions .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: var(--bd-tap);
    flex: 1 1 auto;
}

.bd-actions .btn-block,
.bd-actions .bd-btn-block {
    flex: 1 1 100%;
}

.bd-actions--secondary .btn {
    flex: 1 1 30%;
    font-size: .86rem;
}

.bd-link-quiet {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 12px;
    color: var(--bd-muted);
    font-size: .86rem;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.bd-link-quiet:hover {
    color: var(--bd-brand);
}

/* ---------- 7. Chips, badges, pills ---------- */

.bd-chip,
.mkt-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: var(--bd-radius-pill);
    background: var(--bd-brand-soft);
    color: var(--bd-brand-dark);
    font-size: .76rem;
    font-weight: 600;
    line-height: 1.5;
    text-decoration: none;
}

.bd-chip--muted {
    background: var(--bd-line-soft);
    color: var(--bd-ink-soft);
}

.bd-chip--accent {
    background: var(--bd-accent-soft);
    color: #0f7a55;
}

.bd-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 9px;
    border-radius: var(--bd-radius-pill);
    font-size: .72rem;
    font-weight: 700;
    line-height: 1.5;
}

.bd-badge--brand {
    background: var(--bd-brand-soft);
    color: var(--bd-brand-dark);
}

.bd-badge--offer {
    background: #ffe9e3;
    color: #c74a20;
}

.bd-badge--open {
    background: var(--bd-accent-soft);
    color: #0f7a55;
}

.bd-chip-row,
.mkt-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

/* ---------- 8. Forms ---------- */

.form-label {
    margin-bottom: 4px;
    color: var(--bd-ink-soft);
    font-size: .88rem;
    font-weight: 600;
}

.form-control,
.form-select {
    border-radius: var(--bd-radius-sm);
    border-color: var(--bd-line);
    padding: .6rem .8rem;
    font-size: .95rem;
    min-height: var(--bd-tap);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--bd-brand);
    box-shadow: 0 0 0 3px rgba(8, 120, 219, .15);
}

.input-group .form-control,
.input-group .form-select {
    min-height: var(--bd-tap);
}

.form-text,
.helptext {
    color: var(--bd-muted);
    font-size: .82rem;
}

.bd-form-card {
    max-width: 620px;
    padding: 18px;
    border: 1px solid var(--bd-line);
    border-radius: var(--bd-radius-lg);
    background: var(--bd-surface);
    box-shadow: var(--bd-shadow-sm);
}

.bd-form-card .bd-actions .btn {
    flex: 1 1 100%;
}

/* ---------- 9. Loading, empty, success and error states ---------- */

.bd-state {
    padding: 26px 18px;
    border: 1px solid var(--bd-line);
    border-radius: var(--bd-radius-lg);
    background: var(--bd-surface);
    text-align: center;
}

.bd-state-icon {
    display: block;
    margin-bottom: 10px;
    font-size: 2rem;
    line-height: 1;
}

.bd-state h2,
.bd-state h3,
.bd-state .bd-state-title {
    margin: 0 0 6px;
    font-size: 1.05rem;
}

.bd-state p {
    max-width: 46ch;
    margin: 0 auto 14px;
    color: var(--bd-muted);
    font-size: .92rem;
    line-height: 1.55;
}

.bd-state--success {
    border-color: #bfe8d4;
    background: var(--bd-accent-soft);
}

.bd-state--error {
    border-color: #f3cdcd;
    background: #fdf1f1;
}

.bd-state--inline {
    padding: 18px;
    text-align: left;
}

.bd-state--inline p {
    margin-left: 0;
}

.alert {
    border-radius: var(--bd-radius);
    border: 1px solid var(--bd-line);
    font-size: .92rem;
}

.alert-info {
    border-color: #cfe7ff;
    background: var(--bd-brand-soft);
    color: #0b4f86;
}

/* Lightweight skeleton used while a polled panel refreshes. */

.bd-skeleton {
    border-radius: var(--bd-radius-sm);
    background: linear-gradient(90deg, #eef2f7 25%, #f7fafd 37%, #eef2f7 63%);
    background-size: 400% 100%;
    animation: bd-skeleton 1.4s ease infinite;
}

@keyframes bd-skeleton {
    0% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0 50%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .bd-skeleton {
        animation: none;
    }
}

/* ---------- 10. Layout helpers ---------- */

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

.bd-container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 16px 16px 40px;
}

.bd-divider {
    height: 1px;
    margin: var(--bd-gap-lg) 0;
    background: var(--bd-line);
    border: 0;
}

/* ---------- 11. Navigation ---------- */

.navbar {
    background: var(--bd-surface) !important;
    border-bottom: 1px solid var(--bd-line) !important;
}

.navbar-brand {
    color: var(--bd-ink) !important;
    font-weight: 800;
    font-size: 1.05rem;
}

.navbar .nav-link {
    color: var(--bd-ink-soft);
    font-weight: 600;
    font-size: .95rem;
}

.navbar .nav-link:hover,
.navbar .nav-link:focus {
    color: var(--bd-brand);
}

.navbar .nav-link.fw-semibold {
    color: var(--bd-brand);
}

.navbar .btn-light {
    background: var(--bd-surface-soft);
    border-color: var(--bd-line);
}

.mobile-header-actions a {
    color: var(--bd-ink);
}

.mobile-header-actions a:hover {
    color: var(--bd-brand);
}

/* Compact phone bottom bar: white surface, brand-blue active state,
   safe-area aware, and never taller than it needs to be. */

.mobile-bottom-nav {
    min-height: var(--bd-bottom-nav);
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom)) !important;
    background: var(--bd-surface) !important;
    border-top: 1px solid var(--bd-line) !important;
    box-shadow: 0 -4px 16px rgba(23, 34, 53, .07) !important;
}

.mobile-nav-item {
    gap: 2px !important;
    padding: 4px 2px !important;
    border-radius: var(--bd-radius-sm);
    color: var(--bd-muted) !important;
    font-size: 20px !important;
}

.mobile-nav-item small {
    font-size: .63rem !important;
    font-weight: 600;
    letter-spacing: .01em;
}

.mobile-nav-item.is-active {
    color: var(--bd-brand) !important;
    background-color: var(--bd-brand-soft) !important;
}

/* Reserve room for the fixed bar so it can never sit on top of the
   last row of content (buttons, prices, forms). */

@media (max-width: 991.98px) {
    main {
        padding-bottom: calc(
            var(--bd-bottom-nav) + 34px + env(safe-area-inset-bottom)
        ) !important;
    }
}

/* On very short screens (phone keyboard open) the bar would cover a
   focused field, so it steps out of the way. */

@media (max-width: 700px) and (max-height: 460px) {
    .mobile-bottom-nav {
        display: none;
    }
}

/* ---------- 12. Existing page components ---------- */

/* Product / business category tiles: readable on a phone (the old
   phone rule shrank the label to 9px) and consistent on desktop. */

.category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.category-tile {
    min-height: 138px;
    padding: 12px 8px 12px;
    border: 1px solid var(--bd-line);
    border-radius: var(--bd-radius-lg);
    box-shadow: var(--bd-shadow-sm);
    transition: box-shadow .15s ease, transform .15s ease;
}

.category-tile:hover {
    box-shadow: var(--bd-shadow);
    transform: translateY(-2px);
}

.category-tile strong {
    font-size: .85rem;
    font-weight: 700;
    text-align: center;
    line-height: 1.25;
}

.category-tile small {
    margin-top: 6px;
    padding: 3px 9px;
    border-radius: var(--bd-radius-pill);
    background: var(--bd-brand-soft);
    color: var(--bd-brand-dark);
    font-size: .68rem;
    font-weight: 600;
}

.category-art {
    width: 68px;
    height: 68px;
    margin-bottom: 8px;
    border-radius: var(--bd-radius);
    font-size: 32px;
}

.category-custom-image {
    width: 100%;
    height: 100%;
    border-radius: var(--bd-radius);
    object-fit: contain;
}

@media (min-width: 576px) {
    .category-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 14px;
    }
}

@media (min-width: 992px) {
    .category-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: var(--bd-gap);
    }
}

/* One radius, one shadow and one padding rhythm for every listing
   card on the site (products, dining, events, marketplace, orders). */

.product-card,
.beach-event-card,
.dining-card,
.order-card,
.mkt-card,
.mkt-detail-card,
.mkt-location-card,
.mkt-service-card {
    border-radius: var(--bd-radius-lg);
    overflow: hidden;
}

.card-title,
.mkt-card-name,
.bd-card-title {
    overflow-wrap: anywhere;
}

.card-title {
    font-size: 1rem;
    font-weight: 700;
}

.card-text {
    color: var(--bd-ink-soft);
    font-size: .9rem;
}

/* ---------- 13. Marketplace listing cards ---------- */

.mkt-page {
    padding-bottom: 24px;
}

.mkt-page-head h1 {
    font-size: var(--bd-h1);
    line-height: 1.2;
}

.mkt-page-head p {
    color: var(--bd-muted);
}

.mkt-block {
    margin-top: var(--bd-gap-lg);
}

.mkt-block-title {
    font-size: var(--bd-h2);
}

/* The compact card's own geometry lives in marketplace.css. Only the
   shared tokens are set here, scoped to the compact card so the old
   oversized-card rules are gone for good. */

.mkt-card--compact .mkt-card-name {
    font-size: .98rem;
    line-height: 1.25;
}

.mkt-card--compact .mkt-card-text {
    margin: 2px 0 0;
    font-size: .76rem;
    line-height: 1.35;
}

.mkt-card--compact .mkt-card-meta {
    font-size: .72rem;
    color: var(--bd-muted);
}

.mkt-card--compact .mkt-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
    padding-top: 0;
}

.mkt-card-actions .mkt-btn-reserve {
    color: #ffffff;
    border-color: var(--bd-brand);
    background: var(--bd-brand);
}

.mkt-card-actions .mkt-btn-whatsapp {
    color: #128c4b;
    border-color: #bfe3cd;
}

.mkt-badge-featured {
    background: #fff1dc;
    color: #a35b00;
}

/* Detail page photo(s): short and rounded, so the page never opens
   with a giant image. The two-photo carousel slides use the same
   height. */

.mkt-detail-image {
    height: 230px;
    aspect-ratio: auto;
    background: var(--bd-line-soft);
}

.mkt-detail-actions .btn {
    min-height: 40px;
    border-radius: var(--bd-radius-sm);
}

.mkt-category-tile {
    border-radius: var(--bd-radius-lg);
    border-color: var(--bd-line);
    box-shadow: var(--bd-shadow-sm);
}

.mkt-location-bar {
    border-radius: var(--bd-radius-lg);
    background: var(--bd-brand-soft);
    border-color: #d5e8fb;
}

/* ---------- 14. Homepage ---------- */

.home-shell {
    max-width: 1180px;
}

.hero-banner {
    border-radius: var(--bd-radius-lg);
}

.hero-banner h1 {
    letter-spacing: -.02em;
}

.benefit-strip {
    border-radius: var(--bd-radius-lg);
    border-color: var(--bd-line);
    box-shadow: var(--bd-shadow-sm);
}

.benefit-strip strong {
    font-size: .82rem;
}

.benefit-strip small {
    font-size: .74rem;
}

.home-search {
    border-radius: var(--bd-radius);
    border-color: var(--bd-line);
}

.home-search button {
    background: var(--bd-brand);
    border-radius: var(--bd-radius-sm);
    font-weight: 700;
}

/* ---------- 15. Responsive safety net ---------- */

@media (max-width: 700px) {
    .container,
    .bd-container {
        padding-left: 14px;
        padding-right: 14px;
    }

    .bd-page-head h1 {
        font-size: 1.4rem;
    }

    /* Long names, emails and URLs must never widen the page. */
    h1,
    h2,
    h3,
    p,
    .bd-card-title,
    .mkt-card-name,
    .bd-meta {
        overflow-wrap: anywhere;
    }
}

/* Nothing on a customer page should scroll sideways. */

html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

/* ---------- 16. Business detail actions ---------- */

.mkt-detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--bd-gap-sm);
    margin-top: 14px;
}

.mkt-detail-actions .btn {
    flex: 1 1 45%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: var(--bd-tap);
    border-radius: var(--bd-radius-sm);
    font-weight: 600;
}

/* Every action button stacks full width on a phone, so the row is easy
   to tap. */

@media (max-width: 700px) {
    .mkt-detail-actions .btn {
        flex: 1 1 100%;
    }
}

/* Dining / event card images keep the same picture box as every other
   listing card, so a row of cards never looks ragged. */

.dining-card-image,
.beach-event-card .card-img-top {
    width: 100%;
    aspect-ratio: 16 / 10;
    height: auto;
    object-fit: cover;
    object-position: center;
    background: var(--bd-line-soft);
}

div.dining-card-image {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    color: var(--bd-muted-soft);
}

/* ---------- 17. Location selector bar ---------- */

.mkt-location-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 14px;
    margin-bottom: 14px;
}

.mkt-location-current {
    font-size: .98rem;
}

.mkt-location-change {
    min-height: 40px;
    border-radius: var(--bd-radius-sm);
    border-color: var(--bd-brand);
    color: var(--bd-brand);
    font-weight: 600;
}

@media (max-width: 700px) {
    .mkt-location-bar {
        flex-wrap: wrap;
    }

    .mkt-location-change {
        flex: 1 1 100%;
    }
}
/* ---------- 17. Compact brand + browsing-location header ---------- */

/* The small header brand: the name on one line and the marketplace
   tagline under it, so the top bar stays short on a phone. */

.bd-brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding-top: 2px;
    padding-bottom: 2px;
}

.bd-brand-mark {
    font-size: 1.3rem;
    line-height: 1;
}

.bd-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
    font-size: 1.02rem;
    font-weight: 800;
    color: #0d6efd;
}

.bd-brand-text small {
    color: #7a8794;
    font-size: .58rem;
    font-weight: 600;
    letter-spacing: .01em;
}

/* The browsing-location chip sits in the phone header next to the
   search icon. It only opens the existing location modal. */

.bd-loc-chip {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    max-width: 40vw;
    padding: 4px 9px;
    border: 1px solid #e2eefa;
    border-radius: 999px;
    background: #f4f9ff;
    color: #17324d;
    font-size: .72rem;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
}

.bd-loc-chip-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bd-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 700px) {
    .bd-brand-text {
        font-size: .95rem;
    }
}

@media (min-width: 701px) {
    .bd-loc-chip {
        display: none;
    }
}
/* ---------- 18. Compact homepage feature strip ---------- */

/* The strip is a single very thin row so it never eats the phone
   screen the compact business cards need. */

.benefit-strip {
    margin-bottom: 12px;
    padding: 5px 4px;
}

.benefit-strip > div {
    gap: 6px;
    padding: 5px 7px;
}

.benefit-strip b {
    width: 24px;
    height: 24px;
    font-size: 13px;
}

.benefit-strip strong {
    font-size: .68rem;
    line-height: 1.15;
}

.benefit-strip small {
    font-size: .58rem;
    line-height: 1.15;
}
