html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

/* --- Password show/hide toggle ---------------------------------------------------------------- */

.password-field {
  position: relative;
}

.password-field .form-control {
  padding-right: 2.75rem;
}

.password-toggle-btn {
  position: absolute;
  top: 50%;
  right: 0.5rem;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem;
  background: none;
  border: none;
  color: var(--bs-secondary-color);
  cursor: pointer;
}

.password-toggle-btn:hover,
.password-toggle-btn:focus-visible {
  color: var(--bs-body-color);
}

.password-toggle-btn svg {
  width: 1.15rem;
  height: 1.15rem;
}

html {
  position: relative;
  min-height: 100%;
}

/* Light grey page background so the white blocks (.section-card, .reservation-card, tables -
   all on var(--bs-body-bg), which stays white) stand out. Only the page itself is greyed, not
   --bs-body-bg, or every card would turn grey along with it. White again on paper. */
body {
  margin-bottom: 60px;
  background-color: #f7f8fa;
}

@media print {
  body {
    background-color: #fff;
  }
}

/* Paired with the matching breakpoint in _Layout.cshtml.css, which drops the footer's fixed-height
   absolute positioning below ~576px - no need to reserve space for it below body content there. */
@media (max-width: 575.98px) {
  body {
    margin-bottom: 0;
  }
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

/* Year-start/prev-month/jump-to-date/next-month/year-end stay on one line even at phone width -
   icon-only nav buttons (flex-shrink: 0, own compact padding, no label text), all the same size,
   around a date input that's sized to fit a date, not stretched to fill the row. The year-jump pair
   is styled btn-outline-primary (vs. solid btn-primary for the month pair) to read as the secondary,
   less-frequently-used action while staying the same size as the month buttons. */
.calendar-nav {
  flex-wrap: nowrap;
}

.calendar-nav-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  padding: 0;
}

.calendar-nav-btn svg {
  width: 1.15rem;
  height: 1.15rem;
}

.calendar-nav-jump {
  flex: 0 0 auto;
}

.calendar-nav-jump .form-control {
  width: 8.5rem;
}

/* Bootstrap's .display-5 is a fixed ~3rem regardless of viewport - "Reservierungssystem" alone (one
   unbreakable word) is then wider than a phone screen, forcing the whole page to scroll horizontally. */
.hero-title {
  font-size: clamp(1.75rem, 6vw, 3rem);
}

.calendar-table {
  table-layout: fixed;
}

.calendar-table th {
  text-align: center;
  font-weight: 600;
}

.calendar-day, .calendar-day-empty {
  vertical-align: top;
  height: 4.5rem;
  padding: 0.25rem;
}

.calendar-day-number {
  font-weight: 600;
}

.calendar-day-occupancy {
  font-size: 0.75rem;
  line-height: 1.1;
}

.calendar-day-past {
  color: var(--bs-secondary-color);
}

.calendar-day-clickable {
  padding: 0;
  cursor: pointer;
}

.calendar-day-link {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0.25rem;
  color: inherit;
  text-decoration: none;
}

.calendar-day-link:hover {
  outline: 2px solid var(--bs-primary);
  outline-offset: -2px;
}

.calendar-day-selected {
  outline: 3px solid var(--bs-primary);
  outline-offset: -3px;
}

.calendar-day-rangeselect {
  cursor: pointer;
}

.calendar-day-rangeselect:hover {
  outline: 2px solid #6ea8fe;
  outline-offset: -2px;
}

.calendar-day-range-selected {
  outline: 2px solid #6ea8fe;
  outline-offset: -2px;
}

/* --- Reservation list styling (start page day list, admin bookings page) -------------------- */

.section-card {
  background-color: var(--bs-body-bg);
  border: 1px solid var(--bs-border-color);
  border-radius: 0.75rem;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 0.125rem 0.5rem rgba(0, 0, 0, 0.05);
}

.section-card-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.avatar-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  min-width: 2.25rem;
  border-radius: 50%;
  background-color: var(--bs-secondary-bg, #e9ecef);
  color: var(--bs-secondary-color, #495057);
  font-weight: 600;
  font-size: 0.9rem;
}

.reservation-list-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0.25rem;
  border-bottom: 1px solid var(--bs-border-color-translucent, rgba(0, 0, 0, 0.075));
}

.reservation-list-item:last-child {
  border-bottom: none;
}

.reservation-list-item:hover {
  background-color: var(--bs-tertiary-bg, rgba(0, 0, 0, 0.02));
  border-radius: 0.5rem;
}

/* Admins only: a deleted reservation in the Buchungen list - greyed out. */
.reservation-card.reservation-card-deleted {
  border-left-color: var(--bs-dark);
  background-color: var(--bs-tertiary-bg);
  opacity: 0.75;
}

.reservation-card {
  border: 1px solid var(--bs-border-color);
  border-left: 4px solid var(--bs-warning);
  border-radius: 0.5rem;
  padding: 0.9rem 1rem;
  margin-bottom: 0.75rem;
  background-color: var(--bs-body-bg);
  transition: box-shadow 0.15s ease-in-out;
}

.reservation-card:hover {
  box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.08);
}

.reservation-card.status-approved {
  border-left-color: var(--bs-success);
}

.reservation-card.status-rejected {
  border-left-color: var(--bs-danger);
}

.reservation-card.status-cancelled {
  border-left-color: var(--bs-secondary);
}

.reservation-card.status-arbeitseinsatz {
  border-left-color: var(--bs-info);
}

/* --- Stacked tables (phone) ---------------------------------------------------------------------
   Wide admin tables (e.g. Benutzerverwaltung) turn into one card per row below the md breakpoint,
   each cell shown as "label: value" via its data-label attribute - instead of columns squeezed
   until they overlap. The .cell-title cell becomes the card heading, .cell-actions its button row.
   From md upward it stays an ordinary table. */
@media (max-width: 767.98px) {
  .table-stack,
  .table-stack tbody,
  .table-stack tr,
  .table-stack td {
    display: block;
    width: 100%;
  }

  .table-stack thead,
  .table-stack colgroup {
    display: none;
  }

  .table-stack tr {
    border: 1px solid var(--bs-border-color);
    border-radius: 0.5rem;
    padding: 0.6rem 0.85rem;
    margin-bottom: 0.75rem;
    background-color: var(--bs-body-bg);
  }

  .table-stack > :not(caption) > * > * {
    border-bottom-width: 0;
    padding: 0.2rem 0;
  }

  .table-stack td[data-label] {
    position: relative;
    padding-left: 8.5rem;
    overflow-wrap: anywhere;
  }

  .table-stack td[data-label]::before {
    content: attr(data-label);
    position: absolute;
    left: 0;
    width: 8rem;
    color: var(--bs-secondary-color);
    font-size: 0.85rem;
    line-height: 1.6;
  }

  .table-stack td.cell-title {
    font-weight: 600;
    font-size: 1.05rem;
    padding-bottom: 0.35rem;
  }

  .table-stack td.cell-actions {
    padding-top: 0.5rem;
  }
}

/* --- Task lists with rich-text notes (Arbeitseinsatz Tätigkeiten, Hüttendienst Aufgaben) ---------
   Each .task-item is a row plus an optional full-width note display and a collapsible note editor
   (see js/rich-note-editor.js and the _NoteEditorPanel partial). */
.task-item {
  padding: 0.85rem 0.25rem;
  border-bottom: 1px solid var(--bs-border-color-translucent, rgba(0, 0, 0, 0.075));
}

.task-item:last-of-type {
  border-bottom: none;
}

/* Text on the left wraps inside its own column; the buttons stay top-right on the first line instead
   of dropping below a long, multi-line description (which made the list look ragged). */
.task-row {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.task-row-main {
  flex: 1 1 auto;
  min-width: 0;
  overflow-wrap: anywhere;
}

/* Capped at half the row so several buttons on a phone stack inside their own column rather than
   squeezing the description down to a few characters per line. */
.task-row-actions {
  flex: 0 0 auto;
  max-width: 50%;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 0.5rem;
}

.task-note-display {
  background-color: var(--bs-tertiary-bg);
  border-radius: 0.375rem;
  padding: 0.5rem 0.75rem;
}

.damage-report-note {
  border-left: 3px solid var(--bs-warning);
  padding: 0.25rem 0.75rem;
}

/* Small previews of damage report photos - a click opens the large view (_GuideLightbox). */
.damage-photos {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.damage-photos[hidden] {
  display: none;
}

.damage-photo-edit {
  width: 5.5rem;
}

.damage-photos img {
  display: block;
  width: 5.5rem;
  height: 5.5rem;
  object-fit: cover;
  border-radius: 0.375rem;
  border: 1px solid var(--bs-border-color);
}

.note-editor {
  min-height: 9rem;
  background-color: var(--bs-body-bg);
}

.note-editor .ql-editor {
  min-height: 9rem;
  font-size: 1rem;
}

/* Saved notes are Quill 2 markup, which renders bullet lists as <ol><li data-list="bullet"> -
   restore the right list marker outside the editor. */
.rich-note p {
  margin-bottom: 0.25rem;
}

.rich-note p:last-child,
.rich-note ol:last-child,
.rich-note ul:last-child {
  margin-bottom: 0;
}

.rich-note li[data-list="bullet"] {
  list-style-type: disc;
}

.rich-note li[data-list="ordered"] {
  list-style-type: decimal;
}

/* --- Fahrtkostenzuschuss receipts ------------------------------------------------------------------ */
.signature-pad {
  display: block;
  width: 100%;
  height: 10rem;
  border: 1px dashed var(--bs-border-color);
  border-radius: 0.375rem;
  background-color: #fff;
  /* Lets a finger draw instead of scrolling the page. */
  touch-action: none;
}

.travel-signature-image {
  display: block;
  max-width: 100%;
  max-height: 8rem;
  border-bottom: 1px solid var(--bs-border-color);
}

.empty-state {
  text-align: center;
  color: var(--bs-secondary-color);
  padding: 2rem 1rem;
}

/* --- Reservation detail view (Reservations/Details, Admin/Reservations/Details) ------------- */

.stat-block-label {
  font-size: 0.8rem;
  color: var(--bs-secondary-color);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 0.15rem;
}

.stat-block-value {
  font-size: 1.15rem;
  font-weight: 600;
}

.guest-list-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 0.25rem;
  border-bottom: 1px solid var(--bs-border-color-translucent, rgba(0, 0, 0, 0.075));
}

.guest-list-item:last-child {
  border-bottom: none;
}

/* --- Login page ------------------------------------------------------------------------------ */

:root {
  --pine-950: #16281f;
  --pine-800: #1f3a2d;
  --pine-600: #2f5d4a;
  --pine-400: #4f8069;
  --mist-100: #e7efe7;
  --alpenglow: #e8b04f;
}

.login-shell {
  display: flex;
  justify-content: center;
  min-width: 0;
  padding-block: clamp(1rem, 4vw, 3rem);
}

.login-card {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  width: 100%;
  min-width: 0;
  max-width: 880px;
  background-color: var(--bs-body-bg);
  border: 1px solid var(--bs-border-color);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 1rem 2.5rem rgba(22, 40, 31, 0.12);
}

.login-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.6rem;
  padding: 2.25rem 2rem;
  /* Fallback for as long as no hero photo is deployed yet (see login-visual-summer/-winter below,
     which layer a real photo in front of this same gradient as a lower background layer). */
  background: linear-gradient(165deg, var(--pine-600) 0%, var(--pine-800) 62%, var(--pine-950) 100%);
  color: var(--mist-100);
  /* Shared floor across Login/Register/ForgotPassword (same grid row via CSS Grid's default
     align-items: stretch, so login-panel matches this too) - tuned to Register's own compacted
     content height, the tallest of the three, so all three pages render the same total height. */
  min-height: 41.5rem;
  min-width: 0;
  overflow: hidden;
}

/* Real hut photos, swapped by calendar month (see LoginModel.IsWinterHero) - a top-to-bottom scrim
   keeps the brand mark/heading/tagline text readable over whatever the photo looks like, and doubles
   as the fallback background if the image file itself is ever missing. */
.login-visual-summer,
.login-visual-winter {
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}

/* Relative to this stylesheet's own URL (wwwroot/css/site.css), not domain-rooted - the app is
   hosted under an IIS virtual path (PathBase), and a plain static CSS file has no way to know that
   prefix at request time, unlike Razor's "~/" tag helpers used elsewhere in the app. */
.login-visual-summer {
  background-image: linear-gradient(180deg, rgba(22, 40, 31, 0.03) 0%, rgba(22, 40, 31, 0.5) 100%), url("../images/login/hut-summer.jpg");
}

.login-visual-winter {
  background-image: linear-gradient(180deg, rgba(22, 40, 31, 0.05) 0%, rgba(22, 40, 31, 0.52) 100%), url("../images/login/hut-winter.jpg");
}

.login-season-toggle {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background-color: rgba(22, 40, 31, 0.45);
  color: var(--mist-100);
  cursor: pointer;
  transition: background-color 0.15s ease-in-out;
}

.login-season-toggle:hover,
.login-season-toggle:focus-visible {
  background-color: rgba(22, 40, 31, 0.75);
}

.login-season-toggle svg {
  width: 1.15rem;
  height: 1.15rem;
}

.login-brand-mark {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--bs-font-sans-serif);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.login-brand-mark svg {
  width: 1.6rem;
  height: 1.6rem;
  flex-shrink: 0;
  color: var(--alpenglow);
}

.login-heading {
  position: relative;
  font-size: 1.65rem;
  font-weight: 700;
  line-height: 1.25;
  margin-top: auto;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.login-tagline {
  position: relative;
  font-size: 0.92rem;
  color: rgba(231, 239, 231, 0.88);
  max-width: 30ch;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.login-panel {
  padding: clamp(1.75rem, 4vw, 2.75rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.login-panel-title {
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.login-panel-lede {
  color: var(--bs-secondary-color);
  font-size: 0.92rem;
  margin-bottom: 1.5rem;
}

/* Registrieren: "Ich bin" as compact chips that wrap onto the next line on narrow screens. */
.affiliation-choice {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
}

.affiliation-choice .btn {
  border-radius: 999px;
}

.login-submit {
  background-color: var(--pine-600);
  border-color: var(--pine-600);
}

.login-submit:hover,
.login-submit:focus {
  background-color: var(--pine-800);
  border-color: var(--pine-800);
}

.login-forgot {
  margin: 0.75rem 0 0;
  text-align: center;
  font-size: 0.92rem;
}

.login-links {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--bs-border-color-translucent, rgba(0, 0, 0, 0.075));
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.92rem;
}

.login-forgot a,
.login-links a {
  color: var(--pine-600);
  font-weight: 600;
  text-decoration: none;
}

.login-forgot a:hover,
.login-links a:hover {
  color: var(--pine-800);
  text-decoration: underline;
}

.login-hint {
  margin-top: 1rem;
  font-size: 0.82rem;
  color: var(--bs-secondary-color);
}

@media (max-width: 767.98px) {
  .login-card {
    grid-template-columns: 1fr;
  }

  .login-visual {
    min-height: 11rem;
    padding: 1.5rem 1.5rem 1.25rem;
  }

  .login-heading {
    font-size: 1.3rem;
  }
}

/* At every screen width: the opened menu is a card-like panel anchored directly under the burger
   icon, sized to its own content instead of stretching full width. */
.navbar > .container {
  position: relative;
}

.navbar .navbar-collapse {
  position: absolute;
  top: 100%;
  right: 0;
  left: auto;
  flex-basis: auto;
  flex-grow: 0;
  width: auto;
  min-width: 12rem;
  margin-top: 0.25rem;
  background-color: #fff;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 0.375rem;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
  padding: 0.75rem;
  z-index: 1030;
}

/* Start page, Arbeitseinsatz: organizer contact and the call for helpers. */
.organizer-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--bs-border-color);
  border-radius: 0.5rem;
  background: #f8fafc;
}

.helper-call {
  padding: 1rem 1.25rem;
  border-radius: 0.5rem;
  border-left: 4px solid var(--bs-success);
  background: #eef7f1;
}

/* A <form> wrapped around header/body/footer of a scrollable modal breaks Bootstrap's layout - the
   body no longer scrolls and the footer (with the submit button) is pushed out of the window on short
   screens. Making the form the flex column Bootstrap expects restores it for every such dialog. */
.modal-dialog-scrollable .modal-content > form {
  display: flex;
  flex-direction: column;
  min-height: 0;
  max-height: 100%;
  overflow: hidden;
}

.modal-dialog-scrollable .modal-content > form > .modal-body {
  overflow-y: auto;
}

/* Submenus (Hüttendienst, Stammdaten) open as their own panel to the left of the menu, level with
   their entry - not inline inside the menu, where Bootstrap puts them in a collapsed navbar. */
.navbar .navbar-nav .dropdown {
  position: relative;
}

.navbar .navbar-nav .dropdown-menu {
  position: absolute;
  top: -0.5rem;
  right: calc(100% + 1.25rem);
  left: auto;
  min-width: 11rem;
  margin: 0;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

/* Phones: no room to the left of the menu - the submenu floats below its entry instead, over the entries after it. */
@media (max-width: 575.98px) {
  .navbar .navbar-nav .dropdown-menu {
    top: 100%;
    right: 0;
    margin-top: 0.25rem;
    z-index: 1031;
  }
}

.navbar .navbar-nav .dropdown-toggle.show {
  font-weight: 600;
}
/* Hüttendienstprotokolle: compact per-week lists; a week is not split across printed pages. */
.protocol-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}
.protocol-list > li {
    padding: .35rem 0;
    border-top: 1px solid var(--bs-border-color-translucent);
}
.protocol-list > li:first-child {
    border-top: 0;
}
@media print {
    .protocol-week {
        break-inside: avoid;
    }
}
/* Hüttendienstprotokolle: a week with a protocol is collapsed to its header (<details>), like an accordion. */
.protocol-summary {
    cursor: pointer;
    list-style: none;
}
.protocol-summary::-webkit-details-marker {
    display: none;
}
.protocol-summary::before {
    content: "";
    width: .5rem;
    height: .5rem;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(-45deg);
    transition: transform .15s ease-in-out;
    flex-shrink: 0;
}
details[open] > .protocol-summary::before {
    transform: rotate(45deg);
}
details[open] > .protocol-summary {
    margin-bottom: .5rem !important;
}
/* Mitteilungen an den Hüttendienst (Hüttendienst page): light yellow like a note, so they stand out. */
.messages-card {
    background-color: #fff8d6;
    border-color: #f2e3a0;
}
/* Hüttendienstprotokolle: plain hierarchy inside an opened week - week (h5 in the summary), category
   heading (h6, underlined), entries with a small who/when line. No colours. */
.protocol-details {
    border-top: 1px solid var(--bs-border-color);
    padding-top: .25rem;
}
.protocol-section {
    margin-top: 1rem;
}
.protocol-section-title {
    font-size: 1rem;
    font-weight: 700;
    padding-bottom: .25rem;
    margin-bottom: .4rem;
    border-bottom: 1px solid var(--bs-border-color-translucent);
}
.protocol-count {
    font-weight: 400;
    color: var(--bs-secondary-color);
}
.protocol-entry-title {
    font-weight: 600;
}
.protocol-entry-meta {
    font-size: .8rem;
    color: var(--bs-secondary-color);
}
/* Up/down arrows for ordering a list (Tätigkeiten of an Arbeitseinsatz, wiederkehrende Hüttendienst-Aufgaben). */
.task-move-buttons .btn {
    padding: 0 0.35rem;
    line-height: 1;
}
.task-move-buttons svg {
    width: 0.75rem;
    height: 0.75rem;
}

/* --- Hüttendienstanleitungen (Huettendienst/Anleitung, Admin/HuettendienstAnleitungen/Bearbeiten) --- */
.guide-block {
  padding: 1rem 0;
  border-top: 1px solid var(--bs-border-color-translucent, rgba(0, 0, 0, 0.075));
}

.guide-block:first-of-type {
  border-top: none;
  padding-top: 0;
}

.guide-block-heading {
  font-size: 1.35rem;
  margin-bottom: 0.6rem;
}

/* The block's text flows around the image; on a phone the image takes the full width above the text. */
.guide-float-image {
  margin: 0 0 0.75rem;
}

@media (min-width: 576px) {
  .guide-float-image {
    max-width: 40%;
  }

  .guide-float-start {
    float: left;
    margin-right: 1.25rem;
  }

  .guide-float-end {
    float: right;
    margin-left: 1.25rem;
  }
}

.guide-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr));
  gap: 0.75rem;
}

.guide-gallery-item {
  margin: 0;
}

.guide-gallery-item img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 0.375rem;
}

.guide-gallery-item figcaption {
  margin-top: 0.25rem;
  overflow-wrap: anywhere;
}

.guide-image-link {
  cursor: zoom-in;
}

.guide-image-link:focus-visible img {
  outline: 3px solid var(--bs-primary);
  outline-offset: 2px;
}

.guide-lightbox .modal-content {
  background-color: #111;
  color: #f1f1f1;
}

.guide-lightbox-stage {
  position: relative;
}

.guide-lightbox-image {
  max-width: 100%;
  max-height: 78vh;
  object-fit: contain;
}

.guide-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2.75rem;
  height: 2.75rem;
  border: none;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 2rem;
  line-height: 1;
}

.guide-lightbox-nav:hover,
.guide-lightbox-nav:focus-visible {
  background-color: rgba(0, 0, 0, 0.8);
}

.guide-lightbox-prev {
  left: 0.5rem;
}

.guide-lightbox-next {
  right: 0.5rem;
}

.guide-edit-image {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--bs-border-color-translucent, rgba(0, 0, 0, 0.075));
}

.guide-edit-thumbnail img {
  width: 8rem;
  height: 6rem;
  object-fit: cover;
  border-radius: 0.375rem;
}
/* Category explanation above the guest category select on the reservation forms (reservation-form.js). */
.category-popover {
  max-width: 22rem;
  font-size: 0.875rem;
}