/* ==========================================================================
   Book Montenegro — platform pages (tours, stay, forms, legal, admin).
   Builds on site.css tokens; site.css itself stays shared with rafting-montenegro.
   ========================================================================== */

main { display: block; }

/* mobile: keep the nav links visible as a scrollable row */
@media (max-width: 860px) {
  .nav { flex-wrap: wrap; }
  .nav__links { display: flex !important; order: 3; width: 100%; overflow-x: auto; gap: 18px; padding-top: 10px; }
  .nav .btn { margin-left: auto; }
}

.hero-b { padding: 56px 0 30px; }
.hero-b h1 { font-size: clamp(30px, 4.6vw, 54px); line-height: 1.08; max-width: 20ch; }
.hero-b__lead { margin-top: 18px; font-size: 18px; color: var(--ink-3); max-width: 58ch; line-height: 1.6; }
.hero-b__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

/* tour cards */
.tgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 26px; }
.tcard {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-lg); overflow: hidden;
  transition: transform .2s cubic-bezier(.22,.8,.3,1), box-shadow .2s ease, border-color .2s ease;
}
.tcard:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--accent); }
.tcard img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; background: var(--bg-tint); }
.tcard__body { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px 18px; flex: 1; }
.tcard__tag { font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--accent-dark); }
.tcard b { font-size: 16px; line-height: 1.35; }
.tcard__sub { font-size: 13px; color: var(--ink-3); line-height: 1.55; }
.tcard__price { margin-top: auto; padding-top: 8px; font-weight: 800; color: var(--ink); }

.steps { margin-top: 18px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: s; list-style: none; padding: 0; }
.steps li { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; font-size: 15px; color: var(--ink-2); line-height: 1.6; }
.steps b { display: block; color: var(--ink); margin-bottom: 6px; }

/* price table */
.ptable-wrap { overflow-x: auto; margin-top: 24px; }
.ptable { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 560px; }
.ptable th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); padding: 0 14px 10px 0; border-bottom: 1px solid var(--line); }
.ptable td { padding: 12px 14px 12px 0; border-bottom: 1px solid var(--line); color: var(--ink-2); vertical-align: top; }
.ptable a { color: var(--accent); font-weight: 600; }

/* product page */
.product { padding-bottom: 40px; }
.product__head { max-width: 72ch; }
.product__head h1 { font-size: clamp(28px, 4vw, 44px); line-height: 1.12; }
.product__lede { margin-top: 14px; font-size: 18px; color: var(--ink-2); line-height: 1.6; }
.product__by { margin-top: 10px; font-size: 14px; color: var(--ink-3); }
.product__by a { color: var(--accent); font-weight: 700; }

.gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 10px; margin-top: 26px; }
.gallery__item { margin: 0; position: relative; border-radius: var(--r); overflow: hidden; background: var(--bg-tint); }
.gallery__item img { width: 100%; height: 100%; aspect-ratio: 3 / 2; object-fit: cover; display: block; }
.gallery__item--main { grid-row: span 2; }
.gallery__item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 6px 10px;
  font-size: 10.5px; line-height: 1.35; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.6));
}
.gallery__item figcaption a { color: #fff; opacity: .9; }

.product__grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 40px; margin-top: 34px; align-items: start; }
.product__side { position: sticky; top: 96px; display: grid; gap: 16px; }
.product__main .post-body { margin-top: 26px; }
.faq-q { font-size: 17px; margin-top: 22px; }

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin: 0; }
.facts div { background: var(--bg-tint); border-radius: var(--r); padding: 14px 16px; }
.facts dt { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); }
.facts dd { margin: 4px 0 0; font-size: 15px; color: var(--ink); line-height: 1.45; }

/* booking box + form */
.bookbox { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; box-shadow: var(--shadow-sm); display: grid; gap: 6px; }
.bookbox__price { font-size: 22px; font-weight: 800; margin-bottom: 6px; }
.bookbox__price span { font-size: 13px; font-weight: 600; color: var(--ink-3); }
.bookbox__note { font-size: 12.5px; color: var(--ink-3); line-height: 1.5; margin-top: 6px; }
.bookbox label { font-size: 12px; font-weight: 700; color: var(--ink-2); margin-top: 6px; }
.bookbox input[type=text], .bookbox input[type=email], .bookbox input[type=tel], .bookbox input[type=date],
.bookbox input[type=number], .bookbox input[type=password], .bookbox textarea, .bookbox select {
  width: 100%; font: inherit; font-size: 15px; padding: 10px 12px; border: 1px solid var(--line);
  border-radius: var(--r-sm); background: #fff; color: var(--ink);
}
.bookbox input:focus, .bookbox textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.bookbox .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.bookbox .check { display: flex; gap: 8px; align-items: flex-start; font-weight: 500; font-size: 12.5px; line-height: 1.45; margin: 10px 0 4px; }
.bookbox .check a { color: var(--accent); }
.bookbox .btn { margin-top: 8px; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error { background: #FFF1F1; color: #9B1C1C; border-radius: var(--r-sm); padding: 10px 12px; font-size: 14px; }

.legal h2 { font-size: 20px; }
.muted a { color: var(--accent); }

/* consent */
.consent {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 100; max-width: 560px; margin-left: auto;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-lg);
  padding: 18px 20px; font-size: 14px; color: var(--ink-2); line-height: 1.55;
}
.consent[hidden] { display: none; }
.consent a { color: var(--accent); font-weight: 600; }
.consent__actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 12px; }

/* footer grid on this site */
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer__sig a { text-decoration: underline; }

/* admin */
.admin td { font-size: 13px; }
.admin-status { display: grid; gap: 4px; min-width: 150px; }
.admin-status select, .admin-status input { font: inherit; font-size: 13px; padding: 4px 6px; border: 1px solid var(--line); border-radius: 6px; }
.admin-filter a[aria-current] { font-weight: 800; color: var(--accent); }

@media (max-width: 1080px) {
  .tgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product__grid { grid-template-columns: 1fr; }
  .product__side { position: static; }
}
@media (max-width: 640px) {
  .tgrid, .steps { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .gallery__item--main { grid-column: 1 / -1; grid-row: auto; }
}
