
/* LotMap Alpha 28 responsive layer */
*,*::before,*::after{box-sizing:border-box}
.lotmap-employee-portal,.lotmap-public-inventory,.lotmap-inventory-detail,.lotmap-locator,.lotmap-lot-setup-page,.lotmap-inventory-workflow,.lotmap-master-locator,.wrap[class*="lotmap"],.wrap:has(.lm-manage-wrap){max-width:100%}
.lotmap-employee-portal img,.lotmap-public-inventory img,.lotmap-inventory-detail img,.lotmap-lot-setup-page img{max-width:100%;height:auto}
.lotmap-employee-portal input,.lotmap-employee-portal select,.lotmap-employee-portal textarea,.lotmap-public-inventory input,.lotmap-public-inventory select,.lotmap-public-inventory textarea,.lotmap-lot-setup-page input,.lotmap-lot-setup-page select,.lotmap-inventory-workflow input,.lotmap-inventory-workflow select,.lotmap-inventory-workflow textarea{max-width:100%}

/* Tablet */
@media (max-width:1024px){
  .lotmap-employee-portal{padding:0 16px;margin:18px auto!important}
  .lotmap-portal-top{gap:12px!important;padding:16px!important}
  .lotmap-portal-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .lotmap-portal-stats{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .lotmap-portal-card{min-height:128px!important}
  .lotmap-portal-filter-top{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .lotmap-portal-inventory-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}

  .lotmap-public-inventory{padding:0 16px}
  .lotmap-inv-top-row{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .lotmap-inv-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .lotmap-inv-feature-row{align-items:flex-end!important}

  .lotmap-inventory-hero{grid-template-columns:1fr!important;gap:28px!important}
  .lotmap-inventory-purchase-card{max-width:760px!important;margin:0 auto!important}
  .lotmap-product-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .lotmap-included-items{grid-column:1/-1}

  .lotmap-editor-layout{grid-template-columns:1fr!important}
  .lotmap-editor-sidebar{position:static!important;display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:14px}
  .lotmap-editor-sidebar .lotmap-metabox{margin:0!important}

  .lotmap-calibration-controls{flex-wrap:wrap}
  .lotmap-master-locator{padding:16px!important}
}

/* Phone / narrow tablet */
@media (max-width:700px){
  body{overflow-x:hidden}
  .lotmap-employee-portal{padding:0 10px;margin:10px auto!important}
  .lotmap-portal-top{flex-direction:column!important;align-items:stretch!important;padding:14px!important;border-radius:10px!important}
  .lotmap-portal-identity{align-items:flex-start!important}
  .lotmap-portal-company-logo{max-width:130px!important;max-height:56px!important}
  .lotmap-portal-avatar{width:52px!important;height:52px!important;flex-basis:52px!important}
  .lotmap-portal-actions{display:grid!important;grid-template-columns:1fr 1fr;width:100%;gap:8px!important}
  .lotmap-portal-actions a{width:100%;min-height:46px!important;padding:0 10px!important;text-align:center}
  .lotmap-portal-title{font-size:23px!important;margin-top:20px!important}
  .lotmap-portal-grid,.lotmap-portal-inventory-grid{grid-template-columns:1fr!important}
  .lotmap-portal-card{min-height:108px!important;padding:15px!important}
  .lotmap-portal-card-icon{margin-bottom:10px!important}
  .lotmap-portal-stats{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}
  .lotmap-portal-stat{padding:12px!important}
  .lotmap-portal-filter{padding:12px!important}
  .lotmap-portal-filter-top{grid-template-columns:1fr!important}
  .lotmap-portal-filter-features{display:grid!important;grid-template-columns:auto minmax(0,1fr);align-items:center!important;gap:9px 10px!important}
  .lotmap-portal-door{grid-column:1/-1;min-width:0!important;width:100%}
  .lotmap-portal-count{min-width:0}.lotmap-portal-count select{min-width:64px!important}
  .lotmap-portal-filter-actions{display:grid!important;grid-template-columns:1fr 1fr!important}
  .lotmap-portal-filter-actions button,.lotmap-portal-filter-actions a{width:100%;justify-content:center!important}
  .lotmap-portal-inventory-actions a{flex:1 1 140px;text-align:center}

  .lotmap-public-inventory{padding:0 10px;margin:12px auto!important}
  .lotmap-inv-filter{padding:12px!important}
  .lotmap-inv-top-row,.lotmap-inv-grid{grid-template-columns:1fr!important}
  .lotmap-inv-feature-row{display:grid!important;grid-template-columns:auto minmax(0,1fr);gap:9px 10px!important;align-items:center!important}
  .lotmap-inv-door{grid-column:1/-1;width:100%;min-width:0!important}
  .lotmap-inv-door select{width:100%!important}
  .lotmap-inv-actions{display:grid!important;grid-template-columns:1fr 1fr!important}
  .lotmap-inv-actions button,.lotmap-inv-actions a{width:100%;justify-content:center!important}
  .lotmap-inv-details{width:100%;justify-content:center}

  .lotmap-inventory-detail{padding:14px 10px 34px!important}
  .lotmap-inventory-gallery-header h1{font-size:28px!important}
  .lotmap-detail-map-button{width:100%;min-width:0!important}
  .lotmap-gallery-main{aspect-ratio:4/3!important}
  .lotmap-gallery-thumbs{gap:6px!important}
  .lotmap-inventory-benefits{grid-template-columns:1fr!important}
  .lotmap-inventory-benefits div{min-height:46px!important;border-right:0!important;border-bottom:1px solid var(--lotmap-border)}
  .lotmap-inventory-benefits div:last-child{border-bottom:0}
  .lotmap-inventory-shin{margin-left:auto!important;margin-right:auto!important}
  .lotmap-price-row,.lotmap-finance-row-block{grid-template-columns:1fr!important;min-height:0!important;padding:18px 10px!important;gap:8px!important}
  .lotmap-value-arrow,.lotmap-value-arrow-small{transform:rotate(90deg)}
  .lotmap-finance-control{flex-direction:column!important;gap:5px!important}
  .shed-finance-term-select{width:min(220px,100%)!important;min-width:0!important}
  .lotmap-price-value .lotmap-cash-price strong,.lotmap-price-value .cash-price-regular,.lotmap-price-value .cash-price-sale,.lotmap-finance-payment{font-size:clamp(42px,14vw,58px)!important}
  .lotmap-product-grid{grid-template-columns:1fr!important;gap:14px!important}
  .lotmap-product-column{padding-right:0!important;border-right:0!important;border-bottom:1px solid #ddd;padding-bottom:12px!important}
  .lotmap-detail-row{grid-template-columns:minmax(95px,.8fr) 1.2fr!important;gap:8px!important}

  .lotmap-editor-sidebar{grid-template-columns:1fr!important}
  .lotmap-title-input{font-size:1.35em!important}
  .lotmap-metabox-body{padding:0 10px!important}
  .lotmap-field-row{padding:10px 0!important}
  .lotmap-photo-actions:not(.lotmap-photo-actions-sidebar){display:grid!important;grid-template-columns:1fr 1fr!important}
  .lotmap-photo-actions .button,.lotmap-photo-actions .button-link-delete{min-height:44px;width:100%;justify-content:center}
  .lotmap-gallery-preview,.lotmap-gallery-thumb{max-width:100%}

  .lotmap-locator-controls{display:grid!important;grid-template-columns:1fr!important}
  .lotmap-locator-controls>*{width:100%!important}
  .lotmap-locator-zip{min-width:0!important}
  .lotmap-master-locator{padding:12px!important;margin:12px auto!important}

  .lotmap-calibration-stage{min-height:160px!important;width:100%!important;max-width:100%!important;overflow:auto!important}
  .lotmap-calibration-controls{flex-direction:column!important;align-items:stretch!important;gap:10px!important}
  .lotmap-calibration-controls .button{width:100%;min-height:44px}

  .lm-manage-row1{grid-template-columns:1fr!important}
  .lm-manage-row2{display:grid!important;grid-template-columns:1fr 1fr!important;gap:8px!important}
  .lm-manage-actions{display:grid!important;grid-template-columns:1fr 1fr!important;gap:8px!important}
  .lm-manage-actions .button{width:100%;justify-content:center}
  .lm-manage-card{grid-template-columns:72px minmax(0,1fr)!important;gap:10px!important}
}

@media (max-width:430px){
  .lotmap-portal-actions,.lotmap-portal-filter-actions,.lotmap-inv-actions,.lm-manage-actions,.lm-manage-row2{grid-template-columns:1fr!important}
  .lotmap-portal-stats{grid-template-columns:1fr 1fr!important}
  .lotmap-photo-actions:not(.lotmap-photo-actions-sidebar){grid-template-columns:1fr!important}
  .lotmap-detail-row{grid-template-columns:1fr!important;gap:2px!important}.lotmap-detail-row dd{padding-bottom:6px}
}
