/**
 * Modern Treatments Overview Styles
 * Complete redesign with animations, filters and multiple view modes
 */

/* CSS Variables for Treatments Overview */
:root {
    --tto-primary: #005f5f;
    --tto-primary-light: #7fcdbb;
    --tto-primary-dark: #003d3d;
    --tto-secondary: #e5924c;
    --tto-secondary-light: #f5b47c;
    --tto-success: #4caf50;
    --tto-danger: #f44336;
    --tto-warning: #ff9800;
    --tto-bg-primary: #ffffff;
    --tto-bg-secondary: #f8f9fa;
    --tto-bg-tertiary: #edf4f6;
    --tto-text-primary: #212529;
    --tto-text-secondary: #6c757d;
    --tto-text-light: #ffffff;
    --tto-border-light: #e0e0e0;
    --tto-border-medium: #c4c4c4;
    --tto-shadow-sm: 0 2px 4px rgba(0,0,0,0.08);
    --tto-shadow-md: 0 4px 12px rgba(0,0,0,0.12);
    --tto-shadow-lg: 0 8px 24px rgba(0,0,0,0.16);
    --tto-shadow-xl: 0 12px 48px rgba(0,0,0,0.20);
    --tto-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --tto-radius: 24px;
    --tto-radius-sm: 8px;
    --tto-radius-lg: 24px;
}

/* Dark mode support */
[data-theme="dark"] {
    --tto-bg-primary: #1a1a1a;
    --tto-bg-secondary: #2d2d2d;
    --tto-bg-tertiary: #3a3a3a;
    --tto-text-primary: #ffffff;
    --tto-text-secondary: #b0b0b0;
    --tto-border-light: #404040;
    --tto-border-medium: #505050;
}


/* ========================================
   Hero Customization Panel
   ======================================== */

.tto-hero-customize-toggle {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: var(--tty-bg-linear-graniet);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    color: white;
    font-size: 24px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border: none;
}

.tto-hero-customize-toggle:hover {
    transform: scale(1.05);
    opacity: 1;
}

.tto-hero-customize-toggle.active {
    background: var(--tto-primary);
    border-color: var(--tto-primary);
    transform: rotate(-90deg);
    opacity: 1;
}

/* Customization Panel */
.tto-hero-customize-panel {
    position: absolute;
    top: 80px;
    right: 20px;
    background: white;
    border-radius: var(--tto-radius);
    box-shadow: var(--tto-shadow-xl);
    padding: 20px;
    min-width: 310px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 11;
}

.tto-hero-customize-panel.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.tto-hero-customize-panel h4 {
    margin: 0 0 15px 0;
    font-size: 17px;
    font-weight: 600;
    color: var(--tto-text-primary);
    padding-bottom: 10px;
    border-bottom: 1px solid var(--tto-border-light);
}

.tto-customize-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tto-customize-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
}

.tto-customize-option label {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--tto-text-primary);
    font-size: 14px;
    cursor: pointer;
    user-select: none;
    flex: 1;
}

.tto-customize-option i {
  width: 40px;
  height: 40px;
  min-width: 40px !important;
  min-height: 40px !important;
  border-radius: 50%;
  background-color: #e6efef;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--tty-primary);
  align-items: center;
  font-size: 18px;
  display: flex;
}

/* Custom Toggle Switch */
.tto-toggle-switch {
    position: relative;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}

.tto-toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.tto-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--tto-border-medium);
    transition: all 0.3s ease;
    border-radius: 24px;
    box-shadow: inset 0px 2px 2px rgba(0, 0, 0, 0.2)
}

.tto-toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: all 0.3s ease;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.tto-toggle-switch input:checked + .tto-toggle-slider {
    background-color: #22b189;
}

.tto-toggle-switch input:checked + .tto-toggle-slider:before {
    transform: translateX(20px);
}

/* Preset Buttons */
.tto-customize-presets {
    display: flex;
    gap: 8px;
    margin-top: 15px;
    padding-top: 15px;
}

.tto-preset-btn {
    flex: 1;
    padding: 8px 12px;
    background: var(--tto-bg-secondary);
    border: 1px solid var(--tto-border-light);
    border-radius: var(--tto-radius-sm);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--tto-text-primary);
    font-family: inherit;
}

.tto-preset-btn:hover {
    background: var(--tto-primary);
    color: white;
    border-color: var(--tto-primary);
    transform: translateY(-1px);
}

/* Compact Mode Styles */
.tto-hero-compact {
    min-height: 50px !important;
    padding: 40px 0 !important;
}

.tto-hero-compact .tto-hero-content {
    animation: none !important;
}

/* Hide Elements with Smooth Transitions */
.tto-hide-title .tto-hero-title {
    max-height: 0;
    opacity: 0;
    margin: 0;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.tto-hide-heartbeat .tto-heartbeat-container {
    max-height: 0;
    opacity: 0;
    margin: 0;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.tto-hide-subtitle .tto-title-accent {
    max-height: 0;
    opacity: 0;
    margin: 0;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.tto-hide-stats .tto-stats-row {
    max-height: 0;
    opacity: 0;
    margin: 0;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.tto-hide-search .tto-search-hero {
    max-height: 0;
    opacity: 0;
    margin: 0;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.tto-hide-background .tto-hero-bg {
    opacity: 0;
    transition: opacity 0.6s ease;
}

/* Show Elements (Default State) */
.tto-hero:not(.tto-hide-title) .tto-hero-title {
    max-height: 200px;
    opacity: 1;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.tto-hero:not(.tto-hide-heartbeat) .tto-heartbeat-container {
    max-height: 100px;
    opacity: 1;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.tto-hero:not(.tto-hide-subtitle) .tto-title-accent {
    max-height: 50px;
    opacity: 1;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.tto-hero:not(.tto-hide-stats) .tto-stats-row {
    max-height: 150px;
    opacity: 1;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.tto-hero:not(.tto-hide-search) .tto-search-hero {
    max-height: 200px;
    opacity: 1;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Animation for panel appearance */
@keyframes customizePanelSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.tto-hero-customize-panel.active {
    animation: customizePanelSlideIn 0.3s ease-out;
}

/* Dark mode support for customization panel */
[data-theme="dark"] .tto-hero-customize-panel {
    background: var(--tto-bg-secondary);
    color: var(--tto-text-primary);
}

[data-theme="dark"] .tto-preset-btn {
    background: var(--tto-bg-tertiary);
    border-color: var(--tto-border-medium);
    color: var(--tto-text-primary);
}

[data-theme="dark"] .tto-preset-btn:hover {
    background: var(--tto-primary);
    color: white;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    
    .tto-hero-customize-toggle {
        position: fixed;
        top: auto;
        bottom: 329px;
        width: 45px;
        height: 45px;
        right: 15px;
    }
    
   .transtoyou-back-to-top.show {
        bottom: 128px;
    }
    
    .tto-hero-customize-panel {
        position: fixed;
        top: 5%;
        right: 75px;
    }
    
    .tto-hero-customize-panel.active {
        transform: translateY(0);
    }
    
    /* Add swipe handle for mobile */
    .tto-hero-customize-panel::before {
        content: '';
        position: absolute;
        top: 10px;
        left: 50%;
        transform: translateX(-50%);
        width: 40px;
        height: 4px;
        background: var(--tto-border-medium);
        border-radius: 2px;
    }
    
    .tto-hero-compact {
        min-height: 150px !important;
        padding: 20px 0 !important;
    }
}

/* Transition timing for all hero elements */
.tto-hero * {
    transition-property: opacity, max-height, margin, transform;
    transition-duration: 0.4s;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Quick transition mode for instant feedback */
.tto-hero.tto-quick-transition * {
    transition-duration: 0.2s !important;
}


/* ========================================
   Skeleton Loader
   ======================================== */

.tto-skeleton-container {
    display: none;
    animation: fadeIn 0.3s ease-out;
    margin-top: -58px;
}

.tto-skeleton-container.active {
    display: block;
}

/* Skeleton base styles */
.tto-skeleton-item {
    background: var(--tto-bg-primary);
    border-radius: var(--tto-radius);
    overflow: hidden;
    box-shadow: var(--tto-shadow-sm);
    position: relative;
}

/* Skeleton shimmer effect */
.tto-skeleton-shimmer {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.4) 20%,
        rgba(255, 255, 255, 0.6) 50%,
        rgba(255, 255, 255, 0.4) 80%,
        transparent 100%
    );
    transform: translateX(-100%);
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* Skeleton elements */
.tto-skeleton-element {
    background: var(--tto-bg-tertiary);
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

.tto-skeleton-element::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.3) 50%,
        transparent 100%
    );
    transform: translateX(-100%);
    animation: shimmer 1.5s infinite;
}

/* Grid view skeleton */
.tto-skeleton-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.tto-skeleton-grid[data-columns="3"] {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.tto-skeleton-grid[data-columns="4"] {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.tto-skeleton-grid[data-columns="2"] {
    grid-template-columns: repeat(auto-fill, minmax(450px, 1fr));
}

.tto-skeleton-item-grid {
    height: 100%;
    min-height: 400px;
}

.tto-skeleton-item-grid .tto-skeleton-image {
    width: 100%;
    padding-bottom: 66.67%;
    background: var(--tto-bg-tertiary);
    position: relative;
}

.tto-skeleton-item-grid .tto-skeleton-content {
    padding: 25px;
}

.tto-skeleton-item-grid .tto-skeleton-category {
    width: 80px;
    height: 16px;
    margin-bottom: 15px;
}

.tto-skeleton-item-grid .tto-skeleton-title {
    width: 100%;
    height: 24px;
    margin-bottom: 10px;
}

.tto-skeleton-item-grid .tto-skeleton-subtitle {
    width: 90%;
    height: 16px;
    margin-bottom: 8px;
}

.tto-skeleton-item-grid .tto-skeleton-subtitle:last-child {
    width: 70%;
    margin-bottom: 15px;
}

.tto-skeleton-item-grid .tto-skeleton-expert {
    width: 150px;
    height: 16px;
}

/* Compact view skeleton */
.tto-skeleton-compact {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.tto-skeleton-item-compact {
    display: flex;
    align-items: center;
    padding: 20px 25px;
    background: white;
    border: 2px solid var(--tto-border-light);
    transition: var(--tto-transition);
}

.tto-skeleton-item-compact:not(:last-child) {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-bottom: none;
}

.tto-skeleton-item-compact:not(:first-child) {
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

.tto-skeleton-item-compact:first-child {
    border-top-left-radius: var(--tto-radius);
    border-top-right-radius: var(--tto-radius);
}

.tto-skeleton-item-compact:last-child {
    border-bottom-left-radius: var(--tto-radius);
    border-bottom-right-radius: var(--tto-radius);
}

.tto-skeleton-compact-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tto-skeleton-item-compact .tto-skeleton-title {
    width: 300px;
    height: 20px;
    max-width: 50%;
}

.tto-skeleton-item-compact .tto-skeleton-category {
    width: 120px;
    height: 14px;
}

.tto-skeleton-item-compact .tto-skeleton-expert {
    width: 180px;
    height: 14px;
}

/* Results count skeleton */
.tto-skeleton-results-count {
    text-align: center;
    margin-bottom: 40px;
    min-height: 24px;
}

.tto-skeleton-results-count .tto-skeleton-element {
    width: 250px;
    height: 20px;
    margin: 0 auto;
}

/* Hide old spinner when skeleton is active */
.tto-skeleton-container.active ~ .tto-loading {
    display: none !important;
}


/* Mobile optimizations */
@media (max-width: 768px) {
    .tto-skeleton-grid {
        grid-template-columns: 1fr;
    }
    
    .tto-skeleton-item-compact .tto-skeleton-title {
        max-width: 70%;
    }
    
    .tto-skeleton-compact {
        gap: 0;
    }
}

/* Dark mode support */
[data-theme="dark"] .tto-skeleton-element {
    background: var(--tto-bg-secondary);
}

[data-theme="dark"] .tto-skeleton-element::after {
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.1) 50%,
        transparent 100%
    );
}

[data-theme="dark"] .tto-skeleton-item {
    background: var(--tto-bg-secondary);
}


/* Container */
.tto-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.tto-search-wrapper {
    position: relative;
    z-index: 999;
    max-width: 600px;
    margin: 0 auto;
}

.tto-results-section {
  max-width: 1400px;
  margin: 0 auto;
  padding: 40px 20px 120px 20px;
}

.tto-filters-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ========================================
   Hero Section
   ======================================== */

.tto-hero {
  position: relative;
  min-height: 500px;
  background: linear-gradient(135deg, var(--tto-bg-primary) 0%, var(--tto-bg-secondary) 100%);
  padding: 80px 0;
  z-index: 999;
}

/* Animated background */
.tto-hero-bg {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    overflow: hidden;
    position: absolute;
}

.tto-gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.3;
    animation: float-orb 20s infinite ease-in-out;
}

.tto-orb-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--tto-primary-light) 0%, transparent 70%);
    top: -300px;
    left: -300px;
}

.tto-orb-2 {
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, var(--tto-secondary-light) 0%, transparent 70%);
    bottom: -400px;
    right: -400px;
    animation-delay: -5s;
}

.tto-orb-3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--tto-primary) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -10s;
}

@keyframes float-orb {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(30px, -30px) scale(1.1);
    }
    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

/* Particle canvas */
#tto-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.5;
}

/* Hero content */
.tto-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.tto-dropdown-trigger i {
  color: var(--tto-primary);
  font-size: 20px;
  width: 20px;
}

.tto-hero-title {
   animation: fadeInUp 0.8s ease-out;
  	font-size: clamp(42px, 6vw, 72px);
  	font-weight: 700;
  	line-height: 1.1;
  	color: var(--tty-header-primary);
  	letter-spacing: -0.02em;
  	margin-top: 0px;
}

.tto-title-main {
    display: block;
    font-size: clamp(36px, 6vw, 72px);
    font-weight: 800;
    line-height: 1.1;
    color: var(--tto-text-primary);
    margin-bottom: 10px;
    background: linear-gradient(135deg, var(--tto-primary) 0%, var(--tto-primary-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tto-title-accent {
    display: block;
    font-size: clamp(20px, 3vw, 32px);
    font-weight: 400;
    color: var(--tto-text-secondary);
    opacity: 0.8;
    margin-bottom: 28px;
}

/* Stats row */
.tto-stats-row {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-bottom: 50px;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.tto-stat {
    text-align: center;
}

.tto-stat-number {
    display: block;
    font-size: 48px;
    font-weight: 700;
    color: var(--tto-primary);
    line-height: 1;
    margin-bottom: 5px;
}

.tto-stat-label {
    font-size: 14px;
    color: var(--tto-text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Search hero */
.tto-search-hero {
    max-width: 600px;
    margin: 0 auto;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.tto-search-wrapper {
    position: relative;
    z-index: 999;
}

.tto-search-wrapper .tto-search-input:focus {
    outline: none;
    border-color: var(--tty-search-accent);
    box-shadow: 0 0 0 4px rgba(0, 95, 95, 0.1), 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.tto-search-btn img {
  width: 20px;
  height: 20px;
  filter: brightness(0) invert(1);
  min-width: 20px;
  min-height: 20px;
}

.tto-search-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 50%;
    background: var(--tty-bg-linear-graniet);
    color: white;
    cursor: pointer;
    transition: var(--tto-transition);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.tto-search-btn:hover {
    transform: translateY(-50%) scale(1.05);
}

.tto-search-wrapper .tto-search-input {
    padding: 16px 60px 16px 24px !important;
    border: 2px solid var(--tty-search-border);
    border-radius: var(--tty-search-radius-full);
    font-size: 16px;
    font-weight: 500;
    background: var(--tty-search-bg);
    color: var(--tty-search-text);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Search suggestions */
.tto-search-suggestions {
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 24px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    max-height: 540px;
    overflow: hidden;
    display: none;
    z-index: 1000;
}

[data-theme="dark"] .tto-search-suggestions {
    background: rgba(30, 42, 46, 0.95);
    border-color: rgba(255, 255, 255, 0.1);
}

.tto-search-suggestions.active {
    display: block;
    animation: searchDropdownOpen 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes searchDropdownOpen {
    0% {
        opacity: 0;
        transform: translateY(-10px) scale(0.96);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.tto-suggestions-header {
    padding: 20px 24px 12px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}


.tto-suggestions-header h3 {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--tto-text-secondary);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tto-suggestions-header .tto-result-count {
    background: var(--tto-secondary);
    color: white;
    font-weight: 500;
    width: 24px;
    height: 24px;
    border-radius: 30px;
    align-items: center;
    display: flex;
    justify-content: center;
}

.tto-suggestions-content {
    max-height: 400px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.2) transparent;
}

.tto-suggestions-content::-webkit-scrollbar {
    width: 6px;
}

.tto-suggestions-content::-webkit-scrollbar-track {
    background: transparent;
}

.tto-suggestions-content::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}

.tto-suggestion-item {
    padding: 16px 24px;
    display: flex;
    align-items: flex-start;
    gap: 28px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: hidden;
    opacity: 0;
    animation: suggestionFadeIn 0.3s ease forwards;
    align-items: center;
}

.tto-suggestion-item:nth-child(1) { animation-delay: 0.05s; }
.tto-suggestion-item:nth-child(2) { animation-delay: 0.1s; }
.tto-suggestion-item:nth-child(3) { animation-delay: 0.15s; }
.tto-suggestion-item:nth-child(4) { animation-delay: 0.2s; }
.tto-suggestion-item:nth-child(5) { animation-delay: 0.25s; }



@keyframes suggestionFadeIn {
    0% {
        opacity: 0;
        transform: translateX(-10px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}
.tto-suggestion-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 95, 95, 0.05), transparent);
    transition: left 0.5s ease;
}

.tto-suggestion-item:hover::before {
    left: 100%;
}

.tto-suggestion-item:last-child {
    border-bottom: none;
}

.tto-suggestion-item:hover,
.tto-suggestion-item.active {
    background: rgba(0, 95, 95, 0.04);
    padding-left: 28px;
}



.tto-suggestion-image {
    width: 120px;
    height: 80px;
    flex-shrink: 0;
    border-radius: 12px;
    overflow: hidden;
    background: var(--tto-bg-tertiary);
    position: relative;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.tto-suggestion-image-badge {
position: absolute;
  top: 6px;
  right: 6px;
  background: var(--tto-primary);
  color: white;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.tto-suggestion-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.tto-suggestion-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--tto-primary) 0%, var(--tto-primary-light) 100%);
    color: white;
    font-size: 40px;
}

.tto-suggestion-content {
    flex: 1;
    min-width: 0;
    text-align: left;
}

.tto-suggestion-item:last-child {
    border-bottom: none;
}

.tto-suggestion-item:hover {
    background: var(--tto-bg-secondary);
}


.tto-suggestion-icon {
    width: 40px;
    height: 40px;
    background: var(--tto-bg-tertiary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--tto-primary);
    flex-shrink: 0;
}

.tto-suggestion-text {
    flex: 1;
}

.tto-suggestion-title {
    font-weight: 600;
    font-size: 16px;
    color: var(--tto-text-primary);
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.3;
}

.tto-suggestion-item:hover .tto-suggestion-title {
    color: var(--tto-primary);
}

.tto-suggestion-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 6px;
    flex-wrap: wrap;
}

.tto-suggestion-category {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: rgba(0, 95, 95, 0.1);
    color: var(--tto-primary);
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.tto-suggestion-expert {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--tto-success);
    font-weight: 500;
}


.tto-suggestion-expert i {
    font-size: 14px;
}

.tto-suggestion-trending {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    background: rgba(229, 146, 76, 0.1);
    color: var(--tto-secondary);
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

.tto-suggestion-description {
    font-size: 14px;
    color: var(--tto-text-secondary);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Action Icon */
.tto-suggestion-action {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--tto-bg-secondary);
    border-radius: 50%;
    color: var(--tto-primary);
    transition: all 0.2s ease;
    margin-left: auto;
}

.tto-suggestion-item:hover .tto-suggestion-action {
    background: var(--tto-primary);
    color: white;
    transform: scale(1.1);
}

/* Skeleton Loader for Search */
.tto-suggestions-skeleton {
    padding: 20px 24px;
}

.tto-skeleton-search-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 20px;
    opacity: 0;
    animation: skeletonFadeIn 0.3s ease forwards;
}

.tto-skeleton-search-item:nth-child(1) { animation-delay: 0s; }
.tto-skeleton-search-item:nth-child(2) { animation-delay: 0.1s; }
.tto-skeleton-search-item:nth-child(3) { animation-delay: 0.2s; }

@keyframes skeletonFadeIn {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.tto-skeleton-search-image {
    width: 120px;
    height: 80px;
    border-radius: 12px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

.tto-skeleton-search-content {
    flex: 1;
}

.tto-skeleton-search-title {
    height: 20px;
    width: 70%;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
    margin-bottom: 8px;
}

.tto-skeleton-search-meta {
    display: flex;
    gap: 12px;
    margin-bottom: 8px;
}

.tto-skeleton-search-badge {
    height: 24px;
    width: 80px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 12px;
}

.tto-skeleton-search-desc {
    height: 16px;
    width: 90%;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
    margin-bottom: 4px;
}

.tto-skeleton-search-desc:last-child {
    width: 60%;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* Empty State */
.tto-suggestions-empty {
    padding: 60px 24px;
    text-align: center;
}

.tto-suggestions-empty i {
    font-size: 48px;
    color: var(--tto-primary);
    opacity: 0.3;
}

.tto-suggestions-empty h4 {
    font-size: 18px;
    color: var(--tto-text-primary);
    margin-bottom: 8px;
    margin-top: -60px;
}

.tto-suggestions-empty p {
    font-size: 14px;
    color: var(--tto-text-secondary);
    margin-bottom: 20px;
}

.tto-suggestion-tips {
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: left;
    max-width: 300px;
    margin: 0 auto;
}

.tto-suggestion-tip {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: var(--tto-bg-secondary);
    border-radius: 8px;
    font-size: 13px;
    color: var(--tto-text-secondary);
}

.tto-suggestion-tip i {
    font-size: 14px;
    color: var(--tto-primary);
    opacity: 1;
}
/* View All Results */
.tto-suggestions-footer {
    padding: 16px 24px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    background: rgba(0, 95, 95, 0.02);
}

.tto-view-all-results {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 24px;
    background: var(--tto-primary);
    color: white;
    border: none;
    border-radius: 16px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.tto-view-all-results:hover {
    background: var(--tto-primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 95, 95, 0.3);
    color: white;
}


/* Loading Spinner Enhancement */
.tto-suggestions-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    gap: 16px;
}

.tto-search-spinner {
    width: 40px;
    height: 40px;
    position: relative;
}

.tto-search-spinner::before,
.tto-search-spinner::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid transparent;
    border-top-color: var(--tto-primary);
    animation: searchSpin 1s linear infinite;
}

.tto-search-spinner::after {
    border-top-color: var(--tto-secondary);
    animation-delay: 0.5s;
    opacity: 0.6;
}

@keyframes searchSpin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.tto-search-loading-text {
    font-size: 14px;
    color: var(--tto-text-secondary);
    animation: loadingPulse 1.5s ease-in-out infinite;
}

@keyframes loadingPulse {
    0%, 100% {
        opacity: 0.5;
    }
    50% {
        opacity: 1;
    }
}

/* Category-specific colors */
.tto-suggestion-category[data-category="medication"] {
    background: rgba(76, 175, 80, 0.1);
    color: #4CAF50;
}

.tto-suggestion-category[data-category="therapy"] {
    background: rgba(33, 150, 243, 0.1);
    color: #2196F3;
}

.tto-suggestion-category[data-category="lifestyle"] {
    background: rgba(255, 152, 0, 0.1);
    color: #FF9800;
}

.tto-suggestion-category[data-category="surgery"] {
    background: rgba(244, 67, 54, 0.1);
    color: #F44336;
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .tto-search-suggestions {
        position: fixed;
        left: 0;
        right: 0;
        max-height: 70vh;
        border-radius: 24px;
    }
    
    @keyframes mobileSlideUp {
        0% {
            transform: translateY(100%);
        }
        100% {
            transform: translateY(0);
        }
    }
    
    .tto-suggestions-content {
        max-height: calc(70vh - 120px);
    }
    
    .tto-skeleton-search-image {
        width: 60px !important;
    }
    
    .tto-suggestion-image {
        width: 60px;
        height: 80px;
    }
    
    .tto-suggestion-title {
        font-size: 15px;
    }
    
    .tto-suggestion-description {
        font-size: 13px;
        -webkit-line-clamp: 1;
    }
}

/* Dark mode enhancements */
[data-theme="dark"] .tto-suggestion-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .tto-skeleton-search-image,
[data-theme="dark"] .tto-skeleton-search-title,
[data-theme="dark"] .tto-skeleton-search-badge,
[data-theme="dark"] .tto-skeleton-search-desc {
    background: linear-gradient(90deg, #2a2a2a 25%, #3a3a3a 50%, #2a2a2a 75%);
    background-size: 200% 100%;
}

[data-theme="dark"] .tto-suggestion-category {
    background: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .tto-suggestions-footer {
    background: rgba(255, 255, 255, 0.02);
}

/* ========================================
   Filters Section
   ======================================== */

.tto-filters-section {
  background: var(--tto-bg-secondary);
}

/* Category tags */
.tto-category-tags {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 30px;
    justify-content: center;
}

.tto-tag {
    padding: 10px 12px;
    border: 2px solid var(--tto-border-light);
    border-radius: 50px;
    background: white;
    font-weight: 600;
    cursor: pointer;
    transition: var(--tto-transition);
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: inherit;
    font-size: 13px;
}

.tto-tag:hover {
    border-color: var(--tto-primary);
    transform: translateY(-2px);
    box-shadow: var(--tto-shadow-md);
}

.tto-tag.active {
    background: var(--tto-primary);
    color: white;
    border-color: var(--tto-primary);
}

.tto-tag-count {
	background: rgb(229, 146, 76);
  padding: 2px 7px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 400;
  color: white;
  min-width: 21px;
  transition: all 0.3s ease;
}

.tto-tag.active .tto-tag-count {
    background: rgba(255, 255, 255, 0.2);
}

.tto-tag-count.tto-count-updated {
    transform: scale(1.2);
    background: var(--tto-primary);
    color: white;
}

.tto-tag.active .tto-tag-count.tto-count-updated {
    background: white;
    color: var(--tto-primary);
}

/* Filters bar */
.tto-filters-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    padding: 20px 0;
}

.tto-filters-left,
.tto-filters-right {
    display: flex;
    gap: 15px;
    align-items: center;
}

/* Filter dropdown */
.tto-filter-dropdown {
    position: relative;
}

.tto-dropdown-trigger {
    padding: 8px 8px;
    background: white;
    border: 2px solid var(--tto-border-light);
    border-radius: var(--tto-radius-sm);
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--tto-transition);
    display: flex;
    align-items: center;
    gap: 10px;
}

.tto-dropdown-item.tto-dropdown-item-child i {
  color: #c2d2d6;
}

.tto-dropdown-trigger:hover {
    border-color: var(--tto-primary);
}

.filter-parent-count {
  color: var(--tto-text-secondary);
  opacity: .4;
}

.filter-child-count {
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  background: var(--tty-secondary);
  color: white;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
  margin-left: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
}

.tto-filter-dropdown[data-filter="category"] .tto-dropdown-item input[type="radio"] {
  width: 20px !important;
}

.filter-child-category-wrapper {
  display: flex;
  align-items: center;
  width: 100%;
}

.filter-child-category {
  margin-left: 10px;
}

.filter-parent-category,
.filter-child-category {
  display: flex;
  justify-content: space-between;
  width: 100%;
  align-items: center;
}

.tto-dropdown-trigger i:last-child {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.tto-dropdown-item.tto-dropdown-item-child {
  font-size: 13px;
  color: var(--tto-text-secondary);
}

@media (min-width: 768px) {
  .tto-categories-filter, .tto-results-header {
    display: none !important;
  }
}

.tto-dropdown-item input[type="radio"]:checked {
  border-color: var(--tto-primary);
  background: var(--tto-primary);
}

.tto-dropdown-item input[type="radio"]:checked::after {
  content: '';
  position: absolute;
  width: 6px;
  height: 6px;
  background: white;
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.tto-dropdown-item input[type="radio"] {
  appearance: none;
  width: 18px !important;
  height: 18px !important;
  border: 2px solid var(--tto-border-medium);
  border-radius: 50%;
  position: relative;
  transition: all 0.3s ease;
}

.tto-filter-dropdown.active .tto-dropdown-trigger i:last-child {
    transform: rotate(180deg);
}

.tto-dropdown-menu {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    min-width: 200px;
    background: white;
    border-radius: var(--tto-radius-sm);
    box-shadow: var(--tto-shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--tto-transition);
    z-index: 10;
    max-height: 300px;
    overflow-y: auto;
}

.tto-filter-dropdown.active .tto-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.tto-dropdown-item {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    cursor: pointer;
    transition: var(--tto-transition);
    border-bottom: 1px solid var(--tto-border-light);
    white-space: nowrap;
    transition: all 0.3s ease;
    overflow: hidden;
}

.tto-dropdown-item[style*="display: none"] {
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    opacity: 0;
}

.tto-dropdown-item:last-child {
    border-bottom: none;
}

.tto-dropdown-item:hover {
    background: var(--tto-bg-secondary);
}

.tto-dropdown-item input {
    margin-right: 10px;
}

/* View switcher */
.tto-view-switcher {
    display: flex;
    background: var(--tty-bg-secondary, #f8f9fa);
    border-radius: var(--tto-radius-sm);
    overflow: hidden;
    padding: 4px;
}

.tto-view-btn {
    padding: 8px 12px;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
  	color: var(--tty-text-muted, #666);
  	border-radius: var(--tty-radius-sm, 8px);
  	width: 38px;
    height: 38px;
}

.tto-view-btn:hover {
    background: var(--tto-bg-secondary);
    color: var(--tto-primary);
}

.tto-view-btn.active {
  background: white;
  color: var(--tty-primary, #005F5F);
}

/* Reset filters */
.tto-reset-filters {
    padding: 8px 12px;
    background: var(--tto-danger);
    color: white;
    border: none;
    border-radius: var(--tto-radius-sm);
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--tto-transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.tto-reset-filters:hover {
    background: #d32f2f;
    transform: translateY(-2px);
}

/* Active filters */
.tto-active-filters {
    padding-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.tto-active-label {
    font-weight: 600;
    color: var(--tto-text-secondary);
    font-size: 14px;
}

.tto-active-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.tto-categories-filter {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 30px;
  justify-content: left;
}

.tto-active-tag {
    padding: 6px 12px 6px 16px;
    background: var(--tto-primary);
    color: white;
    border-radius: 20px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tto-active-tag button {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 0;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--tto-transition);
}

.tto-active-tag button:hover {
    color: #f44336;
}

/* Mobile Filter Header & Footer */
.tto-mobile-filter-header {
    display: none;
    position: sticky;
    top: 0;
    background: var(--tto-bg-primary);
    padding: 15px 20px;
    z-index: 101;
    align-items: center;
    justify-content: space-between;
}

.tto-mobile-filter-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--tto-text-primary);
}

.tto-mobile-filter-close {
  width: 44px;
  height: 44px;
  border: none;
  background: rgba(0, 0, 0, 0.04);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--tty-animation-normal) ease;
  color: var(--tty-text-secondary, #666);
  font-size: 20px;
  position: relative;
  overflow: hidden;
}

.tto-mobile-filter-close:hover {
    background: var(--tto-border-light);
}

.tto-mobile-filter-footer {
    display: none;
    position: sticky;
    bottom: 0;
    background: var(--tto-bg-primary);
    border-top: 1px solid var(--tto-border-light);
    padding: 16px 20px;
    z-index: 101;
}

.tto-mobile-apply-filters {
    width: 100%;
    padding: 16px 24px;
    background: var(--tty-bg-linear-graniet);
    color: white;
    border: none;
    border-radius: var(--tto-radius);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--tto-transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.tto-mobile-apply-filters:hover {
    background: var(--tto-primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--tto-shadow-md);
}

/* ========================================
   Results Section
   ======================================== */

.tto-results-header {
    margin-bottom: 40px;
    text-align: center;
}

.tto-results-count {
    font-size: 16px;
    color: var(--tto-text-secondary);
    transition: opacity 0.3s ease;
    min-height: 24px;
}

.tto-results-count.loading {
    opacity: 0.5;
}

.tto-wrapper:not(.tto-loaded) .tto-results-count {
    color: var(--tto-text-secondary);
    font-style: italic;
}

.tto-heartbeat-container {
  margin: 20px auto 7px;
}

.tto-count-current,
.tto-count-total {
    font-weight: 700;
    color: var(--tto-primary);
    display: inline-block;
    min-width: 20px;
    text-align: center;
}


.tto-spinner-wrapper {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.tto-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid var(--tto-border-light);
    border-top-color: var(--tto-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Grid layout */
.tto-grid {
    display: grid;
    gap: 20px;
    transition: opacity 0.3s ease;
    will-change: auto;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.tto-grid.tto-loading-active {
    opacity: 0.5;
    pointer-events: none;
}

.tto-grid[data-columns="3"] {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.tto-grid[data-columns="4"] {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.tto-grid[data-columns="2"] {
    grid-template-columns: repeat(auto-fill, minmax(450px, 1fr));
}

/* Treatment item - Grid view */
.tto-item {
    opacity: 1;
    will-change: auto;
}

.tto-item-grid {
    background: white;
    border-radius: var(--tto-radius);
    overflow: hidden;
    box-shadow: var(--tto-shadow-sm);
    transition: transform var(--tto-transition), box-shadow var(--tto-transition);
    height: 100%;
    position: relative;
    will-change: transform, box-shadow;
    display: flex;
    flex-direction: column;
}

.tto-item-grid:hover {
    transform: translateY(-2px);
    box-shadow: var(--tto-shadow-md);
}

.tto-item-grid .tto-save-btn {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid #e0e0e0;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--tto-text-secondary);
    font-size: 20px;
    z-index: 10;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.23);
}

.tto-compact-item .tto-save-btn {
  z-index: 10;
  pointer-events: all;
  background: rgba(255, 255, 255, 0.95);
  border: 2px solid var(--tto-border-light);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  font-size: 20px;
  align-items: center;
  justify-content: center;
}

.tto-item-grid .tto-save-btn:hover {
    background: var(--tto-secondary);
    border-color: var(--tto-secondary);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 95, 95, 0.3);
    opacity: 1 !important;
}

.tto-item-grid .tto-save-btn.saved {
    background: var(--tto-secondary);
    border-color: var(--tto-secondary);
    color: white;
    city: .7;
}

.tto-item-grid .tto-save-btn.saved i::before {
    content: "\f004"; /* Filled heart voor Font Awesome */
    font-weight: 900;
}

/* Fix voor compact view save button die niet werkt */
.tto-compact-item .tto-save-btn {
    position: relative;
    z-index: 10;
    pointer-events: all;
}

.tto-item-link {
    display: block;
    text-decoration: none;
    color: inherit;
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
}

.tto-item-image {
    position: relative;
    padding-bottom: 66.67%; /* 580/870 ratio */
    overflow: hidden;
    background: var(--tto-bg-tertiary);
}

.tto-item-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.6s ease;
    transform: scale(1);
}

.tto-item-grid:hover .tto-item-image img {
    transform: scale(1.1);
}

.tto-image-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--tto-text-secondary);
    font-size: 60px;
    opacity: 0.2;
}

.tto-expert-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 8px 16px;
    background: var(--tto-success);
    color: white;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.tto-item-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.tto-item-category {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    color: var(--tto-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    flex-shrink: 0;
    margin-bottom: 10px;
}

.tto-item-title {
    margin-bottom: 10px;
    transition: color 0.3s ease;
    margin-top: 15px;
    flex-shrink: 0;
}

.tto-item-grid:hover .tto-item-title {
    color: var(--tto-primary);
}

.tto-item-subtitle {
    font-size: 15px;
    color: var(--tto-text-secondary);
    line-height: 1.5;
    margin-bottom: 15px;
    flex-grow: 1;
}

.tto-item-expert {
    font-size: 14px;
    color: var(--tto-text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    flex-shrink: 0;
}

.tto-item-grid .tto-item-content {
    min-height: 200px;
}
.tto-item-grid .tto-item-title:last-child {
    margin-bottom: 0;
}

.tto-item-content > .tto-item-title + .tto-item-expert {
    margin-top: auto;
    padding-top: 15px;
}

.tto-item-expert i {
    color: var(--tto-primary);
}

/* Hover overlay */
.tto-item-hover {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 25px;
    background: linear-gradient(to top, rgba(0, 95, 95, 0.9) 0%, transparent 100%);
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.tto-item-grid:hover .tto-item-hover {
    transform: translateY(0);
}

.tto-btn-text {
    color: white;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Treatment item - Compact view */
.tto-item-compact {
    margin-bottom: 0;
}

.tto-compact-item {
    display: flex;
    align-items: center;
    padding: 20px 25px;
    background: white;
    border: 2px solid var(--tto-border-light);
    border-radius: var(--tto-radius);
    text-decoration: none;
    color: inherit;
    transition: var(--tto-transition);
}

.tto-compact-item:not(:last-child) {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-bottom: none;
}

.tto-compact-content .tty-expert-verified {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 0px;
  color: var(--tty-primary);
  font-weight: 600;
  font-size: 12px;
  margin-top: 8px;
}

.tto-compact-content .tty-expert-verified i {
  font-size: 17px;
  color: var(--tty-primary);
}

.tto-compact-item:not(:first-child) {
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

.tto-compact-item:hover {
    background: var(--tto-bg-secondary);
    transform: translateX(5px);
}

.tto-compact-content {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 15px;
}

.tto-compact-item .tto-item-title {
    font-size: 20px;
    margin: 0;
}

.tto-compact-item .tto-item-category {
  text-transform: none !important;
  color: var(--tto-text-secondary);
  margin: 6px 0;
  font-size: 11px;
  letter-spacing: 0px !important;
}

.tto-expert-indicator {
    color: var(--tto-success);
    font-size: 20px;
    margin-right: 10px;
}

.tto-compact-arrow {
    color: var(--tto-text-secondary);
    transition: transform 0.3s ease;
}

.tto-compact-item:hover .tto-compact-arrow {
    transform: translateX(5px);
}

/* Empty state */
.tto-empty-state {
    text-align: center;
    padding: 100px 20px;
}

.tto-empty-icon {
    font-size: 80px;
    color: var(--tto-text-secondary);
    opacity: 0.3;
    margin-bottom: 30px;
}

.tto-empty-state h3 {
    font-size: 28px;
    color: var(--tto-text-primary);
    margin-bottom: 10px;
}

.tto-empty-state p {
    font-size: 18px;
    color: var(--tto-text-secondary);
    margin-bottom: 30px;
}

.tto-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    background: var(--tto-primary);
    color: white;
    border: none;
    border-radius: 50px;
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--tto-transition);
}

.tto-btn-primary:hover {
    background: var(--tto-primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--tto-shadow-md);
}

/* Pagination */
.tto-pagination {
    margin-top: 60px;
    text-align: center;
    gap: 10px;
    display: flex;
    justify-content: center;
    width: 100%;
}

.tto-pagination-wrapper {
    display: inline-flex;
    gap: 10px;
    align-items: center;
}

.tto-pagination a,
.tto-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 45px;
    width: 45px;
    height: 45px;
    padding: 0 15px;
    background: white;
    border: 2px solid var(--tto-border-light);
    border-radius: 30px;
    color: var(--tto-text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--tto-transition);
}

.tto-pagination a:hover {
    border-color: var(--tto-primary);
    color: var(--tto-primary);
    transform: translateY(-2px);
}

.tto-pagination .current {
    background: var(--tto-primary);
    color: white;
    border-color: var(--tto-primary);
}

/* Infinite scroll */
.tto-infinite-scroll {
    margin-top: 60px;
    text-align: center;
}

.tto-infinite-trigger {
    height: 1px;
    margin-bottom: 60px;
}

.tto-infinite-loading {
    padding: 40px;
}

/* Mobile filter button */
.tto-mobile-filter-btn {
    display: none;
    position: fixed;
    bottom: 82px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: var(--tty-bg-linear-graniet);
    color: white;
    border: none;
    border-radius: 50%;
    box-shadow: var(--tto-shadow-lg);
    cursor: pointer;
    z-index: 9999;
    transition: var(--tto-transition);
    font-size: 24px;
}

.tto-mobile-filter-btn .tto-filter-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--tto-secondary);
    color: white;
    font-size: 12px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 20px;
    text-align: center;
}

.tto-filter-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 24px;
    height: 24px;
    background: var(--tty-secondary);
    color: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    padding: 0 6px;
}

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

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

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   Responsive Design
   ======================================== */

/* Tablet */
@media (max-width: 1024px) {
    .tto-hero {
        padding: 60px 0;
    }
    
    .tto-stats-row {
        gap: 40px;
    }
    
    .tto-stat-number {
        font-size: 36px;
    }
    
    .tto-grid[data-columns="3"],
    .tto-grid[data-columns="4"] {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
    
    .tto-list-item-wrapper {
        gap: 20px;
    }
}

/* Mobile */
@media (max-width: 768px) {

/* Ensure proper text color and font inheritance for active mobile filters */
.tto-filters-section.active {
    color: var(--tto-text-primary);
}

/* Fix text colors for all interactive elements in mobile filters */
.tto-filters-section.active .tto-tag {
    color: var(--tto-text-primary);
}

.tto-filters-section.active .tto-tag.active {
    color: var(--tto-text-light);
}

.tto-filters-section.active .tto-dropdown-trigger {
    color: var(--tto-text-primary);
    font-family:15px;
}

.tto-filters-section.active .tto-dropdown-item {
    color: var(--tto-text-primary);
}

.tto-filters-section.active .tto-dropdown-item label {
    color: var(--tto-text-primary);
}


.tto-filters-section.active .tto-mobile-filter-header h3 {
    color: var(--tto-text-primary);
}

.tto-filters-section.active .tto-mobile-apply-filters {
}

/* Prevent any anchor tags from showing blue */
.tto-filters-section.active a {
    color: inherit;
    text-decoration: none;
}

/* Ensure buttons don't get browser styling */
.tto-filters-section.active button {
    font-family: inherit;
}

/* Fix for any labels that might be styled by browser */
.tto-filters-section.active label {
    color: var(--tto-text-primary);
    font-family: 'Figtree', sans-serif;
}

/* Dark mode support for mobile filters */
[data-theme="dark"] .tto-filters-section.active {
    color: var(--tto-text-primary);
}

[data-theme="dark"] .tto-filters-section.active .tto-tag {
    color: var(--tto-text-primary);
}

[data-theme="dark"] .tto-filters-section.active .tto-dropdown-trigger,
[data-theme="dark"] .tto-filters-section.active .tto-dropdown-item {
    color: var(--tto-text-primary);
}


    /* Prevent body scroll when filters are open */
    body.tto-filters-open {
        overflow: hidden;
    }

    /* Fix the white space issue */
    .tto-filters-section {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--tto-bg-primary);
        z-index: 9999;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        overflow-y: auto;
        padding: 0;
        display: flex;
        flex-direction: column;
    }
    
    .tto-filters-section.active {
        transform: translateX(0);
    }
    
    /* Show mobile header and footer */
    .tto-mobile-filter-header {
        display: flex;
    }
    
    .tto-mobile-filter-footer {
        display: block;
        margin-top: auto;
    }
    
    /* Adjust container for mobile */
    .tto-filters-section .tto-container {
        padding: 20px;
        flex: 1;
        overflow-y: auto;
        margin: 0px;
    }
    
    /* Make category tags scrollable if needed */
    .tto-category-tags {
        gap: 10px;
        max-height: none;
    }
    
    .tto-tag.tto-tag-all {
        width: 100%;
        margin-bottom: 5px;
    }

    .tto-tag {
        min-width: 48.2%;
        justify-content: space-between;
        padding: 16px 20px;
        font-size: 15px;
    }
    
    /* Filters bar adjustments */
    .tto-filters-bar {
        flex-direction: column;
        gap: 15px;
        margin-top: 20px;
    }
    
    .tto-filters-left,
    .tto-filters-right {
        width: 100%;
        flex-direction: column;
        gap: 15px;
    }
    
    .tto-filter-dropdown {
        width: 100%;
    }
    
    .tto-dropdown-trigger {
        width: 100%;
        justify-content: space-between;
        padding: 16px 20px;
    }
    
    .tto-dropdown-menu {
        top: 0;
        width: 100%;
        box-shadow: none;
        border: 1px solid var(--tto-border-light);
        margin-top: 10px;
        max-height: 200px;
    }
    
    .tto-filter-dropdown.active .tto-dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: none;
        position: relative;
    }
    
    .tto-view-switcher {
        width: 100%;
        justify-content: center;
    }
    
    .tto-view-btn {
        flex: 1;
        padding: 12px;
    }
    
    .tto-reset-filters {
        width: 100%;
        justify-content: center;
        padding: 16px 24px;
    }
    
    /* Active filters on mobile */
    .tto-active-filters {
        margin-top: 20px;
        padding: 15px;
        background: var(--tto-bg-secondary);
        border-radius: var(--tto-radius-sm);
    }

    .tto-suggestion-item {
        padding: 10px 12px;
    }
    
    .tto-suggestion-image {
        width: 60px;
        height: 80px;
    }
    
    .tto-suggestion-title {
        font-size: 15px;
    }
    
    .tto-suggestion-category {
        font-size: 12px;
    }
    
    .tto-hero {
        min-height: auto;
        padding: 80px 0;
        margin-top: 10px;
        z-index: 998;
    }
    
    .tto-title-main {
        font-size: 36px;
    }
    
    .tto-title-accent {
        font-size: 20px;
    }
    
    .tto-stats-row {
        gap: 30px;
        flex-wrap: wrap;
    }
    
    .tto-stat-number {
        font-size: 32px;
    }
    
    .tto-search-btn {
        width: 44px;
        height: 44px;
        font-size: 18px;
    }
    
    /* Grid mobile */
    .tto-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    /* List mobile */
    .tto-list-item-wrapper {
        flex-direction: column;
        padding: 20px;
    }
    
    .tto-list-image a {
        width: 100%;
        height: 200px;
    }
    
    .tto-list-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    /* Show mobile filter button */
    .tto-mobile-filter-btn {
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* Small mobile */
@media (max-width: 480px) {
    .tto-container {
        padding: 0 15px;
    }
    
    .tto-title-main {
        font-size: 28px;
    }
    
    .tto-title-accent {
        font-size: 18px;
    }
    
    .tto-stats-row {
        gap: 20px;
    }
    
    .tto-stat {
        min-width: 80px;
    }
    
    .tto-stat-number {
        font-size: 28px;
    }
    
    .tto-stat-label {
        font-size: 12px;
    }
    
    /* Compact view adjustments */
    .tto-compact-item {
        padding: 15px;
    }
    
    .tto-compact-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    /* Mobile filter button smaller */
    .tto-mobile-filter-btn {
	width: 45px;
    height: 45px;
    font-size: 20px;
    bottom: 262px;
    right: 15px;
    }
}

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

.tto-text-center { text-align: center; }
.tto-text-left { text-align: left; }
.tto-text-right { text-align: right; }

.tto-mt-0 { margin-top: 0; }
.tto-mt-1 { margin-top: 10px; }
.tto-mt-2 { margin-top: 20px; }
.tto-mt-3 { margin-top: 30px; }
.tto-mt-4 { margin-top: 40px; }
.tto-mt-5 { margin-top: 50px; }

.tto-mb-0 { margin-bottom: 0; }
.tto-mb-1 { margin-bottom: 10px; }
.tto-mb-2 { margin-bottom: 20px; }
.tto-mb-3 { margin-bottom: 30px; }
.tto-mb-4 { margin-bottom: 40px; }
.tto-mb-5 { margin-bottom: 50px; }

.tto-d-none { display: none; }
.tto-d-block { display: block; }
.tto-d-flex { display: flex; }
.tto-d-grid { display: grid; }

/* Print styles */
@media print {
    .tto-filters-section,
    .tto-mobile-filter-btn,
    .tto-pagination,
    .tto-infinite-scroll {
        display: none !important;
    }
    
    .tto-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .tto-item {
        break-inside: avoid;
    }
}

.tto-breadcrumbs li:not(:last-child)::after {
  content: '';
  position: absolute;
  right: -16px;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-top: 2px solid var(--tty-text-secondary);
  border-right: 2px solid var(--tty-text-secondary);
  transform: translateY(-50%) rotate(45deg);
  opacity: 0.5;
}

/* ========================================
   Category Page Specific Styles
   ======================================== */

.tto-category-hero {
    position: relative;
    background: linear-gradient(135deg, var(--tto-bg-primary) 0%, var(--tto-bg-secondary) 100%);
    padding: 60px 0;
    margin-bottom: -80px;
}

.tto-breadcrumbs {
    margin-bottom: 30px;
}

.tto-breadcrumbs ol {
 display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}


.tto-breadcrumbs a {
    color: var(--tty-text-secondary);
    align-items: center;
    display: flex;
}

.tto-breadcrumbs a:hover {
    color: var(--tty-secondary-dark);
}


.tto-hero-description {
    font-size: 18px;
    line-height: 1.6;
    color: var(--tto-text-secondary);
    max-width: 800px;
    margin: 30px auto;
    text-align: center;
}

.tto-subcategories h3 {
    font-size: 18px;
    margin-bottom: 20px;
    text-align: center;
}

.tto-subcategory-links {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.tto-subcategory-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: white;
    border: 2px solid var(--tto-border-light);
    border-radius: 25px;
    text-decoration: none;
    color: var(--tto-text-primary);
    font-weight: 500;
    transition: all 0.3s ease;
}

.tto-subcategory-link:hover {
    background: var(--tto-primary);
    color: white;
    border-color: var(--tto-primary);
    transform: translateY(-2px);
    box-shadow: var(--tto-shadow-md);
}

.tto-subcategory-link .tto-count {
    font-size: 14px;
    opacity: 0.7;
}

/* Hide the main hero when on category page */
.page-template-taxonomy-treatment_category .tto-hero {
    display: none;
}

/* Adjust filters section for category pages */
.page-template-taxonomy-treatment_category .tto-filters-section {
    margin-top: 0;
    padding-top: 100px;
}

/* ========================================
   Modern Breadcrumbs
   ======================================== */

.tto-breadcrumbs {
    margin-bottom: 30px;
    animation: fadeInUp 0.5s ease-out;
}

.tto-breadcrumbs li {
 position: relative;
  font-size: 14px;
  align-items: center;
  display: flex;
}


.tto-breadcrumbs .current span {
 opacity: .4;
  font-weight: 600;
  max-width: 8ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: inline-block;
}

/* ========================================
   Category Hero Styling
   ======================================== */

.tto-category-hero .tto-hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.tto-category-hero .tto-hero-title {
    margin-bottom: 20px;
}

.tto-hero-description {
    font-size: 18px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
    animation: fadeInUp 0.6s ease-out 0.3s both;
}

.tto-subcategory-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}


.tto-subcategory-link:hover {
    background: white;
    color: var(--tto-primary);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.tto-subcategory-link .tto-count {
    font-size: 13px;
    opacity: 0.8;
    font-weight: 400;
}

/* Mobile optimizations for breadcrumbs */
@media (max-width: 768px) {
    .tto-breadcrumbs {
        margin-bottom: 20px;
    }
    
    .tto-breadcrumbs ol {
        gap: 4px;
    }
    
    .tto-breadcrumbs li {
        font-size: 12px;
    }
    
    .tto-breadcrumbs a {
        padding: 8px 14px;
        font-size: 12px;
        background: var(--tty-primary);
        color: white;
        border-radius: 30px;
    }
    
    .tto-breadcrumbs a i {
        font-size: 14px;
    }
    
    .tto-breadcrumbs li:first-child,
    .tto-breadcrumbs li:last-child{
        display: none; /* Hide home items on mobile */
    }
    
    .tto-breadcrumbs li:nth-child(2)::after {
        content: '...';
        border: none;
        transform: none;
        margin: 0 8px;
        color: rgba(255, 255, 255, 0.6);
    }
    
    .tto-hero-description {
        font-size: 16px;
    }
    
    .tto-subcategories h3 {
        font-size: 18px;
    }
    
    .tto-subcategory-link {
        font-size: 14px;
        padding: 8px 16px;
    }
}

/* Dark mode adjustments */
[data-theme="dark"] .tto-breadcrumbs a {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.7);
}

[data-theme="dark"] .tto-breadcrumbs a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

[data-theme="dark"] .tto-breadcrumbs .current span {
    background: var(--tto-primary-dark);
}




/* ========================================
   Compact View Fixes
   ======================================== */

/* Fix compact view layout */
.tto-grid[data-view="compact"] {
    display: flex;
    flex-direction: column;
    gap: 0; /* Remove gap between items */
}

.tto-grid[data-view="compact"] {
    display: flex;
    flex-direction: column;
}

/* Fix compact item styling */
.tto-grid[data-view="compact"] .tto-item-compact {
    margin-bottom: 0;
    border-radius: 0;
}

.tto-grid[data-view="compact"] .tto-item-compact:first-child .tto-compact-item {
    border-top-left-radius: var(--tto-radius);
    border-top-right-radius: var(--tto-radius);
}

.tto-grid[data-view="compact"] .tto-item-compact:last-child .tto-compact-item {
    border-bottom-left-radius: var(--tto-radius);
    border-bottom-right-radius: var(--tto-radius);
    border-bottom: 2px solid var(--tto-border-light);
}

.tto-grid[data-view="compact"] .tto-item-compact:not(:last-child) .tto-compact-item {
    border-bottom: none;
}

/* Fix animations for view switching */
.tto-grid.tto-transitioning .tto-item {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Ensure compact items don't have the grid animation */
.tto-item-compact {
    animation: none !important;
    opacity: 1 !important;
}

/* Smooth transition when switching to compact */
.tto-grid[data-view="compact"] .tto-item {
    animation: fadeIn 0.3s ease forwards;
}

/* Ensure proper hover effects in compact view */
.tto-compact-item {
    position: relative;
    overflow: hidden;
}

.tto-compact-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(0, 95, 95, 0.05) 50%, transparent 100%);
    transition: left 0.5s ease;
}

.tto-compact-item:hover::before {
    left: 100%;
}

/* Fix mobile view */
@media (max-width: 768px) {
    .tto-grid[data-view="compact"] {
        gap: 0;
    }
    
    .tto-compact-item {
        padding: 16px 20px;
    }
    
    .tto-compact-content {
        gap: 10px;
    }
}

/* ========================================
   Saved Treatments Tag Specific Styling
   ======================================== */

.tto-tag-saved {
    background: white;
    border-color: var(--tto-secondary);
    position: relative;
    overflow: hidden;
}

.tto-tag-saved::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(229, 146, 76, 0.1), transparent);
    transition: left 0.6s ease;
}

.tto-tag-saved:hover::before {
    left: 100%;
}

.tto-tag-saved i {
    color: var(--tto-secondary);
    font-size: 16px;
    transition: transform 0.3s ease;
}

.tto-tag-saved:hover {
    border-color: var(--tto-secondary);
    background: rgba(229, 146, 76, 0.05);
}

.tto-tag-saved:hover i {
    transform: scale(1.2);
}

.tto-tag-saved.active {
    background: var(--tto-secondary);
    color: white;
    border-color: var(--tto-secondary);
}

.tto-tag-saved.active i {
    color: white;
}

.tto-tag-saved .tto-tag-count {
    background: var(--tto-secondary);
    color: white;
}

.tto-tag-saved.active .tto-tag-count {
    background: rgba(255, 255, 255, 0.3);
}

/* Animation for saved tag appearing */
@keyframes savedTagPulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.tto-tag-saved.tto-new-tag {
    animation: savedTagPulse 0.5s ease-out;
}

/* Mobile adjustments for saved tag */
@media (max-width: 768px) {
    .tto-tag-saved {
        width: 100%;
        justify-content: center;
        margin-top: 10px;
        order: -1; /* Place it at the top on mobile */
    }
    
    .tto-tag-saved i {
        margin-right: 8px;
    }
}

/* ========================================
   Additional Dark Mode Support - Missing Elements
   ======================================== */

/* Hero Elements */
[data-theme="dark"] .tto-hero-title {
    color: #f0f0f0;
}

[data-theme="dark"] .tto-title-main {
    background: linear-gradient(135deg, var(--tto-primary-light) 0%, var(--tto-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

[data-theme="dark"] .tto-title-accent {
    color: #b0b0b0;
}

[data-theme="dark"] .tto-heartbeat-container {
    background: transparent;
}

[data-theme="dark"] .tto-stat-number {
    color: var(--tto-primary-light);
}

[data-theme="dark"] .tto-stat-label {
    color: #a0a0a0;
}

/* Breadcrumbs */
[data-theme="dark"] .tto-breadcrumbs a {
    color: #b0b0b0;
}

[data-theme="dark"] .tto-breadcrumbs a:hover {
    color: var(--tto-secondary-light);
}

[data-theme="dark"] .tto-breadcrumbs .current span {
    color: #808080;
}

[data-theme="dark"] .tto-breadcrumbs li:not(:last-child)::after {
    border-top-color: #808080;
    border-right-color: #808080;
}

/* Category Tags - Complete */
[data-theme="dark"] .tto-tag {
    background: #2d2d2d;
    border-color: #3a3a3a;
    color: #e0e0e0;
}

[data-theme="dark"] .tto-tag:hover {
    background: #3a3a3a;
    border-color: var(--tto-primary-light);
}

[data-theme="dark"] .tto-tag.active {
    background: var(--tto-primary-dark);
    color: white;
    border-color: var(--tto-primary-dark);
}

[data-theme="dark"] .tto-tag-count {
    background: rgba(229, 146, 76, 0.3);
    color: var(--tto-secondary-light);
}

[data-theme="dark"] .tto-tag.active .tto-tag-count {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

/* Dropdown Elements - Complete */
[data-theme="dark"] .tto-dropdown-trigger {
    background: #2d2d2d;
    border-color: #3a3a3a;
    color: #e0e0e0;
}

[data-theme="dark"] .tto-dropdown-trigger:hover {
    border-color: var(--tto-primary-light);
    background: #3a3a3a;
}

[data-theme="dark"] .tto-dropdown-trigger i {
    color: var(--tto-primary-light);
}

[data-theme="dark"] .tto-dropdown-menu {
    background: #2d2d2d;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .tto-dropdown-item {
    color: #e0e0e0;
    border-bottom-color: #3a3a3a;
}

[data-theme="dark"] .tto-dropdown-item:hover {
    background: #3a3a3a;
}

[data-theme="dark"] .tto-dropdown-item input[type="radio"] {
    border-color: #4a4a4a;
}

[data-theme="dark"] .tto-dropdown-item input[type="radio"]:checked {
    background: var(--tto-primary-light);
    border-color: var(--tto-primary-light);
}

[data-theme="dark"] .tto-dropdown-item.tto-dropdown-item-child {
    color: #a0a0a0;
}

[data-theme="dark"] .filter-parent-count {
    color: #808080;
}

[data-theme="dark"] .filter-child-count {
    background: var(--tto-secondary-dark);
}

/* Active Filters */
[data-theme="dark"] .tto-active-filters {
    background: transparent;
}

[data-theme="dark"] .tto-active-label {
    color: #a0a0a0;
}

[data-theme="dark"] .tto-active-tag {
    background: var(--tto-primary-dark);
    color: white;
}

[data-theme="dark"] .tto-active-tag button:hover {
    color: #ff6b6b;
}

/* View Controls */
[data-theme="dark"] .tto-view-switcher {
    background: #2d2d2d;
}

[data-theme="dark"] .tto-view-btn {
    color: #a0a0a0;
}

[data-theme="dark"] .tto-view-btn:hover {
    background: #3a3a3a;
    color: var(--tto-primary-light);
}

[data-theme="dark"] .tto-view-btn.active {
    background: #3a3a3a;
    color: var(--tto-primary-light);
}

/* Reset Filters */
[data-theme="dark"] .tto-reset-filters {
    background: #d32f2f;
    color: white;
}

[data-theme="dark"] .tto-reset-filters:hover {
    background: #f44336;
}

/* Pagination */
[data-theme="dark"] .tto-pagination a,
[data-theme="dark"] .tto-pagination span {
    background: #2d2d2d;
    border-color: #3a3a3a;
    color: #e0e0e0;
}

[data-theme="dark"] .tto-pagination a:hover {
    border-color: var(--tto-primary-light);
    color: var(--tto-primary-light);
    background: #3a3a3a;
}

[data-theme="dark"] .tto-pagination .current {
    background: var(--tto-primary-dark);
    color: white;
    border-color: var(--tto-primary-dark);
}

/* Empty State */
[data-theme="dark"] .tto-empty-state {
    background: transparent;
}

[data-theme="dark"] .tto-empty-icon {
    color: #a0a0a0;
    opacity: 0.2;
}

[data-theme="dark"] .tto-empty-state h3 {
    color: #e0e0e0;
}

[data-theme="dark"] .tto-empty-state p {
    color: #a0a0a0;
}

/* Floating TOC */
[data-theme="dark"] .tto-floating-toc {
    background: transparent;
}

[data-theme="dark"] .tto-toc-toggle {
    background: var(--tto-primary-dark);
}

[data-theme="dark"] .tto-toc-menu {
    background: #2d2d2d;
}

[data-theme="dark"] .tto-toc-header {
    border-bottom-color: #3a3a3a;
}

[data-theme="dark"] .tto-toc-header h3 {
    color: #e0e0e0;
}

[data-theme="dark"] .tto-toc-close {
    background: rgba(255, 255, 255, 0.05);
    color: #999;
}

[data-theme="dark"] .tto-toc-close:hover {
    background: rgba(244, 67, 54, 0.2);
    color: #ff6b6b;
}

[data-theme="dark"] .tto-toc-link {
    color: #b0b0b0;
}

[data-theme="dark"] .tto-toc-link:hover {
    background: #3a3a3a;
    color: var(--tto-primary-light);
}

[data-theme="dark"] .tto-toc-link.active {
    background: rgba(0, 95, 95, 0.2);
    color: var(--tto-primary-light);
}

/* Modal Elements */
[data-theme="dark"] .tto-modal-container {
    background: #2d2d2d;
}

[data-theme="dark"] .tto-modal-header {
    border-bottom-color: #3a3a3a;
}

[data-theme="dark"] .tto-modal-close {
    background: rgba(255, 255, 255, 0.05);
    color: #999;
}

[data-theme="dark"] .tto-modal-close:hover {
    background: #ff4444;
    color: white;
}

/* Mobile Filter Elements */
[data-theme="dark"] .tto-mobile-filter-header {
    background: #1a1a1a;
    border-bottom-color: #3a3a3a;
}

[data-theme="dark"] .tto-mobile-filter-header h3 {
    color: #e0e0e0;
}

[data-theme="dark"] .tto-mobile-filter-close {
    background: rgba(255, 255, 255, 0.05);
    color: #999;
}

[data-theme="dark"] .tto-mobile-filter-footer {
    background: #1a1a1a;
    border-top-color: #3a3a3a;
}

[data-theme="dark"] .tto-mobile-apply-filters {
    background: var(--tto-primary-dark);
}

/* Category Hero */
[data-theme="dark"] .tto-category-hero {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
}

[data-theme="dark"] .tto-hero-description {
    color: #b0b0b0;
}

[data-theme="dark"] .tto-subcategory-link {
    background: #2d2d2d;
    border-color: #3a3a3a;
    color: #e0e0e0;
}

[data-theme="dark"] .tto-subcategory-link:hover {
    background: var(--tto-primary-dark);
    color: white;
    border-color: var(--tto-primary-dark);
}

/* Saved Tag */
[data-theme="dark"] .tto-tag-saved {
    background: #2d2d2d;
    border-color: var(--tto-secondary-dark);
}

[data-theme="dark"] .tto-tag-saved:hover {
    background: rgba(229, 146, 76, 0.1);
}

[data-theme="dark"] .tto-tag-saved.active {
    background: var(--tto-secondary-dark);
    color: white;
}
