/* ============================================================
   YOGA KURSE BASEL — Complete Stylesheet
   ============================================================ */

/* --- CSS Custom Properties (Light Theme) --- */
:root {
    --color-primary: #6B5B95;
    --color-primary-light: #8B7DB5;
    --color-primary-dark: #4A3D6E;
    --color-primary-bg: #F3F0F8;
    --color-accent: #D4A373;
    --color-accent-light: #E8C9A4;
    --color-accent-dark: #B8894E;
    --color-success: #4CAF50;
    --color-warning: #FF9800;
    --color-danger: #F44336;
    --color-bg: #FAFAFA;
    --color-bg-alt: #FFFFFF;
    --color-bg-card: #FFFFFF;
    --color-bg-hero: linear-gradient(135deg, #6B5B95 0%, #8B7DB5 40%, #D4A373 100%);
    --color-text: #2D2D2D;
    --color-text-secondary: #666666;
    --color-text-muted: #767676;
    --color-text-inverse: #FFFFFF;
    --color-border: #E8E8E8;
    --color-border-light: #F0F0F0;
    --color-shadow: rgba(0, 0, 0, 0.08);
    --color-shadow-lg: rgba(0, 0, 0, 0.12);
    --color-overlay: rgba(0, 0, 0, 0.5);
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'Playfair Display', Georgia, serif;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
    --spacing-2xl: 48px;
    --spacing-3xl: 64px;
    --transition-fast: 150ms ease;
    --transition-normal: 250ms ease;
    --transition-slow: 400ms ease;
    --container-max: 1280px;
    --header-height: 64px;
}

/* --- Auto Dark Theme (system preference) --- */
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) {
    --color-primary: #9B8DC5;
    --color-primary-light: #B5A8D5;
    --color-primary-dark: #7B6DA5;
    --color-primary-bg: #2A2540;
    --color-accent: #E8C9A4;
    --color-accent-light: #F0D9BC;
    --color-accent-dark: #D4A373;
    --color-bg: #1A1A2E;
    --color-bg-alt: #222240;
    --color-bg-card: #2A2A4A;
    --color-bg-hero: linear-gradient(135deg, #1A1A2E 0%, #2A2A4A 40%, #3A2A20 100%);
    --color-text: #E8E8F0;
    --color-text-secondary: #B0B0C0;
    --color-text-muted: #9090A8;
    --color-border: #3A3A5A;
    --color-border-light: #2A2A4A;
    --color-shadow: rgba(0, 0, 0, 0.3);
    --color-shadow-lg: rgba(0, 0, 0, 0.4);
    --color-overlay: rgba(0, 0, 0, 0.7);
  }
}

/* --- Dark Theme --- */
[data-theme="dark"] {
    --color-primary: #9B8DC5;
    --color-primary-light: #B5A8D5;
    --color-primary-dark: #7B6DA5;
    --color-primary-bg: #2A2540;
    --color-accent: #E8C9A4;
    --color-accent-light: #F0D9BC;
    --color-accent-dark: #D4A373;
    --color-bg: #1A1A2E;
    --color-bg-alt: #222240;
    --color-bg-card: #2A2A4A;
    --color-bg-hero: linear-gradient(135deg, #1A1A2E 0%, #2A2A4A 40%, #3A2A20 100%);
    --color-text: #E8E8F0;
    --color-text-secondary: #B0B0C0;
    --color-text-muted: #9090A8;
    --color-border: #3A3A5A;
    --color-border-light: #2A2A4A;
    --color-shadow: rgba(0, 0, 0, 0.3);
    --color-shadow-lg: rgba(0, 0, 0, 0.4);
    --color-overlay: rgba(0, 0, 0, 0.7);
}

/* --- Anti-scraping: prevent text selection on data content --- */
.studio-card,
.studio-name,
.studio-address,
.studio-description,
.studio-styles,
.schedule-row,
.guide-comparison-table,
.guide-stats-grid {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Allow selection on interactive elements */
input, textarea, select, .search-input, .faq-answer, .guide-content p, .guide-content li {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

/* --- Core Web Vitals: content-visibility for below-the-fold sections --- */
.map-section,
.faq-section,
.guide-section,
.feedback-section,
.canton-links-section {
    content-visibility: auto;
    contain-intrinsic-size: auto 500px;
}

/* --- Reset & Base --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    scroll-padding-top: calc(var(--header-height) + 120px);
}

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

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

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

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

select {
    font-family: inherit;
    font-size: inherit;
}

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

.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--color-primary);
    color: white;
    padding: 8px 16px;
    z-index: 9999;
    transition: top var(--transition-fast);
}

.skip-link:focus {
    top: 0;
}

.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: 12px 20px;
    border-radius: var(--radius-md);
    font-weight: 500;
    font-size: 14px;
    transition: all var(--transition-fast);
    white-space: nowrap;
    min-height: 44px;
}

.btn-primary {
    background: var(--color-primary);
    color: white;
}

.btn-primary:hover {
    background: var(--color-primary-dark);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px var(--color-shadow-lg);
}

.btn-outline {
    background: transparent;
    color: var(--color-primary);
    border: 1.5px solid var(--color-primary);
}

.btn-outline:hover {
    background: var(--color-primary);
    color: white;
}

.btn-ghost {
    background: transparent;
    color: var(--color-text-secondary);
}

.btn-ghost:hover {
    color: var(--color-primary);
    background: var(--color-primary-bg);
}

.btn-sm {
    padding: 8px 14px;
    font-size: 13px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
}

/* --- Header --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: var(--color-bg-alt);
    border-bottom: 1px solid var(--color-border);
    z-index: 1000;
    transition: all var(--transition-normal);
}

.header.scrolled {
    box-shadow: 0 2px 20px var(--color-shadow);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: 22px;
    color: var(--color-text);
    font-weight: 300;
}

.logo:hover {
    color: var(--color-text);
}

.logo-icon {
    font-size: 28px;
}

.logo-text strong {
    font-weight: 700;
    color: var(--color-primary);
}

.nav-list {
    display: flex;
    list-style: none;
    gap: var(--spacing-xl);
}

.nav-link {
    color: var(--color-text-secondary);
    font-weight: 500;
    font-size: 14px;
    padding: 8px 0;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: width var(--transition-normal);
}

.nav-link:hover {
    color: var(--color-primary);
}

.nav-link:hover::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.lang-toggle, .theme-toggle {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-secondary);
    transition: all var(--transition-fast);
    font-size: 13px;
    font-weight: 600;
}

.lang-toggle:hover, .theme-toggle:hover {
    background: var(--color-primary-bg);
    color: var(--color-primary);
}

.theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-moon { display: block; }

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 10px;
    width: 44px;
    height: 44px;
    justify-content: center;
}

.mobile-menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--color-text);
    transition: all var(--transition-fast);
    border-radius: 1px;
}

.mobile-menu-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Hero --- */
.hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: calc(var(--header-height) + var(--spacing-3xl)) var(--spacing-lg) var(--spacing-3xl);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: var(--color-bg-hero);
    z-index: 0;
}

.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: var(--color-text-inverse);
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-lg);
    text-shadow: 0 2px 20px rgba(0,0,0,0.15);
}

.hero-accent {
    color: var(--color-accent-light);
    display: block;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    opacity: 0.9;
    margin-bottom: var(--spacing-2xl);
    font-weight: 300;
}

.hero-search {
    max-width: 560px;
    margin: 0 auto var(--spacing-2xl);
}

.search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 16px;
    color: var(--color-text-muted);
    pointer-events: none;
}

.search-input {
    width: 100%;
    padding: 16px 44px 16px 48px;
    border: none;
    border-radius: 60px;
    font-size: 16px;
    background: var(--color-bg-alt);
    color: var(--color-text);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    transition: box-shadow var(--transition-normal);
    outline: none;
}

.search-input::placeholder {
    color: var(--color-text-muted);
}

.search-input:focus {
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.2), 0 0 0 3px var(--color-primary-light);
}

.search-clear {
    position: absolute;
    right: 8px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--color-text-muted);
    background: var(--color-bg);
}

.search-clear:hover {
    background: var(--color-border);
    color: var(--color-text);
}

/* --- Canton Selector --- */
.canton-selector {
    max-width: 400px;
    margin: 0 auto var(--spacing-xl);
    text-align: center;
}

.canton-selector-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: var(--spacing-sm);
    opacity: 0.9;
}

.canton-select {
    width: 100%;
    padding: 14px 20px;
    border: none;
    border-radius: 60px;
    font-size: 16px;
    font-weight: 500;
    background: var(--color-bg-alt);
    color: var(--color-text);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    appearance: auto;
    text-align: center;
}

.canton-select:focus {
    outline: none;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.2), 0 0 0 3px var(--color-primary-light);
}

.canton-coming-soon {
    text-align: center;
    padding: var(--spacing-3xl);
    color: var(--color-text-muted);
}

.canton-coming-soon h3 {
    font-size: 1.5rem;
    color: var(--color-text);
    margin-bottom: var(--spacing-md);
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: var(--spacing-2xl);
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
}

.stat-label {
    font-size: 0.85rem;
    opacity: 0.8;
    font-weight: 300;
}

.hero-scroll {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    animation: bounce 2s infinite;
}

.hero-scroll a {
    color: rgba(255, 255, 255, 0.6);
    transition: color var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
}

.hero-scroll a:hover {
    color: rgba(255, 255, 255, 1);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-8px); }
    60% { transform: translateX(-50%) translateY(-4px); }
}

/* --- Filters Bar --- */
.filters-bar {
    position: sticky;
    top: var(--header-height);
    z-index: 100;
    background: var(--color-bg-alt);
    border-bottom: 1px solid var(--color-border);
    padding: var(--spacing-md) 0;
}

.filters-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

.filters-toggle {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: 8px 14px;
    border-radius: var(--radius-md);
    color: var(--color-text-secondary);
    font-weight: 500;
    font-size: 14px;
    border: 1.5px solid var(--color-border);
    transition: all var(--transition-fast);
    flex-shrink: 0;
}

.filters-toggle:hover, .filters-toggle[aria-expanded="true"] {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background: var(--color-primary-bg);
}

.filter-count {
    background: var(--color-primary);
    color: white;
    font-size: 11px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.filters-quick {
    display: flex;
    gap: var(--spacing-sm);
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    flex: 1;
    padding: 2px 0;
}

.filters-quick::-webkit-scrollbar {
    display: none;
}

.chip {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    border: 1.5px solid var(--color-border);
    color: var(--color-text-secondary);
    transition: all var(--transition-fast);
    background: transparent;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
}

.chip:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

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

.filters-panel {
    padding-top: var(--spacing-lg);
    border-top: 1px solid var(--color-border-light);
    margin-top: var(--spacing-md);
}

.filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
    gap: var(--spacing-md);
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.filter-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-select {
    padding: 10px 12px;
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: var(--color-bg);
    color: var(--color-text);
    font-size: 16px;
    transition: border-color var(--transition-fast);
    appearance: auto;
    min-height: 44px;
}

.filter-select:focus {
    outline: none;
    border-color: var(--color-primary);
}

.filters-actions {
    margin-top: var(--spacing-md);
    text-align: right;
}

/* --- Results Bar --- */
.results-bar {
    padding: var(--spacing-md) 0;
    background: var(--color-bg);
}

.results-bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--spacing-md);
}

.results-count {
    font-size: 14px;
    color: var(--color-text-secondary);
}

.results-actions {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.view-toggle {
    display: flex;
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.view-btn {
    padding: 10px 14px;
    min-width: 44px;
    min-height: 44px;
    color: var(--color-text-muted);
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

.view-btn:hover {
    color: var(--color-primary);
}

.view-btn.active {
    background: var(--color-primary);
    color: white;
}

/* --- Studios Grid --- */
.studios-section {
    padding: var(--spacing-xl) 0 var(--spacing-3xl);
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    color: var(--color-text);
}

.section-subtitle {
    color: var(--color-text-secondary);
    font-size: 1.05rem;
    margin-bottom: var(--spacing-2xl);
    font-weight: 300;
}

.studios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr));
    gap: var(--spacing-lg);
}

.studios-grid.list-view {
    grid-template-columns: 1fr;
}

/* --- Studio Card --- */
.studio-card {
    background: var(--color-bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border-light);
    padding: var(--spacing-lg);
    transition: all var(--transition-normal);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.studio-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--color-primary);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.studio-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px var(--color-shadow-lg);
    border-color: var(--color-primary-light);
}

.studio-card:hover::before {
    opacity: 1;
}

.studio-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--spacing-md);
}

.studio-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-text);
    line-height: 1.3;
    flex: 1;
}

.studio-badge {
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 4px;
    background: var(--color-primary-bg);
    color: var(--color-primary);
    white-space: nowrap;
    margin-left: var(--spacing-sm);
}

.studio-badge.drop-in {
    background: #E8F5E9;
    color: #2E7D32;
}

[data-theme="dark"] .studio-badge.drop-in {
    background: #1B3B1E;
    color: #66BB6A;
}

.studio-address {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-sm);
    font-size: 14px;
    color: var(--color-text-secondary);
    margin-bottom: var(--spacing-md);
    line-height: 1.4;
}

.studio-address svg {
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--color-accent);
}

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

.studio-styles {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: var(--spacing-md);
}

.style-tag {
    font-size: 11px;
    font-weight: 500;
    padding: 3px 10px;
    border-radius: 12px;
    background: var(--color-primary-bg);
    color: var(--color-primary);
    white-space: nowrap;
}

.style-tag.more {
    background: var(--color-border-light);
    color: var(--color-text-muted);
}

.studio-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--spacing-md);
    border-top: 1px solid var(--color-border-light);
}

.studio-teachers {
    font-size: 13px;
    color: var(--color-text-muted);
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
    flex: 1;
}

.studio-teachers svg {
    color: var(--color-accent);
}

.studio-link {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-primary);
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
    min-height: 44px;
}

.studio-link:hover {
    color: var(--color-primary-dark);
}

.studio-card-actions {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.fav-btn, .share-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: var(--color-text-muted);
    transition: all var(--transition-fast);
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}

.fav-btn:hover {
    color: #FFB300;
    background: rgba(255,179,0,0.1);
}

.share-btn:hover {
    color: var(--color-primary);
    background: var(--color-primary-bg);
}

.schedule-cal-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    padding: 10px;
    min-width: 44px;
    min-height: 44px;
    border-radius: 4px;
    transition: background var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

.schedule-cal-btn:hover {
    background: var(--color-primary-bg);
}

/* List view card */
.studios-grid.list-view .studio-card {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto auto;
    gap: 0 var(--spacing-lg);
}

.studios-grid.list-view .studio-card-header {
    grid-column: 1;
}

.studios-grid.list-view .studio-styles {
    grid-column: 1 / -1;
}

/* --- No Results --- */
.no-results {
    text-align: center;
    padding: var(--spacing-3xl) var(--spacing-lg);
}

.no-results-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
}

.no-results h3 {
    font-size: 1.3rem;
    margin-bottom: var(--spacing-sm);
}

.no-results p {
    color: var(--color-text-secondary);
    margin-bottom: var(--spacing-lg);
}

/* --- Schedule Section --- */
.schedule-section {
    padding: var(--spacing-2xl) 0 var(--spacing-3xl);
    background: var(--color-bg-alt);
}

.schedule-days {
    display: flex;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
    flex-wrap: wrap;
}

.day-btn {
    padding: 10px 20px;
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 600;
    border: 2px solid var(--color-border);
    color: var(--color-text-secondary);
    transition: all var(--transition-fast);
    min-width: 52px;
    background: transparent;
}

.day-btn:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.day-btn.active {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}

.schedule-info {
    font-size: 14px;
    color: var(--color-text-secondary);
    margin-bottom: var(--spacing-md);
    font-weight: 500;
}

.schedule-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.schedule-placeholder {
    text-align: center;
    padding: var(--spacing-2xl);
    color: var(--color-text-muted);
    font-size: 15px;
}

.schedule-row {
    display: grid;
    grid-template-columns: 110px 1fr 180px 140px 100px 80px 44px;
    gap: var(--spacing-md);
    padding: 12px var(--spacing-md);
    background: var(--color-bg-card);
    border-radius: var(--radius-sm);
    align-items: center;
    transition: all var(--transition-fast);
    border-left: 3px solid transparent;
}

.schedule-row-link {
    cursor: pointer;
}

.schedule-row:hover, .schedule-row-link:active {
    border-left-color: var(--color-primary);
    box-shadow: 0 2px 8px var(--color-shadow);
}

.schedule-time {
    font-weight: 700;
    font-size: 15px;
    color: var(--color-primary);
    white-space: nowrap;
}

.schedule-class {
    font-weight: 600;
    font-size: 14px;
    color: var(--color-text);
}

.schedule-studio {
    font-size: 13px;
    color: var(--color-text-secondary);
    display: flex;
    align-items: center;
    gap: 4px;
}

.schedule-teacher {
    font-size: 13px;
    color: var(--color-text-muted);
}

.schedule-level {
    font-size: 11px;
    font-weight: 500;
    padding: 2px 8px;
    border-radius: 10px;
    background: var(--color-primary-bg);
    color: var(--color-primary);
    text-align: center;
    white-space: nowrap;
}

.schedule-header {
    display: grid;
    grid-template-columns: 110px 1fr 180px 140px 100px 80px 44px;
    gap: var(--spacing-md);
    padding: 8px var(--spacing-md);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-text-muted);
    border-bottom: 2px solid var(--color-border);
    margin-bottom: var(--spacing-sm);
}

.schedule-note {
    margin-top: var(--spacing-lg);
    font-size: 12px;
    color: var(--color-text-muted);
    font-style: italic;
}

@media (max-width: 768px) {
    .schedule-row, .schedule-header {
        display: flex;
        flex-direction: column;
        gap: 4px;
    }

    .schedule-row {
        padding: 12px var(--spacing-sm);
    }

    .schedule-time {
        font-size: 13px;
        white-space: normal;
    }

    .schedule-class {
        font-size: 15px;
        font-weight: 700;
    }

    .schedule-studio, .schedule-teacher {
        font-size: 12px;
    }

    .schedule-level {
        align-self: flex-start;
    }

    .schedule-price {
        align-self: flex-start;
    }

    .schedule-cal-btn {
        align-self: flex-start;
    }

    .schedule-header {
        display: none;
    }

    .day-btn {
        padding: 8px 14px;
        font-size: 14px;
        min-width: 42px;
    }
}

/* --- Yoga Styles Section --- */
.styles-section {
    padding: var(--spacing-3xl) 0;
    background: var(--color-bg-alt);
}

.styles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(180px, 100%), 1fr));
    gap: var(--spacing-md);
}

.style-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-md);
    padding: var(--spacing-md) var(--spacing-lg);
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-normal);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
}

.style-card-icon {
    color: var(--color-primary);
    opacity: 0.85;
    transition: opacity 0.2s, transform 0.2s;
}

.style-card:hover .style-card-icon {
    opacity: 1;
    transform: scale(1.1);
}

.style-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px var(--color-shadow);
    border-color: var(--color-primary);
}

.style-card-name {
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 4px;
    color: var(--color-text);
}

.style-card-count {
    font-size: 13px;
    color: var(--color-text-muted);
}

/* --- Map Section --- */
.map-section {
    padding: var(--spacing-3xl) 0;
}

.map-container {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--color-border);
    box-shadow: 0 4px 20px var(--color-shadow);
}

.map {
    height: 500px;
    width: 100%;
    background: var(--color-bg-alt);
}

/* --- FAQ Section --- */
.faq-section {
    padding: var(--spacing-3xl) 0;
    background: var(--color-bg-alt);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-md);
    overflow: hidden;
    background: var(--color-bg-card);
    transition: border-color var(--transition-fast);
}

.faq-item:hover {
    border-color: var(--color-primary-light);
}

.faq-item[open] {
    border-color: var(--color-primary);
}

.faq-item summary {
    padding: var(--spacing-lg);
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-md);
    font-size: 15px;
    transition: color var(--transition-fast);
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    font-size: 20px;
    font-weight: 300;
    color: var(--color-primary);
    flex-shrink: 0;
    transition: transform var(--transition-fast);
}

.faq-item[open] summary::after {
    content: '−';
}

.faq-item summary:hover {
    color: var(--color-primary);
}

.faq-answer {
    padding: 0 var(--spacing-lg) var(--spacing-lg);
    color: var(--color-text-secondary);
    font-size: 14px;
    line-height: 1.7;
}

/* --- Yoga Guide Section --- */
.guide-section {
    padding: var(--spacing-3xl) 0;
    background: var(--color-bg);
}

.guide-content {
    max-width: 880px;
    margin: 0 auto;
}

.guide-content > p {
    font-size: 15px;
    line-height: 1.8;
    color: var(--color-text-secondary);
    margin-bottom: var(--spacing-lg);
}

.guide-content h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-text);
    margin-top: var(--spacing-3xl);
    margin-bottom: var(--spacing-xl);
    padding-bottom: var(--spacing-sm);
    border-bottom: 2px solid var(--color-primary-light);
}

.guide-styles-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(380px, 100%), 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

.guide-style-item {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-md);
    padding: var(--spacing-lg);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.guide-style-item:hover {
    border-color: var(--color-primary-light);
    box-shadow: 0 2px 12px var(--color-shadow);
}

.guide-style-item h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: var(--spacing-sm);
}

.guide-style-item p {
    font-size: 14px;
    line-height: 1.7;
    color: var(--color-text-secondary);
    margin: 0;
}

.guide-tips ol {
    padding-left: var(--spacing-lg);
    counter-reset: tip-counter;
    list-style: none;
}

.guide-tips li {
    position: relative;
    padding: var(--spacing-lg);
    padding-left: var(--spacing-2xl);
    margin-bottom: var(--spacing-md);
    background: var(--color-bg-card);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-md);
    font-size: 14px;
    line-height: 1.7;
    color: var(--color-text-secondary);
    counter-increment: tip-counter;
}

.guide-tips li::before {
    content: counter(tip-counter);
    position: absolute;
    left: var(--spacing-md);
    top: var(--spacing-lg);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--color-primary);
    color: var(--color-text-inverse);
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.guide-tips li strong {
    display: block;
    color: var(--color-text);
    font-size: 15px;
    margin-bottom: var(--spacing-xs);
}

.guide-districts {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

.guide-district-item {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-md);
    padding: var(--spacing-lg);
    transition: border-color var(--transition-fast);
}

.guide-district-item:hover {
    border-color: var(--color-accent);
}

.guide-district-item h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-accent-dark);
    margin-bottom: var(--spacing-sm);
}

.guide-district-item p {
    font-size: 14px;
    line-height: 1.7;
    color: var(--color-text-secondary);
    margin: 0;
}

.guide-content .faq-list {
    max-width: 100%;
}

@media (max-width: 600px) {
    .guide-styles-list,
    .guide-districts {
        grid-template-columns: 1fr;
    }

    .guide-tips li {
        padding-left: var(--spacing-2xl);
    }

    .guide-content h3 {
        font-size: 1.25rem;
    }
}

/* --- Guide Stats Grid --- */
.guide-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(200px, 100%), 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

.guide-stat-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-md);
    padding: var(--spacing-xl) var(--spacing-lg);
    text-align: center;
    transition: all var(--transition-normal);
}

.guide-stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px var(--color-shadow);
    border-color: var(--color-primary-light);
}

.guide-stat-number {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1.2;
    margin-bottom: var(--spacing-xs);
}

.guide-stat-label {
    font-size: 14px;
    color: var(--color-text-secondary);
    font-weight: 500;
}

/* --- Guide Comparison Table --- */
.guide-comparison-table {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: var(--spacing-xl);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border-light);
}

.guide-comparison-table table {
    width: 100%;
    border-collapse: collapse;
    min-width: 640px;
    font-size: 14px;
}

.guide-comparison-table thead {
    position: sticky;
    top: 0;
    z-index: 1;
}

.guide-comparison-table th {
    background: var(--color-primary);
    color: var(--color-text-inverse);
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    padding: 12px var(--spacing-md);
    text-align: left;
    white-space: nowrap;
}

.guide-comparison-table td {
    padding: 10px var(--spacing-md);
    color: var(--color-text-secondary);
    border-bottom: 1px solid var(--color-border-light);
    white-space: nowrap;
}

.guide-comparison-table td:first-child {
    font-weight: 600;
    color: var(--color-text);
}

.guide-comparison-table tbody tr:nth-child(even) {
    background: var(--color-primary-bg);
}

.guide-comparison-table tbody tr:nth-child(odd) {
    background: var(--color-bg-card);
}

.guide-comparison-table tbody tr:hover {
    background: var(--color-accent-light);
}

[data-theme="dark"] .guide-comparison-table tbody tr:hover {
    background: var(--color-primary-dark);
}

@media (max-width: 600px) {
    .guide-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-md);
    }

    .guide-stat-number {
        font-size: 1.5rem;
    }

    .guide-stat-label {
        font-size: 12px;
    }

    .guide-stat-card {
        padding: var(--spacing-lg) var(--spacing-md);
    }
}

@media (max-width: 400px) {
    .guide-stats-grid {
        grid-template-columns: 1fr;
    }
}

/* --- Canton Intro (SEO) --- */
.canton-intro-section {
    padding: var(--spacing-md) 0;
    background: var(--color-bg-alt);
}

.canton-intro p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--color-text-secondary);
    max-width: 900px;
}

.canton-intro strong {
    color: var(--color-text);
}

/* --- Canton Cross-Links (SEO) --- */
.canton-links-section {
    padding: var(--spacing-2xl) 0;
    background: var(--color-bg);
}

.canton-links-title {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: var(--spacing-md);
}

.canton-cross-links {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
}

.canton-cross-link {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    color: var(--color-primary);
    border: 1.5px solid var(--color-primary-light);
    transition: all var(--transition-fast);
    text-decoration: none;
}

.canton-cross-link:hover {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}

/* --- Feedback Section --- */
.feedback-section {
    padding: var(--spacing-3xl) 0;
    background: var(--color-bg);
}

.feedback-form-wrapper {
    max-width: 680px;
    margin: 0 auto;
}

.feedback-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.feedback-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-md);
}

.feedback-field {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.feedback-field label {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text-secondary);
}

.feedback-field select,
.feedback-field input,
.feedback-field textarea {
    padding: 12px 14px;
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: var(--color-bg-card);
    color: var(--color-text);
    font-family: var(--font-sans);
    font-size: 16px;
    transition: border-color var(--transition-fast);
    resize: vertical;
}

.feedback-field select:focus,
.feedback-field input:focus,
.feedback-field textarea:focus {
    outline: none;
    border-color: var(--color-primary);
}

.feedback-form .btn {
    align-self: flex-start;
}

.feedback-success {
    text-align: center;
    padding: var(--spacing-2xl);
    background: #E8F5E9;
    border-radius: var(--radius-md);
    color: #2E7D32;
    font-weight: 500;
}

[data-theme="dark"] .feedback-success {
    background: #1B3B1E;
    color: #66BB6A;
}

@media (max-width: 600px) {
    .feedback-row {
        grid-template-columns: 1fr;
    }

    .feedback-form .btn {
        align-self: stretch;
        justify-content: center;
        width: 100%;
    }
}

/* --- Footer --- */
.footer {
    background: var(--color-bg-alt);
    border-top: 1px solid var(--color-border);
    padding: var(--spacing-3xl) 0 var(--spacing-xl);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr 1fr;
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-2xl);
}

.footer-brand .logo {
    margin-bottom: var(--spacing-md);
}

.footer-desc {
    font-size: 14px;
    color: var(--color-text-secondary);
    line-height: 1.6;
    max-width: 320px;
}

.footer-links h3 {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: var(--spacing-md);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: var(--spacing-sm);
}

.footer-links a {
    font-size: 14px;
    color: var(--color-text-secondary);
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--color-primary);
}

.footer-bottom {
    padding-top: var(--spacing-xl);
    border-top: 1px solid var(--color-border-light);
}

.footer-disclaimer {
    font-size: 12px;
    color: var(--color-text-muted);
    line-height: 1.6;
    margin-bottom: var(--spacing-md);
}

.footer-copyright {
    font-size: 13px;
    color: var(--color-text-muted);
}

/* --- Back to Top --- */
.back-to-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--color-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px var(--color-shadow-lg);
    z-index: 900;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--transition-normal);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

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

/* --- Modal --- */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: var(--color-overlay);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-lg);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity var(--transition-normal), visibility var(--transition-normal);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.modal {
    background: var(--color-bg-card);
    border-radius: var(--radius-lg);
    max-width: 680px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    transform: translateY(20px);
    transition: transform var(--transition-normal);
}

.modal-overlay.active .modal {
    transform: translateY(0);
}

.modal-close {
    position: sticky;
    top: 0;
    float: right;
    width: 48px;
    height: 48px;
    font-size: 28px;
    color: var(--color-text-muted);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    margin: var(--spacing-md);
    background: var(--color-bg-card);
}

.modal-close:hover {
    background: var(--color-border-light);
    color: var(--color-text);
}

.modal-content {
    padding: 0 var(--spacing-xl) var(--spacing-xl);
}

.modal-content h2 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    margin-bottom: var(--spacing-lg);
    color: var(--color-text);
    padding-right: 40px;
}

.modal-section {
    margin-bottom: var(--spacing-lg);
}

.modal-section h3 {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-text-muted);
    margin-bottom: var(--spacing-sm);
}

.modal-info-row {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) 0;
    font-size: 14px;
    color: var(--color-text-secondary);
}

.modal-info-row svg {
    flex-shrink: 0;
    color: var(--color-primary);
    margin-top: 2px;
}

.modal-info-row a {
    word-break: break-all;
}

.modal-styles {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.modal-features {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
}

.feature-badge {
    font-size: 12px;
    font-weight: 500;
    padding: 4px 12px;
    border-radius: var(--radius-sm);
    background: var(--color-accent-light);
    color: var(--color-accent-dark);
}

[data-theme="dark"] .feature-badge {
    background: #3A2A20;
    color: var(--color-accent);
}

.modal-actions {
    display: flex;
    gap: var(--spacing-md);
    margin-top: var(--spacing-xl);
    padding-top: var(--spacing-lg);
    border-top: 1px solid var(--color-border-light);
}

/* --- Loading animation --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.studio-card {
    animation: fadeInUp 0.4s ease forwards;
    opacity: 0;
}

.studio-card:nth-child(1) { animation-delay: 0.02s; }
.studio-card:nth-child(2) { animation-delay: 0.04s; }
.studio-card:nth-child(3) { animation-delay: 0.06s; }
.studio-card:nth-child(4) { animation-delay: 0.08s; }
.studio-card:nth-child(5) { animation-delay: 0.1s; }
.studio-card:nth-child(6) { animation-delay: 0.12s; }
.studio-card:nth-child(7) { animation-delay: 0.14s; }
.studio-card:nth-child(8) { animation-delay: 0.16s; }
.studio-card:nth-child(9) { animation-delay: 0.18s; }
.studio-card:nth-child(n+10) { animation-delay: 0.2s; }

/* --- Responsive --- */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 56px;
    }

    .nav {
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: var(--color-bg-alt);
        border-bottom: 1px solid var(--color-border);
        padding: var(--spacing-md) var(--spacing-lg);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition-normal);
        box-shadow: 0 8px 20px var(--color-shadow);
    }

    .nav.open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-list {
        flex-direction: column;
        gap: 0;
    }

    .nav-link {
        display: block;
        padding: var(--spacing-md) 0;
        font-size: 16px;
        border-bottom: 1px solid var(--color-border-light);
        min-height: 48px;
        line-height: 1.4;
    }

    .nav-list li:last-child .nav-link {
        border-bottom: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .hero {
        min-height: 75vh;
        padding-top: calc(var(--header-height) + var(--spacing-xl));
    }

    .hero-stats {
        gap: var(--spacing-lg);
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .studios-grid {
        grid-template-columns: 1fr;
    }

    .filters-quick {
        gap: 6px;
    }

    .filters-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-xl);
    }

    .map {
        height: 350px;
    }

    .results-bar-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-sm);
    }

    .results-actions {
        flex-wrap: wrap;
        gap: var(--spacing-sm);
    }

    .modal {
        max-height: 90vh;
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
        align-self: flex-end;
    }

    .modal-actions {
        flex-direction: column;
    }

    .modal-actions .btn {
        width: 100%;
        justify-content: center;
        min-height: 48px;
    }

    .styles-grid {
        grid-template-columns: repeat(auto-fill, minmax(min(140px, 45%), 1fr));
    }

    .canton-selector {
        max-width: 100%;
    }

    .canton-select {
        font-size: 16px;
        padding: 12px 16px;
    }

    .guide-comparison-table table {
        font-size: 12px;
    }

    .guide-comparison-table th,
    .guide-comparison-table td {
        padding: 6px 8px;
    }

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

    .hero-stats {
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--spacing-md);
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .canton-select {
        font-size: 16px;
        border-radius: var(--radius-md);
    }

    .guide-stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--spacing-sm);
    }

    .guide-stat-card {
        padding: var(--spacing-md);
    }

    .guide-stat-number {
        font-size: 1.5rem;
    }

    .search-input {
        padding: 14px 48px 14px 44px;
        font-size: 16px;
    }

    .chip {
        padding: 6px 12px;
        font-size: 12px;
        min-height: 44px;
    }

    .studio-card {
        padding: var(--spacing-md);
    }

    .filters-grid {
        grid-template-columns: 1fr;
    }
}

/* --- Print styles --- */
@media print {
    .header, .hero, .filters-bar, .results-bar, .map-section, .faq-section,
    .footer, .back-to-top, .modal-overlay, .hero-scroll {
        display: none !important;
    }

    body {
        background: white;
        color: black;
    }

    .studios-section {
        padding: 0;
    }

    .studio-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
        animation: none;
        opacity: 1;
    }

    .studios-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

/* --- Pricing styles --- */
.studio-price-badge {
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 4px;
    background: #FFF3E0;
    color: #E65100;
    white-space: nowrap;
    margin-left: var(--spacing-sm);
    flex-shrink: 0;
}

[data-theme="dark"] .studio-price-badge {
    background: #3E2723;
    color: #FFB74D;
}

.pricing-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: var(--spacing-sm);
    font-size: 14px;
}

.pricing-table td {
    padding: 8px 12px;
    border-bottom: 1px solid var(--color-border);
}

.pricing-table tr:last-child td {
    border-bottom: none;
}

.pricing-table td:first-child {
    color: var(--color-text-secondary);
    font-weight: 500;
}

.pricing-table td:last-child {
    text-align: right;
    font-weight: 700;
    color: var(--color-text);
    white-space: nowrap;
}

.pricing-note {
    font-size: 12px;
    color: var(--color-text-muted);
    font-style: italic;
    margin-top: var(--spacing-xs);
}

.schedule-price {
    font-size: 13px;
    text-align: center;
}

.schedule-price-badge {
    font-size: 11px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
    background: #FFF3E0;
    color: #E65100;
    white-space: nowrap;
}

[data-theme="dark"] .schedule-price-badge {
    background: #3E2723;
    color: #FFB74D;
}

.schedule-price-na {
    color: var(--color-text-muted);
}

@media (max-width: 768px) {
    .schedule-price {
        grid-column: 2;
        justify-self: start;
    }
}

/* --- Data sources --- */
.data-sources {
    margin-top: var(--spacing-md);
    padding: var(--spacing-sm) var(--spacing-md);
    background: var(--color-bg-alt, #f8f7fc);
    border-radius: 8px;
    border: 1px solid var(--color-border);
    font-size: 13px;
}

[data-theme="dark"] .data-sources {
    background: rgba(255, 255, 255, 0.04);
}

.data-sources-title {
    font-weight: 600;
    color: var(--color-text-secondary);
    margin-bottom: 6px;
    font-size: 13px;
}

.data-sources-list {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.data-source-item {
    color: var(--color-text-muted);
    font-size: 12px;
    line-height: 1.6;
    font-family: 'SF Mono', 'Fira Code', monospace;
}

.data-source-prefix {
    color: var(--color-text-muted);
    opacity: 0.5;
    margin-right: 4px;
}

.data-source-link {
    color: var(--color-primary, #7c3aed);
    text-decoration: none;
    font-family: inherit;
    transition: color 0.2s;
}

.data-source-link:hover {
    color: var(--color-primary-dark, #6d28d9);
    text-decoration: underline;
}

/* --- Verified badge --- */
.verified-badge {
    font-size: 10px;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 4px;
    background: #E8F5E9;
    color: #2E7D32;
    white-space: nowrap;
    margin-left: var(--spacing-xs);
    flex-shrink: 0;
}

[data-theme="dark"] .verified-badge {
    background: #1B5E20;
    color: #A5D6A7;
}

.verified-badge-inline {
    font-size: 14px;
    padding: 0 4px;
    margin-left: 4px;
    vertical-align: middle;
    background: transparent;
    color: #2E7D32;
}

[data-theme="dark"] .verified-badge-inline {
    background: transparent;
    color: #A5D6A7;
}

.pricing-title-link {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

.pricing-title-link:hover {
    color: var(--color-primary, #7c3aed);
}

/* --- Schedule source note & more studios --- */
.schedule-source-note {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 10px 14px;
    margin-bottom: var(--spacing-md);
    background: var(--color-primary-bg, #f3f0ff);
    border: 1px solid var(--color-border);
    border-left: 3px solid var(--color-primary, #7c3aed);
    border-radius: var(--radius-sm);
    font-size: 13px;
    color: var(--color-text-secondary);
    line-height: 1.5;
}

[data-theme="dark"] .schedule-source-note {
    background: rgba(124, 58, 237, 0.08);
}

.schedule-source-link {
    display: inline-flex;
    align-items: center;
    margin-left: 4px;
    color: var(--color-text-muted);
    opacity: 0.6;
    transition: opacity 0.2s, color 0.2s;
    vertical-align: middle;
}

.schedule-source-link:hover {
    opacity: 1;
    color: var(--color-primary, #7c3aed);
}

.more-studios-section {
    margin-top: var(--spacing-xl);
    padding-top: var(--spacing-lg);
    border-top: 2px solid var(--color-border);
}

.more-studios-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--color-text-secondary);
    margin-bottom: var(--spacing-md);
}

.more-studios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr));
    gap: var(--spacing-sm);
}

.more-studios-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    gap: var(--spacing-sm);
}

.more-studios-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.more-studios-btn {
    font-size: 12px;
    font-weight: 600;
    color: var(--color-primary, #7c3aed);
    text-decoration: none;
    white-space: nowrap;
    padding: 4px 10px;
    border: 1px solid var(--color-primary, #7c3aed);
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.more-studios-btn:hover {
    background: var(--color-primary, #7c3aed);
    color: white;
}

.btn-schedule {
    background: var(--color-primary, #7c3aed);
    color: white;
    border: 2px solid var(--color-primary, #7c3aed);
    font-weight: 600;
}

.btn-schedule:hover {
    background: var(--color-primary-hover, #6d28d9);
    border-color: var(--color-primary-hover, #6d28d9);
}

@media (max-width: 768px) {
    .more-studios-grid {
        grid-template-columns: 1fr;
    }

    .schedule-source-note {
        font-size: 12px;
        padding: 8px 10px;
    }
}

/* ============================================================
   MOBILE UX ENHANCEMENTS
   ============================================================ */

/* --- Safe area support (notch / dynamic island) --- */
@supports (padding: env(safe-area-inset-top)) {
    .header {
        padding-left: env(safe-area-inset-left);
        padding-right: env(safe-area-inset-right);
    }

    .footer {
        padding-bottom: calc(var(--spacing-xl) + env(safe-area-inset-bottom));
    }

    .back-to-top {
        bottom: calc(24px + env(safe-area-inset-bottom));
        right: calc(24px + env(safe-area-inset-right));
    }

    .modal-overlay {
        padding-bottom: env(safe-area-inset-bottom);
    }

    .modal {
        padding-bottom: env(safe-area-inset-bottom);
    }
}

/* --- Body scroll lock when mobile menu is open --- */
body.menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
    left: 0;
    touch-action: none;
}

/* --- Body scroll lock when modal is open --- */
body.modal-open {
    overflow: hidden;
}

/* --- Smooth scrolling for touch containers --- */
.filters-quick,
.guide-comparison-table,
.schedule-list {
    -webkit-overflow-scrolling: touch;
}

/* --- Ensure footer links are easily tappable on mobile --- */
@media (max-width: 768px) {
    .footer-links a {
        display: inline-block;
        padding: 6px 0;
        min-height: 44px;
        line-height: 32px;
    }

    .footer-links li {
        margin-bottom: 0;
    }
}

/* --- FAQ summary tappable area --- */
.faq-item summary {
    min-height: 48px;
}

/* --- Canton cross-links minimum touch target --- */
.canton-cross-link {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
}

/* --- More studios button touch target --- */
.more-studios-btn {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
}

/* --- More studios card touch target --- */
.more-studios-card {
    min-height: 48px;
}

/* --- Day buttons minimum touch target --- */
.day-btn {
    min-height: 44px;
    min-width: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* --- Filters toggle touch target --- */
.filters-toggle {
    min-height: 44px;
}

/* --- Touch device optimizations --- */
@media (hover: none) and (pointer: coarse) {
    /* Disable hover transform on touch devices to prevent sticky hover */
    .studio-card:hover {
        transform: none;
        box-shadow: none;
    }

    .style-card:hover {
        transform: none;
        box-shadow: none;
    }

    .guide-stat-card:hover {
        transform: none;
        box-shadow: none;
    }

    .btn-primary:hover {
        transform: none;
        box-shadow: none;
    }

    /* Active/tap feedback states (after hover to ensure they win) */
    .studio-card:active {
        transform: scale(0.98);
        transition-duration: 50ms;
    }

    .chip:active {
        transform: scale(0.95);
        transition-duration: 50ms;
    }

    .btn:active {
        transform: scale(0.97);
        transition-duration: 50ms;
    }

    .day-btn:active {
        transform: scale(0.95);
        transition-duration: 50ms;
    }

    .faq-item summary:active {
        background: var(--color-primary-bg);
    }

    .style-card:active {
        transform: scale(0.97);
        transition-duration: 50ms;
    }
}

/* --- Focus-visible for keyboard navigation --- */
*:focus-visible {
    outline: 3px solid var(--color-primary);
    outline-offset: 2px;
}

button:focus:not(:focus-visible),
a:focus:not(:focus-visible),
select:focus:not(:focus-visible),
input:focus:not(:focus-visible),
textarea:focus:not(:focus-visible) {
    outline: none;
}

/* --- Landscape orientation on phones --- */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding-top: calc(var(--header-height) + var(--spacing-lg));
        padding-bottom: var(--spacing-lg);
    }

    .hero-stats {
        gap: var(--spacing-xl);
    }

    .hero-scroll {
        display: none;
    }

    .modal {
        max-height: 95vh;
    }

    .nav.open {
        max-height: calc(100vh - var(--header-height));
        overflow-y: auto;
    }
}

/* --- 320px narrow screen fixes --- */
@media (max-width: 360px) {
    .container {
        padding: 0 12px;
    }

    .hero-title {
        font-size: 1.6rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }

    .hero-stats {
        gap: var(--spacing-md);
    }

    .stat-number {
        font-size: 1.3rem;
    }

    .stat-label {
        font-size: 0.75rem;
    }

    .section-title {
        font-size: 1.4rem;
    }

    .section-subtitle {
        font-size: 0.95rem;
    }

    .studio-name {
        font-size: 1.05rem;
    }

    .chip {
        padding: 6px 12px;
        font-size: 12px;
        min-height: 44px;
    }

    .results-actions {
        flex-wrap: wrap;
        gap: var(--spacing-sm);
    }

    .btn-sm {
        font-size: 12px;
        padding: 6px 10px;
        min-height: 44px;
    }

    .modal-content h2 {
        font-size: 1.2rem;
        padding-right: 50px;
    }

    .guide-tips li {
        padding-left: 40px;
    }

    .guide-tips li::before {
        left: 10px;
        width: 22px;
        height: 22px;
        font-size: 11px;
    }

    .footer-links h3 {
        font-size: 13px;
    }

    .canton-selector-label {
        font-size: 13px;
    }
}

/* --- Nav overlay for closing menu by tapping outside --- */
.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    top: var(--header-height);
    background: var(--color-overlay);
    z-index: 99;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.nav-overlay.active {
    display: block;
    opacity: 1;
}

/* --- Schedule fine-tuning on small phones --- */
@media (max-width: 480px) {
    .schedule-row {
        padding: 10px var(--spacing-sm);
        gap: 3px;
    }

    .schedule-time {
        font-size: 12px;
    }

    .schedule-class {
        font-size: 14px;
    }

    .schedule-studio,
    .schedule-teacher {
        font-size: 11px;
    }

    .schedule-level {
        font-size: 10px;
    }
}

/* --- Improve modal on mobile --- */
@media (max-width: 480px) {
    .modal-overlay {
        padding: 0;
        align-items: flex-end;
    }

    .modal {
        max-height: 92vh;
        border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    }

    .modal-content {
        padding: 0 var(--spacing-md) var(--spacing-lg);
    }

    .modal-content h2 {
        font-size: 1.3rem;
    }

    .modal-actions {
        flex-direction: column;
    }

    .modal-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

/* --- Improve results bar on small screens --- */
@media (max-width: 480px) {
    .results-actions {
        width: 100%;
        justify-content: space-between;
    }

    /* Hide PDF export text on very small screens, keep icon */
    #exportPdf span,
    #geoBtn span,
    #installBtn span {
        display: none;
    }

    #exportPdf svg,
    #geoBtn svg,
    #installBtn svg {
        margin: 0;
    }
}

/* --- Prevent text from being cut off in cards --- */
.studio-description {
    word-break: break-word;
}

.modal-info-row {
    word-break: break-word;
}

/* --- Smooth scroll padding for all anchor targets --- */
[id] {
    scroll-margin-top: calc(var(--header-height) + 120px);
}

/* --- Fix canton-select on 480px (was 14px, needs 16px for iOS) --- */
@media (max-width: 480px) {
    .canton-select {
        font-size: 16px;
    }
}

/* ============================================================
   DEEP MOBILE AUDIT FIXES (Round 3)
   ============================================================ */

/* --- 1. Tap highlight: suppress default blue flash on iOS --- */
a, button, select, input, textarea, summary, .chip, .studio-card,
.style-card, .day-btn, .canton-cross-link, .more-studios-btn,
.fav-btn, .share-btn, .view-btn, .back-to-top, .nav-link {
    -webkit-tap-highlight-color: transparent;
}

/* --- 2. Overscroll behavior: prevent pull-to-refresh conflicts --- */
html {
    overscroll-behavior-y: none;
}

body {
    overscroll-behavior-y: none;
}

/* --- 3. Fix fav-btn/share-btn touch targets (40px -> 44px) --- */
.fav-btn, .share-btn {
    width: 44px;
    height: 44px;
}

/* --- 5. Back-to-top: fix sticky hover on touch & add active state --- */
@media (hover: none) and (pointer: coarse) {
    .back-to-top:hover {
        transform: none;
        background: var(--color-primary);
    }

    .back-to-top.visible:hover {
        transform: translateY(0);
    }

    .back-to-top:active {
        transform: scale(0.9);
        transition-duration: 50ms;
    }

    /* Active states for elements missed in previous round */
    .canton-cross-link:active {
        transform: scale(0.97);
        transition-duration: 50ms;
    }

    .more-studios-btn:active {
        transform: scale(0.95);
        transition-duration: 50ms;
    }

    .more-studios-card:active {
        transform: scale(0.98);
        transition-duration: 50ms;
    }

    .view-btn:active {
        transform: scale(0.9);
        transition-duration: 50ms;
    }

    .fav-btn:active, .share-btn:active {
        transform: scale(0.85);
        transition-duration: 50ms;
    }

    .nav-link:active {
        background: var(--color-primary-bg);
    }

    .filters-toggle:active {
        transform: scale(0.97);
        transition-duration: 50ms;
    }

    .search-clear:active {
        transform: scale(0.9);
        transition-duration: 50ms;
    }

    .lang-toggle:active, .theme-toggle:active {
        transform: scale(0.9);
        transition-duration: 50ms;
    }

    .modal-close:active {
        transform: scale(0.9);
        transition-duration: 50ms;
    }

    .guide-style-item:active {
        transform: scale(0.98);
        transition-duration: 50ms;
    }

    .guide-district-item:active {
        transform: scale(0.98);
        transition-duration: 50ms;
    }
}

/* --- 7. Map touch: prevent page scroll conflict when interacting with map --- */
.map {
    touch-action: none;
}

/* --- 9. Print styles: include more sections, cleaner output --- */
@media print {
    .schedule-section, .guide-section, .styles-section {
        background: white !important;
    }

    .feedback-section, .canton-links-section, .canton-intro-section,
    .nav-overlay, #cantonSelector {
        display: none !important;
    }

    .guide-style-item, .guide-district-item, .guide-stat-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }

    .faq-item {
        break-inside: avoid;
    }

    .section-title {
        color: black !important;
    }

    a[href]::after {
        content: none;
    }
}

/* --- 10. Chip min-height at 360px: ensure at least 44px (accessible minimum) --- */
@media (max-width: 360px) {
    .chip {
        min-height: 44px;
    }
}

/* --- 11. Fix filter-select visual on dark mode (appearance:auto can look broken) --- */
@media (max-width: 768px) {
    .filter-select {
        appearance: none;
        -webkit-appearance: none;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: right 12px center;
        background-size: 12px;
        padding-right: 32px;
    }

    [data-theme="dark"] .filter-select {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23B0B0C0' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    }
}

/* --- 12. Ensure schedule-days horizontal scroll with momentum & hidden scrollbar --- */
.schedule-days {
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
}

.schedule-days::-webkit-scrollbar {
    display: none;
}

@media (max-width: 480px) {
    .schedule-days {
        flex-wrap: nowrap;
        gap: 6px;
        padding-bottom: 2px;
    }

    .day-btn {
        flex-shrink: 0;
    }
}

/* --- 13. Canton cross-links: horizontal scroll on very narrow screens --- */
@media (max-width: 360px) {
    .canton-cross-links {
        overflow-x: auto;
        scrollbar-width: none;
        -ms-overflow-style: none;
        -webkit-overflow-scrolling: touch;
        flex-wrap: nowrap;
        padding-bottom: 4px;
    }

    .canton-cross-links::-webkit-scrollbar {
        display: none;
    }

    .canton-cross-link {
        flex-shrink: 0;
    }
}

/* --- 14. Theme toggle transition smoothness --- */
.theme-toggle svg {
    transition: transform var(--transition-fast), opacity var(--transition-fast);
}

/* --- 16. Ensure footer grid wraps properly with 6 children --- */
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }
}

/* --- 17. Fix results-bar potential overflow on 320px --- */
@media (max-width: 360px) {
    .results-count {
        font-size: 12px;
    }

    .view-toggle {
        flex-shrink: 0;
    }
}

/* --- 18. Guide comparison table: add scroll hint shadow on mobile --- */
@media (max-width: 768px) {
    .guide-comparison-table {
        position: relative;
    }

    .guide-comparison-table::after {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        width: 24px;
        background: linear-gradient(to right, transparent, var(--color-bg));
        pointer-events: none;
        border-radius: 0 var(--radius-md) var(--radius-md) 0;
    }

    [data-theme="dark"] .guide-comparison-table::after {
        background: linear-gradient(to right, transparent, var(--color-bg));
    }
}

/* --- 19. Modal drag handle indicator on mobile --- */
@media (max-width: 480px) {
    .modal::before {
        content: '';
        display: block;
        width: 36px;
        height: 4px;
        background: var(--color-border);
        border-radius: 2px;
        margin: 10px auto 0;
        flex-shrink: 0;
    }
}

/* --- 20. Ensure hero-scroll is above fold content --- */
@media (max-width: 768px) {
    .hero-scroll {
        bottom: 16px;
    }
}

/* --- 21. Schedule cal btn gap from other buttons --- */
.schedule-cal-btn + .schedule-cal-btn,
.schedule-cal-btn + a {
    margin-left: 4px;
}

/* --- 22. Prevent content shift when scrollbar appears/disappears --- */
html {
    scrollbar-gutter: stable;
}

/* --- 23. Comparison Table (Vergleichstabelle) --- */
.comparison-section {
    padding: var(--space-xl) 0;
}

.comparison-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 0;
    border: 3px solid #6B5B95;
    background: var(--surface);
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    table-layout: auto;
}

.comparison-table thead {
    background: #6B5B95;
    color: white;
}

.comparison-table th {
    padding: 16px 14px;
    text-align: center;
    font-weight: 800;
    font-size: 0.8rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-right: 2px solid rgba(255,255,255,0.3);
    border-bottom: 3px solid #4A3D6E;
    white-space: nowrap;
}

.comparison-table th:first-child {
    text-align: center;
    width: 35px;
}

.comparison-table th:nth-child(2) {
    text-align: left;
}

.comparison-table th:last-child {
    border-right: none;
}

.comparison-table td {
    padding: 11px 14px;
    border-bottom: 1px solid var(--border);
    border-right: 1px solid var(--border);
    vertical-align: middle;
    text-align: center;
}

.comparison-table td:last-child {
    border-right: none;
}

.comp-row-even {
    background: var(--surface);
}

.comp-row-odd {
    background: rgba(107, 91, 149, 0.06);
}

[data-theme="dark"] .comp-row-odd {
    background: rgba(212, 163, 115, 0.05);
}

.comparison-table tbody tr:hover {
    background: rgba(107, 91, 149, 0.12) !important;
}

[data-theme="dark"] .comparison-table tbody tr:hover {
    background: rgba(212, 163, 115, 0.12) !important;
}

.comp-studio {
    text-align: center;
    font-weight: 800;
    color: #6B5B95;
    width: 35px;
    font-size: 0.85rem;
}

.comp-name {
    text-align: left !important;
}

.comp-name strong {
    color: var(--text);
    font-size: 0.9rem;
}

.comp-city {
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 400;
}

.comp-price {
    font-variant-numeric: tabular-nums;
    text-align: right !important;
    white-space: nowrap;
    font-weight: 500;
}

.comp-price strong {
    color: #6B5B95;
    font-size: 0.95rem;
    font-weight: 700;
}

.comp-styles {
    text-align: left !important;
    max-width: 160px;
}

.comp-styles small {
    color: var(--text-muted);
    white-space: normal;
    line-height: 1.3;
}

.comp-link {
    text-align: center;
}

.comp-website-link {
    color: white;
    background: #6B5B95;
    display: inline-flex;
    align-items: center;
    padding: 5px 8px;
    border-radius: 4px;
    transition: background 0.2s;
    text-decoration: none;
}

.comp-website-link:hover {
    background: #4A3D6E;
}

/* Filters: icon only on mobile */
@media (max-width: 768px) {
    .filters-toggle span[data-i18n="filters.button"] {
        display: none;
    }

    .filters-toggle {
        padding: 8px 12px;
        gap: 4px;
    }

    .filters-toggle svg {
        width: 20px;
        height: 20px;
    }
}

/* Mobile: compact table with scroll */
@media (max-width: 768px) {
    .comparison-table {
        font-size: 0.75rem;
    }

    .comparison-table th {
        padding: 10px 8px;
        font-size: 0.68rem;
    }

    .comparison-table td {
        padding: 8px;
    }

    /* Hide less important columns */
    .comparison-table th:nth-child(7),
    .comparison-table td:nth-child(7) {
        display: none;
    }
}

/* ============================================================
   ACCESSIBILITY & UX ENHANCEMENTS
   ============================================================ */

/* --- Skeleton loading cards --- */
.skeleton-card {
    background: var(--color-surface);
    border-radius: var(--radius-lg, 16px);
    padding: 1.5rem;
    height: 220px;
    position: relative;
    overflow: hidden;
}

.skeleton-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    animation: skeleton-shimmer 1.5s infinite;
}

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

.skeleton-line {
    background: var(--color-border);
    border-radius: 4px;
    margin-bottom: 0.75rem;
}

.skeleton-line-title { height: 20px; width: 60%; }
.skeleton-line-text { height: 14px; width: 80%; }
.skeleton-line-text-short { height: 14px; width: 40%; }
.skeleton-line-tags { height: 28px; width: 70%; margin-top: 1rem; }

/* --- Smooth theme transition --- */
html.theme-transition,
html.theme-transition *,
html.theme-transition *::before,
html.theme-transition *::after {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease !important;
}

/* --- Favorites filter button --- */
.fav-filter-btn {
    background: none;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-md, 8px);
    padding: 0.5rem 1rem;
    cursor: pointer;
    color: var(--color-text);
    font-size: 0.9rem;
    min-height: 44px;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: border-color 0.2s, background 0.2s;
}

.fav-filter-btn:hover, .fav-filter-btn.active {
    border-color: var(--color-primary);
    background: var(--color-primary-light, rgba(107, 91, 149, 0.1));
}

.fav-filter-btn.active {
    color: var(--color-primary);
    font-weight: 600;
}

/* --- Sortable table header styles --- */
.comparison-table th[data-sort] {
    cursor: pointer;
    user-select: none;
    position: relative;
    padding-right: 1.5em;
}

.comparison-table th[data-sort]:hover {
    background: var(--color-primary-light, rgba(107, 91, 149, 0.15));
}

.comparison-table th[data-sort]::after {
    content: '\21C5';
    position: absolute;
    right: 0.4em;
    opacity: 0.4;
    font-size: 0.8em;
}

.comparison-table th[data-sort].sort-asc::after {
    content: '\2191';
    opacity: 1;
}

.comparison-table th[data-sort].sort-desc::after {
    content: '\2193';
    opacity: 1;
}

/* --- High contrast mode --- */
@media (prefers-contrast: more) {
    :root {
        --color-text-muted: #555555;
        --color-border: #333333;
        --shadow-sm: 0 0 0 1px #333;
        --shadow-md: 0 0 0 2px #333;
    }

    .studio-card, .style-card, .filter-bar, .results-bar {
        border: 2px solid #333;
    }
}

/* --- Forced colors (Windows High Contrast) --- */
@media (forced-colors: active) {
    .studio-card, .style-card, .btn, .chip {
        border: 1px solid ButtonText;
    }

    .skip-link:focus {
        background: Canvas;
        color: LinkText;
    }
}

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

    html {
        scroll-behavior: auto;
    }
}
