/* Bravessian Royal House local overrides */
html { scroll-behavior: smooth; }
body { overflow-x: hidden; }
img { max-width: 100%; height: auto; }
section[id] { scroll-margin-top: 100px; }

/* Accessible focus without changing the visual language. */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 3px;
}

.responsible-note {
  margin: 1.5rem 0 0;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(0,0,0,.16);
  border-radius: 4px;
  text-align: center;
}

.local-media-replacement,
.local-location-image {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}
#hotel-media .mbr-figure { overflow: hidden; border-radius: 4px; }
#hotel-media .local-media-replacement { max-height: 620px; object-fit: cover; }
.local-location-card { position: relative; overflow: hidden; min-height: 360px; }
.local-location-image { min-height: 360px; max-height: 520px; object-fit: cover; }
.location-caption {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  max-width: calc(100% - 2rem);
  background: rgba(253,254,242,.94);
  color: #000;
  padding: .85rem 1rem;
  border-radius: 4px;
  line-height: 1.45;
}

/* Footer legal block */
.legal-info-block {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,.28);
  text-align: left;
}
.legal-info-title { margin: 0 0 1rem; color: inherit; }
.legal-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: .65rem 1.5rem;
}
.legal-info-item { overflow-wrap: anywhere; }
.legal-test-note { margin: 1rem 0; opacity: .85; }
.legal-links { display: flex; flex-wrap: wrap; gap: .75rem 1.25rem; }
.legal-links a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.legal-links a:hover, .legal-links a:focus { text-decoration-thickness: 2px; }

/* Legal pages */
.legal-main { padding: 8.5rem 0 4rem; min-height: 70vh; }
.legal-shell { max-width: 900px; }
.legal-shell h1 { margin-bottom: 1rem; }
.legal-shell h2 { margin: 2rem 0 .75rem; font-size: 1.6rem; }
.legal-shell p, .legal-shell li { line-height: 1.7; }
.legal-shell ul { padding-left: 1.25rem; }
.legal-meta { opacity: .75; margin-bottom: 2rem; }

/* Reliable mobile navigation layered above page content. */
@media (max-width: 991px) {
  #site-header .navbar { min-height: 76px; padding: .35rem 1rem; }
  #site-header .navbar-brand { min-height: 64px; max-width: calc(100% - 64px); padding-right: .5rem; }
  #site-header .navbar-caption { font-size: clamp(1rem, 5vw, 1.45rem) !important; line-height: 1.2 !important; }
  #site-header .navbar-toggler { display: block !important; visibility: visible !important; opacity: 1 !important; flex: 0 0 32px; z-index: 1060; }
  #site-header .navbar-collapse {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    max-height: calc(100vh - 76px);
    overflow-y: auto;
    background: #fdfef2;
    padding: .75rem 1rem 1.25rem;
    box-shadow: 0 12px 24px rgba(0,0,0,.12);
    z-index: 1050;
  }
  #site-header .navbar-collapse.collapse:not(.show) { display: none !important; }
  #site-header .navbar-collapse.collapsing,
  #site-header .navbar-collapse.show { display: block !important; }
  #site-header .navbar-nav { width: 100%; }
  #site-header .nav-item, #site-header .nav-link { width: 100%; text-align: center; }
  #site-header .navbar-buttons { width: 100%; text-align: center; margin-top: .5rem; }
  #site-header .navbar-buttons .btn { margin-left: auto; margin-right: auto; }
  #site-header .navbar.opened .navbar-toggler { display: block !important; }
}
@media (max-width: 767px) {
  .legal-info-grid { grid-template-columns: 1fr; }
  .legal-links { flex-direction: column; gap: .5rem; }
  .location-caption { position: static; border-radius: 0; }
  .local-location-card, .local-location-image { min-height: 260px; }
}
@media (max-width: 420px) {
  #site-header .navbar { padding-left: .75rem; padding-right: .75rem; }
  #site-header .navbar-caption { font-size: 1rem !important; }
  .display-1 { overflow-wrap: anywhere; }
}
