:root {
  --bo-black: #050706;
  --bo-green: #06281f;
  --bo-gold: #d6a33f;
  --bo-gold-light: #f1c56b;
  --bo-bg: #f4f2ec;
  --bo-white: #ffffff;
  --bo-line: #ded9cf;
  --bo-text: #171a18;
  --bo-muted: #6a706c;
  --bo-danger: #a92f2f;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bo-bg);
  color: var(--bo-text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

.bo-layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 280px 1fr;
}

.bo-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
  background: linear-gradient(160deg, var(--bo-black), var(--bo-green));
  color: white;
}

.bo-brand {
  display: grid;
  gap: 8px;
  margin-bottom: 36px;
}

.bo-brand img {
  width: 170px;
}

.bo-brand span {
  color: var(--bo-gold-light);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .12em;
}

.bo-nav {
  display: grid;
  gap: 8px;
}

.bo-nav a {
  padding: 12px 14px;
  border-radius: 10px;
}

.bo-nav a:hover {
  background: rgba(214, 163, 63, .16);
}

.bo-user {
  margin-top: auto;
  display: grid;
  gap: 12px;
  color: rgba(255, 255, 255, .78);
}

.bo-user button {
  border: 1px solid rgba(255, 255, 255, .25);
  background: transparent;
  color: white;
  border-radius: 9px;
  padding: 10px 14px;
  cursor: pointer;
}

.bo-main {
  min-width: 0;
  padding: 42px;
}

.bo-page-header {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  margin-bottom: 28px;
}

.bo-page-header p {
  margin: 0 0 5px;
  color: var(--bo-gold);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .1em;
}

.bo-page-header h1 {
  margin: 0;
  font-family: Georgia, serif;
  font-size: 42px;
}

.bo-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 28px;
}

.bo-stats a {
  display: grid;
  gap: 8px;
  padding: 24px;
  background: white;
  border: 1px solid var(--bo-line);
  border-radius: 16px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .04);
}

.bo-stats strong {
  font-family: Georgia, serif;
  font-size: 38px;
}

.bo-stats span {
  color: var(--bo-muted);
}

.bo-panel {
  margin-bottom: 24px;
  padding: 26px;
  background: white;
  border: 1px solid var(--bo-line);
  border-radius: 16px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .04);
}

.bo-panel h2 {
  margin-top: 0;
  font-family: Georgia, serif;
}

.bo-panel-header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}

.bo-panel-header a {
  color: #8c650d;
  font-weight: 800;
}

.bo-table-wrap {
  overflow-x: auto;
}

.bo-table {
  width: 100%;
  border-collapse: collapse;
}

.bo-table th,
.bo-table td {
  padding: 14px 12px;
  text-align: left;
  border-bottom: 1px solid #eeeae2;
  vertical-align: top;
}

.bo-table th {
  color: var(--bo-muted);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.bo-table td a {
  color: #8c650d;
  font-weight: 800;
}

.bo-status {
  display: inline-flex;
  padding: 7px 11px;
  border-radius: 999px;
  background: #f7ecd3;
  color: #78570d;
  font-size: 13px;
  font-weight: 800;
}

.bo-filters {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 260px auto;
  gap: 12px;
  margin-bottom: 22px;
}

.bo-filters input,
.bo-filters select,
.bo-validation-form input,
.bo-validation-form textarea,
.bo-danger-panel textarea,
.bo-login-card input {
  width: 100%;
  min-height: 46px;
  padding: 11px 13px;
  border: 1px solid var(--bo-line);
  border-radius: 9px;
  background: white;
  font: inherit;
}

.bo-filters button {
  padding: 0 22px;
  border: 0;
  border-radius: 9px;
  background: var(--bo-green);
  color: white;
  font-weight: 800;
  cursor: pointer;
}

.bo-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 24px;
}

.bo-definition-list {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 12px 18px;
}

.bo-definition-list dt {
  color: var(--bo-muted);
  font-weight: 700;
}

.bo-definition-list dd {
  margin: 0;
}

.bo-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.bo-validation-form label,
.bo-danger-panel label {
  display: block;
  margin: 15px 0 7px;
  font-weight: 800;
}

.bo-primary-button,
.bo-danger-button {
  min-height: 48px;
  margin-top: 18px;
  padding: 0 22px;
  border: 0;
  border-radius: 9px;
  font-weight: 800;
  cursor: pointer;
}

.bo-primary-button {
  background: linear-gradient(135deg, var(--bo-gold-light), var(--bo-gold));
  color: #17130a;
}

.bo-danger-panel {
  border-color: rgba(169, 47, 47, .25);
}

.bo-danger-button {
  background: var(--bo-danger);
  color: white;
}

.bo-tax-preview {
  display: grid;
  gap: 8px;
  margin-top: 18px;
  padding: 18px;
  border-radius: 12px;
  background: #fbf5e9;
  border: 1px solid rgba(214, 163, 63, .36);
}

.bo-tax-preview p {
  margin: 0;
}

.bo-messages {
  display: grid;
  gap: 10px;
  margin-bottom: 20px;
}

.bo-message {
  padding: 13px 16px;
  border-radius: 10px;
  background: white;
  border-left: 4px solid var(--bo-gold);
}

.bo-login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: radial-gradient(circle at top, #0b3a2c, #050706 70%);
}

.bo-login-card {
  width: min(460px, 100%);
  padding: 38px;
  border-radius: 20px;
  background: white;
  box-shadow: 0 35px 100px rgba(0, 0, 0, .38);
}

.bo-login-card img {
  width: 190px;
}

.bo-login-card h1 {
  margin-bottom: 6px;
  font-family: Georgia, serif;
}

.bo-login-card p {
  color: var(--bo-muted);
}

.bo-login-card label {
  display: block;
  margin: 14px 0 7px;
  font-weight: 800;
}

.bo-form-errors {
  padding: 12px;
  border-radius: 9px;
  background: #fff0f0;
  color: var(--bo-danger);
}

@media (max-width: 1000px) {
  .bo-layout {
    grid-template-columns: 1fr;
  }

  .bo-sidebar {
    position: static;
    height: auto;
  }

  .bo-stats,
  .bo-detail-grid,
  .bo-form-grid {
    grid-template-columns: 1fr;
  }

  .bo-filters {
    grid-template-columns: 1fr;
  }

  .bo-main {
    padding: 24px 16px;
  }
}

.bo-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.bo-actions form {
  margin: 0;
}

.bo-small-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--bo-line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--bo-text);
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.bo-small-button:hover {
  border-color: var(--bo-gold);
  color: #7b570d;
}

.bo-gold-small {
  border-color: rgba(214, 163, 63, .55);
  background: #fbf5e9;
  color: #7b570d;
}

.bo-danger-small {
  border-color: rgba(169, 47, 47, .28);
  background: #fff4f4;
  color: #9b2525;
}

.bo-help-text {
  margin: 8px 0 0;
  color: var(--bo-muted);
  font-size: 13px;
}

.bo-next-booking {
  display: grid;
  grid-template-columns: 1.1fr 1fr 2fr 1fr auto;
  gap: 22px;
  align-items: center;
}

.bo-next-booking h3 {
  margin: 0 0 8px;
  font-family: Georgia, serif;
  font-size: 26px;
}

.bo-next-booking p {
  margin: 4px 0 0;
}

.bo-kicker {
  color: var(--bo-gold);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
}

@media (max-width: 1100px) {
  .bo-next-booking {
    grid-template-columns: 1fr;
  }
}

.bo-next-booking {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px;
  align-items: start;
}

.bo-next-booking-map-col {
  width: 100%;
}

.bo-next-map {
  width: 100%;
  height: 320px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, .08);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .08);
}

@media (max-width: 1100px) {
  .bo-next-booking {
    grid-template-columns: 1fr;
  }

  .bo-next-map {
    height: 260px;
  }
}

.bo-operation-layout {
  display: grid;
  grid-template-columns: minmax(360px, .8fr) minmax(520px, 1.2fr);
  gap: 28px;
  align-items: stretch;
}

.bo-operation-details {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.bo-operation-details h3 {
  margin: 0;
  font-family: Georgia, serif;
  font-size: 30px;
}

.bo-operation-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.bo-operation-badges span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: #f2efe7;
  color: var(--bo-text);
  font-size: 13px;
  font-weight: 800;
}

.bo-operation-badges .bo-route-badge {
  background: #fbf5e9;
  color: #79570e;
  border: 1px solid rgba(214, 163, 63, .4);
}

.bo-map-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
}

.bo-operation-map-panel {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--bo-line);
  border-radius: 18px;
  background: white;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .08);
}

.bo-operation-map {
  width: 100%;
  height: 400px;
}

.bo-map-summary {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 18px 20px;
  border-top: 1px solid var(--bo-line);
}

.bo-map-summary div {
  display: grid;
  gap: 5px;
}

.bo-map-summary div:last-child {
  text-align: right;
}

.bo-map-summary span {
  color: var(--bo-muted);
  font-size: 14px;
}

.bo-map-empty {
  display: grid;
  place-items: center;
  min-height: 400px;
  padding: 30px;
  color: var(--bo-muted);
  text-align: center;
}

@media (max-width: 1200px) {
  .bo-operation-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .bo-operation-map {
    height: 290px;
  }

  .bo-map-summary {
    grid-template-columns: 1fr;
  }

  .bo-map-summary div:last-child {
    text-align: left;
  }

  .bo-map-actions {
    display: grid;
  }
}

.bo-address {
  display: grid;
  gap: 6px;
}

.bo-address > a {
  color: var(--bo-text);
  text-decoration: underline;
  text-decoration-color: rgba(214, 163, 63, .65);
  text-underline-offset: 3px;
}

.bo-address-links {
  display: flex;
  gap: 10px;
}

.bo-address-links a,
.bo-compact-address > a:last-child {
  color: #8c650d;
  font-size: 12px;
  font-weight: 800;
}

.bo-route-cell {
  min-width: 320px;
}

.bo-compact-address {
  display: grid;
  grid-template-columns: 52px minmax(180px, 1fr) auto;
  gap: 8px;
  margin-bottom: 8px;
  align-items: start;
}

.bo-compact-address > a {
  color: inherit;
}

.bo-compact-address > a:nth-child(2) {
  text-decoration: underline;
  text-decoration-color: rgba(214, 163, 63, .55);
  text-underline-offset: 3px;
}

@media (max-width: 900px) {
  .bo-compact-address {
    grid-template-columns: 1fr auto;
  }

  .bo-compact-address strong {
    grid-column: 1 / -1;
  }
}

.bo-filter-field {
  display: grid;
  gap: 6px;
}

.bo-filter-field span {
  color: var(--bo-muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.bo-filter-reset {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--bo-line);
  border-radius: 10px;
  background: #fff;
  color: var(--bo-text);
  font-weight: 800;
  text-decoration: none;
}

.bo-filter-reset:hover {
  border-color: #d6a33f;
  color: #8c650d;
}
