/* What WordPress needs on top of styles/ (assets/css/site.css). Kept small: everything else is the
   Next.js site's own CSS, unchanged. Unlayered, so it sits above the site's layers, as the few rules at
   the bottom of styles/globals.css do. */

/* next/image writes these as inline styles on every fill image; here they are one rule. */
.cover-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  color: transparent;
}

/* The sticky header sits below the WordPress toolbar for signed-in editors. */
@media (min-width: 783px) {
  .admin-bar .header { top: 32px; }
}
@media (max-width: 782px) {
  .admin-bar .header { top: 46px; }
}

/* The booking page shows its own loading and fallback text (ReservationWidget.tsx), so the
   plugin's own message stays hidden. Its hint for signed-in editors remains. */
.reservation-widget .tfg-widget__fallback,
.reservation-widget .tfg-widget--unavailable .tfg-widget__message { display: none !important; }
.reservation-widget .tfg-widget iframe { min-height: 420px; }
.reservation-widget .tfg-widget__hint { border-radius: 0; }

/* Old pages kept as they were written (templates/legacy.php): their own text and images in the
   running-text column. */
.legacy-content > * + * { margin-top: var(--space-4); }
.legacy-content p,
.legacy-content li { font-size: var(--text-body-lg); line-height: var(--leading-body); color: var(--text-body); }
.legacy-content h2,
.legacy-content h3 { font-family: var(--font-display); font-weight: var(--weight-display-mid); color: var(--text-strong); }
.legacy-content img { max-width: 100%; height: auto; border-radius: 0; }
.legacy-content a { color: var(--wine-700); }

/* Pinned Time for Guests announcements (hs_render_closure_notices): one quiet wine band under the header,
   label, date, title and text on a single line that wraps on a phone. Overrides styles/announcements.css,
   whose three-column grid left an empty date column and a large serif title in a narrow bar. */
.closure-notices {
  border-bottom: 0;
  background: var(--wine-700);
  color: var(--sand-88);
}
.closure-notices__inner {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3) var(--space-5);
  padding-top: var(--space-3);
  padding-bottom: var(--space-3);
}
.closure-notices__label {
  flex-shrink: 0;
  margin: 0;
  padding: 3px var(--space-2);
  border: 1px solid var(--sand-36);
  color: var(--sand-100);
  font-size: var(--text-eyebrow);
  letter-spacing: var(--tracking-meta);
  line-height: var(--leading-ui);
  text-transform: uppercase;
}
.closure-notices__list { display: grid; gap: var(--space-2); flex: 1; min-width: 0; }
.closure-notice,
.closure-notice + .closure-notice {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--space-1) var(--space-4);
  padding: 0;
  border: 0;
}
.closure-notice__date {
  margin: 0;
  padding: 0;
  color: var(--wine-300);
  font-size: var(--text-fine);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
}
.closure-notice__copy {
  margin: 0;
  max-width: var(--measure-wide);
  font-size: var(--text-body-sm);
  line-height: var(--leading-body-tight);
  color: var(--sand-82);
}
.closure-notice__title {
  font-family: var(--font-body);
  font-size: inherit;
  font-weight: var(--weight-body-strong);
  color: var(--sand-100);
}
.closure-notice__action,
.closure-notice__action:hover {
  min-height: 0;
  padding: 0;
  color: var(--sand-100);
  font-size: var(--text-body-sm);
  border-bottom: 1px solid var(--sand-36);
}
.closure-notice__action:hover { border-bottom-color: var(--sand-100); }
@media (max-width: 700px) {
  /* On a phone the wine band says enough: the label stays for screen readers, the notice gets the space. */
  .closure-notices__inner { gap: var(--space-2); padding-top: var(--space-2); padding-bottom: var(--space-2); }
  .closure-notices__label { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
}

/* Header: the request button lines up with the language switch above it. */
@media (min-width: 1080px) {
  .header__nav .btn { margin-left: var(--space-3); white-space: nowrap; }
}

/* Mobile menu: phone number and route at the bottom. */
.mobile-nav__contact {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-5);
  padding-top: var(--space-5);
}
.mobile-nav__contact a {
  display: inline-flex;
  align-items: center;
  min-height: var(--touch-target);
  font-size: var(--text-body-md);
  color: var(--wine-700);
}
.mobile-nav__call { font-weight: var(--weight-body-strong); }

/* Request bar on a wide screen: three fields and the button on one line, the button never wrapping
   into two lines. The note runs underneath across the full width. */
@media (min-width: 900px) {
  .request-bar__card { grid-template-columns: repeat(3, minmax(0, 1fr)) auto; }
}
.request-bar__card .btn { white-space: nowrap; }

/* 404: the site's own header and footer around a short way back. */
.not-found-page { padding-top: var(--section-gap-tight); padding-bottom: var(--section-gap-tight); }
.not-found-page h1 {
  margin-top: var(--space-4);
  max-width: var(--measure-title);
  font-family: var(--font-display);
  font-size: var(--text-page-title);
  font-weight: var(--weight-display);
  line-height: var(--leading-display);
  letter-spacing: var(--tracking-tight);
  color: var(--text-strong);
}
.not-found-page__body { margin-top: var(--space-5); max-width: var(--measure-lead); font-size: var(--text-body-lg); line-height: var(--leading-body); color: var(--text-body); }
.not-found-page__links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 0 var(--column-gap-tight);
  margin: var(--space-8) 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--border-hairline);
}
.not-found-page__links a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 64px;
  border-bottom: 1px solid var(--border-hairline);
  font-family: var(--font-display);
  font-size: var(--text-card-title);
  color: var(--wine-700);
}
.not-found-page__links a:hover { color: var(--text-strong); }

/* Contact: how to get here. */
.contact-route { padding-top: var(--section-gap-tight); }
.contact-route__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: var(--space-6) var(--column-gap-tight);
  margin-top: var(--space-6);
  padding-top: var(--space-6);
  border-top: 1px solid var(--border-hairline);
}
.contact-route h2 { font-family: var(--font-display); font-size: var(--text-section); font-weight: var(--weight-display); line-height: var(--leading-display); color: var(--text-accent); }
.contact-route h3 { font-family: var(--font-display); font-size: var(--text-card-title); font-weight: var(--weight-display); color: var(--text-strong); }
.contact-route p { margin-top: var(--space-3); font-size: var(--text-body-md); line-height: var(--leading-body); color: var(--text-body); max-width: 44ch; }

/* The contact form (Ninja Forms) on the contact page, written like the request bar: labels in small
   capitals, fields underlined rather than boxed, the site's own button. Unlayered and scoped to
   .contact-form, so it outranks the plugin's stylesheet without changing its other forms. */
.contact-form {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: var(--column-gap);
  padding-top: var(--section-gap-tight);
  padding-bottom: var(--section-gap-tight);
  border-top: 1px solid var(--border-hairline);
}
.contact-form__head h2 {
  font-family: var(--font-display);
  font-weight: var(--weight-display-solid);
  font-size: var(--text-section);
  color: var(--wine-700);
  margin: 0;
}
.contact-form__head p {
  margin-top: var(--space-4);
  max-width: 34ch;
  font-size: var(--text-body-lg);
}
.contact-form .nf-form-content {
  max-width: none;
  padding: 0;
}
.contact-form .nf-form-fields-required,
.contact-form .nf-form-title { display: none; }
.contact-form .nf-field-container { margin-bottom: var(--space-5); }
.contact-form .nf-field-label { margin: 0 0 var(--space-1); }
.contact-form .nf-field-label label {
  font-weight: normal;
  font-size: var(--text-field-label);
  letter-spacing: var(--tracking-field-label);
  text-transform: uppercase;
  color: var(--text-label);
}
.contact-form .nf-form-content input:not([type=button]):not([type=submit]),
.contact-form .nf-form-content textarea {
  height: auto;
  min-height: var(--touch-target);
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--rule-24);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: var(--space-2) 0;
  color: inherit;
  font-family: var(--font-body);
  font-size: var(--text-body-md);
  transition: var(--transition-hover);
}
.contact-form .nf-form-content textarea { min-height: 9em; resize: vertical; }
.contact-form .nf-form-content input:not([type=button]):not([type=submit]):focus,
.contact-form .nf-form-content textarea:focus {
  outline: none;
  border-bottom-color: var(--focus-ring);
}
.contact-form .nf-form-content input[type=button],
.contact-form .nf-form-content input[type=submit] {
  min-height: var(--touch-target);
  height: auto;
  padding: var(--space-3) var(--space-6);
  border: 0;
  border-radius: 0;
  background: var(--action-primary-bg);
  color: var(--action-primary-fg);
  font-family: var(--font-body);
  font-size: var(--text-caption);
  cursor: pointer;
  transition: var(--transition-hover);
}
.contact-form .nf-form-content input[type=button]:hover,
.contact-form .nf-form-content input[type=submit]:hover {
  background: var(--action-primary-bg-hover);
  color: var(--action-primary-fg);
}
.contact-form .nf-error-msg,
.contact-form .nf-error .nf-error-msg { color: var(--wine-700); font-size: var(--text-caption); }
.contact-form .nf-error.field-wrap .nf-field-element:after { display: none; }
.contact-form .nf-error .ninja-forms-field { border-bottom-color: var(--wine-700); }
.contact-form .nf-response-msg { font-size: var(--text-body-lg); color: var(--wine-700); }
.contact-form__privacy {
  margin-top: var(--space-4);
  font-size: var(--text-caption);
  color: var(--text-label);
}
@media (max-width: 900px) {
  .contact-form { grid-template-columns: minmax(0, 1fr); gap: var(--space-6); }
}
