/* ==========================================================================
   Choicenabled — additions for the dynamic (PHP) site
   Loaded after style.css. Uses the same design tokens.
   ========================================================================== */

/* Rich text written in the admin editor ---------------------------------- */
.rich-content { color: var(--body); }
.rich-content > :first-child { margin-top: 0; }
.rich-content h1, .rich-content h2 { font-size: clamp(24px, 2.4vw, 32px); margin: 36px 0 14px; }
.rich-content h3 { font-size: clamp(20px, 2vw, 24px); margin: 32px 0 12px; }
.rich-content h4, .rich-content h5, .rich-content h6 { font-size: 19px; margin: 26px 0 10px; }
.rich-content p { font-size: 16.5px; margin-bottom: 16px; }
.rich-content strong { color: var(--heading); font-weight: 600; }
.rich-content a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
.rich-content ol { padding-left: 22px; margin-bottom: 22px; }
.rich-content ol li { margin-bottom: 8px; color: var(--heading); }
.rich-content img { max-width: 100%; height: auto; border-radius: var(--r); margin: 10px 0 20px; }
.rich-content blockquote { margin: 28px 0; padding: 22px 26px; border-left: 4px solid var(--primary); border-radius: var(--r-sm); background: var(--tint); color: var(--heading); font-size: 18px; }
.rich-content table { width: 100%; margin-bottom: 22px; border-collapse: collapse; }
.rich-content th, .rich-content td { padding: 10px 12px; border: 1px solid var(--line); }
.rich-content .ql-align-center { text-align: center; }
.rich-content .ql-align-right { text-align: right; }
.article > .tag + .rich-content { margin-top: 4px; }

/* Server form messages --------------------------------------------------- */
.form-status.error { background: #fdecec; color: #a11d1d; }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-n button[disabled] { opacity: .7; cursor: progress; }

/* Pagination -------------------------------------------------------------- */
.pager { margin-top: 44px; }
.pager ul { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.pager a, .pager span { display: grid; place-items: center; min-width: 46px; height: 46px; padding: 0 12px; border-radius: var(--r-sm); background: #fff; border: 1px solid var(--line); color: var(--heading); font-weight: 500; }
.pager a:hover { border-color: var(--primary); color: var(--primary); }
.pager span.active { background: var(--primary); border-color: var(--primary); color: #fff; }

/* Empty states ------------------------------------------------------------ */
.empty-state { max-width: 620px; margin: 0 auto; padding: 48px 32px; text-align: center; border-radius: var(--r); background: var(--grey); }
.empty-state > i { display: inline-grid; place-items: center; width: 68px; height: 68px; margin-bottom: 16px; border-radius: 50%; background: var(--tint); color: var(--primary); font-size: 28px; }
.empty-state h3 { font-size: 22px; margin-bottom: 10px; }
.empty-state p { margin-bottom: 22px; }

/* Sidebar search ---------------------------------------------------------- */
.search-n { position: relative; }
.search-n .form-control { height: 54px; padding: 0 56px 0 18px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--grey); }
.search-n .form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(50, 90, 254, .12); background: #fff; }
.search-n button { position: absolute; right: 6px; top: 6px; width: 42px; height: 42px; border: 0; border-radius: var(--r-sm); background: var(--primary); color: #fff; }
.search-n button:hover { background: var(--primary-dark); }

/* Blog comments ----------------------------------------------------------- */
.comment-list .comment { display: flex; gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.comment-list .comment:last-child { border-bottom: 0; }
.comment-list .avatar { flex: 0 0 52px; width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; background: var(--tint); color: var(--primary); font-family: var(--head-font); font-weight: 600; font-size: 19px; }
.comment-list h3 { font-size: 17px; margin: 0 0 6px; }
.comment-list h3 small { margin-left: 8px; color: var(--muted); font-family: var(--body-font); font-size: 13.5px; font-weight: 400; }
.comment-list p { margin: 0; font-size: 15.5px; }

/* Facts strip with fewer than four items --------------------------------- */
.facts:has(> div:nth-child(3):last-child) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.facts:has(> div:nth-child(2):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); }

@media (max-width: 767.98px) {
  .comment-list .comment { gap: 12px; }
  .comment-list .avatar { flex-basis: 42px; width: 42px; height: 42px; font-size: 16px; }
}

/* Contact page ------------------------------------------------------------ */
.title .accent { color: var(--primary); }
.info-tile.boxed { padding: 24px; border-radius: var(--r); background: #fff; box-shadow: var(--shadow); }
.info-tile.boxed h3 { font-size: 18px; }

/* Services panel: cards overlap the blue panel by design (margin-top:-110px).
   The panel is position:relative, so the cards must sit above it. */
.svc-cards { position: relative; z-index: 2; }

/* Photos: keep the people in frame when the box crops the image */
.about-photo img { object-position: 52% 50%; }
.book-wrap .photo img { object-position: 62% 45%; }

/* Links to #booking, #enquire, #contact-form etc. stop below the sticky header */
html { scroll-padding-top: 110px; }
@media (max-width: 991.98px) { html { scroll-padding-top: 90px; } }
