/* Public search page, following the Covoizin frontoffice structure. */
.jm-search-page .jm-search-main{padding:24px 0 56px;min-height:65vh}
.jm-search-breadcrumb{display:flex;gap:12px;align-items:center;font-size:13px;color:var(--jm-muted);margin-bottom:24px}
.jm-search-breadcrumb a{min-height:32px;display:inline-flex;align-items:center}
.jm-search-heading{margin-bottom:28px}
.jm-search-heading .jm-eyebrow{margin-bottom:10px}
.jm-search-page .jm-search-heading h1{font-size:clamp(30px,3.7vw,44px)}
.jm-search-page .jm-search-heading p{margin:12px 0 0;font-size:16px}
.jm-search-page .jm-search-bar{display:grid;grid-template-columns:1.15fr 1.4fr 1fr auto;align-items:stretch;background:#fff;border:1px solid var(--jm-border);border-radius:16px;box-shadow:0 8px 24px #103c680a;margin-bottom:32px}
.jm-search-page .jm-search-bar label{display:flex;flex-direction:column;justify-content:center;gap:4px;margin:0;padding:14px 18px;min-width:0;border-right:1px solid var(--jm-border);font-size:12px;font-weight:700;color:var(--jm-primary)}
.jm-search-page .jm-search-bar input,.jm-search-page .jm-search-bar select{width:100%;min-height:40px;margin:0;padding:4px 0;border:0;border-radius:0;background:transparent;color:var(--jm-text);font-size:16px}
.jm-search-page .jm-search-bar button{border-radius:0 15px 15px 0;margin:0;padding:16px 24px;align-self:stretch}
.jm-search-page button{display:inline-flex;justify-content:center;align-items:center;min-height:44px;padding:11px 18px;border:1px solid var(--jm-primary);border-radius:9px;background:var(--jm-primary);color:#fff;font-family:inherit;font-size:14px;font-weight:700;line-height:1.4;cursor:pointer}
.jm-search-page button:hover{background:var(--jm-primary-pressed)}
.jm-search-page button:disabled{cursor:not-allowed}
.jm-search-page button.secondary{background:#fff;color:var(--jm-primary);border-color:var(--jm-border)}
.jm-search-page button.secondary:hover{background:var(--jm-primary-soft)}
.jm-search-page button:disabled{background:#edf0f4;color:#657183;border-color:#dce3e9;opacity:.7}
.jm-search-page .search-layout{display:grid;grid-template-columns:272px minmax(0,1fr);align-items:start;gap:32px}
.jm-search-page .search-layout>aside,.jm-search-page .search-layout>section{min-width:0}
.jm-search-filters{background:#fff;border:1px solid var(--jm-border);border-radius:16px}
.jm-search-filters>summary{display:flex;justify-content:space-between;gap:12px;align-items:center;min-height:64px;padding:18px 22px;font-weight:750;cursor:pointer;list-style:none}
.jm-search-filters>summary::-webkit-details-marker{display:none}
.jm-search-filters[open]>summary{border-bottom:1px solid var(--jm-border)}
.jm-search-filters[open]>summary>span{transform:rotate(180deg)}
.jm-search-filter-fields{padding:22px}
.jm-search-page label{display:block;font-size:13px;font-weight:650;margin:0 0 18px;line-height:1.5}
.jm-search-page input,.jm-search-page select{width:100%;max-width:100%;min-width:0;min-height:44px;border:1px solid var(--jm-border-strong);border-radius:8px;background:#fff;color:var(--jm-text);padding:10px;font-size:16px;margin-top:7px}
.jm-search-page .check{display:flex;gap:10px;align-items:flex-start;font-weight:400}
.jm-search-page .check input{min-height:0;width:18px;margin:3px 0 0;flex-shrink:0}
.jm-search-page fieldset{min-width:0;border:1px solid var(--jm-border);border-radius:9px;padding:12px;margin:18px 0}
.jm-search-page legend{font-weight:700;font-size:13px}
.jm-search-page .jm-search-advanced{border-top:1px solid var(--jm-border);border-bottom:1px solid var(--jm-border);padding:16px 0;margin-bottom:20px}
.jm-search-page summary{cursor:pointer;font-weight:700}
.jm-search-page .jm-search-advanced summary{font-size:14px;line-height:1.5}
.jm-search-page .jm-search-filter-fields p{font-size:12px;line-height:1.6}
.jm-search-page .actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.jm-search-filter-fields .actions{display:grid}
.jm-search-page .jm-results-heading h2{font-size:clamp(23px,2.3vw,30px);line-height:1.25}
.jm-search-page #summary{margin:8px 0;color:var(--jm-muted);font-size:14px}
.jm-search-page #notice{font-size:12px;line-height:1.5;margin:0 0 20px}
.jm-search-page .jm-results-tabs{margin:20px 0}
.jm-results-tabs button[aria-pressed=true]{background:var(--jm-primary);color:#fff}
.jm-search-page .result-grid{display:grid;gap:18px}
.jm-search-page .result-card{display:grid;grid-template-columns:72px minmax(0,1fr) 160px;gap:20px;background:#fff;border:1px solid var(--jm-border);border-radius:16px;padding:24px;min-width:0}
.jm-result-visual{width:72px;height:72px;border-radius:12px;background:var(--jm-primary-soft);color:var(--jm-primary);display:flex;align-items:center;justify-content:center;font-size:30px;overflow:hidden}
.jm-result-visual img{display:block;width:100%;height:100%;object-fit:cover}
.jm-search-page .result-card h2{font-size:21px;line-height:1.35;letter-spacing:-.025em;overflow-wrap:anywhere}
.jm-result-main,.jm-result-side{min-width:0}
.jm-search-page .result-card p{margin:8px 0;font-size:14px;line-height:1.55;overflow-wrap:anywhere}
.jm-search-page .result-card .result-kind{font-size:10px;letter-spacing:.1em;font-weight:750;color:var(--jm-accent-text);margin:0 0 6px}
.jm-search-page .result-card .meta,.jm-search-page .result-card .result-category{font-size:12px;color:var(--jm-muted)}
.jm-result-description{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.jm-result-side{display:flex;flex-direction:column;gap:10px;align-items:stretch;justify-content:center;border-left:1px solid var(--jm-border);padding-left:18px}
.jm-search-page .result-card .price{font-weight:750;color:var(--jm-primary);font-size:17px;margin:0 0 10px}
.jm-search-page .result-card .jm-result-detail{display:inline-flex;align-items:center;justify-content:center;min-height:44px;border-radius:8px;background:var(--jm-primary);color:#fff;padding:10px 14px;font-size:13px;font-weight:700;text-align:center}
.jm-search-page .result-card button{font-size:12px;padding:9px}
.jm-search-page .result-badges{display:flex;flex-wrap:wrap;gap:6px}
.jm-search-page .result-badges span{border-radius:6px;background:#edf6ef;color:#23633b;padding:3px 7px;font-size:11px}
.jm-search-page .panel{background:#fff;border:1px solid var(--jm-border);border-radius:16px;padding:28px}
.jm-search-page .jm-search-empty{padding:44px 28px;text-align:center}
.jm-search-page .jm-search-empty h2{font-size:25px;line-height:1.3}
.jm-search-page .jm-search-empty p{max-width:500px;margin:14px auto 22px}
.jm-search-page .jm-empty-icon{display:flex;width:64px;height:64px;align-items:center;justify-content:center;background:var(--jm-primary-soft);color:var(--jm-primary);border-radius:50%;margin:0 auto 20px;font-size:30px}
.jm-search-page #pagination{margin:24px 0;justify-content:space-between;font-size:13px}
.jm-search-page #message{padding:16px 20px;background:var(--jm-primary-soft);border-left:4px solid var(--jm-primary);border-radius:8px;margin-bottom:24px;overflow-wrap:anywhere}
.jm-search-page #message.error{background:#fff0ed;border-color:var(--jm-danger)}
.jm-search-page #message:empty,.jm-search-page #notice:empty{display:none}
.jm-search-page #message a,.jm-search-page .jm-search-signin a{font-weight:700;text-decoration:underline}
.jm-search-page .jm-search-signin{font-size:13px;padding:20px 0;border-top:1px solid var(--jm-border)}
.jm-search-page #save-panel{margin-top:24px}
.jm-search-page #save-panel form{margin-top:20px}
.jm-search-page .saved-card{background:#fff;padding:24px;border:1px solid var(--jm-border);border-radius:12px;margin:16px 0}
.jm-search-page .saved-card button{margin:4px}
.jm-search-page #profile .portfolio{display:flex;flex-wrap:wrap;gap:16px}
.jm-search-page #profile img{max-width:240px;border-radius:14px}
@media(min-width:761px){
  .jm-search-page .jm-search-bar{position:sticky;top:16px;z-index:20;box-shadow:0 8px 24px #103c681a}
  .jm-search-page .jm-search-bar::before{content:"";position:absolute;left:-1px;right:-1px;bottom:100%;height:17px;background:var(--jm-canvas)}
  .jm-search-page .search-layout>aside{position:sticky;top:var(--jm-filter-sticky-top,16px)}
  .jm-search-page #search-results,.jm-search-page #results-heading{scroll-margin-top:var(--jm-search-sticky-clearance,128px)}
}
@media(max-width:1050px){.jm-search-page .search-layout{grid-template-columns:240px minmax(0,1fr);gap:24px}.jm-search-page .result-card{grid-template-columns:56px minmax(0,1fr);gap:16px}.jm-result-visual{width:56px;height:56px}.jm-result-side{grid-column:1/-1;flex-direction:row;align-items:center;justify-content:flex-end;flex-wrap:wrap;border-left:0;border-top:1px solid var(--jm-border);padding:16px 0 0}.jm-result-side .price{margin-right:auto!important}}
@media(max-width:760px){.jm-search-page .jm-search-main{padding-top:16px}.jm-search-breadcrumb{margin-bottom:18px}.jm-search-heading{margin-bottom:22px}.jm-search-page .jm-search-bar{grid-template-columns:minmax(0,1fr);margin-bottom:22px}.jm-search-page .jm-search-bar label{padding:10px 16px;border-right:0;border-bottom:1px solid var(--jm-border)}.jm-search-page .jm-search-bar button{border-radius:0 0 15px 15px;min-height:50px}.jm-search-page .search-layout{grid-template-columns:minmax(0,1fr);gap:24px}.jm-search-filter-fields{padding:20px}.jm-search-page .result-card{padding:18px}.jm-search-page .result-card h2{font-size:19px}.jm-search-page .jm-search-empty{padding:30px 20px}.jm-search-page .jm-results-tabs>*{flex:1 1 auto}.jm-search-page .result-card .jm-result-detail{flex:1}.jm-search-page #profile img{max-width:100%}}

.jm-public-project{margin-top:28px;padding:24px;border:1px solid #d8e2ed;border-radius:18px;background:#fff}.jm-public-project .jm-project-description{white-space:pre-wrap;overflow-wrap:anywhere}.jm-public-project figure{margin:0;max-width:100%;flex:1 1 220px}.jm-public-project .portfolio img{width:100%;height:240px;object-fit:contain;border-radius:12px}.jm-public-project figcaption{overflow-wrap:anywhere}
