.guide-hero {
  min-height: 430px;
  padding: 104px 4vw 62px;
  background:
    linear-gradient(90deg, rgba(251, 250, 247, 0.95), rgba(251, 250, 247, 0.76)),
    url("../assets/hero-aerial.jpg") center / cover;
  border-bottom: 1px solid var(--line);
}

.guide-hero h1 {
  margin: 0 0 22px;
}

.guide-hero > p:last-child {
  max-width: 720px;
  color: var(--muted);
  font-size: 17px;
}

.guide-local-nav {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  padding-inline: 4vw;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.guide-local-nav a {
  display: grid;
  place-items: center;
  min-height: 76px;
  padding: 16px;
  border-left: 1px solid var(--line);
  text-align: center;
  font-weight: 700;
  line-height: 1.45;
}

.guide-local-nav a:last-child {
  border-right: 1px solid var(--line);
}

.guide-section {
  padding: 86px 4vw;
}

.guide-asoview {
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.guide-rental {
  background: #fff;
}

.guide-rental-contact h3 {
  margin: 0 0 22px;
  font-size: 20px;
}

.guide-rental-contact .button {
  min-width: 0;
  white-space: normal;
  line-height: 1.6;
}

.guide-rental-contact p {
  margin: 24px 0 0;
}

.guide-overview,
.guide-access,
.guide-faq {
  background: var(--paper);
}

.guide-tickets,
.guide-group {
  background: #f1eee6;
}

.guide-summary-grid,
.route-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.guide-summary-card,
.route-grid article,
.ticket-notes,
.group-card,
.contact-card,
.faq-list details {
  background: #fff;
  border: 1px solid var(--line);
}

.guide-summary-card {
  padding: 26px;
}

.guide-summary-card span,
.group-card span {
  display: block;
  margin-bottom: 10px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
}

.guide-summary-card strong,
.group-card strong {
  display: block;
  margin-bottom: 12px;
  font-size: 24px;
  line-height: 1.4;
}

.guide-summary-card p,
.route-grid p,
.ticket-notes p,
.group-card p,
.contact-card p,
.faq-list p {
  color: var(--muted);
}

.guide-summary-card.is-alert {
  border-color: #9d6b43;
  background: #fff8ef;
}

.calendar-wire {
  margin-top: 34px;
  padding: 28px;
  background: #fff;
  border: 1px solid var(--line);
}

.calendar-wire__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}

.calendar-wire__head h3 {
  margin: 0;
}

.calendar-wire__head button {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 16px;
  background: #fff;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.calendar-grid > span,
.calendar-grid > b {
  min-height: 54px;
  padding: 10px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.calendar-grid > span {
  color: #fff;
  background: var(--dark);
  text-align: center;
}

.calendar-nav-button {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 16px;
  background: #fff;
  font-weight: 700;
}

.calendar-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
}

.calendar-grid--dynamic > b {
  min-height: 132px;
  padding: 9px 8px;
  background: #fffdf9;
  font-weight: 400;
}

.calendar-day {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-weight: 400;
  height: 100%;
}

.calendar-day.is-empty {
  background: #f7f5ef;
}

.calendar-day.is-closed {
  background: #fbf4ed;
}

.calendar-day-number {
  display: inline-flex;
  width: 24px;
  height: 24px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--dark);
  background: #f3efe7;
  font-weight: 800;
  font-size: 13px;
}

.calendar-day-items {
  display: grid;
  gap: 2px;
}

.calendar-item {
  display: flex;
  align-items: flex-start;
  gap: 5px;
  min-width: 0;
  padding: 4px 0 5px;
  border-top: 1px solid rgba(42, 37, 32, .12);
  background: transparent;
  color: var(--dark);
  font-size: 12px;
  line-height: 1.35;
}

.calendar-item-title {
  min-width: 0;
  padding-top: 1px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  font-weight: 700;
}

.calendar-pill {
  display: inline-flex;
  width: fit-content;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  min-width: 3.5em;
  min-height: 18px;
  padding: 2px 5px;
  border: 1px solid transparent;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.2;
}

.calendar-pill--closed {
  color: #764027;
  border-color: #e6c7b5;
  background: #f7e7dc;
}

.calendar-pill--open {
  color: #224126;
  border-color: #c6d9bf;
  background: #dcebd6;
}

.calendar-pill--notice {
  color: #674417;
  border-color: #ead0a3;
  background: #f7e5c5;
}

.calendar-pill--exhibition {
  color: #243a68;
  border-color: #c9d9eb;
  background: #dde8f6;
}

.calendar-pill--event {
  color: #6c2734;
  border-color: #e6c0c8;
  background: #f5dbe0;
}

.calendar-more {
  padding-top: 2px;
  color: #71685e;
  font-size: 11px;
  font-weight: 700;
}

.calendar-weekdays {
  border-bottom: 0;
}

.calendar-weekdays > span {
  min-height: 46px;
}

.calendar-month-grid {
  border-left: 1px solid var(--line);
}

.calendar-week {
  position: relative;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  min-height: calc(52px + max(var(--bar-count), 1) * 26px);
}

.calendar-week > .calendar-day {
  grid-row: 1;
  min-height: calc(52px + max(var(--bar-count), 1) * 26px);
  padding: 10px 8px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fffdf9;
}

.calendar-week > .calendar-day:nth-child(1) {
  grid-column: 1;
}

.calendar-week > .calendar-day:nth-child(2) {
  grid-column: 2;
}

.calendar-week > .calendar-day:nth-child(3) {
  grid-column: 3;
}

.calendar-week > .calendar-day:nth-child(4) {
  grid-column: 4;
}

.calendar-week > .calendar-day:nth-child(5) {
  grid-column: 5;
}

.calendar-week > .calendar-day:nth-child(6) {
  grid-column: 6;
}

.calendar-week > .calendar-day:nth-child(7) {
  grid-column: 7;
}

.calendar-week > .calendar-day.is-empty {
  background: #f7f5ef;
}

.calendar-week > .calendar-day.is-closed {
  background: #fbf4ed;
}

.calendar-bar {
  position: relative;
  z-index: 2;
  grid-row: 1;
  align-self: start;
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 7px;
  height: 22px;
  margin: calc(38px + var(--bar-row) * 26px) 5px 0;
  padding: 0 8px;
  border: 1px solid transparent;
  border-radius: 4px;
  color: var(--dark);
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  box-shadow: 0 1px 0 rgba(42, 37, 32, .08);
}

.calendar-bar:hover {
  text-decoration: none;
  filter: brightness(.98);
}

.calendar-bar .calendar-pill {
  min-width: auto;
  min-height: 16px;
  padding: 1px 5px;
  background: rgba(255, 255, 255, .62);
  font-size: 10px;
}

.calendar-bar-title {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.calendar-bar--closed {
  border-color: #e6c7b5;
  background: #f7e7dc;
}

.calendar-bar--open {
  border-color: #c6d9bf;
  background: #dcebd6;
}

.calendar-bar--notice {
  border-color: #ead0a3;
  background: #f7e5c5;
}

.calendar-bar--exhibition {
  border-color: #c9d9eb;
  background: #dde8f6;
}

.calendar-bar--event {
  border-color: #e6c0c8;
  background: #f5dbe0;
}

.ticket-layout,
.access-layout,
.group-layout,
.faq-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 42px;
  align-items: start;
}

.fee-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid var(--line);
}

.fee-table th,
.fee-table td {
  padding: 20px;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  text-align: left;
}

.fee-table thead th {
  color: #fff;
  background: var(--dark);
}

.ticket-notes,
.group-card,
.contact-card {
  padding: 26px;
}

.ticket-notes h3,
.group-card h3,
.contact-card h3 {
  margin-bottom: 12px;
}

.map-placeholder {
  display: grid;
  place-items: center;
  min-height: 430px;
  background:
    linear-gradient(135deg, rgba(35, 35, 35, 0.08) 25%, transparent 25%) 0 0 / 28px 28px,
    #e5ded3;
  border: 1px solid var(--line);
  text-align: center;
}

.map-placeholder span {
  font-family: var(--display-serif);
  font-size: 64px;
  line-height: 1;
}

.map-placeholder p {
  margin: 10px 0 0;
  color: var(--muted);
  font-weight: 700;
}

.access-info {
  padding: 30px;
  background: #fff;
  border: 1px solid var(--line);
}

.notice {
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.route-grid {
  margin-top: 28px;
}

.route-grid article {
  padding: 24px;
}

.lead {
  max-width: 760px;
  font-size: 18px;
}

.guide-list {
  display: grid;
  gap: 12px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.guide-list li {
  padding: 16px 18px;
  background: #fff;
  border: 1px solid var(--line);
}

.group-card button {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #eee7dc;
  color: var(--muted);
  font-weight: 700;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-list details {
  padding: 0;
}

.faq-list summary {
  cursor: pointer;
  padding: 22px 24px;
  font-weight: 800;
}

.faq-list p {
  margin: 0;
  padding: 0 24px 24px;
}

.contact-card {
  position: sticky;
  top: 140px;
}

@media (max-width: 1120px) {
  .guide-local-nav,
  .guide-summary-grid,
  .route-grid,
  .ticket-layout,
  .access-layout,
  .group-layout,
  .faq-layout {
    grid-template-columns: 1fr;
  }

  .contact-card {
    position: static;
  }
}

@media (max-width: 720px) {
  .guide-hero,
  .guide-section {
    padding: 54px 20px;
  }

  .guide-hero h1 {
    font-size: 42px;
  }

  .guide-local-nav {
    grid-template-columns: 1fr;
    padding-inline: 20px;
  }

  .guide-local-nav a {
    border-right: 1px solid var(--line);
  }

  .calendar-wire {
    padding: 16px;
  }

  .fee-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}
