/* ==========================================================================
   ZooSpace Feature Promo — v4 — Theme-Matched, Responsive
   Overrides PetsList .widget defaults (grey text, grey bg)
   Breakpoints: 900 / 640 / 480  (matching ZSAO)
   ========================================================================== */

/* ======================================================================
   THEME OVERRIDES — reset PetsList .widget wrapper
   .widget sets color:#91939d, .listing-sidebar .widget sets bg:#F6F9F9
   ====================================================================== */

.widget.widget_zfd_feature_promo,
.widget.zfd-feature-promo-widget {
    background: transparent !important;
    border: none !important;
    padding: 20px !important;
    color: #515167 !important;
    box-shadow: none !important;
}

.widget.widget_zfd_feature_promo .widget-title,
.widget.zfd-feature-promo-widget .widget-title {
    font-family: 'Baloo Bhaijaan 2', 'Plus Jakarta Sans', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: #070C3E !important;
    margin-bottom: 16px !important;
    padding-bottom: 12px;
    border-bottom: 2px solid #eef0f5;
    position: relative;
}

/* Override the teal underline from theme to match our style */
.widget.widget_zfd_feature_promo .widget-title::after,
.widget.zfd-feature-promo-widget .widget-title::after {
    display: none !important;
}

/* Ensure links inside our widget are properly colored */
.widget.widget_zfd_feature_promo a,
.widget.zfd-feature-promo-widget a {
    color: inherit;
}

/* ======================================================================
   Listing sidebar specific override
   .rtcl .listing-sidebar .widget adds bg:#F6F9F9, border, padding
   ====================================================================== */

.rtcl .listing-sidebar .widget.widget_zfd_feature_promo,
.rtcl .listing-sidebar .widget.zfd-feature-promo-widget {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    padding-bottom: 0 !important;
    margin-bottom: 24px !important;
}

/* Sidebar-widget-area override */
.sidebar-widget-area .widget.widget_zfd_feature_promo,
.sidebar-widget-area .widget.zfd-feature-promo-widget {
    background: transparent !important;
    border-bottom: none !important;
    padding: 20px !important;
}

/* --------------- Container --------------- */

.zfd-promo-sidebar {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* --------------- Section heading (inline promo) --------------- */

.zfd-inline-promo-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Baloo Bhaijaan 2', 'Plus Jakarta Sans', sans-serif;
    font-size: 1.05rem !important;
    font-weight: 700 !important;
    color: #070C3E !important;
    text-transform: none;
    letter-spacing: 0;
    margin: 0 0 4px !important;
    padding-bottom: 12px;
    border-bottom: 2px solid #eef0f5;
    line-height: 1.3;
}

.zfd-inline-promo-heading::before {
    content: '💡';
    font-size: 15px;
    flex-shrink: 0;
}

.zfd-inline-promo-heading::after {
    display: none;
}

/* ======================================================================
   CARD STYLE — colored bg, icon-left, white text
   ====================================================================== */

.zfd-promo-card.zfd-promo-cards {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    border: none;
    box-shadow:
        0 2px 8px rgba(0, 0, 0, .10),
        0 6px 20px rgba(0, 0, 0, .08);
    transition: transform .22s ease, box-shadow .22s ease;
    cursor: default;
}

.zfd-promo-card.zfd-promo-cards:hover {
    transform: translateY(-3px);
    box-shadow:
        0 4px 12px rgba(0, 0, 0, .12),
        0 14px 32px rgba(0, 0, 0, .14);
}

/* --- bg strip no longer needed, hide if present --- */
.zfd-promo-card.zfd-promo-cards .zfd-promo-card-bg {
    display: none;
}

/* --- content area — horizontal icon-left layout --- */
.zfd-promo-card-content {
    position: relative;
    z-index: 1;
    padding: 20px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

/* --- icon — white frosted circle, top-left --- */
.zfd-promo-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, .22);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    font-size: 22px;
    line-height: 1;
    flex-shrink: 0;
    transition: transform .2s ease, background .2s ease;
}

.zfd-promo-card:hover .zfd-promo-icon {
    transform: scale(1.08);
    background: rgba(255, 255, 255, .32);
}

/* --- text block — right of icon --- */
.zfd-promo-text {
    flex: 1;
    min-width: 0;
}

/* --- badge chip — inline, white/translucent --- */
.zfd-promo-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(255, 255, 255, .22) !important;
    color: #fff !important;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .5px;
    text-transform: uppercase;
    padding: 2px 9px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, .3);
    line-height: 1.4;
    margin-bottom: 8px;
    position: static;
}

.zfd-promo-badge::before {
    content: '●';
    font-size: 6px;
    color: #fff;
    animation: zfdPulse 2.4s ease-in-out infinite;
}

/* --- title — WHITE, high specificity --- */
.zfd-promo-card .zfd-promo-title,
.widget .zfd-promo-title,
h4.zfd-promo-title,
.zfd-promo-title {
    font-family: 'Baloo Bhaijaan 2', 'Plus Jakarta Sans', sans-serif;
    font-size: 15.5px;
    font-weight: 700;
    margin: 0 0 5px;
    color: #fff !important;
    line-height: 1.3;
    letter-spacing: 0;
    width: auto;
}

/* --- description — WHITE, max specificity to beat .widget p --- */
.zfd-promo-card .zfd-promo-card-content .zfd-promo-text .zfd-promo-desc,
.zfd-promo-card .zfd-promo-card-content .zfd-promo-text p.zfd-promo-desc,
.widget .zfd-promo-card .zfd-promo-desc,
.zfd-promo-card .zfd-promo-desc,
.widget .zfd-promo-desc,
.widget p.zfd-promo-desc,
p.zfd-promo-desc,
.zfd-promo-desc {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 13px;
    line-height: 1.55;
    margin: 0 0 14px;
    color: #fff !important;
    opacity: .92;
    width: auto;
}

/* --- CTA pill — white outline button --- */
.zfd-promo-cta,
.zfd-promo-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(255, 255, 255, .18) !important;
    color: #fff !important;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 12.5px;
    font-weight: 600;
    padding: 8px 18px;
    border-radius: 999px;
    text-decoration: none !important;
    border: 1.5px solid rgba(255, 255, 255, .4);
    cursor: pointer;
    letter-spacing: 0;
    line-height: 1;
    box-shadow: none;
    transition: background .18s ease, border-color .18s ease, transform .18s ease;
    -webkit-tap-highlight-color: transparent;
}

.zfd-promo-cta:hover,
.zfd-promo-cta-btn:hover {
    background: rgba(255, 255, 255, .32) !important;
    color: #fff !important;
    border-color: rgba(255, 255, 255, .6);
    transform: translateY(-1px);
    text-decoration: none !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .12);
}

.zfd-promo-cta:active,
.zfd-promo-cta-btn:active {
    transform: translateY(0);
    background: rgba(255, 255, 255, .38) !important;
}

/* --- dismiss — top-right, white --- */
.zfd-promo-dismiss {
    position: absolute;
    top: 12px;
    right: 12px;
    bottom: auto;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, .5) !important;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    font-size: 16px;
    line-height: 22px;
    text-align: center;
    cursor: pointer;
    opacity: 0;
    transition: opacity .2s ease, color .2s ease, background .2s ease;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

.zfd-promo-card:hover .zfd-promo-dismiss { opacity: 1; }

.zfd-promo-dismiss:hover {
    background: rgba(255, 255, 255, .2);
    color: #fff !important;
}

/* ======================================================================
   COMPACT STYLE — colored bg, tighter spacing
   ====================================================================== */

.zfd-promo-card.zfd-promo-compact {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    border: none;
    box-shadow:
        0 2px 8px rgba(0, 0, 0, .10),
        0 6px 20px rgba(0, 0, 0, .08);
    transition: transform .22s ease, box-shadow .22s ease;
}

.zfd-promo-card.zfd-promo-compact:hover {
    transform: translateY(-2px);
    box-shadow:
        0 4px 10px rgba(0, 0, 0, .12),
        0 10px 24px rgba(0, 0, 0, .12);
}

.zfd-promo-card.zfd-promo-compact .zfd-promo-card-bg { display: none; }

.zfd-promo-card.zfd-promo-compact .zfd-promo-card-content {
    padding: 16px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.zfd-promo-card.zfd-promo-compact .zfd-promo-icon {
    width: 40px; height: 40px; min-width: 40px;
    border-radius: 11px;
    font-size: 18px;
}

.zfd-promo-card.zfd-promo-compact .zfd-promo-title {
    font-size: 14px; margin: 0;
}

.zfd-promo-card.zfd-promo-compact .zfd-promo-badge {
    font-size: 9.5px; margin-bottom: 6px; padding: 2px 8px;
}

.zfd-promo-card.zfd-promo-compact .zfd-promo-desc {
    font-size: 12px; margin: 0 0 10px;
}

.zfd-promo-card.zfd-promo-compact .zfd-promo-cta,
.zfd-promo-card.zfd-promo-compact .zfd-promo-cta-btn {
    font-size: 11.5px; padding: 6px 14px;
}

.zfd-promo-card.zfd-promo-compact .zfd-promo-dismiss {
    top: 10px; right: 10px;
}

/* ======================================================================
   MINIMAL STYLE — clean divider list
   ====================================================================== */

.zfd-promo-card.zfd-promo-minimal {
    position: relative;
    background: transparent;
    border-bottom: 1px solid #eef0f5;
    padding-bottom: 14px;
    border-radius: 0;
    overflow: visible;
    transition: background .18s ease;
}

.zfd-promo-card.zfd-promo-minimal:last-child {
    border-bottom: none; padding-bottom: 0;
}

.zfd-promo-card.zfd-promo-minimal:hover { background: #f6f8fa; }

.zfd-promo-card.zfd-promo-minimal .zfd-promo-card-bg { display: none; }

.zfd-promo-card.zfd-promo-minimal .zfd-promo-card-content {
    padding: 10px 4px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    flex-wrap: nowrap;
}

.zfd-promo-card.zfd-promo-minimal .zfd-promo-icon {
    width: 36px; height: 36px;
    border-radius: 10px; font-size: 16px;
    margin: 0; flex-shrink: 0;
}

.zfd-promo-card.zfd-promo-minimal .zfd-promo-title {
    width: auto; font-size: 13.5px; font-weight: 700; margin: 0 0 2px;
}

.zfd-promo-card.zfd-promo-minimal .zfd-promo-badge {
    position: static; display: inline-flex;
    font-size: 9px; padding: 1px 6px;
    margin-left: 6px; vertical-align: middle; border-radius: 8px;
}

.zfd-promo-card.zfd-promo-minimal .zfd-promo-desc {
    font-size: 12px; margin: 0 0 6px; line-height: 1.5;
}

.zfd-promo-card.zfd-promo-minimal .zfd-promo-cta,
.zfd-promo-card.zfd-promo-minimal .zfd-promo-cta-btn {
    background: transparent !important; color: #02c5bd !important;
    border: none; padding: 0;
    font-size: 12px; font-weight: 700; border-radius: 0;
    box-shadow: none;
}

.zfd-promo-card.zfd-promo-minimal .zfd-promo-cta:hover,
.zfd-promo-card.zfd-promo-minimal .zfd-promo-cta-btn:hover {
    color: #019d97 !important; text-decoration: underline;
    background: transparent !important; transform: none; box-shadow: none;
}

.zfd-promo-card.zfd-promo-minimal .zfd-promo-dismiss {
    bottom: auto; top: 8px; right: 4px;
    width: 20px; height: 20px; font-size: 14px; line-height: 18px;
}

/* ======================================================================
   Context — org sidebar (340 px sticky column)
   ====================================================================== */

.zsao-content-sidebar .zfd-inline-promo {
    margin-top: 24px !important;
}

.zsao-content-sidebar .zfd-promo-card.zfd-promo-cards {
    border-radius: 16px;
    box-shadow:
        0 2px 10px rgba(0, 0, 0, .12),
        0 8px 24px rgba(0, 0, 0, .10);
}

.zsao-content-sidebar .zfd-promo-card-content {
    padding: 18px;
}

/* Context — listing sidebar */
.listing-sidebar .zfd-inline-promo {
    margin-top: 16px !important;
}

/* ======================================================================
   Slider — track, arrows, dots
   ====================================================================== */

.zfd-promo-slider {
    position: relative;
}

.zfd-promo-slider-track {
    position: relative;
    overflow: hidden;
    /* height set dynamically by JS */
}

/* --- Arrow buttons --- */
.zfd-promo-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, .25);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    color: #fff;
    font-size: 20px;
    font-weight: 300;
    line-height: 28px;
    text-align: center;
    cursor: pointer;
    opacity: 0;
    transition: opacity .2s ease, background .2s ease, transform .2s ease;
    -webkit-tap-highlight-color: transparent;
    padding: 0;
}

.zfd-promo-slider-track:hover .zfd-promo-arrow,
.zfd-promo-slider .zfd-promo-arrow:focus {
    opacity: 1;
}

.zfd-promo-arrow:hover {
    background: rgba(255, 255, 255, .45);
    transform: translateY(-50%) scale(1.1);
}

.zfd-promo-arrow:active {
    transform: translateY(-50%) scale(.95);
}

.zfd-promo-arrow-prev { left: 8px; }
.zfd-promo-arrow-next { right: 8px; }

/* --- Dot navigation --- */
.zfd-promo-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
}

.zfd-promo-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    padding: 0;
    background: #d0d5dd;
    cursor: pointer;
    transition: background .2s ease, transform .2s ease, width .2s ease;
    -webkit-tap-highlight-color: transparent;
}

.zfd-promo-dot.active {
    background: #02c5bd;
    width: 20px;
    border-radius: 10px;
}

.zfd-promo-dot:hover:not(.active) {
    background: #98a2b3;
    transform: scale(1.2);
}

/* ======================================================================
   Animations
   ====================================================================== */

@keyframes zfdPulse {
    0%, 100% { opacity: 1; }
    50%      { opacity: .25; }
}

/* ======================================================================
   RESPONSIVE  — matches ZSAO breakpoints: 900 / 640 / 480
   ====================================================================== */

/* ---- Tablet landscape & below ---- */
@media (max-width: 900px) {
    .zsao-content-sidebar .zfd-inline-promo,
    .listing-sidebar .zfd-inline-promo {
        margin-top: 20px !important;
    }

    .zfd-inline-promo-heading {
        font-size: .98rem !important;
    }

    .widget.widget_zfd_feature_promo,
    .widget.zfd-feature-promo-widget {
        padding: 16px !important;
    }
}

/* ---- Small tablets / large phones ---- */
@media (max-width: 640px) {
    .zfd-promo-card {
        min-width: 0;
        max-width: 100%;
        width: 100%;
    }

    .zfd-promo-card-content {
        padding: 16px;
        gap: 12px;
    }

    .zfd-promo-icon {
        width: 42px; height: 42px; min-width: 42px;
        border-radius: 12px;
        font-size: 19px;
    }

    .zfd-promo-title { font-size: 14.5px; }
    .zfd-promo-desc  { font-size: 12px; margin-bottom: 10px; }

    .zfd-promo-cta,
    .zfd-promo-cta-btn {
        font-size: 12px;
        padding: 7px 14px;
    }

    .zfd-promo-dismiss {
        top: 10px; right: 10px;
    }

    .zfd-promo-card.zfd-promo-compact .zfd-promo-card-content {
        padding: 14px;
    }
    .zfd-promo-card.zfd-promo-compact .zfd-promo-icon {
        width: 36px; height: 36px; min-width: 36px;
    }

    .widget.widget_zfd_feature_promo,
    .widget.zfd-feature-promo-widget {
        padding: 14px !important;
    }
}

/* ---- Phones ---- */
@media (max-width: 480px) {
    .zfd-promo-sidebar {
        gap: 10px;
    }

    .zfd-promo-card {
        min-width: 0;
        max-width: 100%;
        width: 100%;
    }

    .zfd-promo-card.zfd-promo-cards {
        border-radius: 14px;
    }

    .zfd-promo-card-content {
        padding: 14px;
        gap: 10px;
    }

    .zfd-promo-icon {
        width: 38px; height: 38px; min-width: 38px;
        border-radius: 10px;
        font-size: 17px;
    }

    .zfd-promo-title { font-size: 13.5px; }
    .zfd-promo-desc  { font-size: 11.5px; line-height: 1.5; margin-bottom: 8px; }

    .zfd-promo-cta,
    .zfd-promo-cta-btn {
        font-size: 11.5px;
        padding: 7px 12px;
    }

    .zfd-promo-dismiss {
        opacity: 1;
        top: 8px; right: 8px;
        width: 22px; height: 22px;
    }

    .zfd-promo-card.zfd-promo-compact { border-radius: 12px; }
    .zfd-promo-card.zfd-promo-compact .zfd-promo-card-content {
        padding: 12px 12px 12px 16px;
        gap: 8px;
    }
    .zfd-promo-card.zfd-promo-compact .zfd-promo-icon {
        width: 32px; height: 32px; font-size: 15px;
    }
    .zfd-promo-card.zfd-promo-compact .zfd-promo-title { font-size: 13px; }
    .zfd-promo-card.zfd-promo-compact .zfd-promo-cta,
    .zfd-promo-card.zfd-promo-compact .zfd-promo-cta-btn {
        width: auto;
    }

    .zfd-promo-card.zfd-promo-minimal .zfd-promo-card-content {
        padding: 8px 2px; gap: 10px;
    }
    .zfd-promo-card.zfd-promo-minimal .zfd-promo-icon {
        width: 32px; height: 32px; font-size: 15px;
    }

    .zsao-content-sidebar .zfd-inline-promo,
    .listing-sidebar .zfd-inline-promo {
        margin-top: 16px !important;
    }

    .zsao-content-sidebar .zfd-promo-card.zfd-promo-cards {
        border-radius: 14px;
    }

    .widget.widget_zfd_feature_promo,
    .widget.zfd-feature-promo-widget {
        padding: 12px !important;
    }
}

/* ---- Touch devices: always show arrows, no hover lift ---- */
@media (hover: none) and (pointer: coarse) {
    .zfd-promo-arrow {
        opacity: .7;
        width: 34px;
        height: 34px;
        font-size: 22px;
        line-height: 32px;
    }
    .zfd-promo-dismiss {
        opacity: .7;
    }
    .zfd-promo-card:hover,
    .zfd-promo-card.zfd-promo-cards:hover,
    .zfd-promo-card.zfd-promo-compact:hover {
        transform: none;
        box-shadow:
            0 2px 8px rgba(0, 0, 0, .10),
            0 6px 20px rgba(0, 0, 0, .08);
    }
    .zfd-promo-cta:hover,
    .zfd-promo-cta-btn:hover {
        transform: none;
        box-shadow: none;
    }
    .zfd-promo-cta:active,
    .zfd-promo-cta-btn:active {
        background: rgba(255, 255, 255, .35) !important;
    }
}
