/* CartAndBuggy dealer inventory — shared card grid + page-specific styling. */
.cab-inv-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:1em;padding:1em 0}
.cab-inv-card{display:block;border:1px solid #e3e3e3;border-radius:10px;overflow:hidden;text-decoration:none;color:inherit;background:#fff;transition:box-shadow .15s}
.cab-inv-card:hover{box-shadow:0 4px 14px rgba(0,0,0,.12)}
.cab-inv-thumb{height:140px;background-size:cover;background-position:center;background:#eef3f7}
.cab-inv-body{padding:.7em .9em}
.cab-inv-title{font-weight:600;font-size:.95em;margin-bottom:.35em;line-height:1.3}
.cab-inv-specs{display:flex;flex-wrap:wrap;gap:.3em;margin-bottom:.45em}
.cab-inv-specs span{background:#eef3f7;border-radius:4px;padding:.1em .5em;font-size:.78em}
.cab-inv-price{color:#1a7f37;font-weight:700;font-size:1.1em}
.cab-brand-wrap{margin:1.5em auto}
.cab-brand-title{font-size:1.6em;font-weight:700;margin:.2em 0}

/* Sabai "Photos" tab: grid view instead of a single tall column. */
.sabai-directory-listing-photos{display:grid !important;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:1.1em;align-items:start}
.sabai-directory-listing-photos > .sabai-entity{border:1px solid #e3e3e3;border-radius:10px;overflow:hidden;background:#fff;margin:0 !important;padding:0 !important}
.sabai-directory-listing-photos .sabai-directory-photo{margin:0 !important}
.sabai-directory-listing-photos .sabai-directory-photo img{display:block;width:100% !important;height:185px !important;object-fit:cover;max-width:none !important;border-radius:0 !important}
.sabai-directory-listing-photos > .sabai-entity > *:not(.sabai-directory-photo){padding:.2em .8em}
.sabai-directory-listing-photos > .sabai-entity > *:last-child{padding-bottom:.7em}

/* Dealer "My Dashboard" — cleaner listings table + per-row Add Inventory button. */
body.sabai-my-dashboard .sabai-table{border-collapse:separate;border-spacing:0;width:100%;background:#fff;border:1px solid #e6e9ef;border-radius:12px;overflow:hidden;box-shadow:0 1px 3px rgba(10,31,68,.06)}
body.sabai-my-dashboard .sabai-table th{background:#0a1f44;color:#fff;padding:.85em 1em;font-weight:600;border:0;text-align:left;font-size:.92em}
body.sabai-my-dashboard .sabai-table th a{color:#fff}
body.sabai-my-dashboard .sabai-table td{padding:.75em 1em;border:0;border-top:1px solid #eef0f4;vertical-align:middle}
body.sabai-my-dashboard .sabai-table tbody tr:first-child td{border-top:0}
body.sabai-my-dashboard .sabai-table tbody tr:hover{background:#f6f9fc}
body.sabai-my-dashboard .sabai-table td:last-child{white-space:nowrap;text-align:right}
body.sabai-my-dashboard .sabai-label{display:inline-block;padding:.32em .65em;border-radius:999px;font-size:.7em;font-weight:700;line-height:1;letter-spacing:.2px;text-transform:uppercase}
body.sabai-my-dashboard .sabai-label-default{background:#eef0f4;color:#5a6473}
body.sabai-my-dashboard .sabai-label-warning{background:#ffe7bf;color:#945600}
body.sabai-my-dashboard .sabai-label-success,body.sabai-my-dashboard .sabai-label-info{background:#d7f5e1;color:#1a7f37}
body.sabai-my-dashboard .cab-add-inv{display:inline-block;background:#1a7f37;color:#fff !important;border:0;border-radius:7px;padding:.45em .85em;font-size:.8em;font-weight:600;margin-right:.45em;text-decoration:none;white-space:nowrap;vertical-align:middle;transition:background .15s}
body.sabai-my-dashboard .cab-add-inv:hover{background:#15692e;color:#fff !important}
body.sabai-my-dashboard a.sabai-btn-primary,body.sabai-my-dashboard .sabai-btn-primary{background:#1f57d6;border-color:#1f57d6;border-radius:7px;font-weight:600}
body.sabai-my-dashboard .sabai-nav-tabs > li > a{font-weight:600}

/* Single cart page: price + Contact Dealer header, inquiry modal. */
.cab-cart-head{margin:0 0 1.2em;padding:0 0 1.1em;border-bottom:1px solid #eef0f4}
.cab-cart-head-price{font-size:2em;font-weight:800;color:#1a7f37;line-height:1;margin-bottom:.5em}
.cab-contact-btn{display:inline-block;background:#1a7f37;color:#fff !important;border:0;border-radius:8px;padding:.7em 1.4em;font-size:1em;font-weight:700;cursor:pointer;text-decoration:none;line-height:1.2;transition:background .15s}
.cab-contact-btn:hover{background:#15692e;color:#fff !important}
.single_job_listing .job_application{margin-top:1.2em}
.cab-modal{position:fixed;inset:0;background:rgba(10,31,68,.55);z-index:99999;display:flex;align-items:center;justify-content:center;padding:1em}
.cab-modal-box{position:relative;background:#fff;border-radius:14px;width:100%;max-width:440px;padding:1.6em 1.6em 1.7em;box-shadow:0 20px 60px rgba(0,0,0,.3)}
.cab-modal-x{position:absolute;top:.5em;right:.7em;background:none;border:0;font-size:1.7em;line-height:1;color:#99a;cursor:pointer}
.cab-modal-h{margin:0 0 .15em;font-size:1.45em}
.cab-modal-sub{color:#667;font-size:.9em;margin-bottom:1.1em}
.cab-lead-form{display:flex;flex-direction:column;gap:.7em}
.cab-lead-form input,.cab-lead-form textarea{width:100%;border:1px solid #d6dae2;border-radius:8px;padding:.7em .85em;font-size:.95em;font-family:inherit;box-sizing:border-box}
.cab-lead-form input:focus,.cab-lead-form textarea:focus{outline:0;border-color:#1a7f37;box-shadow:0 0 0 3px rgba(26,127,55,.12)}
.cab-lead-form .cab-submit{margin-top:.3em;width:100%}
.cab-thanks{text-align:center;padding:1.2em .5em .6em}
.cab-thanks-ico{width:54px;height:54px;border-radius:50%;background:#d7f5e1;color:#1a7f37;font-size:1.8em;line-height:54px;margin:0 auto .6em}
.cab-thanks h3{margin:.1em 0 .3em}
.cab-thanks p{color:#667;margin:0}

/* Dealer dashboard leads table. */
.cab-leads{margin:0 0 2em}
.cab-leads-title{font-size:1.3em;font-weight:700;margin:.2em 0 .6em}
.cab-leads-wrap{overflow-x:auto;border:1px solid #e6e9ef;border-radius:12px}
.cab-leads-table{border-collapse:collapse;width:100%;min-width:640px;background:#fff}
.cab-leads-table th{background:#0a1f44;color:#fff;text-align:left;padding:.7em .9em;font-size:.85em;font-weight:600}
.cab-leads-table td{padding:.65em .9em;border-top:1px solid #eef0f4;font-size:.9em;vertical-align:top}
.cab-leads-table tbody tr:hover{background:#f6f9fc}
.cab-leads-empty{background:#f6f9fc;border:1px dashed #d6dae2;border-radius:10px;padding:1em 1.1em;color:#667}
