:root {
  color-scheme: light;
  --ink: #202124;
  --muted: #5f6368;
  --paper: #f8fafd;
  --panel: #ffffff;
  --line: #dadce0;
  --brand: #1a73e8;
  --brand-strong: #174ea6;
  --field: #f1f3f4;
  --shadow: 0 6px 18px rgba(60, 64, 67, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  min-height: 100%;
  margin: 0;
  position: relative;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}


body::before,
body::after {
  position: fixed;
  top: 72px;
  bottom: 16px;
  z-index: 0;
  width: clamp(110px, calc((100vw - 1320px) / 2 + 72px), 280px);
  content: "";
  pointer-events: none;
  opacity: 0.2;
  filter: grayscale(35%) saturate(0.5) brightness(1.15) contrast(0.9);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  border: 1px solid rgba(218, 220, 224, 0.6);
  box-shadow: 0 1px 2px rgba(60, 64, 67, 0.08);
}

body::before {
  left: 12px;
  background-image: linear-gradient(90deg, rgba(248, 250, 253, 0.1), rgba(248, 250, 253, 0.58)), url("/assets/castle.jpeg");
  border-radius: 10px 0 0 10px;
  -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 58%, transparent 100%);
  mask-image: linear-gradient(90deg, #000 0%, #000 58%, transparent 100%);
}

body::after {
  right: 12px;
  background-image: linear-gradient(270deg, rgba(248, 250, 253, 0.1), rgba(248, 250, 253, 0.58)), url("/assets/castle2.jpeg");
  border-radius: 0 10px 10px 0;
  -webkit-mask-image: linear-gradient(270deg, #000 0%, #000 58%, transparent 100%);
  mask-image: linear-gradient(270deg, #000 0%, #000 58%, transparent 100%);
}
img,
iframe {
  max-width: 100%;
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.site-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.header-inner {
  width: min(1320px, calc(100% - 24px));
  min-height: 58px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto minmax(280px, 390px) auto;
  align-items: center;
  gap: 14px;
}

.legacy-header-inner {
  grid-template-columns: auto auto;
  width: min(1120px, calc(100% - 32px));
}

.brand {
  margin: 0;
  color: var(--ink);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.25;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.nav-links a {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.nav-links a:hover {
  background: var(--field);
  color: var(--brand-strong);
}

.main {
  flex: 1;
}

.section {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0 58px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--brand-strong);
  font-size: 14px;
  font-weight: 800;
}

h1,
h2,
h3 {
  line-height: 1.25;
  letter-spacing: 0;
}

h1,
h2 {
  margin: 0;
  color: var(--ink);
}

p {
  margin-top: 0;
}

.lead {
  max-width: 700px;
  margin: 18px 0 0;
  color: var(--muted);
}

.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-top: 24px;
  padding: 9px 16px;
  border-radius: 8px;
  background: var(--brand);
  color: #ffffff;
  font-weight: 800;
  text-decoration: none;
}

.button-link:hover {
  background: var(--brand-strong);
}

.map-page {
  position: relative;
  z-index: 1;
  width: min(1320px, calc(100% - 48px));
  margin: 0 auto;
  padding: 10px 0 14px;
}

.map-switcher {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  padding: 4px;
  background: var(--field);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.header-switcher {
  width: 100%;
}

.map-switch {
  min-height: 38px;
  padding: 7px 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
}

.map-switch.is-active {
  background: var(--panel);
  color: var(--brand-strong);
  box-shadow: 0 2px 8px rgba(60, 64, 67, 0.16);
}

.map-switch:focus-visible,
.button-link:focus-visible,
.nav-links a:focus-visible,
.trip-link-list a:focus-visible {
  outline: 3px solid rgba(26, 115, 232, 0.28);
  outline-offset: 2px;
}

.top-strip {
  position: relative;
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(420px, 1.2fr);
  gap: 12px;
  align-items: center;
  min-height: 48px;
  margin-bottom: 8px;
  padding: 7px 10px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(60, 64, 67, 0.1);
}

.site-note,
.trip-links {
  position: relative;
  z-index: 1;
}

.site-note {
  margin: 0;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
}

.trip-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
}

.trip-links-heading {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 6px;
}

.trip-links h2 {
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.ad-label {
  min-width: 22px;
  padding: 1px 4px;
  border: 1px solid #c4c7c5;
  border-radius: 4px;
  background: #ffffff;
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  line-height: 1.3;
  text-align: center;
}

.trip-link-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
  min-width: 0;
}

.trip-link-list a {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 9px;
  border: 1px solid #c6dafc;
  border-radius: 8px;
  background: #f8fbff;
  color: var(--brand-strong);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.trip-link-list a:hover {
  border-color: #8ab4f8;
  background: #e8f0fe;
}

.ad-note {
  flex: 0 0 auto;
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
  white-space: nowrap;
}

.map-frame {
  width: 100%;
  height: calc(100vh - 124px);
  min-height: 560px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--field);
  box-shadow: 0 1px 2px rgba(60, 64, 67, 0.12);
}

.map-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #f1f3f4;
}

.footer-inner {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0;
  color: var(--muted);
  font-size: 13px;
}

.footer-inner p {
  margin: 0 0 6px;
}

.not-found {
  max-width: 680px;
  margin: 0 auto;
  padding: 72px 0;
}

@media (max-width: 1480px) {
  body::before,
  body::after {
    width: clamp(80px, 12vw, 170px);
    opacity: 0.14;
  }
}

@media (max-width: 1180px) {
  body::before,
  body::after {
    display: none;
  }
}

@media (max-width: 900px) {
  .header-inner {
    min-height: auto;
    grid-template-columns: 1fr auto;
    padding: 10px 0;
  }

  .header-switcher {
    grid-column: 1 / -1;
    order: 3;
  }

  .legacy-header-inner {
    grid-template-columns: auto auto;
    width: min(1120px, calc(100% - 32px));
  }

  .brand {
    white-space: normal;
  }

  .top-strip {
    grid-template-columns: 1fr;
    gap: 6px;
    min-height: 76px;
  }

  .trip-links {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .trip-link-list {
    justify-content: flex-start;
  }

  .map-frame {
    height: calc(100vh - 222px);
    min-height: 410px;
  }
}

@media (max-width: 560px) {
  .map-page {
    width: min(100% - 16px, 1320px);
    padding-top: 8px;
  }

  .map-switch {
    min-height: 42px;
    padding: 8px 6px;
    font-size: 13px;
  }

  .site-note {
    font-size: 12px;
  }

  .trip-links h2,
  .ad-note {
    font-size: 11px;
  }

  .trip-link-list a {
    flex: 1 1 86px;
    min-height: 32px;
  }

  .map-frame {
    height: calc(100vh - 242px);
    min-height: 340px;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --ink: #e8eaed;
    --muted: #9aa0a6;
    --paper: #1f2124;
    --panel: #2d2f33;
    --line: #3c4043;
    --brand: #8ab4f8;
    --brand-strong: #aecbfa;
    --field: #2d2f33;
    --shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
  }

  body::before {
    background-image: linear-gradient(90deg, rgba(31, 33, 36, 0.1), rgba(31, 33, 36, 0.58)), url("/assets/castle.jpeg");
  }

  body::after {
    background-image: linear-gradient(270deg, rgba(31, 33, 36, 0.1), rgba(31, 33, 36, 0.58)), url("/assets/castle2.jpeg");
  }

  .site-header {
    background: rgba(31, 33, 36, 0.96);
  }

  .top-strip {
    background: rgba(45, 47, 51, 0.94);
  }

  .trip-link-list a {
    border-color: #3c5a8a;
    background: #1e3050;
    color: var(--brand-strong);
  }

  .trip-link-list a:hover {
    border-color: #8ab4f8;
    background: #2a4570;
  }

  .ad-label {
    border-color: #5f6368;
    background: var(--panel);
    color: var(--muted);
  }

  .site-footer {
    background: #17181b;
  }
}

