/**
 * TurnKey Directories - Dynamic City Page Inline Styles
 * 
 * Extracted from public/templates/dynamic-city.php
 * Phase 7: CSS Extraction
 * 
 * NOTE: This file uses CSS variables defined in the template:
 * --tkd-text-color, --tkd-accent-color, --tkd-accent-rgb, 
 * --tkd-text-color-secondary, --tkd-bg-white, --tkd-primary, --tkd-primary-dark
 */

/* ============================================
   STATIC OVERRIDES: Search & Top Rated Sections
   Hide decorative pseudo-elements for cross-platform compatibility
   (Extracted from Blocks 5 and 6 - purely static CSS)
   ============================================ */

.tkd-search-section::before, .tkd-search-section::after,
.tkd-search-card::before, .tkd-search-card::after,
.tkd-search-section .tkd-section-header::before, .tkd-search-section .tkd-section-header::after,
.tkd-search-section .tkd-section-title::before, .tkd-search-section .tkd-section-title::after {
    display: none !important;
    content: none !important;
}

.tkd-top-rated-section::before, .tkd-top-rated-section::after,
.tkd-top-rated-section .tkd-section-header::before, .tkd-top-rated-section .tkd-section-header::after,
.tkd-top-rated-section .tkd-section-title::before, .tkd-top-rated-section .tkd-section-title::after {
    display: none !important;
    content: none !important;
}

/* ============================================
   MASTER RESET FOR CITY AND STATE PAGES
   Ensures complete isolation from theme styles
   (Extracted from Block 1, Phase 2-4: Added state template support)
   ============================================ */
.tkd-city-page,
.tkd-city-page *,
.tkd-city-page *::before,
.tkd-city-page *::after,
body.tkd-city-template .tkd-city-page,
body.tkd-city-template .tkd-city-page *,
body.tkd-state-template .tkd-city-page,
body.tkd-state-template .tkd-city-page * {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
    box-sizing: border-box !important;
}

.tkd-city-page,
body.tkd-state-template .tkd-city-page {
    font-size: 16px !important;
    font-weight: 400 !important;
    line-height: 1.6 !important;
    color: var(--tkd-text-color) !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
}

/* ============================================
   BREADCRUMB - Exact Hostinger Match
   ============================================ */
.tkd-city-page .tkd-breadcrumb,
body.tkd-city-template .tkd-breadcrumb {
    display: block !important;
    width: auto !important;
    max-width: fit-content !important;
    margin: 0 auto 2rem auto !important;
    padding: 1rem 1.5rem !important;
    font-size: 0.875rem !important;
    font-weight: 500 !important;
    letter-spacing: 0.3px !important;
    text-transform: none !important;
    opacity: 1 !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border-radius: 12px !important;
    border: none !important;
}

/* Breadcrumb links - capitalize first letter only */
.tkd-city-page .tkd-breadcrumb a,
.tkd-city-page .tkd-breadcrumb span,
body.tkd-city-template .tkd-breadcrumb a,
body.tkd-city-template .tkd-breadcrumb span {
    text-transform: capitalize !important;
}

.tkd-city-page .tkd-breadcrumb ol {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 0.5rem !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Breadcrumb links - FORCE ACCENT color for highlighting */
.tkd-city-page .tkd-breadcrumb a,
body.tkd-city-template .tkd-breadcrumb a,
.tkd-breadcrumb a,
nav.tkd-breadcrumb a,
.tkd-breadcrumb ol li a {
    color: var(--tkd-accent-color) !important;
    text-decoration: none !important;
    font-size: 0.875rem !important;
    font-weight: 500 !important;
    transition: color 0.2s ease !important;
}

/* Breadcrumb separators and current page - use text color */
.tkd-city-page .tkd-breadcrumb span,
body.tkd-city-template .tkd-breadcrumb span,
.tkd-city-page .tkd-breadcrumb li:last-child,
body.tkd-city-template .tkd-breadcrumb li:last-child,
.tkd-breadcrumb span {
    color: var(--tkd-text-color) !important;
    font-size: 0.875rem !important;
    font-weight: 500 !important;
    opacity: 0.7 !important;
}

.tkd-city-page .tkd-breadcrumb a:hover,
body.tkd-city-template .tkd-breadcrumb a:hover,
.tkd-breadcrumb a:hover {
    color: var(--tkd-accent-color) !important;
    text-decoration: underline !important;
    opacity: 1 !important;
}

/* Hide any unwanted decorative lines on search card */
.tkd-city-page .tkd-search-card::before,
.tkd-city-page .tkd-search-card::after,
body.tkd-city-template .tkd-search-card::before,
body.tkd-city-template .tkd-search-card::after {
    display: none !important;
}

/* Hero Header - Title styling */
.tkd-city-page .tkd-hero-header h1,
.tkd-city-template .tkd-hero-header h1 {
    font-size: 2.5rem !important;
    font-weight: 700 !important;
    color: var(--tkd-text-color) !important;
    margin: 0 0 1rem 0 !important;
    line-height: 1.2 !important;
    text-align: center !important;
}

/* CRITICAL: Hero subtitle must use dashboard text color */
.tkd-city-page .tkd-hero-header p,
.tkd-city-template .tkd-hero-header p,
.tkd-city-page .tkd-hero-subtitle,
.tkd-city-page p.tkd-hero-subtitle,
body.tkd-city-template .tkd-hero-subtitle,
body.tkd-city-template p.tkd-hero-subtitle,
.tkd-hero-header .tkd-hero-subtitle {
    font-size: 1.125rem !important;
    font-weight: 400 !important;
    color: var(--tkd-text-color) !important;
    opacity: 0.85 !important;
    text-align: center !important;
    max-width: 700px !important;
    margin: 0 auto 2rem auto !important;
    line-height: 1.6 !important;
    visibility: visible !important;
    display: block !important;
    background: transparent !important;
}

/* ============================================
   HERO STATS - All 5 Cards in One Row
   ============================================ */
.tkd-city-page .tkd-hero-stats,
body.tkd-city-template .tkd-hero-stats {
    display: grid !important;
    grid-template-columns: repeat(5, 1fr) !important;
    gap: 1rem !important;
    margin: 2rem auto !important;
    padding: 2rem !important;
    background: linear-gradient(135deg, 
        rgba(var(--tkd-accent-rgb), 0.08) 0%, 
        rgba(255, 255, 255, 0.95) 100%) !important;
    border: 1px solid rgba(var(--tkd-accent-rgb), 0.2) !important;
    border-radius: 16px !important;
    max-width: 1200px !important;
}

.tkd-city-page .tkd-stat-item,
body.tkd-city-template .tkd-stat-item {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 0.75rem !important;
    padding: 1rem 0.875rem !important;
    background: rgba(255, 255, 255, 0.75) !important;
    border-radius: 12px !important;
    border: 1px solid rgba(var(--tkd-accent-rgb), 0.12) !important;
    min-height: auto !important;
    height: auto !important;
    flex: 1 1 0 !important;
    min-width: 0 !important;
}

.tkd-city-page .tkd-stat-icon,
body.tkd-city-template .tkd-stat-icon {
    font-size: 1.5rem !important;
    color: rgba(var(--tkd-accent-rgb), 0.85) !important;
    flex-shrink: 0 !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
}

.tkd-city-page .tkd-stat-text,
body.tkd-city-template .tkd-stat-text {
    display: flex !important;
    flex-direction: column !important;
    text-align: left !important;
    line-height: 1.4 !important;
}

.tkd-city-page .tkd-stat-number,
body.tkd-city-template .tkd-stat-number {
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    color: var(--tkd-text-color) !important;
    display: inline !important;
    margin-right: 0.35rem !important;
    margin-bottom: 0 !important;
}

.tkd-city-page .tkd-stat-label,
body.tkd-city-template .tkd-stat-label {
    font-size: 0.875rem !important;
    font-weight: 500 !important;
    color: var(--tkd-text-color) !important;
    opacity: 0.8 !important;
    text-transform: none !important;
    letter-spacing: normal !important;
}

/* ============================================
   TOP RATED CARDS - FORCE 3-COLUMN GRID
   ============================================ */
.tkd-city-page .tkd-top-rated-section,
.tkd-city-template .tkd-top-rated-section {
    margin: 3rem 0 !important;
}

.tkd-city-page .tkd-top-rated-grid,
.tkd-city-template .tkd-top-rated-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 1.5rem !important;
}

/* Business Cards - UNIFIED: Uses CSS variables for consistent sizing (Phase 2-2) */
.tkd-city-page .tkd-top-rated-card,
.tkd-city-page .enhanced-business-card,
.tkd-city-template .tkd-top-rated-card,
.tkd-city-template .enhanced-business-card {
    display: flex !important;
    flex-direction: column !important;
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    border-radius: var(--tkd-card-border-radius, 16px) !important;
    padding: var(--tkd-card-padding, 1.25rem) !important;
    visibility: visible !important;
    opacity: 1 !important;
    min-height: var(--tkd-card-min-height, 320px) !important;
    max-width: var(--tkd-card-max-width, 380px) !important;
    width: var(--tkd-card-width, 100%) !important;
    height: auto !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.05) !important;
    position: relative !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}

.tkd-city-page .tkd-top-rated-card:hover,
.tkd-city-page .enhanced-business-card:hover,
.tkd-city-template .tkd-top-rated-card:hover,
.tkd-city-template .enhanced-business-card:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15) !important;
}

@media (max-width: 768px) {
    .tkd-city-page .tkd-top-rated-card,
    .tkd-city-page .enhanced-business-card,
    .tkd-city-template .tkd-top-rated-card,
    .tkd-city-template .enhanced-business-card {
        max-width: 100% !important;
        min-height: var(--tkd-card-min-height, 280px) !important;
    }
}

/* Specialties label - Always uppercase for consistency */
.tkd-city-page .tkd-section-label,
.tkd-city-page .tkd-specialties-section h4,
.tkd-city-page .enhanced-section-title,
.tkd-city-template .tkd-section-label,
.tkd-city-template .tkd-specialties-section h4,
.tkd-city-template .enhanced-section-title {
    text-transform: uppercase !important;
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.5px !important;
    color: var(--tkd-text-color) !important;
    opacity: 0.9 !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    margin-bottom: 0.75rem !important;
}

/* Card badge styling */
.tkd-city-page .enhanced-card-badge,
.tkd-city-page .tkd-card-badge {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    padding: 0.5rem 1rem !important;
    border-radius: 20px !important;
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    background: linear-gradient(135deg, rgba(var(--tkd-accent-rgb), 0.9) 0%, rgba(var(--tkd-accent-rgb), 0.7) 100%) !important;
    color: #ffffff !important;
    margin-bottom: 1rem !important;
}

.tkd-city-page .enhanced-card-badge i,
.tkd-city-page .tkd-card-badge i {
    font-size: 0.875rem !important;
    color: #ffffff !important;
}

/* Business name in cards */
.tkd-city-page .enhanced-business-name,
.tkd-city-page .tkd-business-name {
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    color: var(--tkd-text-color) !important;
    margin: 0 0 0.5rem 0 !important;
    line-height: 1.3 !important;
}

/* Business category */
.tkd-city-page .enhanced-business-category {
    font-size: 0.875rem !important;
    color: var(--tkd-text-color) !important;
    opacity: 0.7 !important;
    margin-bottom: 1rem !important;
}

/* Rating stars */
.tkd-city-page .enhanced-stars,
.tkd-city-page .enhanced-rating-display {
    display: flex !important;
    align-items: center !important;
    gap: 0.25rem !important;
}

.tkd-city-page .enhanced-stars i {
    color: #ffc107 !important;
    font-size: 1rem !important;
}

.tkd-city-page .enhanced-rating-text {
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    color: var(--tkd-text-color) !important;
    margin-left: 0.5rem !important;
}

/* Section titles */
.tkd-city-page .enhanced-section-title,
.tkd-city-page .tkd-section-title {
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    color: var(--tkd-text-color) !important;
    opacity: 0.8 !important;
    margin-bottom: 0.75rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

.tkd-city-page .enhanced-section-title i {
    color: rgba(var(--tkd-accent-rgb), 0.8) !important;
    font-size: 1rem !important;
}

/* Contact items */
.tkd-city-page .enhanced-contact-item {
    display: flex !important;
    align-items: flex-start !important;
    gap: 0.75rem !important;
    margin-bottom: 0.75rem !important;
    font-size: 0.875rem !important;
    color: var(--tkd-text-color) !important;
}

.tkd-city-page .enhanced-contact-item i {
    color: rgba(var(--tkd-accent-rgb), 0.8) !important;
    font-size: 1rem !important;
    width: 1rem !important;
    flex-shrink: 0 !important;
}

.tkd-city-page .enhanced-contact-text,
.tkd-city-page .enhanced-contact-link {
    color: var(--tkd-text-color) !important;
    text-decoration: none !important;
}

.tkd-city-page .enhanced-contact-link:hover {
    color: rgba(var(--tkd-accent-rgb), 1) !important;
    text-decoration: underline !important;
}

/* Action buttons */
.tkd-city-page .enhanced-action-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.5rem !important;
    padding: 0.75rem 1rem !important;
    border-radius: 8px !important;
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
    cursor: pointer !important;
}

.tkd-city-page .enhanced-action-btn.primary-wide {
    background: linear-gradient(135deg, rgba(var(--tkd-accent-rgb), 1) 0%, rgba(var(--tkd-accent-rgb), 0.8) 100%) !important;
    color: #ffffff !important;
    border: none !important;
}

.tkd-city-page .enhanced-action-btn.secondary {
    background: rgba(255, 255, 255, 0.1) !important;
    color: var(--tkd-text-color) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

.tkd-city-page .enhanced-action-btn.disabled {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
}

/* ============================================
   SEARCH CARD STYLING - Centered Header
   ============================================ */
.tkd-city-page .tkd-search-card,
body.tkd-city-template .tkd-search-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.9) 100%) !important;
    border-radius: 16px !important;
    padding: 2rem !important;
    margin-bottom: 3rem !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
}

/* FORCE CENTER: Search card header must be centered */
.tkd-city-page .tkd-search-card .tkd-section-header,
body.tkd-city-template .tkd-search-card .tkd-section-header {
    text-align: center !important;
    display: block !important;
    width: 100% !important;
}

.tkd-city-page .tkd-search-card h2,
.tkd-city-page .tkd-search-card .tkd-section-title,
body.tkd-city-template .tkd-search-card h2,
body.tkd-city-template .tkd-search-card .tkd-section-title {
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    color: var(--tkd-text-color) !important;
    text-align: center !important;
    margin-bottom: 0.5rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.5rem !important;
}

.tkd-city-page .tkd-search-card p,
.tkd-city-page .tkd-search-card .tkd-section-subtitle,
body.tkd-city-template .tkd-search-card p,
body.tkd-city-template .tkd-search-card .tkd-section-subtitle {
    font-size: 1rem !important;
    color: var(--tkd-text-color-secondary) !important;
    text-align: center !important;
    margin-bottom: 1.5rem !important;
    max-width: 600px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Quick filter tags */
.tkd-city-page .tkd-quick-filter-tag {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.35rem !important;
    padding: 0.5rem 1rem !important;
    background: rgba(255, 255, 255, 0.9) !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 20px !important;
    font-size: 0.875rem !important;
    font-weight: 500 !important;
    color: #333333 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

.tkd-city-page .tkd-quick-filter-tag:hover {
    background: rgba(var(--tkd-accent-rgb), 0.1) !important;
    border-color: rgba(var(--tkd-accent-rgb), 0.5) !important;
}

.tkd-city-page .tkd-quick-filter-tag i {
    color: rgba(var(--tkd-accent-rgb), 0.8) !important;
}

/* Search button */
.tkd-city-page .tkd-search-btn,
.tkd-city-page button[type="submit"] {
    background: linear-gradient(135deg, rgba(var(--tkd-accent-rgb), 1) 0%, rgba(var(--tkd-accent-rgb), 0.8) 100%) !important;
    color: #ffffff !important;
    border: none !important;
    padding: 0.875rem 2rem !important;
    border-radius: 8px !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
}

/* ============================================
   MOBILE RESPONSIVE OVERRIDES
   ============================================ */
@media (max-width: 1024px) {
    .tkd-city-page .tkd-top-rated-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    .tkd-city-page .tkd-hero-stats {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 768px) {
    .tkd-city-page .tkd-top-rated-grid {
        grid-template-columns: 1fr !important;
    }
    
    .tkd-city-page .tkd-hero-stats {
        grid-template-columns: 1fr 1fr !important;
    }
    
    .tkd-city-page .tkd-hero-header h1 {
        font-size: 1.75rem !important;
    }
    
    .tkd-city-page .tkd-hero-header p {
        font-size: 1rem !important;
    }
}

/* ============================================
   TEXT VISIBILITY FIXES
   ============================================ */
.tkd-city-page h1, .tkd-city-page h2, .tkd-city-page h3, .tkd-city-page h4, .tkd-city-page h5, .tkd-city-page h6,
.tkd-city-page p, .tkd-city-page span, .tkd-city-page a, .tkd-city-page li, .tkd-city-page label,
body.tkd-city-template h1, body.tkd-city-template h2, body.tkd-city-template h3,
body.tkd-city-template p, body.tkd-city-template span, body.tkd-city-template a {
    color: var(--tkd-text-color) !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Links in cards should be visible */
.tkd-city-page a:not(.enhanced-action-btn):not(.tkd-action-button) {
    color: var(--tkd-text-color) !important;
    text-decoration: none !important;
}

.tkd-city-page a:hover:not(.enhanced-action-btn):not(.tkd-action-button) {
    color: rgba(var(--tkd-accent-rgb), 1) !important;
}

/* Section heading icons - gold color for trophies */
.tkd-city-page .tkd-section-heading i.fa-trophy,
.tkd-city-page .tkd-top-rated-section i.fa-trophy,
body.tkd-city-template i.fa-trophy {
    color: #ffc107 !important;
}

/* ============================================
   FONT AWESOME ICON FIX
   ============================================ */
.tkd-city-page i.fas,
.tkd-city-page i.far,
.tkd-city-page i.fab,
.tkd-city-page .fa-solid,
.tkd-city-page .fa-regular,
body.tkd-city-template i.fas,
body.tkd-city-template i.far {
    font-family: "Font Awesome 6 Free" !important;
    font-style: normal !important;
    font-weight: 900 !important;
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
    text-rendering: auto !important;
    line-height: 1 !important;
}

.tkd-city-page i.far,
body.tkd-city-template i.far {
    font-weight: 400 !important;
}

/* Explicit icon content for stat icons */
.tkd-city-page .tkd-stat-icon.fa-building::before,
body.tkd-city-template .tkd-stat-icon.fa-building::before {
    content: "\f1ad" !important;
}

.tkd-city-page .tkd-stat-icon.fa-star::before,
body.tkd-city-template .tkd-stat-icon.fa-star::before {
    content: "\f005" !important;
}

.tkd-city-page .tkd-stat-icon.fa-comments::before,
body.tkd-city-template .tkd-stat-icon.fa-comments::before {
    content: "\f086" !important;
}

.tkd-city-page .tkd-stat-icon.fa-clock::before,
body.tkd-city-template .tkd-stat-icon.fa-clock::before {
    content: "\f017" !important;
}

.tkd-city-page .tkd-stat-icon.fa-circle-check::before,
body.tkd-city-template .tkd-stat-icon.fa-circle-check::before {
    content: "\f058" !important;
}

.tkd-city-page i.fa-phone::before,
body.tkd-city-template i.fa-phone::before {
    content: "\f095" !important;
}

.tkd-city-page i.fa-globe::before,
body.tkd-city-template i.fa-globe::before {
    content: "\f0ac" !important;
}

.tkd-city-page i.fa-map-marker-alt::before,
body.tkd-city-template i.fa-map-marker-alt::before {
    content: "\f3c5" !important;
}

.tkd-city-page i.fa-directions::before,
body.tkd-city-template i.fa-directions::before {
    content: "\f5eb" !important;
}

.tkd-city-page i.fa-search::before,
body.tkd-city-template i.fa-search::before {
    content: "\f002" !important;
}

.tkd-city-page i.fa-calendar-check::before,
body.tkd-city-template i.fa-calendar-check::before {
    content: "\f274" !important;
}

.tkd-city-page i[class*="fa-"]::before,
body.tkd-city-template i[class*="fa-"]::before {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
    display: inline-block !important;
}

/* Status items text must be visible */
.tkd-city-page .enhanced-status-label,
.tkd-city-page .enhanced-status-details,
.tkd-city-page .enhanced-status-content span {
    color: var(--tkd-text-color) !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Hours and specialty items */
.tkd-city-page .enhanced-hours-item,
.tkd-city-page .enhanced-specialty-item,
.tkd-city-page .enhanced-feature-item {
    color: var(--tkd-text-color) !important;
    visibility: visible !important;
    opacity: 0.9 !important;
}

/* Specialties checkmark icons */
.tkd-city-page .enhanced-specialty-item i.fa-check-circle,
.tkd-city-page .enhanced-feature-item i.fa-certificate {
    color: rgba(var(--tkd-accent-rgb), 0.8) !important;
}

/* Hero description text */
.tkd-city-page .tkd-hero-header .tkd-hero-description,
.tkd-city-page .tkd-hero-header > p {
    color: var(--tkd-text-color) !important;
    opacity: 0.85 !important;
    visibility: visible !important;
}

/* Top rated section heading */
.tkd-city-page .tkd-section-heading,
.tkd-city-page .tkd-top-rated-heading {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.75rem !important;
    margin-bottom: 1rem !important;
}

.tkd-city-page .tkd-section-heading h2,
.tkd-city-page .tkd-top-rated-heading h2 {
    font-size: 1.75rem !important;
    font-weight: 700 !important;
    color: var(--tkd-text-color) !important;
    margin: 0 !important;
}

/* Section description */
.tkd-city-page .tkd-section-description,
.tkd-city-page .tkd-top-rated-section > p {
    text-align: center !important;
    color: var(--tkd-text-color) !important;
    opacity: 0.8 !important;
    margin-bottom: 2rem !important;
    font-size: 1rem !important;
}

/* Contact note text */
.tkd-city-page .enhanced-contact-note {
    font-size: 0.75rem !important;
    color: var(--tkd-text-color) !important;
    opacity: 0.6 !important;
}

/* ============================================
   ENHANCED PROFESSIONAL STYLING (Block 3)
   ============================================ */

/* FIXED: Inherit theme background, plugin controls content colors */
.tkd-city-page {
    color: var(--tkd-text-color) !important;
    min-height: 100vh;
    padding: 2rem 0;
}

/* Enhanced Breadcrumb Styling - Card Container Like Country Page */
.tkd-breadcrumb {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    margin: 0 auto 2rem auto;
    max-width: fit-content;
    text-align: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

.tkd-breadcrumb ol {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-size: 0.95rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.tkd-breadcrumb a {
    color: rgba(var(--tkd-accent-rgb), 0.8);
    text-decoration: none;
    transition: color 0.2s ease;
    font-weight: 500;
}

.tkd-breadcrumb a:hover {
    color: rgba(var(--tkd-accent-rgb), 1);
}

.tkd-breadcrumb span {
    color: var(--tkd-text-color-secondary);
}

/* Hide Theme Elements - Suit Image and Menu Buttons */
.tkd-city-page .site-header,
.tkd-city-page .main-navigation,
.tkd-city-page .header-widget,
.tkd-city-page .site-branding img,
.tkd-city-page .custom-logo,
.tkd-city-page .site-logo,
.tkd-city-page .header-image,
.tkd-city-page .site-header .widget,
.tkd-city-page .header-sidebar,
.tkd-city-page .menu-toggle,
.tkd-city-page .main-navigation .menu,
body.tkd-city-template .site-header,
body.tkd-city-template .main-navigation,
body.tkd-city-template .header-widget,
body.tkd-city-template .site-branding img,
body.tkd-city-template .custom-logo,
body.tkd-city-template .site-logo,
body.tkd-city-template .header-image {
    display: none !important;
    visibility: hidden !important;
}

/* Override any theme header positioning */
.tkd-city-page {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Plugin Container - Isolated from Theme */
.glass-business-container {
    min-height: 100vh;
    padding: 40px 20px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    width: 100%;
    box-sizing: border-box;
}

.glass-main-card {
    width: 100%;
    max-width: 1200px;
    background: var(--tkd-bg-white);
    border-radius: 20px;
    padding: 40px 15px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    gap: 20px;
    box-sizing: border-box;
}

/* Responsive Design for Isolated Container */
@media (max-width: 1024px) {
    .glass-main-card {
        width: 98%;
        padding: 30px 12px;
    }
}

@media (max-width: 768px) {
    .glass-business-container {
        padding: 20px 8px;
    }
    
    .glass-main-card {
        width: 100%;
        padding: 25px 8px;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .glass-business-container {
        padding: 15px 5px;
    }
    
    .glass-main-card {
        width: 100%;
        padding: 20px 6px;
        gap: 12px;
    }
}

/* Restore glass design fallbacks for older browsers */
@supports not (backdrop-filter: blur(6px)) {
    .tkd-hero-stats,
    .tkd-top-rated-card,
    .enhanced-business-card,
    .tkd-breadcrumb {
        background: rgba(255, 255, 255, 0.15) !important;
        border: 1px solid rgba(255, 255, 255, 0.2) !important;
    }
}

/* FIXED: Header Section with Dashboard Colors and Professional Sizing */
.tkd-hero-header {
    margin-bottom: 3rem;
    text-align: center;
    padding: 3rem 2rem 2rem 2rem;
    background: linear-gradient(135deg, 
        rgba(var(--tkd-accent-rgb), 0.05) 0%, 
        rgba(255, 255, 255, 0.95) 100%);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(var(--tkd-accent-rgb), 0.2);
    border-radius: 16px;
    margin: 2rem auto;
    max-width: 1200px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.tkd-hero-header h1 {
    font-size: var(--tkd-h1-size, 32px) !important;
    font-weight: var(--tkd-h1-weight, 700) !important;
    margin-bottom: 1.2rem !important;
    color: var(--tkd-text-color) !important;
    line-height: var(--tkd-line-height, 1.5) !important;
    letter-spacing: var(--tkd-letter-spacing, 0) !important;
    text-transform: var(--tkd-text-transform, none) !important;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.tkd-hero-subtitle {
    font-size: 1.2rem !important;
    margin-bottom: 2rem !important;
    color: var(--tkd-text-color-secondary) !important;
    font-weight: 400;
    line-height: 1.5;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* FIXED: Professional Stats Section with Dashboard Colors and Grid Layout */
.tkd-hero-stats {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
    margin: 2rem auto;
    padding: 2.5rem;
    background: linear-gradient(135deg, 
        rgba(var(--tkd-accent-rgb), 0.08) 0%, 
        rgba(255, 255, 255, 0.95) 100%);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(var(--tkd-accent-rgb), 0.2);
    border-radius: 16px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    max-width: 1200px;
}

.tkd-stat-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.1rem 0.875rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(var(--tkd-accent-rgb), 0.12);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    justify-content: flex-start;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    min-width: 0;
    flex: 1 1 0;
}

.tkd-stat-item:nth-child(5) {
    grid-column: auto;
    max-width: none;
    margin: 0;
    padding: 1.1rem 0.875rem;
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(var(--tkd-accent-rgb), 0.12);
}

.tkd-stat-item:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(var(--tkd-accent-rgb), 0.12);
    border-color: rgba(var(--tkd-accent-rgb), 0.25);
}

.tkd-stat-icon {
    font-size: 1.5rem;
    color: rgba(var(--tkd-accent-rgb), 0.85);
    flex-shrink: 0;
}

.tkd-stat-text {
    color: var(--tkd-text-color);
    font-weight: 500;
    font-size: 0.875rem;
    text-align: left;
    line-height: 1.4;
}

.tkd-stat-number {
    color: var(--tkd-text-color);
    font-weight: 700;
    font-size: 1.25rem;
    display: inline-block;
    margin-right: 0.35rem;
}

/* FIXED: Clean Action Buttons matching Business Listing Page Design */
.tkd-actions-section {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(var(--tkd-accent-rgb), 0.1);
}

.tkd-quick-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}

.tkd-quick-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(var(--tkd-accent-rgb), 0.2);
    background: rgba(255, 255, 255, 0.8);
    color: var(--tkd-text-color);
    min-width: 90px;
    justify-content: center;
}

.tkd-quick-action-btn:hover:not(.disabled) {
    background: rgba(var(--tkd-accent-rgb), 0.1);
    border-color: rgba(var(--tkd-accent-rgb), 0.4);
    transform: translateY(-2px);
    text-decoration: none;
    color: var(--tkd-text-color);
}

.tkd-quick-action-btn.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: rgba(200, 200, 200, 0.3);
    color: var(--tkd-text-color-secondary);
}

.tkd-quick-action-btn i {
    font-size: 1rem;
    color: rgba(var(--tkd-accent-rgb), 0.8);
}

.tkd-quick-action-btn.disabled i {
    color: var(--tkd-text-color-secondary);
}

/* Specific button colors */
.call-btn:not(.disabled) { 
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.1) 0%, rgba(255, 255, 255, 0.8) 100%);
}
.call-btn:not(.disabled):hover { 
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.2) 0%, rgba(255, 255, 255, 0.9) 100%);
}

.website-btn:not(.disabled) { 
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(255, 255, 255, 0.8) 100%);
}
.website-btn:not(.disabled):hover { 
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, rgba(255, 255, 255, 0.9) 100%);
}

.directions-btn:not(.disabled) { 
    background: linear-gradient(135deg, rgba(var(--tkd-accent-rgb), 0.1) 0%, rgba(255, 255, 255, 0.8) 100%);
}
.directions-btn:not(.disabled):hover { 
    background: linear-gradient(135deg, rgba(var(--tkd-accent-rgb), 0.2) 0%, rgba(255, 255, 255, 0.9) 100%);
}

/* ENHANCED: Top Rated Section Styling with Advanced Visual Hierarchy */
.tkd-top-rated-section {
    margin-bottom: 4rem;
    position: relative;
}

/* Decorative line - DISABLED to prevent cross-platform positioning issues */
.tkd-top-rated-section::before {
    display: none !important;
    content: none !important;
}

/* ALL Section Headers - MUST be centered */
.tkd-section-header,
.tkd-city-page .tkd-section-header,
body.tkd-city-template .tkd-section-header {
    text-align: center !important;
    margin-bottom: 3rem !important;
    position: relative !important;
    padding-top: 1rem !important;
    display: block !important;
    width: 100% !important;
}

/* Section Titles - Centered with flexbox for icon alignment */
.tkd-section-title,
.tkd-city-page .tkd-section-title,
body.tkd-city-template .tkd-section-title {
    font-size: var(--tkd-h2-size, 24px) !important;
    font-weight: var(--tkd-h2-weight, 600) !important;
    margin-bottom: 0.75rem !important;
    color: var(--tkd-text-color) !important;
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.5rem !important;
    text-align: center !important;
}

/* Decorative line - DISABLED */
.tkd-section-title::after {
    display: none !important;
    content: none !important;
}

.tkd-section-subtitle {
    font-size: var(--tkd-p-size, 16px) !important;
    font-weight: var(--tkd-p-weight, 400) !important;
    color: var(--tkd-text-color) !important;
    margin-bottom: 1.5rem !important;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* IMPROVED: 3 Cards Per Row with Perfect Alignment */
.tkd-top-rated-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    align-items: stretch;
}

@media (max-width: 1200px) {
    .tkd-top-rated-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
        max-width: 1000px;
    }
}

@media (max-width: 768px) {
    .tkd-top-rated-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0 1rem;
        max-width: 100%;
    }
    
    .tkd-top-rated-card {
        min-height: 420px;
    }
}

@media (max-width: 480px) {
    .tkd-top-rated-grid {
        gap: 0.75rem;
    }
    
    .tkd-top-rated-card {
        padding: 1.25rem;
        min-height: 380px;
    }
    
    .tkd-top-rated-card h3 {
        font-size: 1.15rem !important;
    }
}

/* ENHANCED: Top Rated Business Cards */
.tkd-top-rated-card {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    border-radius: 16px !important;
    padding: 1.75rem !important;
    position: relative !important;
    overflow: hidden !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.05) !important;
    display: flex !important;
    flex-direction: column !important;
    min-height: 750px !important;
    height: auto !important;
}

/* ENHANCED: Clean Hover Effects */
.tkd-top-rated-card:hover {
    transform: translateY(-4px) !important;
    border-color: rgba(var(--tkd-accent-rgb), 0.3) !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.08) !important;
}

.tkd-top-rated-card:hover .tkd-top-rated-badge {
    animation-duration: 1.5s;
    transform: translateX(-50%) scale(1.1);
}

.tkd-top-rated-card:hover h3 {
    color: var(--tkd-text-color) !important;
}

.tkd-top-rated-card:hover .tkd-rating-display {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 215, 0, 0.3);
    transform: scale(1.05);
}

.tkd-top-rated-card:hover .tkd-star.filled {
    animation: starGlow 0.6s ease-in-out;
}

.tkd-top-rated-card:hover .tkd-hours-status {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(var(--tkd-accent-rgb), 0.4);
}

.tkd-top-rated-card:hover .tkd-specialty-tag {
    transform: translateY(-2px) scale(1.05);
    background: linear-gradient(135deg, 
        rgba(var(--tkd-accent-rgb), 0.4) 0%, 
        rgba(var(--tkd-accent-rgb), 0.3) 100%);
    border-color: rgba(var(--tkd-accent-rgb), 0.6);
    box-shadow: 0 4px 12px rgba(var(--tkd-accent-rgb), 0.3);
}

.tkd-top-rated-card:hover .tkd-address-display {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

@keyframes starGlow {
    0%, 100% { 
        filter: drop-shadow(0 1px 2px rgba(255, 215, 0, 0.4));
    }
    50% { 
        filter: drop-shadow(0 2px 8px rgba(255, 215, 0, 0.8)) drop-shadow(0 0 12px rgba(255, 215, 0, 0.6));
    }
}

/* ENHANCED: Advanced Badge System with Animations - CENTERED */
.tkd-top-rated-badge {
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, 
        rgba(255, 215, 0, 0.95) 0%, 
        rgba(255, 193, 7, 0.9) 50%,
        rgba(var(--tkd-accent-rgb), 0.95) 100%);
    color: #1a1a1a;
    padding: 0.5rem 1rem;
    border-radius: 0 0 16px 16px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    box-shadow: 
        0 6px 20px rgba(255, 215, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    animation: badgePulse 3s ease-in-out infinite;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    z-index: 10;
}

.tkd-top-rated-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: badgeShine 2s ease-in-out infinite;
}

.tkd-top-rated-badge i {
    margin-right: 0.3rem;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

@keyframes badgePulse {
    0%, 100% { 
        transform: translateX(-50%) scale(1);
        box-shadow: 
            0 6px 20px rgba(255, 215, 0, 0.4),
            inset 0 1px 0 rgba(255, 255, 255, 0.3);
    }
    50% { 
        transform: translateX(-50%) scale(1.05);
        box-shadow: 
            0 8px 25px rgba(255, 215, 0, 0.6),
            inset 0 1px 0 rgba(255, 255, 255, 0.4);
    }
}

@keyframes badgeShine {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* ENHANCED: Business Name Styling */
.tkd-top-rated-card h3 {
    font-size: 1.15rem !important;
    font-weight: 700 !important;
    margin-top: 0.5rem !important;
    margin-bottom: 0.875rem !important;
    color: var(--tkd-text-color) !important;
    line-height: 1.3 !important;
    min-height: 2.75rem !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

/* ENHANCED: Rating Display */
.tkd-rating-display {
    display: flex !important;
    align-items: center !important;
    gap: 0.625rem !important;
    margin-bottom: 0.875rem !important;
    padding: 0.625rem 0.875rem !important;
    background: rgba(var(--tkd-accent-rgb), 0.08) !important;
    border-radius: 10px !important;
    border: 1px solid rgba(var(--tkd-accent-rgb), 0.15) !important;
}

.tkd-stars-row {
    display: flex !important;
    gap: 0.2rem !important;
}

.tkd-star {
    font-size: 1.1rem !important;
    line-height: 1 !important;
}

.tkd-star.filled {
    color: #ffd700 !important;
    filter: drop-shadow(0 1px 2px rgba(255, 215, 0, 0.4)) !important;
}

.tkd-star.half {
    color: #ffd700 !important;
    opacity: 0.7 !important;
}

.tkd-star.empty {
    color: rgba(0, 0, 0, 0.2) !important;
}

.tkd-rating-info {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.25rem !important;
}

.tkd-rating-number {
    font-size: 1.2rem !important;
    font-weight: 700 !important;
    color: var(--tkd-text-color) !important;
}

.tkd-review-count {
    font-size: 0.85rem !important;
    color: var(--tkd-text-color) !important;
    opacity: 0.7 !important;
    visibility: visible !important;
}

/* ENHANCED: Business Information - UNIFIED Spacing */
.tkd-business-info {
    margin-bottom: 0.875rem !important;
    flex-grow: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 0.625rem !important;
}

/* ENHANCED: Address Display Styling */
.tkd-address-display {
    display: flex !important;
    align-items: flex-start !important;
    gap: 0.5rem !important;
    padding: 0.625rem 0.875rem !important;
    background: rgba(0, 0, 0, 0.03) !important;
    border-radius: 8px !important;
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
    transition: all 0.3s ease !important;
    margin-bottom: 0.875rem !important;
}

.tkd-address-display span {
    color: var(--tkd-text-color) !important;
    font-size: 0.875rem !important;
    line-height: 1.35 !important;
}

.tkd-address-display i {
    color: rgba(var(--tkd-accent-rgb), 0.9) !important;
    font-size: 0.9rem;
    margin-top: 0.125rem;
    flex-shrink: 0;
}

/* Hours status badges */
.tkd-hours-status.open {
    background: rgba(34, 197, 94, 0.15);
    color: rgba(34, 197, 94, 0.9) !important;
    border: 1px solid rgba(34, 197, 94, 0.25);
}

.tkd-hours-status.closed {
    background: rgba(239, 68, 68, 0.15);
    color: rgba(239, 68, 68, 0.9) !important;
    border: 1px solid rgba(239, 68, 68, 0.25);
}

/* Status cards */
.tkd-status-card {
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    padding: 0.625rem !important;
    background: rgba(0, 0, 0, 0.03) !important;
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
    border-radius: 8px !important;
    transition: all 0.3s ease !important;
    min-height: 70px !important;
    max-height: 75px !important;
    min-width: 0 !important;
    overflow: hidden !important;
}

.tkd-status-card:hover {
    background: rgba(0, 0, 0, 0.05) !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
}

/* Specialty tags */
.tkd-specialty-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    background: linear-gradient(135deg, 
        rgba(var(--tkd-accent-rgb), 0.2) 0%, 
        rgba(var(--tkd-accent-rgb), 0.1) 100%);
    border: 1px solid rgba(var(--tkd-accent-rgb), 0.3);
    border-radius: 14px;
    font-size: 0.65rem;
    font-weight: 500;
    color: var(--tkd-text-color-secondary);
    transition: all 0.3s ease;
}

.tkd-specialty-tag:hover {
    background: linear-gradient(135deg, 
        rgba(var(--tkd-accent-rgb), 0.3) 0%, 
        rgba(var(--tkd-accent-rgb), 0.2) 100%);
    border-color: rgba(var(--tkd-accent-rgb), 0.5);
    transform: translateY(-1px);
}

.tkd-specialty-tag i {
    color: rgba(var(--tkd-accent-rgb), 0.8);
    font-size: 0.6rem;
}

/* Action buttons */
.tkd-action-button {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 0.3rem !important;
    text-decoration: none !important;
    border-radius: 12px !important;
    font-weight: 600 !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    text-align: center !important;
    color: var(--tkd-text-color) !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    cursor: pointer !important;
    background: rgba(0, 0, 0, 0.03) !important;
    outline: none !important;
    font-family: inherit !important;
}

.tkd-action-button.secondary {
    padding: 0.625rem 0.5rem !important;
    font-size: 0.75rem !important;
    background: rgba(0, 0, 0, 0.03) !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    color: var(--tkd-text-color) !important;
}

.tkd-action-button.secondary:hover {
    background: rgba(0, 0, 0, 0.06) !important;
    border-color: rgba(0, 0, 0, 0.12) !important;
    transform: translateY(-2px) !important;
}

.tkd-action-button.secondary i {
    color: rgba(var(--tkd-accent-rgb), 0.8) !important;
    font-size: 1rem !important;
}

/* Status-specific icon colors */
.tkd-status-card.hours-status-card .tkd-status-icon i.open {
    color: #10b981;
}

.tkd-status-card.hours-status-card .tkd-status-icon i.closed {
    color: #ef4444;
}

.tkd-status-card.distance-status-card .tkd-status-icon i {
    color: #3b82f6;
}

@keyframes statusPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* ============================================
   CRITICAL PERFORMANCE CSS (Phase 8)
   Extracted from dynamic-city.php second script block
   Converted from PHP variables to CSS custom properties
   ============================================ */

/* Base reset and box-sizing */
* { box-sizing: border-box; }
img { max-width: 100%; height: auto; }

/* Immediate header visibility with dashboard colors */
.tkd-hero-header {
    background: linear-gradient(135deg, 
        rgba(var(--tkd-accent-rgb), 0.05) 0%, 
        rgba(255, 255, 255, 0.95) 100%) !important;
    border: 1px solid rgba(var(--tkd-accent-rgb), 0.2) !important;
    border-radius: 16px !important;
    padding: 3rem 2rem !important;
    margin: 2rem auto !important;
    max-width: 1200px !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.tkd-hero-header h1 {
    color: var(--tkd-text-color) !important;
    font-size: var(--tkd-h1-size, 32px) !important;
    font-weight: var(--tkd-h1-weight, 700) !important;
    line-height: var(--tkd-line-height, 1.5) !important;
    letter-spacing: var(--tkd-letter-spacing, 0) !important;
    text-transform: var(--tkd-text-transform, none) !important;
    margin-bottom: 1.2rem !important;
    visibility: visible !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
}

.tkd-hero-subtitle {
    color: var(--tkd-text-color-secondary) !important;
    font-size: var(--tkd-p-size, 16px) !important;
    font-weight: var(--tkd-p-weight, 400) !important;
    visibility: visible !important;
}

/* Better business card visibility */
.enhanced-business-card { visibility: visible !important; opacity: 1 !important; }
.tkd-search-filter-section { visibility: visible !important; opacity: 1 !important; }

/* Mobile-friendly touch interactions */
@media (max-width: 768px) {
    /* Larger tap targets for mobile */
    .tkd-quick-filter-tag,
    .tkd-filter-chip,
    .tkd-action-button,
    .enhanced-action-btn {
        -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
    }
    
    /* Smooth scrolling for mobile */
    html {
        scroll-behavior: smooth;
    }
    
    /* Improved button hover states for touch */
    .tkd-action-button:active,
    .enhanced-action-btn:active {
        transform: scale(0.95);
        transition: transform 0.1s ease;
    }
    
    /* Mobile-friendly search inputs */
    .tkd-search-input,
    .tkd-location-input,
    .tkd-rating-input select {
        font-size: 16px !important; /* Prevent zoom on iOS */
        padding: 1rem !important;
        min-height: 48px !important;
    }
    
    /* Mobile-friendly dropdowns */
    .tkd-advanced-grid select {
        font-size: 16px !important;
        padding: 0.75rem !important;
        min-height: 44px !important;
    }
    
    /* Enhanced spacing for mobile touches */
    .tkd-pagination .tkd-page-btn {
        margin: 0 0.25rem;
    }
    
    /* Mobile-friendly breadcrumbs */
    .tkd-breadcrumb {
        padding: 0.75rem 1rem !important;
        font-size: 0.9rem !important;
    }
    
    .tkd-breadcrumb ol {
        gap: 0.5rem !important;
    }
    
    /* Mobile sticky search bar */
    .tkd-search-card {
        position: sticky;
        top: 0;
        z-index: 10;
        background: linear-gradient(135deg, 
            rgba(255, 255, 255, 0.95) 0%, 
            rgba(255, 255, 255, 0.9) 100%);
        backdrop-filter: blur(6px);
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    }
}

/* Enhanced mobile interactions */
@media (max-width: 480px) {
    /* Swipe-friendly card spacing */
    .tkd-top-rated-card,
    .enhanced-business-card {
        margin-bottom: 1rem;
    }
    
    /* Mobile-optimized input fields */
    .tkd-search-input,
    .tkd-location-input {
        font-size: 16px !important;
        padding: 1.25rem !important;
        min-height: 52px !important;
    }
    
    /* Better mobile button spacing */
    .tkd-secondary-actions,
    .enhanced-secondary-actions {
        gap: 0.75rem !important;
    }
    
    /* Mobile-friendly status indicators */
    .tkd-status-label {
        font-size: 0.8rem !important;
    }
    
    .tkd-status-details {
        font-size: 0.75rem !important;
    }
    
    /* Enhanced touch feedback */
    .tkd-specialty-tag:active,
    .tkd-quick-filter-tag:active {
        transform: scale(0.95);
        transition: transform 0.1s ease;
    }
}

/* BUSINESS LISTING STYLE: Action Buttons Grid - Optimized for 3-Card Layout */
.tkd-business-actions-container {
    margin-top: 1.5rem;
    padding: 1rem;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.95) 0%, 
        rgba(var(--tkd-accent-rgb), 0.05) 100%);
    border: 1px solid rgba(var(--tkd-accent-rgb), 0.25);
    border-radius: 12px;
    backdrop-filter: blur(6px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    visibility: visible !important;
    opacity: 1 !important;
}

.tkd-actions-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--tkd-text-color-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
    text-align: center;
    justify-content: center;
}

.tkd-actions-header i {
    color: rgba(var(--tkd-accent-rgb), 0.8);
    font-size: 1rem;
}

.tkd-business-actions-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
}

.tkd-action-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 0.6rem;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.95) 0%, 
        rgba(var(--tkd-accent-rgb), 0.08) 100%);
    border: 2px solid rgba(var(--tkd-accent-rgb), 0.3);
    border-radius: 10px;
    text-decoration: none;
    color: var(--tkd-text-color) !important;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    min-height: 70px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    visibility: visible !important;
    opacity: 1 !important;
}

.tkd-action-button:hover {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.98) 0%, 
        rgba(var(--tkd-accent-rgb), 0.12) 100%);
    border-color: rgba(var(--tkd-accent-rgb), 0.5);
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
    color: var(--tkd-text-color) !important;
    text-decoration: none;
}

.tkd-action-button[data-inactive="true"] {
    background: rgba(128, 128, 128, 0.1);
    border-color: rgba(128, 128, 128, 0.3);
    color: rgba(128, 128, 128, 0.6);
    cursor: not-allowed;
    pointer-events: none;
}

.tkd-action-button[data-inactive="true"]:hover {
    transform: none;
    box-shadow: none;
}

.tkd-action-button i {
    font-size: 1.1rem;
    margin-bottom: 0.35rem;
    color: rgba(var(--tkd-accent-rgb), 0.8);
}

.tkd-action-button[data-inactive="true"] i {
    color: rgba(128, 128, 128, 0.5);
}

.tkd-action-button span {
    font-size: 0.8rem;
    font-weight: 600;
}

/* Special button colors */
.call-action i { color: #22c55e; }
.website-action i { color: #3b82f6; }
/* Phase 2-10: Directions uses accent color from settings */
.directions-action i { color: var(--tkd-accent-color, #10b981); }
.book-action i { color: #8b5cf6; }

.tkd-action-button[data-inactive="true"].call-action i,
.tkd-action-button[data-inactive="true"].website-action i,
.tkd-action-button[data-inactive="true"].directions-action i,
.tkd-action-button[data-inactive="true"].book-action i {
    color: rgba(128, 128, 128, 0.5);
}

/* IMPROVED: Distance Display */
.tkd-distance-info {
    margin-top: 0.8rem;
    display: flex;
    justify-content: center;
}

.tkd-distance-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    background: linear-gradient(135deg, 
        rgba(var(--tkd-accent-rgb), 0.1) 0%, 
        rgba(255, 255, 255, 0.9) 100%);
    border: 1px solid rgba(var(--tkd-accent-rgb), 0.25);
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--tkd-text-color);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.tkd-distance-icon {
    color: rgba(var(--tkd-accent-rgb), 0.8);
    font-size: 0.9rem;
}

.tkd-distance-text {
    font-weight: 600;
    color: var(--tkd-text-color);
}

.tkd-distance-label {
    color: var(--tkd-text-color-secondary);
    font-size: 0.75rem;
    margin-left: 0.3rem;
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* Loading state classes */
.tkd-loading {
    opacity: 0.5;
    pointer-events: none;
}

.tkd-loaded {
    opacity: 1;
    pointer-events: auto;
}
