/* Kidzamania Step 2 — reusable All Listings / Category / Region browse page */

.v17-browse-main{background:#fff;color:#2f2a44}
.v17-browse-hero{position:relative;overflow:hidden;padding:42px 0 38px;background:linear-gradient(135deg,#f7f1ff 0%,#fff4f8 46%,#eef8ff 100%);border-bottom:1px solid rgba(64,32,141,.08)}
.v17-browse-hero:before,.v17-browse-hero:after{content:"";position:absolute;border-radius:999px;pointer-events:none;opacity:.6}
.v17-browse-hero:before{width:220px;height:220px;right:7%;top:-130px;background:#ffd9e8}
.v17-browse-hero:after{width:150px;height:150px;right:23%;bottom:-105px;background:#dfe6ff}
.v17-breadcrumbs{position:relative;z-index:1;display:flex;align-items:center;gap:8px;margin-bottom:13px;font-size:13px;color:#766f8e}
.v17-breadcrumbs a{color:#6a5b97;text-decoration:none}.v17-breadcrumbs a:hover{color:#ff3f87}.v17-breadcrumbs i{font-size:9px;color:#aaa2bd}
.v17-browse-hero-copy{position:relative;z-index:1;max-width:820px}
.v17-browse-hero h1{margin:0;color:#40208d;font-family:Raleway,Arial,sans-serif;font-weight:700;font-size:40px;line-height:1.12;letter-spacing:-.7px}
.v17-browse-hero p{margin:12px 0 0;max-width:760px;color:#655e78;font-size:16px;line-height:1.65}

.v17-browse-content{padding:38px 0 72px}
.v17-browse-layout{display:grid;grid-template-columns:280px minmax(0,1fr);gap:34px;align-items:start}
.v17-filter-toggle{display:none}
.v17-filter-panel{position:sticky;top:92px;border:1px solid #ece8f4;border-radius:18px;background:#fff;box-shadow:0 10px 30px rgba(50,34,92,.07);overflow:hidden}
.v17-filter-panel-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;padding:20px 20px 17px;background:linear-gradient(135deg,#f5efff,#fff5f9);border-bottom:1px solid #eee9f6}
.v17-filter-panel-heading span{display:block;margin-bottom:3px;color:#8c82a2;font-size:11px;font-weight:700;letter-spacing:.08em;text-transform:uppercase}
.v17-filter-panel-heading h2{margin:0;color:#40208d;font-family:Raleway,Arial,sans-serif;font-size:23px;line-height:1;font-weight:700}
.v17-filter-panel-heading a{font-size:12px;font-weight:700;color:#ff3f87;text-decoration:none}
.v17-filter-form{padding:19px}
.v17-filter-group{margin:0 0 19px;padding:0;border:0;min-width:0}
.v17-filter-group>label,.v17-filter-group>legend{display:block;width:auto;margin:0 0 8px;padding:0;color:#433d53;font-size:13px;font-weight:700}
.v17-filter-group input[type="search"],.v17-filter-group input[type="text"],.v17-filter-group input[type="number"],.v17-filter-group select{width:100%;height:43px;border:1px solid #ddd7e8;border-radius:10px;background:#fff;color:#413b50;font:inherit;font-size:13px;outline:none;transition:border-color .18s,box-shadow .18s}
.v17-filter-group select{padding:0 34px 0 12px}.v17-filter-group input:focus,.v17-filter-group select:focus{border-color:#9c80dc;box-shadow:0 0 0 3px rgba(114,76,194,.1)}
.v17-filter-input-icon{position:relative}.v17-filter-input-icon i{position:absolute;left:12px;top:50%;transform:translateY(-50%);color:#9a90ab;font-size:14px}.v17-filter-input-icon input{padding:0 12px 0 36px}
.v17-radio-row{display:flex!important;align-items:center;gap:9px;margin:0 0 9px!important;color:#625b70!important;font-weight:600!important;cursor:pointer}.v17-radio-row input{accent-color:#6e49c7}.v17-radio-row span{display:flex;align-items:center;gap:7px}.v17-radio-row i{color:#8c6fd0}
.v17-price-inputs{display:grid;grid-template-columns:1fr 1fr;gap:9px}.v17-price-inputs>div{position:relative}.v17-price-inputs span{position:absolute;left:11px;top:50%;transform:translateY(-50%);font-size:13px;color:#8f879d}.v17-price-inputs input{padding-left:24px!important}
.v17-apply-filters{display:flex;width:100%;height:45px;align-items:center;justify-content:center;gap:8px;border:0;border-radius:11px;background:#ff3f87;color:#fff;font-size:13px;font-weight:700;cursor:pointer;box-shadow:0 8px 18px rgba(255,63,135,.2);transition:transform .18s,box-shadow .18s}.v17-apply-filters:hover{transform:translateY(-1px);box-shadow:0 10px 22px rgba(255,63,135,.26)}

.v17-results-column{min-width:0}.v17-results-toolbar{min-height:46px;display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:17px}.v17-results-count{display:flex;align-items:baseline;gap:6px;color:#6c6579;font-size:14px}.v17-results-count strong{color:#40208d;font-family:Raleway,Arial,sans-serif;font-size:22px}.v17-sort-form{display:flex;align-items:center;gap:9px}.v17-sort-form label{font-size:12px;font-weight:700;color:#777080}.v17-sort-form select{height:39px;padding:0 34px 0 12px;border:1px solid #e1dce9;border-radius:9px;background:#fff;color:#4a4456;font-size:12.5px}
.v17-active-filters{display:flex;flex-wrap:wrap;align-items:center;gap:7px;margin:-2px 0 18px}.v17-active-filters span{display:inline-flex;align-items:center;gap:5px;padding:6px 9px;border-radius:999px;background:#f5f1fb;color:#5c4a85;font-size:11.5px;font-weight:600}.v17-active-filters a{margin-left:2px;color:#ff3f87;font-size:11.5px;font-weight:700;text-decoration:none}

.v17-browse-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}
.v17-browse-card{min-width:0;border:1px solid #ebe7f1;border-radius:16px;background:#fff;overflow:hidden;box-shadow:0 8px 24px rgba(48,35,82,.055);transition:transform .2s,box-shadow .2s,border-color .2s}.v17-browse-card:hover{transform:translateY(-3px);border-color:#ded5ee;box-shadow:0 14px 30px rgba(48,35,82,.1)}
.v17-browse-card-image{position:relative;display:block;aspect-ratio:1/1;overflow:hidden;background:linear-gradient(135deg,#f4eeff,#edf8ff);text-decoration:none}.v17-browse-card-image img{width:100%;height:100%;display:block;object-fit:cover;transition:transform .35s}.v17-browse-card:hover .v17-browse-card-image img{transform:scale(1.025)}
.v17-card-placeholder{display:grid;width:100%;height:100%;place-items:center;color:#9c82d5;font-size:42px;background:radial-gradient(circle at 30% 25%,#fff 0,#f6efff 38%,#edf7ff 100%)}
.v17-card-format{position:absolute;left:12px;top:12px;display:inline-flex;align-items:center;gap:5px;padding:6px 9px;border-radius:999px;font-size:10.5px;font-weight:700;box-shadow:0 4px 12px rgba(25,20,42,.12)}.v17-card-format.is-online{background:#efe8ff;color:#6340b4}.v17-card-format.is-inperson{background:#e8f8f1;color:#277553}
.v17-browse-card-body{display:flex;min-height:230px;flex-direction:column;padding:15px 16px 14px}.v17-card-category{margin-bottom:7px;color:#ff3f87;font-size:10.5px;font-weight:800;letter-spacing:.055em;text-transform:uppercase;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.v17-browse-card h2{display:-webkit-box;overflow:hidden;-webkit-line-clamp:2;-webkit-box-orient:vertical;min-height:44px;margin:0;font-family:Raleway,Arial,sans-serif;font-size:17px;line-height:1.28;font-weight:700}.v17-browse-card h2 a{color:#3f2d74;text-decoration:none}.v17-browse-card h2 a:hover{color:#ff3f87}.v17-card-provider{margin:7px 0 0;color:#8b8494;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.v17-card-details{display:grid;gap:6px;margin-top:13px}.v17-card-details span{display:flex;align-items:flex-start;gap:7px;color:#6c6577;font-size:11.5px;line-height:1.35}.v17-card-details i{margin-top:1px;color:#9a7ad2;font-size:12px}
.v17-card-bottom{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:auto;padding-top:14px;border-top:1px solid #f0edf4}.v17-card-bottom strong{color:#40208d;font-size:12.5px;line-height:1.25}.v17-card-bottom>a{display:inline-flex;align-items:center;gap:4px;flex:0 0 auto;color:#ff3f87;font-size:11.5px;font-weight:700;text-decoration:none}

.v17-empty-results{padding:66px 30px;text-align:center;border:1px dashed #dcd4e9;border-radius:18px;background:#fcfaff}.v17-empty-icon{display:grid;width:64px;height:64px;margin:0 auto 16px;place-items:center;border-radius:50%;background:#f2eaff;color:#7653c5;font-size:27px}.v17-empty-results h2{margin:0;color:#40208d;font-family:Raleway,Arial,sans-serif;font-size:24px}.v17-empty-results p{margin:9px auto 18px;max-width:460px;color:#777080;font-size:14px}.v17-empty-results a{display:inline-flex;padding:10px 16px;border-radius:9px;background:#ff3f87;color:#fff;font-size:12.5px;font-weight:700;text-decoration:none}

.v17-pagination{display:flex;align-items:center;justify-content:center;gap:6px;margin-top:34px}.v17-pagination a,.v17-pagination span{display:grid;width:36px;height:36px;place-items:center;border-radius:9px;font-size:12.5px;text-decoration:none}.v17-pagination a{border:1px solid #e4deeb;background:#fff;color:#5f5670}.v17-pagination a:hover{border-color:#bca9df;color:#5b38ad}.v17-pagination a.is-current{border-color:#6542ba;background:#6542ba;color:#fff;font-weight:700}.v17-page-ellipsis{color:#aaa2b7}

@media(max-width:1199.98px){.v17-browse-layout{grid-template-columns:250px minmax(0,1fr);gap:25px}.v17-browse-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:991.98px){.v17-browse-hero{padding:34px 0 31px}.v17-browse-hero h1{font-size:34px}.v17-browse-content{padding-top:26px}.v17-filter-toggle{display:inline-flex;align-items:center;gap:8px;margin-bottom:16px;padding:10px 14px;border:1px solid #dfd8ea;border-radius:10px;background:#fff;color:#4c397f;font-weight:700;font-size:13px}.v17-browse-layout{display:block}.v17-filter-panel{display:none;position:static;margin-bottom:22px}.v17-filter-panel.is-open{display:block}.v17-filter-form{display:grid;grid-template-columns:1fr 1fr;column-gap:18px}.v17-format-group{grid-row:span 2}.v17-apply-filters{align-self:end;margin-bottom:19px}.v17-results-toolbar{margin-top:4px}}
@media(max-width:767.98px){.v17-browse-hero{padding:27px 0 25px}.v17-browse-hero h1{font-size:30px}.v17-browse-hero p{font-size:14px;line-height:1.55}.v17-breadcrumbs{font-size:12px}.v17-filter-form{display:block}.v17-results-toolbar{align-items:flex-start;flex-direction:column;gap:11px}.v17-sort-form{width:100%;justify-content:space-between}.v17-sort-form select{min-width:160px}.v17-browse-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.v17-browse-card-body{min-height:220px;padding:13px}.v17-browse-card h2{font-size:15px;min-height:39px}.v17-card-bottom{align-items:flex-start;flex-direction:column}.v17-card-bottom>a{align-self:flex-end}.v17-browse-content{padding-bottom:52px}}
@media(max-width:575.98px){.v17-browse-grid{grid-template-columns:1fr}.v17-browse-card{display:grid;grid-template-columns:124px minmax(0,1fr)}.v17-browse-card-image{height:100%;min-height:190px;aspect-ratio:auto}.v17-browse-card-body{min-height:190px}.v17-card-category{margin-bottom:5px}.v17-browse-card h2{font-size:15px}.v17-card-details{margin-top:9px}.v17-card-bottom{padding-top:10px;flex-direction:row;align-items:center}.v17-card-bottom>a{align-self:auto}.v17-card-format{left:8px;top:8px;padding:5px 7px;font-size:9.5px}.v17-pagination{margin-top:27px}.v17-browse-hero h1{font-size:27px}}
@media(max-width:399.98px){.v17-browse-card{grid-template-columns:108px minmax(0,1fr)}.v17-browse-card-image{min-height:182px}.v17-browse-card-body{min-height:182px;padding:11px}.v17-card-details span{font-size:10.8px}.v17-card-bottom strong{font-size:11.5px}.v17-card-bottom>a{font-size:10.8px}}


/* ==========================================================
   STEP 2 V2.2 - STYLED CATEGORY TREE PICKER
   Replaces the browser-native Category <select> popup so
   parent/child hierarchy and Kidzamania styling are consistent.
   ========================================================== */

.v17-category-picker{
    position:relative;
}

.v17-category-picker-button{
    display:flex;
    width:100%;
    height:43px;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    padding:0 12px;
    border:1px solid #ddd7e8;
    border-radius:10px;
    background:#fff;
    color:#413b50;
    font:inherit;
    font-size:13px;
    text-align:left;
    cursor:pointer;
    transition:border-color .18s,box-shadow .18s;
}

.v17-category-picker-button:hover{
    border-color:#cfc4df;
}

.v17-category-picker-button:focus{
    outline:none;
    border-color:#9c80dc;
    box-shadow:0 0 0 3px rgba(114,76,194,.1);
}

.v17-category-picker-button i{
    flex:0 0 auto;
    color:#8d82a1;
    font-size:11px;
    transition:transform .18s;
}

.v17-category-picker.is-open .v17-category-picker-button i{
    transform:rotate(180deg);
}

.v17-category-picker-menu{
    position:absolute;
    z-index:60;
    left:0;
    right:0;
    top:calc(100% + 6px);
    display:none;
    max-height:390px;
    overflow-y:auto;
    padding:7px;
    border:1px solid #e3ddec;
    border-radius:12px;
    background:#fff;
    box-shadow:0 16px 38px rgba(48,35,82,.17);
}

.v17-category-picker.is-open .v17-category-picker-menu{
    display:block;
}

.v17-category-picker-option{
    position:relative;
    display:flex;
    width:100%;
    min-height:36px;
    align-items:center;
    gap:8px;
    padding:8px 31px 8px 10px;
    border:0;
    border-radius:8px;
    background:transparent;
    color:#514a5e;
    font:inherit;
    font-size:12.5px;
    line-height:1.25;
    text-align:left;
    cursor:pointer;
}

.v17-category-picker-option:hover{
    background:#f8f4fd;
    color:#40208d;
}

.v17-category-picker-option.is-parent{
    margin-top:4px;
    color:#40208d;
    font-weight:700;
}

.v17-category-picker-option.is-parent:first-of-type{
    margin-top:0;
}

.v17-category-picker-option.is-child{
    padding-left:29px;
    color:#625b70;
    font-weight:500;
}

.v17-category-tree-line{
    position:absolute;
    left:15px;
    top:50%;
    width:8px;
    height:1px;
    background:#c7bdd8;
}

.v17-category-picker-option.is-selected{
    background:#f3edff;
    color:#5c38ad;
    font-weight:700;
}

.v17-category-picker-option>.bi-check2{
    position:absolute;
    right:10px;
    color:#ff3f87;
    font-size:15px;
}

.v17-category-picker-all{
    margin-bottom:5px;
    border-bottom:1px solid #f0ecf4;
    border-radius:8px 8px 3px 3px;
    color:#534b64;
    font-weight:700;
}

/* Keep the custom menu contained and usable in the mobile filter panel. */
@media(max-width:991.98px){
    .v17-category-picker-menu{
        max-height:330px;
    }
}

@media(max-width:575.98px){
    .v17-category-picker-menu{
        max-height:300px;
    }
}


/* ==========================================================
   STEP 2 V2.3 - CATEGORY HIERARCHY FIX
   SQL now supplies an explicit IsTopLevel flag.  The visual
   difference between parent and child rows is also stronger.
   ========================================================== */

.v17-category-picker-option.is-parent{
    margin:7px 0 2px;
    min-height:38px;
    padding-left:12px;
    background:#fbf8ff;
    color:#40208d;
    font-weight:700;
}

.v17-category-picker-option.is-parent:hover{
    background:#f4edff;
}

.v17-category-picker-option.is-child{
    min-height:34px;
    padding-left:43px;
    color:#625b70;
    font-weight:500;
}

.v17-category-parent-dot{
    flex:0 0 7px;
    width:7px;
    height:7px;
    border-radius:50%;
    background:#b89ee8;
}

.v17-category-tree-branch{
    position:absolute;
    left:22px;
    top:0;
    bottom:0;
    width:12px;
    border-left:1px solid #ddd3ec;
}

.v17-category-tree-branch::after{
    content:"";
    position:absolute;
    left:0;
    top:50%;
    width:10px;
    border-top:1px solid #cfc3e1;
}

.v17-category-picker-option.is-child:last-child .v17-category-tree-branch{
    bottom:50%;
}

/* Old v2.2 line is no longer used. */
.v17-category-tree-line{
    display:none !important;
}


/* ==========================================================
   STEP 2 V2.4 - CARD PROPORTIONS + CATEGORY COLOR POLISH
   ========================================================== */

/*
   Cards contain different amounts of migrated information.  Do not force
   every card body to the same tall minimum height; let the card end after
   the information it actually has.  The grid still keeps rows aligned at
   the top, so missing fields create breathing room BETWEEN cards instead
   of a large empty block INSIDE the card.
*/
.v17-browse-grid{
    align-items:start;
}

.v17-browse-card{
    align-self:start;
}

/* Landscape artwork is a better proportion for a 3-column discovery card. */
.v17-browse-card-image{
    aspect-ratio:16/10;
}

/* Remove the old tall forced body. */
.v17-browse-card-body{
    min-height:0;
}

/* Footer follows the available information naturally. */
.v17-card-bottom{
    margin-top:15px;
}

/*
   Category hierarchy uses the same pink accent family as the main
   Categories navigation instead of introducing a separate purple
   parent-category treatment.
*/
.v17-category-picker-option.is-parent{
    background:#fff7fa;
    color:#ff3f87;
}

.v17-category-picker-option.is-parent:hover{
    background:#fff0f6;
    color:#e92f74;
}

.v17-category-parent-dot{
    background:#ff77aa;
}

.v17-category-picker-option.is-parent.is-selected{
    background:#ffeaf3;
    color:#e92f74;
}

/* Keep child rows neutral so the hierarchy remains easy to scan. */
.v17-category-picker-option.is-child{
    color:#625b70;
}

.v17-category-picker-option.is-child.is-selected{
    background:#f5efff;
    color:#5c38ad;
}

/* Tablet cards should also stay compact. */
@media(max-width:767.98px){
    .v17-browse-card-body{
        min-height:0;
    }
}

/*
   Small phones intentionally keep the existing horizontal card layout;
   the image fills the left column there instead of using the desktop
   landscape ratio.
*/
@media(max-width:575.98px){
    .v17-browse-card-image{
        aspect-ratio:auto;
    }
    .v17-browse-card-body{
        min-height:0;
    }
}


/* ==========================================================
   STEP 2 V2.5 - EQUAL CARD HEIGHTS + CLEAN CATEGORY MENU
   ========================================================== */

/* ----------------------------------------------------------
   LISTING CARDS
   ---------------------------------------------------------- */

/*
   Keep equal card heights in each grid row, but standardize the
   variable content instead of creating a large empty metadata block.
*/
.v17-browse-grid{
    align-items:stretch;
}

.v17-browse-card{
    align-self:stretch;
    display:flex;
    height:100%;
    flex-direction:column;
}

.v17-browse-card-image{
    flex:0 0 auto;
    aspect-ratio:16/10;
}

/* Physical location is now a small image badge. */
.v17-card-location-badge{
    position:absolute;
    left:12px;
    bottom:11px;
    display:inline-flex;
    max-width:calc(100% - 24px);
    align-items:center;
    gap:5px;
    padding:5px 8px;
    overflow:hidden;
    border:1px solid rgba(255,255,255,.75);
    border-radius:999px;
    background:rgba(255,255,255,.92);
    box-shadow:0 3px 10px rgba(35,27,54,.12);
    color:#5f5670;
    font-size:10.5px;
    font-weight:600;
    line-height:1;
    white-space:nowrap;
    text-overflow:ellipsis;
}

.v17-card-location-badge i{
    flex:0 0 auto;
    color:#9a7ad2;
}

/*
   The standardized body has:
   category -> two-line title slot -> provider slot -> one age slot -> footer.
   That produces equal cards without the old large empty area.
*/
.v17-browse-card-body{
    display:flex;
    flex:1 1 auto;
    min-height:0;
    flex-direction:column;
}

.v17-browse-card h2{
    min-height:44px;
}

.v17-card-provider{
    min-height:16px;
}

.v17-card-details{
    min-height:18px;
    margin-top:10px;
}

.v17-card-bottom{
    margin-top:auto;
    padding-top:12px;
}

/* ----------------------------------------------------------
   CATEGORY PICKER
   Match the clean header Categories menu:
   white background, neutral text, pink only on hover/selection.
   Indentation alone communicates child hierarchy.
   ---------------------------------------------------------- */

.v17-category-picker-menu{
    padding:8px 0;
    border:1px solid #ececf0;
    border-radius:5px;
    background:#fff;
    box-shadow:0 4px 18px rgba(0,0,0,.12);
}

.v17-category-picker-option,
.v17-category-picker-option.is-parent,
.v17-category-picker-option.is-child,
.v17-category-picker-all{
    min-height:33px;
    margin:0;
    border:0;
    border-radius:0;
    background:#fff;
    color:#686b73;
    font-size:13px;
    font-weight:400;
}

.v17-category-picker-option{
    padding:7px 28px 7px 16px;
}

.v17-category-picker-option.is-parent{
    padding-left:16px;
    font-weight:500;
}

.v17-category-picker-option.is-child{
    padding-left:34px;
    color:#737780;
    font-weight:400;
}

/* No colored rows, dots, or hierarchy connector lines. */
.v17-category-parent-dot,
.v17-category-tree-branch,
.v17-category-tree-line{
    display:none !important;
}

.v17-category-picker-option:hover,
.v17-category-picker-option.is-parent:hover,
.v17-category-picker-option.is-child:hover,
.v17-category-picker-option.is-selected,
.v17-category-picker-option.is-parent.is-selected,
.v17-category-picker-option.is-child.is-selected,
.v17-category-picker-all.is-selected{
    background:#fff;
    color:#ff3f87;
}

.v17-category-picker-option>.bi-check2{
    right:12px;
    color:#ff3f87;
    font-size:14px;
}

.v17-category-picker-all{
    margin-bottom:2px;
    border-bottom:1px solid #f1eef4;
    font-weight:500;
}

/* On phones the horizontal card layout keeps its existing image behavior. */
@media(max-width:575.98px){
    .v17-browse-card{
        height:auto;
    }

    .v17-browse-card-image{
        aspect-ratio:auto;
    }

    .v17-card-location-badge{
        left:8px;
        bottom:8px;
        max-width:calc(100% - 16px);
        padding:4px 7px;
        font-size:9.5px;
    }
}


/* ==========================================================
   STEP 2 V2.6 - FORMAT MOVED INTO CARD BODY
   ========================================================== */

/* The image now carries only the physical location badge. */
.v17-card-format{
    display:none !important;
}

/*
   Format + age share one compact metadata row.
   A minimum height keeps card bottoms aligned even when age data is missing.
*/
.v17-card-info-row{
    display:flex;
    min-height:28px;
    align-items:center;
    gap:8px;
    margin-top:10px;
    overflow:hidden;
}

.v17-card-format-body{
    display:inline-flex;
    flex:0 0 auto;
    align-items:center;
    gap:5px;
    padding:5px 8px;
    border-radius:999px;
    font-size:10.5px;
    font-weight:700;
    line-height:1;
    white-space:nowrap;
}

.v17-card-format-body.is-online{
    background:#efe8ff;
    color:#6340b4;
}

.v17-card-format-body.is-inperson{
    background:#e8f8f1;
    color:#277553;
}

.v17-card-age{
    display:flex;
    min-width:0;
    align-items:center;
    gap:5px;
    overflow:hidden;
    color:#6c6577;
    font-size:11.5px;
    line-height:1.25;
    white-space:nowrap;
    text-overflow:ellipsis;
}

.v17-card-age i{
    flex:0 0 auto;
    color:#9a7ad2;
    font-size:12px;
}

/* Old age-details container is no longer used on browse cards. */
.v17-card-details{
    min-height:0;
    margin-top:0;
}

/*
   Keep the footer aligned after moving the format into the body.
*/
.v17-card-bottom{
    margin-top:auto;
}

@media(max-width:575.98px){
    .v17-card-info-row{
        gap:6px;
        margin-top:8px;
    }

    .v17-card-format-body{
        padding:4px 7px;
        font-size:9.75px;
    }

    .v17-card-age{
        font-size:10.5px;
    }
}


/* ==========================================================
   STEP 3 V1.4 - LISTING REVIEW SUMMARY ON BROWSE CARDS
   ========================================================== */
.v17-card-review-summary{
    display:flex;
    min-height:18px;
    align-items:center;
    gap:5px;
    margin-top:7px;
    color:#777080;
    font-size:11px;
    font-weight:600;
    line-height:1.2;
}

.v17-card-review-score{
    display:inline-flex;
    align-items:center;
    gap:3px;
    color:#432b7b;
    font-weight:800;
}

.v17-card-review-star{
    color:#f3a51c;
    font-size:12px;
    line-height:1;
}

.v17-card-review-count{
    color:#777080;
}

@media(max-width:575.98px){
    .v17-card-review-summary{
        margin-top:5px;
        font-size:10.25px;
    }
}

/* Step 5A v1.6 provider-scoped browse navigation */
.v17-provider-browse-exit{margin-top:12px!important}.v17-provider-browse-exit a{display:inline-flex;align-items:center;gap:7px;font-weight:700;text-decoration:none}.v17-provider-filter-remove{display:inline-flex;align-items:center;margin-left:4px;color:inherit;text-decoration:none}.v17-provider-filter-remove:hover{opacity:.7}

/* ==========================================================
   STEP 5C V1.0 - STRUCTURED ACTIVITY FILTERS / CARD METADATA
   ========================================================== */
.v17-check-row{
    display:flex!important;
    align-items:center;
    gap:8px;
    margin:0 0 10px!important;
    color:#625b70!important;
    font-size:12.5px!important;
    font-weight:600!important;
    cursor:pointer;
}
.v17-check-row input{flex:0 0 auto;accent-color:#6e49c7}
.v17-check-row span{display:inline-flex;align-items:center;gap:6px}
.v17-check-row i{color:#7655bd}

.v17-card-format-body.is-hybrid{
    background:#fff1dc;
    color:#9b6214;
}

.v17-provider-verified{
    display:inline-flex;
    align-items:center;
    gap:3px;
    margin-left:4px;
    color:#5a42a4;
    font-size:10.5px;
    font-weight:700;
}
.v17-provider-verified i{color:#7052c2;font-size:11px}

.v17-card-schedule{
    display:flex;
    min-height:18px;
    min-width:0;
    align-items:center;
    gap:6px;
    margin-top:5px;
    overflow:hidden;
    color:#6c6577;
    font-size:11px;
    line-height:1.25;
    white-space:nowrap;
    text-overflow:ellipsis;
}
.v17-card-schedule i{
    flex:0 0 auto;
    color:#9a7ad2;
    font-size:11px;
}

/*
   Keep the compact card proportions from Step 2 v2.5/v2.6.
   Do NOT force a tall body just because schedule metadata may be present.
   The grid already stretches cards within a row and the footer uses margin-top:auto.
*/

@media(max-width:575.98px){
    .v17-provider-verified{font-size:9.75px}
    .v17-card-schedule{margin-top:4px;font-size:10.25px}
}

/* ==========================================================
   STEP 5C v1.2 - SHOW FULL SCHEDULE TEXT
   ========================================================== */
/*
   Long recurring schedules must remain readable. The previous
   single-line nowrap/ellipsis rule clipped values such as
   "Mon, Tue, Wed, Thu, Fri, Sat, Sun · 9:00 AM–10:00 AM ET".
   Allow the schedule to wrap naturally while keeping the calendar
   icon aligned with the first line.
*/
.v17-card-schedule{
    align-items:flex-start;
    min-height:0;
    overflow:visible;
    white-space:normal;
    text-overflow:clip;
    line-height:1.35;
}
.v17-card-schedule i{
    margin-top:1px;
}

/* ==========================================================
   STEP 5C v1.3 - MOBILE CARD BODY VISIBILITY FIX
   ========================================================== */
/*
   Later desktop card rules were overriding the older phone grid rule.
   Because the phone image also had height:100% and the card clips overflow,
   the image could fill the whole card and hide the information body.

   Re-assert the complete phone layout at the END of the stylesheet so the
   image and information body always share the card correctly.
*/
@media(max-width:575.98px){
    .v17-browse-card{
        display:grid;
        grid-template-columns:124px minmax(0,1fr);
        height:auto;
        align-items:stretch;
    }

    .v17-browse-card-image{
        width:100%;
        height:auto;
        min-height:190px;
        aspect-ratio:auto;
        align-self:stretch;
    }

    .v17-browse-card-body{
        display:flex;
        min-width:0;
        min-height:0;
        padding:13px;
        flex-direction:column;
    }
}

@media(max-width:399.98px){
    .v17-browse-card{
        grid-template-columns:108px minmax(0,1fr);
    }

    .v17-browse-card-image{
        min-height:182px;
    }

    .v17-browse-card-body{
        padding:11px;
    }
}

/* ==========================================================
   STEP 5C v1.4 - MOBILE CARDS: IMAGE TOP / INFO BELOW
   ========================================================== */
/*
   Final mobile behavior:
   - one listing card per row
   - full-width image on top
   - all listing information underneath
   - no forced card-body whitespace
   - long schedules may wrap normally
*/
@media(max-width:767.98px){
    .v17-browse-grid{
        grid-template-columns:1fr;
        gap:16px;
    }

    .v17-browse-card{
        display:flex;
        width:100%;
        height:auto;
        flex-direction:column;
        align-items:stretch;
    }

    .v17-browse-card-image{
        display:block;
        width:100%;
        height:auto;
        min-height:0;
        aspect-ratio:16/10;
        align-self:auto;
    }

    .v17-browse-card-body{
        display:flex;
        width:100%;
        min-width:0;
        min-height:0;
        padding:14px;
        flex-direction:column;
    }

    .v17-card-bottom{
        margin-top:auto;
    }
}

@media(max-width:575.98px){
    .v17-browse-card{
        display:flex;
        grid-template-columns:none;
        flex-direction:column;
    }

    .v17-browse-card-image{
        width:100%;
        height:auto;
        min-height:0;
        aspect-ratio:16/10;
    }

    .v17-browse-card-body{
        min-height:0;
        padding:14px;
    }

    .v17-card-bottom{
        flex-direction:row;
        align-items:center;
    }

    .v17-card-bottom>a{
        align-self:auto;
    }
}

@media(max-width:399.98px){
    .v17-browse-card{
        grid-template-columns:none;
    }

    .v17-browse-card-image{
        min-height:0;
        aspect-ratio:16/10;
    }

    .v17-browse-card-body{
        padding:12px;
    }
}

