/* Restored site functions and responsive refinements. */

/* The active navigation underline belongs to the wine brand color. */
.nav-list a.is-current::after {
  background: var(--brand);
}

/* Conditions: restore the orderly grid used by the original site. */
.conditions-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  max-width: 920px;
  margin-inline: auto;
}

.condition-tag {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--ink);
  text-align: center;
  font-size: 0.94rem;
  line-height: 1.45;
}

.condition-tag-wide {
  grid-column: span 2;
  background: var(--brand-pale);
  color: var(--brand-deep);
  font-weight: var(--fw-medium);
}

/* Google Map restored from the original site. */
.map-area {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-soft);
  box-shadow: var(--shadow-soft);
}

.map-area iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.map-link {
  margin-top: 10px;
  text-align: right;
  font-size: var(--fs-small);
}

/* Reservation calendar restored from haripohp. */
.calendar-wrap {
  width: 100%;
  margin-top: var(--block-gap);
}

.calendar-title {
  margin-bottom: 10px;
  color: var(--brand-deep);
  font-family: var(--font-round);
  font-size: var(--fs-h2);
  font-weight: var(--fw-medium);
  text-align: center;
}

.calendar-sub {
  margin-bottom: var(--sp-5);
  color: var(--ink);
  text-align: center;
}

.calendar-note {
  margin-top: var(--sp-4);
  color: var(--ink-mute);
  font-size: var(--fs-small);
  text-align: center;
}

#fullcalendar {
  padding: var(--sp-4);
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

#fullcalendar .fc-button-primary,
#fullcalendar .fc-button-primary:not(:disabled):active,
#fullcalendar .fc-button-primary:not(:disabled).fc-button-active {
  border-color: var(--brand);
  border-radius: var(--radius-pill);
  background: var(--brand);
  font-family: var(--font-main);
}

#fullcalendar .fc-button-primary:hover {
  border-color: var(--brand-deep);
  background: var(--brand-deep);
}

#fullcalendar .fc-button-group {
  gap: 6px;
}

#fullcalendar .fc-toolbar.fc-header-toolbar {
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  margin-bottom: 14px;
}

#fullcalendar .fc-toolbar-chunk {
  display: flex;
  justify-content: center;
}

#fullcalendar .fc-toolbar-title {
  color: var(--brand-deep);
  font-family: var(--font-serif);
  text-align: center;
}

#fullcalendar .fc-col-header-cell {
  padding: 0;
}

#fullcalendar .fc-col-header-cell-cushion {
  display: block;
  padding: 0;
  color: var(--brand-deep);
}

#fullcalendar .fc-custom-day-head {
  display: grid;
  grid-template-rows: auto auto;
  overflow: hidden;
  background: var(--white);
}

#fullcalendar .fc-custom-dow,
#fullcalendar .fc-custom-date {
  display: block;
  padding: 5px 4px;
  text-align: center;
  line-height: 1.2;
}

#fullcalendar .fc-custom-dow {
  border-bottom: 1px solid var(--line);
  background: var(--paper-soft);
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: var(--fw-medium);
}

#fullcalendar .fc-custom-date {
  color: var(--brand-deep);
  font-size: 1rem;
}

#fullcalendar .fc-bg-event {
  opacity: 1 !important;
}

#fullcalendar .fc-bg-event .fc-event-title {
  color: var(--brand-deep);
  font-size: 0.82rem;
  font-weight: var(--fw-bold);
  line-height: 1.35;
}

/* Footer: use the original content hierarchy and stack it earlier on mobile. */
.footer-info,
.footer-hours {
  color: rgba(243, 238, 232, 0.78);
  font-size: var(--fs-small);
}

.footer-hours-note {
  color: rgba(243, 238, 232, 0.62);
}

.hp-contact-btn__icon--line {
  background: rgba(255, 255, 255, 0.2);
  color: var(--white);
}

.hp-contact-btn__icon--line .fa-line {
  font-size: 1.45rem;
  line-height: 1;
}

/* Top page: catch copy stays centered; body lead is a centered block with left-aligned text. */
#about .intro-catch {
  margin-inline: auto;
  text-align: center;
}

#about .intro-lead {
  margin-inline: auto;
  text-align: left;
}

#contact .steps > div {
  text-align: center;
}

/* Course page: use the same centered heading axis as the other pages. */
.plan-block {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
  grid-template-areas:
    "heading heading"
    "media copy";
  column-gap: clamp(32px, 5vw, 64px);
  row-gap: clamp(28px, 4vw, 40px);
}

.plan-block__heading {
  grid-area: heading;
  grid-column: 1 / -1;
  text-align: center;
}

.plan-title {
  margin: 0;
  color: var(--ink-strong);
  font-family: var(--font-heading);
  font-size: var(--fs-h1);
  font-weight: var(--fw-medium);
  letter-spacing: 0.04em;
  line-height: var(--lh-snug);
}

.plan-title-flourish {
  display: flex;
  justify-content: center;
  margin-top: 14px;
  color: var(--apricot);
}

.plan-title-flourish svg {
  width: 62px;
  height: 14px;
}

.plan-block__copy {
  grid-area: copy;
  max-width: var(--measure);
}

.plan-block__copy .plan-desc:first-child {
  font-size: 1.02rem;
}

.plan-block__media {
  grid-area: media;
  align-self: start;
}

@media (max-width: 980px) {
  .menu-toggle {
    position: relative;
    z-index: 110;
  }

  .menu-toggle.is-open {
    position: fixed;
    top: 9px;
    right: 18px;
  }

  .nav-list li {
    width: 100%;
  }

  .nav-list a {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    border-radius: 0;
  }

  .nav-list a::after {
    content: "›";
    position: static;
    width: auto;
    height: auto;
    background: transparent;
    color: var(--brand);
    font-size: 1.4rem;
  }

  .nav-list a.is-current {
    background: var(--brand-pale);
    color: var(--brand);
  }

  .nav-list a.is-current::after {
    content: "›";
    width: auto;
    height: auto;
    color: var(--brand);
  }

  .nav-list .nav-reserve {
    display: flex;
    width: 100%;
    margin: 0;
    padding: 22px 28px;
    border-radius: 0;
    background: var(--brand);
    color: var(--white) !important;
  }

  .nav-list .nav-reserve::after {
    content: "→";
    color: var(--white);
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .plan-block {
    grid-template-columns: 1fr;
    grid-template-areas:
      "heading"
      "copy"
      "media";
    row-gap: 24px;
  }

  .plan-block__heading {
    grid-column: auto;
  }

  .plan-block__copy {
    max-width: var(--measure);
    margin-inline: auto;
  }

  .plan-block__media {
    width: 100%;
    max-width: 760px;
    margin-inline: auto;
  }

  .footer-col {
    padding-block: 24px;
  }

  .footer-col + .footer-col {
    border-top: 1px solid rgba(243, 238, 232, 0.14);
  }
}

@media (max-width: 700px) {
  .conditions-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .condition-tag {
    min-height: 52px;
    padding-inline: 8px;
    font-size: 0.9rem;
  }

  .map-area {
    aspect-ratio: 1 / 1;
  }

  .map-link {
    text-align: left;
  }

  #fullcalendar {
    padding: 10px;
  }

  #fullcalendar .fc-toolbar-title {
    font-size: 1.2rem;
    line-height: 1.35;
  }

  #fullcalendar .fc-button {
    padding: 0.45rem 0.62rem;
    font-size: 0.84rem;
  }

  .footer {
    padding-top: 36px;
  }

  .footer-col {
    padding-block: 20px;
  }

  .footer-logo {
    font-size: 1.25rem;
  }

  .footer-copy {
    margin-top: 8px;
  }
}
