/* ==========================================================================
   travel.net.ph /packages UI refresh
   Matches the landing page (index-assets/assets/css/refresh.css).
   Every rule is scoped to a page class (.tn-pd* = package detail), so pages
   that have not been refreshed yet are untouched. UI only: no IDs, classes
   or markup that the AJAX scripts rely on were changed.
   ========================================================================== */

:root {
  --tn-red: #d7262b;
  --tn-red-dark: #b01c21;
  --tn-red-soft: #fdecec;
  --tn-ink: #17171a;
  --tn-text: #33343a;
  --tn-muted: #6b6d75;
  --tn-line: #e7e7ea;
  --tn-soft: #f6f6f7;
  --tn-radius: 16px;
  --tn-shadow: 0 10px 30px rgba(17, 17, 20, 0.08);
  --tn-font-head: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --tn-font-body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* ==========================================================================
   PACKAGE DETAIL  (/packages/package_<slug>, view/package.php)
   ========================================================================== */

/* Package descriptions are admin-entered HTML that ship their own <style>
   (e.g. body{padding:24px;background:#f1f5f9}). Undo the parts that leak
   onto the page frame. */
body:has(.tn-pd) {
  padding: 0 !important;
  margin: 0 !important;
  background: #fff !important;
}

.tn-topbar,
.tn-pd-head,
.tn-pd,
.tn-pd-cta,
.tn-pd-related,
.tn-pd-bar { font-family: var(--tn-font-body); }

/* ---------- Category bar + search ---------- */
.tn-topbar {
  background: #fff !important;
  border-bottom: 1px solid var(--tn-line);
  box-shadow: none !important;
  padding: 10px 0 !important;
}
.tn-topbar .container-fluid { max-width: 1200px; padding: 0 20px; }
.tn-topbar #onepagenav,
.tn-topbar .mega-menu { width: 100% !important; float: none !important; }
.tn-topbar #sub-sections {
  margin: 0 !important;
  width: 100% !important;
  display: flex !important;
  flex-wrap: wrap;
  gap: 6px;
}
.tn-topbar #sub-sections > li { float: none !important; margin: 0 !important; width: auto !important; }
.tn-topbar #sub-sections > li > a {
  display: inline-block;
  padding: 8px 16px !important;
  border-radius: 999px;
  font-family: var(--tn-font-head);
  font-size: 13px !important;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.2 !important;
  color: var(--tn-text) !important;
  background: transparent;
  transition: background-color 0.2s, color 0.2s;
}
.tn-topbar #sub-sections > li > a:hover,
.tn-topbar #sub-sections > li.active > a {
  background: var(--tn-red-soft) !important;
  color: var(--tn-red) !important;
}
.tn-topbar .widget-search { position: relative; }
.tn-topbar .widget-search .fa-search {
  position: absolute;
  right: 16px;
  left: auto;
  top: 50%;
  transform: translateY(-50%);
  color: var(--tn-muted) !important;
}
.tn-topbar #search-tab {
  height: 44px;
  padding: 0 44px 0 18px !important;
  border-radius: 999px !important;
  border: 1px solid var(--tn-line) !important;
  background: var(--tn-soft) !important;
  font-family: var(--tn-font-body);
  font-size: 15px;
  box-shadow: none !important;
}
.tn-topbar #search-tab:focus { border-color: var(--tn-red) !important; background: #fff !important; }

/* ---------- Page header band (slim strip) ---------- */
/* the section's 40px/20px padding is inline !important, so tighten from inside */
.tn-pd-head .page-title .container { margin-top: -24px; margin-bottom: -6px; }
.tn-pd-head .page-title .row > div { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.tn-pd-head .page-title-name { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin: 0 !important; width: auto !important; float: none !important; }
.tn-pd-head .page-breadcrumb { position: static !important; margin: 0 !important; padding: 0 !important; transform: none !important; width: auto !important; float: none !important; }
.tn-pd-head .page-title {
  position: relative;
  background-color: var(--tn-ink) !important;
  background-image: linear-gradient(120deg, #17171a 0%, #2a1416 60%, #4a1518 100%);
  padding-left: 0;
  padding-right: 0;
}
.tn-pd-head .page-title:before { display: none; }
.tn-pd-head .page-title .container { max-width: 1200px; }
.tn-pd-head .page-title-name h1 {
  font-family: var(--tn-font-head) !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase;
  color: #ff8a8d !important;
  margin: 0 !important;
  line-height: 1.3 !important;
}
.tn-pd-head .page-title-name p {
  font-family: var(--tn-font-body);
  font-size: 15px !important;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85) !important;
  margin: 0 !important;
  line-height: 1.3;
  text-transform: none;
}
.tn-pd-head .page-breadcrumb {
  font-family: var(--tn-font-body);
  font-size: 14px;
}
.tn-pd-head .page-breadcrumb li,
.tn-pd-head .page-breadcrumb li a,
.tn-pd-head .page-breadcrumb i { color: rgba(255, 255, 255, 0.75) !important; }
.tn-pd-head .page-breadcrumb li a:hover { color: #fff !important; }

/* ---------- Main column ---------- */
.tn-pd.page-section-ptb { padding: 40px 0 24px; }
/* responsive.css forces .container-cus to 1400px !important; re-centre on the
   same 1200px grid as the header band */
.tn-pd .container-cus {
  max-width: 1200px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}
.tn-pd .ribbon {
  border: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
}
.tn-pd .blog-entry {
  padding: 0 !important;
  border: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
}
/* destination ribbon -> pill above the title */
.tn-pd .ribbon-target {
  position: static !important;
  display: inline-block;
  margin: 0 0 14px;
  padding: 6px 14px !important;
  height: auto !important;
  min-height: 0 !important;
  width: auto !important;
  border-radius: 999px !important;
  background: var(--tn-red-soft) !important;
  color: var(--tn-red) !important;
  font-family: var(--tn-font-head);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.2;
  box-shadow: none !important;
}
.tn-pd .ribbon-target:before,
.tn-pd .ribbon-target:after { display: none !important; }

.tn-pd .entry-title { margin-bottom: 10px !important; }
.tn-pd .entry-title h1 {
  font-family: var(--tn-font-head) !important;
  font-size: clamp(26px, 3.2vw, 36px) !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  letter-spacing: -0.005em !important;
  color: var(--tn-ink) !important;
  margin: 0 !important;
}
/* date only; "Author" is an internal admin username */
.tn-pd .blog-entry > .entry-meta { margin-bottom: 22px !important; }
.tn-pd .blog-entry > .entry-meta ul { padding: 0; margin: 0; }
.tn-pd .blog-entry > .entry-meta li { margin: 0 !important; }
.tn-pd .blog-entry > .entry-meta li:nth-child(2) { display: none; }
.tn-pd .blog-entry > .entry-meta li a,
.tn-pd .blog-entry > .entry-meta li strong {
  font-family: var(--tn-font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--tn-muted) !important;
}
.tn-pd .blog-entry > .entry-meta li i { color: var(--tn-red) !important; margin-right: 6px; }

/* Package photos are usually price-and-dates posters (often 4:5 portrait):
   show the whole image, never crop it. */
.tn-pd .entry-image {
  display: flex;
  justify-content: center;
  margin-bottom: 8px;
  padding: 18px;
  border-radius: var(--tn-radius);
  background: var(--tn-soft);
}
.tn-pd .entry-image:empty { display: none; }
.tn-pd .entry-image img {
  width: auto !important;
  max-width: 100% !important;
  height: auto !important;
  max-height: 760px;
  object-fit: contain;
  border-radius: 10px !important;
  display: block;
  box-shadow: 0 6px 20px rgba(17, 17, 20, 0.08);
}

.tn-pd .blog-detail { padding: 18px 0 0 !important; margin-bottom: 28px !important; }
.tn-pd .blog-detail > .entry-meta { margin-bottom: 16px !important; }
.tn-pd .blog-detail > .entry-meta h4 { margin: 0; line-height: 1; }
.tn-pd .blog-detail > .entry-meta .badge {
  display: inline-block;
  margin: 0 6px 6px 0 !important;
  padding: 6px 12px !important;
  border-radius: 999px !important;
  background: var(--tn-soft) !important;
  color: var(--tn-text) !important;
  border: 1px solid var(--tn-line);
  font-family: var(--tn-font-head);
  font-size: 12px !important;
  font-weight: 600 !important;
  letter-spacing: 0.02em;
}
.tn-pd .entry-content {
  font-size: 16px;
  line-height: 1.7;
  color: var(--tn-text);
  overflow-wrap: anywhere;
}
.tn-pd .entry-content img { max-width: 100%; height: auto; }
.tn-pd .entry-content table { max-width: 100%; display: block; overflow-x: auto; }

/* source + share row */
.tn-pd .entry-share {
  border-top: 1px solid var(--tn-line);
  padding-top: 18px;
  gap: 14px;
  font-size: 14px;
}
.tn-pd .entry-share strong { font-family: var(--tn-font-head); font-weight: 600; color: var(--tn-ink); }
.tn-pd .entry-share .entry-button a {
  color: var(--tn-muted) !important;
  font-weight: 600;
  text-transform: none;
  white-space: normal;
}
.tn-pd .entry-share .entry-button a:hover { color: var(--tn-red) !important; }
.tn-pd .entry-share .entry-button a:before,
.tn-pd .entry-share .entry-button a:after { display: none !important; }
.tn-pd .entry-share .a2a_kit { gap: 6px; margin-left: 10px; }
.tn-pd .entry-share .a2a_kit a .a2a_svg { border-radius: 10px !important; }

/* ---------- Sidebar ---------- */
/* "About the Packages" only repeats the title + an SEO line; the booking card
   takes this column instead */
.tn-pd .col-lg-3 .sidebar-widget:first-child { display: none !important; }

/* Sticky booking card (static markup in view/package.php). On desktop it is
   laid over the same grid cell as #article and pinned into the sidebar column. */
.tn-pd-book { display: none; }
@media (min-width: 992px) {
  .tn-pd { display: grid; }
  .tn-pd > #article,
  .tn-pd > .tn-pd-book { grid-area: 1 / 1; }
  .tn-pd-book {
    display: flex;
    justify-content: flex-end;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    pointer-events: none;
  }
  /* same width/edge as the template's col-lg-3 content box */
  .tn-pd-book-rail { width: calc((100% + 30px) * 0.25 - 30px); }
  .tn-pd-book-card {
    position: sticky;
    top: 84px;
    pointer-events: auto;
    padding: 24px;
    border-radius: var(--tn-radius);
    background: #fff;
    border: 1px solid var(--tn-line);
    box-shadow: var(--tn-shadow);
  }
}
.tn-pd-book-eyebrow {
  display: block;
  font-family: var(--tn-font-head);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--tn-red);
  margin-bottom: 8px;
}
.tn-pd-book-title {
  font-family: var(--tn-font-head) !important;
  font-size: 20px !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
  color: var(--tn-ink) !important;
  margin: 0 0 8px !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
}
.tn-pd-book-card > p { font-size: 15px; line-height: 1.6; color: var(--tn-muted); margin: 0 0 18px; }
.tn-pd-book-card .tn-pd-btn { width: 100%; margin-bottom: 10px; }
.tn-pd-btn.tn-pd-btn-outline { border-color: #cfd0d6; color: var(--tn-ink) !important; background: #fff; }
.tn-pd-btn.tn-pd-btn-outline:hover { border-color: var(--tn-ink); }
.tn-pd-book-trust {
  list-style: none;
  margin: 10px 0 0;
  padding: 16px 0 0;
  border-top: 1px solid var(--tn-line);
}
.tn-pd-book-trust li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--tn-text);
  padding: 4px 0;
}
.tn-pd-book-trust li i { width: 16px; text-align: center; color: var(--tn-red); }
.tn-pd-book-trust a { color: var(--tn-text) !important; font-weight: 700; }
.tn-pd-book-trust a:hover { color: var(--tn-red) !important; }

/* "Format" and "Topic" are leftovers from the fact-checker template */
.tn-pd .col-lg-3 .sidebar-widget:nth-child(2),
.tn-pd .col-lg-3 .sidebar-widget:nth-child(3) { display: none; }
/* "Our Partners": only shown when there are partner logos */
.tn-pd .col-lg-3 .sidebar-widget:nth-child(4):not(:has(img)) { display: none; }
.tn-pd .col-lg-3 .sidebar-widget:nth-child(4) h6 {
  font-family: var(--tn-font-head);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--tn-muted);
}

/* loading skeleton: softer, rounded */
.tn-pd .banner_loader { border-radius: 10px; }

/* ---------- Booking call-to-action ---------- */
.tn-pd-cta { padding: 8px 0 56px; background: #fff; }
.tn-pd-cta .container { max-width: 1200px; }
.tn-pd-cta-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 36px 40px;
  border-radius: 20px;
  background: linear-gradient(120deg, #17171a 0%, #2a1416 60%, #4a1518 100%);
  color: #fff;
}
.tn-pd-cta-eyebrow {
  display: inline-block;
  font-family: var(--tn-font-head);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ff8a8d;
  margin-bottom: 8px;
}
.tn-pd-cta h2 {
  font-family: var(--tn-font-head);
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 700;
  line-height: 1.25;
  color: #fff;
  margin: 0 0 8px;
  text-transform: none;
  letter-spacing: 0;
  text-wrap: balance;
}
.tn-pd-cta-text { flex: 1 1 auto; min-width: 0; }
.tn-pd-cta p { margin: 0; color: rgba(255, 255, 255, 0.75); font-size: 16px; line-height: 1.6; }
.tn-pd-cta-actions { display: flex; gap: 12px; flex-shrink: 0; }

.tn-pd-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 26px;
  border-radius: 999px;
  border: 2px solid transparent;
  font-family: var(--tn-font-head);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none !important;
  white-space: nowrap;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}
.tn-pd-btn:hover { transform: translateY(-1px); }
.tn-pd-btn:focus-visible { outline: 3px solid #ffbf47; outline-offset: 2px; }
.tn-pd-btn-primary { background: var(--tn-red); color: #fff !important; }
.tn-pd-btn-primary:hover { background: var(--tn-red-dark); }
.tn-pd-btn-ghost { border-color: rgba(255, 255, 255, 0.6); color: #fff !important; }
.tn-pd-btn-ghost:hover { background: #fff; color: var(--tn-ink) !important; }

/* ---------- Related packages ---------- */
.tn-pd-related.page-section-ptb { padding: 64px 0 72px; background: var(--tn-soft) !important; }
.tn-pd-related .container { max-width: 1200px; }
.tn-pd-related .section-title { margin-bottom: 32px; }
.tn-pd-related .section-title h6 {
  font-family: var(--tn-font-head);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--tn-red);
  margin-bottom: 6px;
}
.tn-pd-related .section-title h2 {
  font-family: var(--tn-font-head);
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 700;
  color: var(--tn-ink);
  text-transform: none;
  letter-spacing: 0;
}
.tn-pd-related .section-title h2:before,
.tn-pd-related .section-title h2:after { display: none; }
.tn-pd-related #related-articles > div { margin-bottom: 24px; }
.tn-pd-related .blog-box {
  display: flex !important;
  flex-direction: column-reverse;
  justify-content: flex-end;
  padding: 0 !important;
  margin: 0 !important;
  height: 100%;
  min-height: 0 !important;
  overflow: hidden;
  border-radius: var(--tn-radius);
  background: #fff;
  border: 1px solid var(--tn-line);
  box-shadow: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}
.tn-pd-related .blog-box:hover { transform: translateY(-3px); box-shadow: var(--tn-shadow); }
.tn-pd-related .blog-box:before,
.tn-pd-related .blog-box:after { display: none !important; }
.tn-pd-related .blog-box-img {
  position: relative !important;
  inset: auto !important;
  flex: 0 0 auto;
  margin: 0 !important;
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 4 / 3;
  background-size: cover !important;
  background-position: center !important;
  background-color: var(--tn-soft);
  opacity: 1 !important;
  transform: none !important;
}
.tn-pd-related .blog-box-img:before,
.tn-pd-related .blog-box-img:after { display: none !important; }
.tn-pd-related .blog-info {
  position: relative !important;
  inset: auto !important;
  padding: 16px 18px 20px !important;
  background: #fff !important;
  color: var(--tn-text) !important;
  flex: 1;
  transform: none !important;
}
.tn-pd-related .blog-info .post-category { display: block; margin-bottom: 8px; }
.tn-pd-related .blog-info .post-category a {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--tn-red-soft) !important;
  color: var(--tn-red) !important;
  font-family: var(--tn-font-head);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.tn-pd-related .blog-info h4 { margin: 0 0 8px; line-height: 1.35; }
.tn-pd-related .blog-info h4 a {
  font-family: var(--tn-font-head);
  font-size: 16px;
  font-weight: 600;
  color: var(--tn-ink) !important;
  text-transform: none;
}
.tn-pd-related .blog-box:hover .blog-info h4 a { color: var(--tn-red) !important; }
.tn-pd-related .blog-info > span:not(.post-category) {
  display: inline-block;
  font-size: 13px;
  color: var(--tn-muted) !important;
}
.tn-pd-related .blog-info > span:not(.post-category) i { color: var(--tn-red); margin-right: 4px; }
/* "By PROMO" repeats the category */
.tn-pd-related .blog-info > span:not(.post-category):last-child { display: none; }
.tn-pd-related .load-more-sec .loadMore {
  background: transparent !important;
  color: var(--tn-muted) !important;
  border: 0 !important;
  font-family: var(--tn-font-body);
}

/* ---------- Phone sticky inquiry bar ---------- */
.tn-pd-bar { display: none; }

/* ---------- Tablet ---------- */
@media (max-width: 991px) {
  .tn-pd-cta-box { flex-direction: column; align-items: flex-start; padding: 32px; }
  .tn-topbar #sub-sections { padding-bottom: 6px !important; }
}

/* ---------- Phones ---------- */
@media (max-width: 767px) {
  body:has(.tn-pd) { padding-bottom: 76px !important; }

  .tn-pd-head .page-title-name p { font-size: 18px !important; }
  .tn-pd-head .page-breadcrumb { display: none; }

  .tn-pd.page-section-ptb { padding: 28px 0 8px; }
  .tn-pd .col-lg-9 { padding-left: 16px !important; padding-right: 16px !important; }
  .tn-pd .entry-image { padding: 0; background: transparent; }
  .tn-pd .entry-image img { width: 100% !important; max-height: none; border-radius: 12px !important; }
  .tn-pd-head .page-title .container { margin-top: -20px; }
  .tn-pd .entry-content { font-size: 15.5px; }
  .tn-pd .entry-share { align-items: flex-start !important; }
  .tn-pd .entry-share .a2a_kit { margin-left: 8px; }

  .tn-pd-cta { padding: 20px 0 40px; }
  .tn-pd-cta-box { padding: 26px 22px; border-radius: 16px; gap: 20px; }
  .tn-pd-cta-actions { flex-direction: column; width: 100%; }
  .tn-pd-cta-actions .tn-pd-btn { width: 100%; }

  .tn-pd-related.page-section-ptb { padding: 44px 0 40px; }
  .tn-pd-related .section-title { margin-bottom: 22px; }
  .tn-pd-related #related-articles > div { margin-bottom: 16px; }

  .tn-pd-bar {
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 10px;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 990;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    background: #fff;
    border-top: 1px solid var(--tn-line);
    box-shadow: 0 -6px 20px rgba(17, 17, 20, 0.08);
  }
  .tn-pd-bar .tn-pd-btn { width: 100%; padding: 12px 16px; }
  .tn-pd-bar-msg {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: var(--tn-soft);
    border: 1px solid var(--tn-line);
    color: var(--tn-ink) !important;
    font-size: 20px;
  }
  /* keep the back-to-top button above the bar */
  body:has(.tn-pd-bar) #back-to-top { bottom: 86px !important; }

  /* About half the package descriptions ship their own fixed "Reserve" bar;
     on those pages step aside so there is never two bars stacked. */
  body:has(.tn-pd .entry-content :is(.tn-mobile-sticky-cta, .sticky)) .tn-pd-bar { display: none; }
  body:has(.tn-pd .entry-content :is(.tn-mobile-sticky-cta, .sticky)) { padding-bottom: 0 !important; }
}

/* ==========================================================================
   PACKAGES LIST  (/packages/latest, view/latest.php)
   Cards are built by my-script.js (_load_page); only styled here. The click
   handlers target exact element paths, so no markup is changed.
   The category banner above the grid is an admin-uploaded image: untouched.
   ========================================================================== */

.tn-pl { font-family: var(--tn-font-body); }
.tn-pl.page-section-ptb { padding: 48px 0 64px; }
.tn-pl > .container { max-width: 1200px; }
.tn-pl #blog-list { margin-bottom: 8px !important; row-gap: 28px; }

/* card shell */
.tn-pl #blog-list > div {
  margin-bottom: 0 !important;
  border: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
}
.tn-pl #blog-list .blog-entry {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  margin: 0 !important;
  overflow: hidden;
  border-radius: var(--tn-radius) !important;
  border: 1px solid var(--tn-line) !important;
  background: #fff !important;
  box-shadow: none !important;
  transition: transform 0.2s, box-shadow 0.2s;
}
.tn-pl #blog-list .blog-entry:hover { transform: translateY(-3px); box-shadow: var(--tn-shadow) !important; }

/* destination ribbon -> dark pill on the photo */
.tn-pl #blog-list .ribbon-target {
  top: 14px !important;
  right: auto !important;
  left: 29px;
  z-index: 3;
  height: auto !important;
  min-height: 0 !important;
  padding: 6px 12px !important;
  border-radius: 999px !important;
  background: rgba(23, 23, 26, 0.82) !important;
  color: #fff !important;
  font-family: var(--tn-font-head);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.2;
  box-shadow: none !important;
  pointer-events: none;
}
.tn-pl #blog-list .ribbon-target:before,
.tn-pl #blog-list .ribbon-target:after { display: none !important; }

/* package posters are 4:5 (1080x1350): show them whole */
.tn-pl #blog-list .entry-image { margin: 0 !important; background: var(--tn-soft); }
.tn-pl #blog-list .entry-image img {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 0 !important;
  display: block;
}

/* body */
.tn-pl #blog-list .blog-detail {
  flex: 1 1 auto;
  height: auto !important;
  padding: 18px 20px 6px !important;
  border-radius: 0 !important;
  background: transparent !important;
}
.tn-pl #blog-list .entry-title { margin-bottom: 8px !important; }
.tn-pl #blog-list .entry-title h1 { margin: 0 !important; line-height: 1.3 !important; }
.tn-pl #blog-list .entry-title h1 a,
.tn-pl #blog-list .entry-title h1 strong {
  font-family: var(--tn-font-head) !important;
  font-size: 18px !important;
  font-weight: 600 !important;
  line-height: 1.35 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  color: var(--tn-ink) !important;
}
.tn-pl #blog-list .entry-title h1 a {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.tn-pl #blog-list .blog-entry:hover .entry-title h1 a,
.tn-pl #blog-list .blog-entry:hover .entry-title h1 strong { color: var(--tn-red) !important; }
/* whole card opens the package: stretch the title link (its existing click
   handler does the navigation) over the card */
.tn-pl #blog-list .entry-title h1 a:after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

/* date only; "Author" is an internal admin username */
.tn-pl #blog-list .entry-meta { margin-bottom: 10px !important; }
.tn-pl #blog-list .entry-meta ul { margin: 0; padding: 0; }
.tn-pl #blog-list .entry-meta li { margin: 0 !important; }
.tn-pl #blog-list .entry-meta li:nth-child(2) { display: none; }
.tn-pl #blog-list .entry-meta li a,
.tn-pl #blog-list .entry-meta li strong {
  font-family: var(--tn-font-body);
  font-size: 13px;
  font-weight: 600;
  color: var(--tn-muted) !important;
}
.tn-pl #blog-list .entry-meta li i { color: var(--tn-red) !important; margin-right: 6px; }
.tn-pl #blog-list .entry-meta h4 { margin: 0; line-height: 1; }
.tn-pl #blog-list .entry-meta .badge {
  display: inline-block;
  margin: 0 6px 4px 0 !important;
  padding: 5px 10px !important;
  border-radius: 999px !important;
  background: var(--tn-soft) !important;
  color: var(--tn-text) !important;
  border: 1px solid var(--tn-line);
  font-family: var(--tn-font-head);
  font-size: 11px !important;
  font-weight: 600 !important;
  letter-spacing: 0.02em;
}
/* excerpt is a repeated SEO line ("Legit travel agency in Batangas") */
.tn-pl #blog-list .entry-content { display: none; }

/* footer row: "Read more" + share */
.tn-pl #blog-list .entry-share {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding: 14px 20px 18px !important;
  border-top: 1px solid var(--tn-line);
}
.tn-pl #blog-list .entry-share:before,
.tn-pl #blog-list .entry-share:after { display: none; }
.tn-pl #blog-list .entry-button a {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 !important;
  font-family: var(--tn-font-head);
  font-size: 14px !important;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--tn-red) !important;
  background: none !important;
}
.tn-pl #blog-list .entry-button a:before,
.tn-pl #blog-list .entry-button a:after { display: none !important; }
.tn-pl #blog-list .entry-button a i { position: static !important; margin: 0 !important; opacity: 1 !important; }
.tn-pl #blog-list .social { position: relative; z-index: 2; float: none !important; gap: 4px; }
.tn-pl #blog-list .social > strong { display: none; }
.tn-pl #blog-list .social .a2a_svg { border-radius: 8px !important; }

/* loading skeleton */
.tn-pl #blog-list .banner_loader { border-radius: 10px; }

/* pagination */
.tn-pl #footer-load .pagination { gap: 6px; margin: 28px 0 0; }
.tn-pl #footer-load .page-item .page-link {
  min-width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border-radius: 999px !important;
  border: 1px solid var(--tn-line) !important;
  background: #fff !important;
  color: var(--tn-text) !important;
  font-family: var(--tn-font-head);
  font-size: 14px;
  font-weight: 600;
  box-shadow: none !important;
  margin: 0 !important;
}
.tn-pl #footer-load .page-item .page-link:hover { border-color: var(--tn-red) !important; color: var(--tn-red) !important; }
.tn-pl #footer-load .page-item.active .page-link {
  background: var(--tn-red) !important;
  border-color: var(--tn-red) !important;
  color: #fff !important;
}
.tn-pl #footer-load .loadMore {
  background: transparent !important;
  color: var(--tn-muted) !important;
  border: 0 !important;
  font-family: var(--tn-font-body);
}

@media (max-width: 767px) {
  .tn-pl.page-section-ptb { padding: 28px 0 44px; }
  .tn-pl #blog-list { row-gap: 14px; margin-left: -7px; margin-right: -7px; }
  /* two compact columns on phones, like the landing page grid */
  .tn-pl #blog-list > div { flex: 0 0 50%; max-width: 50%; padding-left: 7px; padding-right: 7px; }
  .tn-pl #blog-list .ribbon-target { top: 8px !important; left: 15px; padding: 4px 8px !important; font-size: 9.5px; }
  .tn-pl #blog-list .blog-detail { padding: 10px 12px 4px !important; }
  .tn-pl #blog-list .entry-title h1 a,
  .tn-pl #blog-list .entry-title h1 strong { font-size: 14px !important; line-height: 1.3 !important; }
  .tn-pl #blog-list .entry-meta li a,
  .tn-pl #blog-list .entry-meta li strong { font-size: 12px; }
  .tn-pl #blog-list .entry-meta .badge { font-size: 10px !important; padding: 3px 8px !important; }
  .tn-pl #blog-list .entry-share { padding: 10px 12px 12px !important; }
  .tn-pl #blog-list .social { display: none !important; }
  .tn-pl #blog-list .entry-button a { font-size: 13px !important; }
  .tn-pl #footer-load .page-item .page-link { min-width: 38px; height: 38px; padding: 0 10px; font-size: 13px; }
}

/* ==========================================================================
   INQUIRY FORM  (/packages/subscribe, view/subscribe.php)
   Field names, IDs and .form-group wrappers are untouched: FormValidation
   finds fields by name and writes errors into each .form-group.
   ========================================================================== */

.tn-inq { font-family: var(--tn-font-body); background: var(--tn-soft) !important; }
.tn-inq.page-section-ptb { padding: 56px 0 72px; }
.tn-inq > .container { max-width: 1200px; }
.tn-inq > .container > .row { align-items: flex-start; }

/* ---------- Intro column ---------- */
.tn-inq-intro { padding-right: 36px; }
.tn-inq-eyebrow {
  display: inline-block;
  font-family: var(--tn-font-head);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--tn-red);
  margin-bottom: 10px;
}
.tn-inq-intro h2 {
  font-family: var(--tn-font-head) !important;
  font-size: clamp(26px, 2.8vw, 34px) !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  letter-spacing: -0.005em !important;
  text-transform: none !important;
  color: var(--tn-ink) !important;
  margin: 0 0 14px !important;
}
.tn-inq-lead { font-size: 17px; line-height: 1.65; color: var(--tn-muted); margin: 0 0 26px; }

.tn-inq-steps { list-style: none; margin: 0 0 30px; padding: 0; }
.tn-inq-steps li {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 14px;
  align-items: start;
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--tn-text);
  padding: 0 0 16px;
}
.tn-inq-steps li span {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--tn-red-soft);
  color: var(--tn-red);
  font-family: var(--tn-font-head);
  font-size: 14px;
  font-weight: 700;
}

.tn-inq-contact {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.tn-inq-contact a {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--tn-line);
  color: var(--tn-ink) !important;
  text-decoration: none !important;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.tn-inq-contact a:hover { border-color: var(--tn-red); box-shadow: var(--tn-shadow); }
.tn-inq-contact i {
  flex: 0 0 38px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--tn-red);
  color: #fff;
  font-size: 17px;
}
.tn-inq-contact span {
  display: flex;
  flex-direction: column;
  min-width: 0;
  font-family: var(--tn-font-head);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.tn-inq-contact small {
  font-family: var(--tn-font-body);
  font-size: 12px;
  font-weight: 600;
  color: var(--tn-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ---------- Form card ---------- */
.tn-inq .register-bg {
  overflow: hidden;
  border-radius: 20px !important;
  border: 1px solid var(--tn-line) !important;
  background: #fff !important;
  box-shadow: var(--tn-shadow);
  padding: 0 !important;
}
.tn-inq .register-title {
  padding: 26px 32px 22px !important;
  margin: 0 !important;
  background: linear-gradient(120deg, #17171a 0%, #2a1416 60%, #4a1518 100%) !important;
  text-align: left;
}
.tn-inq .register-title h2.text-white {
  font-family: var(--tn-font-head) !important;
  font-size: 24px !important;
  font-weight: 700 !important;
  line-height: 1.25 !important;
  text-align: left !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  color: #fff !important;
}
.tn-inq-note { margin: 6px 0 0; font-size: 14px; color: rgba(255, 255, 255, 0.75); }
.tn-inq-note span { color: #ff8a8d; font-weight: 700; }

.tn-inq .register-form { padding: 24px 32px 32px !important; }
.tn-inq-group {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 10px 0 14px;
  font-family: var(--tn-font-head);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--tn-red);
}
.tn-inq-group:after { content: ""; flex: 1; height: 1px; background: var(--tn-line); }
.tn-inq .register-form .form-group { margin-bottom: 18px !important; }

.tn-inq .register-form label {
  display: block;
  margin-bottom: 6px !important;
  font-family: var(--tn-font-head);
  font-size: 14px !important;
  font-weight: 500 !important;
  line-height: 1.35;
  color: var(--tn-ink) !important;
  text-transform: none !important;
}
.tn-inq .register-form .form-control,
.tn-inq .register-form select.form-control {
  height: 50px !important;
  padding: 0 16px !important;
  border-radius: 12px !important;
  border: 1px solid #d9dae0 !important;
  background-color: #fff !important;
  color: var(--tn-ink) !important;
  font-family: var(--tn-font-body);
  font-size: 15.5px !important;
  line-height: 1.4;
  box-shadow: none !important;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.tn-inq .register-form textarea.form-control { height: auto !important; min-height: 110px; padding: 14px 16px !important; }
.tn-inq .register-form .form-control::placeholder { color: #9a9ca5; opacity: 1; }
.tn-inq .register-form .form-control:focus {
  border-color: var(--tn-red) !important;
  box-shadow: 0 0 0 4px rgba(215, 38, 43, 0.12) !important;
  outline: 0;
}
/* validation states from FormValidation (keep the plugin's icons) */
.tn-inq .register-form .form-control.is-invalid { border-color: #dc3545 !important; }
.tn-inq .register-form .form-control.is-invalid:focus { box-shadow: 0 0 0 4px rgba(220, 53, 69, 0.14) !important; }
.tn-inq .register-form .form-control.is-valid { border-color: #2e9e5b !important; }
/* dropdown: keep the validation icon clear of the native arrow */
.tn-inq .register-form select.form-control { padding-right: 56px !important; }
.tn-inq .register-form select.form-control.is-invalid,
.tn-inq .register-form select.form-control.is-valid { background-position: right 30px center !important; }
.tn-inq .register-form .fv-help-block { margin-top: 6px; font-size: 13px; font-weight: 600; color: #c8232c; }

/* With hotel / With tour */
.tn-inq .remember-checkbox { margin-bottom: 10px !important; }
.tn-inq .remember-checkbox label {
  font-family: var(--tn-font-body) !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  color: var(--tn-text) !important;
  cursor: pointer;
}
.tn-inq .remember-checkbox label:before { border-radius: 6px !important; border-color: #c4c6cd !important; }
.tn-inq .remember-checkbox input:checked + label:before { background: var(--tn-red) !important; border-color: var(--tn-red) !important; }

/* submit (the element is <buttom>; its click handler does validate+send) */
.tn-inq #subscribe_form_submit {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 54px;
  margin-top: 8px !important;
  padding: 14px 28px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: var(--tn-red) !important;
  color: #fff !important;
  font-family: var(--tn-font-head);
  font-size: 16px !important;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.2s;
}
.tn-inq #subscribe_form_submit:hover { background: var(--tn-red-dark) !important; transform: translateY(-1px); }
.tn-inq #subscribe_form_submit span,
.tn-inq #subscribe_form_submit i { position: static !important; color: #fff !important; margin: 0 !important; padding: 0 !important; opacity: 1 !important; transform: none !important; }
.tn-inq #subscribe_form_submit:before,
.tn-inq #subscribe_form_submit:after { display: none !important; }

/* ---------- Tablet & phones ---------- */
@media (max-width: 767px) {
  .tn-inq.page-section-ptb { padding: 24px 0 44px; }
  /* phones: heading, then the form, then the steps and contacts */
  .tn-inq > .container > .row { flex-wrap: wrap; }
  .tn-inq-intro { display: contents; }
  .tn-inq-intro > * { order: 1; width: 100%; padding: 0 15px; }
  .tn-inq > .container > .row > .col-md-7 { order: 2; margin: 6px 0 26px; }
  .tn-inq-intro > .tn-inq-steps,
  .tn-inq-intro > .tn-inq-contact { order: 3; }
  .tn-inq-intro h2 { font-size: 24px !important; margin-bottom: 8px !important; }
  .tn-inq-lead { font-size: 15.5px; margin-bottom: 16px; }
  .tn-inq-contact { padding: 0 15px; }
  .tn-inq .register-title { padding: 20px 20px 18px !important; }
  .tn-inq .register-title h2.text-white { font-size: 21px !important; }
  .tn-inq .register-form { padding: 18px 20px 24px !important; }
  .tn-inq .register-form .form-group { margin-bottom: 14px !important; }
}
@media (max-width: 420px) {
  .tn-inq-contact { grid-template-columns: 1fr; }
}

/* ==========================================================================
   SHARED HEADER  (packages/home.php, every /packages page)
   Matches the landing page header: dark bar, Poppins links, red underline
   for the current page, red pill "Inquire Now". Markup and the template's
   mega-menu script are untouched. `header#header` avoids the views' own
   div#header category bar.
   ========================================================================== */

header#header {
  background: var(--tn-ink) !important; /* overrides inline #cc0000 */
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: none !important;
}
header#header .menu-list-items { background: transparent !important; }
/* the template pins the bar on scroll; keep it dark and solid there too */
header#header .desktopTopFixed .menu-list-items,
header#header .mobileTopFixed .menu-list-items {
  background: rgba(23, 23, 26, 0.96) !important;
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  backdrop-filter: saturate(140%) blur(8px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18) !important;
}
header#header .main-tab2 { max-width: 1200px; margin: 0 auto; float: none; }
header#header #logo_img { max-height: 44px; width: auto; }

/* desktop links */
header#header .menu-links > li > a {
  position: relative;
  font-family: var(--tn-font-head) !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82) !important;
  background: transparent !important;
  padding: 8px 14px !important;
  transition: color 0.2s;
}
header#header .menu-links > li > a:hover,
header#header .menu-links > li.active > a { color: #fff !important; background: transparent !important; }
header#header .menu-links > li > a:not(.btn):after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--tn-red);
  transform: scaleX(0);
  transition: transform 0.2s;
}
header#header .menu-links > li > a:not(.btn):hover:after,
header#header .menu-links > li.active > a:not(.btn):after { transform: scaleX(1); }

/* "Inquire Now" -> red pill (also when it is the current page) */
header#header .menu-links > li > a.btn,
header#header .menu-links > li.active > a.btn {
  margin-left: 10px;
  padding: 10px 22px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: var(--tn-red) !important;
  color: #fff !important;
  line-height: 1.2 !important;
  box-shadow: none !important;
  transition: background-color 0.2s, transform 0.2s;
}
header#header .menu-links > li > a.btn:hover { background: var(--tn-red-dark) !important; transform: translateY(-1px); }
header#header .menu-links > li > a:focus-visible { outline: 3px solid #ffbf47; outline-offset: 2px; }

/* phone / tablet menu */
@media (max-width: 991px) {
  header#header .menu-mobile-collapse-trigger span,
  header#header .menu-mobile-collapse-trigger:before,
  header#header .menu-mobile-collapse-trigger:after { background: #fff !important; }
  header#header .menu-links {
    background: var(--tn-ink) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 8px 0 16px !important;
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.25);
  }
  header#header .menu-links > li { border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important; }
  header#header .menu-links > li:last-child { border-bottom: 0 !important; }
  header#header .menu-links > li > a {
    display: block;
    padding: 14px 20px !important;
    font-size: 15px !important;
  }
  header#header .menu-links > li > a:not(.btn):after { left: 20px; right: auto; width: 24px; bottom: 8px; }
  header#header .menu-links > li > a.btn,
  header#header .menu-links > li.active > a.btn {
    display: block;
    margin: 12px 20px 0;
    padding: 14px 20px !important;
    text-align: center;
  }
}
/* the template's mobile "active" rule paints a red box; use the underline only */
header#header #onepagenav .mega-menu .menu-links > li.active > a:not(.btn),
header#header #onepagenav .mega-menu .menu-links > li > a:not(.btn):hover { background: transparent !important; box-shadow: none !important; color: #fff !important; }

/* ==========================================================================
   SHARED FOOTER + BACK-TO-TOP  (packages/home.php, every /packages page)
   Same dark bar as the header. Content (copyright line) unchanged.
   ========================================================================== */
footer.footer {
  background: var(--tn-ink) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-family: var(--tn-font-body);
}
footer.footer .footer-widget { padding: 28px 0 !important; border: 0 !important; }
footer.footer .footer-widget p {
  margin: 0 !important;
  font-family: var(--tn-font-body) !important;
  font-size: 14px !important;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.6) !important;
}
footer.footer .footer-widget p .text-white {
  font-family: var(--tn-font-head);
  font-weight: 600;
  color: #fff !important;
}

#back-to-top a {
  width: 46px !important;
  height: 46px !important;
  display: grid !important;
  place-items: center;
  padding: 0 !important;
  border-radius: 50% !important;
  background: var(--tn-red) !important;
  color: #fff !important;
  box-shadow: 0 8px 20px rgba(215, 38, 43, 0.35) !important;
  line-height: 1 !important;
  transition: background-color 0.2s, transform 0.2s;
}
#back-to-top a:hover { background: var(--tn-red-dark) !important; transform: translateY(-2px); }
#back-to-top a span { display: none !important; }
#back-to-top a i { font-size: 22px !important; margin: 0 !important; line-height: 1 !important; }
@media (max-width: 767px) {
  /* keep the copyright clear of the round back-to-top button */
  footer.footer .footer-widget p { padding: 0 60px !important; font-size: 13px !important; }
}

/* ==========================================================================
   LEGALITIES  (/packages/about-us, view/about-us.php)
   Documents open full size through the site's existing .article_image viewer.
   ========================================================================== */

.tn-legal { font-family: var(--tn-font-body); background: var(--tn-soft) !important; padding: 56px 0 72px !important; }
.tn-legal > .container { max-width: 1200px; }

.tn-legal-head { max-width: 760px; margin: 0 auto 32px; text-align: center; }
.tn-legal-eyebrow {
  display: inline-block;
  font-family: var(--tn-font-head);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--tn-red);
  margin-bottom: 10px;
}
.tn-legal-head h1 {
  font-family: var(--tn-font-head) !important;
  font-size: clamp(28px, 3.4vw, 40px) !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  letter-spacing: -0.005em !important;
  text-transform: none !important;
  color: var(--tn-ink) !important;
  margin: 0 0 16px !important;
}
.tn-legal-head p { font-size: 17px; line-height: 1.7; color: var(--tn-muted); margin: 0; }

/* credentials strip */
.tn-legal-creds {
  display: flex;
  align-items: center;
  gap: 28px;
  max-width: 860px;
  margin: 0 auto 56px;
  padding: 22px 28px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid var(--tn-line);
  box-shadow: var(--tn-shadow);
}
.tn-legal-seal { flex: 0 0 auto; width: 96px; height: 96px; object-fit: contain; }
.tn-legal-creds dl {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin: 0;
}
.tn-legal-creds dl > div { padding-left: 20px; border-left: 3px solid var(--tn-red); }
.tn-legal-creds dt {
  font-family: var(--tn-font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tn-muted);
  margin-bottom: 4px;
}
.tn-legal-creds dd {
  margin: 0;
  font-family: var(--tn-font-head);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--tn-ink);
  overflow-wrap: anywhere;
}

/* documents */
.tn-legal-title {
  font-family: var(--tn-font-head) !important;
  font-size: clamp(22px, 2.4vw, 28px) !important;
  font-weight: 700 !important;
  text-align: center;
  text-transform: none !important;
  letter-spacing: 0 !important;
  color: var(--tn-ink) !important;
  margin: 0 0 6px !important;
}
.tn-legal-hint { text-align: center; font-size: 14px; color: var(--tn-muted); margin: 0 0 26px; }
.tn-legal-hint i { color: var(--tn-red); margin-right: 4px; }

.tn-legal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
}
.tn-legal-doc {
  margin: 0;
  overflow: hidden;
  border-radius: var(--tn-radius);
  background: #fff;
  border: 1px solid var(--tn-line);
  transition: transform 0.2s, box-shadow 0.2s;
}
.tn-legal-doc:hover { transform: translateY(-3px); box-shadow: var(--tn-shadow); }
.tn-legal-thumb {
  aspect-ratio: 3 / 4;
  padding: 14px;
  background: #eceef1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tn-legal-thumb img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 4px 14px rgba(17, 17, 20, 0.12);
  cursor: zoom-in;
  background: #fff;
}
.tn-legal-doc figcaption { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 2px; }
.tn-legal-doc figcaption strong { font-family: var(--tn-font-head); font-size: 15px; font-weight: 600; color: var(--tn-ink); }
.tn-legal-doc figcaption span { font-size: 13.5px; color: var(--tn-muted); line-height: 1.4; }

/* closing call-to-action */
.tn-legal-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 56px;
  padding: 32px 40px;
  border-radius: 20px;
  background: linear-gradient(120deg, #17171a 0%, #2a1416 60%, #4a1518 100%);
  color: #fff;
}
.tn-legal-cta h2 {
  font-family: var(--tn-font-head) !important;
  font-size: clamp(22px, 2.4vw, 28px) !important;
  font-weight: 700 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  color: #fff !important;
  margin: 0 0 6px !important;
}
.tn-legal-cta p { margin: 0; color: rgba(255, 255, 255, 0.75); font-size: 16px; }
.tn-legal-cta-actions { display: flex; gap: 12px; flex-shrink: 0; }

/* shared full-size image viewer (#ArticleModal in home.php) */
#ArticleModal.modal-2 { background: rgba(17, 17, 20, 0.92) !important; padding-top: 48px !important; z-index: 10000 !important; }
#ArticleModal .modal-content-2 { max-width: min(900px, 92vw) !important; max-height: 82vh; width: auto !important; object-fit: contain; border-radius: 8px; }
#ArticleModal #caption { font-family: var(--tn-font-body); color: rgba(255, 255, 255, 0.85) !important; }
#ArticleModal .close-2 { color: #fff !important; opacity: 0.85; }

@media (max-width: 767px) {
  .tn-legal { padding: 28px 0 44px !important; }
  .tn-legal-head { text-align: left; margin-bottom: 22px; }
  .tn-legal-head p { font-size: 15.5px; }
  /* phones: centred stack - seal, then the two numbers split by a divider */
  .tn-legal-creds { flex-direction: column; align-items: center; gap: 14px; padding: 22px 18px; margin-bottom: 36px; text-align: center; }
  .tn-legal-seal { width: 76px; height: 76px; }
  .tn-legal-creds dl { grid-template-columns: 1fr; gap: 0; width: 100%; }
  .tn-legal-creds dl > div { padding: 14px 0; border-left: 0; border-top: 1px solid var(--tn-line); }
  .tn-legal-creds dl > div:last-child { padding-bottom: 0; }
  .tn-legal-creds dd { font-size: 17px; overflow-wrap: normal; white-space: nowrap; }
  .tn-legal-title, .tn-legal-hint { text-align: left; }
  .tn-legal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .tn-legal-thumb { padding: 10px; }
  .tn-legal-doc figcaption { padding: 10px 12px 12px; }
  .tn-legal-doc figcaption strong { font-size: 14px; }
  .tn-legal-doc figcaption span { font-size: 12.5px; }
  .tn-legal-cta { flex-direction: column; align-items: flex-start; padding: 26px 22px; margin-top: 36px; }
  .tn-legal-cta-actions { flex-direction: column; width: 100%; }
  .tn-legal-cta-actions .tn-pd-btn { width: 100%; }
}
@media (max-width: 359px) {
  .tn-legal-creds dd { font-size: 15px; }
}

/* image viewer close button (#ArticleModal): fixed, visible over white documents */
#ArticleModal .close-2 {
  position: fixed !important;
  top: 14px !important;
  right: 16px !important;
  z-index: 10002;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(23, 23, 26, 0.85) !important;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff !important;
  font-size: 30px !important;
  line-height: 1 !important;
  opacity: 1 !important;
}
#ArticleModal .close-2:hover { background: var(--tn-red) !important; }

/* ==========================================================================
   OUR COMPANY  (/packages/our-company, view/our-company.php)
   The page viewer (#pb) is built by the page's own inline script; it is only
   restyled here (".tn-co #pb" beats the view's inline "#pb" rules).
   ========================================================================== */

.tn-co { font-family: var(--tn-font-body); background: var(--tn-soft) !important; padding-top: 56px !important; margin-bottom: 0 !important; padding-bottom: 24px; }
.tn-co > .container { max-width: 1200px; }
.tn-co-head { max-width: 680px; margin: 0 auto; }
.tn-co-eyebrow {
  display: inline-block;
  font-family: var(--tn-font-head);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--tn-red);
  margin-bottom: 10px;
}
.tn-co-head h1 {
  font-family: var(--tn-font-head) !important;
  font-size: clamp(28px, 3.4vw, 40px) !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  text-transform: none !important;
  letter-spacing: -0.005em !important;
  color: var(--tn-ink) !important;
  margin: 0 0 12px !important;
}
.tn-co-head p { font-size: 17px; line-height: 1.65; color: var(--tn-muted); margin: 0; }

/* viewer frame */
.tn-co #pb {
  max-width: 920px;
  margin: 0 auto;
  padding: 14px;
  border-radius: 20px;
  background: var(--tn-ink);
  box-shadow: var(--tn-shadow);
  color: #fff;
  font-family: var(--tn-font-body);
}
.tn-co #pb .wrap { gap: 12px; }

/* controls bar: stays visible while scrolling a tall page */
.tn-co #pb .bar {
  position: sticky;
  top: 76px;
  z-index: 5;
  gap: 8px;
  padding: 8px;
  border-radius: 14px;
  background: rgba(35, 35, 39, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.tn-co #pb button,
.tn-co #pb select {
  height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: transparent;
  color: #fff;
  font-family: var(--tn-font-head);
  font-size: 14px;
  font-weight: 600;
  transition: background-color 0.2s, border-color 0.2s;
}
.tn-co #pb button:hover { background: rgba(255, 255, 255, 0.1); }
.tn-co #pb #next { background: var(--tn-red); border-color: var(--tn-red); }
.tn-co #pb #next:hover { background: var(--tn-red-dark); border-color: var(--tn-red-dark); }
.tn-co #pb select { padding-right: 32px; cursor: pointer; }
.tn-co #pb select option { color: var(--tn-ink); background: #fff; }
.tn-co #pb button:focus-visible,
.tn-co #pb select:focus-visible { outline: 3px solid #ffbf47; outline-offset: 2px; }
.tn-co #pb .muted { opacity: 1; color: rgba(255, 255, 255, 0.65); font-family: var(--tn-font-head); font-size: 14px; font-weight: 600; padding-right: 8px; }

/* page */
.tn-co #pb .viewer {
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: #0f1012;
  overflow: hidden;
}
.tn-co #pb #img { width: 100%; max-width: 100%; border-radius: 12px; }
.tn-co #pb .wrap > .muted:last-child { text-align: center; font-size: 13px; font-weight: 500; padding: 0; }

/* contact section */
.tn-co-contact { font-family: var(--tn-font-body); background: var(--tn-soft); padding-bottom: 72px !important; }
.tn-co-contact > .container { max-width: 1200px; }
.tn-co-title {
  font-family: var(--tn-font-head) !important;
  font-size: 24px !important;
  font-weight: 700 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  color: var(--tn-ink) !important;
  margin: 0 0 16px !important;
}
.tn-co-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.tn-co-links a {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--tn-line);
  color: var(--tn-ink) !important;
  text-decoration: none !important;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.tn-co-links a:hover { border-color: var(--tn-red); box-shadow: var(--tn-shadow); }
.tn-co-links i {
  flex: 0 0 38px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--tn-red);
  color: #fff;
  font-size: 17px;
}
.tn-co-links span { display: flex; flex-direction: column; min-width: 0; font-family: var(--tn-font-head); font-size: 14px; font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
.tn-co-links small { font-family: var(--tn-font-body); font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--tn-muted); }
.tn-co-address {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--tn-line);
  margin-bottom: 16px;
}
.tn-co-address i {
  flex: 0 0 38px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--tn-red-soft);
  color: var(--tn-red);
  font-size: 18px;
}
.tn-co-address p { margin: 0; font-family: var(--tn-font-head); font-size: 16px; font-weight: 600; line-height: 1.5; color: var(--tn-ink); }
.tn-co-cta { width: 100%; }

@media (max-width: 767px) {
  .tn-co { padding-top: 28px !important; }
  .tn-co-head { text-align: left; }
  .tn-co-head p { font-size: 15.5px; }
  .tn-co .col-lg-12 { padding-left: 10px; padding-right: 10px; }
  .tn-co #pb { padding: 8px; border-radius: 16px; }
  .tn-co #pb .bar { top: 64px; gap: 6px; padding: 6px; }
  .tn-co #pb button, .tn-co #pb select { height: 38px; padding: 0 12px; font-size: 13px; }
  .tn-co #pb select { padding-right: 26px; }
  .tn-co #pb .grow { display: none; }
  .tn-co #pb #pos { margin-left: auto; }
  .tn-co-contact { padding-bottom: 44px !important; }
  .tn-co-links { grid-template-columns: 1fr; }
}

/* ---------- Our Company: full-screen viewer ---------- */
.tn-co #pb #pb-full { display: inline-flex; align-items: center; gap: 8px; }
.tn-co #pb #pb-full i { font-size: 15px; }
/* real full screen (Fullscreen API) and the iPhone fallback overlay */
.tn-co #pb.tn-pb-is-full {
  max-width: none !important;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 12px !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: #0b0b0d !important;
  display: flex;
  flex-direction: column;
}
.tn-co #pb.tn-pb-full { position: fixed !important; inset: 0; z-index: 10050; }
.tn-co #pb.tn-pb-is-full .wrap { flex: 1; min-height: 0; }
.tn-co #pb.tn-pb-is-full .bar { position: static; max-width: 1100px; width: 100%; margin: 0 auto; }
.tn-co #pb.tn-pb-is-full .viewer {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
}
.tn-co #pb.tn-pb-is-full #img {
  width: auto !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain;
}
.tn-co #pb.tn-pb-is-full .wrap > .muted:last-child { flex: 0 0 auto; }
html.tn-pb-lock, html.tn-pb-lock body { overflow: hidden !important; }
@media (max-width: 767px) {
  .tn-co #pb #pb-full { padding: 0 11px; }
  .tn-co #pb #pb-full span { display: none; } /* icon only on phones */
  .tn-co #pb.tn-pb-is-full { padding: 8px !important; }
}
@media (max-width: 767px) {
  /* one-row bar on phones: the page dropdown already shows "Page N" */
  .tn-co #pb #pos { display: none; }
  .tn-co #pb #pb-full { margin-left: auto; }
}

/* full screen: page first, Prev / Page / Next centred at the bottom,
   exit button in the top-right corner */
.tn-co #pb.tn-pb-is-full { position: relative; padding-top: 16px !important; }
.tn-co #pb.tn-pb-full { position: fixed !important; }
.tn-co #pb.tn-pb-is-full .viewer { order: 1; }
.tn-co #pb.tn-pb-is-full .bar {
  order: 2;
  width: auto;
  max-width: none;
  margin: 0 auto;
  justify-content: center;
  border-radius: 999px;
  padding: 6px;
}
.tn-co #pb.tn-pb-is-full .grow { display: none; }
.tn-co #pb.tn-pb-is-full #pos { display: inline; order: 4; padding: 0 10px 0 4px; }
.tn-co #pb.tn-pb-is-full #pb-full {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 6;
  background: rgba(35, 35, 39, 0.92);
}
.tn-co #pb.tn-pb-is-full .wrap > .muted:last-child { order: 3; }
@media (max-width: 767px) {
  /* leave room for the corner exit button above the page */
  .tn-co #pb.tn-pb-is-full { padding-top: 62px !important; }
  .tn-co #pb.tn-pb-is-full #pb-full { top: 10px; right: 10px; }
  .tn-co #pb.tn-pb-is-full #pos { display: none; }
  .tn-co #pb.tn-pb-is-full .wrap > .muted:last-child { display: none; }
}

/* ==========================================================================
   PAYMENT ADVISORY  (/packages/payment-advisory, view/payment-advisory.php)
   Same wording as before; layout and styling only.
   ========================================================================== */
.tn-pay { font-family: var(--tn-font-body); background: var(--tn-soft) !important; padding: 56px 0 80px !important; }
.tn-pay > .container { max-width: 1200px; }
.tn-pay-head { max-width: 720px; margin: 0 auto 32px; text-align: center; }
.tn-pay-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
  padding: 6px 14px;
  border-radius: 999px;
  background: #fff4dc;
  border: 1px solid #f3d48a;
  color: #7a5200;
  font-family: var(--tn-font-head);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.tn-pay-head h1 {
  font-family: var(--tn-font-head) !important;
  font-size: clamp(28px, 3.4vw, 40px) !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  text-transform: none !important;
  letter-spacing: -0.005em !important;
  color: var(--tn-ink) !important;
  margin: 0 0 14px !important;
}
.tn-pay-head p { font-size: 17px; line-height: 1.7; color: var(--tn-muted); margin: 0; }

.tn-pay-list {
  list-style: none;
  max-width: 760px;
  margin: 0 auto;
  padding: 0;
  display: grid;
  gap: 12px;
}
.tn-pay-list li {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 16px;
  align-items: start;
  padding: 18px 22px;
  border-radius: var(--tn-radius);
  background: #fff;
  border: 1px solid var(--tn-line);
}
.tn-pay-list li > i {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 16px;
}
.tn-pay-do > i { background: #e6f6ec; color: #1f8a4c; }
.tn-pay-list li p {
  margin: 6px 0 0;
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--tn-ink);
}
.tn-pay-list li a {
  display: inline-block;
  margin-top: 4px;
  font-weight: 700;
  color: var(--tn-red) !important;
  overflow-wrap: break-word;
}
.tn-pay-list li a:hover { text-decoration: underline; }
/* the "do not" rule stands apart */
.tn-pay-dont {
  margin-top: 8px;
  background: #fdecec !important;
  border-color: #f5c2c4 !important;
}
.tn-pay-dont > i { background: var(--tn-red); color: #fff; }
.tn-pay-dont p { font-weight: 700; color: #7d1418 !important; }

@media (max-width: 767px) {
  .tn-pay { padding: 28px 0 48px !important; }
  .tn-pay-head { text-align: left; margin-bottom: 22px; }
  .tn-pay-head p { font-size: 15.5px; }
  .tn-pay-list li { grid-template-columns: 30px 1fr; gap: 12px; padding: 14px 16px; }
  .tn-pay-list li > i { width: 30px; height: 30px; font-size: 14px; }
  .tn-pay-list li p { margin-top: 3px; font-size: 15.5px; }
}
/* empty leftover spacer section right after the advisory */
.tn-pay + section.page-section-pb.gray-bg { display: none; }
/* office address opens Google Maps */
a.tn-co-address {
  color: var(--tn-ink) !important;
  text-decoration: none !important;
  transition: border-color 0.2s, box-shadow 0.2s;
}
a.tn-co-address:hover { border-color: var(--tn-red); box-shadow: var(--tn-shadow); }
a.tn-co-address:focus-visible { outline: 3px solid #ffbf47; outline-offset: 2px; }
.tn-co-address p { flex: 1; }
.tn-co-address-go { align-self: center; color: var(--tn-muted); font-size: 14px; transition: color 0.2s; }
a.tn-co-address:hover .tn-co-address-go { color: var(--tn-red); }
.tn-co-address .tn-co-address-go i {
  flex: none;
  width: auto;
  height: auto;
  display: inline;
  background: none;
  color: inherit;
  font-size: 14px;
  border-radius: 0;
}
/* contact cards: fit as many columns as the width allows, no mid-word breaks */
.tn-co-links { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.tn-co-links span { overflow-wrap: normal; word-break: normal; }

/* ==========================================================================
   SEARCH  (/packages/search-results + the category-bar search dropdown)
   Results, the empty state and the dropdown are built by ajax-custom.js /
   my-script.js; only restyled here. The 5-result cap is unchanged.
   ========================================================================== */

/* ---------- Results page header ---------- */
.tn-sr { font-family: var(--tn-font-body); background: var(--tn-soft); padding: 48px 0 72px !important; }
.tn-sr > .container { max-width: 960px; }
.tn-sr .search-no-result {
  display: flex !important;
  align-items: center;
  gap: 22px;
  margin: 0 0 28px;
  padding: 26px 28px !important;
  border-radius: 20px;
  background: #fff;
  border: 1px solid var(--tn-line);
  box-shadow: var(--tn-shadow);
  text-align: left !important;
}
.tn-sr .search-icon {
  flex: 0 0 64px;
  display: grid !important;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 0 !important;
  border-radius: 18px;
  background: var(--tn-red-soft);
  color: var(--tn-red) !important;
}
.tn-sr .search-icon i { font-size: 28px !important; line-height: 1 !important; }
.tn-sr .search-icon:before, .tn-sr .search-icon:after { display: none !important; }
.tn-sr .search-contant { flex: 1; min-width: 0; display: block !important; }
.tn-sr .search-header {
  font-family: var(--tn-font-head) !important;
  font-size: clamp(22px, 2.6vw, 28px) !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  color: var(--tn-ink) !important;
  margin: 0 0 4px !important;
}
.tn-sr .search-contant > p { margin: 0 0 14px; font-size: 15px; color: var(--tn-muted); }
.tn-sr .sidebar-widget { margin: 0 !important; }
.tn-sr .twitter-typeahead { display: block !important; width: 100%; }
.tn-sr #search-input {
  height: 48px;
  padding: 0 18px !important;
  border-radius: 999px !important;
  border: 1px solid #d9dae0 !important;
  background: var(--tn-soft) !important;
  font-family: var(--tn-font-body);
  font-size: 15.5px;
  color: var(--tn-ink) !important;
  box-shadow: none !important;
}
.tn-sr #search-input:focus { border-color: var(--tn-red) !important; background: #fff !important; box-shadow: 0 0 0 4px rgba(215, 38, 43, 0.12) !important; }

/* ---------- Result cards ---------- */
.tn-sr #all-results { display: grid; gap: 14px; }
.tn-sr #all-results > .col-12 {
  position: relative;
  display: grid;
  grid-template-columns: 112px 1fr;
  grid-template-areas: "photo title" "photo text";
  column-gap: 18px;
  align-items: start;
  padding: 14px;
  border-radius: var(--tn-radius);
  background: #fff;
  border: 1px solid var(--tn-line);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.tn-sr #all-results > .col-12:hover { transform: translateY(-2px); box-shadow: var(--tn-shadow); border-color: #f0c9cb; }
.tn-sr #all-results > .col-12 > h4 { grid-area: title; margin: 2px 0 6px !important; line-height: 1.35; }
.tn-sr #all-results > .col-12 > h4 a {
  font-family: var(--tn-font-head) !important;
  font-size: 17px !important;
  font-weight: 600 !important;
  text-transform: none !important;
  color: var(--tn-ink) !important;
  text-decoration: none !important;
}
.tn-sr #all-results > .col-12 > h4 a:before, .tn-sr #all-results > .col-12 > h4 a:after { display: none; }
/* whole card opens the package via the title link's existing handler */
.tn-sr #all-results > .col-12 > h4 a:after { content: ""; display: block; position: absolute; inset: 0; z-index: 1; }
.tn-sr #all-results > .col-12:hover > h4 a { color: var(--tn-red) !important; }
.tn-sr #all-results .comments-1 { display: contents; }
.tn-sr #all-results .comments-photo { grid-area: photo; margin: 0 !important; width: 112px !important; float: none !important; }
.tn-sr #all-results .comments-photo img {
  width: 112px !important;
  height: 140px !important;
  object-fit: cover;
  border-radius: 10px !important;
  background: var(--tn-soft);
  display: block;
}
.tn-sr #all-results .txt {
  grid-area: text;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}
.tn-sr #all-results .txt:before, .tn-sr #all-results .txt:after { display: none !important; }
.tn-sr #all-results .txt p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--tn-muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.tn-sr #all-results .divider { display: none; }

/* ---------- Empty state ("Ooopps ! / Nothing was found") ---------- */
.tn-sr .error-block {
  padding: 44px 24px 40px !important;
  border-radius: 20px;
  background: #fff;
  border: 1px dashed #d6d7dd;
}
.tn-sr .error-block:before {
  content: "";
  display: block;
  width: 64px;
  height: 64px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: var(--tn-soft) center / 28px no-repeat
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b6d75' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.5-3.5M8.5 11h5'/%3E%3C/svg%3E");
}
.tn-sr .error-block h1 {
  font-family: var(--tn-font-head) !important;
  font-size: 24px !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  color: var(--tn-ink) !important;
  margin: 0 0 6px !important;
  padding: 0 !important;
}
.tn-sr .error-block p { margin: 0; font-size: 15.5px; color: var(--tn-muted); }

/* ---------- Category-bar search dropdown (packages list + package pages) ---------- */
.tn-topbar .tt-menu {
  left: auto !important;
  right: 0 !important;
  width: max(100%, 380px);
  max-width: calc(100vw - 24px);
  max-height: 420px !important;
  margin-top: 8px;
  padding: 6px !important;
  border-radius: 16px !important;
  background: #fff !important;
  border: 1px solid var(--tn-line) !important;
  box-shadow: 0 16px 40px rgba(17, 17, 20, 0.14) !important;
  font-family: var(--tn-font-body);
}
.tn-topbar .tt-menu .man-section {
  display: flex !important;
  align-items: center;
  gap: 12px;
  padding: 10px !important;
  border-radius: 12px;
  border: 0 !important;
  background: transparent !important;
  color: var(--tn-ink) !important;
  text-decoration: none !important;
  transition: background-color 0.15s;
}
.tn-topbar .tt-menu .man-section:hover,
.tn-topbar .tt-menu .tt-cursor { background: var(--tn-soft) !important; }
.tn-topbar .tt-menu .image-section { flex: 0 0 48px; width: 48px !important; height: 48px; margin: 0 !important; float: none !important; }
.tn-topbar .tt-menu .image-section img {
  width: 48px !important;
  height: 48px !important;
  object-fit: cover;
  border-radius: 10px !important;
  background: var(--tn-soft);
  border: 0 !important;
}
.tn-topbar .tt-menu .description-section { flex: 1; min-width: 0; padding: 0 !important; float: none !important; width: auto !important; }
.tn-topbar .tt-menu .description-section h5 {
  margin: 0 0 2px !important;
  font-family: var(--tn-font-head) !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  line-height: 1.35 !important;
  text-transform: none !important;
  color: var(--tn-ink) !important;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.tn-topbar .tt-menu .description-section p {
  margin: 0 !important;
  font-size: 12.5px !important;
  line-height: 1.4 !important;
  color: var(--tn-muted) !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tn-topbar .tt-menu .tt-highlight { color: var(--tn-red) !important; font-weight: 700; }
.tn-topbar .tt-menu .more-results {
  margin: 6px 0 0 !important;
  padding: 8px 4px 4px;
  border-top: 1px solid var(--tn-line);
  text-align: center;
}
.tn-topbar .tt-menu #view_all_result {
  display: block;
  padding: 10px;
  border-radius: 10px;
  font-family: var(--tn-font-head);
  font-size: 14px;
  font-weight: 600;
  color: var(--tn-red) !important;
  text-decoration: none !important;
}
.tn-topbar .tt-menu #view_all_result:hover { background: var(--tn-red-soft); }
.tn-topbar .tt-menu .empty-message { padding: 14px 12px; font-size: 14px; color: var(--tn-muted); text-align: center; }

@media (max-width: 767px) {
  .tn-sr { padding: 24px 0 44px !important; }
  .tn-sr .search-no-result { flex-direction: column; align-items: flex-start; gap: 14px; padding: 20px !important; }
  .tn-sr .search-icon { flex-basis: auto; width: 52px; height: 52px; border-radius: 14px; }
  .tn-sr .search-icon i { font-size: 22px !important; }
  .tn-sr #all-results > .col-12 { grid-template-columns: 84px 1fr; column-gap: 14px; padding: 12px; }
  .tn-sr #all-results .comments-photo, .tn-sr #all-results .comments-photo img { width: 84px !important; }
  .tn-sr #all-results .comments-photo img { height: 105px !important; }
  .tn-sr #all-results > .col-12 > h4 a { font-size: 15px !important; }
  .tn-sr #all-results .txt p { font-size: 13.5px; -webkit-line-clamp: 2; }
  .tn-topbar .tt-menu { width: 100%; max-width: none; }
}
.tn-sr #all-results > .col-12 { grid-template-rows: auto 1fr; }
.tn-sr #all-results .txt { align-self: start; }
.tn-sr .error-block { width: 100%; float: none !important; }
.tn-sr { min-height: calc(100vh - 180px); }
.tn-sr #all-results { width: 100%; }
/* tall enough for all 5 suggestions + "View all results" without inner scrolling */
.tn-topbar .tt-menu { max-height: min(560px, calc(100vh - 160px)) !important; }
/* line the results up with the search card (which sits inside a padded column) */
.tn-sr #all-results { padding: 0 15px; box-sizing: border-box; }
.tn-sr #all-results .txt p { text-align: left !important; }

/* ==========================================================================
   404 / NOT FOUND  (view/not-found.php) - same wording and links, restyled
   ========================================================================== */
.tn-404 {
  font-family: var(--tn-font-body);
  background: var(--tn-soft);
  padding: 64px 0 80px !important;
  min-height: calc(100vh - 180px);
  display: flex;
  align-items: center;
}
.tn-404 > .container { max-width: 1200px; }
.tn-404-card {
  max-width: 620px;
  margin: 0 auto;
  padding: 44px 36px 40px;
  border-radius: 24px;
  background: #fff;
  border: 1px solid var(--tn-line);
  box-shadow: var(--tn-shadow);
  text-align: center;
}
.tn-404-icon {
  width: 76px;
  height: 76px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--tn-red-soft) center / 34px no-repeat
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d7262b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s-7-6.2-7-11.5a7 7 0 0 1 14 0C19 14.8 12 21 12 21z'/%3E%3Cpath d='M9.5 7.5l5 5M14.5 7.5l-5 5'/%3E%3C/svg%3E");
}
/* "404 Error" as a small label instead of giant background art */
.tn-404 .tn-404-code {
  position: static !important;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 14px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--tn-soft);
  border: 1px solid var(--tn-line);
  transform: none !important;
}
.tn-404 .tn-404-code h2,
.tn-404 .tn-404-code span {
  position: static !important;
  margin: 0 !important;
  padding: 0 !important;
  transform: none !important;
  font-family: var(--tn-font-head) !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase;
  color: var(--tn-muted) !important;
  opacity: 1 !important;
}
.tn-404-card h1 {
  font-family: var(--tn-font-head) !important;
  font-size: clamp(30px, 4vw, 40px) !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  letter-spacing: -0.005em !important;
  text-transform: none !important;
  color: var(--tn-ink) !important;
  margin: 0 0 10px !important;
}
.tn-404-lead { margin: 0 0 8px; font-family: var(--tn-font-head); font-size: 18px; font-weight: 500; line-height: 1.45; color: var(--tn-text); }
.tn-404-help { margin: 0 auto 28px; max-width: 460px; font-size: 15px; line-height: 1.6; color: var(--tn-muted); }
.tn-404-actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.tn-404-actions .tn-pd-btn { text-transform: none; }
.tn-404-actions .tn-pd-btn span { display: inline-block; }
.tn-404-actions .tn-pd-btn span::first-letter { text-transform: uppercase; }

@media (max-width: 767px) {
  .tn-404 { padding: 28px 0 44px !important; align-items: flex-start; }
  .tn-404-card { padding: 32px 22px 28px; border-radius: 20px; }
  .tn-404-icon { width: 64px; height: 64px; background-size: 28px; }
  .tn-404-lead { font-size: 16.5px; }
  .tn-404-actions { flex-direction: column; }
  .tn-404-actions .tn-pd-btn { width: 100%; }
}
/* no white strip between the 404 card area and the footer */
#kt_content:has(.tn-404) { background: var(--tn-soft); }
/* same empty leftover spacer section on Legalities */
.tn-legal + section.page-section-pb.gray-bg { display: none; }
