/* Global compact density — loaded last after Bootstrap + custom CSS */

:root {
  --bs-body-font-size: 0.875rem;
  --bs-body-line-height: 1.4;
  --bs-border-radius: 0.25rem;
  --bs-border-radius-sm: 0.2rem;
  --bs-border-radius-lg: 0.35rem;
}

body {
  font-size: var(--bs-body-font-size);
  line-height: var(--bs-body-line-height);
}

h1, .h1 { font-size: 1.5rem; }
h2, .h2 { font-size: 1.3rem; }
h3, .h3 { font-size: 1.15rem; }
h4, .h4 { font-size: 1.05rem; }
h5, .h5 { font-size: 0.95rem; }
h6, .h6 { font-size: 0.875rem; }

p {
  margin-bottom: 0.65rem;
}

.btn {
  --bs-btn-padding-y: 0.28rem;
  --bs-btn-padding-x: 0.65rem;
  --bs-btn-font-size: 0.8125rem;
  --bs-btn-border-radius: 0.25rem;
}

.btn-lg {
  --bs-btn-padding-y: 0.4rem;
  --bs-btn-padding-x: 0.85rem;
  --bs-btn-font-size: 0.9rem;
}

.btn-sm {
  --bs-btn-padding-y: 0.18rem;
  --bs-btn-padding-x: 0.45rem;
  --bs-btn-font-size: 0.75rem;
}

.form-control,
.form-select {
  padding: 0.3rem 0.55rem;
  font-size: 0.8125rem;
  min-height: calc(1.4em + 0.6rem + 2px);
}

.form-control-sm,
.form-select-sm {
  padding: 0.2rem 0.4rem;
  font-size: 0.75rem;
}

.input-group-text {
  padding: 0.3rem 0.55rem;
  font-size: 0.8125rem;
}

.form-label {
  margin-bottom: 0.25rem;
  font-size: 0.8125rem;
}

.card-body {
  padding: 0.75rem;
}

.card-header,
.card-footer {
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
}

.card-title {
  font-size: 1rem;
  margin-bottom: 0.35rem;
}

.modal-header,
.modal-footer {
  padding: 0.65rem 0.85rem;
}

.modal-body {
  padding: 0.75rem 0.85rem;
}

.modal-title {
  font-size: 1.05rem;
}

.navbar {
  --bs-navbar-padding-y: 0.25rem;
  --bs-navbar-brand-font-size: 0.95rem;
  --bs-navbar-nav-link-padding-x: 0.65rem;
  font-size: 0.875rem;
}

.navbar-brand {
  font-size: 0.95rem;
}

.nav-link {
  font-size: 0.875rem;
  padding-top: 0.35rem;
  padding-bottom: 0.35rem;
}

.table {
  --bs-table-cell-padding-y: 0.4rem;
  --bs-table-cell-padding-x: 0.5rem;
  font-size: 0.8125rem;
}

.table > :not(caption) > * > * {
  padding: 0.4rem 0.5rem;
}

.dropdown-menu {
  font-size: 0.8125rem;
  padding: 0.35rem 0;
}

.dropdown-item {
  padding: 0.3rem 0.85rem;
  font-size: 0.8125rem;
}

.badge {
  font-size: 0.7rem;
  padding: 0.25em 0.45em;
}

.accordion-button {
  padding: 0.65rem 0.85rem;
  font-size: 0.875rem;
}

.accordion-body {
  padding: 0.75rem 0.85rem;
  font-size: 0.8125rem;
}

.list-group-item {
  padding: 0.5rem 0.75rem;
  font-size: 0.8125rem;
}

.alert {
  padding: 0.55rem 0.85rem;
  font-size: 0.8125rem;
}

.pagination {
  --bs-pagination-padding-x: 0.5rem;
  --bs-pagination-padding-y: 0.25rem;
  --bs-pagination-font-size: 0.8125rem;
}

.breadcrumb {
  font-size: 0.8125rem;
  margin-bottom: 0.65rem;
}

.small, small {
  font-size: 0.75rem;
}

.lead {
  font-size: 1rem;
  font-weight: 400;
}

/* Keep CRS app density aligned after theme.css */
body.crs-app {
  font-size: var(--crs-text-body, 0.8125rem);
  line-height: 1.45;
}

body.crs-app .date {
  font-size: 0.9rem;
  font-weight: 600;
}

body.crs-app .price-details,
body.crs-app .total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
}

body.crs-app .amount {
  float: none;
  margin-left: auto;
  flex-shrink: 0;
  text-align: right;
  font-size: var(--crs-text-price, 0.875rem);
  font-weight: 600;
}

body.crs-app .total .amount {
  font-size: var(--crs-text-price-total, 1.125rem);
  font-weight: 700;
}

body.crs-app .booking-container .button,
body.crs-app .button.confirm-continue,
body.crs-app a.button {
  min-height: var(--crs-control-h-lg, 36px);
  font-size: var(--crs-text-body, 0.8125rem);
  font-weight: 600;
}

/* Narrower content column — more side whitespace */
.container {
  max-width: 1080px;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

@media (min-width: 992px) {
  .container {
    max-width: 960px;
  }
}

@media (min-width: 1200px) {
  .container {
    max-width: 1080px; /* was 1140 / 1320 */
  }
}
