/* U Horses v1.9 targeted module refinements. */

/* Users toolbar */
.uh-users-toolbar{display:flex;align-items:center;padding:18px 20px;margin-bottom:22px;background:var(--uh-card);border:1px solid var(--uh-border);border-radius:var(--uh-card-radius);box-shadow:var(--uh-shadow)}
.uh-users-filter-group{display:grid;grid-template-columns:minmax(320px,1fr) 220px 220px auto;gap:14px;align-items:center;width:100%}
.uh-users-filter-group input,.uh-users-filter-group select{width:100%;height:50px;min-height:50px;margin:0;padding:0 15px;border:1px solid var(--uh-border);border-radius:var(--uh-input-radius);background:var(--uh-input-bg);color:var(--uh-text);font-weight:400;box-sizing:border-box}
.uh-users-filter-group input:focus,.uh-users-filter-group select:focus{outline:0;border-color:var(--uh-primary);box-shadow:0 0 0 3px color-mix(in srgb,var(--uh-primary) 16%,transparent)}
.uh-users-filter-group button{min-width:108px;height:50px;margin:0;padding-inline:20px}

/* My Horses */
.uh-my-horses-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}
.uh-my-horse-card{padding:0!important;overflow:hidden;transition:transform .2s ease,box-shadow .2s ease}
.uh-my-horse-card:hover{transform:translateY(-4px);box-shadow:0 18px 42px rgba(15,23,42,.12)}
.uh-my-horse-media{position:relative;display:block;aspect-ratio:16/10;overflow:hidden;background:color-mix(in srgb,var(--uh-background) 70%,var(--uh-card))}
.uh-my-horse-media img,.uh-my-horse-media .uh-horse-placeholder{display:block;width:100%;height:100%;object-fit:cover;transition:transform .3s ease}
.uh-my-horse-card:hover .uh-my-horse-media img{transform:scale(1.035)}
.uh-my-horse-media .uh-status-badge{position:absolute;top:14px;inset-inline-end:14px;z-index:2}
.uh-my-horse-body{display:grid;gap:14px;padding:18px}
.uh-my-horse-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.uh-my-horse-heading h2{margin:0;font-size:20px;line-height:1.25}.uh-my-horse-heading h2 a{color:var(--uh-text);text-decoration:none}
.uh-my-horse-heading p{margin:5px 0 0;color:var(--uh-muted);font-size:13px;font-weight:400}
.uh-my-horse-heading>strong{color:var(--uh-primary);font-size:18px;line-height:1.3;white-space:nowrap}
.uh-my-horse-location,.uh-horse-published{margin:0;color:var(--uh-muted);font-size:12px;font-weight:400}
.uh-horse-card-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:0;padding:12px 0;border-block:1px solid var(--uh-border)}
.uh-horse-card-stats>div{text-align:center}.uh-horse-card-stats dt{color:var(--uh-muted);font-size:11px;font-weight:400}.uh-horse-card-stats dd{margin:3px 0 0;color:var(--uh-text);font-size:16px;font-weight:600}
.uh-my-horse-actions{display:flex;align-items:center;flex-wrap:wrap;gap:8px}.uh-my-horse-actions>a:not(.uhc-btn){padding:7px 9px;border-radius:8px;color:var(--uh-primary);font-size:12px;font-weight:500;text-decoration:none}.uh-my-horse-actions>a:not(.uhc-btn):hover{background:color-mix(in srgb,var(--uh-primary) 8%,var(--uh-card))}.uh-my-horse-actions .is-danger{color:var(--uh-danger)!important}

/* Horse details */
.uh-horse-detail-page{display:grid;gap:22px}.uh-horse-overview-grid{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(330px,.7fr);gap:22px;align-items:start}
.uh-horse-gallery-card,.uh-horse-summary-card,.uh-seller-information,.uh-horse-detail-section,.uh-horse-related,.uh-horse-reviews{padding:22px!important}
.uh-horse-main-image{aspect-ratio:16/10;overflow:hidden;border-radius:14px;background:var(--uh-background)}.uh-horse-main-image img,.uh-horse-main-image .uh-horse-placeholder{width:100%;height:100%;object-fit:cover;display:block}
.uh-horse-thumbnails{display:grid;grid-template-columns:repeat(auto-fill,minmax(76px,1fr));gap:10px;margin-top:12px}.uh-horse-thumbnails img{width:100%;aspect-ratio:1/1;object-fit:cover;border-radius:10px;border:1px solid var(--uh-border)}
.uh-detail-title-row{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}.uh-detail-title-row h1{margin:12px 0 5px;font-size:clamp(28px,3vw,42px)}.uh-detail-title-row p{margin:0;color:var(--uh-muted);font-weight:400}
.uh-detail-price{margin:22px 0;color:var(--uh-primary);font-size:clamp(28px,3vw,40px);font-weight:700}
.uh-detail-action-stack{display:grid;gap:10px;margin-top:20px}.uh-detail-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0;margin:0}.uh-detail-facts>div{padding:12px 0;border-bottom:1px solid var(--uh-border)}.uh-detail-facts>div:nth-child(odd){padding-inline-end:16px}.uh-detail-facts>div:nth-child(even){padding-inline-start:16px}.uh-detail-facts dt{color:var(--uh-muted);font-size:11px;font-weight:500;text-transform:uppercase;letter-spacing:.04em}.uh-detail-facts dd{margin:5px 0 0;color:var(--uh-text);font-weight:400;overflow-wrap:anywhere}
.uh-seller-profile{display:flex;align-items:center;gap:16px}.uh-seller-profile img{border-radius:50%}.uh-seller-profile h3{margin:0}.uh-seller-profile p{margin:4px 0 0;color:var(--uh-muted);font-weight:400}
.uh-horse-detail-sections{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px}.uh-horse-detail-section h2,.uh-seller-information h2,.uh-horse-related h2,.uh-horse-reviews h2{margin:0 0 16px;font-size:21px}.uh-detail-description{grid-column:1/-1}
.uh-related-horse-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.uh-related-horse-grid a{display:grid;gap:8px;color:var(--uh-text);text-decoration:none}.uh-related-horse-grid img,.uh-related-horse-grid .uh-horse-placeholder{width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:11px}.uh-related-horse-grid strong{font-weight:600}
.uh-horse-reviews article{padding:14px 0;border-top:1px solid var(--uh-border)}.uh-horse-reviews article:first-of-type{border-top:0}.uh-horse-reviews p{margin:6px 0 0;font-weight:400}

/* Breeds */
.uh-breeds-toolbar{display:grid;grid-template-columns:minmax(260px,1fr) auto auto;gap:14px;align-items:center;margin-bottom:18px;padding:16px 18px!important}.uh-breed-search-form{display:flex;gap:10px}.uh-breed-search-form input{flex:1;min-width:0;height:48px}.uh-breeds-toolbar-meta{display:flex;align-items:baseline;gap:5px;color:var(--uh-muted)}.uh-breeds-toolbar-meta strong{color:var(--uh-text);font-size:18px}.uh-breed-form-card{margin-bottom:18px;padding:20px!important}.uh-breed-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.uh-breed-card{display:grid;gap:18px;min-height:170px;padding:20px!important}.uh-breed-card h3{margin:0}.uh-breed-card p{margin:7px 0 0;color:var(--uh-muted);font-weight:400}.uh-breed-card footer{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:auto;padding-top:14px;border-top:1px solid var(--uh-border);color:var(--uh-muted);font-size:12px}.uh-breed-actions{display:flex;align-items:center;gap:10px}.uh-breed-actions form{margin:0}.uh-breed-actions a,.uh-breed-actions button{border:0;background:none;color:var(--uh-primary);font:inherit;font-weight:600;cursor:pointer}.uh-breed-actions .is-danger{color:var(--uh-danger)}

/* Messaging */
.uh-messages-layout{display:grid;grid-template-columns:minmax(290px,360px) minmax(0,1fr);gap:18px;min-height:620px}.uh-conversations-panel,.uh-chat-panel{min-width:0;overflow:hidden}.uh-conversation-row{color:var(--uh-text)!important}.uh-conversation-copy strong{color:var(--uh-text);font-weight:600}.uh-conversation-copy small,.uh-conversation-meta,.uh-chat-header small,.uh-conversation-empty-mini,.uh-empty-state p{color:var(--uh-muted);font-weight:400}.uh-message-thread{color:var(--uh-text);background:color-mix(in srgb,var(--uh-background) 72%,var(--uh-card))}.uh-message-bubble{color:var(--uh-text);background:var(--uh-card);border:1px solid var(--uh-border)}.uh-message-bubble.is-mine{color:#fff;background:var(--uh-primary);border-color:var(--uh-primary)}.uh-message-bubble p{color:inherit;font-weight:400}.uh-message-bubble time{color:inherit;opacity:.75}
.uh-message-composer{position:sticky;bottom:0;display:grid!important;grid-template-columns:44px minmax(0,1fr) 104px!important;gap:10px;align-items:center!important;padding:14px 16px;border-top:1px solid var(--uh-border);background:var(--uh-card)}.uh-message-composer textarea{width:100%;min-width:0;min-height:46px;max-height:150px;margin:0;padding:11px 14px;border:1px solid var(--uh-border);border-radius:16px;background:var(--uh-input-bg);color:var(--uh-text);font-weight:400;line-height:1.45;resize:none}.uh-message-composer textarea::placeholder{color:color-mix(in srgb,var(--uh-muted) 78%,transparent)}.uh-message-composer .uhc-btn{height:46px;min-height:46px}.uh-message-attach{width:44px;height:44px}.uh-message-error{grid-column:2/-1;color:var(--uh-danger)}
.uhc-message-dropdown-panel{width:min(390px,calc(100vw - 24px))}.uhc-dropdown-message{position:relative;display:grid;grid-template-columns:44px minmax(0,1fr) auto;gap:11px;align-items:center;padding:12px 15px;border-top:1px solid var(--uh-border);color:var(--uh-text);text-decoration:none}.uhc-dropdown-message:hover,.uhc-dropdown-message.is-unread{background:color-mix(in srgb,var(--uh-primary) 6%,var(--uh-card))}.uhc-dropdown-message img{width:44px;height:44px;border-radius:50%;object-fit:cover}.uhc-dropdown-message span{min-width:0}.uhc-dropdown-message strong,.uhc-dropdown-message small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.uhc-dropdown-message strong{color:var(--uh-text);font-size:13px;font-weight:600}.uhc-dropdown-message small{margin-top:3px;color:var(--uh-muted);font-size:12px;font-weight:400}.uhc-dropdown-message time{align-self:start;color:var(--uh-muted);font-size:10px;white-space:nowrap}.uhc-dropdown-message i{position:absolute;inset-inline-end:13px;bottom:12px;width:7px;height:7px;border-radius:50%;background:var(--uh-primary)}

@media(max-width:1199px){.uh-my-horses-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.uh-related-horse-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.uh-breed-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:1023px){.uh-users-filter-group{grid-template-columns:minmax(240px,1fr) repeat(2,minmax(180px,1fr))}.uh-users-filter-group button{grid-column:3;justify-self:end}.uh-horse-overview-grid{grid-template-columns:1fr}.uh-horse-summary-card{position:static}.uh-horse-detail-sections{grid-template-columns:1fr}.uh-breeds-toolbar{grid-template-columns:1fr auto}.uh-breed-search-form{grid-column:1/-1}}
@media(max-width:767px){.uh-users-toolbar{padding:14px}.uh-users-filter-group{grid-template-columns:1fr}.uh-users-filter-group button{grid-column:auto;justify-self:stretch;width:100%}.uh-my-horses-grid{grid-template-columns:1fr}.uh-my-horse-heading{display:grid}.uh-my-horse-heading>strong{white-space:normal}.uh-horse-detail-page{gap:14px}.uh-horse-gallery-card,.uh-horse-summary-card,.uh-seller-information,.uh-horse-detail-section,.uh-horse-related,.uh-horse-reviews{padding:16px!important}.uh-detail-facts{grid-template-columns:1fr}.uh-detail-facts>div:nth-child(n){padding-inline:0}.uh-related-horse-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.uh-breeds-toolbar{grid-template-columns:1fr}.uh-breed-search-form{display:grid;grid-template-columns:1fr}.uh-breed-grid{grid-template-columns:1fr}.uh-messages-layout{grid-template-columns:1fr}.uh-message-composer{grid-template-columns:40px minmax(0,1fr) 82px!important;gap:7px;padding:10px}.uh-message-composer .uhc-btn{padding-inline:8px}.uhc-message-dropdown-panel{position:fixed!important;top:68px!important;left:12px!important;right:12px!important;width:auto!important}}

@media(max-width:1023px){.uhc-top-actions .uhc-desktop-message{display:block}.uhc-top-actions{display:flex;align-items:center;gap:8px}}
