/* Frozen Dog Digs reservations calendar */
:root { --navy: #0b3d66; --navy-dark: #082c4a; --gold: #c9a227; --ink: #1a1a1a; --muted: #44525f; --line: #c9d3dd; --soft: #eef2f6; }
* { box-sizing: border-box; }
html:not(.fdd-public) { font-size: 17px; }
body:not(.fdd-public) { margin: 0; background: #fff; color: var(--ink); font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; line-height: 1.55; font-weight: 400; }
main a { color: var(--navy); font-weight: 600; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 18px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.site-header { background: #fff; border-bottom: 4px solid var(--gold); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 10px; padding-bottom: 10px; flex-wrap: wrap; }
.brand img { height: 64px; width: auto; max-width: 100%; display: block; }
.top-nav { display: flex; gap: 6px; flex-wrap: wrap; }
.top-nav a { text-decoration: none; color: var(--navy); font-weight: 700; padding: 8px 12px; border-radius: 6px; }
.top-nav a:hover { background: var(--soft); }
.title-bar { background: var(--navy); color: #fff; padding: 18px 0; margin-bottom: 22px; }
.title-bar h1 { margin: 0; font-size: clamp(1.6rem, 3.5vw, 2.2rem); font-weight: 700; }
.lead { font-size: 1.1rem; margin: 0 0 18px; }
.note, .muted { color: var(--muted); }

.btn { display: inline-block; font: inherit; font-weight: 700; font-size: 1rem; padding: 10px 18px; border-radius: 8px; border: 2px solid var(--navy); cursor: pointer; text-decoration: none; line-height: 1.2; min-height: 44px; }
.btn-primary { background: var(--navy); color: #fff; border-color: var(--gold); }
.btn-primary:hover { background: var(--navy-dark); }
.btn-outline { background: #fff; color: var(--navy); }
.btn-outline:hover { background: var(--soft); }
.btn.disabled { color: #6b7785; border-color: #9aa6b2; cursor: default; }
.btn-danger { background: #fff; color: #9b0016; border-color: #9b0016; }
.btn-danger:hover { background: #fdecee; }
.btn-small { padding: 6px 12px; min-height: 36px; font-size: .95rem; }

.month-nav .btn { white-space: nowrap; }
.month-nav { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 8px 0 10px; }
.month-title { margin: 0; font-size: 1.5rem; color: var(--navy); text-align: center; }
.legend { list-style: none; padding: 0; margin: 0 0 16px; display: flex; gap: 20px; flex-wrap: wrap; font-weight: 600; }
.legend li { display: flex; align-items: center; gap: 8px; }
.sw { width: 22px; height: 22px; border-radius: 4px; border: 2px solid var(--line); display: inline-block; }
.sw-open { background: #fff; }
.sw-booked { background: var(--navy); border-color: var(--navy); }
.sw-past { background: var(--soft); }

.cal-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; }
.cal-card { border: 2px solid var(--line); border-top: 6px solid var(--navy); border-radius: 10px; padding: 14px; background: #fff; }
.cal-card h3 { margin: 0 0 10px; color: var(--navy); font-size: 1.3rem; }
table.cal { width: 100%; border-collapse: separate; border-spacing: 4px; table-layout: fixed; }
table.cal th { font-size: .9rem; font-weight: 700; color: var(--muted); padding: 2px 0; }
table.cal th abbr { text-decoration: none; }
table.cal td { height: 48px; text-align: center; vertical-align: middle; border-radius: 6px; font-weight: 700; font-size: 1.05rem; }
table.cal td.open { background: #fff; color: var(--ink); border: 2px solid var(--line); }
table.cal td.booked { background: var(--navy); color: #fff; border: 2px solid var(--navy); }
table.cal td.past { background: var(--soft); color: #4f5d6b; border: 2px solid var(--soft); font-weight: 600; }
table.cal td.today { box-shadow: inset 0 0 0 3px var(--gold); }
table.cal td.empty { background: transparent; }

.card { border: 2px solid var(--line); border-radius: 10px; padding: 18px; margin-bottom: 24px; background: #fff; }
.card h2 { margin: 0 0 12px; color: var(--navy); font-size: 1.35rem; }
.card h3 { color: var(--navy); font-size: 1.15rem; margin: 18px 0 8px; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.card-head h2 { margin: 0; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.tab { padding: 8px 12px; border-radius: 6px; border: 2px solid var(--navy); text-decoration: none; color: var(--navy); font-weight: 700; }
.tab.active { background: var(--navy); color: #fff; }

.login-card { max-width: 440px; display: flex; flex-direction: column; gap: 12px; }
label, legend { font-weight: 700; color: var(--ink); }
input[type=text], input[type=password], input[type=date], select, textarea { font: inherit; font-size: 1rem; padding: 10px 12px; border: 2px solid #8796a5; border-radius: 8px; width: 100%; background: #fff; color: var(--ink); min-height: 46px; }
.add-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px 18px; }
.field { display: flex; flex-direction: column; gap: 6px; margin: 0; }
fieldset.field { border: 0; padding: 0; }
.field-wide { grid-column: 1 / -1; }
.radio { font-weight: 600; display: flex; align-items: center; gap: 8px; min-height: 32px; }
.radio input { width: 20px; height: 20px; }

.alert { padding: 14px 16px; border-radius: 8px; margin-bottom: 18px; font-weight: 600; border-left: 6px solid; }
.alert ul { margin: 8px 0 0; font-weight: 500; }
.alert-ok { background: #e8f5ec; border-color: #1d6b35; color: #0f3d1d; }
.alert-error { background: #fdecee; border-color: #9b0016; color: #5e000d; }
.admin-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; font-weight: 600; gap: 10px; }
.admin-bar form { margin: 0; }

.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.data { width: 100%; border-collapse: collapse; font-size: .98rem; }
table.data th { text-align: left; background: var(--navy); color: #fff; padding: 10px; font-weight: 700; white-space: nowrap; }
table.data td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.data tr.is-cancelled td { color: #5b6672; text-decoration: line-through; }
table.data tr.is-cancelled td:nth-last-child(-n+2) { text-decoration: none; }
/* Pending online reservations (admin.cgi booking list): whole row shaded amber, accent on the left */
table.data tr.status-pending td { background: #fff3cd; }
table.data tr.status-pending td:first-child { box-shadow: inset 5px 0 0 #b8860b; padding-left: 15px; }
table.data form { margin: 0; }
.pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-weight: 700; font-size: .9rem; background: var(--soft); color: var(--ink); white-space: nowrap; }
.pill-ok { background: #e3f2e7; color: #145227; }
.pill-cancel { background: #fbe3e6; color: #86000f; }
.src { display: inline-block; padding: 3px 10px; border-radius: 6px; font-weight: 700; font-size: .9rem; white-space: nowrap; }
.src-airbnb { background: #fde7ea; color: #8a1027; }
.src-vrbo { background: #e1ecfa; color: #0b3d66; }
.src-direct { background: #fbf2d5; color: #5c4700; border: 1px solid var(--gold); }
.src-block { background: #e9ecef; color: #2c3640; }

.site-footer { margin-top: 36px; border-top: 4px solid var(--gold); background: var(--navy); color: #fff; padding: 18px 0; font-weight: 500; }

@media (max-width: 600px) {
  html:not(.fdd-public) { font-size: 16px; }
  .brand img { height: 48px; }
  .header-inner { justify-content: center; }
  .top-nav { justify-content: center; gap: 2px; }
  .top-nav a { padding: 6px 9px; }
  .month-title { font-size: 1.25rem; }
  .month-nav .btn { padding: 8px 10px; font-size: .95rem; }
  .month-nav .btn .long { display: none; }
  .cal-grid { grid-template-columns: 1fr; }
  .cal-card { padding: 10px; }
  table.cal { border-spacing: 3px; }
  table.cal td { height: 42px; font-size: 1rem; }
}

/* --- Staff pages and inquiry form (2026-11-01) --- */
.staff-nav { display: flex; gap: 6px; flex-wrap: wrap; margin: -6px 0 20px; }
main .small { font-size: .9rem; }
.nowrap { white-space: nowrap; }
.req { color: #9b0016; }
input[type=email], input[type=tel], input[type=number], input[type=search] { font: inherit; font-size: 1rem; padding: 10px 12px; border: 2px solid #8796a5; border-radius: 8px; width: 100%; background: #fff; color: var(--ink); min-height: 46px; }
input[type=checkbox] { width: 20px; height: 20px; accent-color: var(--navy); flex: none; }
.alert-warn { background: #fff7dc; border-color: var(--gold); color: #4a3a00; }
.alert-warn li { margin: 6px 0; }
.filter-form { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: flex-end; margin: 6px 0 14px; }
.filter-form .field { min-width: 190px; }
.button-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.radio-row { display: flex; gap: 6px 22px; flex-wrap: wrap; }
.inline-form { display: inline-block; margin: 0 0 0 8px; }
.reset-form { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.reset-form input { width: 9.5em; min-height: 36px; padding: 6px 8px; }
fieldset.customer-new { border: 2px solid var(--line); border-radius: 10px; padding: 12px 14px; margin: 0; }
fieldset.customer-new legend { padding: 0 6px; }
dl.facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 0; }
dl.facts dt { font-weight: 700; color: var(--muted); }
dl.facts dd { margin: 0; }
dl.facts dd.message { white-space: pre-wrap; }
dl.explain dt { font-weight: 700; color: var(--navy); margin-top: 10px; }
dl.explain dd { margin: 2px 0 0; }
.status-new { background: #fbf2d5; color: #5c4700; }
.status-contacted { background: #e1ecfa; color: #0b3d66; }
.status-booked { background: #e3f2e7; color: #145227; }
.status-closed { background: #e9ecef; color: #2c3640; }
.inquiry-form { max-width: 720px; display: flex; flex-direction: column; gap: 14px; border-top: 6px solid var(--navy); }
.inquiry-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; }
.inquiry-form .opt-in { align-items: flex-start; }
.inquiry-form .opt-in input { margin-top: 3px; }
.btn-wide { min-width: 200px; }
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.thanks-card { max-width: 720px; border-top: 6px solid var(--gold); }
.thanks-card .btn { margin: 6px 8px 0 0; }
@media (max-width: 600px) {
  .inquiry-form .form-row { grid-template-columns: 1fr; }
  .btn-wide { width: 100%; }
  dl.facts { grid-template-columns: 1fr; gap: 2px; }
  dl.facts dd { margin-bottom: 8px; }
  .filter-form .field { min-width: 100%; }
}

/* --- Booking flow, promotions and payments (2026-11-01) --- */
.steps { list-style: none; display: flex; gap: 8px; padding: 0; margin: 0 0 20px; flex-wrap: wrap; }
.steps li { display: flex; align-items: center; gap: 8px; padding: 8px 14px 8px 8px; border-radius: 999px; background: var(--soft); color: var(--muted); font-weight: 700; }
.steps .step-number { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: #fff; border: 2px solid var(--line); color: var(--muted); }
.steps li.done { color: var(--navy); }
.steps li.done .step-number { border-color: var(--navy); color: var(--navy); }
.steps li.current { background: var(--navy); color: #fff; }
.steps li.current .step-number { background: var(--gold); border-color: var(--gold); color: var(--navy-dark); }
.search-form { border-top: 6px solid var(--navy); }
.search-form h2 { margin-bottom: 10px; }
.search-fields { display: grid; grid-template-columns: repeat(3, minmax(140px, 1fr)) minmax(160px, 1.2fr) auto; gap: 14px 16px; align-items: end; }
.search-button .btn { width: 100%; white-space: nowrap; }
.availability { margin-top: 10px; }
.section-title { color: var(--navy); font-size: 1.4rem; margin: 6px 0 12px; }
.lead { font-size: 1.1rem; }
.change-search { margin: 0 0 18px; }
.change-search summary { cursor: pointer; font-weight: 700; color: var(--navy); padding: 8px 0; }
.change-search .search-form { margin-top: 8px; }
.results { display: flex; flex-direction: column; gap: 18px; margin-bottom: 24px; }
.result-card { display: grid; grid-template-columns: 300px 1fr 300px; gap: 0; border: 2px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; }
.result-card .result-photo { width: 100%; height: 100%; min-height: 200px; object-fit: cover; display: block; background: var(--soft); }
.result-body { padding: 16px 18px; }
.result-body h2, .result-body h3 { margin: 0 0 6px; color: var(--navy); font-size: 1.35rem; }
.result-meta { color: var(--muted); font-weight: 600; margin: 0 0 8px; }
.promo-note { color: #5c4700; background: #fbf2d5; border-radius: 6px; padding: 6px 10px; font-weight: 600; font-size: .95rem; }
.result-price { padding: 16px 18px; background: var(--soft); display: flex; flex-direction: column; gap: 12px; justify-content: space-between; }
.result-price .btn { width: 100%; text-align: center; }
.result-card.unavailable { border-style: dashed; background: #f6f7f8; }
.result-card.unavailable .result-photo { filter: grayscale(100%); opacity: .55; }
.result-card.unavailable .result-body, .result-card.unavailable .result-price { color: #4f5d6b; }
.result-card.unavailable h2, .result-card.unavailable h3 { color: #4f5d6b; }
.unavailable-reason { margin: 0; color: #5e000d; background: #fdecee; border-radius: 6px; padding: 8px 10px; }
table.price-table { width: 100%; border-collapse: collapse; font-size: .97rem; }
table.price-table th { text-align: left; font-weight: 500; padding: 4px 0; }
table.price-table td { text-align: right; padding: 4px 0 4px 10px; white-space: nowrap; font-variant-numeric: tabular-nums; }
table.price-table tr.subtotal th, table.price-table tr.subtotal td { border-top: 1px solid var(--line); padding-top: 8px; }
table.price-table tr.discount th, table.price-table tr.discount td { color: #145227; font-weight: 600; }
table.price-table tr.total th, table.price-table tr.total td { border-top: 2px solid var(--navy); font-weight: 800; font-size: 1.1rem; padding-top: 8px; color: var(--navy); }
table.price-table tr.deposit th, table.price-table tr.deposit td { font-weight: 700; }
.details-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 22px; align-items: start; }
.details-layout .guest-form { order: 1; }
.details-layout .stay-summary { order: 2; position: sticky; top: 12px; }
.stay-summary .summary-photo { width: calc(100% + 36px); margin: -18px -18px 12px; height: 180px; object-fit: cover; display: block; border-radius: 8px 8px 0 0; }
.guest-form { display: flex; flex-direction: column; gap: 14px; border-top: 6px solid var(--navy); }
.guest-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; }
.guest-form .form-row-3 { grid-template-columns: 2fr 1fr 1fr; }
.guest-form .opt-in { align-items: flex-start; }
.guest-form .opt-in input { margin-top: 3px; }
.field-error { color: #9b0016; font-weight: 600; font-size: .92rem; }
.policy-box { border: 2px solid var(--gold); border-radius: 10px; padding: 12px 16px; background: #fffbea; }
.policy-box h2, .policy-box h3 { margin: 0 0 6px; color: var(--navy); font-size: 1.15rem; }
.policy-list { margin: 0 0 10px; padding-left: 20px; }
.policy-list li { margin: 4px 0; }
.payment-card { border: 2px solid var(--line); border-radius: 10px; padding: 12px 16px; background: var(--soft); }
.payment-card h2, .payment-card h3 { margin: 0 0 6px; color: var(--navy); font-size: 1.15rem; }
.card-fields { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 12px; margin: 8px 0; }
.clover-field { min-height: 46px; border: 2px solid #8796a5; border-radius: 8px; background: #fff; padding: 4px 8px; }
.consent { font-size: .95rem; }
.confirmation-card { max-width: 760px; border-top: 6px solid var(--gold); }
.confirmation-label { margin: 0; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: .9rem; }
.confirmation-number { margin: 2px 0 8px; font-size: 2.2rem; font-weight: 800; color: var(--navy); letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.pill-pending { background: #fbf2d5; color: #5c4700; border: 1px solid var(--gold); }
.approval-card { border-color: var(--gold); background: #fffbea; }
.ledger-totals { display: flex; gap: 12px; flex-wrap: wrap; margin: 0 0 14px; }
.ledger-totals div { flex: 1 1 140px; border: 2px solid var(--line); border-radius: 10px; padding: 10px 14px; display: flex; flex-direction: column; }
.ledger-totals span { color: var(--muted); font-weight: 700; font-size: .9rem; }
.ledger-totals strong { font-size: 1.35rem; color: var(--navy); font-variant-numeric: tabular-nums; }
.ledger-pay { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.ledger-pay input, .ledger-pay select { width: auto; min-height: 36px; padding: 6px 8px; }
table.data tr.status-row-void td, table.data tr.status-row-refunded td { color: #5b6672; }
.ledger-forms { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 16px; }
.ledger-forms .card { margin: 0; }
.ledger-forms h3 { margin: 0; }
table.rates input { width: 7.5em; min-height: 38px; padding: 6px 8px; }
table.rates input[type=number] { width: 5em; }
.report-tabs { margin-bottom: 16px; }
@media (max-width: 960px) {
  .search-fields { grid-template-columns: 1fr 1fr; }
  .search-button { grid-column: 1 / -1; }
  .result-card { grid-template-columns: 220px 1fr; }
  .result-price { grid-column: 1 / -1; }
  .details-layout { grid-template-columns: 1fr; }
  .details-layout .stay-summary { order: 0; position: static; }
  .ledger-forms { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .steps { gap: 4px; }
  .steps li { padding: 6px; }
  .steps li .step-label { display: none; }
  .steps li.current .step-label { display: inline; padding-right: 6px; }
  .search-fields { grid-template-columns: 1fr 1fr; gap: 10px; }
  .search-fields .field:nth-child(4) { grid-column: 1 / -1; }
  .result-card { grid-template-columns: 1fr; }
  .result-card .result-photo { min-height: 0; height: 190px; }
  .guest-form .form-row, .guest-form .form-row-3 { grid-template-columns: 1fr; }
  .card-fields { grid-template-columns: 1fr 1fr; }
  .card-fields > :first-child { grid-column: 1 / -1; }
  .confirmation-number { font-size: 1.7rem; }
  .ledger-pay input, .ledger-pay select { flex: 1 1 40%; }
}
/* Keep visually hidden labels inside scrolling tables from widening the page */
.table-scroll { position: relative; }
.search-fields .field, .search-fields input { min-width: 0; }
/* --- Card vault (2026-11-01) --- */
.test-mode-banner { background: #fff1c2; border: 3px dashed #9b6b00; color: #4a3a00; border-radius: 8px; padding: 10px 14px; margin: 0 0 12px; }
.vault-fields { grid-template-columns: 1fr 1fr 1fr 1fr; }
.vault-fields .field-span { grid-column: span 2; }
.vault-card { border-color: var(--gold); }
.reveal-card .card-number { font-size: 1.4rem; font-weight: 800; letter-spacing: .06em; font-variant-numeric: tabular-nums; }
@media (max-width: 600px) {
  .vault-fields { grid-template-columns: 1fr 1fr; }
  .vault-fields .field-span { grid-column: 1 / -1; }
}
/* --- Public pages with the main-site header and footer (FDDRes::Layout, 2026-11-01) ---
   Bootstrap is loaded first on these pages; these rules keep the booking and
   inquiry forms looking as before inside <main>. */
.fdd-public main.wrap { padding-bottom: 40px; }
.fdd-public .title-bar { margin-bottom: 22px; }
.fdd-public main h2, .fdd-public main h3 { font-weight: 700; }
.fdd-public main .lead { font-weight: 400; }
.fdd-public main legend { float: none; width: auto; font-size: 1rem; line-height: inherit; margin-bottom: 0; }
.fdd-public main .btn-outline:hover, .fdd-public main .btn-outline:focus { color: var(--navy); }
.fdd-public main .btn-primary:hover, .fdd-public main .btn-primary:focus { color: #fff; }
.topic-intro { max-width: 720px; display: grid; grid-template-columns: 220px 1fr; gap: 18px; align-items: center; margin: 0 0 18px; }
.topic-intro-photo { width: 100%; height: 140px; object-fit: cover; border-radius: 10px; display: block; }
.topic-intro-text { margin: 0; font-size: 1.25rem; font-weight: 700; color: var(--navy); }
@media (max-width: 600px) {
  .topic-intro { grid-template-columns: 1fr; gap: 10px; }
  .topic-intro-photo { height: 170px; }
}
/* Short public pages: footer sits at the bottom of the window */
body.fdd-public { min-height: 100vh; display: flex; flex-direction: column; }
body.fdd-public main.wrap { flex: 1 0 auto; width: 100%; }
.fdd-public .cal-grid { margin-bottom: 16px; }
