/* Vishwakarma Shaadi list (Views/Shaadi/Index.cshtml), laid out like the business directory (owner's request,
   5 Dec 2026): the search on top in the centre, one line under it, then the cards with a dark first card to add a
   profile. Needs css/shaadi.css (the .sh colours, cards, fields and buttons). */

/* The search bar: who you are looking for, state, Filters, Search (simplified for phones, 5 Dec 2026) */
.sh-findrow { position: relative; margin: 0 0 40px; }   /* breathing space before the list */
.sh-find { display: flex; align-items: center; gap: 4px; max-width: 820px; margin: 0 auto; padding: 5px; border: 1px solid var(--sh-line); border-radius: 999px; background: #fff; }   /* 52 px high, like the business search */
.sh-find:focus-within { border-color: var(--vs-card-line-hover, #d9cfc3); }
.sh-find-sel { position: relative; display: flex; flex: 1 1 0; align-items: center; min-width: 0; margin: 0; }
.sh-find-sel + .sh-find-sel { border-left: 1px solid var(--sh-line); }
.sh-find-sel > i { position: absolute; left: 18px; font-size: 16px; color: var(--sh-muted); pointer-events: none; }
.sh-find-sel select { width: 100%; height: 40px; padding: 0 12px 0 44px; border: 0; border-radius: 999px; background-color: transparent; font-size: 15px; color: var(--sh-ink); cursor: pointer; }
.sh-find-sel select:focus { outline: none; background-color: var(--sh-field); }
.sh .sh-find-more { display: inline-flex; flex: none; align-items: center; gap: 8px; height: 40px; padding: 0 18px; border: 0; border-left: 1px solid var(--sh-line); background: transparent; font-size: 15px; font-weight: 700; color: var(--sh-ink); white-space: nowrap; cursor: pointer; }
.sh .sh-find-more:hover, .sh .sh-find-more[aria-expanded="true"] { color: var(--sh-red-ink); }
.sh-find-n { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--sh-red); font-size: 12px; font-weight: 800; color: #fff; }
.sh .sh-find .sh-find-go { flex: none; gap: 8px; height: 40px; padding: 0 24px; }

/* the Filters panel: under the bar on wide screens */
.sh-more { margin-top: 10px; border: 1px solid var(--sh-line); border-radius: var(--sh-radius); background: #fff; }
.sh-more[hidden] { display: none; }
.sh-more-head { display: none; }
.sh-more-body { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px 18px; padding: 20px 22px 6px; }   /* the panel is as wide as the cards; the bar stays 820 px */
.sh-more .sh-f { margin: 0; }
.sh-more-checks { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 24px; grid-column: 1 / -1; }
.sh-more-checks .sh-check { margin: 6px 0; }
.sh-more-act { display: flex; justify-content: flex-end; align-items: center; gap: 20px; padding: 14px 22px 18px; }
.sh .sh-more-act .sh-btn { height: 44px; padding: 0 26px; }

.sh .sh-clear { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; color: var(--sh-red-ink); }
.sh .sh-clear:hover { color: var(--sh-ink); }
.sh-list .sh-join { margin-top: 0; }

/* the dark first card, like the business directory's "List your business" */
.sh-card.sh-add-card { border-color: var(--vs-band, #2b211b); background: var(--vs-band, #2b211b); text-align: center; }
.sh-card.sh-add-card:hover { border-color: var(--vs-band-hover, #382b23); background: var(--vs-band-hover, #382b23); }
.sh-card-band.sh-add-band { background: rgba(255, 255, 255, .07); }
.sh-av.sh-add-av { border-color: var(--vs-band, #2b211b); background: var(--vs-btn-primary, #e11d2e); color: #fff; font-size: 30px; }
.sh-add-card:hover .sh-av.sh-add-av { border-color: var(--vs-band-hover, #382b23); background: var(--vs-btn-primary-hover, #c4161f); }
.sh-add-card .sh-card-body { align-items: center; }
.sh .sh-add-card .sh-name, .sh .sh-add-card .sh-name:hover { color: #fff; }
.sh-add-link::after { content: ""; position: absolute; inset: 0; z-index: 1; }   /* the whole card opens it */
.sh-add-card .sh-line { color: rgba(255, 255, 255, .62); }
.sh-add-text { margin: 6px 0 0; font-size: 13.5px; line-height: 1.5; color: rgba(255, 255, 255, .85); }
.sh-add-foot { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: var(--vs-card-btn-h, 42px); margin-top: auto; padding-top: 12px; font-size: 13.5px; font-weight: 700; color: #fff; }

@media (max-width: 1199px) {
    .sh-more-body { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 991px) {
    .sh-more-body { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
    /* phones: the bar is two rows (looking for / state, then Filters / Search) */
    .sh-find { display: grid; grid-template-columns: 1fr 1fr; gap: 0; max-width: none; padding: 0; border-radius: 18px; overflow: hidden; }
    .sh-find-sel { border-bottom: 1px solid var(--sh-line); }
    .sh-find-sel select { height: 50px; padding: 0 10px 0 16px; border-radius: 0; font-size: 15px; }
    .sh-find-sel > i { display: none; }   /* room for the full text */
    .sh .sh-find-more { justify-content: center; height: 54px; border-left: 0; }
    .sh .sh-find .sh-find-go { height: 44px; margin: 5px 5px 5px 0; justify-content: center; }
    /* the Filters panel fills the screen, with Show profiles always in view */
    .sh-more { position: fixed; inset: 0; z-index: 1100; display: flex; flex-direction: column; margin: 0; border: 0; border-radius: 0; }
    .sh-more[hidden] { display: none; }
    .sh-more-head { display: flex; flex: none; align-items: center; justify-content: space-between; padding: 14px 16px 14px 20px; border-bottom: 1px solid var(--sh-line); }
    .sh-more-head b { font-family: var(--primary-font); font-size: 18px; font-weight: 800; color: var(--sh-ink); }
    .sh .sh-more-x { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--sh-line); border-radius: 50%; background: #fff; font-size: 16px; color: var(--sh-ink); }
    .sh-more-body { flex: 1 1 auto; grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 18px 20px; overflow-y: auto; }
    .sh-more-checks { flex-direction: column; align-items: flex-start; gap: 0; }
    .sh-more-act { flex: none; justify-content: space-between; padding: 12px 20px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--sh-line); background: #fff; }
    .sh .sh-more-act .sh-btn { flex: 1 1 auto; max-width: 230px; }
    html.sh-sheet-open, html.sh-sheet-open body { overflow: hidden; }
    .sh-findrow { margin-bottom: 24px; }
    .sh-av.sh-add-av { font-size: 24px; }
    .sh-add-text { font-size: 12.5px; }
}
