.vpi-panel{display:grid;gap:14px;margin:24px 0}.vpi-heading h2{margin:5px 0}.vpi-heading p,.vpi-panel p{line-height:1.6;color:#53657d}.vpi-tabs{display:flex;gap:7px;overflow:auto;padding-bottom:5px;margin:10px 0}.vpi-tabs button{background:#f4f6fa;color:#2c4665;border:1px solid #d3e0ee;border-radius:30px;padding:9px 14px;white-space:nowrap;cursor:pointer}.vpi-tabs button.active{background:#1a3a61;color:#fff;border-color:#1a3a61}.vpi-vehicle-header{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}.vpi-vehicle-header h3{margin:10px 0 0}.vpi-vehicle-header span{font-size:.85rem;color:#526987}.vpi-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,230px),1fr));gap:14px;margin:16px 0}.vpi-photo{display:flex;flex-direction:column;border:1px solid #d8e3f0;border-radius:12px;overflow:hidden;background:white;min-width:0}.vpi-image{aspect-ratio:16/9;background:#ebeff5}.vpi-image img{height:100%;width:100%;object-fit:cover;display:block}.vpi-photo-info{padding:12px;display:flex;gap:7px;flex-wrap:wrap;align-items:center}.vpi-photo-info strong{display:block;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#172d48;font-size:.87rem}.vpi-status,.vpi-cover-label{font-size:.73rem;padding:4px 8px;border-radius:20px;background:#eef3f9;color:#39577d}.vpi-status.status-approved{background:#e7f4ec;color:#1e6244}.vpi-status.status-rejected{background:#fbe9e8;color:#8a3030}.vpi-cover-label{background:#e7edf9;color:#1c447d;font-weight:700}.vpi-note{margin:2px 12px;color:#7f4040;font-size:.83rem}.vpi-actions{display:flex;flex-wrap:wrap;gap:6px;padding:0 12px 12px;margin-top:auto}.vpi-actions button{background:#f3f6fa;border:1px solid #cbd8e6;border-radius:8px;padding:8px 10px;font:inherit;font-size:.82rem;cursor:pointer;color:#16375f}.vpi-actions button:disabled{opacity:.45;cursor:not-allowed}.vpi-actions .vpi-primary{background:#193e64;color:#fff;border-color:#193e64}.vpi-upload{display:grid;gap:5px;border:1px dashed #789ac4;border-radius:13px;padding:18px;cursor:pointer;margin:15px 0;background:#f7faff;color:#1c406a}.vpi-upload input{max-width:100%;font:inherit}.vpi-upload span{color:#546a84;font-size:.85rem}.vpi-upload.is-disabled{opacity:.52;cursor:default}.vpi-feedback{min-height:18px;color:#276344!important;font-size:.87rem}.vpi-feedback.error{color:#ad3333!important}.vpi-muted{color:#52647e!important}.vpi-fallback{aspect-ratio:16/9;background:linear-gradient(140deg,#121f36,#294a6b);display:grid;place-items:center;align-content:center;gap:1px;overflow:hidden}.vpi-fallback svg{height:75%;max-height:200px;width:75%;filter:drop-shadow(0 16px 10px #040d2055)}.vpi-fallback span{color:#cbdbea;font-size:.8rem;font-weight:500;padding-bottom:10px}.result-vehicle-media-empty{padding:0!important}.vpi-gallery-open{display:inline-flex;align-items:center;gap:7px;border:1px solid #b6c6d9;border-radius:9px;background:#fff;color:#1f4b77;padding:8px 12px;font:inherit;font-size:.85rem;cursor:pointer;margin:6px 0 4px}.vpi-lightbox{position:fixed;inset:0;z-index:10000;background:rgba(8,14,27,.91);display:grid;place-items:center;padding:16px}.vpi-view{position:relative;max-width:min(1100px,96vw);max-height:90vh;display:grid;justify-items:center;gap:10px}.vpi-view img{display:block;max-width:100%;max-height:76vh;object-fit:contain;border-radius:9px}.vpi-view [data-close]{position:absolute;right:0;top:-40px;color:#fff;background:transparent;border:0;font-size:32px;cursor:pointer}.vpi-view-footer{display:flex;justify-content:center;align-items:center;gap:30px;color:white}.vpi-view-footer button{color:#fff;background:#25486a;border:1px solid #5a83a5;border-radius:30px;cursor:pointer;min-width:40px;min-height:40px;font-size:22px}.admin-section .vpi-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,190px),1fr))}@media(max-width:680px){.vpi-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,180px),1fr))}.vpi-panel{padding:15px}.vpi-vehicle-header{align-items:flex-start}.vpi-fallback span{font-size:.72rem}}
/* Commercial image occupies the full search-card media region. */
.result-vehicle-media-button{display:block;border:0;padding:0;cursor:pointer;text-align:inherit;font:inherit;background:transparent}
.result-vehicle-media-button:focus-visible{outline:3px solid #3498c2;outline-offset:-3px}
.result-vehicle-media-empty .vpi-fallback{width:100%;height:100%;aspect-ratio:auto}

.vpi-focal-picker{position:relative;cursor:crosshair;outline:none}
.vpi-focal-picker:focus-visible{box-shadow:inset 0 0 0 3px #3498c2}
.vpi-focal-picker::after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,transparent 49.7%,rgba(255,255,255,.36) 50%,transparent 50.3%),linear-gradient(0deg,transparent 49.7%,rgba(255,255,255,.36) 50%,transparent 50.3%);pointer-events:none;opacity:.45}
.vpi-focal-marker{position:absolute;width:22px;height:22px;border:3px solid #fff;border-radius:50%;background:#193e64;box-shadow:0 0 0 2px rgba(25,62,100,.72),0 3px 10px rgba(0,0,0,.25);transform:translate(-50%,-50%);pointer-events:none;z-index:2}
.vpi-focal-marker::before,.vpi-focal-marker::after{content:"";position:absolute;background:#fff;left:50%;top:50%;transform:translate(-50%,-50%)}
.vpi-focal-marker::before{width:12px;height:2px}.vpi-focal-marker::after{width:2px;height:12px}
.vpi-focal-hint{padding:8px 12px 0;color:#53657d;font-size:.76rem;line-height:1.35}


/* Exact card crop editor: the canvas uses the same 16:9 composition as search cards. */
.admin-section .vpi-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,520px),1fr))}
.vpi-crop-editor{padding:14px;background:#f7f9fc;border-bottom:1px solid #d8e3f0}
.vpi-crop-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;margin-bottom:10px;color:#172d48}
.vpi-crop-head>div{display:grid;gap:2px}.vpi-crop-head strong{font-size:.9rem}.vpi-crop-head span{font-size:.76rem;color:#60738d}
.vpi-crop-source{white-space:nowrap;text-align:right}
.vpi-crop-stage{position:relative;width:100%;aspect-ratio:16/9;overflow:hidden;border-radius:10px;background:#172235;box-shadow:inset 0 0 0 1px rgba(23,45,72,.22)}
.vpi-crop-canvas{display:block;width:100%;height:100%;cursor:grab;touch-action:none;user-select:none;-webkit-user-select:none}
.vpi-crop-canvas.is-dragging{cursor:grabbing}
.vpi-crop-guide{position:absolute;inset:0;pointer-events:none;background:linear-gradient(90deg,transparent 33.15%,rgba(255,255,255,.42) 33.33%,transparent 33.5%,transparent 66.48%,rgba(255,255,255,.42) 66.66%,transparent 66.84%),linear-gradient(0deg,transparent 33.15%,rgba(255,255,255,.42) 33.33%,transparent 33.5%,transparent 66.48%,rgba(255,255,255,.42) 66.66%,transparent 66.84%);box-shadow:inset 0 0 0 2px rgba(255,255,255,.76)}
.vpi-crop-controls{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:14px;align-items:end;margin-top:12px}
.vpi-crop-controls label{display:grid;gap:6px;color:#40566f;font-size:.78rem}.vpi-crop-controls label>span{display:flex;justify-content:space-between;gap:10px}.vpi-crop-controls input[type=range]{width:100%;accent-color:#193e64}
.vpi-crop-buttons{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}.vpi-crop-buttons button{border:1px solid #c5d3e2;border-radius:8px;background:#fff;color:#173a61;padding:8px 11px;font:inherit;font-size:.8rem;font-weight:700;cursor:pointer}
.vpi-crop-buttons button.vpi-primary{background:#193e64;color:#fff;border-color:#193e64}.vpi-crop-buttons button:disabled{opacity:.55;cursor:wait}
.vpi-crop-hint{margin:9px 0 0!important;color:#60738d!important;font-size:.76rem;line-height:1.45!important}.vpi-crop-hint.error{color:#a83232!important}
.vpi-crop-editor.is-dirty .vpi-crop-stage{box-shadow:0 0 0 2px rgba(52,152,194,.22)}.vpi-crop-editor.is-saved .vpi-crop-stage{box-shadow:0 0 0 2px rgba(38,126,88,.2)}
@media(max-width:680px){.vpi-crop-head{display:grid}.vpi-crop-source{text-align:left}.vpi-crop-controls{grid-template-columns:1fr}.vpi-crop-buttons{justify-content:stretch}.vpi-crop-buttons button{flex:1 1 140px}}


/* Admin crop workspace: one large editor at a time. */
.vpi-admin-content{min-width:0}
.vpi-admin-photo-picker{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;margin:14px 0 16px;padding:0}
.vpi-admin-photo-tab{min-width:0;display:grid;grid-template-columns:72px minmax(0,1fr);align-items:center;gap:9px;padding:7px;border:1px solid #d5e0ec;border-radius:11px;background:#fff;color:#17324f;text-align:left;cursor:pointer;transition:border-color .15s ease,box-shadow .15s ease,background .15s ease}
.vpi-admin-photo-tab:hover{border-color:#8eb9db;background:#f8fbfe}.vpi-admin-photo-tab.active{border-color:#3498c2;background:#f1f8fd;box-shadow:0 0 0 2px rgba(52,152,194,.16)}
.vpi-admin-photo-thumb{display:block;width:72px;aspect-ratio:16/9;border-radius:7px;overflow:hidden;background:#e9eef4}
.vpi-admin-photo-thumb img{display:block;width:100%;height:100%;object-fit:cover}
.vpi-admin-photo-meta{min-width:0;display:grid;gap:2px}.vpi-admin-photo-meta strong{font-size:.8rem;white-space:nowrap}.vpi-admin-photo-meta small{font-size:.68rem;color:#6b7b90;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.vpi-admin-editor-host{width:100%;min-width:0;margin-top:4px}
.vpi-admin-editor-host>.vpi-photo{width:100%;max-width:none;border-radius:14px;overflow:hidden;box-shadow:0 8px 24px rgba(26,54,86,.08)}
.vpi-admin-editor-host .vpi-crop-editor{padding:16px 16px 14px}
.vpi-admin-editor-host .vpi-crop-head{margin-bottom:12px}
.vpi-admin-editor-host .vpi-crop-head>div{display:flex;flex-direction:column;gap:2px}
.vpi-admin-editor-host .vpi-crop-head>div>strong{font-size:1rem;line-height:1.2}
.vpi-admin-editor-host .vpi-crop-head>div>span{display:block;line-height:1.35}
.vpi-admin-editor-host .vpi-crop-stage{width:100%;min-height:0;aspect-ratio:16/9;border-radius:12px}
.vpi-admin-editor-host .vpi-crop-controls{margin-top:14px}
.vpi-admin-editor-host .vpi-photo-info{padding:13px 16px 8px}
.vpi-admin-editor-host .vpi-actions{padding:6px 16px 16px}
@media(max-width:1100px){.vpi-admin-photo-picker{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:720px){.vpi-admin-photo-picker{grid-template-columns:repeat(2,minmax(0,1fr))}.vpi-admin-photo-tab{grid-template-columns:58px minmax(0,1fr)}.vpi-admin-photo-thumb{width:58px}.vpi-admin-editor-host .vpi-crop-editor{padding:12px}.vpi-admin-editor-host .vpi-crop-head{display:grid}.vpi-admin-editor-host .vpi-crop-source{text-align:left;white-space:normal}}
