/*
 * Bootstrap 3 base rules the site CSS was written on top of, at Bootstrap 3's position in the cascade: after
 * bootstrap_package's Bootstrap 5 theme, before barcelona's and the site's CSS (BarcelonaTheme/Includes.typoscript), so
 * the site's own rules at the same specificity still win (e.g. font.css h2 {font-weight: 800}).
 * Only what a comparison with live proves.
 */

/* bootstrap_package pads every frame vertically (var(--frame-spacing)); barcelona's frames had none. Here rather than
   in lts14-compat.css so the site's own frame padding still wins (.image-100 {padding-top: 30px}, .thumbnail). */
.frame {
    padding-top: 0;
    padding-bottom: 0;
}

/* Bootstrap 3 body line-height (barcelona's compiled BS3: 1.55; BS5's theme: 1.5) */
body {
    line-height: 1.55;
}

/* bootstrap_package's ".frame-inner > :last-child {margin-bottom: 0}" also took BS3's bottom margin from lists and
   h4-h6 (e.g. the footer hotel lists). Same specificity, loaded later. h1-h3 left alone: on live a weaker site rule
   zeroes some of them, which this would override. */
.frame-inner > :last-child:where(ul, ol) {
    margin-bottom: 12px;
}
.frame-inner > :last-child:where(h4, h5, h6) {
    margin-bottom: 10px;
}

/* headings: BS5's theme has line-height 1.2 and weight 300 - 35 of 41 front page headings differed from live */
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    font-weight: 500;
    line-height: 1.1;
    color: inherit;
}

/* Bootstrap 3's figure {margin: 0}; Bootstrap 5's reboot has margin 0 0 1rem - 16px below e.g. the package page's top
   image (.package-top-image figure) */
figure {
    margin: 0;
}

/* Bootstrap 3's .alert (barcelona's compiled BS3: margin-bottom 24px, no radius) and .alert-warning colours - BS5's
   theme gave the booking module's "Dette ophold skal bookes i 2 dage" box a darker beige, a 6px radius */
.alert {
    padding: 15px;
    margin-bottom: 24px;
    border: 1px solid transparent;
    border-radius: 0;
}
.alert-warning {
    background-color: #fcf8e3;
    border-color: #faebcc;
    color: #8a6d3b;
}

/* Bootstrap 3's modal box (the booking module's room popups): 600px wide from 768px, no max-width - BS5's
   max-width 500px capped it below the site's own .modal-dialog {width: 790px} from 992px. The header is a block,
   so its .close floats right as in BS3 (BS5's flex header put "Luk vindue" left). */
@media (min-width: 768px) {
    .modal-dialog {
        max-width: none;
        margin: 30px auto;
    }
    /* :where(): the booking module's CSS (loaded before this file) sets its own widths */
    :where(.modal-dialog) {
        width: 600px;
    }
}
.modal-header {
    display: block;
    padding: 15px;
    border-bottom: 1px solid #e5e5e5;
}
.modal-header .close {
    margin-top: -2px;
}
.modal-body {
    padding: 20px;
}
/* Bootstrap 3's .close (gone in BS5, which has .btn-close): the browser's button look showed */
.close {
    float: right;
    font-size: 24px;
    font-weight: bold;
    line-height: 1;
    color: #000;
    text-shadow: 0 1px 0 #fff;
    opacity: .2;
}
button.close {
    padding: 0;
    cursor: pointer;
    background: transparent;
    border: 0;
    appearance: none;
}

/* Bootstrap 3's .btn {background-image: none}: the BS5 theme has gradients on (e.g. "Find værelser" in the rooms dialog) */
.btn {
    background-image: none;
}
