/* Wander Wanderers: book.html (search results + request form) and admin.html */

[hidden] { display: none !important; }

/* ---------- hero with widget ---------- */
.bk-hero { padding: 40px 0 72px; }
.bk-hero h1 { font-family: var(--font-display); letter-spacing: -.5px; }
.bk-script {
  font-family: var(--font-script); font-weight: 400; color: var(--red); font-size: .62em; letter-spacing: 0;
  text-shadow: 0 2px 0 #fff; margin-left: 6px;
}
.book-search { margin-top: 28px; position: relative; z-index: 2; }
.book-search .booking-widget { max-width: 900px; }

/* ---------- layout ---------- */
.bk-section { padding: 48px 0 80px; background: #fff; }
.bk-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 36px; align-items: start; }
.bk-aside { position: sticky; top: calc(var(--header-h, 84px) + 16px); display: grid; gap: 16px; }

.bk-results-head { margin-bottom: 18px; }
.bk-results-head h2 { font-family: var(--font-display); font-weight: 900; color: var(--teal); font-size: clamp(1.5rem, 3vw, 2.1rem); margin: 0 0 8px; line-height: 1.15; }
.bk-results-head p { margin: 0; }
.bk-kicker { font-family: var(--font-script); color: var(--red); font-size: 1.35rem; line-height: 1.1; margin: 0 0 2px; }
.bk-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 12px !important; }
.bk-meta span { background: var(--cream); border: 1px solid var(--orange-soft); color: #6b5426; border-radius: 999px; padding: 4px 12px; font-size: .86rem; font-weight: 500; }
.bk-note { color: var(--muted); font-size: .93rem; max-width: 720px; }
.bk-empty { padding: 28px; border: 2px dashed var(--line); border-radius: var(--radius); color: var(--muted); text-align: center; background: var(--cream); }

/* ---------- option cards ---------- */
.bk-list { display: grid; gap: 14px; }
.bk-opt {
  position: relative; display: grid; grid-template-columns: 64px minmax(0, 1fr) 200px; gap: 18px; align-items: center;
  padding: 18px 20px; background: #fff; border: 2px solid var(--line); border-radius: var(--radius);
  cursor: pointer; transition: border-color .2s, box-shadow .2s, transform .2s;
}
.bk-opt:hover { border-color: #b9d7df; box-shadow: var(--shadow-sm, 0 4px 14px rgba(0,0,0,.08)); }
.bk-opt input { position: absolute; opacity: 0; pointer-events: none; }
.bk-opt:focus-within { outline: 3px solid rgba(31, 111, 229, .35); outline-offset: 2px; }
.bk-opt.is-selected { border-color: var(--blue); box-shadow: 0 8px 24px rgba(31, 111, 229, .16); background: #f7faff; }

.bk-opt-icon {
  width: 64px; height: 64px; border-radius: 14px; background: var(--cream) center / 30px 30px no-repeat;
  border: 1px solid var(--orange-soft);
}
.bk-ico-flight { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23e8542c'%3E%3Cpath d='M21 16v-2l-8-5V3.5a1.5 1.5 0 0 0-3 0V9l-8 5v2l8-2.5V19l-2 1.5V22l3.5-1 3.5 1v-1.5L13 19v-5.5z'/%3E%3C/svg%3E"); }
.bk-ico-hotel { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%232a8199'%3E%3Cpath d='M7 13a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm12-6h-8v7H3V5H1v15h2v-3h18v3h2v-9a4 4 0 0 0-4-4z'/%3E%3C/svg%3E"); }
.bk-ico-rent { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%231f6fe5'%3E%3Cpath d='M18.9 6a1.5 1.5 0 0 0-1.4-1h-11a1.5 1.5 0 0 0-1.4 1L3 12v8a1 1 0 0 0 1 1h1a1 1 0 0 0 1-1v-1h12v1a1 1 0 0 0 1 1h1a1 1 0 0 0 1-1v-8zM6.5 16a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3zm11 0a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3zM5 11l1.5-4.5h11L19 11z'/%3E%3C/svg%3E"); }
.bk-opt-img { width: 64px; height: 64px; border-radius: 14px; object-fit: cover; background: var(--orange-soft); }

.bk-opt-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.bk-opt-title { font-weight: 700; font-size: 1.05rem; color: var(--ink); line-height: 1.3; }
.bk-stars { color: var(--orange); font-size: .9rem; letter-spacing: 1px; white-space: nowrap; }
.bk-opt-sub { color: var(--muted); font-size: .9rem; line-height: 1.45; }
.bk-tag { align-self: flex-start; background: var(--red); color: #fff; font-size: .72rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; text-transform: uppercase; letter-spacing: .4px; }
.bk-perks { list-style: none; padding: 0; margin: 4px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.bk-perks li { font-size: .78rem; color: var(--teal-dark); background: #e8f3f6; border-radius: 6px; padding: 2px 8px; }
.bk-warn { font-size: .82rem; color: #9a5a00; background: #fff4dc; border-radius: 8px; padding: 4px 10px; align-self: flex-start; }

.bk-opt-price { display: flex; flex-direction: column; align-items: flex-end; text-align: right; gap: 2px; }
.bk-opt-price strong { font-family: var(--font-display); font-weight: 800; font-size: 1.45rem; color: var(--teal-dark); line-height: 1.1; }
.bk-opt-price small { color: var(--muted); font-size: .8rem; }
.bk-sample { font-size: .72rem; color: var(--muted); font-style: italic; max-width: 190px; line-height: 1.3; margin-top: 2px; }
.bk-choose {
  margin-top: 8px; padding: 7px 18px; border-radius: 999px; border: 2px solid var(--blue); color: var(--blue);
  font-weight: 600; font-size: .85rem; transition: background .2s, color .2s;
}
.bk-opt.is-selected .bk-choose { background: var(--blue); color: #fff; }
.bk-choose::after { content: "Select"; }
.bk-opt.is-selected .bk-choose::after { content: "✓ Selected"; }

.bk-packages { margin-top: 44px; padding-top: 28px; border-top: 1px dashed var(--line); }
.bk-sub-title { font-family: var(--font-display); font-weight: 800; color: var(--teal); font-size: 1.35rem; margin: 0 0 4px; }
.bk-sub-text { color: var(--muted); margin: 0 0 16px; font-size: .93rem; }

/* ---------- request card ---------- */
.bk-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; border-top: 5px solid var(--orange); }
.bk-card-title { font-family: var(--font-display); font-weight: 800; color: var(--teal); font-size: 1.25rem; margin: 0 0 14px; }
.bk-summary { background: var(--cream); border: 1px solid var(--orange-soft); border-radius: 12px; padding: 14px 16px; margin-bottom: 18px; }
.bk-summary p { margin: 0; }
.bk-sum-empty { color: var(--muted); font-weight: 500; }
.bk-sum-label { font-size: .74rem; text-transform: uppercase; letter-spacing: .6px; color: var(--red); font-weight: 700; }
.bk-sum-title { font-weight: 700; color: var(--ink); line-height: 1.3; margin: 2px 0 4px !important; }
.bk-sum-trip { color: var(--muted); font-size: .86rem; margin-top: 4px !important; }
.bk-sum-price { display: flex; align-items: baseline; justify-content: space-between; margin-top: 10px !important; padding-top: 10px; border-top: 1px dashed #e9cf98; }
.bk-sum-price span { font-size: .88rem; color: var(--ink); font-weight: 500; }
.bk-sum-price strong { font-family: var(--font-display); font-size: 1.4rem; color: var(--teal-dark); font-weight: 800; }
.bk-sum-fine { font-size: .76rem; color: var(--muted); margin-top: 4px !important; }

.bk-form { gap: 14px; }
.bk-form textarea { min-height: 84px; }
.bk-error { background: #fdece7; border-radius: 10px; padding: 10px 12px; }
.bk-assure { list-style: none; padding: 0; margin: 2px 0 0; display: grid; gap: 6px; font-size: .84rem; color: var(--muted); }
.bk-assure li { padding-left: 22px; position: relative; }
.bk-assure li::before { content: ""; position: absolute; left: 2px; top: .45em; width: 11px; height: 6px; border-left: 2px solid #2fa363; border-bottom: 2px solid #2fa363; transform: rotate(-45deg); }

/* ---------- confirmation ---------- */
.bk-confirm { text-align: left; border-top-color: #2fa363; outline: none; }
.bk-confirm h2 { font-family: var(--font-display); font-weight: 900; color: var(--teal); margin: 0 0 12px; font-size: 1.6rem; }
.bk-check { width: 56px; height: 56px; border-radius: 50%; background: #2fa363; position: relative; margin-bottom: 10px; }
.bk-check::after { content: ""; position: absolute; left: 18px; top: 17px; width: 20px; height: 10px; border-left: 4px solid #fff; border-bottom: 4px solid #fff; transform: rotate(-45deg); }
.bk-ref { display: flex; flex-direction: column; gap: 2px; background: var(--cream); border: 2px dashed var(--orange); border-radius: 12px; padding: 12px 16px; margin: 0 0 16px; font-size: .84rem; color: var(--muted); }
.bk-ref strong { font-family: var(--font-display); font-size: 1.7rem; letter-spacing: 2px; color: var(--red); font-weight: 900; }
.bk-conf-list { margin: 0 0 14px; display: grid; gap: 6px; }
.bk-conf-list div { display: flex; justify-content: space-between; gap: 12px; font-size: .9rem; border-bottom: 1px solid var(--line); padding-bottom: 6px; }
.bk-conf-list dt { color: var(--muted); }
.bk-conf-list dd { margin: 0; font-weight: 600; text-align: right; }
.bk-confirm p { font-size: .93rem; }
.bk-fine { color: var(--muted); font-size: .8rem !important; }
.bk-conf-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 14px; }
.bk-link { color: var(--blue); font-weight: 600; font-size: .92rem; }

#bkFormCard, #bkConfirm, #bkResultsHead { scroll-margin-top: calc(var(--header-h, 84px) + 16px); }

/* mobile continue bar (shown only under 900px once an option is picked) */
.bk-bar { display: none; }
@media (max-width: 900px) {
  .bk-bar:not([hidden]) {
    display: flex; align-items: center; gap: 12px; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 50;
    background: #fff; border-radius: 14px; box-shadow: 0 10px 30px rgba(0,0,0,.22); padding: 10px 10px 10px 16px;
    border-left: 5px solid var(--blue);
  }
  .bk-bar-text { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
  .bk-bar-text span { font-size: .84rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .bk-bar-text strong { font-family: var(--font-display); color: var(--teal-dark); font-size: 1.05rem; }
  .bk-bar .btn { flex: none; padding: 10px 18px; }
  .bk-section { padding-bottom: 96px; }
}

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .bk-layout { grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; }
  .bk-opt { grid-template-columns: 56px minmax(0, 1fr); }
  .bk-opt-icon, .bk-opt-img { width: 56px; height: 56px; }
  .bk-opt-price { grid-column: 2; flex-direction: row; flex-wrap: wrap; align-items: baseline; justify-content: flex-start; text-align: left; gap: 4px 10px; }
  .bk-sample { max-width: none; flex-basis: 100%; order: 3; margin: 0; }
  .bk-choose { order: 4; margin-top: 4px; }
}
@media (max-width: 900px) {
  .bk-layout { grid-template-columns: 1fr; }
  .bk-aside { position: static; }
  .bk-section { padding: 32px 0 56px; }
}
@media (max-width: 520px) {
  .bk-hero { padding: 24px 0 40px; }
  .book-search { margin-top: 20px; }
  .bk-opt { grid-template-columns: 44px minmax(0, 1fr); gap: 12px; padding: 14px; }
  .bk-opt-icon, .bk-opt-img { width: 44px; height: 44px; border-radius: 10px; background-size: 22px 22px; }
  .bk-opt-price strong { font-size: 1.25rem; }
  .bk-card { padding: 18px; }
  .bk-ref strong { font-size: 1.45rem; }
}

/* ================= admin.html ================= */
.page-admin { background: #f6f3ee; min-height: 100vh; }
.adm { max-width: 1400px; margin: 0 auto; padding: 20px 20px 60px; font-family: var(--font-body, Arial, sans-serif); color: var(--ink, #1f2a33); }
.adm-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.adm-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--teal, #2a8199); font-weight: 800; font-family: var(--font-display, Arial, sans-serif); }
.adm-brand small { display: block; font-weight: 500; color: var(--muted, #5d6b75); font-family: var(--font-body, Arial, sans-serif); font-size: .8rem; }
.adm-btn { border: 0; background: var(--blue, #1f6fe5); color: #fff; border-radius: 10px; padding: 9px 16px; font-weight: 600; cursor: pointer; font: inherit; }
.adm-btn:hover { background: var(--blue-dark, #1557c0); }
.adm-btn-ghost { background: #fff; color: var(--ink, #1f2a33); border: 1px solid var(--line, #e6e0d6); }
.adm-btn-ghost:hover { background: #fff; border-color: var(--teal, #2a8199); }
.adm-login { max-width: 380px; margin: 10vh auto 0; background: #fff; border-radius: 16px; box-shadow: 0 10px 30px rgba(0,0,0,.1); padding: 28px; display: grid; gap: 10px; }
.adm-login h1 { margin: 0; color: var(--teal, #2a8199); font-size: 1.4rem; }
.adm-login p { margin: 0; color: var(--muted, #5d6b75); font-size: .92rem; }
.adm-login label { font-weight: 600; font-size: .88rem; margin-top: 6px; }
.adm-login input, .adm-bar input, .adm-bar select, .adm-status { border: 1px solid var(--line, #e6e0d6); border-radius: 10px; padding: 9px 12px; font: inherit; background: #fff; }
.adm-msg { min-height: 1.2em; font-size: .9rem; color: var(--muted, #5d6b75); margin: 6px 0; }
.adm-msg.is-bad { color: #c0341a; }
.adm-tabs { display: flex; gap: 6px; border-bottom: 2px solid var(--line, #e6e0d6); margin-bottom: 14px; }
.adm-tabs button { border: 0; background: none; padding: 10px 16px; font: inherit; font-weight: 600; color: var(--muted, #5d6b75); cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -2px; }
.adm-tabs button.is-active { color: var(--teal, #2a8199); border-bottom-color: var(--teal, #2a8199); }
.adm-count { background: var(--cream, #fff8ec); border: 1px solid var(--orange-soft, #fde3ae); border-radius: 999px; padding: 0 8px; font-size: .78rem; margin-left: 4px; }
.adm-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.adm-bar input { flex: 1 1 260px; }
.adm-table-wrap { overflow-x: auto; background: #fff; border-radius: 14px; box-shadow: 0 4px 14px rgba(0,0,0,.06); }
.adm-table { width: 100%; border-collapse: collapse; font-size: .86rem; }
.adm-table th { text-align: left; background: #fbf8f2; color: var(--muted, #5d6b75); font-weight: 600; font-size: .76rem; text-transform: uppercase; letter-spacing: .4px; padding: 10px 12px; white-space: nowrap; }
.adm-table td { padding: 10px 12px; border-top: 1px solid var(--line, #e6e0d6); vertical-align: top; }
.adm-table td.notes { max-width: 380px; white-space: pre-wrap; color: #44515b; }
.adm-table td.empty { text-align: center; color: var(--muted, #5d6b75); padding: 30px; }
.adm-table .mono { font-family: ui-monospace, Menlo, monospace; font-weight: 700; white-space: nowrap; }
.adm-table small { color: var(--muted, #5d6b75); }
.adm-table a { color: var(--blue, #1f6fe5); }
.adm-table tr.st-confirmed td:first-child { box-shadow: inset 4px 0 #2fa363; }
.adm-table tr.st-cancelled td { opacity: .55; }
.adm-table tr.st-new td:first-child { box-shadow: inset 4px 0 var(--orange, #f5a623); }
