/* Nightly RV sites landing page (nightly-rv-sites.php). Loaded on that page only. */

.nightly-page {
  --nightly-ink: #2b2819;
  --nightly-error: #b3261e;
  --nightly-focus: #1a4fd6;
}

/* Sections */
.nightly-section { padding: 3.5rem 0; }
.nightly-section__head { padding-bottom: 2rem; }
.nightly-section__head .section-title { margin-bottom: 0.5rem; }
.nightly-page .section-title { text-wrap: balance; }
/* The sticky site header would otherwise cover the form heading. */
#nightly-availability { scroll-margin-top: 150px; }
.nightly-card,
.nightly-form input,
.nightly-form textarea,
.nightly-alert { scroll-margin-top: 170px; }

/* Visible keyboard focus (the base theme removes link outlines). */
.nightly-page a:focus-visible,
.nightly-page button:focus-visible,
.nightly-page input:focus-visible,
.nightly-page textarea:focus-visible,
.nightly-page [tabindex]:focus-visible {
  outline: 3px solid var(--nightly-focus) !important;
  outline-offset: 2px;
}
.nightly-page .bg-primary-dark a:focus-visible,
.nightly-hero a:focus-visible { outline-color: #fff !important; }

/* Buttons: dark text on brand orange keeps the label readable. */
.btn-nightly,
.btn-nightly-outline,
.btn-nightly-dark {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0.75rem 1.5rem; font-weight: 700; line-height: 1.2;
}
.btn-nightly { background: var(--color-primary); color: var(--nightly-ink); border: 2px solid var(--color-primary); }
.btn-nightly:hover,
.btn-nightly:focus { background: #fff; color: var(--nightly-ink); border-color: var(--color-primary); }
.btn-nightly:disabled { background: #f3c9a3; border-color: #f3c9a3; color: var(--nightly-ink); opacity: 1; }
.btn-nightly-outline { background: transparent; color: #fff; border: 2px solid #fff; }
.btn-nightly-outline:hover,
.btn-nightly-outline:focus { background: #fff; color: var(--nightly-ink); border-color: #fff; }
.btn-nightly-dark { background: var(--color-gray-dark); color: #fff; border: 2px solid var(--color-gray-dark); }
.btn-nightly-dark:hover,
.btn-nightly-dark:focus { background: #fff; color: var(--nightly-ink); }

.nightly-link { color: #a84600; text-decoration: underline; text-underline-offset: 0.2em; }
.nightly-link:hover { color: var(--nightly-ink); }
.nightly-link--light { color: #ffb37a; }
.nightly-link--light:hover { color: #fff; }

/* Hero */
.nightly-hero { position: relative; isolation: isolate; overflow: hidden; background: var(--color-gray-dark); color: #fff; }
.nightly-hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 60%; z-index: -2; }
.nightly-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgb(30 28 20 / 78%) 0%, rgb(30 28 20 / 62%) 55%, rgb(30 28 20 / 82%) 100%); }
.nightly-hero__inner { padding-top: 3.5rem; padding-bottom: 3.5rem; }
.nightly-eyebrow { font-size: 0.875rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: #ffd9b8; margin-bottom: 0.75rem; }
.nightly-hero h1 { font-size: 2.25rem; font-weight: 700; line-height: 1.12; margin-bottom: 1rem; text-wrap: balance; }
.nightly-rate { display: inline-flex; align-items: baseline; flex-wrap: wrap; justify-content: center; gap: 0.5rem; margin-bottom: 1rem; padding: 0.5rem 1.25rem; border: 1px solid rgb(255 255 255 / 55%); border-radius: 0.75rem; background: rgb(30 28 20 / 55%); }
.nightly-rate__label { font-size: 1rem; font-weight: 600; }
.nightly-rate__price { font-family: var(--font-primary); font-size: 2.5rem; font-weight: 800; line-height: 1; color: #ffb37a; font-variant-numeric: lining-nums; }
.nightly-hero__copy { font-size: 1.0625rem; max-width: 40rem; margin: 0 auto 1.5rem; }
.nightly-hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; margin-bottom: 1.25rem; }

.nightly-notents { display: inline-flex; align-items: center; font-weight: 700; margin-bottom: 0; }
.nightly-notents--hero { padding: 0.4rem 1rem; border-radius: 50rem; background: #fff; color: var(--nightly-ink); font-size: 0.9375rem; }
.nightly-notents--hero .bi { color: #a84600; }
#nightly-availability .nightly-notents { padding: 0.6rem 0.9rem; border-left: 4px solid var(--color-primary); background: #fff; border-radius: 0.25rem; color: var(--nightly-ink); margin-bottom: 1.25rem; }
.nightly-notents--form { width: 100%; background: var(--bg-secondary-pink) !important; }

/* Rates */
.nightly-rate-card { display: flex; flex-direction: column; justify-content: center; gap: 0.25rem; }
.nightly-rate-card__label { font-size: 1.125rem !important; font-weight: 600; margin-bottom: 0 !important; color: #e3d7a6; font-variant-numeric: lining-nums; }
.nightly-rate-card__price { font-family: var(--font-primary); font-size: 2.5rem; font-weight: 800; line-height: 1.1; font-variant-numeric: lining-nums; }
.nightly-rate-card__price span { font-family: var(--font-default); font-size: 1rem; font-weight: 500; }
.nightly-fineprint { max-width: 46rem; margin: 1.75rem auto 0; font-size: 0.9375rem; }

/* Amenities */
.nightly-feature { display: flex; gap: 1rem; height: 100%; padding: 1.1rem 1.15rem; background: #fff; border: 1px solid #ecdccd; border-radius: 0.5rem; }
.nightly-feature .bi { flex: 0 0 auto; font-size: 1.6rem; line-height: 1.2; color: #c25400; }
.nightly-feature h3 { font-size: 1.125rem; font-weight: 700; margin-bottom: 0.25rem; }
.nightly-feature p { margin-bottom: 0; font-size: 0.9375rem; }
.nightly-photos { padding-top: 2.5rem; }
.nightly-photo { margin: 0; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 0.5rem; border: 4px solid #fff; box-shadow: 0 3px 15px 4px rgb(0 0 0 / 12%); background: #e9e2d6; }
.nightly-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Location */
.nightly-address { font-size: 1.25rem; font-weight: 600; line-height: 1.5; margin-bottom: 1rem; font-style: normal; }
.nightly-map { border-radius: 0.5rem; overflow: hidden; border: 4px solid #fff; background: #e9e2d6; aspect-ratio: 16 / 10; }
.nightly-map iframe { display: block; width: 100%; height: 100%; border: 0; }

/* Form */
.nightly-steps { margin: 0 0 1.5rem; }
.nightly-steps li { display: flex; gap: 0.75rem; align-items: flex-start; padding-bottom: 0.75rem; }
.nightly-steps .bi { color: #c25400; font-size: 1.35rem; line-height: 1.2; }
.nightly-card { background: #fff; border-radius: 0.75rem; border-top: 8px solid var(--color-primary); box-shadow: 0 6px 30px rgb(76 72 57 / 14%); padding: 1.5rem 1.25rem; }
.nightly-required-note { font-size: 0.875rem; margin-bottom: 1rem; }
.nightly-field { margin-bottom: 1.1rem; }
.nightly-form .form-label { font-size: 0.9375rem; font-weight: 600; color: var(--nightly-ink); margin-bottom: 0.35rem; }
.nightly-optional { font-weight: 400; color: #5d594b; }
.nightly-form .form-control { font-size: 1rem; color: var(--nightly-ink); background: #fff; border-color: #8f8a7a; }
.nightly-form .form-control-lg { min-height: 48px; padding: 0.5rem 0.75rem; }
.nightly-form .form-control:focus { border-color: var(--nightly-focus); box-shadow: 0 0 0 3px rgb(26 79 214 / 25%); }
.nightly-form .form-control.is-invalid { border-color: var(--nightly-error); background-image: none; padding-right: 0.75rem; }
.nightly-form input[type="date"] { min-width: 0; -webkit-appearance: none; appearance: none; }
.nightly-input-short { max-width: 9rem; }
.nightly-hint { font-size: 0.875rem; color: #5d594b; margin: 0.3rem 0 0; }
.nightly-nights { margin: -0.4rem 0 1rem; font-size: 0.9375rem; font-weight: 600; color: #2f6b3e; }
.nightly-nights:empty { margin: 0; }
.nightly-field-error { margin: 0.35rem 0 0; font-size: 0.9375rem; font-weight: 600; color: var(--nightly-error); }
.nightly-field-error::before { content: "\26A0\FE0E  "; }

.nightly-fieldset { border: 0; padding: 0; min-width: 0; }
.nightly-fieldset legend { float: none; width: auto; }
.nightly-choices { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.nightly-choice { position: relative; margin: 0; cursor: pointer; }
.nightly-choice input { position: absolute; opacity: 0; width: 100%; height: 100%; inset: 0; margin: 0; cursor: pointer; }
.nightly-choice span { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; min-width: 5.5rem; padding: 0.5rem 1.1rem; border: 1px solid #8f8a7a; border-radius: 50rem; font-weight: 600; color: var(--nightly-ink); background: #fff; transition: background 0.15s, border-color 0.15s; }
.nightly-choice input:checked + span { background: var(--color-gray-dark); border-color: var(--color-gray-dark); color: #fff; }
.nightly-choice input:focus-visible + span { outline: 3px solid var(--nightly-focus); outline-offset: 2px; }
.nightly-fieldset.is-invalid .nightly-choice span { border-color: var(--nightly-error); }

.nightly-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.nightly-submit { width: 100%; font-size: 1.0625rem; }
.nightly-alert { margin-bottom: 1.1rem; padding: 0.8rem 1rem; border: 1px solid var(--nightly-error); border-left-width: 5px; border-radius: 0.35rem; background: #fdf1ef; color: #7d1a14; font-weight: 600; }
.nightly-disclaimer { margin: 0.9rem 0 0.75rem; font-size: 0.9375rem; font-weight: 600; color: var(--nightly-ink); text-align: center; }
.nightly-consent { margin: 0; font-size: 0.75rem; line-height: 1.5; color: #5d594b; }

.nightly-success { text-align: center; padding: 1rem 0.25rem; color: var(--nightly-ink); }
.nightly-success:focus { outline: none; }
.nightly-success__icon { width: 72px; height: 72px; margin: 0 auto 1rem; border: 4px solid #2f6b3e; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 2.5rem; color: #2f6b3e; }
.nightly-success h3 { font-size: 1.75rem; font-weight: 700; }
.nightly-success__summary { font-size: 0.9375rem; color: #5d594b; }

/* FAQ + longer stays */
#nightly-faq .accordion-item { background: #fff; }
#nightly-faq .accordion-button { min-height: 48px; }
#nightly-faq .accordion-button:not(.collapsed) { color: #a84600; }
#nightly-faq .accordion-body a { color: #a84600; text-decoration: underline; }
.nightly-longer { padding: 1.25rem 0; }
.nightly-longer__title { font-size: 1.125rem; font-weight: 600; }

/* Mobile action bar. Leaves the bottom-right corner free for the chat button. */
.nightly-sticky { display: none; }
@media (max-width: 767.98px) {
  .nightly-sticky:not([hidden]) {
    display: flex; align-items: center; gap: 0.5rem;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 1000;
    padding: 0.6rem 144px calc(0.6rem + env(safe-area-inset-bottom, 0px)) 0.75rem;
    background: #fff; border-top: 1px solid #d9d2c3; box-shadow: 0 -4px 18px rgb(0 0 0 / 14%);
  }
  .nightly-sticky .btn { min-height: 44px; padding: 0.5rem 0.9rem; font-size: 0.9375rem; white-space: nowrap; }
  .nightly-sticky__main { flex: 1 1 auto; }
  .nightly-sticky__call { flex: 0 0 auto; gap: 0.4rem; }
  body.nightly-sticky-on footer { padding-bottom: 72px; }
}
@media (max-width: 479.98px) {
  .nightly-sticky__call-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .nightly-sticky__call { width: 44px; padding: 0 !important; }
}
/* Very narrow phones: the call link stays in the orange bar at the top of the page. */
@media (max-width: 359.98px) {
  .nightly-sticky__call { display: none; }
  .nightly-sticky .btn { font-size: 0.875rem; padding: 0.5rem 0.7rem; }
}

@media (max-width: 575.98px) {
  .nightly-hero__actions .btn { width: 100%; }
  .nightly-feature { padding: 0.85rem 1rem; }
  .nightly-features { --bs-gutter-y: 0.6rem; }
  .nightly-photo--wide-sm { aspect-ratio: 16 / 9; }
}
@media (min-width: 768px) {
  .nightly-card { padding: 2.25rem; }
  .nightly-hero h1 { font-size: 3rem; }
}
@media (min-width: 992px) {
  .nightly-section { padding: 5rem 0; }
  .nightly-section__head { padding-bottom: 2.75rem; }
  .nightly-hero__inner { padding-top: 5.5rem; padding-bottom: 5.5rem; }
  .nightly-hero h1 { font-size: 3.75rem; }
  .nightly-hero__copy { font-size: 1.1875rem; }
  .nightly-rate__price { font-size: 3rem; }
  .nightly-longer { padding: 1.5rem 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .nightly-choice span { transition: none; }
}

/* Card hold path */
.nightly-rate__sep { opacity: 0.7; }
.btn-nightly-plain { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0.75rem 1.5rem; font-weight: 700; line-height: 1.2; background: #fff; color: var(--nightly-ink); border: 2px solid var(--color-gray-dark); }
.btn-nightly-plain:hover,
.btn-nightly-plain:focus { background: var(--color-gray-dark); color: #fff; border-color: var(--color-gray-dark); }
.btn-nightly-plain:disabled { opacity: 0.55; }
.nightly-disclaimer { margin: 0.6rem 0 1.1rem; }
.nightly-disclaimer--light { font-weight: 400; color: #5d594b; margin-bottom: 0.9rem; }
.nightly-redirect__spinner { width: 3rem; height: 3rem; color: var(--color-primary); margin-bottom: 1rem; }
.nightly-success .btn { margin-top: 0.25rem; }

.nightly-cardstep { color: var(--nightly-ink); }
.nightly-cardstep:focus { outline: none; }
.nightly-cardstep h3 { font-size: 1.5rem; font-weight: 700; }
.nightly-cardstep__stay { font-weight: 600; margin-bottom: 0.75rem; }
.nightly-breakdown { margin: 0 0 1.1rem; padding: 0.75rem 1rem; background: var(--bg-secondary-pink); border-radius: 0.5rem; }
.nightly-breakdown div { display: flex; justify-content: space-between; gap: 1rem; padding: 0.25rem 0; }
.nightly-breakdown dt { font-weight: 400; }
.nightly-breakdown dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.nightly-breakdown__total { border-top: 1px solid #e3d5c5; margin-top: 0.35rem; padding-top: 0.6rem !important; }
.nightly-breakdown__total dt { font-weight: 700; }
.nightly-cardstep__fields { margin-bottom: 1.1rem; min-height: 1px; }
.nightly-cardstep__btn { width: 100%; font-size: 1.0625rem; }
.nightly-textbtn { background: none; border: 0; padding: 0.5rem; min-height: 44px; color: #a84600; text-decoration: underline; font-weight: 600; }
.nightly-textbtn:hover { color: var(--nightly-ink); }

/* Same-day and next-day arrivals */
.nightly-today,
.nightly-soon { padding: 0.7rem 0.9rem; border-left: 4px solid var(--color-primary); background: #fff; border-radius: 0.25rem; color: var(--nightly-ink); }
.nightly-today { margin-bottom: 1.25rem; }
.nightly-soon { margin: 0 0 1.1rem; background: #fff4e8; text-align: left; }
