/* ============================================================================
   Trainer Profile v178 - Complete CSS Redesign
   Architecture: Single scrollable page (no tabs), mentorship woven into identity
   ============================================================================ */

:root {
    /* Colors */
    --tp-gold: #FCB900;
    --tp-gold-hover: #e5a800;
    --tp-gold-soft: rgba(252, 185, 0, 0.06);
    --tp-gold-glow: rgba(252, 185, 0, 0.2);
    --tp-gold-border: rgba(252, 185, 0, 0.15);
    --tp-black: #0A0A0A;
    --tp-white: #fff;
    
    /* Grays */
    --tp-g50: #fafafa;
    --tp-g100: #f4f4f5;
    --tp-g200: #e4e4e7;
    --tp-g300: #d4d4d8;
    --tp-g400: #a1a1aa;
    --tp-g500: #71717a;
    --tp-g600: #52525b;
    --tp-g700: #3f3f46;
    
    /* Accent colors */
    --tp-green: #16a34a;
    --tp-green-soft: rgba(22, 163, 74, 0.08);
    --tp-blue: #3B82F6;
    --tp-blue-soft: rgba(59, 130, 246, 0.08);
    
    /* Typography */
    --tp-sans: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --tp-serif: 'DM Serif Display', Georgia, serif;
    
    /* Sizing */
    --tp-r: 14px;
    --tp-rs: 10px;
    
    /* Effects */
    --tp-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 8px 24px rgba(0, 0, 0, 0.06);
    --tp-shadow-lg: 0 4px 12px rgba(0, 0, 0, 0.04), 0 24px 48px rgba(0, 0, 0, 0.08);
    --tp-ease: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Safe area insets */
    --safe-t: env(safe-area-inset-top, 0px);
    --safe-b: env(safe-area-inset-bottom, 0px);
}

/* ============================================================================
   Reset & Astra Theme Overrides
   ============================================================================ */

body.tp178 {
    background-color: var(--tp-white);
    color: var(--tp-g700);
    font-family: var(--tp-sans);
    font-size: 16px;
    line-height: 1.6;
}

body.tp178 .ast-container {
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

body.tp178 .site-header,
body.tp178 .main-header-bar,
body.tp178 #masthead,
body.tp178 .ast-header-navigation,
body.tp178 .ast-mobile-header-wrap,
body.tp178 .ast-above-header-wrap,
body.tp178 .ast-below-header-wrap,
body.tp178 #ast-fixed-header,
body.tp178 .ast-primary-header,
body.tp178 .ast-mobile-popup-drawer,
body.tp178 .ast-builder-header-row,
body.tp178 .ast-main-header-wrap,
body.tp178 .ast-above-header,
body.tp178 .ast-below-header,
body.tp178 .wp-custom-header,
body.tp178 .footer-widget-area,
body.tp178 [class*="footer"],
body.tp178 .ast-footer-widget-area,
body.tp178 .ast-footer,
body.tp178 .ast-builder-footer-row,
body.tp178 #wpc-chat-widget-frame,
body.tp178 .wpc-widget-icon,
body.tp178 header.ptp-header,
body.tp178 #ptpHeader,
body.tp178 .ptp-bottom-nav,
body.tp178 .ptp-nav,
body.tp178 .ptp-top-nav,
body.tp178 .ptp-main-nav,
body.tp178 .site-navigation,
body.tp178 #site-navigation,
body.tp178 .main-navigation,
body.tp178 .elementor-location-header,
body.tp178 [data-elementor-type="header"],
body.tp178 #page > header:not(.tp178-nav),
body.tp178 #page > footer,
body.tp178 #page > nav {
    display: none !important;
    height: 0 !important;
    overflow: hidden !important;
    pointer-events: none !important;
}

body.tp178 main.tp178-profile {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
}

/* ============================================================================
   Hero Section — v178.1 mobile-optimized
   ============================================================================ */

.tp178-hero {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 5;
    max-height: 560px;
    min-height: 420px;
    background-color: #0A0A0A;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Force the hero image to behave as a normal cover image — no rounding, no clipping */
.tp178-hero > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 25%;
    display: block;
    border-radius: 0 !important;
    clip-path: none !important;
    -webkit-clip-path: none !important;
    mask: none !important;
    -webkit-mask: none !important;
    z-index: 0;
}

@media (min-width: 640px) {
    .tp178-hero {
        aspect-ratio: 16 / 10;
        max-height: 620px;
    }
}

@media (min-width: 1025px) {
    .tp178-hero {
        aspect-ratio: auto;
        height: 480px;
        max-height: 480px;
    }
}

@media (min-width: 1400px) {
    .tp178-hero {
        height: 560px;
        max-height: 560px;
    }
}

.tp178-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0.35) 55%, rgba(0, 0, 0, 0.75) 100%);
    z-index: 1;
    pointer-events: none;
}

/* Fallback when no cover photo */
.tp178-hero-noimg {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 40%, #0f3460 70%, #1a1a2e 100%);
}
.tp178-hero-noimg::before {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.3));
}

/* Hero navigation bar */
.tp178-nav {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: calc(var(--safe-t) + 12px) 16px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
}

@media (min-width: 768px) {
    .tp178-nav {
        padding: var(--safe-t) 32px 20px;
    }
}

.tp178-nav-l,
.tp178-nav-r {
    display: flex;
    align-items: center;
    gap: 16px;
}

.tp178-nav-btn {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--tp-white);
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--tp-ease);
}

.tp178-nav-btn:hover {
    background: rgba(255, 255, 255, 0.15);
}

.tp178-nav-logo {
    width: 32px;
    height: 32px;
    background: var(--tp-gold);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--tp-black);
    font-weight: 700;
    font-size: 14px;
    font-family: var(--tp-serif);
}

.tp178-nav-links {
    display: flex;
    gap: 12px;
}

.tp178-nav-link {
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: var(--tp-white);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--tp-ease);
    text-decoration: none;
}

.tp178-nav-link:hover {
    background: rgba(255, 255, 255, 0.15);
}

@media (max-width: 480px) {
    .tp178-nav-link {
        display: none;
    }
    
    .tp178-nav-link.show-mobile {
        display: block;
    }
}

/* Hero info at bottom */
.tp178-hero-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px 20px;
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.3));
    z-index: 5;
}

@media (min-width: 768px) {
    .tp178-hero-info {
        padding: 32px;
    }
}

.tp178-badge {
    display: inline-block;
    padding: 6px 12px;
    background: var(--tp-gold);
    color: var(--tp-black);
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.tp178-name {
    font-family: var(--tp-serif);
    font-size: 32px;
    font-weight: 700;
    color: var(--tp-white);
    line-height: 1.2;
    margin-bottom: 8px;
}

@media (min-width: 480px) {
    .tp178-name {
        font-size: 40px;
    }
}

@media (min-width: 1025px) {
    .tp178-name {
        font-size: 48px;
    }
}

.tp178-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    flex-wrap: wrap;
}

.tp178-meta-i {
    display: flex;
    align-items: center;
    gap: 4px;
}

.tp178-meta-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--tp-gold);
}

.tp178-badge-mentor {
    position: absolute;
    top: 24px;
    right: 20px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: var(--tp-white);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 5;
}

@media (min-width: 768px) {
    .tp178-badge-mentor {
        top: 32px;
        right: 32px;
    }
}

/* ============================================================================
   Stats Bar
   ============================================================================ */

.tp178-stats {
    width: 100%;
    padding: 24px 20px;
    background: var(--tp-white);
    border-bottom: 1px solid var(--tp-g100);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (min-width: 420px) {
    .tp178-stats {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 768px) {
    .tp178-stats {
        padding: 32px;
        gap: 32px;
    }
}

.tp178-stat {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tp178-stat-v {
    font-family: var(--tp-serif);
    font-size: 28px;
    font-weight: 700;
    color: var(--tp-black);
    line-height: 1;
}

@media (min-width: 768px) {
    .tp178-stat-v {
        font-size: 32px;
    }
}

.tp178-stat-l {
    font-size: 12px;
    color: var(--tp-g500);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.tp178-stat:first-child .tp178-stat-v {
    color: var(--tp-gold);
}

/* ============================================================================
   Main Layout & Content Sections
   ============================================================================ */

.tp178-layout {
    display: flex;
    min-height: 100vh;
}

@media (max-width: 767px) {
    .tp178-layout {
        flex-direction: column;
        padding-bottom: 140px;
    }
}

@media (min-width: 768px) {
    .tp178-layout {
        display: grid;
        grid-template-columns: 1fr 400px;
        gap: 24px;
        padding: 24px;
        margin: 0 auto;
        max-width: 1200px;
    }
}

@media (min-width: 1200px) {
    .tp178-layout {
        grid-template-columns: 1fr 440px;
        gap: 32px;
        padding: 32px;
        max-width: 1400px;
    }
}

@media (min-width: 1600px) {
    .tp178-layout {
        max-width: 1600px;
        margin: 0 auto;
    }
}

.tp178-content {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Section styling */
.tp178-section {
    padding: 24px 20px;
    border-bottom: 1px solid var(--tp-g100);
    background: var(--tp-white);
}

@media (min-width: 768px) {
    .tp178-section {
        padding: 28px;
    }
}

.tp178-sh {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.tp178-sh-ico {
    width: 40px;
    height: 40px;
    background: var(--tp-gold-soft);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--tp-gold);
    font-size: 18px;
}

.tp178-sh-lbl {
    font-family: var(--tp-serif);
    font-size: 20px;
    font-weight: 700;
    color: var(--tp-black);
}

.tp178-section-body {
    font-size: 16px;
    line-height: 1.7;
    color: var(--tp-g600);
}

/* ============================================================================
   Mentorship Identity Section
   ============================================================================ */

.tp178-mentorship {
    background: linear-gradient(160deg, #FDFCF7 0%, #FFF9E5 50%, #FFFDF5 100%);
    border-top: 2px solid var(--tp-gold);
    border-bottom: 2px solid var(--tp-gold);
    margin: 0 20px;
    padding: 24px 20px;
}

@media (min-width: 768px) {
    .tp178-mentorship {
        border-radius: 16px;
        margin: 24px 0;
        padding: 32px;
    }
}

.tp178-mentorship-hdr {
    margin-bottom: 24px;
}

.tp178-mentorship-title {
    font-family: var(--tp-serif);
    font-size: 24px;
    font-weight: 700;
    color: var(--tp-black);
    margin-bottom: 8px;
}

.tp178-mentorship-bio {
    font-size: 14px;
    color: var(--tp-g600);
    line-height: 1.6;
}

/* Mentorship stats grid */
.tp178-mstats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 28px;
}

@media (min-width: 768px) {
    .tp178-mstats {
        gap: 24px;
        margin-bottom: 32px;
    }
}

.tp178-mstat {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(252, 185, 0, 0.1);
    border-radius: 12px;
    padding: 16px;
    text-align: center;
}

.tp178-mstat-v {
    font-family: var(--tp-serif);
    font-size: 24px;
    font-weight: 700;
    color: var(--tp-gold);
    line-height: 1;
    margin-bottom: 4px;
}

.tp178-mstat-l {
    font-size: 12px;
    color: var(--tp-g600);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

/* Timeline */
.tp178-timeline {
    margin-bottom: 28px;
    padding-bottom: 28px;
    border-bottom: 1px solid rgba(252, 185, 0, 0.15);
}

.tp178-timeline-title {
    font-family: var(--tp-serif);
    font-size: 16px;
    font-weight: 700;
    color: var(--tp-black);
    margin-bottom: 16px;
}

.tp178-timeline-item {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
    position: relative;
    padding-left: 24px;
}

.tp178-timeline-item::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 12px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--tp-gold);
    border: 3px solid var(--tp-white);
}

.tp178-timeline-dot {
    flex-shrink: 0;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-top: 2px;
    background: var(--tp-gold);
}

.tp178-timeline-content {
    flex: 1;
}

.tp178-timeline-time {
    font-size: 12px;
    color: var(--tp-g500);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.tp178-timeline-desc {
    font-size: 14px;
    color: var(--tp-g600);
    line-height: 1.5;
}

/* Feature checklist */
.tp178-includes {
    margin-bottom: 24px;
}

.tp178-includes-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--tp-black);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.tp178-include {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    color: var(--tp-g600);
    margin-bottom: 8px;
    line-height: 1.5;
}

.tp178-include-chk {
    color: var(--tp-green);
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 2px;
}

/* Mentee stories */
.tp178-mentee-stories {
    margin-bottom: 24px;
}

.tp178-stories-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--tp-black);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.tp178-story-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

@media (min-width: 480px) {
    .tp178-story-cards {
        grid-template-columns: 1fr 1fr;
    }
}

.tp178-story-card {
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(252, 185, 0, 0.1);
    border-radius: 12px;
    padding: 14px;
}

.tp178-story-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--tp-gold), #FFD700);
    margin-bottom: 8px;
}

.tp178-story-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--tp-black);
    margin-bottom: 4px;
}

.tp178-story-result {
    font-size: 12px;
    background: var(--tp-green-soft);
    color: var(--tp-green);
    padding: 3px 8px;
    border-radius: 4px;
    display: inline-block;
    font-weight: 600;
}

/* Mentorship CTA */
.tp178-mentor-ctas {
    display: flex;
    gap: 12px;
}

.tp178-mentor-cta {
    flex: 1;
    padding: 14px 20px;
    background: var(--tp-black);
    color: var(--tp-gold);
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all var(--tp-ease);
}

.tp178-mentor-cta:hover {
    background: var(--tp-g700);
    transform: translateY(-2px);
}

.tp178-mentor-urgency {
    font-size: 12px;
    color: var(--tp-g600);
    text-align: center;
    margin-top: 12px;
    font-weight: 500;
}

/* ============================================================================
   Gallery Section
   ============================================================================ */

.tp178-gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 24px 20px 0;
}

@media (min-width: 480px) {
    .tp178-gallery {
        grid-template-columns: repeat(4, 1fr);
        gap: 16px;
    }
}

@media (min-width: 768px) {
    .tp178-gallery {
        margin: 0;
    }
}

.tp178-gallery-img {
    aspect-ratio: 1;
    border-radius: 12px;
    overflow: hidden;
    background: var(--tp-g100);
    cursor: pointer;
    transition: all var(--tp-ease);
}

.tp178-gallery-img:hover {
    transform: scale(1.05);
}

.tp178-gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ============================================================================
   Reviews Section
   ============================================================================ */

.tp178-rev-summary {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--tp-g100);
}

.tp178-rev-avg-num {
    font-family: var(--tp-serif);
    font-size: 40px;
    font-weight: 700;
    color: var(--tp-black);
    line-height: 1;
}

.tp178-rev-bars {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.tp178-rev-bar-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--tp-g600);
}

.tp178-rev-bar-track {
    width: 120px;
    height: 6px;
    background: var(--tp-g200);
    border-radius: 3px;
    overflow: hidden;
}

.tp178-rev-bar-fill {
    height: 100%;
    background: var(--tp-gold);
    border-radius: 3px;
}

/* Review filters */
.tp178-rev-filters {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    overflow-x: auto;
    padding-bottom: 8px;
}

.tp178-rev-chip {
    padding: 8px 14px;
    background: var(--tp-g100);
    border: 1px solid transparent;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: var(--tp-g600);
    cursor: pointer;
    white-space: nowrap;
    transition: all var(--tp-ease);
}

.tp178-rev-chip-on {
    background: var(--tp-gold);
    color: var(--tp-black);
    border-color: var(--tp-gold);
}

/* Review cards */
.tp178-rev {
    padding: 20px;
    border: 1px solid var(--tp-g100);
    border-radius: 12px;
    margin-bottom: 16px;
    background: var(--tp-white);
}

.tp178-rev-hd {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
}

.tp178-rev-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--tp-blue), #7DD3FC);
    flex-shrink: 0;
}

.tp178-rev-avatar-mentor {
    background: linear-gradient(135deg, var(--tp-gold), #FFD700);
}

.tp178-rev-meta {
    flex: 1;
}

.tp178-rev-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--tp-black);
    margin-bottom: 2px;
}

.tp178-rev-verified {
    display: inline-block;
    font-size: 11px;
    color: var(--tp-green);
    font-weight: 600;
}

.tp178-rev-date {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--tp-g500);
    margin-top: 4px;
}

.tp178-rev-stars {
    color: var(--tp-gold);
}

.tp178-rev-txt {
    font-size: 14px;
    color: var(--tp-g600);
    line-height: 1.6;
    margin-bottom: 12px;
}

.tp178-rev-response {
    margin-top: 12px;
    padding-top: 12px;
    padding-left: 12px;
    border-left: 3px solid var(--tp-gold);
}

.tp178-rev-response-hd {
    font-size: 11px;
    color: var(--tp-g500);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    margin-bottom: 4px;
}

.tp178-rev-response-txt {
    font-size: 13px;
    color: var(--tp-g600);
    line-height: 1.6;
}

/* ============================================================================
   Locations Section
   ============================================================================ */

.tp178-locs-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

@media (min-width: 480px) {
    .tp178-locs-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.tp178-loc {
    padding: 16px;
    border: 1px solid var(--tp-g100);
    border-radius: 12px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.tp178-loc-ico {
    width: 24px;
    height: 24px;
    background: var(--tp-gold-soft);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--tp-gold);
    font-size: 12px;
    flex-shrink: 0;
}

.tp178-loc-info {
    flex: 1;
}

.tp178-loc-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--tp-black);
    margin-bottom: 4px;
}

.tp178-loc-addr {
    font-size: 12px;
    color: var(--tp-g600);
    line-height: 1.5;
}

/* ============================================================================
   Tags / Specialties
   ============================================================================ */

.tp178-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tp178-tag {
    display: inline-block;
    padding: 6px 12px;
    background: var(--tp-gold-soft);
    border: 1px solid var(--tp-gold-border);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: var(--tp-gold);
}

/* ============================================================================
   Desktop Sidebar
   ============================================================================ */

.tp178-sidebar {
    display: none;
}

@media (min-width: 768px) {
    .tp178-sidebar {
        display: flex;
        flex-direction: column;
        gap: 16px;
        position: sticky;
        top: 24px;
        height: fit-content;
    }
}

@media (min-width: 1200px) {
    .tp178-sidebar {
        gap: 20px;
    }
}

/* Training booking card */
.tp178-sidebar-card {
    padding: 24px;
    border: 1px solid var(--tp-g100);
    border-radius: 16px;
    background: var(--tp-white);
    box-shadow: var(--tp-shadow);
}

.tp178-sidebar-rate-wrap {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--tp-g100);
}

.tp178-sidebar-rate-label {
    font-size: 12px;
    color: var(--tp-g500);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    margin-bottom: 4px;
}

.tp178-sidebar-rate {
    font-family: var(--tp-serif);
    font-size: 28px;
    font-weight: 700;
    color: var(--tp-gold);
    line-height: 1;
}

.tp178-sidebar-rate-unit {
    font-size: 12px;
    color: var(--tp-g500);
    margin-top: 2px;
}

/* Package selector */
.tp178-sidebar-pkgs-label {
    font-size: 12px;
    color: var(--tp-g500);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    margin-bottom: 10px;
    display: block;
}

.tp178-sidebar-pkgs {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.tp178-pkg {
    padding: 12px 14px;
    border: 1px solid var(--tp-g200);
    border-radius: 10px;
    background: var(--tp-white);
    cursor: pointer;
    transition: all var(--tp-ease);
    font-size: 13px;
    color: var(--tp-g600);
    font-weight: 500;
}

.tp178-pkg:hover {
    border-color: var(--tp-gold-border);
    background: var(--tp-gold-soft);
}

.tp178-pkg.sel {
    border-color: var(--tp-gold);
    background: var(--tp-gold-soft);
    color: var(--tp-black);
    font-weight: 600;
}

/* Player count selector */
.tp178-sidebar-players-label {
    font-size: 12px;
    color: var(--tp-g500);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    margin-bottom: 10px;
    display: block;
}

.tp178-sidebar-players {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
    margin-bottom: 20px;
}

.tp178-player-btn {
    padding: 12px;
    border: 1px solid var(--tp-g200);
    border-radius: 10px;
    text-align: center;
    background: var(--tp-white);
    cursor: pointer;
    transition: all var(--tp-ease);
    font-size: 12px;
    color: var(--tp-g600);
}

.tp178-player-btn:hover {
    border-color: var(--tp-gold-border);
    background: var(--tp-gold-soft);
}

.tp178-player-btn.sel {
    border-color: var(--tp-gold);
    background: var(--tp-gold-soft);
    color: var(--tp-black);
    font-weight: 600;
}

.tp178-player-ico {
    font-size: 18px;
    margin-bottom: 4px;
}

.tp178-player-disc {
    font-size: 10px;
    color: var(--tp-green);
    font-weight: 600;
    margin-top: 2px;
}

/* Book CTA in sidebar */
.tp178-sidebar-book {
    width: 100%;
    padding: 16px;
    background: var(--tp-gold);
    color: var(--tp-black);
    border: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all var(--tp-ease);
    margin-bottom: 12px;
}

.tp178-sidebar-book:hover {
    background: var(--tp-gold-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(252, 185, 0, 0.2);
}

/* Mentorship sidebar card */
.tp178-sidebar-mentor {
    padding: 24px;
    background: linear-gradient(160deg, #FDFCF7 0%, #FFF9E5 50%, #FFFDF5 100%);
    border: 1px solid var(--tp-gold-border);
    border-radius: 16px;
    box-shadow: var(--tp-shadow);
}

.tp178-sidebar-mentor-hdr {
    font-family: var(--tp-serif);
    font-size: 18px;
    font-weight: 700;
    color: var(--tp-black);
    margin-bottom: 8px;
}

.tp178-sidebar-mentor-desc {
    font-size: 13px;
    color: var(--tp-g600);
    line-height: 1.5;
    margin-bottom: 16px;
}

.tp178-sidebar-mentor-btn {
    width: 100%;
    padding: 14px;
    background: var(--tp-black);
    color: var(--tp-gold);
    border: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all var(--tp-ease);
}

.tp178-sidebar-mentor-btn:hover {
    background: var(--tp-g700);
    transform: translateY(-2px);
}

/* Message button */
.tp178-sidebar-msg {
    width: 100%;
    padding: 14px;
    background: var(--tp-white);
    color: var(--tp-black);
    border: 1px solid var(--tp-g200);
    border-radius: 10px;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all var(--tp-ease);
}

.tp178-sidebar-msg:hover {
    border-color: var(--tp-gold);
    background: var(--tp-gold-soft);
}

/* ============================================================================
   Mobile Bottom Bar
   ============================================================================ */

/* v301.20: Mobile bottom bar — enhanced with safe-area, backdrop blur, better tap targets */
.tp178-mobile-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
    background: rgba(255, 255, 255, 0.96);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    backdrop-filter: saturate(180%) blur(20px);
    border-top: 1px solid var(--tp-g200);
    z-index: 100;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
}

@media (max-width: 1024px) {
    .tp178-mobile-bar {
        display: flex;
        gap: 10px;
    }
}

/* v301.20: Hide mobile bar on actual desktops where sidebar is visible */
@media (min-width: 1025px) {
    .tp178-mobile-bar {
        display: none !important;
    }
}

.tp178-mobile-btn {
    flex: 1;
    padding: 14px;
    border: none;
    border-radius: 12px;
    font-family: var(--tp-sans);
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    cursor: pointer;
    min-height: 52px;
    transition: all var(--tp-ease);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.tp178-mobile-book {
    background: var(--tp-gold);
    color: var(--tp-black);
    box-shadow: 0 2px 8px rgba(252, 185, 0, 0.3);
}

.tp178-mobile-book:active {
    transform: scale(0.97);
    box-shadow: 0 1px 4px rgba(252, 185, 0, 0.2);
}

.tp178-mobile-mentor {
    background: var(--tp-black);
    color: var(--tp-gold);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.tp178-mobile-mentor:active {
    transform: scale(0.97);
}

/* ============================================================================
   Booking Sheet / Modal
   ============================================================================ */

.tp178-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 200;
    opacity: 0;
    animation: fadeIn 0.2s ease-out forwards;
}

.tp178-overlay.vis {
    display: block;
}

.tp178-sheet {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    max-height: 90vh;
    background: var(--tp-white);
    border-radius: 24px 24px 0 0;
    z-index: 201;
    overflow-y: auto;
    animation: slideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (max-width: 767px) {
    .tp178-sheet {
        display: flex;
        flex-direction: column;
    }
    
    .tp178-sheet.vis {
        display: flex;
    }
}

@media (min-width: 768px) {
    .tp178-sheet {
        position: fixed;
        top: 50%;
        left: 50%;
        right: auto;
        bottom: auto;
        width: 90%;
        max-width: 600px;
        height: auto;
        max-height: 90vh;
        border-radius: 16px;
        transform: translate(-50%, -50%);
        animation: scaleIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .tp178-sheet.vis {
        display: block;
    }
}

/* Sheet handle (mobile) */
.tp178-sheet-handle {
    display: flex;
    justify-content: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--tp-g100);
}

@media (min-width: 768px) {
    .tp178-sheet-handle {
        display: none;
    }
}

.tp178-handle-bar {
    width: 40px;
    height: 4px;
    background: var(--tp-g300);
    border-radius: 2px;
}

/* Sheet header */
.tp178-sheet-header {
    padding: 20px;
    border-bottom: 1px solid var(--tp-g100);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

@media (min-width: 768px) {
    .tp178-sheet-header {
        padding: 24px;
    }
}

.tp178-sheet-title {
    font-family: var(--tp-serif);
    font-size: 20px;
    font-weight: 700;
    color: var(--tp-black);
}

@media (min-width: 768px) {
    .tp178-sheet-title {
        font-size: 24px;
    }
}

.tp178-sheet-close {
    width: 32px;
    height: 32px;
    border: none;
    background: var(--tp-g100);
    border-radius: 6px;
    color: var(--tp-g600);
    font-size: 18px;
    cursor: pointer;
    transition: all var(--tp-ease);
}

.tp178-sheet-close:hover {
    background: var(--tp-g200);
}

/* Sheet body */
.tp178-sheet-body {
    padding: 20px;
    flex: 1;
    overflow-y: auto;
}

@media (min-width: 768px) {
    .tp178-sheet-body {
        padding: 24px;
        max-height: calc(90vh - 140px);
    }
}

/* Sheet sections */
.tp178-step {
    margin-bottom: 24px;
}

.tp178-step-t {
    font-size: 14px;
    font-weight: 600;
    color: var(--tp-black);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

/* Training booking steps */
.tp178-sheet-steps {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.tp178-step {
    padding: 16px 0;
    border-bottom: 1px solid var(--tp-g100);
}

.tp178-step:last-child {
    border-bottom: none;
}

.tp178-step-lbl {
    font-size: 12px;
    color: var(--tp-g500);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    margin-bottom: 8px;
}

/* Location options */
.tp178-locs {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tp178-lopt {
    padding: 12px 14px;
    border: 1px solid var(--tp-g200);
    border-radius: 10px;
    background: var(--tp-white);
    cursor: pointer;
    transition: all var(--tp-ease);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--tp-g600);
}

.tp178-lopt:hover {
    border-color: var(--tp-gold-border);
    background: var(--tp-gold-soft);
}

.tp178-lopt.sel {
    border-color: var(--tp-gold);
    background: var(--tp-gold-soft);
    color: var(--tp-black);
    font-weight: 600;
}

.tp178-lopt-pin {
    color: var(--tp-gold);
    font-size: 14px;
}

/* Date chips (horizontal scroll) */
.tp178-dates {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 8px;
    margin-bottom: 8px;
}

.tp178-dc {
    padding: 8px 12px;
    background: var(--tp-g100);
    border: 1px solid transparent;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: var(--tp-g600);
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    transition: all var(--tp-ease);
}

.tp178-dc:hover {
    border-color: var(--tp-gold-border);
    background: var(--tp-gold-soft);
}

.tp178-dc.sel {
    background: var(--tp-gold);
    color: var(--tp-black);
    border-color: var(--tp-gold);
    box-shadow: 0 4px 12px rgba(252, 185, 0, 0.2);
}

/* Time grid */
.tp178-times {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.tp178-tc {
    padding: 12px;
    border: 1px solid var(--tp-g200);
    border-radius: 10px;
    text-align: center;
    background: var(--tp-white);
    cursor: pointer;
    transition: all var(--tp-ease);
    font-size: 12px;
    color: var(--tp-g600);
    font-weight: 500;
}

.tp178-tc:hover {
    border-color: var(--tp-gold-border);
    background: var(--tp-gold-soft);
}

.tp178-tc.sel {
    border-color: var(--tp-gold);
    background: var(--tp-gold);
    color: var(--tp-black);
    font-weight: 600;
}

/* Mentorship packages grid */
.tp178-mpkgs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.tp178-mpkg {
    padding: 14px;
    border: 1px solid var(--tp-g200);
    border-radius: 12px;
    background: var(--tp-white);
    cursor: pointer;
    transition: all var(--tp-ease);
    position: relative;
}

.tp178-mpkg:hover {
    border-color: var(--tp-gold-border);
    background: var(--tp-gold-soft);
}

.tp178-mpkg.sel {
    border-color: var(--tp-gold);
    background: var(--tp-gold-soft);
}

.tp178-mpkg-flag {
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 10px;
    background: var(--tp-gold);
    color: var(--tp-black);
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 700;
    text-transform: uppercase;
}

.tp178-mpkg-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--tp-black);
    margin-bottom: 4px;
}

.tp178-mpkg-price {
    font-family: var(--tp-serif);
    font-size: 14px;
    color: var(--tp-gold);
    font-weight: 700;
}

.tp178-mpkg-info {
    font-size: 11px;
    color: var(--tp-g500);
    margin-top: 2px;
}

/* Progress dots */
.tp178-mentor-progress {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 20px;
}

.tp178-mdot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--tp-g200);
    transition: all var(--tp-ease);
}

.tp178-mdot.tp178-mdot-on {
    background: var(--tp-gold);
    transform: scale(1.2);
}

/* Summary before CTA */
.tp178-intro-summary {
    padding: 16px;
    background: var(--tp-g50);
    border-radius: 12px;
    margin-bottom: 20px;
}

.tp178-summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--tp-g600);
    margin-bottom: 8px;
}

.tp178-summary-row:last-child {
    margin-bottom: 0;
    padding-top: 8px;
    border-top: 1px solid var(--tp-g200);
    color: var(--tp-black);
    font-weight: 600;
}

.tp178-summary-label {
    color: var(--tp-g600);
}

.tp178-summary-value {
    font-weight: 600;
    color: var(--tp-black);
}

/* CTA button in sheet */
.tp178-cta {
    width: 100%;
    padding: 16px;
    background: var(--tp-gold);
    color: var(--tp-black);
    border: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all var(--tp-ease);
    min-height: 54px;
    margin-bottom: 12px;
}

.tp178-cta:hover {
    background: var(--tp-gold-hover);
    transform: translateY(-2px);
}

.tp178-mentor-next.secondary {
    background: var(--tp-black);
    color: var(--tp-gold);
}

.tp178-mentor-next.secondary:hover {
    background: var(--tp-g700);
}

.tp178-policy {
    font-size: 11px;
    color: var(--tp-g500);
    text-align: center;
    line-height: 1.5;
}

/* ============================================================================
   Message Modal / Sheet
   ============================================================================ */

.tp178-msg {
    display: none;
}

@media (max-width: 767px) {
    .tp178-msg {
        display: flex;
        flex-direction: column;
    }
    
    .tp178-msg-modal.vis {
        display: flex;
    }
}

@media (min-width: 768px) {
    .tp178-msg {
        display: block;
    }
    
    .tp178-msg-modal.vis {
        display: block;
    }
}

/* Quick fill chips */
.tp178-msg-chips {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.tp178-msg-chip {
    padding: 8px 12px;
    background: var(--tp-g100);
    border: 1px solid transparent;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: var(--tp-g600);
    cursor: pointer;
    transition: all var(--tp-ease);
}

.tp178-msg-chip:hover {
    border-color: var(--tp-gold-border);
    background: var(--tp-gold-soft);
}

/* Textarea */
.tp178-msg-input {
    width: 100%;
    min-height: 120px;
    padding: 12px;
    border: 1px solid var(--tp-g200);
    border-radius: 10px;
    font-family: var(--tp-sans);
    font-size: 14px;
    color: var(--tp-g700);
    resize: vertical;
    margin-bottom: 16px;
}

.tp178-msg-input::placeholder {
    color: var(--tp-g400);
}

.tp178-msg-input:focus {
    outline: none;
    border-color: var(--tp-gold);
    box-shadow: 0 0 0 3px var(--tp-gold-soft);
}

/* Guest fields */
.tp178-msg-row {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
    padding: 16px;
    background: var(--tp-g50);
    border-radius: 10px;
}

.tp178-msg-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.tp178-msg-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--tp-g600);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tp178-msg-input-field {
    padding: 10px;
    border: 1px solid var(--tp-g200);
    border-radius: 8px;
    font-family: var(--tp-sans);
    font-size: 14px;
    color: var(--tp-g700);
}

.tp178-msg-input-field:focus {
    outline: none;
    border-color: var(--tp-gold);
    box-shadow: 0 0 0 3px var(--tp-gold-soft);
}

/* Send button */
.tp178-msg-send {
    width: 100%;
    padding: 14px;
    background: var(--tp-gold);
    color: var(--tp-black);
    border: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all var(--tp-ease);
    min-height: 54px;
}

.tp178-msg-send:hover {
    background: var(--tp-gold-hover);
    transform: translateY(-2px);
}

/* Success state */
.tp178-msg-success {
    display: none;
    text-align: center;
    padding: 40px 20px;
}

.tp178-msg-success.vis {
    display: block;
}

.tp178-msg-success-ico {
    width: 60px;
    height: 60px;
    background: var(--tp-green-soft);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--tp-green);
    font-size: 28px;
    margin: 0 auto 16px;
}

.tp178-msg-success-txt {
    font-size: 14px;
    color: var(--tp-g600);
    line-height: 1.6;
}

/* ============================================================================
   Prepaid Credit Banner
   ============================================================================ */

.tp178-prepaid-banner {
    display: none;
    padding: 16px;
    background: linear-gradient(135deg, var(--tp-gold), #FFD700);
    color: var(--tp-black);
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 16px;
    text-align: center;
}

body.tp-prepaid-mode .tp178-prepaid-banner {
    display: block;
}

body.tp-prepaid-mode .tp178-section-body {
    display: none;
}

/* ============================================================================
   Animations
   ============================================================================ */

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ============================================================================
   Utility Classes
   ============================================================================ */

.tp178-hidden {
    display: none !important;
}

.tp178-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* ============================================================================
   Print Styles
   ============================================================================ */

@media print {
    body.tp178 .tp178-nav,
    body.tp178 .tp178-mobile-bar,
    body.tp178 .tp178-sidebar,
    body.tp178 .tp178-sidebar-card,
    body.tp178 .tp178-sidebar-mentor {
        display: none !important;
    }
}

/* ============================================================================
   Missing CSS Rules — Aligning with PHP HTML v178 class names
   ============================================================================ */

/* Hero image & gradient overlay */
.tp178-hero { position: relative; overflow: hidden; }
.tp178-hero > img { width: 100%; height: 100%; object-fit: cover; display: block; position: absolute; inset: 0; }
.tp178-hero-grad { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.5) 100%); z-index: 1; }

/* Nav — replaces old .tp178-hero-nav structure */
.tp178-nav {
    position: absolute; top: 0; left: 0; right: 0;
    padding: calc(var(--safe-t, 0px) + 16px) 20px 16px;
    display: flex; justify-content: space-between; align-items: center;
    z-index: 10;
}
@media (min-width: 768px) { .tp178-nav { padding: calc(var(--safe-t, 0px) + 20px) 32px 20px; } }
.tp178-nav-l, .tp178-nav-r { display: flex; align-items: center; gap: 12px; }
.tp178-nav-btn {
    width: 40px; height: 40px; border-radius: 8px;
    background: rgba(255,255,255,0.12); backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2); color: #fff;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: all var(--tp-ease); text-decoration: none;
}
.tp178-nav-btn:hover { background: rgba(255,255,255,0.2); }
.tp178-nav-btn svg { width: 18px; height: 18px; }
.tp178-nav-logo {
    display: flex; align-items: center; justify-content: center;
    width: 32px; height: 32px; background: var(--tp-gold); border-radius: 6px;
    color: var(--tp-black); font-weight: 700; font-size: 13px;
    font-family: var(--tp-serif); text-decoration: none;
}
.tp178-nav-link {
    display: flex; align-items: center; gap: 6px;
    padding: 8px 14px; background: rgba(255,255,255,0.12);
    backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,0.2);
    border-radius: 6px; color: #fff; font-size: 13px; font-weight: 500;
    cursor: pointer; transition: all var(--tp-ease); text-decoration: none;
}
.tp178-nav-link:hover { background: rgba(255,255,255,0.2); color: #fff; }
.tp178-nav-link svg { width: 14px; height: 14px; }
@media (max-width: 480px) { .tp178-nav-link span { display: none; } }

/* Badges */
.tp178-badges { display: flex; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.tp178-badge {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 5px 10px; background: var(--tp-gold); color: var(--tp-black);
    border-radius: 5px; font-size: 11px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.5px;
}
.tp178-badge-mentor {
    background: rgba(255,255,255,0.15); color: #fff;
    backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,0.2);
}

/* Hero info */
.tp178-hero-info { position: absolute; bottom: 0; left: 0; right: 0; padding: 24px 20px; z-index: 5; }
@media (min-width: 768px) { .tp178-hero-info { padding: 32px; } }
.tp178-name { font-family: var(--tp-serif); font-size: 32px; font-weight: 700; color: #fff; line-height: 1.15; margin-bottom: 8px; }
@media (min-width: 480px) { .tp178-name { font-size: 40px; } }
@media (min-width: 1025px) { .tp178-name { font-size: 48px; } }
.tp178-meta { display: flex; align-items: center; gap: 14px; font-size: 13px; color: rgba(255,255,255,0.9); flex-wrap: wrap; }
.tp178-meta-i { display: flex; align-items: center; gap: 4px; }
.tp178-meta-i svg { flex-shrink: 0; }
.tp178-meta-rating { display: flex; align-items: center; gap: 4px; color: var(--tp-gold); }
.tp178-meta-dim { color: rgba(255,255,255,0.65); font-size: 12px; }

/* Stats bar — shorter names */
.tp178-stat-v.tp178-gold, .tp178-stat:first-child .tp178-stat-v { color: var(--tp-gold); }

/* Section body */
.tp178-bio { font-size: 15px; line-height: 1.7; color: var(--tp-g600); }
.tp178-prose { font-size: 15px; line-height: 1.7; color: var(--tp-g600); }

/* Experience info grid */
.tp178-info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tp178-info-card {
    padding: 14px; background: var(--tp-g50); border-radius: 10px;
    border: 1px solid var(--tp-g100);
}
.tp178-info-card.tp178-info-full { grid-column: 1 / -1; }
.tp178-info-val { font-family: var(--tp-serif); font-size: 18px; font-weight: 700; color: var(--tp-black); margin-bottom: 2px; }
.tp178-info-lbl { font-size: 12px; color: var(--tp-g500); text-transform: uppercase; letter-spacing: 0.5px; }
.tp178-travel {
    display: flex; align-items: center; gap: 6px;
    margin-top: 12px; font-size: 13px; color: var(--tp-g500);
}

/* Mentorship header */
.tp178-mentorship-hdr { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.tp178-mentorship-ico {
    width: 44px; height: 44px; border-radius: 10px;
    background: rgba(252,185,0,0.12); color: var(--tp-gold);
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.tp178-mentorship-over { font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px; font-weight: 600; color: var(--tp-gold); margin-bottom: 2px; }
.tp178-mentorship-bio { font-size: 14px; line-height: 1.6; color: var(--tp-g600); margin-bottom: 20px; }
.tp178-mstat-alert { border-color: rgba(239,68,68,0.2) !important; }
.tp178-mstat-alert .tp178-mstat-v { color: #EF4444; }
.tp178-mstat-alert .tp178-mstat-l { color: #EF4444; font-weight: 600; }

/* Typical week + timeline */
.tp178-week { margin-bottom: 24px; }
.tp178-week-title {
    display: flex; align-items: center; gap: 8px;
    font-family: var(--tp-serif); font-size: 16px; font-weight: 700;
    color: var(--tp-black); margin-bottom: 16px;
}
.tp178-timeline { position: relative; padding-left: 0; }
.tp178-timeline-line {
    position: absolute; left: 15px; top: 20px; bottom: 20px;
    width: 2px; background: var(--tp-g200);
}
.tp178-timeline-item {
    display: grid; grid-template-columns: 32px 1fr; grid-template-rows: auto auto;
    gap: 0 12px; position: relative;
}
.tp178-timeline-dot {
    grid-row: 1 / 3; width: 32px; height: 32px; border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; color: #fff;
}
.tp178-timeline-dot svg { stroke: #fff; }
.tp178-timeline-title { font-size: 14px; font-weight: 600; color: var(--tp-black); }
.tp178-timeline-desc { font-size: 13px; color: var(--tp-g500); line-height: 1.5; }

/* Includes checklist */
.tp178-includes { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-bottom: 20px; }
.tp178-include {
    display: flex; align-items: center; gap: 6px;
    font-size: 13px; color: var(--tp-g600);
}

/* Mentor CTA */
.tp178-mentor-cta {
    width: 100%; padding: 14px 20px; background: var(--tp-black); color: var(--tp-gold);
    border: none; border-radius: 10px; font-weight: 700; font-size: 14px;
    text-transform: uppercase; letter-spacing: 0.5px; cursor: pointer;
    transition: all var(--tp-ease); display: flex; align-items: center; justify-content: center; gap: 8px;
}
.tp178-mentor-cta:hover { background: var(--tp-g700); transform: translateY(-2px); }
.tp178-mentor-urgency { text-align: center; font-size: 12px; color: #EF4444; font-weight: 600; margin-top: 10px; }
.tp178-mentor-footnote { text-align: center; font-size: 11px; color: var(--tp-g400); margin-top: 8px; line-height: 1.5; }

/* Gallery container (uses .tp178-gallery-img as wrapper div in PHP) */
.tp178-gallery { margin: 0; }
.tp178-gallery-img {
    aspect-ratio: 1; border-radius: 12px; overflow: hidden;
    background: var(--tp-g100); cursor: pointer; transition: all var(--tp-ease);
}
.tp178-gallery-img:hover { transform: scale(1.03); }
.tp178-gallery-img img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Video player */
.tp178-vid {
    position: relative; border-radius: 14px; overflow: hidden;
    background: #000; cursor: pointer; aspect-ratio: 16/9;
}
.tp178-vid video { width: 100%; height: 100%; object-fit: cover; display: block; }
.tp178-vid-overlay {
    position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
    background: rgba(0,0,0,0.25); transition: opacity 0.3s;
}
.tp178-vid-play {
    width: 56px; height: 56px; border-radius: 50%; background: var(--tp-gold);
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

/* Review summary + bars + cards — shortened names */
.tp178-rev-summary { display: flex; gap: 20px; margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--tp-g100); }
.tp178-rev-avg { text-align: center; }
.tp178-rev-avg-num { font-family: var(--tp-serif); font-size: 40px; font-weight: 700; color: var(--tp-black); line-height: 1; }
.tp178-rev-avg-stars { font-size: 16px; margin: 4px 0; }
.tp178-rev-avg-ct { font-size: 12px; color: var(--tp-g500); }
.tp178-rev-bars { flex: 1; display: flex; flex-direction: column; gap: 5px; }
.tp178-rev-bar-row { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--tp-g500); }
.tp178-rev-bar-label { width: 12px; text-align: right; }
.tp178-rev-bar-track { flex: 1; height: 6px; background: var(--tp-g200); border-radius: 3px; overflow: hidden; }
.tp178-rev-bar-fill { height: 100%; background: var(--tp-gold); border-radius: 3px; }

/* Review chips */
.tp178-rev-filters { display: flex; gap: 8px; margin-bottom: 16px; }
.tp178-rev-chip {
    padding: 7px 14px; background: var(--tp-g100); border: 1px solid transparent;
    border-radius: 20px; font-size: 12px; font-weight: 600; color: var(--tp-g600);
    cursor: pointer; transition: all var(--tp-ease);
}
.tp178-rev-chip:hover { border-color: var(--tp-gold-border); background: var(--tp-gold-soft); }
.tp178-rev-chip-on, .tp178-rev-chip.tp178-rev-chip-on { background: var(--tp-gold); color: var(--tp-black); border-color: var(--tp-gold); }

/* Review cards */
.tp178-rev { padding: 16px; border: 1px solid var(--tp-g100); border-radius: 12px; margin-bottom: 12px; }
.tp178-rev-hd { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 10px; }
.tp178-rev-avatar {
    width: 36px; height: 36px; border-radius: 50%;
    background: linear-gradient(135deg, var(--tp-blue), #7DD3FC);
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 12px; font-weight: 700; flex-shrink: 0;
}
.tp178-rev-avatar-mentor, .tp178-rev-avatar.tp178-rev-avatar-mentor {
    background: linear-gradient(135deg, var(--tp-gold), #FFD700);
    color: var(--tp-black);
}
.tp178-rev-meta { flex: 1; }
.tp178-rev-name { font-size: 13px; font-weight: 600; color: var(--tp-black); }
.tp178-rev-verified { display: inline-flex; align-items: center; gap: 3px; font-size: 11px; color: var(--tp-green); font-weight: 600; margin-left: 6px; }
.tp178-rev-mentee-badge {
    display: inline-block; font-size: 10px; background: var(--tp-gold-soft);
    color: var(--tp-gold); padding: 2px 6px; border-radius: 4px; font-weight: 600; margin-left: 6px;
}
.tp178-rev-date { font-size: 12px; color: var(--tp-g500); margin-top: 2px; }
.tp178-rev-txt { font-size: 14px; color: var(--tp-g600); line-height: 1.6; }
.tp178-rev-response { margin-top: 12px; padding: 12px; padding-left: 14px; border-left: 3px solid var(--tp-gold); background: var(--tp-g50); border-radius: 0 8px 8px 0; }
.tp178-rev-response-hd { font-size: 11px; color: var(--tp-g500); text-transform: uppercase; letter-spacing: 0.5px; font-weight: 600; margin-bottom: 4px; }
.tp178-rev-response-txt { font-size: 13px; color: var(--tp-g600); line-height: 1.5; }

/* Locations (content section) */
.tp178-loc { display: flex; align-items: flex-start; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--tp-g100); }
.tp178-loc:last-child { border-bottom: none; }
.tp178-loc-ico { width: 32px; height: 32px; border-radius: 8px; background: var(--tp-gold-soft); color: var(--tp-gold); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.tp178-loc-name { font-size: 14px; font-weight: 600; color: var(--tp-black); margin-bottom: 2px; }
.tp178-loc-addr { font-size: 12px; color: var(--tp-gold); text-decoration: none; }
.tp178-loc-addr:hover { text-decoration: underline; }

/* Sidebar card */
.tp178-sidebar-card {
    padding: 24px; border: 1px solid var(--tp-g100); border-radius: 16px;
    background: var(--tp-white); box-shadow: var(--tp-shadow);
}
.tp178-sidebar-rate {
    font-family: var(--tp-serif); font-size: 28px; font-weight: 700;
    color: var(--tp-gold); line-height: 1;
}
.tp178-sidebar-rate-unit { font-size: 14px; color: var(--tp-g500); font-family: var(--tp-sans); font-weight: 400; }
.tp178-sidebar-sub { font-size: 13px; color: var(--tp-g500); margin-bottom: 20px; }
.tp178-sidebar-pkgs { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.tp178-sidebar-players-label { font-size: 12px; color: var(--tp-g500); text-transform: uppercase; letter-spacing: 0.5px; font-weight: 600; margin-bottom: 8px; }
.tp178-sidebar-players { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin-bottom: 16px; }
.tp178-player-btn {
    padding: 10px 6px; border: 1px solid var(--tp-g200); border-radius: 10px;
    text-align: center; background: var(--tp-white); cursor: pointer;
    transition: all var(--tp-ease); font-size: 16px; font-weight: 600;
    color: var(--tp-g600);
}
.tp178-player-btn:hover { border-color: var(--tp-gold-border); background: var(--tp-gold-soft); }
.tp178-player-btn.sel { border-color: var(--tp-gold); background: var(--tp-gold-soft); color: var(--tp-black); }
.tp178-player-disc { font-size: 10px; color: var(--tp-green); font-weight: 600; margin-top: 2px; }
.tp178-sidebar-book {
    width: 100%; padding: 14px; background: var(--tp-gold); color: var(--tp-black);
    border: none; border-radius: 10px; font-weight: 700; font-size: 14px;
    text-transform: uppercase; letter-spacing: 0.5px; cursor: pointer;
    transition: all var(--tp-ease); display: flex; align-items: center; justify-content: center; gap: 8px;
}
.tp178-sidebar-book:hover { background: var(--tp-gold-hover); transform: translateY(-2px); }
.tp178-sidebar-policy { font-size: 11px; color: var(--tp-g400); text-align: center; margin-top: 8px; margin-bottom: 20px; }

/* Sidebar mentorship */
.tp178-sidebar-mentor {
    padding: 20px; border-top: 1px solid var(--tp-g100); margin-top: 4px;
    background: linear-gradient(160deg, #FDFCF7, #FFF9E5);
    border-radius: 0 0 16px 16px;
}
.tp178-sidebar-mentor-hdr { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--tp-black); margin-bottom: 8px; }
.tp178-sidebar-mentor-spots { font-size: 11px; color: #EF4444; font-weight: 700; margin-left: auto; }
.tp178-sidebar-mentor-desc { font-size: 12px; color: var(--tp-g500); line-height: 1.5; margin-bottom: 12px; }
.tp178-sidebar-mentor-btn {
    width: 100%; padding: 12px; background: var(--tp-black); color: var(--tp-gold);
    border: none; border-radius: 8px; font-weight: 700; font-size: 13px;
    text-transform: uppercase; letter-spacing: 0.5px; cursor: pointer;
    transition: all var(--tp-ease); display: flex; align-items: center; justify-content: center; gap: 8px;
}
.tp178-sidebar-mentor-btn:hover { background: var(--tp-g700); }
.tp178-sidebar-mentor-note { font-size: 11px; color: var(--tp-g400); text-align: center; margin-top: 8px; }
.tp178-sidebar-msg {
    width: 100%; padding: 12px; background: var(--tp-white); color: var(--tp-black);
    border: 1px solid var(--tp-g200); border-radius: 10px; font-weight: 600;
    font-size: 13px; cursor: pointer; transition: all var(--tp-ease);
    display: flex; align-items: center; justify-content: center; gap: 8px;
}
.tp178-sidebar-msg:hover { border-color: var(--tp-gold); background: var(--tp-gold-soft); }

/* Mobile bar */
.tp178-mobile-book {
    flex: 1; padding: 14px; background: var(--tp-gold); color: var(--tp-black);
    border: none; border-radius: 10px; font-weight: 700; font-size: 13px;
    text-transform: uppercase; cursor: pointer; min-height: 50px;
}
.tp178-mobile-book:active { transform: scale(0.97); }
.tp178-mobile-mentor {
    padding: 14px 16px; background: var(--tp-black); color: var(--tp-gold);
    border: none; border-radius: 10px; font-weight: 700; font-size: 13px;
    text-transform: uppercase; cursor: pointer; display: flex; align-items: center; gap: 6px;
}
.tp178-mobile-mentor:active { transform: scale(0.97); }

/* Overlay */
.tp178-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.3); z-index: 200; }
.tp178-overlay.vis { display: block; }

/* Sheet */
.tp178-sheet {
    display: none; position: fixed; bottom: 0; left: 0; right: 0;
    max-height: 90vh; background: var(--tp-white);
    border-radius: 24px 24px 0 0; z-index: 201;
    overflow-y: auto; flex-direction: column;
}
.tp178-sheet.vis { display: flex; animation: slideUp 0.3s ease-out; }
@media (min-width: 768px) {
    .tp178-sheet { bottom: auto; top: 50%; left: 50%; right: auto; width: 90%; max-width: 600px; border-radius: 16px; transform: translate(-50%, -50%); }
    .tp178-sheet.vis { animation: scaleIn 0.3s ease-out; }
}
.tp178-sheet-handle { display: flex; justify-content: center; padding: 12px 0; }
.tp178-sheet-handle::after { content: ''; width: 40px; height: 4px; background: var(--tp-g300); border-radius: 2px; }
@media (min-width: 768px) { .tp178-sheet-handle { display: none; } }
.tp178-sheet-close {
    position: absolute; top: 16px; right: 16px; width: 32px; height: 32px;
    border: none; background: var(--tp-g100); border-radius: 6px;
    color: var(--tp-g600); cursor: pointer; display: flex; align-items: center; justify-content: center;
    transition: all var(--tp-ease); z-index: 2;
}
.tp178-sheet-close:hover { background: var(--tp-g200); }
.tp178-sheet-body { padding: 20px; flex: 1; overflow-y: auto; }
@media (min-width: 768px) { .tp178-sheet-body { padding: 24px; max-height: calc(90vh - 80px); } }
.tp178-sheet-title { font-family: var(--tp-serif); font-size: 22px; font-weight: 700; color: var(--tp-black); margin-bottom: 4px; }
.tp178-sheet-sub { font-size: 13px; color: var(--tp-g500); margin-bottom: 20px; }

/* Booking steps */
.tp178-step { padding: 16px 0; border-bottom: 1px solid var(--tp-g100); }
.tp178-step:last-of-type { border-bottom: none; }
.tp178-step-t { font-size: 13px; font-weight: 600; color: var(--tp-black); margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.tp178-step-n {
    width: 22px; height: 22px; border-radius: 50%; background: var(--tp-gold);
    color: var(--tp-black); font-size: 11px; font-weight: 700;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}

/* Package cards in sheet */
.tp178-sheet-pkgs { display: flex; flex-direction: column; gap: 8px; }
.tp178-pkg {
    display: flex; justify-content: space-between; align-items: center;
    padding: 12px 14px; border: 1px solid var(--tp-g200); border-radius: 10px;
    background: var(--tp-white); cursor: pointer; transition: all var(--tp-ease);
    position: relative;
}
.tp178-pkg:hover { border-color: var(--tp-gold-border); background: var(--tp-gold-soft); }
.tp178-pkg.sel { border-color: var(--tp-gold); background: var(--tp-gold-soft); }
.tp178-pkg-pop {
    position: absolute; top: -8px; right: 10px;
    font-size: 9px; background: var(--tp-gold); color: var(--tp-black);
    padding: 2px 6px; border-radius: 4px; font-weight: 700; text-transform: uppercase;
}
.tp178-pkg-name { font-size: 14px; font-weight: 600; color: var(--tp-black); }
.tp178-pkg-per { font-size: 11px; color: var(--tp-g500); }
.tp178-pkg-price { font-family: var(--tp-serif); font-size: 16px; font-weight: 700; color: var(--tp-black); }
.tp178-pkg-save { font-size: 11px; color: var(--tp-green); font-weight: 600; }

/* Group cards in sheet */
.tp178-grps { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
.tp178-grp {
    padding: 14px 10px; border: 1px solid var(--tp-g200); border-radius: 12px;
    text-align: center; background: var(--tp-white); cursor: pointer;
    transition: all var(--tp-ease);
}
.tp178-grp:hover { border-color: var(--tp-gold-border); background: var(--tp-gold-soft); }
.tp178-grp.sel { border-color: var(--tp-gold); background: var(--tp-gold-soft); }
.tp178-grp-ico { margin-bottom: 6px; display: flex; justify-content: center; }
.tp178-grp-lbl { font-size: 13px; font-weight: 600; color: var(--tp-black); }
.tp178-grp-sub { font-size: 11px; color: var(--tp-g500); }
.tp178-grp-disc { font-size: 11px; color: var(--tp-green); font-weight: 600; margin-top: 4px; }

/* Location options in sheet */
.tp178-locs { display: flex; flex-direction: column; gap: 8px; }
.tp178-lopt {
    display: flex; align-items: center; gap: 10px;
    padding: 12px 14px; border: 1px solid var(--tp-g200); border-radius: 10px;
    background: var(--tp-white); cursor: pointer; transition: all var(--tp-ease);
}
.tp178-lopt:hover { border-color: var(--tp-gold-border); background: var(--tp-gold-soft); }
.tp178-lopt.sel { border-color: var(--tp-gold); background: var(--tp-gold-soft); }
.tp178-lopt-pin { color: var(--tp-gold); flex-shrink: 0; width: 20px; }
.tp178-lopt-pin svg { width: 18px; height: 18px; }
.tp178-lopt-info { flex: 1; }
.tp178-lopt-name { font-size: 13px; font-weight: 600; color: var(--tp-black); }
.tp178-lopt-addr { font-size: 11px; color: var(--tp-g500); }
.tp178-lopt-chk { color: var(--tp-g300); }
.tp178-lopt.sel .tp178-lopt-chk { color: var(--tp-green); }

/* Autocomplete fallback */
.tp178-ac { margin-bottom: 8px; }
.tp178-ac-input {
    width: 100%; padding: 12px; border: 1px solid var(--tp-g200);
    border-radius: 10px; font-family: var(--tp-sans); font-size: 14px;
}
.tp178-ac-input:focus { outline: none; border-color: var(--tp-gold); box-shadow: 0 0 0 3px var(--tp-gold-soft); }

/* Date chips */
.tp178-dates { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 8px; }
.tp178-dc {
    flex-shrink: 0; width: 64px; padding: 10px 6px; text-align: center;
    border: 1px solid var(--tp-g200); border-radius: 10px; background: var(--tp-white);
    cursor: pointer; transition: all var(--tp-ease);
}
.tp178-dc:hover { border-color: var(--tp-gold-border); background: var(--tp-gold-soft); }
.tp178-dc.sel { border-color: var(--tp-gold); background: var(--tp-gold); color: var(--tp-black); box-shadow: 0 4px 12px rgba(252,185,0,0.2); }
.tp178-dc-dow { font-size: 10px; text-transform: uppercase; color: var(--tp-g500); font-weight: 600; }
.tp178-dc-day { font-size: 20px; font-weight: 700; color: var(--tp-black); line-height: 1.2; }
.tp178-dc-mon { font-size: 10px; text-transform: uppercase; color: var(--tp-g500); }
.tp178-dc.sel .tp178-dc-dow, .tp178-dc.sel .tp178-dc-day, .tp178-dc.sel .tp178-dc-mon { color: var(--tp-black); }

/* Time grid */
.tp178-times { display: none; }
.tp178-times.vis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.tp178-tc {
    padding: 10px; border: 1px solid var(--tp-g200); border-radius: 8px;
    text-align: center; background: var(--tp-white); cursor: pointer;
    font-size: 13px; font-weight: 500; color: var(--tp-g600);
    transition: all var(--tp-ease);
}
.tp178-tc:hover { border-color: var(--tp-gold-border); background: var(--tp-gold-soft); }
.tp178-tc.sel { border-color: var(--tp-gold); background: var(--tp-gold); color: var(--tp-black); font-weight: 600; }
.tp178-tc.disabled { opacity: 0.35; cursor: not-allowed; }

/* Sheet CTA */
.tp178-cta {
    width: 100%; padding: 16px; background: var(--tp-gold); color: var(--tp-black);
    border: none; border-radius: 10px; font-weight: 700; font-size: 14px;
    text-transform: uppercase; letter-spacing: 0.5px; cursor: pointer;
    transition: all var(--tp-ease); margin-top: 16px;
}
.tp178-cta:hover { background: var(--tp-gold-hover); transform: translateY(-2px); }
.tp178-cta:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.tp178-policy { font-size: 11px; color: var(--tp-g400); text-align: center; margin-top: 8px; }
.tp178-policy a { color: var(--tp-gold); text-decoration: none; }

/* Mentor progress dots */
.tp178-mentor-progress { display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 20px; }
.tp178-mdot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--tp-g200); transition: all var(--tp-ease);
}
.tp178-mdot-on, .tp178-mdot.tp178-mdot-on { background: var(--tp-gold); transform: scale(1.2); }
.tp178-mdot-label { font-size: 11px; color: var(--tp-g400); }
.tp178-mdot-label-on, .tp178-mdot-label.tp178-mdot-label-on { color: var(--tp-gold); font-weight: 600; }

/* Mentorship packages in sheet */
.tp178-mpkgs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 420px) { .tp178-mpkgs { grid-template-columns: 1fr; } }
.tp178-mpkg {
    padding: 14px; border: 1px solid var(--tp-g200); border-radius: 12px;
    background: var(--tp-white); cursor: pointer; transition: all var(--tp-ease);
    position: relative;
}
.tp178-mpkg:hover { border-color: var(--tp-gold-border); background: var(--tp-gold-soft); }
.tp178-mpkg.sel { border-color: var(--tp-gold); background: var(--tp-gold-soft); }
.tp178-mpkg-flag {
    position: absolute; top: 8px; right: 8px; font-size: 9px;
    background: var(--tp-gold); color: var(--tp-black);
    padding: 2px 6px; border-radius: 4px; font-weight: 700; text-transform: uppercase;
}
.tp178-mpkg-flag-blue { background: var(--tp-blue); color: #fff; }
.tp178-mpkg-name { font-size: 14px; font-weight: 600; color: var(--tp-black); margin-bottom: 4px; }
.tp178-mpkg-price { font-family: var(--tp-serif); font-size: 18px; font-weight: 700; color: var(--tp-gold); }
.tp178-mpkg-price span { font-size: 12px; font-family: var(--tp-sans); font-weight: 400; color: var(--tp-g500); }
.tp178-mpkg-info { font-size: 12px; color: var(--tp-g500); margin-top: 4px; }
.tp178-mpkg-desc { font-size: 11px; color: var(--tp-g400); margin-top: 6px; line-height: 1.4; }

/* Mentorship next/back buttons */
.tp178-mentor-next {
    width: 100%; padding: 14px; background: var(--tp-gold); color: var(--tp-black);
    border: none; border-radius: 10px; font-weight: 700; font-size: 14px;
    text-transform: uppercase; letter-spacing: 0.5px; cursor: pointer;
    transition: all var(--tp-ease); display: flex; align-items: center; justify-content: center; gap: 8px;
}
.tp178-mentor-next:hover { background: var(--tp-gold-hover); transform: translateY(-2px); }
.tp178-mentor-back {
    padding: 14px 20px; background: var(--tp-g100); color: var(--tp-g600);
    border: none; border-radius: 10px; font-weight: 600; font-size: 14px;
    cursor: pointer; transition: all var(--tp-ease);
}
.tp178-mentor-back:hover { background: var(--tp-g200); }

/* How it works rows */
.tp178-hiw-title { font-family: var(--tp-serif); font-size: 18px; font-weight: 700; color: var(--tp-black); margin-bottom: 16px; }
.tp178-hiw-row {
    display: flex; gap: 14px; padding: 14px 0;
    border-bottom: 1px solid var(--tp-g100);
}
.tp178-hiw-ico {
    width: 36px; height: 36px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.tp178-hiw-t { font-size: 14px; font-weight: 600; color: var(--tp-black); margin-bottom: 4px; }
.tp178-hiw-d { font-size: 13px; color: var(--tp-g500); line-height: 1.5; }

/* Intro card (step 2) */
.tp178-intro-card {
    text-align: center; padding: 20px; border: 1px solid var(--tp-g100);
    border-radius: 12px; margin-bottom: 16px;
}
.tp178-intro-summary { margin-bottom: 12px; }

/* Message modal */
.tp178-msg-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.3); z-index: 200; }
.tp178-msg-overlay.vis { display: block; }
.tp178-msg-modal {
    display: none; position: fixed; bottom: 0; left: 0; right: 0;
    max-height: 90vh; background: var(--tp-white);
    border-radius: 24px 24px 0 0; z-index: 201;
    overflow-y: auto; flex-direction: column;
}
.tp178-msg-modal.vis { display: flex; animation: slideUp 0.3s ease-out; }
@media (min-width: 768px) {
    .tp178-msg-modal { bottom: auto; top: 50%; left: 50%; right: auto; width: 90%; max-width: 520px; border-radius: 16px; transform: translate(-50%, -50%); }
    .tp178-msg-modal.vis { animation: scaleIn 0.3s ease-out; }
}
.tp178-msg-handle { display: flex; justify-content: center; padding: 12px 0; }
.tp178-msg-handle::after { content: ''; width: 40px; height: 4px; background: var(--tp-g300); border-radius: 2px; }
@media (min-width: 768px) { .tp178-msg-handle { display: none; } }
.tp178-msg-hdr { display: flex; justify-content: space-between; align-items: center; padding: 0 20px 16px; }
.tp178-msg-title { font-family: var(--tp-serif); font-size: 20px; font-weight: 700; color: var(--tp-black); }
.tp178-msg-close {
    width: 32px; height: 32px; border: none; background: var(--tp-g100);
    border-radius: 6px; color: var(--tp-g600); cursor: pointer;
    display: flex; align-items: center; justify-content: center;
}
.tp178-msg-close svg { width: 16px; height: 16px; }
.tp178-msg-close:hover { background: var(--tp-g200); }
.tp178-msg-trainer { display: flex; align-items: center; gap: 12px; padding: 0 20px 16px; border-bottom: 1px solid var(--tp-g100); }
.tp178-msg-avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.tp178-msg-tname { font-size: 14px; font-weight: 600; color: var(--tp-black); }
.tp178-msg-tsub { font-size: 12px; color: var(--tp-g500); }
.tp178-msg-body { padding: 20px; }
.tp178-msg-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
@media (max-width: 420px) { .tp178-msg-row { grid-template-columns: 1fr; } }
.tp178-msg-field { margin-bottom: 12px; }
.tp178-msg-label { display: block; font-size: 12px; font-weight: 600; color: var(--tp-g600); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 4px; }
.tp178-msg-input {
    width: 100%; padding: 10px 12px; border: 1px solid var(--tp-g200);
    border-radius: 8px; font-family: var(--tp-sans); font-size: 14px;
    color: var(--tp-g700); resize: vertical; box-sizing: border-box;
}
.tp178-msg-input:focus { outline: none; border-color: var(--tp-gold); box-shadow: 0 0 0 3px var(--tp-gold-soft); }
.tp178-msg-input::placeholder { color: var(--tp-g400); }
textarea.tp178-msg-input { min-height: 100px; }
.tp178-msg-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.tp178-msg-chip {
    padding: 6px 12px; background: var(--tp-g100); border: 1px solid transparent;
    border-radius: 16px; font-size: 12px; font-weight: 500; color: var(--tp-g600);
    cursor: pointer; transition: all var(--tp-ease);
}
.tp178-msg-chip:hover { border-color: var(--tp-gold-border); background: var(--tp-gold-soft); }
.tp178-msg-send {
    width: 100%; padding: 14px; background: var(--tp-gold); color: var(--tp-black);
    border: none; border-radius: 10px; font-weight: 700; font-size: 14px;
    cursor: pointer; transition: all var(--tp-ease);
    display: flex; align-items: center; justify-content: center; gap: 8px;
}
.tp178-msg-send:hover { background: var(--tp-gold-hover); }
.tp178-msg-send:disabled { opacity: 0.5; cursor: not-allowed; }
.tp178-msg-error { display: none; font-size: 13px; color: #EF4444; margin-top: 8px; text-align: center; }
.tp178-msg-success { text-align: center; padding: 32px 20px; }
.tp178-msg-success-ico { margin-bottom: 12px; color: var(--tp-green); }
.tp178-msg-success h3 { font-family: var(--tp-serif); font-size: 20px; color: var(--tp-black); margin-bottom: 8px; }
.tp178-msg-success p { font-size: 13px; color: var(--tp-g500); margin-bottom: 16px; }
.tp178-msg-success-btn {
    display: inline-block; padding: 10px 20px; background: var(--tp-gold); color: var(--tp-black);
    border-radius: 8px; font-weight: 600; font-size: 13px; text-decoration: none;
}

/* Prepaid banner */
.tp178-prepaid-banner {
    position: fixed; top: 0; left: 0; right: 0; z-index: 150;
    padding: 12px 20px; background: linear-gradient(135deg, var(--tp-gold), #FFD700);
    color: var(--tp-black); text-align: center;
}
.tp178-prepaid-hd { font-size: 14px; font-weight: 700; display: flex; align-items: center; justify-content: center; gap: 6px; }
.tp178-prepaid-sub { font-size: 12px; margin-top: 4px; }
body.tp-prepaid-mode .tp178-prepaid-banner { display: block; }
body.tp-prepaid-mode .tp178-hero { margin-top: 60px; }

/* Lightbox */
.tp178-lightbox {
    display: none; position: fixed; inset: 0; z-index: 300;
    background: rgba(0,0,0,0.92); align-items: center; justify-content: center;
}
.tp178-lightbox.vis { display: flex; }
.tp178-lightbox-img { max-width: 90%; max-height: 85vh; border-radius: 8px; object-fit: contain; }
.tp178-lightbox-close {
    position: absolute; top: 16px; right: 16px;
    background: rgba(255,255,255,0.15); border: none; color: #fff;
    width: 40px; height: 40px; border-radius: 8px; cursor: pointer; font-size: 20px;
}

/* Wrap container */
.tp178-wrap { max-width: 1400px; margin: 0 auto; background: var(--tp-white); }


/* Last fixes — mentorship stats + section-last */
.tp178-mentorship-stats {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 20px;
}
.tp178-mstat {
    background: rgba(255,255,255,0.5); backdrop-filter: blur(8px);
    border: 1px solid rgba(252,185,0,0.1); border-radius: 12px;
    padding: 14px; text-align: center;
}
.tp178-mstat-v {
    font-family: var(--tp-serif); font-size: 22px; font-weight: 700;
    color: var(--tp-gold); line-height: 1; margin-bottom: 4px;
}
.tp178-mstat-l { font-size: 11px; color: var(--tp-g500); text-transform: uppercase; letter-spacing: 0.5px; }
.tp178-section-last { border-bottom: none; }

/* ═══════════ SUMMER CAMP FUNNEL ═══════════ */
.tp178-camp-funnel {
    padding: 48px 0; border-bottom: 1px solid var(--tp-g200);
}
.tp178-camp-hdr {
    display: flex; align-items: center; gap: 10px;
    margin-bottom: 8px;
}
.tp178-camp-ico {
    width: 28px; height: 28px; color: var(--tp-gold);
    flex-shrink: 0;
}
.tp178-camp-over {
    font-family: var(--tp-sans); font-size: 12px; font-weight: 600;
    color: var(--tp-gold); text-transform: uppercase; letter-spacing: 1.2px;
}
.tp178-camp-title {
    font-family: var(--tp-serif); font-size: 26px; font-weight: 700;
    color: var(--tp-black); margin-bottom: 6px; line-height: 1.2;
}
.tp178-camp-desc {
    font-size: 15px; color: var(--tp-g500); line-height: 1.6;
    margin-bottom: 28px; max-width: 560px;
}
.tp178-camp-cards {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px; margin-bottom: 24px;
}
.tp178-camp-card {
    display: flex; flex-direction: column;
    border: 1px solid var(--tp-g200); border-radius: 14px;
    overflow: hidden; text-decoration: none; color: inherit;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
    background: #fff;
}
.tp178-camp-card:hover {
    border-color: var(--tp-gold); box-shadow: 0 4px 20px rgba(252,185,0,0.12);
    transform: translateY(-2px);
}
.tp178-camp-img {
    width: 100%; height: 140px; object-fit: cover;
    background: var(--tp-g100);
}
.tp178-camp-img-placeholder {
    display: flex; align-items: center; justify-content: center;
    height: 140px; background: var(--tp-g100); color: var(--tp-g400);
}
.tp178-camp-info {
    padding: 14px 16px 16px;
}
.tp178-camp-name {
    font-family: var(--tp-sans); font-size: 15px; font-weight: 700;
    color: var(--tp-black); margin-bottom: 6px; line-height: 1.3;
}
.tp178-camp-date,
.tp178-camp-loc-text {
    display: flex; align-items: center; gap: 5px;
    font-size: 12.5px; color: var(--tp-g500); margin-bottom: 4px;
}
.tp178-camp-date svg,
.tp178-camp-loc-text svg {
    flex-shrink: 0; color: var(--tp-g400);
}
.tp178-camp-bottom {
    display: flex; align-items: center; gap: 10px;
    margin-top: 10px; padding-top: 10px;
    border-top: 1px solid var(--tp-g200);
}
.tp178-camp-price {
    font-family: var(--tp-serif); font-size: 18px; font-weight: 700;
    color: var(--tp-black);
}
.tp178-camp-ages {
    font-size: 11px; color: var(--tp-g500);
    background: var(--tp-g100); padding: 3px 8px; border-radius: 6px;
    font-weight: 500;
}
.tp178-camp-ctas {
    text-align: center;
}
.tp178-camp-cta-btn {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--tp-gold); color: var(--tp-black);
    font-family: var(--tp-sans); font-size: 15px; font-weight: 700;
    padding: 14px 32px; border-radius: 12px;
    text-decoration: none; transition: background 0.2s, transform 0.15s;
}
.tp178-camp-cta-btn:hover {
    background: #e5a800; transform: translateY(-1px);
}
.tp178-camp-bonus {
    display: inline-flex; align-items: center; gap: 6px;
    margin-top: 14px; font-size: 13px; color: var(--tp-g500);
}
.tp178-camp-bonus svg { color: #22c55e; flex-shrink: 0; }
.tp178-camp-bonus strong { color: var(--tp-black); }

/* ═══════════ SIDEBAR CAMP CTA ═══════════ */
.tp178-sidebar-camp {
    display: block; margin-top: 16px; padding: 18px 20px;
    background: linear-gradient(135deg, #FFFBEB 0%, #FEF3C7 100%);
    border: 1px solid rgba(252,185,0,0.25); border-radius: 16px;
    text-decoration: none; color: inherit;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
}
.tp178-sidebar-camp:hover {
    border-color: var(--tp-gold); box-shadow: 0 4px 16px rgba(252,185,0,0.15);
    transform: translateY(-1px);
}
.tp178-sidebar-camp-badge {
    display: inline-block; font-size: 10px; font-weight: 800;
    color: #fff; background: var(--tp-gold); padding: 3px 10px;
    border-radius: 6px; letter-spacing: 1.2px; margin-bottom: 8px;
    text-transform: uppercase;
}
.tp178-sidebar-camp-text {
    font-size: 14px; color: var(--tp-black); line-height: 1.5;
    margin-bottom: 10px; font-weight: 500;
}
.tp178-sidebar-camp-link {
    display: inline-flex; align-items: center; gap: 4px;
    font-size: 13px; font-weight: 700; color: var(--tp-gold);
}
.tp178-sidebar-camp-link:hover { text-decoration: underline; }

/* ═══════════ CAMP RESPONSIVE ═══════════ */
@media (max-width: 768px) {
    .tp178-camp-title { font-size: 22px; }
    .tp178-camp-cards { grid-template-columns: 1fr; }
    .tp178-camp-cta-btn { width: 100%; justify-content: center; padding: 14px 20px; }
    .tp178-sidebar-camp { margin-top: 12px; }
}


/* ============================================================================
   v178.1 — MOBILE OPTIMIZATION PASS
   Single authoritative block at the end of the file. Overrides any stale
   mobile rules above. Targets phones first, tablets second.
   ============================================================================ */

/* --- Global defensive resets for hero image (belt and suspenders) --- */
.tp178-wrap .tp178-hero > img,
body.tp178 .tp178-hero > img {
    border-radius: 0 !important;
    clip-path: none !important;
    -webkit-clip-path: none !important;
    mask: none !important;
    -webkit-mask: none !important;
    box-shadow: none !important;
    border: 0 !important;
    outline: 0 !important;
    transform: none !important;
    filter: none !important;
}

/* --- Kill any lingering theme/Elementor/astra wrappers that would crowd the hero --- */
body.tp178 #page,
body.tp178 #primary,
body.tp178 #content,
body.tp178 .site,
body.tp178 .site-content,
body.tp178 .ast-container,
body.tp178 .entry-content,
body.tp178 .elementor,
body.tp178 article {
    margin: 0 !important;
    padding: 0 !important;
    max-width: 100% !important;
    background: transparent !important;
}
body.tp178 .entry-header,
body.tp178 .entry-title,
body.tp178 .page-header,
body.tp178 .ast-article-single > header,
body.tp178 .wp-post-image,
body.tp178 .post-thumbnail {
    display: none !important;
}

/* --- Wrap: reset margins on mobile --- */
.tp178-wrap {
    margin: 0 !important;
    padding: 0 !important;
    max-width: 100% !important;
    width: 100%;
    background: var(--tp-white);
}

/* ============================================================================
   Phones (≤767px) — primary optimization target
   ============================================================================ */
@media (max-width: 767px) {

    /* Typography scale — tighter on phones */
    body.tp178 { font-size: 15px; line-height: 1.55; }

    /* Hero */
    .tp178-hero {
        aspect-ratio: 4 / 5;
        min-height: 440px;
        max-height: 74vh;
    }
    .tp178-hero > img { object-position: center 20%; }
    .tp178-hero::before {
        background: linear-gradient(to bottom,
            rgba(0,0,0,0.1) 0%,
            rgba(0,0,0,0.15) 35%,
            rgba(0,0,0,0.55) 72%,
            rgba(0,0,0,0.88) 100%);
    }

    /* Nav bar — 44px touch targets, safe-area aware */
    .tp178-nav {
        padding: calc(var(--safe-t, 0px) + 10px) 14px 10px !important;
    }
    .tp178-nav-btn,
    .tp178-nav-link {
        min-width: 44px;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 0 12px;
    }
    .tp178-nav-link span { display: none; }
    .tp178-nav-logo { font-size: 14px; letter-spacing: 1px; }

    /* Hero info — pinned bottom, clean padding */
    .tp178-hero-info {
        padding: 20px 16px calc(20px + var(--safe-b, 0px)) !important;
    }
    .tp178-badges { gap: 6px; flex-wrap: wrap; }
    .tp178-badge {
        font-size: 10px !important;
        padding: 5px 9px !important;
        letter-spacing: 0.5px;
    }
    .tp178-name {
        font-size: 28px !important;
        line-height: 1.1 !important;
        margin: 8px 0 6px !important;
        letter-spacing: -0.5px;
    }
    .tp178-meta {
        font-size: 13px !important;
        gap: 10px !important;
        flex-wrap: wrap;
    }
    .tp178-meta-i, .tp178-meta-rating, .tp178-meta-dim {
        display: inline-flex;
        align-items: center;
        gap: 4px;
    }

    /* Stats bar — 4 columns compressed, 2 rows if needed */
    .tp178-stats {
        display: grid !important;
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 0 !important;
        padding: 14px 8px !important;
        background: #fff;
        border-bottom: 1px solid var(--tp-g200);
        margin: 0 !important;
    }
    .tp178-stat {
        padding: 6px 4px !important;
        text-align: center;
        border-right: 1px solid var(--tp-g200);
    }
    .tp178-stat:last-child { border-right: 0; }
    .tp178-stat-v {
        font-size: 16px !important;
        font-weight: 700 !important;
        line-height: 1.2;
        white-space: nowrap;
    }
    .tp178-stat-l {
        font-size: 9px !important;
        text-transform: uppercase;
        letter-spacing: 0.4px;
        color: var(--tp-g500);
        margin-top: 2px;
    }

    /* Very narrow phones — collapse to 2x2 */
    @media (max-width: 379px) {
        .tp178-stats { grid-template-columns: 1fr 1fr !important; }
        .tp178-stat { border-bottom: 1px solid var(--tp-g200); }
        .tp178-stat:nth-child(2n) { border-right: 0; }
        .tp178-stat:nth-last-child(-n+2) { border-bottom: 0; }
    }

    /* Main layout — single column on mobile */
    .tp178-layout {
        display: block !important;
        padding: 0 !important;
        margin: 0 !important;
        max-width: 100% !important;
        padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px)) !important; /* v301.20: Room for mobile bar */
    }
    .tp178-content { width: 100%; padding: 0; }
    .tp178-sidebar {
        display: none !important; /* v301.20: Mobile bar replaces sidebar on phones */
    }

    /* Sections — tight horizontal padding, consistent rhythm */
    .tp178-section {
        margin: 0 !important;
        padding: 20px 16px !important;
        border-radius: 0 !important;
        border: 0 !important;
        border-bottom: 1px solid var(--tp-g100) !important;
        box-shadow: none !important;
        background: #fff !important;
    }
    .tp178-section:last-child { border-bottom: 0 !important; }

    .tp178-sh {
        gap: 10px !important;
        margin-bottom: 12px !important;
    }
    .tp178-sh-ico {
        width: 32px !important;
        height: 32px !important;
        flex-shrink: 0;
    }
    .tp178-sh-lbl {
        font-size: 13px !important;
        letter-spacing: 0.6px;
        text-transform: uppercase;
        font-weight: 700;
    }

    .tp178-bio {
        font-size: 15px !important;
        line-height: 1.6 !important;
        color: var(--tp-g700);
    }

    .tp178-tags { gap: 6px !important; margin-top: 12px !important; }
    .tp178-tag {
        font-size: 11px !important;
        padding: 6px 10px !important;
    }

    /* Info cards grid */
    .tp178-info-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 8px !important;
    }
    .tp178-info-card {
        padding: 12px !important;
    }
    .tp178-info-full { grid-column: 1 / -1 !important; }
    .tp178-info-val { font-size: 15px !important; }
    .tp178-info-lbl { font-size: 10px !important; }

    /* Reviews */
    .tp178-rev-avg { flex-direction: column; align-items: flex-start; gap: 12px; }
    .tp178-rev-avg-num { font-size: 40px !important; }
    .tp178-rev-item {
        padding: 14px 0 !important;
    }
    .tp178-rev-head { gap: 10px !important; }
    .tp178-rev-avatar {
        width: 38px !important;
        height: 38px !important;
        font-size: 14px !important;
    }
    .tp178-rev-name { font-size: 14px !important; }
    .tp178-rev-date { font-size: 12px !important; }
    .tp178-rev-txt {
        font-size: 14px !important;
        line-height: 1.55 !important;
        margin-top: 8px !important;
    }

    /* Packages — full width cards */
    .tp178-pkgs {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }
    .tp178-pkg {
        padding: 16px !important;
    }
    .tp178-pkg-price { font-size: 22px !important; }

    /* Timeline */
    .tp178-timeline-item { gap: 12px !important; }
    .tp178-timeline-dot {
        width: 32px !important;
        height: 32px !important;
        flex-shrink: 0;
    }

    /* Travel chip */
    .tp178-travel {
        font-size: 12px !important;
        padding: 8px 12px !important;
        margin-top: 10px !important;
    }

    /* Sticky CTA bar — make sure it clears safe area */
    .tp178-cta-bar,
    .tp178-sticky-cta {
        padding: 12px 16px calc(12px + var(--safe-b, 0px)) !important;
    }
    .tp178-cta-btn,
    .tp178-btn-primary {
        min-height: 48px !important;
        font-size: 15px !important;
        padding: 0 18px !important;
    }

    /* Bottom sheets — full-screen with safe area */
    .tp178-sheet {
        max-height: 92vh !important;
        padding-bottom: var(--safe-b, 0px) !important;
    }
    .tp178-sheet-body {
        padding: 16px !important;
    }
    .tp178-sheet-head {
        padding: 14px 16px !important;
    }

    /* Message modal full-screen */
    .tp178-msg-modal {
        max-height: 92vh !important;
        padding-bottom: var(--safe-b, 0px) !important;
    }
    .tp178-msg-row { grid-template-columns: 1fr !important; }

    /* Locations */
    .tp178-loc-item {
        padding: 12px 0 !important;
        gap: 10px !important;
    }
    .tp178-loc-name { font-size: 14px !important; }
    .tp178-loc-addr { font-size: 12px !important; }

    /* Gallery */
    .tp178-gallery {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 6px !important;
    }

    /* Camp upsell card */
    .tp178-camp-cards { grid-template-columns: 1fr !important; }
    .tp178-camp-title { font-size: 20px !important; }
    .tp178-camp-cta-btn {
        width: 100% !important;
        justify-content: center !important;
        min-height: 48px !important;
    }

    /* Kill any accidental horizontal scroll */
    html, body.tp178 { overflow-x: hidden; }
}

/* ============================================================================
   v301.20: Small tablets (768–1024px) — single column with card sections
   Sidebar hidden on tablets (mobile bar CTA used instead)
   ============================================================================ */
@media (min-width: 768px) and (max-width: 1024px) {
    .tp178-layout {
        max-width: 720px;
        margin: 0 auto;
        padding: 0 24px;
        display: block;
        padding-bottom: 100px; /* v301.20: Room for mobile bar */
    }
    .tp178-sidebar {
        display: none !important; /* v301.20: Use mobile bar on tablets */
    }
    .tp178-section {
        margin-bottom: 16px;
        padding: 24px;
        border-radius: var(--tp-r);
        border: 1px solid var(--tp-g100);
    }
    .tp178-stats {
        max-width: 720px;
        margin: 0 auto;
        padding: 18px 24px;
    }
    .tp178-hero {
        aspect-ratio: 16 / 9;
        max-height: 480px;
        min-height: 360px;
    }
}

/* ============================================================================
   v301.20: Desktop (1025px+) — Two-column grid with sticky sidebar
   ============================================================================ */
@media (min-width: 1025px) {
    .tp178-layout {
        display: grid;
        grid-template-columns: 1fr 400px;
        gap: 28px;
        padding: 28px;
        margin: 0 auto;
        max-width: 1280px;
    }
    .tp178-sidebar {
        display: flex !important;
        flex-direction: column;
        gap: 20px;
        position: sticky;
        top: 28px;
        height: fit-content;
        align-self: start;
    }
    .tp178-sidebar-card {
        border-radius: 16px;
        border: 1px solid var(--tp-g100);
        box-shadow: var(--tp-shadow);
    }
    .tp178-hero {
        aspect-ratio: 21 / 9;
        max-height: 520px;
    }
}

/* ============================================================================
   v178.2 — DE-CIRCLE AVATARS
   No more round avatar shapes anywhere on the profile. Squared with a soft
   8px radius so they read as tiles, not photo bubbles.
   ============================================================================ */
body.tp178 .tp178-rev-avatar,
body.tp178 .tp178-rev-avatar.tp178-rev-avatar-mentor,
body.tp178 .tp178-story-avatar,
body.tp178 .tp178-msg-avatar {
    border-radius: 8px !important;
}

/* Reviews: slightly wider tile, tighter corners */
body.tp178 .tp178-rev-avatar {
    width: 42px !important;
    height: 42px !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
}

/* ============================================================================
   v301.9 — OWNER/ADMIN EDIT ENTRY POINTS
   ============================================================================ */

/* Edit Profile pill in hero nav — gold accent to stand out from stock nav */
.tp178-nav-edit {
    background: var(--tp-gold) !important;
    color: var(--tp-black) !important;
    border-radius: 6px !important;
    padding: 8px 14px !important;
    font-weight: 500;
    letter-spacing: 0.3px;
    gap: 6px;
    border: 0 !important;
    transition: all var(--tp-ease);
}
.tp178-nav-edit:hover {
    background: var(--tp-gold-hover) !important;
    transform: translateY(-1px);
}
.tp178-nav-edit svg { stroke: var(--tp-black); }

/* Owner banner — sits just under the nav, slim info strip */
.tp178-owner-banner {
    position: absolute;
    top: calc(var(--safe-t, 0px) + 60px);
    left: 12px;
    right: 12px;
    z-index: 9;
    background: rgba(252, 185, 0, 0.95);
    color: var(--tp-black);
    font-size: 12px;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}
.tp178-owner-banner > span {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.tp178-owner-banner svg {
    flex-shrink: 0;
    stroke: var(--tp-black);
}
.tp178-owner-edit-link {
    color: var(--tp-black) !important;
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 2px;
    white-space: nowrap;
    flex-shrink: 0;
}

@media (max-width: 767px) {
    .tp178-nav-edit {
        padding: 0 10px !important;
        min-height: 36px;
        font-size: 12px;
    }
    .tp178-nav-edit span { display: inline !important; }
    .tp178-owner-banner {
        top: calc(var(--safe-t, 0px) + 54px);
        font-size: 11px;
        padding: 7px 12px;
    }
}
