/*
 * TrailPost — Travel & Adventure Magazine Theme
 * Version: 1.0.0
 * Author: RSOC Platform Team
 * License: GPL v2
 *
 * Table of Contents:
 *  1. CSS Custom Properties
 *  2. Reset & Base
 *  3. Typography
 *  4. Layout & Container
 *  5. Skip Link
 *  6. Reading Progress Bar
 *  7. Top Bar & Ticker
 *  8. Header & Navigation
 *  9. Search Overlay
 * 10. Mobile Navigation
 * 11. Hero Carousel
 * 12. Section Headers
 * 13. Card — Standard (card-article)
 * 14. Card — Featured / Overlay (card-featured)
 * 15. Card — Horizontal (card-horizontal)
 * 16. Card — Search (card-search)
 * 17. Homepage Sections
 * 17b. Location Cards & Travel Components
 * 18. Single Post — Header & Featured Image
 * 19. Single Post — TOC
 * 20. Single Post — Content (Drop Cap, Photo Gallery)
 * 21. Single Post — Social Share
 * 22. Single Post — Author Bio
 * 23. Single Post — Post Navigation
 * 24. Single Post — Related Posts
 * 25. Single Post — Comments
 * 26. Sidebar & Widgets
 * 27. Archive & Search Pages
 * 28. 404 Page
 * 29. Page Template
 * 30. Breadcrumbs
 * 31. Pagination
 * 32. Back-to-Top Button
 * 33. Footer
 * 34. Ad Zones
 * 35. WordPress Core Overrides
 * 36. Focus & Accessibility
 * 37. Reduced Motion
 * 38. High Contrast
 * 39. Print Styles
 * 40. Responsive — 1024px (Tablet Landscape)
 * 41. Responsive — 768px (Tablet Portrait)
 * 42. Responsive — 480px (Mobile)
 * 43. Responsive — 375px (Small Phone)
 */


/* ==========================================================================
   1. CSS Custom Properties
   ========================================================================== */

:root {
  /* Colors — configurable via WP Customizer */
  --tp-color-primary: #d97706;
  --tp-color-primary-dark: #92400e;
  --tp-color-primary-light: #f59e0b;
  --tp-color-secondary: #059669;
  --tp-color-secondary-dark: #047857;
  --tp-color-accent: #c2410c;

  /* Backgrounds */
  --tp-bg-warm: #fef3c7;
  --tp-bg-light: #fefbf3;
  --tp-bg-white: #ffffff;
  --tp-bg-dark: #292524;
  --tp-bg-hero-scrim: rgba(0, 0, 0, 0.55);

  /* Text */
  --tp-text-primary: #1c1917;
  --tp-text-secondary: #57534e;
  --tp-text-light: #a8a29e;
  --tp-text-on-dark: #fafaf9;

  /* Borders */
  --tp-border: #e7e5e4;
  --tp-border-light: #f5f5f4;

  /* Shadows */
  --tp-shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
  --tp-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --tp-shadow-md: 0 4px 12px rgba(0, 0, 0, 0.10);
  --tp-shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
  --tp-shadow-hover: 0 8px 30px rgba(217,119,6,0.15);
  --tp-shadow-card: 0 2px 8px rgba(28,25,23,0.06);

  /* Radius */
  --tp-radius: 8px;
  --tp-radius-lg: 16px;
  --tp-radius-full: 9999px;

  /* Typography */
  --tp-font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --tp-font-body: 'Lora', Georgia, 'Times New Roman', serif;
  --tp-font-ui: 'Playfair Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Font Sizes — Fluid (Sprint 15 type scale) */
  --tp-fs-xs: clamp(0.65rem, 0.6rem + 0.25vw, 0.75rem);
  --tp-fs-sm: clamp(0.8rem, 0.75rem + 0.25vw, 0.875rem);
  --tp-fs-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --tp-fs-md: clamp(1.05rem, 1rem + 0.25vw, 1.125rem);
  --tp-fs-lg: clamp(1.15rem, 1.05rem + 0.5vw, 1.35rem);
  --tp-fs-xl: clamp(1.35rem, 1.15rem + 1vw, 1.75rem);
  --tp-fs-2xl: clamp(1.35rem, 1.1rem + 1.25vw, 2.25rem);
  --tp-fs-3xl: clamp(1.75rem, 1.35rem + 2vw, 3rem);
  --tp-fs-4xl: clamp(2rem, 1.5rem + 2.5vw, 3.5rem);
  --tp-fs-hero: clamp(2rem, 1.5rem + 3vw, 3.5rem);
  --tp-fs-card: clamp(0.95rem, 0.85rem + 0.5vw, 1.2rem);

  /* Spacing */
  --tp-container-max: 1280px;
  --tp-container-pad: 20px;
  --tp-section-gap: 3rem;
  --tp-card-gap: 1.5rem;

  /* Transitions */
  --tp-transition-fast: 0.2s ease;
  --tp-transition-base: 0.3s ease;
  --tp-transition-slow: 0.5s ease;

  /* Z-Index Scale */
  --tp-z-ticker: 10;
  --tp-z-header: 100;
  --tp-z-mobile-nav: 1000;
  --tp-z-search-overlay: 1100;
  --tp-z-back-to-top: 9998;
  --tp-z-progress-bar: 9999;
  --tp-z-skip-link: 100000;
}


/* ==========================================================================
   2. Reset & Base
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--tp-font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--tp-text-primary);
  background-color: var(--tp-bg-light);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--tp-color-primary-dark);
  text-decoration: none;
  transition: color var(--tp-transition-fast);
}

a:hover {
  color: var(--tp-color-primary);
}

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}


/* ==========================================================================
   3. Typography
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--tp-font-heading);
  font-weight: 700;
  line-height: 1.25;
  color: var(--tp-text-primary);
}

h1 { font-size: clamp(1.75rem, 3vw + 0.5rem, 3rem); }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.375rem; }
h4 { font-size: 1.125rem; }
h5 { font-size: 1rem; }
h6 { font-size: 0.875rem; }

p {
  margin-bottom: 1em;
}

p:last-child {
  margin-bottom: 0;
}

strong, b {
  font-weight: 600;
}

em, i {
  font-style: italic;
}

blockquote {
  border-left: 4px solid var(--tp-color-primary);
  background: var(--tp-bg-light);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  font-style: italic;
  border-radius: 0 var(--tp-radius) var(--tp-radius) 0;
}

blockquote p:last-child {
  margin-bottom: 0;
}

.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  position: absolute;
  height: 1px;
  width: 1px;
  overflow: hidden;
  word-wrap: normal;
}

.screen-reader-text:focus {
  clip: auto;
  height: auto;
  width: auto;
  z-index: var(--tp-z-skip-link);
}


/* ==========================================================================
   4. Layout & Container
   ========================================================================== */

.tp-container {
  max-width: var(--tp-container-max);
  margin: 0 auto;
  padding: 0 var(--tp-container-pad);
}

.tp-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
  align-items: start;
}

.tp-main {
  min-width: 0;
}

#main-content {
  outline: none;
}


/* ==========================================================================
   5. Skip Link
   ========================================================================== */

.tp-skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  z-index: var(--tp-z-skip-link);
  padding: 8px 16px;
  background: var(--tp-color-primary);
  color: #fff;
  font-family: var(--tp-font-ui);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 0 0 var(--tp-radius) 0;
}

.tp-skip-link:focus {
  top: 0;
  clip: auto;
  height: auto;
  width: auto;
}


/* ==========================================================================
   6. Reading Progress Bar
   ========================================================================== */

.tp-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  z-index: var(--tp-z-progress-bar);
  background: transparent;
  pointer-events: none;
}

.tp-progress-bar__fill {
  height: 100%;
  width: 0%;
  background: var(--tp-color-primary);
  transition: width 50ms linear;
}


/* ==========================================================================
   7. Top Bar & Ticker
   ========================================================================== */

.tp-topbar {
  background: var(--tp-bg-dark);
  color: var(--tp-text-on-dark);
  font-family: var(--tp-font-ui);
  font-size: 0.75rem;
  padding: 6px 0;
  position: relative;
  z-index: var(--tp-z-ticker);
}

.tp-topbar .tp-container {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.tp-topbar__date {
  white-space: nowrap;
  opacity: 0.7;
  flex-shrink: 0;
}

.tp-ticker {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  overflow: hidden;
  flex: 1;
  min-width: 0;
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 5%,
    black 95%,
    transparent 100%
  );
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 5%,
    black 95%,
    transparent 100%
  );
}

.tp-ticker__label {
  background: var(--tp-color-primary);
  color: var(--tp-bg-dark);
  padding: 2px 10px;
  border-radius: var(--tp-radius-full);
  font-weight: 700;
  font-size: 0.625rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
}

.tp-ticker__track {
  overflow: hidden;
  flex: 1;
  min-width: 0;
}

.tp-ticker__content {
  display: flex;
  gap: 2rem;
  white-space: nowrap;
  animation: tp-ticker-scroll 50s linear infinite;
}

.tp-ticker:hover .tp-ticker__content,
.tp-ticker:focus-within .tp-ticker__content {
  animation-play-state: paused;
}

.tp-ticker__item {
  color: var(--tp-text-on-dark);
  opacity: 0.85;
  transition: opacity var(--tp-transition-fast);
  white-space: nowrap;
}

.tp-ticker__item:hover {
  opacity: 1;
  color: var(--tp-color-primary-light);
}

.tp-ticker__item::after {
  content: '\2022';
  margin-left: 2rem;
  opacity: 0.3;
}

@keyframes tp-ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}


/* ==========================================================================
   8. Header & Navigation
   ========================================================================== */

.tp-header {
  background: var(--tp-bg-white);
  border-bottom: 1px solid var(--tp-border);
  padding: 0.75rem 0;
  position: sticky;
  top: 0;
  z-index: var(--tp-z-header);
  transition: box-shadow var(--tp-transition-base),
              padding var(--tp-transition-base),
              transform var(--tp-transition-base);
}

.tp-header--scrolled {
  box-shadow: var(--tp-shadow-md);
  padding: 0.5rem 0;
}

.tp-header--hidden {
  transform: translateY(-100%);
}

.tp-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

/* Logo */
.tp-logo a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.tp-logo img,
.tp-logo .custom-logo {
  height: 45px;
  max-width: 220px;
  width: auto;
  object-fit: contain;
}

.tp-logo__text {
  display: flex;
  flex-direction: column;
  text-decoration: none;
}

.tp-logo__name {
  font-family: var(--tp-font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--tp-text-primary);
  line-height: 1.2;
}

.tp-logo__tagline {
  font-family: var(--tp-font-ui);
  font-size: 0.7rem;
  color: var(--tp-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Navigation */
.tp-nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

.tp-nav__list {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.tp-nav__list li {
  position: relative;
}

.tp-nav__list a {
  font-family: var(--tp-font-ui);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--tp-text-primary);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  white-space: nowrap;
  padding: 0.5rem 0;
  position: relative;
  transition: color var(--tp-transition-fast);
}

.tp-nav__list a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--tp-color-primary);
  transition: width var(--tp-transition-base);
}

.tp-nav__list a:hover::after,
.tp-nav__list .current-menu-item > a::after {
  width: 100%;
}

.tp-nav__list a:hover {
  color: var(--tp-color-primary-dark);
}

.tp-nav__list .current-menu-item > a {
  color: var(--tp-color-primary-dark);
}

/* Dropdown submenus */
.tp-nav__list .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--tp-bg-white);
  border-radius: var(--tp-radius);
  box-shadow: var(--tp-shadow-lg);
  min-width: 200px;
  padding: 0.5rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity var(--tp-transition-fast),
              visibility var(--tp-transition-fast),
              transform var(--tp-transition-fast);
}

.tp-nav__list li:hover > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.tp-nav__list .sub-menu a {
  display: block;
  padding: 0.5rem 1.25rem;
  font-size: 0.8125rem;
  text-transform: none;
  letter-spacing: 0;
}

.tp-nav__list .sub-menu a::after {
  display: none;
}

.tp-nav__list .sub-menu a:hover {
  background: var(--tp-bg-light);
}

/* Hamburger */
.tp-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
}

.tp-hamburger__line {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--tp-text-primary);
  border-radius: 2px;
  transition: transform var(--tp-transition-base), opacity var(--tp-transition-fast);
}

.tp-hamburger[aria-expanded="true"] .tp-hamburger__line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.tp-hamburger[aria-expanded="true"] .tp-hamburger__line:nth-child(2) {
  opacity: 0;
}

.tp-hamburger[aria-expanded="true"] .tp-hamburger__line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Search Toggle */
.tp-search-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--tp-radius-full);
  transition: background var(--tp-transition-fast);
  flex-shrink: 0;
}

.tp-search-toggle:hover {
  background: var(--tp-bg-light);
}

.tp-search-toggle svg {
  width: 20px;
  height: 20px;
  stroke: var(--tp-text-primary);
  fill: none;
  stroke-width: 2;
}


/* ==========================================================================
   9. Search Overlay
   ========================================================================== */

.tp-search-overlay {
  position: fixed;
  inset: 0;
  z-index: var(--tp-z-search-overlay);
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--tp-transition-base), visibility var(--tp-transition-base);
}

.tp-search-overlay[aria-hidden="false"] {
  opacity: 1;
  visibility: visible;
}

.tp-search-overlay__inner {
  width: 90%;
  max-width: 640px;
  text-align: center;
}

.tp-search-overlay__close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  color: #fff;
  font-size: 2rem;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--tp-radius-full);
  transition: background var(--tp-transition-fast);
}

.tp-search-overlay__close:hover {
  background: rgba(255, 255, 255, 0.1);
}

.tp-search-overlay .search-form {
  display: flex;
  gap: 0;
}

.tp-search-overlay .search-field {
  flex: 1;
  padding: 1rem 1.5rem;
  font-size: 1.25rem;
  border: none;
  border-radius: var(--tp-radius) 0 0 var(--tp-radius);
  background: #fff;
  color: var(--tp-text-primary);
}

.tp-search-overlay .search-submit {
  padding: 1rem 2rem;
  background: var(--tp-color-primary);
  color: #fff;
  font-family: var(--tp-font-ui);
  font-weight: 700;
  font-size: 1rem;
  border: none;
  border-radius: 0 var(--tp-radius) var(--tp-radius) 0;
  cursor: pointer;
  transition: background var(--tp-transition-fast);
}

.tp-search-overlay .search-submit:hover {
  background: var(--tp-color-primary-dark);
}

.tp-search-overlay__hint {
  color: rgba(255, 255, 255, 0.5);
  font-family: var(--tp-font-ui);
  font-size: 0.8125rem;
  margin-top: 1rem;
}


/* ==========================================================================
   10. Mobile Navigation
   ========================================================================== */

.tp-mobile-nav {
  position: fixed;
  inset: 0;
  z-index: var(--tp-z-mobile-nav);
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--tp-transition-base), visibility var(--tp-transition-base);
}

.tp-mobile-nav[aria-hidden="false"] {
  opacity: 1;
  visibility: visible;
}

.tp-mobile-nav__panel {
  position: absolute;
  top: 0;
  right: 0;
  width: 300px;
  max-width: 85vw;
  height: 100%;
  background: var(--tp-bg-white);
  padding: 5rem 1.5rem 2rem;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform var(--tp-transition-base);
}

.tp-mobile-nav[aria-hidden="false"] .tp-mobile-nav__panel {
  transform: translateX(0);
}

.tp-mobile-nav__list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.tp-mobile-nav__list a {
  display: block;
  padding: 0.875rem 0;
  font-family: var(--tp-font-ui);
  font-size: 1rem;
  font-weight: 600;
  color: var(--tp-text-primary);
  border-bottom: 1px solid var(--tp-border-light);
  transition: color var(--tp-transition-fast), padding-left var(--tp-transition-fast);
}

.tp-mobile-nav__list a:hover {
  color: var(--tp-color-primary-dark);
  padding-left: 0.5rem;
}

.tp-mobile-nav__list .sub-menu {
  padding-left: 1rem;
}

.tp-mobile-nav__list .sub-menu a {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--tp-text-secondary);
}

body.tp-nav-open {
  overflow: hidden;
}


/* ==========================================================================
   11. Hero Carousel
   ========================================================================== */

.tp-hero {
  position: relative;
  height: 500px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--tp-color-primary-dark), var(--tp-color-secondary-dark), var(--tp-bg-dark));
}

.tp-hero__radio {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.tp-hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.tp-hero__radio:checked + .tp-hero__slide {
  opacity: 1;
}

.tp-hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tp-hero__radio:checked + .tp-hero__slide .tp-hero__image {
  animation: tp-ken-burns 15s ease-in-out infinite alternate;
}

@keyframes tp-ken-burns {
  from { transform: scale(1); }
  to   { transform: scale(1.04); }
}

.tp-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 0%, transparent 30%, rgba(0, 0, 0, 0.65) 100%);
}

.tp-hero__content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2.5rem;
  max-width: var(--tp-container-max);
  margin: 0 auto;
}

.tp-hero__cat {
  display: inline-block;
  background: var(--tp-color-primary);
  color: var(--tp-bg-dark);
  padding: 4px 12px;
  border-radius: var(--tp-radius-full);
  font-family: var(--tp-font-ui);
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.tp-hero__title {
  color: #fff;
  font-size: clamp(1.5rem, 3vw + 0.5rem, 2.5rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
  max-width: 700px;
}

.tp-hero__title a {
  color: inherit;
  text-decoration: none;
}

.tp-hero__title a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.tp-hero__excerpt {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1rem;
  line-height: 1.5;
  max-width: 550px;
  margin-bottom: 0.75rem;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tp-hero__meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
  font-family: var(--tp-font-ui);
  font-size: 0.8125rem;
}

.tp-hero__meta a {
  color: rgba(255, 255, 255, 0.85);
}

.tp-hero__meta a:hover {
  color: var(--tp-color-primary-light);
}

/* Hero dots navigation */
.tp-hero__dots {
  position: absolute;
  bottom: 1.25rem;
  right: 2.5rem;
  display: flex;
  gap: 8px;
}

.tp-hero__dot {
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: background var(--tp-transition-fast), transform var(--tp-transition-fast);
}

.tp-hero__radio:checked ~ .tp-hero__dots .tp-hero__dot {
  background: rgba(255, 255, 255, 0.4);
}

.tp-hero__dot:hover {
  background: rgba(255, 255, 255, 0.7);
}

/* Hero location pin overlay */
.tp-hero__pin {
  position: absolute;
  top: 1.25rem;
  left: 1.25rem;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: var(--tp-radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  box-shadow: var(--tp-shadow-sm);
}

.tp-hero__pin svg {
  width: 20px;
  height: 20px;
  fill: var(--tp-color-accent);
}

/* Hero placeholder for sites with no posts */
.tp-hero__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  background: linear-gradient(135deg, var(--tp-color-primary), var(--tp-color-primary-dark));
}

.tp-hero__placeholder-text {
  color: #fff;
  font-family: var(--tp-font-heading);
  font-size: 2rem;
  font-weight: 700;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Category-based gradient fallbacks */
.tp-hero__slide[data-category="travel"]    { background: linear-gradient(135deg, #f59e0b, #d97706); }
.tp-hero__slide[data-category="adventure"] { background: linear-gradient(135deg, #059669, #047857); }
.tp-hero__slide[data-category="tips"]      { background: linear-gradient(135deg, #3b82f6, #2563eb); }
.tp-hero__slide[data-category="culture"]   { background: linear-gradient(135deg, #8b5cf6, #7c3aed); }
.tp-hero__slide[data-category="budget"]    { background: linear-gradient(135deg, #ef4444, #dc2626); }
.tp-hero__slide[data-category="food"]      { background: linear-gradient(135deg, #f97316, #ea580c); }


/* ==========================================================================
   12. Section Headers
   ========================================================================== */

.tp-section {
  padding: var(--tp-section-gap) 0;
}

.tp-section--alt {
  background: var(--tp-bg-light);
}

.tp-section--dark {
  background: #292524;
  color: var(--tp-text-on-dark);
}

.tp-section__title {
  font-family: var(--tp-font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 1.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 3px solid var(--tp-color-primary);
  position: relative;
}

.tp-section__title::before {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--tp-color-secondary);
}

.tp-section--dark .tp-section__title {
  border-bottom-color: var(--tp-color-primary);
  color: var(--tp-text-on-dark);
}


/* ==========================================================================
   13. Card — Standard (card-article)
   ========================================================================== */

.tp-card {
  background: var(--tp-bg-white);
  border-radius: var(--tp-radius-lg);
  overflow: hidden;
  box-shadow: var(--tp-shadow-card);
  transition: transform var(--tp-transition-base), box-shadow var(--tp-transition-base);
}

.tp-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(217, 119, 6, 0.15);
}

.tp-card__image-link {
  display: block;
  overflow: hidden;
}

.tp-card__image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
}

.tp-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--tp-transition-slow);
}

.tp-card:hover .tp-card__image img {
  transform: scale(1.05);
}

.tp-card__content {
  padding: 1.25rem;
}

.tp-card__cat {
  display: inline-block;
  background: var(--tp-color-primary);
  color: var(--tp-bg-dark);
  padding: 3px 10px;
  border-radius: var(--tp-radius-full);
  font-family: var(--tp-font-ui);
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.625rem;
  transition: background var(--tp-transition-fast);
}

.tp-card__cat:hover {
  background: var(--tp-color-primary-dark);
}

.tp-card__title {
  font-family: var(--tp-font-heading);
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 0.5rem;
}

.tp-card__title a {
  color: var(--tp-text-primary);
  text-decoration: none;
  transition: color var(--tp-transition-fast);
}

.tp-card__title a:hover {
  color: var(--tp-color-primary-dark);
}

.tp-card__excerpt {
  font-size: 0.875rem;
  color: var(--tp-text-secondary);
  line-height: 1.55;
  margin-bottom: 0.75rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tp-card__meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--tp-font-ui);
  font-size: 0.75rem;
  color: var(--tp-text-light);
}

.tp-card__meta a {
  color: var(--tp-text-secondary);
}

.tp-card__meta a:hover {
  color: var(--tp-color-primary-dark);
}

.tp-card__sep {
  opacity: 0.4;
}

.tp-card__meta img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}

/* Card placeholder for missing images */
.tp-card__placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--tp-color-primary), var(--tp-color-primary-dark));
  display: flex;
  align-items: center;
  justify-content: center;
}

.tp-card__placeholder svg {
  width: 48px;
  height: 48px;
  opacity: 0.3;
  fill: #fff;
}

/* Grid layout */
.tp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--tp-card-gap);
}


/* ==========================================================================
   14. Card — Featured / Overlay (card-featured)
   ========================================================================== */

.tp-card--featured {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: var(--tp-radius-lg);
  overflow: hidden;
}

.tp-card--featured .tp-card__image {
  position: absolute;
  inset: 0;
  aspect-ratio: auto;
}

.tp-card--featured .tp-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tp-card--featured .tp-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 30%, rgba(0, 0, 0, 0.7) 100%);
}

.tp-card--featured .tp-card__content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  z-index: 1;
}

.tp-card--featured .tp-card__title {
  font-size: 1.25rem;
  color: #fff;
}

.tp-card--featured .tp-card__title a {
  color: #fff;
}

.tp-card--featured .tp-card__title a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.tp-card--featured .tp-card__meta {
  color: rgba(255, 255, 255, 0.7);
}

.tp-card--featured .tp-card__meta a {
  color: rgba(255, 255, 255, 0.85);
}

.tp-card--featured:hover .tp-card__image img {
  transform: scale(1.05);
}


/* ==========================================================================
   15. Card — Horizontal (card-horizontal)
   ========================================================================== */

.tp-card--horizontal {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 1rem;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--tp-border-light);
  align-items: start;
}

.tp-card--horizontal:hover {
  transform: none;
  box-shadow: none;
  background: var(--tp-bg-light);
  border-radius: var(--tp-radius);
  padding: 0.75rem;
  margin: 0 -0.75rem;
}

.tp-card--horizontal .tp-card__image {
  aspect-ratio: 1;
  border-radius: var(--tp-radius);
}

.tp-card--horizontal .tp-card__content {
  padding: 0;
}

.tp-card--horizontal .tp-card__title {
  font-size: 0.9375rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tp-card--horizontal .tp-card__index {
  font-family: var(--tp-font-heading);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--tp-color-primary);
  line-height: 1;
  margin-bottom: 0.25rem;
}


/* ==========================================================================
   16. Card — Search (card-search)
   ========================================================================== */

.tp-card--search {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 1.5rem;
  padding: 1.25rem;
  align-items: start;
}

.tp-card--search .tp-card__image {
  aspect-ratio: 4 / 3;
  border-radius: var(--tp-radius);
}

.tp-card--search .tp-card__content {
  padding: 0;
}

.tp-card--search .tp-card__excerpt {
  -webkit-line-clamp: 3;
}

.tp-card--search .tp-card__read-more {
  display: inline-block;
  font-family: var(--tp-font-ui);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--tp-color-primary-dark);
  margin-top: 0.5rem;
}

.tp-card--search .tp-card__read-more:hover {
  color: var(--tp-color-primary);
  text-decoration: underline;
}


/* ==========================================================================
   17. Homepage Sections
   ========================================================================== */

/* Section 3: Featured Destinations (2-col + trending sidebar) */
.tp-section--destinations {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2rem;
}

.tp-section--destinations .tp-grid {
  grid-template-columns: repeat(2, 1fr);
}

/* Trending sidebar */
.tp-trending {
  background: var(--tp-bg-light);
  border-radius: var(--tp-radius-lg);
  padding: 1.5rem;
}

.tp-trending__title {
  font-family: var(--tp-font-heading);
  font-size: 1rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--tp-color-primary);
}

/* Section 4: Travel Tips (horizontal cards) */
.tp-section--tips .tp-grid {
  grid-template-columns: repeat(2, 1fr);
}

.tp-section--tips .tp-card--horizontal {
  background: var(--tp-bg-white);
  border-radius: var(--tp-radius-lg);
  padding: 1rem;
  border-bottom: none;
  box-shadow: var(--tp-shadow-card);
  grid-template-columns: 140px 1fr;
}

.tp-section--tips .tp-card--horizontal:nth-child(even) {
  background: var(--tp-bg-light);
}

.tp-section--tips .tp-card--horizontal:hover {
  box-shadow: var(--tp-shadow-hover);
  margin: 0;
}

/* Section 5: Must-Visit (dark overlay cards) */
.tp-section--mustvisit .tp-grid {
  grid-template-columns: repeat(4, 1fr);
}

.tp-section--mustvisit .tp-card--featured {
  aspect-ratio: 3 / 4;
}

/* Location Card — Travel-specific */
.tp-card--location .tp-card__location {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-family: var(--tp-font-ui);
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--tp-color-accent);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.375rem;
}

.tp-card--location .tp-card__location svg {
  width: 12px;
  height: 12px;
  fill: var(--tp-color-accent);
  flex-shrink: 0;
}

.tp-card--location .tp-card__dates {
  font-family: var(--tp-font-ui);
  font-size: 0.6875rem;
  color: var(--tp-text-light);
  margin-top: 0.375rem;
}

.tp-card--location .tp-card__difficulty {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-family: var(--tp-font-ui);
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px 8px;
  border-radius: var(--tp-radius-full);
  margin-top: 0.5rem;
}

.tp-card__difficulty--easy {
  background: #dcfce7;
  color: #166534;
}

.tp-card__difficulty--moderate {
  background: #fef3c7;
  color: #92400e;
}

.tp-card__difficulty--hard {
  background: #fee2e2;
  color: #991b1b;
}

/* Location pin meta icon on cards */
.tp-card__pin-icon {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: var(--tp-radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  box-shadow: var(--tp-shadow-sm);
}

.tp-card__pin-icon svg {
  width: 16px;
  height: 16px;
  fill: var(--tp-color-accent);
}

/* Itinerary Timeline */
.tp-itinerary {
  margin: 2rem 0;
  position: relative;
  padding-left: 2.5rem;
}

.tp-itinerary::before {
  content: '';
  position: absolute;
  left: 11px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--tp-border);
}

.tp-itinerary__item {
  position: relative;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--tp-border-light);
}

.tp-itinerary__item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.tp-itinerary__dot {
  position: absolute;
  left: -2.5rem;
  top: 0.25rem;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--tp-color-primary);
  border: 3px solid var(--tp-bg-light);
  z-index: 1;
}

.tp-itinerary__day {
  font-family: var(--tp-font-ui);
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--tp-color-primary);
  margin-bottom: 0.375rem;
}

.tp-itinerary__title {
  font-family: var(--tp-font-heading);
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.tp-itinerary__desc {
  font-size: 0.9375rem;
  color: var(--tp-text-secondary);
  line-height: 1.6;
}

.tp-itinerary__meta {
  display: flex;
  gap: 1rem;
  margin-top: 0.75rem;
  font-family: var(--tp-font-ui);
  font-size: 0.75rem;
  color: var(--tp-text-light);
}

.tp-itinerary__meta svg {
  width: 14px;
  height: 14px;
  margin-right: 0.25rem;
  vertical-align: middle;
  fill: currentColor;
}

/* Map Placeholder */
.tp-map-placeholder {
  background: var(--tp-bg-light);
  border: 2px dashed var(--tp-border);
  border-radius: var(--tp-radius-lg);
  padding: 3rem;
  text-align: center;
  margin: 2rem 0;
}

.tp-map-placeholder__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  opacity: 0.3;
}

.tp-map-placeholder__text {
  font-family: var(--tp-font-ui);
  font-size: 0.875rem;
  color: var(--tp-text-light);
}


/* ==========================================================================
   18. Single Post — Header & Featured Image
   ========================================================================== */

.tp-single {
  padding-top: 2rem;
  background: var(--tp-bg-light);
}

.tp-single__header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 2rem;
}

.tp-single__cat {
  display: inline-block;
  background: var(--tp-color-primary);
  color: var(--tp-bg-dark);
  padding: 4px 14px;
  border-radius: var(--tp-radius-full);
  font-family: var(--tp-font-ui);
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.tp-single__title {
  font-size: clamp(1.75rem, 3vw + 0.5rem, 2.75rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.25rem;
}

.tp-single__meta {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-family: var(--tp-font-ui);
  font-size: 0.8125rem;
  color: var(--tp-text-secondary);
}

.tp-single__meta-author {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.tp-single__meta-author img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--tp-color-primary);
}

.tp-single__meta a {
  color: var(--tp-text-primary);
  font-weight: 600;
}

.tp-single__meta a:hover {
  color: var(--tp-color-primary-dark);
}

.tp-single__meta-sep {
  opacity: 0.3;
}

/* Featured Image — large rounded corners */
.tp-single__featured {
  margin-bottom: 2rem;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
}

.tp-single__featured img {
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 1;
  object-fit: cover;
}

.tp-single__featured figcaption {
  font-family: var(--tp-font-ui);
  font-size: 0.75rem;
  color: var(--tp-text-light);
  text-align: center;
  padding: 0.5rem 0;
}

/* Featured image placeholder */
.tp-single__featured-placeholder {
  aspect-ratio: 2 / 1;
  background: linear-gradient(135deg, var(--tp-color-primary), var(--tp-color-secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--tp-radius-lg);
  margin-bottom: 2rem;
}

.tp-single__featured-placeholder svg {
  width: 64px;
  height: 64px;
  fill: rgba(255, 255, 255, 0.3);
}


/* ==========================================================================
   19. Single Post — TOC
   ========================================================================== */

.tp-toc {
  background: var(--tp-bg-light);
  border: 1px solid var(--tp-border);
  border-radius: var(--tp-radius-lg);
  padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
}

.tp-toc__toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  font-family: var(--tp-font-ui);
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--tp-text-primary);
  padding: 0;
}

.tp-toc__toggle svg {
  width: 16px;
  height: 16px;
  transition: transform var(--tp-transition-fast);
}

.tp-toc__toggle[aria-expanded="false"] svg {
  transform: rotate(-90deg);
}

.tp-toc__body {
  margin-top: 1rem;
}

.tp-toc__list {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.tp-toc__link {
  display: block;
  padding: 0.375rem 0.75rem;
  font-family: var(--tp-font-ui);
  font-size: 0.8125rem;
  color: var(--tp-text-secondary);
  border-left: 2px solid transparent;
  border-radius: 0 var(--tp-radius) var(--tp-radius) 0;
  transition: all var(--tp-transition-fast);
}

.tp-toc__link:hover {
  color: var(--tp-color-primary-dark);
  background: var(--tp-bg-warm);
}

.tp-toc__link.active {
  color: var(--tp-color-primary-dark);
  border-left-color: var(--tp-color-primary);
  background: var(--tp-bg-warm);
  font-weight: 600;
}

.tp-toc__link--h3 {
  padding-left: 1.5rem;
  font-size: 0.75rem;
}


/* ==========================================================================
   20. Single Post — Content
   ========================================================================== */

.tp-single__body,
.tp-article-content {
  max-width: 760px;
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--tp-text-primary);
}

/* Drop Cap */
.tp-article-content > p:first-of-type::first-letter {
  float: left;
  font-family: var(--tp-font-heading);
  font-size: 3.5em;
  font-weight: 700;
  line-height: 0.85;
  padding-right: 0.1em;
  padding-top: 0.05em;
  color: var(--tp-color-primary);
}

.tp-article-content h2 {
  font-size: 1.75rem;
  font-weight: 700;
  margin: 2.5rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--tp-color-primary);
}

.tp-article-content h3 {
  font-size: 1.375rem;
  font-weight: 600;
  margin: 2rem 0 0.75rem;
}

.tp-article-content h4 {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 1.5rem 0 0.5rem;
}

.tp-article-content p {
  margin-bottom: 1.5rem;
}

.tp-article-content a {
  color: var(--tp-color-primary-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
}

.tp-article-content a:hover {
  color: var(--tp-color-primary);
  text-decoration-thickness: 2px;
}

.tp-article-content ul,
.tp-article-content ol {
  margin: 1rem 0 1.5rem 1.5rem;
}

.tp-article-content ul {
  list-style: none;
}

.tp-article-content ul li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.5rem;
}

.tp-article-content ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 6px;
  height: 6px;
  background: var(--tp-color-primary);
  border-radius: 50%;
}

.tp-article-content ol {
  list-style: decimal;
}

.tp-article-content ol li {
  margin-bottom: 0.5rem;
  padding-left: 0.25rem;
}

.tp-article-content ol li::marker {
  color: var(--tp-color-primary);
  font-weight: 600;
}

.tp-article-content blockquote {
  border-left: 4px solid var(--tp-color-primary);
  background: var(--tp-bg-light);
  padding: 1.25rem 1.75rem;
  margin: 1.5rem 0;
  font-style: italic;
  border-radius: 0 var(--tp-radius) var(--tp-radius) 0;
}

.tp-article-content figure {
  margin: 2rem 0;
}

.tp-article-content figure img {
  border-radius: var(--tp-radius);
}

.tp-article-content figcaption {
  font-family: var(--tp-font-ui);
  font-size: 0.8125rem;
  color: var(--tp-text-light);
  text-align: center;
  margin-top: 0.5rem;
}

.tp-article-content pre {
  background: #1e293b;
  color: #e2e8f0;
  padding: 1.25rem;
  border-radius: var(--tp-radius);
  overflow-x: auto;
  font-family: 'Fira Code', 'Consolas', monospace;
  font-size: 0.875rem;
  line-height: 1.6;
  margin: 1.5rem 0;
}

.tp-article-content code {
  background: var(--tp-bg-light);
  padding: 0.15em 0.4em;
  border-radius: 4px;
  font-family: 'Fira Code', 'Consolas', monospace;
  font-size: 0.875em;
}

.tp-article-content pre code {
  background: transparent;
  padding: 0;
}

.tp-article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}

.tp-article-content th,
.tp-article-content td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--tp-border);
}

.tp-article-content th {
  font-family: var(--tp-font-ui);
  font-weight: 600;
  background: var(--tp-bg-light);
}

/* Photo Gallery */
.tp-gallery {
  margin: 2rem 0;
}

.tp-gallery__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.75rem;
}

.tp-gallery__item {
  position: relative;
  overflow: hidden;
  border-radius: var(--tp-radius);
  aspect-ratio: 4 / 3;
  cursor: pointer;
}

.tp-gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--tp-transition-slow);
}

.tp-gallery__item:hover img {
  transform: scale(1.08);
}

.tp-gallery__item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  transition: background var(--tp-transition-base);
}

.tp-gallery__item:hover::after {
  background: rgba(0, 0, 0, 0.15);
}

.tp-gallery__item--wide {
  grid-column: span 2;
}

.tp-gallery__item--tall {
  grid-row: span 2;
}

.tp-gallery__caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.75rem 1rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  color: #fff;
  font-family: var(--tp-font-ui);
  font-size: 0.75rem;
  z-index: 1;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity var(--tp-transition-base), transform var(--tp-transition-base);
}

.tp-gallery__item:hover .tp-gallery__caption {
  opacity: 1;
  transform: translateY(0);
}

/* Lightbox placeholder hooks */
.tp-lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--tp-transition-base), visibility var(--tp-transition-base);
}

.tp-lightbox-overlay.active {
  opacity: 1;
  visibility: visible;
}

.tp-lightbox-overlay img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--tp-radius);
}

.tp-lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 2rem;
  border-radius: var(--tp-radius-full);
  transition: background var(--tp-transition-fast);
}

.tp-lightbox-close:hover {
  background: rgba(255, 255, 255, 0.1);
}

.tp-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.5rem;
  border-radius: var(--tp-radius-full);
  background: rgba(255, 255, 255, 0.1);
  transition: background var(--tp-transition-fast);
}

.tp-lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.2);
}

.tp-lightbox-nav--prev { left: 1.5rem; }
.tp-lightbox-nav--next { right: 1.5rem; }


/* Tags */
.tp-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 2rem 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--tp-border);
}

.tp-tags a {
  display: inline-block;
  padding: 4px 12px;
  border: 1px solid var(--tp-color-primary);
  border-radius: var(--tp-radius-full);
  font-family: var(--tp-font-ui);
  font-size: 0.75rem;
  color: var(--tp-color-primary-dark);
  transition: all var(--tp-transition-fast);
}

.tp-tags a:hover {
  background: var(--tp-color-primary);
  color: var(--tp-bg-dark);
}


/* ==========================================================================
   21. Single Post — Social Share
   ========================================================================== */

/* Floating sidebar (desktop) */
.tp-share-sidebar {
  position: fixed;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 50;
}

.tp-share-sidebar__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--tp-radius-full);
  background: var(--tp-bg-white);
  box-shadow: var(--tp-shadow-sm);
  transition: all var(--tp-transition-fast);
}

.tp-share-sidebar__btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--tp-shadow-md);
}

.tp-share-sidebar__btn svg {
  width: 18px;
  height: 18px;
}

.tp-share-sidebar__btn--facebook:hover { background: #1877f2; color: #fff; }
.tp-share-sidebar__btn--twitter:hover  { background: #1da1f2; color: #fff; }
.tp-share-sidebar__btn--linkedin:hover { background: #0a66c2; color: #fff; }
.tp-share-sidebar__btn--pinterest:hover { background: #e60023; color: #fff; }
.tp-share-sidebar__btn--whatsapp:hover { background: #25d366; color: #fff; }

.tp-share-sidebar__btn:hover svg {
  fill: #fff;
}

/* Bottom bar (inline, below article) */
.tp-share-bottom {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--tp-border);
  border-bottom: 1px solid var(--tp-border);
  margin: 1.5rem 0;
}

.tp-share-bottom__label {
  font-family: var(--tp-font-ui);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--tp-text-secondary);
  margin-right: 0.5rem;
}

.tp-share-bottom__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--tp-radius-full);
  background: var(--tp-bg-light);
  transition: all var(--tp-transition-fast);
}

.tp-share-bottom__btn:hover {
  transform: translateY(-3px);
}

.tp-share-bottom__btn svg {
  width: 18px;
  height: 18px;
}

.tp-share-bottom__btn--facebook:hover { background: #1877f2; color: #fff; }
.tp-share-bottom__btn--twitter:hover  { background: #1da1f2; color: #fff; }
.tp-share-bottom__btn--linkedin:hover { background: #0a66c2; color: #fff; }
.tp-share-bottom__btn--pinterest:hover { background: #e60023; color: #fff; }
.tp-share-bottom__btn--whatsapp:hover { background: #25d366; color: #fff; }
.tp-share-bottom__btn--copy:hover     { background: var(--tp-color-secondary); color: #fff; }

.tp-share-bottom__btn:hover svg {
  fill: #fff;
}


/* ==========================================================================
   22. Single Post — Author Bio
   ========================================================================== */

.tp-author-bio {
  display: flex;
  gap: 1.5rem;
  padding: 2rem;
  background: var(--tp-bg-light);
  border-radius: var(--tp-radius-lg);
  margin: 2rem 0;
  border-left: 4px solid var(--tp-color-primary);
}

.tp-author-bio__avatar {
  flex-shrink: 0;
}

.tp-author-bio__avatar img {
  width: 120px;
  height: 120px;
  border-radius: var(--tp-radius-full);
  object-fit: cover;
  border: 3px solid var(--tp-color-primary);
}

.tp-author-bio__content {
  flex: 1;
  min-width: 0;
}

.tp-author-bio__label {
  font-family: var(--tp-font-ui);
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--tp-color-primary-dark);
  margin-bottom: 0.25rem;
}

.tp-author-bio__name {
  font-family: var(--tp-font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.tp-author-bio__name a {
  color: var(--tp-text-primary);
}

.tp-author-bio__name a:hover {
  color: var(--tp-color-primary-dark);
}

.tp-author-bio__desc {
  font-size: 0.9375rem;
  color: var(--tp-text-secondary);
  line-height: 1.6;
  margin-bottom: 0.75rem;
}

.tp-author-bio__social {
  display: flex;
  gap: 0.5rem;
}

.tp-author-bio__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--tp-radius-full);
  background: var(--tp-bg-white);
  transition: all var(--tp-transition-fast);
}

.tp-author-bio__social a:hover {
  background: var(--tp-color-primary);
  color: #fff;
}

.tp-author-bio__social svg {
  width: 16px;
  height: 16px;
}

.tp-author-bio__all-posts {
  display: inline-block;
  font-family: var(--tp-font-ui);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--tp-color-primary-dark);
  margin-top: 0.5rem;
}

.tp-author-bio__all-posts:hover {
  text-decoration: underline;
}


/* ==========================================================================
   23. Single Post — Post Navigation
   ========================================================================== */

.tp-post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 2rem 0;
}

.tp-post-nav__item {
  background: var(--tp-bg-light);
  border-radius: var(--tp-radius-lg);
  padding: 1.25rem;
  transition: all var(--tp-transition-base);
  border: 1px solid transparent;
}

.tp-post-nav__item:hover {
  box-shadow: var(--tp-shadow-md);
  border-color: var(--tp-color-primary);
}

.tp-post-nav__item--next {
  text-align: right;
}

.tp-post-nav__label {
  font-family: var(--tp-font-ui);
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--tp-text-light);
  margin-bottom: 0.375rem;
}

.tp-post-nav__title {
  font-family: var(--tp-font-heading);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--tp-text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tp-post-nav__title:hover {
  color: var(--tp-color-primary-dark);
}


/* ==========================================================================
   24. Single Post — Related Posts
   ========================================================================== */

.tp-related {
  margin: 2.5rem 0;
}

.tp-related .tp-section__title {
  font-size: 1.125rem;
}

.tp-related .tp-grid {
  grid-template-columns: repeat(3, 1fr);
}


/* ==========================================================================
   25. Single Post — Comments
   ========================================================================== */

.tp-comments {
  margin: 2.5rem 0;
}

.tp-comments__title {
  font-family: var(--tp-font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--tp-border);
}

.tp-comments .comment-list {
  margin-bottom: 2rem;
}

.tp-comments .comment {
  padding: 1.25rem;
  border-bottom: 1px solid var(--tp-border-light);
}

.tp-comments .comment .comment-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.tp-comments .comment .comment-author .avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.tp-comments .comment .comment-author .fn {
  font-family: var(--tp-font-ui);
  font-weight: 600;
  font-size: 0.9375rem;
}

.tp-comments .comment .comment-metadata {
  font-family: var(--tp-font-ui);
  font-size: 0.75rem;
  color: var(--tp-text-light);
}

.tp-comments .comment .comment-content {
  font-size: 0.9375rem;
  line-height: 1.65;
  margin: 0.75rem 0;
}

.tp-comments .children {
  margin-left: 2rem;
  border-left: 2px solid var(--tp-border-light);
}

/* Comment form */
.tp-comments .comment-respond {
  background: var(--tp-bg-light);
  padding: 2rem;
  border-radius: var(--tp-radius-lg);
}

.tp-comments .comment-form label {
  display: block;
  font-family: var(--tp-font-ui);
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 0.375rem;
  color: var(--tp-text-primary);
}

.tp-comments .comment-form input[type="text"],
.tp-comments .comment-form input[type="email"],
.tp-comments .comment-form input[type="url"],
.tp-comments .comment-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--tp-border);
  border-radius: var(--tp-radius);
  background: var(--tp-bg-white);
  font-size: 0.9375rem;
  transition: border-color var(--tp-transition-fast);
  margin-bottom: 1rem;
}

.tp-comments .comment-form input:focus,
.tp-comments .comment-form textarea:focus {
  border-color: var(--tp-color-primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
}

.tp-comments .comment-form .submit {
  background: var(--tp-color-primary);
  color: var(--tp-bg-dark);
  padding: 0.75rem 2rem;
  border: none;
  border-radius: var(--tp-radius);
  font-family: var(--tp-font-ui);
  font-weight: 700;
  font-size: 0.9375rem;
  cursor: pointer;
  transition: background var(--tp-transition-fast), transform var(--tp-transition-fast);
}

.tp-comments .comment-form .submit:hover {
  background: var(--tp-color-primary-dark);
  transform: translateY(-1px);
}

.tp-comments .comment-form .submit:active {
  transform: scale(0.97);
}


/* ==========================================================================
   26. Sidebar & Widgets
   ========================================================================== */

.tp-sidebar {
  position: sticky;
  top: 90px;
}

.tp-widget {
  background: var(--tp-bg-white);
  border: 1px solid var(--tp-border);
  border-radius: var(--tp-radius-lg);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}

.tp-widget__title,
.tp-sidebar .widget-title,
.tp-sidebar h2 {
  font-family: var(--tp-font-heading);
  font-size: 0.9375rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--tp-color-primary);
}

/* Search widget */
.tp-sidebar .search-form {
  display: flex;
}

.tp-sidebar .search-field {
  flex: 1;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--tp-border);
  border-right: none;
  border-radius: var(--tp-radius) 0 0 var(--tp-radius);
  font-size: 0.875rem;
}

.tp-sidebar .search-submit {
  padding: 0.5rem 1rem;
  background: var(--tp-color-primary);
  color: #fff;
  border: none;
  border-radius: 0 var(--tp-radius) var(--tp-radius) 0;
  font-size: 0.875rem;
  cursor: pointer;
}

/* Category widget */
.tp-sidebar .widget_categories ul {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.tp-sidebar .widget_categories a {
  display: flex;
  justify-content: space-between;
  padding: 0.375rem 0;
  font-size: 0.875rem;
  color: var(--tp-text-secondary);
  border-bottom: 1px solid var(--tp-border-light);
  transition: all var(--tp-transition-fast);
}

.tp-sidebar .widget_categories a:hover {
  color: var(--tp-color-primary-dark);
  padding-left: 0.5rem;
}

/* Recent posts widget */
.tp-sidebar .widget_recent_entries li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--tp-border-light);
}

.tp-sidebar .widget_recent_entries a {
  font-size: 0.875rem;
  color: var(--tp-text-primary);
  font-weight: 500;
  line-height: 1.4;
}

.tp-sidebar .widget_recent_entries a:hover {
  color: var(--tp-color-primary-dark);
}

.tp-sidebar .widget_recent_entries .post-date {
  display: block;
  font-family: var(--tp-font-ui);
  font-size: 0.75rem;
  color: var(--tp-text-light);
  margin-top: 0.125rem;
}

/* Tag cloud widget */
.tp-sidebar .tagcloud a {
  display: inline-block;
  padding: 3px 10px;
  border: 1px solid var(--tp-border);
  border-radius: var(--tp-radius-full);
  font-size: 0.75rem !important;
  margin: 2px;
  color: var(--tp-text-secondary);
  transition: all var(--tp-transition-fast);
}

.tp-sidebar .tagcloud a:hover {
  background: var(--tp-color-primary);
  border-color: var(--tp-color-primary);
  color: var(--tp-bg-dark);
}

/* Ad zone containers */
.ad-zone {
  min-height: 50px;
  margin-bottom: 1.5rem;
}

.tp-sidebar .ad-zone {
  background: var(--tp-bg-light);
  border-radius: var(--tp-radius);
  display: flex;
  align-items: center;
  justify-content: center;
}

.tp-sidebar .ad-sticky {
  position: sticky;
  top: 90px;
}


/* ==========================================================================
   27. Archive & Search Pages
   ========================================================================== */

.tp-archive__header,
.tp-search-results__header {
  background: var(--tp-bg-light);
  padding: 2.5rem 0;
  margin-bottom: 2rem;
  text-align: center;
}

.tp-archive__title,
.tp-search-results__title {
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.tp-archive__desc,
.tp-search-results__desc {
  font-size: 1rem;
  color: var(--tp-text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

.tp-search-results__query {
  color: var(--tp-color-primary-dark);
  font-weight: 600;
}

/* Nothing found */
.tp-nothing-found {
  text-align: center;
  padding: 4rem 2rem;
  max-width: 500px;
  margin: 0 auto;
}

.tp-nothing-found__title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.tp-nothing-found__text {
  color: var(--tp-text-secondary);
  margin-bottom: 1.5rem;
}

.tp-nothing-found .search-form {
  display: flex;
  max-width: 400px;
  margin: 0 auto;
}


/* ==========================================================================
   28. 404 Page
   ========================================================================== */

.tp-404 {
  text-align: center;
  padding: 4rem 2rem;
}

.tp-404__code {
  font-family: var(--tp-font-heading);
  font-size: 8rem;
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(135deg, var(--tp-color-primary), var(--tp-color-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
}

.tp-404__title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.tp-404__text {
  font-size: 1.125rem;
  color: var(--tp-text-secondary);
  margin-bottom: 2rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.tp-404 .search-form {
  display: flex;
  max-width: 480px;
  margin: 0 auto 2rem;
}

.tp-404__home {
  display: inline-block;
  padding: 0.75rem 2rem;
  background: var(--tp-color-primary);
  color: var(--tp-bg-dark);
  font-family: var(--tp-font-ui);
  font-weight: 700;
  border-radius: var(--tp-radius);
  transition: background var(--tp-transition-fast), transform var(--tp-transition-fast);
}

.tp-404__home:hover {
  background: var(--tp-color-primary-dark);
  color: var(--tp-bg-dark);
  transform: translateY(-2px);
}

.tp-404__suggestions {
  margin-top: 3rem;
}

.tp-404__suggestions .tp-section__title {
  text-align: center;
}

.tp-404__suggestions .tp-section__title::before {
  left: 50%;
  transform: translateX(-50%);
}

.tp-404__suggestions .tp-grid {
  max-width: 900px;
  margin: 0 auto;
}


/* ==========================================================================
   29. Page Template
   ========================================================================== */

.tp-page {
  max-width: 860px;
  margin: 0 auto;
  padding: 2rem var(--tp-container-pad);
}

.tp-page__header {
  text-align: center;
  margin-bottom: 2rem;
}

.tp-page__title {
  font-size: 2rem;
  font-weight: 800;
}

.tp-page__body {
  font-size: 1.0625rem;
  line-height: 1.75;
}

.tp-page__body h2 {
  margin: 2rem 0 1rem;
}

.tp-page__body h3 {
  margin: 1.5rem 0 0.75rem;
}

.tp-page__body p {
  margin-bottom: 1.25rem;
}

.tp-page__body ul,
.tp-page__body ol {
  margin: 1rem 0 1.25rem 1.5rem;
}

.tp-page__body ul { list-style: disc; }
.tp-page__body ol { list-style: decimal; }

.tp-page__body li {
  margin-bottom: 0.375rem;
}


/* ==========================================================================
   30. Breadcrumbs
   ========================================================================== */

.tp-breadcrumbs {
  font-family: var(--tp-font-ui);
  font-size: 0.8125rem;
  color: var(--tp-text-light);
  margin-bottom: 1.5rem;
  padding: 0.75rem 0;
}

.tp-breadcrumbs a {
  color: var(--tp-text-secondary);
}

.tp-breadcrumbs a:hover {
  color: var(--tp-color-primary-dark);
}

.tp-breadcrumbs__sep {
  margin: 0 0.5rem;
  opacity: 0.4;
}

.tp-breadcrumbs__current {
  color: var(--tp-text-primary);
  font-weight: 500;
}


/* ==========================================================================
   31. Pagination
   ========================================================================== */

.tp-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  margin: 2.5rem 0;
}

.tp-pagination .page-numbers {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 0.5rem;
  border-radius: var(--tp-radius);
  font-family: var(--tp-font-ui);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--tp-text-secondary);
  background: var(--tp-bg-light);
  transition: all var(--tp-transition-fast);
}

.tp-pagination .page-numbers:hover {
  background: var(--tp-color-primary);
  color: var(--tp-bg-dark);
}

.tp-pagination .page-numbers.current {
  background: var(--tp-color-primary);
  color: var(--tp-bg-dark);
}

.tp-pagination .page-numbers.dots {
  background: transparent;
  pointer-events: none;
}

.tp-pagination .prev,
.tp-pagination .next {
  font-weight: 700;
}


/* ==========================================================================
   32. Back-to-Top Button
   ========================================================================== */

.tp-back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  border-radius: var(--tp-radius-full);
  background: var(--tp-color-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--tp-transition-base), transform var(--tp-transition-base),
              background var(--tp-transition-fast);
  z-index: var(--tp-z-back-to-top);
  pointer-events: none;
  box-shadow: var(--tp-shadow-md);
}

.tp-back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.tp-back-to-top:hover {
  background: var(--tp-color-primary-dark);
  transform: translateY(-2px);
}

.tp-back-to-top svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}


/* ==========================================================================
   33. Footer
   ========================================================================== */

.tp-footer {
  background: var(--tp-bg-dark);
  color: var(--tp-text-on-dark);
  margin-top: var(--tp-section-gap);
}

.tp-footer__grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 2.5rem;
  padding: 3rem 0;
}

.tp-footer__col {
  min-width: 0;
}

.tp-footer__title {
  font-family: var(--tp-font-heading);
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--tp-text-on-dark);
  margin-bottom: 1.25rem;
  position: relative;
  padding-bottom: 0.625rem;
}

.tp-footer__title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--tp-color-primary);
}

/* Footer logo */
.tp-footer__logo {
  margin-bottom: 1rem;
}

.tp-footer__logo img {
  height: 40px;
  width: auto;
  filter: brightness(0) invert(1);
}

.tp-footer__about {
  font-size: 0.875rem;
  color: rgba(250, 250, 249, 0.7);
  line-height: 1.65;
  margin-bottom: 1rem;
}

/* Footer social icons */
.tp-footer__social {
  display: flex;
  gap: 0.5rem;
}

.tp-footer__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--tp-radius-full);
  background: rgba(255, 255, 255, 0.1);
  color: var(--tp-text-on-dark);
  transition: all var(--tp-transition-fast);
}

.tp-footer__social a:hover {
  background: var(--tp-color-primary);
  color: var(--tp-bg-dark);
  transform: translateY(-2px);
}

.tp-footer__social svg {
  width: 16px;
  height: 16px;
}

/* Footer categories / destinations */
.tp-footer ul {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.tp-footer ul a {
  font-size: 0.875rem;
  color: rgba(250, 250, 249, 0.65);
  transition: all var(--tp-transition-fast);
}

.tp-footer ul a:hover {
  color: var(--tp-color-primary-light);
  padding-left: 0.375rem;
}

/* Footer recent posts */
.tp-footer__recent-post {
  display: flex;
  gap: 0.75rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.tp-footer__recent-post img {
  width: 60px;
  height: 60px;
  border-radius: var(--tp-radius);
  object-fit: cover;
  flex-shrink: 0;
}

.tp-footer__recent-post-title {
  font-size: 0.8125rem;
  font-weight: 500;
  color: rgba(250, 250, 249, 0.8);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tp-footer__recent-post-title:hover {
  color: var(--tp-color-primary-light);
}

.tp-footer__recent-post-date {
  font-family: var(--tp-font-ui);
  font-size: 0.6875rem;
  color: rgba(250, 250, 249, 0.4);
  margin-top: 0.25rem;
}

/* Newsletter placeholder text */
.tp-footer__newsletter-text {
  font-size: 0.875rem;
  color: rgba(250, 250, 249, 0.7);
  line-height: 1.55;
  margin-bottom: 0.75rem;
}

.tp-footer__newsletter-cta {
  font-size: 0.8125rem;
  color: rgba(250, 250, 249, 0.5);
  font-style: italic;
}

/* Footer bottom / copyright bar */
.tp-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.25rem 0;
  background: rgba(0, 0, 0, 0.2);
}

.tp-footer__bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.tp-footer__copyright {
  font-family: var(--tp-font-ui);
  font-size: 0.8125rem;
  color: rgba(250, 250, 249, 0.5);
}

.tp-footer__legal-list {
  display: flex;
  gap: 1.5rem;
}

.tp-footer__legal-list a {
  font-family: var(--tp-font-ui);
  font-size: 0.75rem;
  color: rgba(250, 250, 249, 0.5);
}

.tp-footer__legal-list a:hover {
  color: var(--tp-color-primary-light);
}


/* ==========================================================================
   34. Ad Zones
   ========================================================================== */

.ad-zone {
  text-align: center;
}

.ad-mobile-only {
  display: none;
}


/* ==========================================================================
   35. WordPress Core Overrides
   ========================================================================== */

.wp-block-image { margin: 1.5rem 0; }
.wp-block-image img { border-radius: var(--tp-radius); }
.wp-block-image figcaption {
  font-family: var(--tp-font-ui);
  font-size: 0.8125rem;
  color: var(--tp-text-light);
  text-align: center;
  margin-top: 0.5rem;
}

.wp-block-gallery { gap: 0.5rem; }
.wp-block-gallery .wp-block-image { margin: 0; }

.wp-block-quote {
  border-left: 4px solid var(--tp-color-primary);
  background: var(--tp-bg-light);
  padding: 1.25rem 1.75rem;
  border-radius: 0 var(--tp-radius) var(--tp-radius) 0;
}

.wp-block-separator {
  border: none;
  border-top: 2px solid var(--tp-border);
  margin: 2rem 0;
}

.wp-block-table table { width: 100%; border-collapse: collapse; }
.wp-block-table th,
.wp-block-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--tp-border);
}
.wp-block-table th {
  font-family: var(--tp-font-ui);
  font-weight: 600;
  background: var(--tp-bg-light);
}

.alignleft { float: left; margin: 0.5rem 1.5rem 1rem 0; }
.alignright { float: right; margin: 0.5rem 0 1rem 1.5rem; }
.aligncenter { margin: 1.5rem auto; display: block; }

/* Sticky post indicator */
.sticky .tp-card::before {
  content: 'FEATURED';
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--tp-color-primary);
  color: var(--tp-bg-dark);
  padding: 3px 10px;
  border-radius: var(--tp-radius-full);
  font-family: var(--tp-font-ui);
  font-size: 0.5625rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  z-index: 2;
}


/* ==========================================================================
   36. Focus & Accessibility
   ========================================================================== */

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[role="button"]:focus-visible,
.tp-hero__dot:focus-visible,
.tp-pagination .page-numbers:focus-visible,
.tp-share-sidebar__btn:focus-visible,
.tp-share-bottom__btn:focus-visible {
  outline: 2px solid var(--tp-color-primary);
  outline-offset: 2px;
}

/* Ensure focus visible on dark backgrounds */
.tp-topbar a:focus-visible,
.tp-footer a:focus-visible,
.tp-hero__title a:focus-visible,
.tp-section--dark a:focus-visible {
  outline-color: var(--tp-color-primary-light);
}


/* ==========================================================================
   37. Reduced Motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .tp-ticker__content {
    animation: none;
    overflow-x: auto;
  }

  .tp-card:hover {
    transform: none;
  }

  .tp-card:hover .tp-card__image img {
    transform: none;
  }

  .tp-hero__radio:checked + .tp-hero__slide .tp-hero__image {
    animation: none;
  }

  .tp-header {
    transition: none;
  }

  .tp-back-to-top {
    transition: opacity 0.01ms;
  }
}


/* ==========================================================================
   38. High Contrast
   ========================================================================== */

@media (prefers-contrast: high) {
  .tp-card {
    border: 2px solid var(--tp-text-primary);
  }

  .tp-hero__overlay {
    background: rgba(0, 0, 0, 0.8);
  }

  .tp-card--featured .tp-card__overlay {
    background: rgba(0, 0, 0, 0.8);
  }

  .tp-ticker__item {
    opacity: 1;
  }

  a {
    text-decoration: underline;
  }
}


/* ==========================================================================
   39. Print Styles
   ========================================================================== */

@media print {
  .tp-header,
  .tp-footer,
  .tp-sidebar,
  .tp-progress-bar,
  .tp-back-to-top,
  .tp-share-sidebar,
  .tp-share-bottom,
  .tp-related,
  .tp-comments,
  .tp-post-nav,
  .tp-ticker,
  .tp-topbar,
  .tp-hamburger,
  .tp-search-toggle,
  .tp-toc,
  .tp-pagination,
  .ad-zone,
  .tp-hero__dots {
    display: none !important;
  }

  body {
    color: #000;
    background: #fff;
    font-size: 12pt;
    line-height: 1.5;
  }

  .tp-article-content,
  .tp-single__body,
  .tp-page__body {
    max-width: 100%;
  }

  .tp-layout {
    display: block;
  }

  a[href]::after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
    color: #666;
  }

  img {
    max-width: 100% !important;
    page-break-inside: avoid;
  }

  h2, h3 {
    page-break-after: avoid;
  }
}


/* ==========================================================================
   40. Responsive — 1024px (Tablet Landscape)
   ========================================================================== */

@media (max-width: 1024px) {
  .tp-layout {
    grid-template-columns: 1fr;
  }

  .tp-sidebar {
    display: none;
  }

  .tp-share-sidebar {
    display: none;
  }

  .tp-nav {
    display: none;
  }

  .tp-hamburger {
    display: flex;
  }

  .tp-section--destinations {
    grid-template-columns: 1fr;
  }

  .tp-section--mustvisit .tp-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .tp-footer__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}


/* ==========================================================================
   41. Responsive — 768px (Tablet Portrait)
   ========================================================================== */

@media (max-width: 768px) {
  :root {
    --tp-container-pad: 16px;
    --tp-section-gap: 2rem;
    --tp-card-gap: 1rem;
  }

  .tp-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .tp-hero {
    height: 400px;
  }

  .tp-hero__content {
    padding: 1.5rem;
  }

  .tp-hero__title {
    font-size: clamp(1.25rem, 2.5vw + 0.5rem, 1.75rem);
  }

  .tp-hero__excerpt {
    display: none;
  }

  .tp-single__header {
    text-align: left;
  }

  .tp-single__meta {
    justify-content: flex-start;
  }

  .tp-section--tips .tp-grid {
    grid-template-columns: 1fr;
  }

  .tp-section--tips .tp-card--horizontal {
    grid-template-columns: 120px 1fr;
  }

  .tp-post-nav {
    grid-template-columns: 1fr;
  }

  .tp-related .tp-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .tp-card--search {
    grid-template-columns: 1fr;
  }

  .tp-card--search .tp-card__image {
    aspect-ratio: 16 / 9;
  }

  .tp-author-bio {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .tp-author-bio__social {
    justify-content: center;
  }

  .tp-footer__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .tp-footer__bottom-inner {
    flex-direction: column;
    text-align: center;
  }

  .tp-footer__legal-list {
    justify-content: center;
    flex-wrap: wrap;
  }

  /* Mobile share bottom bar */
  .tp-share-bottom {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    margin: 0;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 50;
    border-top: none;
    border-bottom: none;
  }

  .ad-mobile-only {
    display: block;
  }
}


/* ==========================================================================
   41b. Responsive — 600px (Small Tablet / Large Phone)
   ========================================================================== */

@media (max-width: 600px) {
  .tp-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .tp-section--destinations {
    grid-template-columns: 1fr;
  }

  .tp-section--tips .tp-grid {
    grid-template-columns: 1fr;
  }

  .tp-section--mustvisit .tp-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .tp-card--search {
    grid-template-columns: 1fr;
  }

  .tp-card--search .tp-card__image {
    aspect-ratio: 16 / 10;
  }

  .tp-gallery__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .tp-gallery__item--wide {
    grid-column: span 1;
  }

  .tp-single__header {
    text-align: left;
  }

  .tp-post-nav {
    grid-template-columns: 1fr;
  }

  .tp-related .tp-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .tp-itinerary {
    padding-left: 2rem;
  }

  .tp-map-placeholder {
    padding: 2rem 1.5rem;
  }

  .tp-article-content > p:first-of-type::first-letter {
    font-size: 3em;
  }
}


/* ==========================================================================
   42. Responsive — 480px (Mobile)
   ========================================================================== */

@media (max-width: 480px) {
  .tp-grid {
    grid-template-columns: 1fr;
  }

  .tp-hero {
    height: 320px;
  }

  .tp-hero__content {
    padding: 1rem;
  }

  .tp-hero__cat {
    font-size: 0.5625rem;
  }

  .tp-hero__meta {
    font-size: 0.75rem;
  }

  .tp-topbar__date {
    display: none;
  }

  .tp-single__title {
    font-size: 1.5rem;
  }

  .tp-article-content {
    font-size: 1rem;
    line-height: 1.75;
  }

  .tp-article-content h2 {
    font-size: 1.375rem;
  }

  .tp-article-content h3 {
    font-size: 1.125rem;
  }

  .tp-section--mustvisit .tp-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .tp-related .tp-grid {
    grid-template-columns: 1fr;
  }

  .tp-404__code {
    font-size: 5rem;
  }

  .tp-author-bio {
    padding: 1.25rem;
  }

  .tp-author-bio__avatar img {
    width: 80px;
    height: 80px;
  }

  .tp-comments .children {
    margin-left: 1rem;
  }

  .tp-pagination .page-numbers {
    min-width: 36px;
    height: 36px;
    font-size: 0.8125rem;
  }

  .tp-gallery__grid {
    grid-template-columns: 1fr;
  }

  .tp-gallery__item--wide,
  .tp-gallery__item--tall {
    grid-column: span 1;
    grid-row: span 1;
  }

  .tp-itinerary {
    padding-left: 1.5rem;
  }

  .tp-itinerary__dot {
    width: 20px;
    height: 20px;
    left: -1.5rem;
  }

  .tp-article-content > p:first-of-type::first-letter {
    font-size: 2.75em;
  }
}


/* ==========================================================================
   43. Responsive — 375px (Small Phone)
   ========================================================================== */

@media (max-width: 375px) {
  :root {
    --tp-container-pad: 12px;
  }

  .tp-logo__name {
    font-size: 1.25rem;
  }

  .tp-hero {
    height: 280px;
  }

  .tp-single__title {
    font-size: 1.375rem;
  }

  .tp-section--mustvisit .tp-grid {
    grid-template-columns: 1fr;
  }
}


/* ==========================================================================
   44. Dark Mode
   ========================================================================== */

[data-theme="dark"],
.tp-dark {
  /* Override custom properties for dark palette */
  --tp-bg-warm: #1a1513;
  --tp-bg-light: #1c1917;
  --tp-bg-white: #292524;
  --tp-bg-dark: #0c0a09;
  --tp-bg-hero-scrim: rgba(0, 0, 0, 0.65);

  --tp-text-primary: #e7e5e4;
  --tp-text-secondary: #a8a29e;
  --tp-text-light: #78716c;
  --tp-text-on-dark: #fafaf9;

  --tp-border: #44403c;
  --tp-border-light: #292524;

  --tp-shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.2);
  --tp-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.25);
  --tp-shadow-md: 0 4px 12px rgba(0, 0, 0, 0.3);
  --tp-shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.35);
  --tp-shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.35);
  --tp-shadow-card: 0 2px 8px rgba(0, 0, 0, 0.2);

  color-scheme: dark;
}

/* Body & page background */
[data-theme="dark"] body,
.tp-dark body {
  background: #1c1917;
  color: #e7e5e4;
}

/* Top bar */
[data-theme="dark"] .tp-topbar,
.tp-dark .tp-topbar {
  background: #0c0a09;
  border-bottom-color: #44403c;
}

[data-theme="dark"] .tp-topbar__date,
.tp-dark .tp-topbar__date {
  color: #a8a29e;
}

/* Ticker */
[data-theme="dark"] .tp-ticker,
.tp-dark .tp-ticker {
  background: #1c1917;
  border-bottom-color: #44403c;
}

[data-theme="dark"] .tp-ticker__label,
.tp-dark .tp-ticker__label {
  background: var(--tp-color-primary-dark);
}

[data-theme="dark"] .tp-ticker__item,
.tp-dark .tp-ticker__item {
  color: #a8a29e;
}

[data-theme="dark"] .tp-ticker__item:hover,
.tp-dark .tp-ticker__item:hover {
  color: var(--tp-color-primary-light);
}

/* Header */
[data-theme="dark"] .tp-header,
.tp-dark .tp-header {
  background: #292524;
  border-bottom-color: #44403c;
}

[data-theme="dark"] .tp-header--scrolled,
.tp-dark .tp-header--scrolled {
  background: #292524;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .tp-logo__name,
.tp-dark .tp-logo__name {
  color: #e7e5e4;
}

[data-theme="dark"] .tp-logo__tagline,
.tp-dark .tp-logo__tagline {
  color: #78716c;
}

[data-theme="dark"] .tp-nav__link,
.tp-dark .tp-nav__link {
  color: #e7e5e4;
}

[data-theme="dark"] .tp-nav__link:hover,
.tp-dark .tp-nav__link:hover {
  color: var(--tp-color-primary-light);
}

[data-theme="dark"] .tp-nav__dropdown,
.tp-dark .tp-nav__dropdown {
  background: #292524;
  border-color: #44403c;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .tp-nav__dropdown a,
.tp-dark .tp-nav__dropdown a {
  color: #a8a29e;
}

[data-theme="dark"] .tp-nav__dropdown a:hover,
.tp-dark .tp-nav__dropdown a:hover {
  background: #1c1917;
  color: var(--tp-color-primary-light);
}

[data-theme="dark"] .tp-hamburger__line,
.tp-dark .tp-hamburger__line {
  background: #e7e5e4;
}

/* Search overlay */
[data-theme="dark"] .tp-search-overlay,
.tp-dark .tp-search-overlay {
  background: rgba(12, 10, 9, 0.95);
}

[data-theme="dark"] .tp-search-overlay .search-field,
.tp-dark .tp-search-overlay .search-field {
  background: #292524;
  border-color: #44403c;
  color: #e7e5e4;
}

[data-theme="dark"] .tp-search-overlay__hint,
.tp-dark .tp-search-overlay__hint {
  color: #78716c;
}

/* Mobile navigation */
[data-theme="dark"] .tp-mobile-nav,
.tp-dark .tp-mobile-nav {
  background: #292524;
}

[data-theme="dark"] .tp-mobile-nav__link,
.tp-dark .tp-mobile-nav__link {
  color: #e7e5e4;
  border-bottom-color: #44403c;
}

[data-theme="dark"] .tp-mobile-nav__link:hover,
.tp-dark .tp-mobile-nav__link:hover {
  background: #1c1917;
}

/* Hero overlay adjustments */
[data-theme="dark"] .tp-hero__overlay,
.tp-dark .tp-hero__overlay {
  background: linear-gradient(transparent 20%, rgba(0, 0, 0, 0.75) 100%);
}

/* Cards — all 4 variants */
[data-theme="dark"] .tp-card,
.tp-dark .tp-card {
  background: #292524;
  border-color: #44403c;
}

[data-theme="dark"] .tp-card:hover,
.tp-dark .tp-card:hover {
  box-shadow: 0 8px 30px rgba(217, 119, 6, 0.1);
}

[data-theme="dark"] .tp-card__title a,
.tp-dark .tp-card__title a {
  color: #e7e5e4;
}

[data-theme="dark"] .tp-card__excerpt,
.tp-dark .tp-card__excerpt {
  color: #a8a29e;
}

[data-theme="dark"] .tp-card__meta,
.tp-dark .tp-card__meta {
  color: #78716c;
}

[data-theme="dark"] .tp-card__meta a,
.tp-dark .tp-card__meta a {
  color: #a8a29e;
}

[data-theme="dark"] .tp-card--horizontal,
.tp-dark .tp-card--horizontal {
  background: transparent;
  border-bottom-color: #44403c;
}

[data-theme="dark"] .tp-card--horizontal:hover,
.tp-dark .tp-card--horizontal:hover {
  background: #1c1917;
}

[data-theme="dark"] .tp-section--tips .tp-card--horizontal,
.tp-dark .tp-section--tips .tp-card--horizontal {
  background: #292524;
}

[data-theme="dark"] .tp-section--tips .tp-card--horizontal:nth-child(even),
.tp-dark .tp-section--tips .tp-card--horizontal:nth-child(even) {
  background: #1c1917;
}

[data-theme="dark"] .tp-card--search,
.tp-dark .tp-card--search {
  background: #292524;
}

[data-theme="dark"] .tp-card--search .tp-card__read-more,
.tp-dark .tp-card--search .tp-card__read-more {
  color: var(--tp-color-primary-light);
}

/* Section headers */
[data-theme="dark"] .tp-section__title,
.tp-dark .tp-section__title {
  color: #e7e5e4;
}

[data-theme="dark"] .tp-section__subtitle,
.tp-dark .tp-section__subtitle {
  color: #78716c;
}

/* Single post */
[data-theme="dark"] .tp-single__title,
.tp-dark .tp-single__title {
  color: #e7e5e4;
}

[data-theme="dark"] .tp-article-content,
.tp-dark .tp-article-content {
  color: #d6d3d1;
}

[data-theme="dark"] .tp-article-content blockquote,
.tp-dark .tp-article-content blockquote {
  background: #1c1917;
  border-left-color: var(--tp-color-primary);
  color: #a8a29e;
}

[data-theme="dark"] .tp-article-content a,
.tp-dark .tp-article-content a {
  color: var(--tp-color-primary-light);
}

/* TOC */
[data-theme="dark"] .tp-toc,
.tp-dark .tp-toc {
  background: #1c1917;
  border-color: #44403c;
}

[data-theme="dark"] .tp-toc__toggle,
.tp-dark .tp-toc__toggle {
  color: #e7e5e4;
}

[data-theme="dark"] .tp-toc__link,
.tp-dark .tp-toc__link {
  color: #a8a29e;
}

[data-theme="dark"] .tp-toc__link:hover,
[data-theme="dark"] .tp-toc__link.active,
.tp-dark .tp-toc__link:hover,
.tp-dark .tp-toc__link.active {
  color: var(--tp-color-primary-light);
}

/* Social share */
[data-theme="dark"] .tp-share-sidebar__btn,
.tp-dark .tp-share-sidebar__btn {
  background: #292524;
  border-color: #44403c;
  color: #a8a29e;
}

[data-theme="dark"] .tp-share-bottom__btn,
.tp-dark .tp-share-bottom__btn {
  background: #292524;
  color: #a8a29e;
}

/* Author bio */
[data-theme="dark"] .tp-author-bio,
.tp-dark .tp-author-bio {
  background: #1c1917;
  border-color: #44403c;
}

[data-theme="dark"] .tp-author-bio__name a,
.tp-dark .tp-author-bio__name a {
  color: #e7e5e4;
}

[data-theme="dark"] .tp-author-bio__desc,
.tp-dark .tp-author-bio__desc {
  color: #a8a29e;
}

/* Post navigation */
[data-theme="dark"] .tp-post-nav__item,
.tp-dark .tp-post-nav__item {
  background: #292524;
  border-color: #44403c;
}

[data-theme="dark"] .tp-post-nav__item:hover,
.tp-dark .tp-post-nav__item:hover {
  border-color: var(--tp-color-primary);
  background: #1c1917;
}

[data-theme="dark"] .tp-post-nav__title,
.tp-dark .tp-post-nav__title {
  color: #e7e5e4;
}

/* Comments */
[data-theme="dark"] .tp-comments,
.tp-dark .tp-comments {
  border-top-color: #44403c;
}

[data-theme="dark"] .tp-comments__title,
.tp-dark .tp-comments__title {
  color: #e7e5e4;
}

[data-theme="dark"] .tp-comments .comment,
.tp-dark .tp-comments .comment {
  border-bottom-color: #44403c;
}

[data-theme="dark"] .tp-comments .comment-author .fn,
.tp-dark .tp-comments .comment-author .fn {
  color: #e7e5e4;
}

[data-theme="dark"] .tp-comments .comment-metadata a,
.tp-dark .tp-comments .comment-metadata a {
  color: #78716c;
}

[data-theme="dark"] .tp-comments .comment-content,
.tp-dark .tp-comments .comment-content {
  color: #a8a29e;
}

[data-theme="dark"] .tp-comments .comment-form input[type="text"],
[data-theme="dark"] .tp-comments .comment-form input[type="email"],
[data-theme="dark"] .tp-comments .comment-form input[type="url"],
[data-theme="dark"] .tp-comments .comment-form textarea,
.tp-dark .tp-comments .comment-form input[type="text"],
.tp-dark .tp-comments .comment-form input[type="email"],
.tp-dark .tp-comments .comment-form input[type="url"],
.tp-dark .tp-comments .comment-form textarea {
  background: #1c1917;
  border-color: #44403c;
  color: #e7e5e4;
}

[data-theme="dark"] .tp-comments .comment-form input:focus,
[data-theme="dark"] .tp-comments .comment-form textarea:focus,
.tp-dark .tp-comments .comment-form input:focus,
.tp-dark .tp-comments .comment-form textarea:focus {
  border-color: var(--tp-color-primary);
}

[data-theme="dark"] .tp-comments .comment-form label,
.tp-dark .tp-comments .comment-form label {
  color: #a8a29e;
}

/* Sidebar & widgets */
[data-theme="dark"] .tp-widget,
.tp-dark .tp-widget {
  background: #292524;
  border-color: #44403c;
}

[data-theme="dark"] .tp-sidebar .search-field,
.tp-dark .tp-sidebar .search-field {
  background: #1c1917;
  border-color: #44403c;
  color: #e7e5e4;
}

[data-theme="dark"] .tp-sidebar .widget_categories a,
.tp-dark .tp-sidebar .widget_categories a {
  color: #a8a29e;
  border-bottom-color: #44403c;
}

[data-theme="dark"] .tp-sidebar .widget_recent_entries a,
.tp-dark .tp-sidebar .widget_recent_entries a {
  color: #e7e5e4;
}

[data-theme="dark"] .tp-sidebar .widget_recent_entries li,
.tp-dark .tp-sidebar .widget_recent_entries li {
  border-bottom-color: #44403c;
}

/* Breadcrumbs */
[data-theme="dark"] .tp-breadcrumbs,
.tp-dark .tp-breadcrumbs {
  color: #78716c;
}

[data-theme="dark"] .tp-breadcrumbs a,
.tp-dark .tp-breadcrumbs a {
  color: #a8a29e;
}

[data-theme="dark"] .tp-breadcrumbs__current,
.tp-dark .tp-breadcrumbs__current {
  color: #e7e5e4;
}

/* Pagination */
[data-theme="dark"] .tp-pagination .page-numbers,
.tp-dark .tp-pagination .page-numbers {
  color: #a8a29e;
  background: #292524;
}

[data-theme="dark"] .tp-pagination .page-numbers:hover,
.tp-dark .tp-pagination .page-numbers:hover {
  background: var(--tp-color-primary);
  color: #0c0a09;
}

[data-theme="dark"] .tp-pagination .page-numbers.current,
.tp-dark .tp-pagination .page-numbers.current {
  background: var(--tp-color-primary);
  color: #0c0a09;
}

/* Archive & search pages */
[data-theme="dark"] .tp-archive__title,
[data-theme="dark"] .tp-search__title,
.tp-dark .tp-archive__title,
.tp-dark .tp-search__title {
  color: #e7e5e4;
}

[data-theme="dark"] .tp-archive__desc,
[data-theme="dark"] .tp-search__desc,
.tp-dark .tp-archive__desc,
.tp-dark .tp-search__desc {
  color: #a8a29e;
}

/* 404 page */
[data-theme="dark"] .tp-error__code,
.tp-dark .tp-error__code {
  color: #44403c;
}

[data-theme="dark"] .tp-error__title,
.tp-dark .tp-error__title {
  color: #e7e5e4;
}

[data-theme="dark"] .tp-error__desc,
.tp-dark .tp-error__desc {
  color: #a8a29e;
}

/* Page template */
[data-theme="dark"] .tp-page__title,
.tp-dark .tp-page__title {
  color: #e7e5e4;
}

[data-theme="dark"] .tp-page__body,
.tp-dark .tp-page__body {
  color: #d6d3d1;
}

/* Back-to-top (already dark-ish, just ensure border contrast) */
[data-theme="dark"] .tp-back-to-top,
.tp-dark .tp-back-to-top {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

/* Reading progress bar — keep primary color, works on dark */

/* Ad zones */
[data-theme="dark"] .tp-ad-zone,
.tp-dark .tp-ad-zone {
  background: #1c1917;
  border-color: #44403c;
}

/* Sticky post indicator */
[data-theme="dark"] .sticky .tp-card::before,
.tp-dark .sticky .tp-card::before {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Location card travel components */
[data-theme="dark"] .tp-card--location .tp-card__location,
.tp-dark .tp-card--location .tp-card__location {
  color: #a8a29e;
}

[data-theme="dark"] .tp-card--location .tp-card__dates,
.tp-dark .tp-card--location .tp-card__dates {
  color: #78716c;
}

/* Itinerary */
[data-theme="dark"] .tp-itinerary,
.tp-dark .tp-itinerary {
  border-left-color: #44403c;
}

[data-theme="dark"] .tp-itinerary__dot,
.tp-dark .tp-itinerary__dot {
  border-color: #292524;
}


/* ==========================================================================
   45. Spring Easing for Card Hover
   ========================================================================== */

.tp-card {
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.tp-section--tips .tp-card--horizontal {
  transition: box-shadow 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
              background 0.3s ease;
}

.tp-card--search {
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.tp-card--featured {
  transition: box-shadow 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ==========================================================================
   46. Fluid Typography (Sprint 15)
   ========================================================================== */

/* Heading Hierarchy */
h1, .tp-title-h1 {
  font-family: var(--tp-font-heading);
  font-size: var(--tp-fs-3xl);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h2, .tp-title-h2 {
  font-family: var(--tp-font-heading);
  font-size: var(--tp-fs-2xl);
  font-weight: 700;
  line-height: 1.25;
}

h3, .tp-title-h3 {
  font-family: var(--tp-font-heading);
  font-size: var(--tp-fs-xl);
  font-weight: 700;
  line-height: 1.35;
}

h4, .tp-title-h4 {
  font-family: var(--tp-font-heading);
  font-size: var(--tp-fs-lg);
  font-weight: 600;
  line-height: 1.4;
}

/* Body & Reading */
body {
  font-family: var(--tp-font-body);
  font-size: var(--tp-fs-base);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Article Content — Optimal Reading */
.tp-single__body,
.tp-article-content,
.entry-content {
  max-width: 68ch;
  line-height: 1.85;
  font-size: var(--tp-fs-md);
}

.tp-single__body h2,
.tp-article-content h2 {
  font-size: var(--tp-fs-xl);
  margin-top: 2.5rem;
}

.tp-single__body h3,
.tp-article-content h3 {
  font-size: var(--tp-fs-lg);
  margin-top: 2rem;
}

/* Card Titles */
.tp-card__title {
  font-family: var(--tp-font-heading);
  font-size: var(--tp-fs-card);
  font-weight: 700;
  line-height: 1.35;
}

.tp-card--featured .tp-card__title {
  font-size: var(--tp-fs-xl);
}

/* Hero Title */
.tp-hero__title {
  font-family: var(--tp-font-heading);
  font-size: var(--tp-fs-hero);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

/* Meta & UI Text */
.tp-meta,
.tp-card__meta {
  font-family: var(--tp-font-ui);
  font-size: var(--tp-fs-sm);
}

/* Navigation, Buttons, Footer */
.tp-nav,
.tp-btn,
.tp-badge,
.tp-tag,
.tp-footer {
  font-family: var(--tp-font-ui);
}

/* Mobile — 16px AdSense Minimum */
@media (max-width: 480px) {
  body {
    font-size: max(1rem, 16px);
  }
  h1, .tp-title-h1 { font-size: clamp(1.5rem, 6vw, 2rem); }
  h2, .tp-title-h2 { font-size: clamp(1.25rem, 5vw, 1.75rem); }
}

/* ============================================
 * TRAILPOST — Envato-Quality Polish v2
 * Amber palette · drop caps · magazine dividers · earthy footer
 * ============================================ */

/* --- Card System — amber-tinted hover --- */
.tp-card {
  border-radius: var(--tp-radius, 8px);
  overflow: hidden;
  border-left: 3px solid transparent;
  transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1),
              box-shadow 0.3s ease,
              border-left-color 0.2s ease;
}
.tp-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--tp-shadow-hover, 0 8px 30px rgba(217,119,6,0.15));
  border-left-color: var(--tp-color-primary, #d97706);
}
.tp-card .tp-card__image img {
  transition: transform 0.5s ease;
}
.tp-card:hover .tp-card__image img {
  transform: scale(1.05);
}

/* --- Category Badges — amber on warm bg --- */
.tp-badge,
.tp-card__category,
.tp-category-badge {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
  background: rgba(217,119,6,0.1);
  color: var(--tp-color-primary, #d97706);
}

/* --- Magazine Section Dividers (centered category name) --- */
.tp-section-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 40px 0 24px;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--tp-text-secondary, #57534e);
}
.tp-section-divider::before,
.tp-section-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--tp-border, #e7e5e4);
}
.tp-section-divider span {
  color: var(--tp-color-primary, #d97706);
  white-space: nowrap;
}

/* --- Article Content — drop cap + Playfair Display --- */
.tp-article-content > p:first-of-type::first-letter {
  float: left;
  font-family: var(--tp-font-heading, 'Playfair Display', Georgia, serif);
  font-size: 4.5rem;
  line-height: 0.8;
  font-weight: 700;
  color: var(--tp-color-primary, #d97706);
  margin-right: 8px;
  margin-top: 6px;
  padding: 0 4px;
}

.tp-article-content h2 {
  margin-top: 48px !important;
  margin-bottom: 16px !important;
  padding-bottom: 10px !important;
  border-bottom: 2px solid rgba(217,119,6,0.2) !important;
  font-size: 1.55rem !important;
  color: var(--tp-text-primary, #1c1917) !important;
}
.tp-article-content h3 {
  margin-top: 32px !important;
  font-size: 1.25rem !important;
}

/* --- Blockquotes — earthy amber style --- */
.tp-article-content blockquote {
  border-left: 4px solid var(--tp-color-primary, #d97706) !important;
  background: #fef3c7 !important;
  padding: 20px 24px !important;
  margin: 32px 0 !important;
  border-radius: 0 8px 8px 0 !important;
  font-style: italic !important;
  font-family: var(--tp-font-heading, 'Playfair Display', Georgia, serif) !important;
  color: #78350f !important;
  font-size: 17px !important;
  line-height: 1.7 !important;
}

/* --- Links in article body --- */
.tp-article-content a {
  color: var(--tp-color-primary, #d97706);
  text-decoration: none;
  border-bottom: 1px solid rgba(217,119,6,0.35);
  transition: border-color 0.2s ease;
}
.tp-article-content a:hover {
  border-bottom-color: var(--tp-color-primary, #d97706);
}

/* --- Travel: Map Placeholder --- */
.tp-map-placeholder {
  width: 100%;
  min-height: 220px;
  background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
  border-radius: var(--tp-radius, 8px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--tp-color-secondary, #059669);
  font-size: 1rem;
  font-weight: 600;
  font-family: var(--tp-font-ui, sans-serif);
  border: 2px dashed var(--tp-color-secondary, #059669);
  margin: 24px 0;
}

/* --- Travel: Route Cards --- */
.tp-route-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: flex-start;
  padding: 16px 20px;
  background: var(--tp-bg-light, #fefbf3);
  border-radius: var(--tp-radius, 8px);
  border-left: 3px solid var(--tp-color-primary, #d97706);
  margin: 12px 0;
}
.tp-route-card__number {
  width: 32px;
  height: 32px;
  background: var(--tp-color-primary, #d97706);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
}
.tp-route-card__title {
  font-weight: 600;
  color: var(--tp-text-primary, #1c1917);
  margin-bottom: 4px;
}
.tp-route-card__desc {
  font-size: 14px;
  color: var(--tp-text-secondary, #57534e);
  line-height: 1.5;
}

/* --- Finance: Cost Breakdown Table --- */
.tp-cost-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 15px;
  border-radius: var(--tp-radius, 8px);
  overflow: hidden;
  box-shadow: var(--tp-shadow-sm, 0 1px 3px rgba(0,0,0,0.08));
}
.tp-cost-table th {
  background: var(--tp-color-primary, #d97706);
  color: #fff;
  font-weight: 600;
  text-align: left;
  padding: 12px 16px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.tp-cost-table td {
  padding: 10px 16px;
  border-bottom: 1px solid var(--tp-border, #e7e5e4);
  color: var(--tp-text-primary, #1c1917);
}
.tp-cost-table tr:nth-child(even) td {
  background: var(--tp-bg-warm, #fef3c7);
}
.tp-cost-table .tp-cost--positive {
  color: #059669;
  font-weight: 600;
}
.tp-cost--positive::before { content: '+'; }
.tp-cost-table .tp-cost--negative {
  color: #dc2626;
  font-weight: 600;
}
.tp-cost-table .tp-cost--neutral {
  color: var(--tp-text-secondary, #57534e);
}
.tp-cost-table .tp-cost-table__total td {
  font-weight: 700;
  background: rgba(217,119,6,0.08);
  border-top: 2px solid var(--tp-color-primary, #d97706);
  font-size: 16px;
}

/* --- Images in articles --- */
.tp-article-content img {
  border-radius: var(--tp-radius, 8px);
  margin: 24px 0;
  box-shadow: 0 4px 16px rgba(217,119,6,0.08);
}

/* --- Footer — warm dark, amber accents --- */
.tp-footer {
  background: var(--tp-bg-dark, #292524) !important;
}
.tp-footer__title {
  color: #fef3c7 !important;
}
.tp-footer__title::after {
  background: var(--tp-color-primary, #d97706) !important;
}
.tp-footer a {
  color: #fcd34d !important;
  transition: color 0.2s ease;
}
.tp-footer a:hover {
  color: #fef3c7 !important;
}
.tp-footer__copyright,
.tp-footer__bottom {
  background: rgba(0,0,0,0.25) !important;
  color: #a8a29e !important;
}

/* --- Focus visible --- */
.tp-article-content *:focus-visible {
  outline: 2px solid var(--tp-color-primary, #d97706);
  outline-offset: 2px;
}

/* --- Dark mode overrides --- */
[data-theme="dark"] .tp-card {
  background: #1c1917;
}
[data-theme="dark"] .tp-article-content {
  color: #e7e5e4;
}
[data-theme="dark"] .tp-article-content h2 {
  color: #fef3c7;
  border-bottom-color: rgba(217,119,6,0.25) !important;
}
[data-theme="dark"] .tp-article-content blockquote {
  background: #292524 !important;
  color: #fcd34d !important;
}
[data-theme="dark"] .tp-badge,
[data-theme="dark"] .tp-card__category {
  background: rgba(217,119,6,0.2);
  color: #fcd34d;
}
[data-theme="dark"] .tp-cost-table td {
  border-bottom-color: #44403c;
}
[data-theme="dark"] .tp-cost-table tr:nth-child(even) td {
  background: #292524;
}
[data-theme="dark"] .tp-cost-table .tp-cost-table__total td {
  background: rgba(217,119,6,0.1);
}
[data-theme="dark"] .tp-route-card {
  background: #1c1917;
}
[data-theme="dark"] .tp-section-divider::before,
[data-theme="dark"] .tp-section-divider::after {
  background: #44403c;
}

/* --- Print styles --- */
@media print {
  .tp-card { box-shadow: none; border-left: none; }
  .tp-article-content blockquote { background: #f9f9f9 !important; }
  .tp-cost-table { box-shadow: none; }
  .tp-section-divider::before,
  .tp-section-divider::after { background: #ccc; }
  .tp-footer { display: none !important; }
}

/* --- Reduced motion --- */
@media (prefers-reduced-motion: reduce) {
  .tp-card {
    transition: border-left-color 0.01ms, box-shadow 0.01ms;
  }
  .tp-card:hover {
    transform: none;
  }
  .tp-card .tp-card__image img {
    transition: none;
  }
}
