[hidden] { display: none !important; }
.mobile-nav a { flex: 1; width: auto; min-width: 0; max-width: 180px; }
.fleet-directory { border-color: var(--line); border-radius: 16px; overflow: hidden; }
.fleet-filters { padding: 25px; display: grid; grid-template-columns: minmax(180px, 1fr) minmax(160px, 220px) auto auto; gap: 15px; align-items: end; }
.fleet-filters .input-group-text { background: #fff; color: #8b9a7f; border-color: #dce2d7; }
.fleet-result-count { padding: 0 25px 18px; font-size: .76rem; color: #86947b; }
.fleet-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; padding: 0 25px 25px; }
.vehicle-card { padding: 22px; border-color: #e0e7d9; border-radius: 14px; gap: 0; }
.vehicle-card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 22px; }
.plate-label { display: inline-block; align-self: flex-start; font-size: .74rem; font-weight: 650; letter-spacing: .1em; color: #506b41; background: #f1f5eb; border: 1px solid #dbe5d1; padding: 5px 9px; border-radius: 6px; }
.vehicle-card h2 { margin: 15px 0 7px; font-size: 1.1rem; overflow-wrap: anywhere; }
.vehicle-description { font-size: .77rem; color: #849279; margin-bottom: 20px; }
.vehicle-facts { display: flex; flex-wrap: wrap; gap: 12px; font-size: .76rem; color: #647c54; margin-bottom: 22px; }
.vehicle-facts > span { display: flex; align-items: center; gap: 7px; }
.vehicle-card-actions { display: flex; gap: 9px; margin-top: auto; }
.vehicle-card-actions .btn { flex: 1; padding: 10px 12px; font-size: .77rem; }
.vehicle-form { display: block; }
.vehicle-editor-layout { display: grid; grid-template-columns: minmax(275px, .8fr) minmax(400px, 1.4fr); gap: 24px; align-items: start; }
.vehicle-data { padding: 26px; gap: 20px; border-color: var(--line); border-radius: 15px; }
.vehicle-data .form-section-heading { padding-bottom: 20px; }
.vehicle-data-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.vehicle-capacity { display: flex; align-items: center; gap: 15px; border-top: 1px solid var(--line); padding-top: 20px; color: #65824f; }
.vehicle-capacity strong { font-size: 1.2rem; font-weight: 600; }
.vehicle-capacity p { font-size: .72rem; color: #8a987f; margin: 5px 0 0; }
.seat-editor { border-color: var(--line); border-radius: 15px; overflow: hidden; padding: 25px; }
.editor-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 25px; }
.editor-heading h2 { font-size: 1.15rem; font-weight: 600; margin-bottom: 7px; }
.editor-heading p { font-size: .79rem; color: #86957a; margin: 0; }
.editor-step { font-size: .52rem; font-weight: 600; color: #8fa17f; letter-spacing: .1em; white-space: nowrap; }
.layout-settings { display: grid; grid-template-columns: 1.8fr .8fr .8fr 1fr; gap: 12px; align-items: end; }
.layout-settings .form-label { font-size: .73rem; }
.layout-settings .form-control, .layout-settings .form-select { min-height: 46px; padding: 10px; padding-right: 27px; font-size: .83rem; }
.layout-settings input.form-control { padding-right: 10px; }
.layout-settings > button { grid-column: 1 / -1; justify-self: end; min-height: 44px; font-size: .76rem; }
.layout-settings-note { font-size: .66rem; color: #96a08c; margin: 12px 0 22px; }
.seat-tools { display: flex; gap: 7px; padding: 6px; background: #f1f5eb; border-radius: 11px; }
.seat-tool { flex: 1; display: flex; gap: 7px; justify-content: center; align-items: center; min-height: 44px; padding: 8px; color: #7b8b6e; border: 1px solid transparent; border-radius: 8px; background: transparent; font-size: .74rem; }
.seat-tool[aria-pressed=true] { color: #285c45; background: #fff; border-color: #dce6d1; box-shadow: 0 2px 3px #243c3305; }
.seat-editor-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.seat-editor-actions .btn { font-size: .69rem; padding: 8px 11px; }
.floor-buttons { display: flex; gap: 5px; margin-right: auto; }
.floor-buttons [aria-pressed=true] { background: #285c45; color: #fff; }
.editor-feedback { font-size: .74rem; color: #768969; margin: 0 0 18px; min-height: 36px; }
.seat-canvas { padding: 24px 10px; background: #f7f9f4; border: 1px solid #e8eddf; border-radius: 12px; overflow-x: auto; }
.vehicle-outline { width: max-content; min-width: 240px; max-width: none; margin: 0 auto; background: #fff; border: 2px solid #dce5d3; border-top-width: 5px; border-radius: 40px 40px 24px 24px; padding: 22px 18px 14px; box-shadow: 0 7px 14px #324c2010; }
.vehicle-front { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-bottom: 20px; margin-bottom: 24px; border-bottom: 1px dashed #d8e1cd; color: #8c9e7c; font-size: .64rem; }
.seat-grid { display: grid; gap: 10px 8px; width: max-content; margin: 0 auto; }
.seat-grid[data-columns="2"] { grid-template-columns: repeat(2, 48px); }
.seat-grid[data-columns="3"] { grid-template-columns: repeat(3, 48px); }
.seat-grid[data-columns="4"] { grid-template-columns: repeat(4, 48px); }
.seat-grid[data-columns="5"] { grid-template-columns: repeat(5, 48px); }
.seat-grid[data-columns="6"] { grid-template-columns: repeat(6, 48px); }
.seat-grid[data-columns="7"] { grid-template-columns: repeat(7, 48px); }
.seat-cell { position: relative; width: 48px; height: 48px; min-height: 48px; display: flex; align-items: center; justify-content: center; border-radius: 10px 10px 7px 7px; padding: 3px 2px 7px; font-size: .79rem; }
.cell-asiento { color: #547542; background: #eef5e6; border: 1px solid #b8cfa4; box-shadow: inset 0 -5px 0 #dceacb; }
.cell-asiento::after { content: ''; position: absolute; inset: 10px 3px 4px; border: 1px solid #bdd0ac; border-top: 0; border-radius: 0 0 5px 5px; pointer-events: none; }
.seat-number { position: relative; z-index: 1; max-width: 43px; overflow: hidden; font-size: .74rem; font-weight: 650; }
.cell-pasillo { background: #fafbf8; color: #c0cbb5; border: 1px dashed #e7eddf; box-shadow: none; border-radius: 6px; }
.cell-vacio { color: #d2dac9; border: 1px dashed #e6eadf; background: #fff; box-shadow: none; border-radius: 6px; }
.seat-cell.selected { outline: 2px solid #285c45; outline-offset: 2px; }
button.seat-cell:hover { border-color: #6c9452; }
.vehicle-rear { font-size: .58rem; color: #a7b19b; text-align: center; border-top: 1px dashed #e4e9dd; padding-top: 16px; margin-top: 24px; }
.seat-floor + .seat-floor { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); }
.floor-label { font-size: .74rem; color: #81956d; text-align: center; margin: 0 0 16px; }
.seat-inspector { border: 1px solid #e2e9d8; border-radius: 11px; margin-top: 22px; padding: 18px; display: grid; gap: 10px; background: #fcfdfb; }
.seat-inspector .hint { font-size: .69rem; margin-bottom: 0; }
.seat-inspector .input-group .btn { font-size: .74rem; }
.vehicle-savebar { position: sticky; bottom: 14px; z-index: 8; display: flex; align-items: center; justify-content: space-between; gap: 18px; border: 1px solid var(--line); border-radius: 13px; padding: 16px 22px; margin-top: 26px; background: #ffffffed; backdrop-filter: blur(14px); box-shadow: 0 6px 25px #243c330a; }
.vehicle-savebar > span { display: flex; align-items: center; gap: 9px; color: #8b9b7e; font-size: .72rem; }
.vehicle-savebar .form-actions { border: 0; padding: 0; }
.vehicle-info-list { margin: 0; display: grid; gap: 18px; }
.vehicle-info-list > div { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.vehicle-info-list dt { font-size: .75rem; font-weight: 500; color: #8b987e; }
.vehicle-info-list dd { font-size: .79rem; color: #506c3e; margin: 0; text-align: right; overflow-wrap: anywhere; }
.seat-legend { display: flex; justify-content: center; gap: 22px; margin-top: 20px; }
.seat-legend > span { display: inline-flex; align-items: center; gap: 7px; color: #8b9a7e; font-size: .7rem; }
.legend-seat, .legend-aisle { display: inline-block; width: 14px; height: 14px; border: 1px solid #b8cfa4; border-radius: 4px; background: #eef5e6; }
.legend-aisle { border: 1px dashed #cfdac3; background: #fafbf8; }
@media(max-width:1199px) { .vehicle-editor-layout { grid-template-columns: 1fr; gap: 22px; } .vehicle-data { display: grid; grid-template-columns: 1fr 1fr; } .vehicle-data .form-section-heading, .vehicle-data .vehicle-capacity { grid-column: 1 / -1; } .vehicle-data .vehicle-data-pair { grid-column: 1 / -1; } .vehicle-info { display: flex; } .vehicle-info .vehicle-info-list { width: 100%; } .fleet-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .editor-step { display: none; } }
@media(max-width:767px) { .vehicle-savebar { bottom: calc(86px + env(safe-area-inset-bottom)); } }
@media(max-width:600px) {
  .fleet-filters { padding: 20px 18px; grid-template-columns: 1fr 1fr; gap: 14px; }
  .fleet-filters > .field:first-child { grid-column: 1 / -1; }
  .fleet-filters .btn { width: 100%; }
  .fleet-filters > a { grid-column: 1 / -1; }
  .fleet-grid { padding: 0 18px 20px; grid-template-columns: 1fr; }
  .fleet-result-count { padding-left: 18px; }
  .vehicle-data { padding: 22px 18px; gap: 18px; grid-template-columns: 1fr; }
  .vehicle-data .vehicle-data-pair { grid-template-columns: 1fr; }
  .seat-editor { padding: 22px 14px; }
  .editor-heading { padding: 0 4px; }
  .layout-settings { grid-template-columns: 1fr 1fr; gap: 13px; }
  .layout-settings .form-control, .layout-settings .form-select { font-size: 16px; min-height: 48px; }
  .layout-settings > button { width: 100%; }
  .seat-tools { gap: 3px; padding: 5px; }
  .seat-tool { display: grid; justify-items: center; gap: 4px; min-height: 62px; padding: 8px 5px; font-size: .63rem; }
  .seat-editor-actions .btn { font-size: .66rem; }
  .seat-canvas { padding: 20px 8px; }
  .vehicle-outline { padding-left: 10px; padding-right: 10px; }
  .seat-grid { column-gap: 6px; }
  .seat-inspector { padding: 15px; }
  .vehicle-savebar { padding: 12px; gap: 0; }
  .vehicle-savebar > span { display: none; }
  .vehicle-savebar .form-actions { display: flex; width: 100%; gap: 8px; }
  .vehicle-savebar .btn { flex: 1; font-size: .76rem; padding: 11px 12px; }
  .vehicle-info-list > div { align-items: flex-start; }
}
.seat-editor { overflow: visible; }
.seat-tools { position: sticky; top: 14px; z-index: 6; box-shadow: 0 3px 12px #243c3308; }
.editor-seat-total { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; background: #eff5e7; color: #68854e; font-size: .7rem; border: 1px solid #e0ead5; border-radius: 20px; padding: 6px 10px; }
@media(max-width:767px) { .seat-tools { top: 86px; } }
.seat-number.long-code { max-width: 36px; max-height: 26px; overflow-wrap: anywhere; word-break: break-all; text-align: center; font-size: .64rem; line-height: 1.1; }
.front-settings { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px; margin: 0 0 20px; border: 1px solid #e0e8d6; border-radius: 11px; background: #f8faf5; }
.front-settings p { font-size: .7rem; color: #849478; margin: 6px 0 0; max-width: 260px; }
.front-settings .form-select { width: 195px; flex-shrink: 0; font-size: .8rem; }
.front-seat-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding-bottom: 20px; margin-bottom: 20px; border-bottom: 1px dashed #d8e1cd; }
.driver-position { width: 48px; height: 56px; flex-shrink: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; border: 1px solid #c9d4c0; background: #e6ecdf; border-radius: 12px; color: #718365; }
.driver-position span { font-size: .55rem; }
.front-passengers { display: flex; gap: 6px; }
@media(max-width:600px) { .front-settings { align-items: stretch; flex-direction: column; gap: 12px; } .front-settings .form-select { width: 100%; font-size: 16px; } }
.vehicle-validity { color: #7c8d6c; font-size: .77rem; margin: 20px 4px 0; }
.vehicle-validity[data-valid=true] { color: #386946; }
#save-vehicle:disabled { cursor: not-allowed; opacity: .48; }
