/* ==========================================================================
   NadPoint — "Find Your Area Vendors"
   Homepage carousel + standing directory page.
   Colour/shape values are driven by CSS custom properties set inline from
   the admin Style panel (see templates/cards/area_vendors.php) — the
   values below are the fallback defaults if none are set yet.
   ========================================================================== */

.ndp-av-wrap {
    --av-bg: linear-gradient(135deg, #fdf6e3, #f3ece0);
    --av-card-bg: #ffffff;
    --av-card-border: #e8e1d3;
    --av-card-radius: 16px;
    --av-accent: #c59b27;
    --av-title-color: #1b3022;

    background: var(--av-bg);
    border-radius: 20px;
    padding: 36px 28px 30px;
    position: relative;
    overflow: hidden;
}

/* ── Carousel shell ─────────────────────────────────────────────────── */
.ndp-av-carousel-shell {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ndp-av-track {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 6px 4px 14px;
    flex: 1;
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.ndp-av-track::-webkit-scrollbar { display: none; }

.ndp-av-arrow {
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--av-card-border);
    background: var(--av-card-bg);
    color: var(--av-title-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
}
.ndp-av-arrow:hover { background: var(--av-accent); color: #fff; transform: scale(1.08); }
.ndp-av-arrow svg { width: 18px; height: 18px; }

/* ── Dots ───────────────────────────────────────────────────────────── */
.ndp-av-dots {
    display: flex;
    justify-content: center;
    gap: 7px;
    margin-top: 6px;
}
.ndp-av-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(0,0,0,0.15);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all 0.25s ease;
}
.ndp-av-dot.is-active {
    width: 22px;
    border-radius: 4px;
    background: var(--av-accent);
}

/* ── Card ───────────────────────────────────────────────────────────── */
.ndp-av-card {
    flex: 0 0 auto;
    width: 270px;
    scroll-snap-align: start;
    background: var(--av-card-bg);
    border: 1px solid var(--av-card-border);
    border-radius: var(--av-card-radius);
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(20,20,20,0.06);
    transition: transform 0.28s ease, box-shadow 0.28s ease;
    text-decoration: none;
    display: block;
}
.ndp-av-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 34px rgba(20,20,20,0.14);
}

.ndp-av-card-visual {
    position: relative;
    height: 128px;
    background: linear-gradient(135deg, #efe9da, #e2dbc9);
}
.ndp-av-banner {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.ndp-av-banner--fallback { object-fit: contain; padding: 20px; background: #fff; }
.ndp-av-banner--blank { width: 100%; height: 100%; }

.ndp-av-avatar-frame {
    position: absolute;
    left: 16px;
    bottom: -26px;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    border: 3px solid var(--av-card-bg);
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.18);
    background: #fff;
}
.ndp-av-avatar-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }

.ndp-av-badge {
    position: absolute;
    top: 10px;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    backdrop-filter: blur(4px);
}
.ndp-av-badge--top {
    left: 10px;
    background: linear-gradient(135deg, #f4c542, #c59b27);
    color: #2c1f00;
}
.ndp-av-badge--hours {
    right: 10px;
    background: rgba(255,255,255,0.92);
    color: #555;
}
.ndp-av-badge--hours.is-open { color: #146c34; }
.ndp-av-badge--hours.is-closed { color: #a12b2b; }

.ndp-av-card-body {
    padding: 36px 16px 18px;
}
.ndp-av-store-name {
    margin: 0 0 6px;
    font-size: 16px;
    font-weight: 700;
    color: var(--av-title-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ndp-av-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 12.5px;
    color: #7a7367;
    margin-bottom: 14px;
    min-height: 17px;
}
.ndp-av-meta-row i { color: var(--av-accent); margin-right: 3px; }

.ndp-av-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: var(--av-accent);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 13.5px;
    padding: 10px 14px;
    border-radius: 10px;
    transition: filter 0.2s ease, transform 0.2s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ndp-av-card:hover .ndp-av-cta { filter: brightness(1.08); transform: translateX(2px); }

/* ── Directory CTA row (under the carousel) ────────────────────────── */
.ndp-av-directory-cta-row {
    display: flex;
    justify-content: center;
    margin-top: 22px;
}
.ndp-av-directory-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--av-title-color);
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 14.5px;
    padding: 13px 26px;
    border-radius: 30px;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
    box-shadow: 0 8px 22px rgba(0,0,0,0.15);
}
.ndp-av-directory-cta:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(0,0,0,0.2); }

/* ==========================================================================
   Standing directory page (/shop-section/area-vendors/)
   ========================================================================== */
.ndp-av-directory-subtitle {
    color: #6d6a63;
    margin-top: -6px;
    margin-bottom: 22px;
}

.ndp-av-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: flex-end;
    background: #fff;
    border: 1px solid #ece7da;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 6px 18px rgba(20,20,20,0.05);
    margin-bottom: 22px;
}
.ndp-av-step {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1 1 170px;
    min-width: 150px;
    transition: opacity 0.2s ease;
}
.ndp-av-step.is-disabled { opacity: 0.45; }
.ndp-av-step label {
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #8a8477;
}
.ndp-av-step-select {
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid #ded7c6;
    background: #fbfaf6;
    font-size: 14px;
    color: #2b2a27;
}
.ndp-av-step-select:disabled { cursor: not-allowed; }

.ndp-av-reset-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f4f1e8;
    border: 1px solid #ded7c6;
    border-radius: 10px;
    padding: 10px 16px;
    font-size: 13.5px;
    font-weight: 600;
    color: #55503f;
    cursor: pointer;
    height: fit-content;
}
.ndp-av-reset-btn:hover { background: #ece7d8; }

.ndp-av-breadcrumb {
    font-size: 13.5px;
    color: #7a7367;
    margin-bottom: 18px;
}
.ndp-av-breadcrumb strong { color: var(--av-title-color, #1b3022); }

.ndp-av-directory-prompt {
    text-align: center;
    padding: 60px 20px;
    color: #9a9384;
    font-size: 15px;
}
.ndp-av-directory-prompt i { display: block; font-size: 30px; margin-bottom: 10px; color: #c9c2ac; }

.ndp-av-directory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 22px 20px;
    margin-top: 6px;
}
.ndp-av-directory-grid .ndp-av-card { width: 100%; scroll-snap-align: unset; }

.ndp-av-load-more-btn {
    display: block;
    margin: 26px auto 4px;
    background: #fff;
    border: 1px solid #ded7c6;
    border-radius: 30px;
    padding: 12px 28px;
    font-weight: 700;
    font-size: 14px;
    color: #1b3022;
    cursor: pointer;
    transition: background 0.2s ease;
}
.ndp-av-load-more-btn:hover { background: #f4f1e8; }

/* ── Responsive ─────────────────────────────────────────────────────── */
@media (max-width: 782px) {
    .ndp-av-wrap { padding: 26px 16px 22px; }
    .ndp-av-card { width: 210px; }
    .ndp-av-arrow { width: 36px; height: 36px; }
    .ndp-av-filter-bar { flex-direction: column; align-items: stretch; }
    .ndp-av-step { min-width: 0; }
    .ndp-av-reset-btn { align-self: flex-start; }
    .ndp-av-directory-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 16px 14px; }
}
