/* Extra styles added for the CMS (forms with captcha, tags, locations, search, messages).
   The main design is in site.css. */

/* message after sending a form */
.site-flash { position: fixed; left: 50%; top: 18px; transform: translateX(-50%); z-index: 200; width: min(640px, calc(100% - 24px));
  border-radius: 12px; box-shadow: var(--shadow-lg); font-weight: 600; animation: flashIn .3s ease, flashOut .4s ease 9s forwards; }
.site-flash .container { padding: 14px 18px; display: flex; gap: 10px; align-items: center; }
.site-flash-success { background: #e8f6ee; color: #145c34; border: 1px solid #b6e2c7; }
.site-flash-error { background: #fdeceb; color: #8a1f1f; border: 1px solid #f3c0bc; }
@keyframes flashIn { from { opacity: 0; transform: translate(-50%, -12px); } }
@keyframes flashOut { to { opacity: 0; visibility: hidden; } }

/* spam trap: hidden from people */
.hp-field { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* math captcha */
.captcha-row { margin: 16px 0 6px; }
.cap-label { display: grid; gap: 8px; font-weight: 600; font-size: 14px; color: var(--ink); }
.cap-box { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cap-img { border-radius: 8px; border: 1px solid var(--line); background: var(--soft); }
.cap-q { display: inline-block; padding: 9px 14px; border-radius: 8px; background: var(--soft); border: 1px solid var(--line);
  font-family: var(--head); font-weight: 800; letter-spacing: 2px; color: var(--navy); user-select: none; }
.cap-box input { width: 110px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; font: inherit; font-weight: 700; text-align: center; }
.cap-box input:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
.enquiry-form button[disabled] { opacity: .7; cursor: wait; }

/* tags, categories, locations */
.post-terms { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.term-chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 30px; background: var(--soft);
  color: var(--navy); font-size: 13.5px; font-weight: 600; border: 1px solid var(--line); }
.term-chip:hover, .term-chip.active { background: var(--navy); color: #fff; border-color: var(--navy); }
.term-chip.loc i { color: var(--gold); }
.cat-chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 34px; }
.hero-cat { color: var(--gold-2); }
.hero-cat:hover { color: #fff; }
.post-tagline { font-size: 18px; font-weight: 600; color: var(--brown); margin: 26px 0 -10px; }
.loc-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.loc-chips a { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 30px; background: #fff; border: 1px solid var(--line); color: var(--navy); font-weight: 600; }
.loc-chips a i { color: var(--gold); }
.loc-chips a:hover { border-color: var(--gold); box-shadow: var(--shadow); }
.loc-intro { max-width: 860px; margin-bottom: 30px; font-size: 17px; }
.loc-cat { margin-top: 44px; }
.loc-page-list { list-style: none; padding: 0; margin: 0 0 20px; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.loc-page-list a { display: flex; gap: 8px; align-items: center; padding: 14px 16px; background: var(--soft-2); border: 1px solid var(--line); border-radius: 10px; color: var(--ink); font-weight: 600; }
.loc-page-list a:hover { border-color: var(--gold); }

/* cards without image */
.card-fallback { display: flex; align-items: center; justify-content: center; width: 100%; aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, var(--navy), var(--navy-3)); color: var(--gold-2); font-size: 42px; }

/* search */
.search-big { display: flex; gap: 10px; max-width: 640px; margin: 0 auto 32px; }
.search-big input { flex: 1; padding: 13px 16px; border: 1px solid var(--line); border-radius: 12px; font: inherit; }
.notfound .search-big { margin-top: 24px; }
.search-pages { margin-bottom: 30px; }
.search-pages ul { list-style: none; padding: 0; display: grid; gap: 12px; }
.search-pages li { padding: 14px 18px; border: 1px solid var(--line); border-radius: 12px; }
.search-pages li a { font-weight: 700; }
.search-pages li p { margin: 4px 0 0; color: var(--muted); font-size: 14.5px; }
.side-search form { display: flex; gap: 8px; }
.side-search input { flex: 1; min-width: 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; font: inherit; }
.side-search button { width: 44px; border: 0; border-radius: 10px; background: var(--navy); color: #fff; cursor: pointer; }
.side-links small { color: var(--muted); font-weight: 500; margin-left: 4px; }
.empty-note { text-align: center; color: var(--muted); padding: 30px 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* standard pages created in admin */
.narrow-wide .main-col { max-width: 900px; margin: 0 auto; }
.prose img { max-width: 100%; height: auto; border-radius: 12px; }
.prose table { width: 100%; border-collapse: collapse; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 12px; }

/* WhatsApp button */
.fab-wa { position: fixed; left: 16px; bottom: 16px; width: 54px; height: 54px; border-radius: 50%; background: #25d366; color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 28px; box-shadow: 0 10px 26px rgba(37, 211, 102, .4); z-index: 90; }
.fab-wa:hover { color: #fff; transform: scale(1.05); }

@media (max-width: 600px) {
  .search-big { flex-direction: column; }
}

/* menus near the right edge open their 3rd level to the left */
@media (min-width: 1081px) {
  .nav-list > .nav-item:nth-last-child(-n+4) .nav-sub .nav-sub { left: auto; right: calc(100% + 8px); }
}
