/* ============================================================
   Adler Business Directory — Frontend Styles
   ============================================================ */

.abd-directory-wrap {
    --abd-primary: #2563eb;
    --abd-primary-light: #eff6ff;
    --abd-text: #1e293b;
    --abd-text-muted: #64748b;
    --abd-border: #e2e8f0;
    --abd-bg: #ffffff;
    --abd-bg-alt: #f8fafc;
    --abd-radius: 10px;
    --abd-shadow: 0 2px 8px rgba(0,0,0,0.08), 0 0 0 1px rgba(0,0,0,0.04);
    font-family: inherit;
    color: var(--abd-text);
    width: 100%;
    /* max-width is controlled by the shortcode max_width attribute.
       To override site-wide from a theme stylesheet, use:
       .abd-directory-wrap { max-width: 1400px; margin: 0 auto; } */
}

/* Normalize box-sizing within the directory so theme/builder resets don't break layout */
.abd-directory-wrap *,
.abd-directory-wrap *::before,
.abd-directory-wrap *::after {
    box-sizing: border-box;
}

/* ── Toolbar ─────────────────────────────────────────────── */
.abd-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.abd-search-wrap { flex: 1 1 100%; min-width: 200px; } /* search takes its own row; filters + toggles share the next */

.abd-search-input {
    width: 100%;
    padding: 9px 14px;
    border: 1.5px solid var(--abd-border);
    border-radius: 8px;
    font-size: 14px;
    transition: border-color .2s;
    background: var(--abd-bg);
}
.abd-search-input:focus {
    outline: none;
    border-color: var(--abd-primary);
    box-shadow: 0 0 0 3px rgba(37,99,235,0.12);
}

.abd-filters-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.abd-filter-select,
.abd-filter-input {
    padding: 8px 12px;
    border: 1.5px solid var(--abd-border);
    border-radius: 8px;
    font-size: 14px;
    background: var(--abd-bg);
    cursor: pointer;
}
.abd-filter-select:focus,
.abd-filter-input:focus {
    outline: none;
    border-color: var(--abd-primary);
}

.abd-btn-outline {
    padding: 8px 14px;
    border: 1.5px solid var(--abd-border);
    border-radius: 8px;
    background: transparent;
    font-size: 13px;
    cursor: pointer;
    color: var(--abd-text-muted);
    transition: all .15s;
}
.abd-btn-outline:hover {
    border-color: var(--abd-primary);
    color: var(--abd-primary);
}

/* Layout toggle */
.abd-layout-toggle {
    display: flex;
    gap: 4px;
    border: 1.5px solid var(--abd-border);
    border-radius: 8px;
    padding: 3px;
}
.abd-layout-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 30px;
    border: none;
    border-radius: 6px;
    background: transparent;
    cursor: pointer;
    color: var(--abd-text-muted);
    transition: all .15s;
}
.abd-layout-btn.active,
.abd-layout-btn:hover {
    background: var(--abd-primary);
    color: #fff;
}

/* Results bar */
.abd-results-bar {
    font-size: 13px;
    color: var(--abd-text-muted);
    margin-bottom: 16px;
}

/* ── Grid Layout ─────────────────────────────────────────── */
.abd-listings-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(3, 1fr);
}
.abd-listings-grid.abd-cols-2 { grid-template-columns: repeat(2, 1fr); }
.abd-listings-grid.abd-cols-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 900px) {
    .abd-listings-grid,
    .abd-listings-grid.abd-cols-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .abd-listings-grid,
    .abd-listings-grid.abd-cols-2,
    .abd-listings-grid.abd-cols-4 { grid-template-columns: 1fr; }
}

/* ── Premium Layouts (Pro) ───────────────────────────────── */
/* Two-class selectors, so they override the base grid/list rules
   without JS and without new templates. */

/* Grid → Masonry: Pinterest-style packing via CSS columns */
.abd-listings-grid.abd-grid-style-masonry {
    display: block;
    column-count: 3;
    column-gap: 20px;
}
.abd-listings-grid.abd-grid-style-masonry.abd-cols-2 { column-count: 2; }
.abd-listings-grid.abd-grid-style-masonry.abd-cols-4 { column-count: 4; }
.abd-listings-grid.abd-grid-style-masonry .abd-card {
    width: 100%;
    height: auto;        /* free the card to size to its content so masonry actually staggers */
    margin-bottom: 20px;
    break-inside: avoid;
    -webkit-column-break-inside: avoid;
}
@media (max-width: 900px) {
    .abd-listings-grid.abd-grid-style-masonry,
    .abd-listings-grid.abd-grid-style-masonry.abd-cols-4 { column-count: 2; }
}
@media (max-width: 600px) {
    .abd-listings-grid.abd-grid-style-masonry,
    .abd-listings-grid.abd-grid-style-masonry.abd-cols-2,
    .abd-listings-grid.abd-grid-style-masonry.abd-cols-4 { column-count: 1; }
}

/* Grid → Compact: denser cards, more on screen */
.abd-listings-grid.abd-grid-style-compact { gap: 12px; }
.abd-listings-grid.abd-grid-style-compact .abd-card-logo { height: 72px; padding: 8px; }
.abd-listings-grid.abd-grid-style-compact .abd-card-logo img { height: 56px; }
.abd-listings-grid.abd-grid-style-compact .abd-card-body { padding: 12px; }
.abd-listings-grid.abd-grid-style-compact .abd-card-title { font-size: 14px; margin-bottom: 4px; }
.abd-listings-grid.abd-grid-style-compact .abd-card-description { display: none; }

/* List → Staggered: alternating zigzag (logo left on odd rows, right on even) */
.abd-listings-list.abd-list-style-staggered .abd-list-item:nth-child(even) {
    flex-direction: row-reverse;
}

/* List → Striped: tasteful zebra table.
   Tightened edge-to-edge (rows touch, no gaps, no shadow, rounded outer corners,
   hairline dividers) so the striping reads clearly — with same-family shades so
   text never needs to flip. Light: white / soft gray. Dark: two dark shades. */

/* Tighten into a real table */
.abd-listings-list.abd-list-style-striped { gap: 0; overflow: hidden; border-radius: 10px; }
.abd-list-style-striped .abd-list-item {
    border-radius: 0 !important;
    box-shadow: none !important;
    border-bottom: 1px solid var(--abd-border);
}
.abd-list-style-striped .abd-list-item:last-child { border-bottom: none; }

/* Light mode: alternate white / soft light-gray (dark text throughout) */
.abd-list-style-striped .abd-list-item:nth-child(even) {
    background: #eef2f7;
}

/* Dark mode: alternate two dark shades (light text throughout) */
.abd-theme-dark .abd-list-style-striped .abd-list-item:nth-child(even) {
    background: #0f172a;
}

/* ── Color Theme: Dark (Pro) ─────────────────────────────── */
/* Dark recolors the CARDS only — the toolbar, search, and page background are
   left alone (per founder: "just the cards go dark, not the background behind them").
   Overriding the CSS variables on the card scope cascades to everything inside it. */
.abd-theme-dark .abd-card,
.abd-theme-dark .abd-list-item,
.abd-theme-dark .abd-single-card {
    --abd-text: #e5e7eb;
    --abd-text-muted: #94a3b8;
    --abd-border: #334155;
    --abd-bg: #1e293b;
    --abd-bg-alt: #0f172a;
    --abd-primary-light: #1e3a5f;
    background: #1e293b;
    color: #e5e7eb;
}
/* flat/bordered card styles hardcode a light background — override for dark */
.abd-theme-dark .abd-card-flat .abd-card,
.abd-theme-dark .abd-card-flat .abd-list-item { background: #1e293b; }
/* keep shadow cards legible sitting on a light page */
.abd-theme-dark .abd-card-shadow .abd-card,
.abd-theme-dark .abd-card-shadow .abd-list-item {
    box-shadow: 0 0 0 1px rgba(255,255,255,0.06), 0 6px 18px rgba(0,0,0,0.35);
}
.abd-theme-dark .abd-category-tag { background: #1e3a5f; color: #93c5fd; }

/* Group the view + theme toggles together (theme toggle sits beside grid/list) */
.abd-toolbar-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

/* ── Light/Dark toggle button ────────────────────────────── */
.abd-theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 36px;
    border: 1.5px solid var(--abd-border);
    border-radius: 8px;
    background: transparent;
    cursor: pointer;
    color: var(--abd-text-muted);
    transition: all .15s;
}
.abd-theme-toggle:hover { border-color: var(--abd-primary); color: var(--abd-primary); }
.abd-theme-toggle .abd-theme-icon-sun { display: none; }
.abd-theme-dark .abd-theme-toggle .abd-theme-icon-moon { display: none; }
.abd-theme-dark .abd-theme-toggle .abd-theme-icon-sun  { display: block; }

/* ── Card ────────────────────────────────────────────────── */
.abd-card {
    position: relative;
    background: var(--abd-bg);
    border-radius: var(--abd-radius);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform .15s, box-shadow .15s;
}

/* Card styles — Elevated (shadow) */
.abd-listings-grid.abd-card-shadow .abd-card,
.abd-listings-list.abd-card-shadow .abd-list-item {
    box-shadow: 0 4px 16px rgba(0,0,0,0.10), 0 1px 3px rgba(0,0,0,0.06);
}
.abd-listings-grid.abd-card-shadow .abd-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.14), 0 2px 6px rgba(0,0,0,0.08);
}
.abd-listings-list.abd-card-shadow .abd-list-item:hover {
    box-shadow: 0 6px 22px rgba(0,0,0,0.12);
}

/* Card styles — Bordered */
.abd-listings-grid.abd-card-bordered .abd-card,
.abd-listings-list.abd-card-bordered .abd-list-item {
    border: 2px solid #cbd5e1;
    box-shadow: none;
}
.abd-listings-grid.abd-card-bordered .abd-card:hover,
.abd-listings-list.abd-card-bordered .abd-list-item:hover {
    border-color: var(--abd-primary);
    box-shadow: 0 0 0 3px rgba(37,99,235,0.12);
    transform: translateY(-1px);
}

/* Card styles — Flat */
.abd-listings-grid.abd-card-flat .abd-card,
.abd-listings-list.abd-card-flat .abd-list-item {
    background: #f1f5f9;
    box-shadow: none;
}
.abd-listings-grid.abd-card-flat .abd-card:hover,
.abd-listings-list.abd-card-flat .abd-list-item:hover {
    background: #e2e8f0;
    box-shadow: none;
    transform: none;
}

.abd-card:hover { transition: transform .15s, box-shadow .15s, background .15s, border-color .15s; }

.abd-listings-grid .abd-card--featured,
.abd-listings-list .abd-card--featured {
    border: 2px solid var(--abd-primary);
}

.abd-badge-featured {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--abd-primary);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 20px;
    letter-spacing: .03em;
    text-transform: uppercase;
}

.abd-card-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100px;
    background: var(--abd-bg-alt);
    border-bottom: 1px solid var(--abd-border);
    padding: 12px;
}
.abd-card-logo img {
    width: 100%;
    height: 80px;
    object-fit: contain;
}
.abd-logo-placeholder {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--abd-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 22px;
    font-weight: 700;
    text-transform: uppercase;
}

.abd-card-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.abd-card-title {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 6px;
    line-height: 1.3;
    color: var(--abd-text);
}

.abd-card-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 8px;
}
.abd-category-tag {
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 20px;
    background: var(--abd-primary-light);
    color: var(--abd-primary);
    text-transform: uppercase;
    letter-spacing: .04em;
}

.abd-contact-name {
    font-size: 13px;
    color: var(--abd-text-muted);
    margin: 0 0 10px;
}

.abd-card-details { margin-bottom: 10px; }

.abd-detail-row {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    font-size: 13px;
    color: var(--abd-text-muted);
    margin-bottom: 5px;
}
.abd-detail-row a { color: var(--abd-primary); text-decoration: none; }
.abd-detail-row a:hover { text-decoration: underline; }
.abd-icon {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    margin-top: 1px;
    color: var(--abd-text-muted);
}

.abd-card-description {
    font-size: 13px;
    color: var(--abd-text-muted);
    margin: 0 0 10px;
    line-height: 1.5;
}

/* ── Social Icons ────────────────────────────────────────── */
.abd-social-links,
.abd-list-social {
    display: flex;
    gap: 8px;
    margin-top: auto;
    padding-top: 10px;
    flex-wrap: wrap;
}

.abd-social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--abd-bg-alt);
    border: 1px solid var(--abd-border);
    color: var(--abd-text-muted);
    text-decoration: none;
    transition: all .15s;
}
.abd-social-icon:hover { border-color: var(--abd-primary); color: var(--abd-primary); background: var(--abd-primary-light); }
.abd-social-facebook:hover  { color: #1877f2; border-color: #1877f2; background: #e7f0fd; }
.abd-social-instagram:hover { color: #e1306c; border-color: #e1306c; background: #fce4ec; }
.abd-social-twitter:hover   { color: #000; border-color: #000; background: #f5f5f5; }
.abd-social-linkedin:hover  { color: #0a66c2; border-color: #0a66c2; background: #e8f0fe; }
.abd-social-youtube:hover   { color: #ff0000; border-color: #ff0000; background: #fce8e8; }
.abd-social-tiktok:hover    { color: #000; border-color: #000; background: #f5f5f5; }

/* ── List Layout ─────────────────────────────────────────── */
.abd-listings-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.abd-list-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: var(--abd-bg);
    border-radius: var(--abd-radius);
    padding: 16px;
    transition: transform .15s, box-shadow .15s, background .15s, border-color .15s;
}
.abd-list-item--featured { border-left: 4px solid var(--abd-primary); }

.abd-list-logo {
    flex-shrink: 0;
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--abd-bg-alt);
    border-radius: 8px;
    border: 1px solid var(--abd-border);
    overflow: hidden;
}
.abd-list-logo img { width: 100%; height: 100%; object-fit: contain; }

.abd-list-content { flex: 1; min-width: 0; }

.abd-list-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
}
.abd-list-title {
    font-size: 16px;
    font-weight: 700;
    margin: 0;
    color: var(--abd-text);
}

.abd-list-description {
    font-size: 13px;
    color: var(--abd-text-muted);
    margin: 4px 0 8px;
    line-height: 1.5;
}

.abd-list-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.abd-list-meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: var(--abd-text-muted);
}
.abd-list-meta-item a { color: var(--abd-primary); text-decoration: none; }
.abd-list-meta-item a:hover { text-decoration: underline; }

.abd-list-social {
    flex-shrink: 0;
    flex-direction: column;
    gap: 6px;
    justify-content: center;
}

@media (max-width: 600px) {
    .abd-list-item { flex-wrap: wrap; }
    .abd-list-social { flex-direction: row; width: 100%; }
}

/* ── Pagination ──────────────────────────────────────────── */
.abd-pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 24px;
    justify-content: center;
}
.abd-page-btn {
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border: 1.5px solid var(--abd-border);
    border-radius: 8px;
    background: var(--abd-bg);
    font-size: 14px;
    cursor: pointer;
    transition: all .15s;
    color: var(--abd-text);
}
.abd-page-btn:hover { border-color: var(--abd-primary); color: var(--abd-primary); }
.abd-page-btn.active { background: var(--abd-primary); border-color: var(--abd-primary); color: #fff; }

/* ── Loading / No Results ────────────────────────────────── */
.abd-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    font-size: 15px;
    color: var(--abd-text-muted);
}
.abd-spinner {
    width: 24px;
    height: 24px;
    border: 3px solid var(--abd-border);
    border-top-color: var(--abd-primary);
    border-radius: 50%;
    animation: abd-spin .6s linear infinite;
    margin-right: 10px;
}
@keyframes abd-spin { to { transform: rotate(360deg); } }

.abd-no-results {
    padding: 60px 20px;
    text-align: center;
    color: var(--abd-text-muted);
    font-size: 15px;
}

/* ── Card title link ─────────────────────────────────────── */
.abd-card-title a,
.abd-list-title a {
    color: var(--abd-text);
    text-decoration: none;
}
.abd-card-title a:hover,
.abd-list-title a:hover {
    color: var(--abd-primary);
}

/* ── View Details button ─────────────────────────────────── */
.abd-view-details {
    display: inline-block;
    margin-top: auto;
    padding-top: 12px;
    font-size: 13px;
    font-weight: 600;
    color: var(--abd-primary);
    text-decoration: none;
    letter-spacing: .02em;
}
.abd-view-details:hover { text-decoration: underline; }

/* ── Single Listing Page ─────────────────────────────────── */
.abd-single-wrap {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
}

.abd-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--abd-text-muted);
    text-decoration: none;
    margin-bottom: 20px;
    transition: color .15s;
}
.abd-back-link:hover { color: var(--abd-primary); }

.abd-single-card {
    background: var(--abd-bg);
    border-radius: var(--abd-radius);
    box-shadow: 0 4px 20px rgba(0,0,0,0.08), 0 1px 4px rgba(0,0,0,0.05);
    overflow: hidden;
}
.abd-single--featured { border-top: 4px solid var(--abd-primary); }

/* Header — logo left, title right */
.abd-single-header {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 24px 32px;
    border-bottom: 1px solid var(--abd-border);
    background: var(--abd-bg);
}

.abd-single-logo {
    flex-shrink: 0;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid var(--abd-border);
    border-radius: 12px;
    overflow: hidden;
    padding: 10px;
}
.abd-single-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.abd-logo-placeholder--lg {
    width: 100px;
    height: 100px;
    font-size: 36px;
}

.abd-single-title-wrap { flex: 1; min-width: 0; }

.abd-single-header-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    flex-shrink: 0;
    text-align: right;
}
.abd-status-lg {
    font-size: 13px;
    padding: 5px 14px;
}
.abd-header-phone {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 17px;
    font-weight: 700;
    color: var(--abd-text);
    text-decoration: none;
    white-space: nowrap;
}
.abd-header-phone:hover { color: var(--abd-primary); }
.abd-header-website {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: var(--abd-primary);
    text-decoration: none;
}
.abd-header-website:hover { text-decoration: underline; }

.abd-badge-featured--inline {
    position: static;
    display: inline-block;
    margin-bottom: 8px;
}

.abd-single-title {
    font-size: 28px;
    font-weight: 800;
    margin: 0 0 10px;
    color: var(--abd-text);
    line-height: 1.2;
}

.abd-single-title-wrap .abd-single-socials {
    margin-top: 14px;
    padding-top: 0;
}

/* Body — contact left | hours right (or full width if no hours) */
.abd-single-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}
.abd-single-body--full {
    grid-template-columns: 1fr;
}
.abd-single-body--full .abd-single-contact {
    border-right: none;
}

.abd-single-contact {
    padding: 24px 32px;
    border-right: 1px solid var(--abd-border);
}

.abd-single-description {
    padding: 24px 32px;
    border-top: 1px solid var(--abd-border);
}

.abd-single-section-title {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--abd-text-muted);
    margin: 0 0 16px;
    border-bottom: 1px solid var(--abd-border);
    padding-bottom: 8px;
}

.abd-single-description p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--abd-text);
    margin: 0;
    white-space: pre-line;
}

@media (max-width: 640px) {
    .abd-single-header { flex-direction: column; align-items: center; text-align: center; }
    .abd-single-body   { grid-template-columns: 1fr; }
    .abd-single-contact { border-right: none; border-bottom: 1px solid var(--abd-border); }
    .abd-single-logo   { width: 100px; height: 100px; }
    .abd-single-title  { font-size: 22px; }
}

/* ============================================================
   Widgets
   ============================================================ */

/* ── Search Box Widget ────────────────────────────────────── */
.abd-search-widget-row {
    display: flex;
    gap: 6px;
}

.abd-search-widget-input {
    flex: 1;
    padding: 9px 12px;
    border: 1.5px solid #d1d5db;
    border-radius: 7px;
    font-size: 14px;
    min-width: 0;
    transition: border-color .2s;
}
.abd-search-widget-input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37,99,235,0.12);
}

.abd-search-widget-btn {
    flex-shrink: 0;
    padding: 9px 16px;
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 7px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s;
    white-space: nowrap;
}
.abd-search-widget-btn:hover { background: #1d4ed8; }

/* ── Featured Listings Widget ─────────────────────────────── */
.abd-featured-widget-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.abd-featured-widget-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 0;
    border-bottom: 1px solid #f1f5f9;
}
.abd-featured-widget-item:last-child { border-bottom: none; }

.abd-featured-widget-logo {
    width: 44px;
    height: 44px;
    object-fit: cover;
    border-radius: 7px;
    flex-shrink: 0;
    border: 1px solid #e2e8f0;
}

.abd-featured-widget-initials {
    width: 44px;
    height: 44px;
    border-radius: 7px;
    background: #eff6ff;
    color: #2563eb;
    font-size: 18px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.abd-featured-widget-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.abd-featured-widget-name {
    font-weight: 600;
    font-size: 14px;
    color: #111827;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.abd-featured-widget-name:hover { color: #2563eb; text-decoration: underline; }

.abd-featured-widget-city,
.abd-featured-widget-phone {
    font-size: 12px;
    color: #6b7280;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.abd-featured-empty {
    color: #9ca3af;
    font-size: 13px;
    font-style: italic;
    margin: 0;
}

/* ── Open/Closed Status Badge ────────────────────────────── */
.abd-status-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 20px;
    line-height: 1;
}
.abd-status-open   { background: #dcfce7; color: #16a34a; }
.abd-status-closed { background: #fee2e2; color: #dc2626; }

.abd-card-status {
    position: absolute;
    top: 10px;
    right: 10px;
}

/* ── Business Hours (right column of body) ────────────────── */
.abd-single-hours {
    padding: 24px 28px;
    border-left: 1px solid var(--abd-border);
}

/* ── Map (full width standalone section) ─────────────────── */
.abd-single-map {
    padding: 24px 32px;
    border-top: 1px solid var(--abd-border);
}

.abd-hours-display {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.abd-hours-display tr { border-bottom: 1px solid var(--abd-border); }
.abd-hours-display tr:last-child { border-bottom: none; }
.abd-hours-today { background: var(--abd-primary-light); font-weight: 600; }
.abd-hours-today .abd-hours-day { color: var(--abd-primary); }
.abd-hours-day  { padding: 7px 8px 7px 0; white-space: nowrap; }
.abd-hours-time { padding: 7px 0; color: var(--abd-text-muted); text-align: right; }
.abd-hours-closed { color: #dc2626; font-style: italic; }

.abd-single-section-title .abd-status-badge {
    vertical-align: middle;
    margin-left: 8px;
    font-size: 10px;
}

.abd-map-wrap {
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--abd-border);
    margin-bottom: 10px;
}
.abd-map-wrap iframe { display: block; }

.abd-directions-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--abd-primary);
    text-decoration: none;
}
.abd-directions-link:hover { text-decoration: underline; }

@media (max-width: 640px) {
    .abd-single-body   { grid-template-columns: 1fr; }
    .abd-single-hours  { border-left: none; border-top: 1px solid var(--abd-border); }
}

/* ── Contact Form (single listing) ──────────────────────── */
.abd-single-contact-form {
    padding: 28px 32px;
    border-top: 1px solid var(--abd-border);
}

.abd-contact-form .abd-form-row {
    margin-bottom: 16px;
}

.abd-contact-form label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--abd-text);
    margin-bottom: 5px;
}

.abd-required { color: #ef4444; margin-left: 2px; }
.abd-optional { font-weight: 400; color: var(--abd-text-muted); font-size: 12px; }

.abd-contact-form input[type="text"],
.abd-contact-form input[type="email"],
.abd-contact-form input[type="tel"],
.abd-contact-form textarea {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid var(--abd-border);
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    color: var(--abd-text);
    background: #fff;
    box-sizing: border-box;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.abd-contact-form input:focus,
.abd-contact-form textarea:focus {
    outline: none;
    border-color: var(--abd-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.abd-contact-form textarea {
    resize: vertical;
    min-height: 110px;
}

.abd-form-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.abd-cf-submit {
    background: var(--abd-primary);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 10px 22px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, opacity 0.15s;
}

.abd-cf-submit:hover  { background: #1d4ed8; }
.abd-cf-submit:disabled { opacity: 0.6; cursor: not-allowed; }

.abd-cf-status {
    font-size: 13px;
    font-weight: 500;
}

.abd-cf-success { color: #16a34a; }
.abd-cf-error   { color: #dc2626; }

.abd-community-tag {
    display: inline-block;
    font-size: 11px;
    color: #6b7280;
    font-style: italic;
    margin-top: 2px;
}
