/* Transport Portal Theme — Main Styles */

:root {
    --tpt-orange: #e8720c;
    --tpt-orange-dark: #cc6200;
    --tpt-orange-light: #fef3e2;
    --tpt-navy: #0d1b2e;
    --tpt-navy-light: #1a2b4a;
    --tpt-navy-lighter: #243b5e;
    --tpt-white: #ffffff;
    --tpt-gray-50: #f9fafb;
    --tpt-gray-100: #f3f4f6;
    --tpt-gray-200: #e5e7eb;
    --tpt-gray-300: #d1d5db;
    --tpt-gray-400: #9ca3af;
    --tpt-gray-500: #6b7280;
    --tpt-gray-600: #4b5563;
    --tpt-gray-700: #374151;
    --tpt-gray-800: #1f2937;
    --tpt-gray-900: #111827;
    --tpt-radius: 8px;
    --tpt-radius-lg: 12px;
    --tpt-shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
    --tpt-shadow-lg: 0 10px 25px rgba(0,0,0,0.08);
    --tpt-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --tpt-transition: 0.2s ease;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-family: var(--tpt-font); color: var(--tpt-gray-800); background: var(--tpt-white); line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
html { overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--tpt-orange); text-decoration: none; transition: color var(--tpt-transition); }
a:hover { color: var(--tpt-orange-dark); }

/* ── Layout ── */
.tpt-container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.tpt-container--narrow { max-width: 800px; }
.tpt-main { min-height: 60vh; padding: 3rem 0; }

/* ── Section Titles ── */
.tpt-section-title { font-size: 2rem; font-weight: 800; text-align: center; color: var(--tpt-gray-900); margin: 0 0 0.5rem; letter-spacing: -0.02em; }
.tpt-section-subtitle { text-align: center; color: var(--tpt-gray-500); margin: 0 0 3rem; font-size: 1.05rem; }

/* ══════════════════════════════════════════
   HEADER
   ══════════════════════════════════════════ */
/* Transparent header on front page */
.tpt-front-page .tpt-header { background: transparent; position: absolute; top: 0; left: 0; right: 0; z-index: 1000; border-bottom: none; }
/* Solid header on all other pages */
.tpt-header { background: var(--tpt-navy); position: sticky; top: 0; z-index: 1000; border-bottom: none; }
.tpt-header__inner { display: flex; align-items: center; height: 72px; gap: 2rem; }
.tpt-header__logo a, .tpt-header__site-name { color: var(--tpt-white); font-size: 1.5rem; font-weight: 800; text-decoration: none; letter-spacing: -0.02em; }
.tpt-header__logo img { max-height: 48px; width: auto; }
.tpt-header__nav { flex: 1; }
.tpt-header__menu { list-style: none; margin: 0; padding: 0; display: flex; gap: 0.25rem; }
.tpt-header__menu li { position: relative; }
.tpt-header__menu a { display: block; padding: 0.5rem 1rem; color: rgba(255,255,255,0.8); font-size: 0.9rem; font-weight: 500; border-radius: var(--tpt-radius); transition: all var(--tpt-transition); }
.tpt-header__menu a:hover, .tpt-header__menu .current-menu-item > a { color: var(--tpt-white); background: rgba(255,255,255,0.1); }
.tpt-header__menu .sub-menu { display: none; position: absolute; top: 100%; left: 0; background: var(--tpt-navy-light); border-radius: var(--tpt-radius); padding: 0.5rem 0; min-width: 200px; box-shadow: var(--tpt-shadow-lg); list-style: none; }
.tpt-header__menu li:hover > .sub-menu { display: block; }
.tpt-header__menu .sub-menu a { padding: 0.5rem 1.25rem; }

/* Header actions */
.tpt-header__actions { display: flex; gap: 0.75rem; align-items: center; }

/* User dropdown */
.tpt-header__user { position: relative; }
.tpt-header__user-btn { display: flex; align-items: center; gap: 0.5rem; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15); padding: 0.4rem 0.75rem; border-radius: 50px; cursor: pointer; color: var(--tpt-white); font-size: 0.875rem; font-weight: 500; font-family: var(--tpt-font); transition: var(--tpt-transition); }
.tpt-header__user-btn:hover { background: rgba(255,255,255,0.15); }
.tpt-header__avatar { width: 28px; height: 28px; background: var(--tpt-orange); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.75rem; font-weight: 700; color: var(--tpt-white); }
.tpt-header__user-name { max-width: 100px; overflow: hidden; text-overflow: ellipsis; }

.tpt-header__dropdown { display: none; position: absolute; right: 0; top: calc(100% + 8px); background: var(--tpt-white); border-radius: var(--tpt-radius-lg); box-shadow: 0 12px 40px rgba(0,0,0,0.15); min-width: 220px; padding: 0.5rem 0; z-index: 200; border: 1px solid var(--tpt-gray-200); }
.tpt-header__dropdown.is-open { display: block; }
.tpt-header__dropdown-label { padding: 0.5rem 1rem; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--tpt-gray-400); }
.tpt-header__dropdown a { display: flex; align-items: center; gap: 0.625rem; padding: 0.6rem 1rem; color: var(--tpt-gray-700); font-size: 0.875rem; font-weight: 500; transition: var(--tpt-transition); }
.tpt-header__dropdown a:hover { background: var(--tpt-gray-50); color: var(--tpt-orange); }
.tpt-header__dropdown a svg { color: var(--tpt-gray-400); flex-shrink: 0; }
.tpt-header__dropdown-divider { height: 1px; background: var(--tpt-gray-200); margin: 0.375rem 0; }
.tpt-header__dropdown-logout { color: var(--tpt-gray-500) !important; }

/* Stripe Connect entry in dropdown */
.tpt-header__dropdown-stripe { position: relative; }
.tpt-header__dropdown-stripe.is-disconnected { background: #fff7ed; }
.tpt-header__dropdown-stripe.is-disconnected svg { color: #ea580c !important; }
.tpt-header__stripe-badge { margin-left: auto; font-size: 0.65rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; padding: 0.18rem 0.45rem; border-radius: 50px; }
.tpt-header__stripe-badge--ok { background: #dcfce7; color: #166534; }
.tpt-header__stripe-badge--warn { background: #fed7aa; color: #9a3412; }

/* Header CTA button — pulse to draw attention */
.tpt-header__stripe-cta { animation: tpt-stripe-pulse 2s ease-in-out infinite; }
@keyframes tpt-stripe-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(234, 88, 12, 0.45); }
    50%      { box-shadow: 0 0 0 8px rgba(234, 88, 12, 0); }
}

.tpt-header__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 0.5rem; }
.tpt-header__toggle span { display: block; width: 24px; height: 2px; background: var(--tpt-white); border-radius: 2px; transition: var(--tpt-transition); }

/* ══════════════════════════════════════════
   BUTTONS
   ══════════════════════════════════════════ */
.tpt-btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.65rem 1.5rem; border-radius: var(--tpt-radius); font-family: var(--tpt-font); font-size: 0.9rem; font-weight: 600; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: all var(--tpt-transition); white-space: nowrap; }
.tpt-btn--sm { padding: 0.5rem 1.1rem; font-size: 0.85rem; }
.tpt-btn--lg { padding: 0.85rem 2.5rem; font-size: 1.05rem; border-radius: var(--tpt-radius-lg); }
.tpt-btn--primary { background: var(--tpt-orange); color: var(--tpt-white); border-color: var(--tpt-orange); }
.tpt-btn--primary:hover { background: var(--tpt-orange-dark); border-color: var(--tpt-orange-dark); color: var(--tpt-white); }
.tpt-btn--outline { background: transparent; color: var(--tpt-white); border-color: rgba(255,255,255,0.3); }
.tpt-btn--outline:hover { border-color: var(--tpt-white); color: var(--tpt-white); }
.tpt-btn--white { background: var(--tpt-white); color: var(--tpt-navy); border-color: var(--tpt-white); }
.tpt-btn--white:hover { background: var(--tpt-gray-100); color: var(--tpt-navy); }

/* ══════════════════════════════════════════
   HERO (Front Page)
   ══════════════════════════════════════════ */
.tpt-hero { position: relative; min-height: 85vh; display: flex; align-items: center; padding: 120px 0 3rem; overflow: hidden; }
.tpt-hero__bg { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.2) 50%, rgba(0,0,0,0.4) 100%), url('../img/hero-truck.jpg') center/cover no-repeat; z-index: 0; }
.tpt-hero__content { position: relative; z-index: 1; max-width: 800px; margin: 0 auto; text-align: center; }
.tpt-hero__title { font-size: clamp(2rem, 5vw, 2.75rem); font-weight: 900; color: var(--tpt-white); line-height: 1.2; margin: 0 0 1.25rem; letter-spacing: -0.02em; }
.tpt-hero__title span { color: var(--tpt-orange); }
.tpt-hero__subtitle { font-size: 1.25rem; color: rgba(255,255,255,0.85); margin: 0 0 2.5rem; line-height: 1.5; font-weight: 600; }
.tpt-hero__cta { display: flex; gap: 1.5rem; flex-wrap: wrap; justify-content: center; }

/* CTA large buttons with icon + two-line text */
.tpt-hero__cta-btn { display: flex; align-items: center; gap: 1rem; padding: 1.25rem 2.5rem; border-radius: 12px; font-size: 1.1rem; font-weight: 800; color: #fff; border: none; cursor: pointer; min-width: 280px; text-transform: uppercase; text-decoration: none; transition: all var(--tpt-transition); font-family: var(--tpt-font); }
.tpt-hero__cta-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.3); color: #fff; }
.tpt-hero__cta-btn--shipper { background: #e8720c; }
.tpt-hero__cta-btn--transporter { background: #0d1b2e; }
.tpt-hero__cta-btn svg { flex-shrink: 0; }
.tpt-hero__cta-btn-text { text-align: left; }
.tpt-hero__cta-btn-text .main-text { display: block; font-size: 1.1rem; font-weight: 800; letter-spacing: 0.03em; }
.tpt-hero__cta-btn-text .sub-text { display: block; font-size: 0.75rem; font-weight: 500; opacity: 0.8; text-transform: none; margin-top: 2px; }

/* Road sign badges — absolute right side */
.tpt-hero__badges { position: absolute; right: 2rem; bottom: 2rem; z-index: 2; display: flex; flex-direction: column; gap: 0.75rem; }
.tpt-hero__badge { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.6rem 1.25rem; border-radius: 6px; color: #fff; font-size: 0.85rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; min-width: 150px; }
.tpt-hero__badge--hr { background: #2563eb; }
.tpt-hero__badge--eu { background: #2563eb; }

/* ══════════════════════════════════════════
   SEARCH BAR
   ══════════════════════════════════════════ */
.tpt-search-bar { position: relative; z-index: 2; margin-top: 2rem; padding-bottom: 0; max-width: 900px; margin-left: auto; margin-right: auto; }
.tpt-search-bar__card { background: rgba(255,255,255,0.92); backdrop-filter: blur(10px); border-radius: 16px; padding: 2rem; box-shadow: 0 20px 50px rgba(0,0,0,0.12); }
.tpt-search-bar__title { font-size: 1.1rem; font-weight: 700; color: var(--tpt-gray-900); margin: 0 0 1.25rem; text-transform: uppercase; letter-spacing: 0.05em; text-align: center; }
.tpt-search-bar__form { }
.tpt-search-bar__fields { display: flex; gap: 0.75rem; align-items: end; }
.tpt-search-bar__field { flex: 1; }
.tpt-search-bar__field label { display: block; font-size: 0.75rem; font-weight: 600; color: var(--tpt-gray-500); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.375rem; }
.tpt-search-bar__field input, .tpt-search-bar__field select { width: 100%; padding: 0.7rem 0.875rem; border: 1px solid var(--tpt-gray-300); border-radius: var(--tpt-radius); font-size: 0.9rem; font-family: var(--tpt-font); color: var(--tpt-gray-800); transition: border-color var(--tpt-transition); }
.tpt-search-bar__field input:focus, .tpt-search-bar__field select:focus { outline: none; border-color: var(--tpt-orange); box-shadow: 0 0 0 3px rgba(232,114,12,0.1); }
.tpt-search-bar__arrow { display: flex; align-items: center; padding-bottom: 0.5rem; }
.tpt-search-bar__quick { display: flex; gap: 0.75rem; align-items: center; margin-top: 1rem; flex-wrap: wrap; }
.tpt-search-bar__quick-label { font-size: 0.8rem; color: var(--tpt-gray-400); font-weight: 600; }
.tpt-search-bar__quick a { font-size: 0.8rem; color: var(--tpt-gray-500); background: var(--tpt-gray-100); padding: 0.3rem 0.75rem; border-radius: 20px; transition: var(--tpt-transition); }
.tpt-search-bar__quick a:hover { background: var(--tpt-orange-light); color: var(--tpt-orange); }

/* Recent listings cards below search */
.tpt-search-bar__recent { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1.25rem; }
.tpt-search-bar__recent-card { background: rgba(0,0,0,0.5); backdrop-filter: blur(6px); border-radius: 12px; padding: 1.25rem; color: #fff; }
.tpt-search-bar__recent-card h3 { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; margin: 0 0 0.75rem; color: rgba(255,255,255,0.85); }
.tpt-search-bar__recent-item { display: flex; align-items: center; gap: 0.5rem; padding: 0.4rem 0; font-size: 0.85rem; color: rgba(255,255,255,0.8); border-bottom: 1px solid rgba(255,255,255,0.1); }
.tpt-search-bar__recent-item:last-child { border-bottom: none; }
.tpt-search-bar__recent-item svg { flex-shrink: 0; color: var(--tpt-orange); }
.tpt-search-bar__recent-item .route-text { flex: 1; }
.tpt-search-bar__recent-item .route-date { font-size: 0.75rem; color: rgba(255,255,255,0.5); }

/* ══════════════════════════════════════════
   FEATURES
   ══════════════════════════════════════════ */
.tpt-features { padding: 4rem 0; background: var(--tpt-gray-50); }
.tpt-features__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.tpt-features__card { background: var(--tpt-white); border-radius: var(--tpt-radius-lg); padding: 2rem; text-align: center; box-shadow: var(--tpt-shadow); transition: transform var(--tpt-transition), box-shadow var(--tpt-transition); }
.tpt-features__card:hover { transform: translateY(-4px); box-shadow: var(--tpt-shadow-lg); }
.tpt-features__icon { width: 64px; height: 64px; background: var(--tpt-orange-light); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 1.25rem; }
.tpt-features__card h3 { font-size: 1.1rem; font-weight: 700; color: var(--tpt-gray-900); margin: 0 0 0.5rem; }
.tpt-features__card p { font-size: 0.9rem; color: var(--tpt-gray-500); margin: 0; line-height: 1.5; }

/* ══════════════════════════════════════════
   HOW IT WORKS
   ══════════════════════════════════════════ */
.tpt-how { padding: 5rem 0; }
.tpt-how__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.tpt-how__step { text-align: center; position: relative; }
.tpt-how__step::after { content: ''; position: absolute; top: 24px; left: 60%; width: 80%; height: 2px; background: var(--tpt-gray-200); }
.tpt-how__step:last-child::after { display: none; }
.tpt-how__num { width: 48px; height: 48px; background: var(--tpt-orange); color: var(--tpt-white); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.25rem; font-weight: 800; margin: 0 auto 1rem; position: relative; z-index: 1; }
.tpt-how__step h3 { font-size: 1rem; font-weight: 700; margin: 0 0 0.5rem; color: var(--tpt-gray-900); }
.tpt-how__step p { font-size: 0.85rem; color: var(--tpt-gray-500); margin: 0; }

/* ══════════════════════════════════════════
   VEHICLE TYPES
   ══════════════════════════════════════════ */
.tpt-vehicles { padding: 4rem 0; background: var(--tpt-gray-50); }
.tpt-vehicles__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; margin-top: 2.5rem; }
.tpt-vehicles__card { background: var(--tpt-white); border: 2px solid var(--tpt-gray-200); border-radius: var(--tpt-radius-lg); padding: 2rem 1.5rem; text-align: center; transition: border-color var(--tpt-transition), box-shadow var(--tpt-transition); cursor: default; }
.tpt-vehicles__card:hover { border-color: var(--tpt-orange); box-shadow: var(--tpt-shadow-lg); }
.tpt-vehicles__icon { margin-bottom: 1rem; }
.tpt-vehicles__card h3 { font-size: 1rem; font-weight: 700; color: var(--tpt-gray-900); margin: 0 0 0.25rem; }
.tpt-vehicles__card p { font-size: 0.85rem; color: var(--tpt-gray-400); margin: 0; }

/* ══════════════════════════════════════════
   MAP SECTION
   ══════════════════════════════════════════ */
.tpt-map-section { padding: 4rem 0; }
.tpt-map-section__badges { display: flex; gap: 1rem; justify-content: center; margin-bottom: 2rem; }
.tpt-map-section__map { height: 400px; border-radius: var(--tpt-radius-lg); border: 1px solid var(--tpt-gray-200); overflow: hidden; }

/* ══════════════════════════════════════════
   CTA SECTION
   ══════════════════════════════════════════ */
.tpt-cta { padding: 5rem 0; background: linear-gradient(135deg, var(--tpt-orange) 0%, #f5a623 100%); }
.tpt-cta__inner { text-align: center; max-width: 600px; margin: 0 auto; }
.tpt-cta__inner h2 { font-size: 2rem; font-weight: 800; color: var(--tpt-white); margin: 0 0 1rem; }
.tpt-cta__inner p { font-size: 1.1rem; color: rgba(255,255,255,0.85); margin: 0 0 2rem; }
.tpt-cta__buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ══════════════════════════════════════════
   PUBLIC SEARCH PAGE
   ══════════════════════════════════════════ */
.tpt-search-hero { background: var(--tpt-navy); padding: 3rem 0; text-align: center; }
.tpt-search-hero__title { font-size: 1.75rem; font-weight: 800; color: var(--tpt-white); margin: 0 0 0.5rem; }
.tpt-search-hero__sub { color: rgba(255,255,255,0.6); font-size: 1rem; margin: 0; }
.tpt-main--search { background: var(--tpt-gray-50); }

.tpt-search-layout { display: grid; grid-template-columns: 280px 1fr; gap: 2rem; }

.tpt-search-filters { background: var(--tpt-white); border-radius: var(--tpt-radius-lg); padding: 1.5rem; box-shadow: var(--tpt-shadow); align-self: start; position: sticky; top: 90px; }
.tpt-search-filters__title { font-size: 1rem; font-weight: 700; margin: 0 0 1.25rem; color: var(--tpt-gray-900); }
.tpt-search-filters__group { margin-bottom: 1rem; }
.tpt-search-filters__group label { display: block; font-size: 0.8rem; font-weight: 600; color: var(--tpt-gray-500); margin-bottom: 0.3rem; }
.tpt-search-filters__group input, .tpt-search-filters__group select { width: 100%; padding: 0.6rem 0.75rem; border: 1px solid var(--tpt-gray-300); border-radius: var(--tpt-radius); font-size: 0.875rem; font-family: var(--tpt-font); }
.tpt-search-filters__group input:focus, .tpt-search-filters__group select:focus { outline: none; border-color: var(--tpt-orange); }
.tpt-search-filters__checkbox { display: flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; color: var(--tpt-gray-700); cursor: pointer; }

/* Search results */
.tpt-search-results__header { margin-bottom: 1rem; font-size: 0.9rem; color: var(--tpt-gray-500); font-weight: 500; }
.tpt-search-results__map { height: 300px; border-radius: var(--tpt-radius-lg); margin-bottom: 1.5rem; border: 1px solid var(--tpt-gray-200); }
.tpt-search-results__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1rem; }
.tpt-search-results__empty { text-align: center; padding: 4rem 2rem; color: var(--tpt-gray-400); }
.tpt-search-results__empty svg { margin: 0 auto 1rem; }

/* Listing cards */
.tpt-listing-card { display: block; background: var(--tpt-white); border: 1px solid var(--tpt-gray-200); border-radius: var(--tpt-radius-lg); padding: 1.25rem; transition: box-shadow var(--tpt-transition), transform var(--tpt-transition); color: inherit; text-decoration: none; }
.tpt-listing-card:hover { box-shadow: var(--tpt-shadow-lg); transform: translateY(-2px); color: inherit; }
.tpt-listing-card__header { display: flex; justify-content: space-between; align-items: start; margin-bottom: 0.5rem; }
.tpt-listing-card__title { font-size: 1rem; font-weight: 700; color: var(--tpt-gray-900); margin: 0; }
.tpt-listing-card__urgent { background: #dc2626; color: #fff; font-size: 0.65rem; font-weight: 700; padding: 0.2rem 0.5rem; border-radius: 4px; text-transform: uppercase; letter-spacing: 0.05em; animation: tptPulse 2s infinite; }
@keyframes tptPulse { 0%,100% { opacity: 1; } 50% { opacity: 0.6; } }
.tpt-listing-card__route { display: flex; align-items: center; gap: 0.375rem; font-size: 0.9rem; color: var(--tpt-gray-600); margin-bottom: 0.75rem; }
.tpt-listing-card__route svg { color: var(--tpt-orange); flex-shrink: 0; }
.tpt-listing-card__meta { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 0.75rem; }
.tpt-listing-card__cat { background: var(--tpt-orange-light); color: var(--tpt-orange); font-size: 0.75rem; font-weight: 600; padding: 0.2rem 0.5rem; border-radius: 4px; }
.tpt-listing-card__meta span { font-size: 0.8rem; color: var(--tpt-gray-400); }
.tpt-listing-card__footer { display: flex; justify-content: space-between; align-items: center; padding-top: 0.75rem; border-top: 1px solid var(--tpt-gray-100); }
.tpt-listing-card__date { font-size: 0.8rem; color: var(--tpt-gray-400); }
.tpt-listing-card__budget { font-size: 1rem; font-weight: 700; color: var(--tpt-orange); }

/* Search page pagination */
.tpt-pagination { display: flex; gap: 0.375rem; justify-content: center; margin-top: 2rem; }
.tpt-pagination__item { display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: var(--tpt-radius); background: var(--tpt-white); border: 1px solid var(--tpt-gray-200); color: var(--tpt-gray-600); font-size: 0.875rem; font-weight: 500; text-decoration: none; }
.tpt-pagination__item:hover { border-color: var(--tpt-orange); color: var(--tpt-orange); }
.tpt-pagination--active { background: var(--tpt-orange) !important; color: var(--tpt-white) !important; border-color: var(--tpt-orange) !important; }

/* WP pagination override */
.tpt-pagination .nav-links { display: flex; gap: 0.375rem; justify-content: center; }
.tpt-pagination .page-numbers { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: var(--tpt-radius); background: var(--tpt-white); border: 1px solid var(--tpt-gray-200); color: var(--tpt-gray-600); font-size: 0.9rem; font-weight: 500; }
.tpt-pagination .page-numbers.current { background: var(--tpt-orange); color: var(--tpt-white); border-color: var(--tpt-orange); }

/* ══════════════════════════════════════════
   BLOG
   ══════════════════════════════════════════ */
.tpt-page-title { font-size: 2rem; font-weight: 800; color: var(--tpt-gray-900); margin: 0 0 2rem; letter-spacing: -0.02em; }
.tpt-posts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 1.5rem; }
.tpt-post-card { background: var(--tpt-white); border: 1px solid var(--tpt-gray-200); border-radius: var(--tpt-radius-lg); overflow: hidden; transition: box-shadow var(--tpt-transition), transform var(--tpt-transition); }
.tpt-post-card:hover { box-shadow: var(--tpt-shadow-lg); transform: translateY(-2px); }
.tpt-post-card__image img { width: 100%; height: 220px; object-fit: cover; }
.tpt-post-card__body { padding: 1.5rem; }
.tpt-post-card__meta { display: flex; gap: 0.5rem; font-size: 0.8rem; color: var(--tpt-gray-400); margin-bottom: 0.75rem; }
.tpt-post-card__title { font-size: 1.15rem; font-weight: 700; margin: 0 0 0.5rem; line-height: 1.3; }
.tpt-post-card__title a { color: var(--tpt-gray-900); }
.tpt-post-card__title a:hover { color: var(--tpt-orange); }
.tpt-post-card__excerpt { color: var(--tpt-gray-500); font-size: 0.9rem; margin: 0 0 1rem; }
.tpt-post-card__link { font-size: 0.875rem; font-weight: 600; color: var(--tpt-orange); }

/* Single post */
.tpt-single__header { margin-bottom: 2rem; }
.tpt-single__meta { display: flex; gap: 0.5rem; font-size: 0.875rem; color: var(--tpt-gray-400); margin-bottom: 1rem; }
.tpt-single__title { font-size: 2.25rem; font-weight: 800; line-height: 1.2; color: var(--tpt-gray-900); letter-spacing: -0.02em; }
.tpt-single__featured { margin-bottom: 2rem; border-radius: var(--tpt-radius-lg); overflow: hidden; }
.tpt-single__featured img { width: 100%; }
.tpt-content { font-size: 1.05rem; line-height: 1.75; color: var(--tpt-gray-700); }
.tpt-content h2, .tpt-content h3 { color: var(--tpt-gray-900); margin-top: 2rem; }
.tpt-content p { margin-bottom: 1.25rem; }
.tpt-content img { border-radius: var(--tpt-radius); margin: 1.5rem 0; }
.tpt-content blockquote { border-left: 4px solid var(--tpt-orange); padding-left: 1.5rem; margin: 1.5rem 0; color: var(--tpt-gray-600); font-style: italic; }
.tpt-content ul, .tpt-content ol { padding-left: 1.5rem; margin-bottom: 1.25rem; }
.tpt-single__tags { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tpt-tag { background: var(--tpt-orange-light); color: var(--tpt-orange); padding: 0.3rem 0.75rem; border-radius: 20px; font-size: 0.8rem; font-weight: 500; }
.tpt-single__nav { display: flex; justify-content: space-between; margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--tpt-gray-200); }
.tpt-single__nav a { color: var(--tpt-gray-600); font-size: 0.9rem; }
.tpt-single__nav a:hover { color: var(--tpt-orange); }

/* ══════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════ */
.tpt-footer { background: var(--tpt-navy); color: rgba(255,255,255,0.7); padding: 3rem 0 0; }
.tpt-footer__top { text-align: center; padding-bottom: 1.5rem; }
.tpt-footer__top img { max-height: 40px; width: auto; height: auto; max-width: 100%; display: block; margin: 0 auto 0.75rem; object-fit: contain; }
.tpt-footer__brand { font-size: 1.25rem; font-weight: 800; color: var(--tpt-white); }
.tpt-footer__desc { margin: 0.5rem auto 0; font-size: 0.9rem; color: rgba(255,255,255,0.5); max-width: 400px; }
.tpt-footer__legal { text-align: center; padding: 1.25rem 0 0; border-top: 1px solid rgba(255,255,255,0.1); }
.tpt-footer__legal a { color: rgba(255,255,255,0.6); font-size: 0.85rem; font-weight: 500; }
.tpt-footer__legal a:hover { color: var(--tpt-orange); }
.tpt-footer__sep { color: rgba(255,255,255,0.3); margin: 0 0.75rem; }
.tpt-footer__bottom { padding: 1rem 0; text-align: center; font-size: 0.8rem; color: rgba(255,255,255,0.4); }
.tpt-footer__bottom p { margin: 0; }
.tpt-footer__menu { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.5rem; }
.tpt-footer__menu a { color: rgba(255,255,255,0.4); font-size: 0.8rem; }
.tpt-footer__menu a:hover { color: var(--tpt-orange); }
.tpt-footer__credit { text-align: center; padding: 0.75rem 0 0; border-top: 1px solid rgba(255,255,255,0.06); }
.tpt-footer__credit a { color: rgba(255,255,255,0.3); font-size: 0.75rem; font-weight: 500; letter-spacing: 0.02em; }
.tpt-footer__credit a:hover { color: var(--tpt-orange); }

/* ══════════════════════════════════════════
   AUTH MODALS
   ══════════════════════════════════════════ */
.tpt-modal { display: none; position: fixed; inset: 0; z-index: 9999; align-items: center; justify-content: center; }
.tpt-modal.is-open { display: flex; }
.tpt-modal__overlay { position: absolute; inset: 0; background: rgba(13, 27, 46, 0.7); backdrop-filter: blur(4px); }
.tpt-modal__box {
    position: relative; background: var(--tpt-white); border-radius: 16px;
    box-shadow: 0 24px 80px rgba(0,0,0,0.25); width: 90%; max-width: 440px;
    max-height: 90vh; overflow-y: auto; animation: tptModalIn 0.25s ease;
}
.tpt-modal__box--wide { max-width: 560px; }
@keyframes tptModalIn { from { opacity: 0; transform: translateY(20px) scale(0.97); } to { opacity: 1; transform: translateY(0) scale(1); } }
.tpt-modal__close {
    position: absolute; top: 1rem; right: 1rem; width: 32px; height: 32px;
    border: none; background: var(--tpt-gray-100); border-radius: 50%; cursor: pointer;
    font-size: 1.25rem; color: var(--tpt-gray-500); display: flex; align-items: center;
    justify-content: center; transition: var(--tpt-transition); z-index: 1;
}
.tpt-modal__close:hover { background: var(--tpt-gray-200); color: var(--tpt-gray-800); }

.tpt-modal__header {
    padding: 2rem 2rem 0; text-align: center;
    border-bottom: none;
}
.tpt-modal__header h2 { font-size: 1.5rem; font-weight: 800; color: var(--tpt-gray-900); margin: 0; }

.tpt-modal__body { padding: 1.5rem 2rem 2rem; }

.tpt-modal__step-label { font-size: 0.9rem; color: var(--tpt-gray-500); margin: 0 0 1.25rem; text-align: center; }

.tpt-modal__alert {
    background: #fee2e2; color: #dc2626; border: 1px solid #fca5a5;
    padding: 0.75rem 1rem; border-radius: 8px; margin-bottom: 1rem; font-size: 0.875rem;
}

.tpt-modal__field { margin-bottom: 1rem; }
.tpt-modal__field label { display: block; font-size: 0.8rem; font-weight: 600; color: var(--tpt-gray-600); margin-bottom: 0.3rem; text-transform: uppercase; letter-spacing: 0.03em; }
.tpt-modal__field input, .tpt-modal__field select {
    width: 100%; padding: 0.7rem 0.85rem; border: 1px solid var(--tpt-gray-300);
    border-radius: 8px; font-size: 0.9rem; font-family: var(--tpt-font);
    color: var(--tpt-gray-800); transition: border-color var(--tpt-transition);
}
.tpt-modal__field input:focus, .tpt-modal__field select:focus { outline: none; border-color: var(--tpt-orange); box-shadow: 0 0 0 3px rgba(232,114,12,0.1); }
.tpt-modal__hint { font-size: 0.75rem; color: var(--tpt-gray-400); margin-top: 0.25rem; display: block; }

.tpt-modal__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.tpt-modal__check { margin-bottom: 0.75rem; }
.tpt-modal__check label { display: flex; align-items: start; gap: 0.5rem; font-size: 0.875rem; color: var(--tpt-gray-700); cursor: pointer; }
.tpt-modal__check input { margin-top: 3px; accent-color: var(--tpt-orange); }

.tpt-modal__submit {
    width: 100%; padding: 0.8rem; background: var(--tpt-orange); color: var(--tpt-white);
    border: none; border-radius: 10px; font-size: 1rem; font-weight: 700; cursor: pointer;
    font-family: var(--tpt-font); transition: background var(--tpt-transition); margin-top: 0.5rem;
}
.tpt-modal__submit:hover { background: var(--tpt-orange-dark); }

.tpt-modal__links { text-align: center; margin-top: 1.25rem; font-size: 0.875rem; }
.tpt-modal__links a { color: var(--tpt-orange); text-decoration: none; display: block; margin-bottom: 0.5rem; }

/* Role cards */
.tpt-modal__roles { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.tpt-modal__role {
    background: var(--tpt-white); border: 2px solid var(--tpt-gray-200); border-radius: 12px;
    padding: 1.75rem 1.25rem; text-align: center; cursor: pointer;
    transition: all var(--tpt-transition); font-family: var(--tpt-font);
}
.tpt-modal__role:hover { border-color: var(--tpt-orange); box-shadow: 0 4px 16px rgba(232,114,12,0.12); transform: translateY(-2px); }
.tpt-modal__role-icon { width: 56px; height: 56px; background: var(--tpt-orange-light); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem; }
.tpt-modal__role h3 { font-size: 1.05rem; font-weight: 700; color: var(--tpt-gray-900); margin: 0 0 0.35rem; }
.tpt-modal__role p { font-size: 0.8rem; color: var(--tpt-gray-500); margin: 0; }

@media (max-width: 640px) {
    .tpt-modal__box { width: 95%; margin: 1rem; }
    .tpt-modal__roles { grid-template-columns: 1fr; }
    .tpt-modal__row { grid-template-columns: 1fr; }
    .tpt-modal__body { padding: 1rem 1.25rem 1.5rem; }
    .tpt-modal__header { padding: 1.5rem 1.25rem 0; }
}

/* ══════════════════════════════════════════
   LANGUAGE SWITCHER (Polylang)
   ══════════════════════════════════════════ */
.tpt-lang { display: flex; align-items: center; gap: 0.25rem; list-style: none; margin: 0; padding: 0; }
.tpt-lang ul { display: flex; align-items: center; gap: 0.25rem; list-style: none; margin: 0; padding: 0; }
.tpt-lang li { display: inline-block; }
.tpt-lang li a {
    display: flex; align-items: center; gap: 0.35rem;
    padding: 0.3rem 0.5rem; border-radius: 4px;
    color: rgba(255,255,255,0.6); font-size: 0.8rem; font-weight: 600;
    text-decoration: none; text-transform: uppercase; letter-spacing: 0.05em;
    transition: var(--tpt-transition);
}
.tpt-lang li a:hover { color: var(--tpt-white); background: rgba(255,255,255,0.1); }
.tpt-lang li.current-lang a { color: var(--tpt-orange); background: rgba(232,114,12,0.15); }
.tpt-lang li a img { width: 18px; height: 12px; border-radius: 2px; vertical-align: middle; }

/* Language Dropdown (compact switcher) */
.tpt-lang-dropdown { position: relative; }
.tpt-lang-dropdown__current { display: flex; align-items: center; gap: 0.35rem; padding: 0.3rem 0.6rem; border-radius: 4px; color: rgba(255,255,255,0.8); font-size: 0.8rem; font-weight: 600; text-transform: uppercase; cursor: pointer; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15); transition: 0.2s; }
.tpt-lang-dropdown__current:hover { background: rgba(255,255,255,0.15); color: #fff; }
.tpt-lang-dropdown__current img { width: 18px; height: 12px; border-radius: 2px; }
.tpt-lang-dropdown__menu { display: none; position: absolute; right: 0; top: calc(100% + 4px); background: #fff; border-radius: 8px; box-shadow: 0 8px 24px rgba(0,0,0,0.15); min-width: 140px; padding: 0.35rem 0; z-index: 200; border: 1px solid #e5e7eb; list-style: none; margin: 0; }
.tpt-lang-dropdown__menu li { list-style: none; }
.tpt-lang-dropdown__menu.is-open { display: block; }
.tpt-lang-dropdown__menu a { display: flex; align-items: center; gap: 0.5rem; padding: 0.5rem 0.85rem; color: #374151; font-size: 0.85rem; font-weight: 500; text-decoration: none; }
.tpt-lang-dropdown__menu a:hover { background: #f3f4f6; color: #e8720c; }
.tpt-lang-dropdown__menu a img { width: 18px; height: 12px; border-radius: 2px; }

/* ══════════════════════════════════════════
   UTILITIES
   ══════════════════════════════════════════ */
.tpt-empty { text-align: center; padding: 4rem 1rem; color: var(--tpt-gray-400); }

/* ══════════════════════════════════════════
   PORTAL PAGES (plugin content inside theme wrapper)
   ══════════════════════════════════════════ */
.tp-portal .tpt-main { padding: 2rem 0; }
.tp-portal .tpt-container { max-width: 1200px; }

/* Portal forms */
.tp-form-group { margin-bottom: 1rem; }
.tp-label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--tpt-gray-600); margin-bottom: 0.3rem; }
.tp-input, .tp-select, .tp-textarea { width: 100%; padding: 0.65rem 0.75rem; border: 1px solid var(--tpt-gray-300); border-radius: 8px; font-size: 0.9rem; font-family: var(--tpt-font); color: var(--tpt-gray-800); }
.tp-input:focus, .tp-select:focus, .tp-textarea:focus { outline: none; border-color: var(--tpt-orange); box-shadow: 0 0 0 3px rgba(232,114,12,0.1); }
.tp-btn { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.625rem 1.25rem; border-radius: 8px; font-size: 0.9rem; font-weight: 600; text-decoration: none; border: none; cursor: pointer; transition: all 0.2s; font-family: var(--tpt-font); }
.tp-btn-primary { background: var(--tpt-orange); color: #fff; }
.tp-btn-primary:hover { background: var(--tpt-orange-dark); }
.tp-btn-secondary { background: #fff; color: var(--tpt-gray-700); border: 1px solid var(--tpt-gray-300); }
.tp-btn-danger { background: #dc2626; color: #fff; }
.tp-btn-small { padding: 0.375rem 0.75rem; font-size: 0.8rem; }

/* Portal alerts */
.tp-alert { padding: 1rem 1.25rem; border-radius: 8px; margin-bottom: 1rem; font-size: 0.9rem; }
.tp-alert-error { background: #fee2e2; color: #dc2626; border: 1px solid #fca5a5; }
.tp-alert-success { background: #dcfce7; color: #16a34a; border: 1px solid #86efac; }
.tp-alert-warning { background: #fef3c7; color: #d97706; border: 1px solid #fcd34d; }
.tp-alert-info { background: #e0f2fe; color: #0891b2; border: 1px solid #67e8f9; }

/* Portal tables */
.tp-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,0.08); }
.tp-table th { background: var(--tpt-gray-50); font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--tpt-gray-500); padding: 0.75rem 1rem; text-align: left; border-bottom: 1px solid var(--tpt-gray-200); }
.tp-table td { padding: 0.75rem 1rem; border-bottom: 1px solid var(--tpt-gray-100); font-size: 0.9rem; }
.tp-table tr:hover td { background: var(--tpt-gray-50); }

/* Portal cards */
.tp-card, .postbox { background: #fff; border: 1px solid var(--tpt-gray-200); border-radius: 12px; padding: 1.5rem; margin-bottom: 1.5rem; box-shadow: 0 1px 3px rgba(0,0,0,0.06); }

/* Portal status badges */
.tp-status { display: inline-block; padding: 0.2rem 0.6rem; border-radius: 12px; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; }
.tp-status--active { background: #dcfce7; color: #16a34a; }
.tp-status--pending { background: #fef3c7; color: #d97706; }
.tp-status--suspended, .tp-status--hold { background: #fee2e2; color: #dc2626; }

/* Portal auth pages */
.tp-auth-container { max-width: 440px; margin: 2rem auto; }
.tp-auth-title { font-size: 1.5rem; font-weight: 800; text-align: center; margin-bottom: 1.5rem; color: var(--tpt-gray-900); }
.tp-auth-links { text-align: center; margin-top: 1rem; font-size: 0.875rem; }
.tp-auth-links a { display: block; margin-bottom: 0.5rem; }

/* Portal role cards */
.tp-role-selector { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.tp-role-card { display: block; background: #fff; border: 2px solid var(--tpt-gray-200); border-radius: 12px; padding: 2rem 1.5rem; text-align: center; text-decoration: none; color: inherit; transition: all 0.2s; }
.tp-role-card:hover { border-color: var(--tpt-orange); box-shadow: 0 4px 16px rgba(232,114,12,0.12); }
.tp-role-title { font-size: 1.1rem; font-weight: 700; margin: 0.5rem 0; }
.tp-role-desc { font-size: 0.85rem; color: var(--tpt-gray-500); margin: 0; }

/* Portal form rows */
.tp-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.tp-form-half { }
.tp-form-actions { margin-top: 1.5rem; }
.tp-step-label { text-align: center; color: var(--tpt-gray-500); margin-bottom: 1.5rem; }
.tp-link { color: var(--tpt-orange); text-decoration: none; }
.tp-link:hover { color: var(--tpt-orange-dark); }
.tp-checkbox-label, .tp-radio-label { display: flex; align-items: start; gap: 0.5rem; font-size: 0.9rem; cursor: pointer; margin-bottom: 0.5rem; }
.tp-help-text { font-size: 0.8rem; color: var(--tpt-gray-400); margin-top: 0.25rem; }
.tp-empty { text-align: center; padding: 3rem; color: var(--tpt-gray-400); }

/* Portal detail sections */
.tp-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-bottom: 1.5rem; }
.tp-detail-section { background: #fff; border: 1px solid var(--tpt-gray-200); border-radius: 12px; padding: 1.5rem; }
.tp-section-title { font-size: 1rem; font-weight: 700; margin: 0 0 1rem; color: var(--tpt-gray-900); }
.tp-detail-list { margin: 0; }
.tp-detail-list dt { font-weight: 600; color: var(--tpt-gray-500); font-size: 0.85rem; margin-top: 0.75rem; }
.tp-detail-list dd { margin: 0.25rem 0 0; color: var(--tpt-gray-800); }

/* Portal timeline */
.tp-timeline { display: flex; gap: 0; margin: 1.5rem 0; }
.tp-timeline-step { flex: 1; text-align: center; position: relative; }
.tp-timeline-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--tpt-gray-300); margin: 0 auto 0.5rem; }
.tp-timeline-step-done .tp-timeline-dot { background: var(--tpt-orange); }
.tp-timeline-step-current .tp-timeline-dot { background: var(--tpt-orange); box-shadow: 0 0 0 4px rgba(232,114,12,0.2); }
.tp-timeline-label { font-size: 0.75rem; color: var(--tpt-gray-500); }
.tp-timeline-step-cancelled .tp-timeline-dot { background: #dc2626; }

/* Portal evidence photos */
.tp-evidence-photo { max-width: 100%; border-radius: 8px; margin: 0.5rem 0; }
.tp-signature-img { max-width: 300px; border: 1px solid var(--tpt-gray-200); border-radius: 8px; }

/* Portal pagination */
.tp-pagination { display: flex; gap: 0.25rem; justify-content: center; margin-top: 2rem; }

/* Portal chat */
.tp-chat { display: flex; flex-direction: column; height: 500px; background: #fff; border: 1px solid var(--tpt-gray-200); border-radius: 12px; overflow: hidden; }
.tp-chat-header { padding: 1rem; border-bottom: 1px solid var(--tpt-gray-200); font-weight: 600; }
.tp-chat-messages { flex: 1; overflow-y: auto; padding: 1rem; }
.tp-chat-message { margin-bottom: 0.75rem; display: flex; gap: 0.5rem; }
.tp-chat-message-mine { flex-direction: row-reverse; }
.tp-chat-avatar { width: 28px; height: 28px; background: var(--tpt-orange); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.7rem; font-weight: 700; color: #fff; flex-shrink: 0; }
.tp-chat-bubble { max-width: 70%; padding: 0.75rem 1rem; border-radius: 12px; font-size: 0.9rem; }
.tp-chat-message-mine .tp-chat-bubble { background: var(--tpt-orange); color: #fff; border-bottom-right-radius: 4px; }
.tp-chat-message-other .tp-chat-bubble { background: var(--tpt-gray-100); color: var(--tpt-gray-800); border-bottom-left-radius: 4px; }
.tp-chat-form { display: flex; gap: 0.5rem; padding: 1rem; border-top: 1px solid var(--tpt-gray-200); }
.tp-chat-input { flex: 1; }
.tp-chat-send { background: var(--tpt-orange); color: #fff; border: none; padding: 0.5rem 1rem; border-radius: 8px; cursor: pointer; font-weight: 600; }

/* Portal signature */
.tp-signature-pad { width: 100%; height: 200px; border: 2px dashed var(--tpt-gray-300); border-radius: 8px; cursor: crosshair; }
.tp-signature-actions { margin-top: 0.5rem; }

/* Portal legal notice */
.tp-legal-notice { background: #fef3c7; border: 1px solid #fcd34d; border-radius: 8px; padding: 1rem; font-size: 0.875rem; margin: 1rem 0; }

/* Portal GPS */
.tp-gps-capture { display: flex; align-items: center; gap: 0.5rem; }
.tp-gps-status { font-size: 0.85rem; }

@media (max-width: 768px) {
    .tp-detail-grid { grid-template-columns: 1fr; }
    .tp-form-row { grid-template-columns: 1fr; }
    .tp-role-selector { grid-template-columns: 1fr; }
    .tp-timeline { flex-direction: column; gap: 0.5rem; }
}

/* ══════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════ */
@media (max-width: 768px) {
    /* ── Header mobile menu ── */
    .tpt-header__inner { flex-wrap: wrap; height: auto; min-height: 64px; padding-top: 0.5rem; padding-bottom: 0.5rem; }
    .tpt-header__nav, .tpt-header__actions { display: none; }
    .tpt-header__toggle { display: flex; margin-left: auto; }

    /* Nav open state */
    .tpt-header__nav--open {
        display: block; order: 10; width: 100%; flex-basis: 100%;
        background: rgba(13,27,46,0.95); border-top: 1px solid rgba(255,255,255,0.1);
        padding: 1rem 0; z-index: 100;
    }
    .tpt-header__nav--open .tpt-header__menu { flex-direction: column; gap: 0; }
    .tpt-header__nav--open .tpt-header__menu a { padding: 0.75rem 1rem; border-radius: 0; font-size: 1rem; }
    .tpt-header__nav--open .tpt-header__menu a:hover,
    .tpt-header__nav--open .tpt-header__menu .current-menu-item > a { background: rgba(255,255,255,0.08); }
    .tpt-header__nav--open .tpt-header__menu .sub-menu { position: static; background: rgba(0,0,0,0.15); border-radius: 0; box-shadow: none; padding: 0; }
    .tpt-header__nav--open .tpt-header__menu .sub-menu a { padding-left: 2rem; font-size: 0.9rem; }
    .tpt-header__nav--open .tpt-header__menu li:hover > .sub-menu { display: block; }

    /* Actions open state */
    .tpt-header__actions--open {
        display: flex; flex-direction: column; order: 11; width: 100%; flex-basis: 100%;
        padding: 0.75rem 1rem; gap: 0.75rem;
        border-top: 1px solid rgba(255,255,255,0.08); background: rgba(13,27,46,0.95);
    }
    .tpt-header__actions--open .tpt-btn { width: 100%; justify-content: center; }
    .tpt-header__actions--open .tpt-header__user { width: 100%; }
    .tpt-header__actions--open .tpt-header__user-btn { width: 100%; justify-content: center; }

    /* Language switcher inside mobile menu */
    .tpt-header__actions--open .tpt-lang { justify-content: center; flex-wrap: wrap; }
    .tpt-header__actions--open .tpt-lang-dropdown { width: 100%; }
    .tpt-header__actions--open .tpt-lang-dropdown__current { width: 100%; justify-content: center; }
    .tpt-header__actions--open .tpt-lang-dropdown__menu { right: auto; left: 50%; transform: translateX(-50%); }

    /* ── Hero mobile ── */
    .tpt-hero { min-height: 70vh; padding: 100px 0 2rem; }
    .tpt-hero__title { font-size: clamp(1.5rem, 6vw, 2rem); }
    .tpt-hero__subtitle { font-size: 1rem; }
    .tpt-hero__cta { flex-direction: column; align-items: center; }
    .tpt-hero__cta-btn { width: 100%; max-width: 320px; min-width: auto; justify-content: center; }
    .tpt-hero__badges { display: none; }
    .tpt-search-bar__recent { grid-template-columns: 1fr; }

    /* ── Search bar mobile ── */
    .tpt-search-bar { max-width: 100%; padding: 0; }
    .tpt-search-bar__card { padding: 1.25rem; border-radius: 12px; margin: 0 auto; max-width: 500px; }
    .tpt-search-bar__fields { flex-direction: column; align-items: stretch; }
    .tpt-search-bar__field { flex: none; width: 100%; }
    .tpt-search-bar__field label { text-align: center; }
    .tpt-search-bar__field input,
    .tpt-search-bar__field select { width: 100%; }
    .tpt-search-bar__fields .tpt-btn { width: 100%; justify-content: center; }
    .tpt-search-bar__arrow { transform: rotate(90deg); justify-content: center; padding: 0.25rem 0; }
    .tpt-search-bar__arrow svg { width: 20px; height: 20px; }
    .tpt-search-bar__title { text-align: center; }
    .tpt-search-bar__recent { margin-left: auto; margin-right: auto; max-width: 500px; }

    /* ── Features / How / Vehicles grids ── */
    .tpt-features__grid { grid-template-columns: 1fr; }
    .tpt-how__grid { grid-template-columns: 1fr 1fr; }
    .tpt-how__step::after { display: none; }
    .tpt-vehicles__grid { grid-template-columns: 1fr 1fr; }

    /* ── Map section ── */
    .tpt-map-section__badges { flex-wrap: wrap; justify-content: center; gap: 0.5rem; }
    .tpt-map-section__map { height: 280px; }

    /* ── Section titles ── */
    .tpt-section-title { font-size: 1.5rem; }
    .tpt-section-subtitle { font-size: 0.95rem; margin-bottom: 2rem; }

    /* ── CTA section ── */
    .tpt-cta { padding: 3rem 0; }
    .tpt-cta__inner h2 { font-size: 1.5rem; }
    .tpt-cta__buttons { flex-direction: column; align-items: center; }
    .tpt-cta__buttons .tpt-btn { width: 100%; max-width: 280px; justify-content: center; }

    /* ── Search page ── */
    .tpt-search-layout { grid-template-columns: 1fr; }
    .tpt-search-filters { position: static; }
    .tpt-search-results__grid { grid-template-columns: 1fr; }
    .tpt-posts-grid { grid-template-columns: 1fr; }

    /* ── Footer mobile ── */
    .tpt-footer__legal a { font-size: 0.8rem; }
    .tpt-footer__sep { margin: 0 0.4rem; }
    .tpt-footer__bottom { flex-direction: column; gap: 0.75rem; text-align: center; }
    .tpt-footer__menu { justify-content: center; flex-wrap: wrap; }

    /* ── Single post ── */
    .tpt-single__title { font-size: 1.5rem; }
    .tpt-single__nav { flex-direction: column; gap: 0.75rem; }

    /* ── Portal pages ── */
    .tpt-main { padding: 1.5rem 0; }
    .tpt-container { padding: 0 1rem; }
    .tp-portal .tpt-main { padding: 1.5rem 0; }
    .tp-portal .tpt-container { padding: 0 1rem; }
    .tp-chat { height: 400px; }
    .tp-table { font-size: 0.8rem; }
    .tp-table th, .tp-table td { padding: 0.5rem 0.6rem; }
}

@media (max-width: 480px) {
    .tpt-header__inner { gap: 0.75rem; }
    .tpt-hero__title { font-size: 1.35rem; }
    .tpt-hero__badges { display: none; }
    .tpt-how__grid { grid-template-columns: 1fr; }
    .tpt-vehicles__grid { grid-template-columns: 1fr; }
    .tpt-features { padding: 2.5rem 0; }
    .tpt-how { padding: 2.5rem 0; }
    .tpt-vehicles { padding: 2.5rem 0; }
    .tpt-search-bar { margin-top: 1rem; }
    .tpt-search-bar__card { padding: 1rem; max-width: 100%; }
    .tpt-search-bar__recent { max-width: 100%; }
    .tpt-container { padding: 0 0.75rem; }
    .tpt-section-title { font-size: 1.3rem; }
    .tpt-footer__bottom p { font-size: 0.7rem; }
    .tpt-listing-card { padding: 1rem; }
    .tpt-modal__box { width: 98%; margin: 0.5rem; }
}
