/* Home Automation Directory - Modern Clean Design */

:root {
    /* Home Automation Color Palette */
    --primary-500: #2563EB;      /* Tech Blue - Trust & Technology */
    --primary-600: #1D4ED8;      /* Hover state */
    --primary-700: #1E40AF;      /* Active state */
    
    --secondary-500: #06B6D4;    /* Smart Teal - Innovation */
    --secondary-600: #0891B2;
    
    --accent-500: #F59E0B;       /* Energy Orange - Smart Lighting */
    --accent-600: #D97706;
    
    --success-500: #10B981;      /* Verified Green */
    --success-600: #059669;
    
    --warning-500: #F59E0B;
    --danger-500: #EF4444;
    
    /* Neutral Palette */
    --neutral-900: #1E293B;      /* Headings */
    --neutral-800: #334155;
    --neutral-700: #475569;      /* Body text */
    --neutral-600: #64748B;
    --neutral-500: #94A3B8;
    --neutral-400: #CBD5E1;
    --neutral-300: #E2E8F0;
    --neutral-200: #F1F5F9;
    --neutral-100: #F8FAFC;      /* Soft backgrounds */
    
    /* Typography */
    --font-family-base: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    
    /* Spacing Scale (4px base) */
    --spacing-1: 0.25rem;    /* 4px */
    --spacing-2: 0.5rem;     /* 8px */
    --spacing-3: 0.75rem;    /* 12px */
    --spacing-4: 1rem;       /* 16px */
    --spacing-5: 1.25rem;    /* 20px */
    --spacing-6: 1.5rem;     /* 24px */
    --spacing-8: 2rem;       /* 32px */
    --spacing-10: 2.5rem;    /* 40px */
    --spacing-12: 3rem;      /* 48px */
    --spacing-16: 4rem;      /* 64px */
    
    /* Border Radius */
    --radius-sm: 0.5rem;     /* 8px */
    --radius-md: 0.75rem;    /* 12px */
    --radius-lg: 1rem;       /* 16px */
    --radius-xl: 1.5rem;     /* 24px */
    --radius-full: 9999px;
    
    /* Shadows - Subtle elevation */
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 12px 0 rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 24px 0 rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 16px 48px 0 rgba(0, 0, 0, 0.16);
    
    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);

    /* Dashboard Tokens */
    --dash-font: var(--font-family-base);
    --dash-bg: radial-gradient(1200px 600px at 10% -10%, rgba(37, 99, 235, 0.12), transparent 60%),
               radial-gradient(1000px 500px at 110% 0%, rgba(6, 182, 212, 0.12), transparent 55%),
               linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    --dash-surface: #ffffff;
    --dash-surface-alt: #f8fafc;
    --dash-border: rgba(148, 163, 184, 0.35);
    --dash-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
    --dash-shadow-soft: 0 8px 20px rgba(15, 23, 42, 0.08);
    --dash-accent: var(--primary-500);
    --dash-accent-strong: var(--primary-600);
    --dash-radius: 18px;
    --dash-radius-sm: 12px;
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family-base);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--neutral-700);
    background-color: var(--neutral-100);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* ========================================
   TYPOGRAPHY
   ======================================== */

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--neutral-900);
    margin-bottom: var(--spacing-4);
}

.display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
    font-weight: 800;
    letter-spacing: -0.02em;
}

p {
    margin-bottom: var(--spacing-4);
}

.lead {
    font-size: 1.125rem;
    font-weight: 400;
    color: var(--neutral-600);
}

.text-muted {
    color: var(--neutral-500) !important;
}

/* ========================================
   NAVIGATION
   ======================================== */

.navbar {
    padding: var(--spacing-4) 0;
    background-color: white !important;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-base);
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--primary-500) !important;
    display: flex;
    align-items: center;
    gap: var(--spacing-2);
}

.navbar-brand:hover {
    color: var(--primary-600) !important;
}

.navbar .navbar-toggler {
    flex-shrink: 0;
    min-width: 44px;
    min-height: 44px;
}

/* Keep the brand and menu button on one row at narrow mobile widths. */
@media (max-width: 575.98px) {
    .navbar .navbar-brand {
        font-size: 1.125rem;
        gap: 0.25rem;
        margin-right: 0;
    }
}

.navbar-nav .nav-link {
    font-weight: 500;
    color: var(--neutral-700) !important;
    padding: var(--spacing-2) var(--nav-link-px, var(--spacing-4)) !important;
    border-radius: var(--radius-md);
    transition: var(--transition-fast);
    position: relative;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-500) !important;
    background-color: var(--neutral-100);
}

.navbar-nav .nav-link.active {
    color: var(--primary-500) !important;
    font-weight: 600;
}

.navbar-nav .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 3px;
    background-color: var(--primary-500);
    border-radius: var(--radius-full);
}

/* ========================================
   CARDS - MODERN CLEAN DESIGN
   ======================================== */

.card {
    background-color: white;
    border: 1px solid var(--neutral-200);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
    overflow: hidden;
}

.card:hover {
    border-color: var(--primary-500);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.card-body {
    padding: var(--spacing-6);
}

.card-header {
    background-color: var(--neutral-100);
    border-bottom: 1px solid var(--neutral-200);
    padding: var(--spacing-4) var(--spacing-6);
    font-weight: 600;
    color: var(--neutral-900);
}

.card-footer {
    background-color: var(--neutral-100);
    border-top: 1px solid var(--neutral-200);
    padding: var(--spacing-4) var(--spacing-6);
}

.card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--neutral-900);
    margin-bottom: var(--spacing-3);
}

.card-subtitle {
    font-size: 0.9375rem;
    color: var(--neutral-600);
    margin-bottom: var(--spacing-3);
}

.card-text {
    font-size: 0.9375rem;
    color: var(--neutral-700);
    line-height: 1.6;
}

/* Provider Cards */
.provider-card {
    position: relative;
    height: 100%;
}

.provider-card .card-body {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-4);
}

.provider-badges {
    position: absolute;
    top: var(--spacing-4);
    left: var(--spacing-4);
    right: var(--spacing-4);
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: var(--spacing-2);
    z-index: 2;
}

.provider-logo-placeholder {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--neutral-200) 0%, var(--neutral-100) 100%);
    border: 2px solid var(--neutral-200);
}

/* Category Cards */
.category-card .card {
    position: relative;
    overflow: hidden;
    transition: all var(--transition-base);
}

.category-card .card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.03) 0%, rgba(6, 182, 212, 0.03) 100%);
    opacity: 0;
    transition: var(--transition-base);
}

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

.category-icon .icon-wrapper {
    width: 72px;
    height: 72px;
    background-color: var(--primary-500);
    background: linear-gradient(135deg, var(--primary-500) 0%, var(--secondary-500) 100%);
    margin: 0 auto;
}

.category-overlay {
    opacity: 0;
    transform: translateY(20px);
    transition: all var(--transition-base);
}

.category-card:hover .category-overlay {
    opacity: 1;
    transform: translateY(0);
}

/* Location Cards */
.location-card .icon-wrapper {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(6, 182, 212, 0.1) 100%);
}

/* Stats Cards */
.stat-card {
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    padding: var(--spacing-6);
    transition: all var(--transition-base);
    border: 1px solid var(--neutral-200);
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-500);
}

.stat-icon {
    margin-bottom: var(--spacing-4);
}

.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

/* ========================================
   FORMS
   ======================================== */

.form-control,
.form-select {
    padding: var(--spacing-3) var(--spacing-4);
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--neutral-900);
    background-color: white;
    border: 2px solid var(--neutral-300);
    border-radius: var(--radius-lg);
    transition: all var(--transition-fast);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-500);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
    outline: none;
}

.form-control::placeholder {
    color: var(--neutral-500);
    font-weight: 400;
}

.form-label {
    font-weight: 600;
    color: var(--neutral-900);
    margin-bottom: var(--spacing-2);
    font-size: 0.9375rem;
}

.input-group-text {
    background-color: var(--neutral-100);
    border: 2px solid var(--neutral-300);
    color: var(--neutral-600);
    border-radius: var(--radius-lg);
}

.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label {
    color: var(--primary-500);
    font-weight: 600;
}

/* ========================================
   BUTTONS
   ======================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-2);
    padding: var(--spacing-3) var(--spacing-6);
    font-weight: 600;
    font-size: 0.9375rem;
    line-height: 1;
    border-radius: var(--radius-lg);
    border: 2px solid transparent;
    transition: all var(--transition-fast);
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
}

.btn:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15);
}

/* Primary Button */
.btn-primary {
    background-color: var(--primary-500);
    color: white;
    border-color: var(--primary-500);
}

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

.btn-primary:active {
    background-color: var(--primary-700);
    transform: translateY(0);
}

/* Secondary Button */
.btn-secondary {
    background-color: var(--secondary-500);
    color: white;
    border-color: var(--secondary-500);
}

.btn-secondary:hover {
    background-color: var(--secondary-600);
    border-color: var(--secondary-600);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Warning Button (for CTAs) */
.btn-warning {
    background-color: var(--accent-500);
    color: var(--neutral-900);
    border-color: var(--accent-500);
    font-weight: 700;
}

.btn-warning:hover {
    background-color: var(--accent-600);
    border-color: var(--accent-600);
    color: var(--neutral-900);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Success Button */
.btn-success {
    background-color: var(--success-500);
    color: white;
    border-color: var(--success-500);
}

.btn-success:hover {
    background-color: var(--success-600);
    border-color: var(--success-600);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Outline Buttons */
.btn-outline-primary {
    background-color: transparent;
    color: var(--primary-500);
    border-color: var(--primary-500);
}

.btn-outline-primary:hover {
    background-color: var(--primary-500);
    color: white;
    transform: translateY(-2px);
}

.btn-outline-secondary {
    background-color: transparent;
    color: var(--neutral-700);
    border-color: var(--neutral-300);
}

.btn-outline-secondary:hover {
    background-color: var(--neutral-100);
    border-color: var(--neutral-400);
}

/* Button Sizes */
.btn-sm {
    padding: var(--spacing-2) var(--spacing-4);
    font-size: 0.875rem;
    border-radius: var(--radius-md);
}

.btn-lg {
    padding: var(--spacing-4) var(--spacing-8);
    font-size: 1.0625rem;
    border-radius: var(--radius-lg);
    font-weight: 700;
}

/* ========================================
   HERO SECTION
   ======================================== */

.hero-section {
    background: linear-gradient(135deg, var(--primary-500) 0%, var(--secondary-500) 100%);
    position: relative;
    overflow: hidden;
    padding: var(--spacing-16) 0;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-badges .badge {
    padding: var(--spacing-2) var(--spacing-4);
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.875rem;
}

.search-form {
    background: white;
    border-radius: var(--radius-xl);
    padding: var(--spacing-8);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--neutral-200);
}

.search-tabs .nav-pills .nav-link {
    border-radius: var(--radius-lg);
    padding: var(--spacing-3) var(--spacing-6);
    font-weight: 600;
    color: var(--neutral-700);
    border: 2px solid transparent;
    transition: all var(--transition-fast);
}

.search-tabs .nav-pills .nav-link.active {
    background-color: var(--primary-500);
    color: white;
    box-shadow: var(--shadow-md);
}

.search-tabs .nav-pills .nav-link:hover:not(.active) {
    background-color: var(--neutral-100);
    border-color: var(--primary-500);
    color: var(--primary-500);
}

.quick-category-badge {
    display: inline-flex;
    align-items: center;
    padding: var(--spacing-2) var(--spacing-4);
    background-color: rgba(255, 255, 255, 0.15);
    color: white;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 500;
    transition: var(--transition-fast);
    backdrop-filter: blur(10px);
}

.quick-category-badge:hover {
    background-color: rgba(255, 255, 255, 0.25);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.hero-image-container {
    position: relative;
}

.hero-main-image {
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    border: 4px solid rgba(255, 255, 255, 0.2);
}

.testimonial-float-card {
    bottom: var(--spacing-8);
    left: -var(--spacing-8);
    animation: floatAnimation 3s ease-in-out infinite;
}

@keyframes floatAnimation {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* ========================================
   SEARCH FUNCTIONALITY
   ======================================== */

.search-suggestions {
    position: absolute;
    top: calc(100% + var(--spacing-2));
    left: 0;
    right: 0;
    background: white;
    border: 2px solid var(--neutral-200);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

.suggestion-item {
    padding: var(--spacing-3) var(--spacing-4);
    cursor: pointer;
    transition: var(--transition-fast);
    border-bottom: 1px solid var(--neutral-200);
}

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

.suggestion-item:hover {
    background-color: var(--neutral-100);
    color: var(--primary-500);
}

/* ========================================
   SECTIONS
   ======================================== */

.stats-section,
.featured-providers-section,
.categories-section,
.locations-section,
.trust-section {
    padding: var(--spacing-16) 0;
}

.section-header {
    margin-bottom: var(--spacing-12);
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--neutral-900);
    margin-bottom: var(--spacing-3);
}

.section-header .lead {
    font-size: 1.125rem;
    color: var(--neutral-600);
}

/* ========================================
   BADGES & TAGS
   ======================================== */

.badge {
    padding: var(--spacing-2) var(--spacing-3);
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.75rem;
    letter-spacing: 0.025em;
}

.badge.bg-primary {
    background-color: var(--primary-500) !important;
}

.badge.bg-success {
    background-color: var(--success-500) !important;
}

.badge.bg-warning {
    background-color: var(--accent-500) !important;
    color: var(--neutral-900) !important;
}

.badge.bg-info {
    background-color: var(--secondary-500) !important;
}

.featured-badge,
.verified-badge {
    padding: var(--spacing-2) var(--spacing-4);
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 0.8125rem;
    box-shadow: var(--shadow-sm);
}

/* ========================================
   NEWSLETTER SECTION
   ======================================== */

.newsletter-section {
    background: linear-gradient(135deg, var(--primary-500) 0%, var(--primary-700) 100%);
    position: relative;
    overflow: hidden;
}

.newsletter-icon .icon-circle {
    width: 96px;
    height: 96px;
}

.newsletter-form .form-control,
.newsletter-form .form-select {
    border: 2px solid rgba(255, 255, 255, 0.2);
    background-color: rgba(255, 255, 255, 0.95);
}

.newsletter-form .form-control:focus,
.newsletter-form .form-select:focus {
    border-color: white;
    background-color: white;
}

/* ========================================
   UTILITIES
   ======================================== */

.text-primary { color: var(--primary-500) !important; }
.text-secondary { color: var(--secondary-500) !important; }
.text-success { color: var(--success-500) !important; }
.text-warning { color: var(--accent-500) !important; }
.text-danger { color: var(--danger-500) !important; }

.z-1050 { z-index: 1050; }

.bg-primary { background-color: var(--primary-500) !important; }
.bg-light { background-color: var(--neutral-100) !important; }

.rounded-circle {
    border-radius: var(--radius-full) !important;
}

.shadow-sm { box-shadow: var(--shadow-sm) !important; }
.shadow { box-shadow: var(--shadow-md) !important; }
.shadow-lg { box-shadow: var(--shadow-lg) !important; }

/* ========================================
   RATING STARS
   ======================================== */

.stars i {
    font-size: 1rem;
    margin: 0 1px;
}

.stars i.fa-star {
    color: var(--accent-500);
}

.stars i.fa-star-half-alt {
    color: var(--accent-500);
}

.stars i.fa-star-o {
    color: var(--neutral-300);
}

/* ========================================
   FOOTER
   ======================================== */

footer {
    background-color: var(--neutral-900);
    color: var(--neutral-400);
    padding: var(--spacing-16) 0 var(--spacing-8) 0;
}

footer h2,
footer h3,
footer h4,
footer h5,
footer h6 {
    color: white;
    font-weight: 700;
}

/* Footer headings keep their original h5/h6 visual scale after the
   heading-order fix (h2 brand, h3 columns) */
footer h2 {
    font-size: 1.25rem;
}

footer h3 {
    font-size: 1rem;
}

footer a {
    color: var(--neutral-400);
    text-decoration: none;
    transition: var(--transition-fast);
}

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

/* ========================================
   DASHBOARD
   ======================================== */

.dashboard-shell {
    background: var(--dash-bg);
    padding: var(--spacing-12) 0 var(--spacing-16);
}

.dash-header {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-6);
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-6) var(--spacing-6);
    background: var(--dash-surface);
    border: 1px solid var(--dash-border);
    border-radius: var(--dash-radius);
    box-shadow: var(--dash-shadow-soft);
    position: relative;
    overflow: hidden;
}

.dash-header::after {
    content: "";
    position: absolute;
    right: -80px;
    top: -60px;
    width: 240px;
    height: 180px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.18), rgba(6, 182, 212, 0.12));
    border-radius: 40px;
    transform: rotate(-8deg);
}

.dash-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--neutral-500);
    margin-bottom: var(--spacing-2);
}

.dash-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--neutral-900);
    margin-bottom: var(--spacing-2);
}

.dash-subtitle {
    margin-bottom: 0;
    color: var(--neutral-600);
    max-width: 520px;
}

.dash-meta {
    display: flex;
    align-items: center;
    gap: var(--spacing-3);
    flex-wrap: wrap;
    z-index: 1;
}

.dash-pill {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-2);
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid var(--dash-border);
    background: var(--dash-surface-alt);
    color: var(--neutral-700);
}

.dash-pill-accent {
    background: rgba(37, 99, 235, 0.12);
    color: var(--primary-600);
    border-color: rgba(37, 99, 235, 0.35);
}

.dash-pill-success {
    background: rgba(16, 185, 129, 0.12);
    color: #047857;
    border-color: rgba(16, 185, 129, 0.35);
}

.dash-pill-warning {
    background: rgba(245, 158, 11, 0.14);
    color: #92400E;
    border-color: rgba(245, 158, 11, 0.4);
}

.dash-pill-danger {
    background: rgba(239, 68, 68, 0.12);
    color: #B91C1C;
    border-color: rgba(239, 68, 68, 0.35);
}

.dash-pill-muted {
    background: var(--neutral-100, #F5F6FA);
    color: var(--neutral-600);
    border-color: var(--dash-border);
}

.dash-section {
    margin-top: var(--spacing-6);
}

.dash-card {
    background: var(--dash-surface);
    border-radius: var(--dash-radius);
    border: 1px solid var(--dash-border);
    box-shadow: var(--dash-shadow-soft);
    padding: var(--spacing-6);
    position: relative;
}

.dash-stack {
    display: grid;
    gap: var(--spacing-4);
}

.dash-card-sm {
    border-radius: var(--dash-radius-sm);
    padding: var(--spacing-4);
}

.dash-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--spacing-2);
    margin-bottom: var(--spacing-4);
}

.dash-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
    color: var(--neutral-900);
}

.dash-grid {
    display: grid;
    gap: var(--spacing-4);
}

.dash-grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.dash-grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dash-grid-profile {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1.85fr);
}

.dash-grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dash-grid > * {
    min-width: 0;
}

.dash-card-body {
    min-width: 0;
}

.dash-card-hover {
    transition: transform var(--transition-base, 0.2s ease), box-shadow var(--transition-base, 0.2s ease), border-color var(--transition-base, 0.2s ease);
}

.dash-card-hover:hover {
    transform: translateY(-3px);
    box-shadow: var(--dash-shadow, 0 12px 32px rgba(15, 23, 42, 0.12));
    border-color: rgba(37, 99, 235, 0.35);
}

/* Vertical card: content stacks, actions pin to the bottom (plan cards) */
.dash-card-flex {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.dash-card-flex .dash-actions {
    margin-top: auto;
}

.dash-plan-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--neutral-900);
    margin: 0 0 var(--spacing-2);
}

.dash-plan-desc {
    flex-grow: 1;
    margin: 0 0 var(--spacing-4);
}

/* Compact footer for the logged-in area (templates/layouts/app.php) */
.app-footer {
    margin-top: var(--spacing-7, 4rem);
    padding: var(--spacing-5) 0;
    border-top: 1px solid var(--dash-border);
    background: var(--dash-surface);
    color: var(--neutral-500);
    font-size: 0.875rem;
}

.app-footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-4);
    flex-wrap: wrap;
}

.app-footer-links {
    display: flex;
    gap: var(--spacing-4);
    flex-wrap: wrap;
}

.app-footer-links a {
    color: var(--neutral-600);
    text-decoration: none;
}

.app-footer-links a:hover,
.app-footer-links a:focus {
    color: var(--primary-600);
    text-decoration: underline;
}

.dash-stat {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-2);
}

.dash-stat-value {
    font-size: clamp(1.35rem, 1.1rem + 0.9vw, 2rem);
    line-height: 1.2;
    font-weight: 800;
    color: var(--neutral-900);
    font-variant-numeric: tabular-nums;
    overflow-wrap: anywhere;
    min-width: 0;
}

/* Smaller value style for dense contexts (plan-card prices, compact stats) */
.dash-stat-value--sm {
    font-size: 1.35rem;
    font-weight: 700;
}

.dash-stat-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--neutral-500);
    font-weight: 600;
}

.dash-stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(37, 99, 235, 0.12);
    color: var(--primary-600);
}

.dash-callout {
    display: grid;
    gap: var(--spacing-3);
    padding: var(--spacing-5);
    border-radius: var(--dash-radius);
    border: 1px dashed rgba(37, 99, 235, 0.4);
    background: rgba(37, 99, 235, 0.05);
}

.dash-callout-warning {
    border-color: rgba(245, 158, 11, 0.45);
    background: rgba(245, 158, 11, 0.08);
}

.dash-callout-success {
    border-color: rgba(16, 185, 129, 0.4);
    background: rgba(16, 185, 129, 0.08);
}

.dash-callout-danger {
    border-color: rgba(239, 68, 68, 0.4);
    background: rgba(239, 68, 68, 0.08);
}

.dash-callout-info {
    border-color: rgba(37, 99, 235, 0.4);
    background: rgba(37, 99, 235, 0.05);
}

.dash-actions {
    display: flex;
    gap: var(--spacing-3);
    flex-wrap: wrap;
}

.dash-select {
    width: 100%;
    padding: 0.65rem 0.9rem;
    border-radius: var(--dash-radius-sm);
    border: 1px solid var(--dash-border);
    background: var(--dash-surface);
}

.dash-list {
    display: grid;
    gap: var(--spacing-3);
    margin: 0;
    padding: 0;
    list-style: none;
}

.dash-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-3);
    border-radius: var(--dash-radius-sm);
    border: 1px solid var(--dash-border);
    background: var(--dash-surface-alt);
    gap: var(--spacing-3);
    flex-wrap: wrap;
}

.dash-empty {
    padding: var(--spacing-4);
    border-radius: var(--dash-radius-sm);
    border: 1px dashed var(--dash-border);
    color: var(--neutral-600);
    background: rgba(248, 250, 252, 0.7);
}

.dash-avatar {
    width: 96px;
    height: 96px;
    border-radius: 24px;
    object-fit: cover;
    border: 3px solid rgba(37, 99, 235, 0.2);
}

.dash-profile {
    display: flex;
    align-items: center;
    gap: var(--spacing-4);
    flex-wrap: wrap;
}

.dash-profile-meta {
    display: grid;
    gap: var(--spacing-2);
}

.dash-profile-name {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0;
    color: var(--neutral-900);
}

.dash-muted {
    color: var(--neutral-600);
}

.dash-pill-success {
    background: rgba(16, 185, 129, 0.12);
    color: var(--success-600);
    border-color: rgba(16, 185, 129, 0.35);
}

.dash-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-3);
}

.dash-item-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--dash-surface-alt);
    color: var(--neutral-700);
    font-size: 1.1rem;
}

.dash-item-title {
    font-weight: 700;
    margin: 0;
    color: var(--neutral-900);
}

.dash-item-subtext {
    font-size: 0.85rem;
    color: var(--neutral-500);
}

.dash-meta-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: var(--spacing-3);
}

.dash-meta-list li {
    display: flex;
    gap: var(--spacing-2);
    color: var(--neutral-700);
}

.dash-meta-list i {
    color: var(--primary-500);
    margin-top: 0.2rem;
}

.dash-form label {
    font-weight: 600;
}

.dash-form .form-control,
.dash-form .form-select {
    border-radius: var(--dash-radius-sm);
    border: 1px solid var(--dash-border);
    background: #fff;
}

.dash-form .form-control:focus,
.dash-form .form-select:focus {
    border-color: var(--dash-accent);
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.15);
}

.dash-animate {
    animation: dashFade 0.6s ease-out both;
    animation-delay: var(--dash-delay, 0ms);
}

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

@media (prefers-reduced-motion: reduce) {
    .dash-animate {
        animation: none;
    }
}

/* ========================================
   ANIMATIONS
   ======================================== */

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

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

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

.slide-in-up {
    animation: slideInUp 0.5s ease-out;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 1200px) {
    :root {
        --spacing-16: 3rem;
        --spacing-12: 2.5rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
}

@media (max-width: 992px) {
    .hero-section {
        padding: var(--spacing-12) 0;
    }
    
    .search-form {
        padding: var(--spacing-6);
    }
    
    .section-header h2 {
        font-size: 1.75rem;
    }
    
    .display-3 {
        font-size: 2.5rem;
    }

    .dash-grid-4,
    .dash-grid-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dash-grid-profile {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    :root {
        --spacing-16: 2.5rem;
        --spacing-12: 2rem;
        --spacing-8: 1.5rem;
    }
    
    .hero-section {
        padding: var(--spacing-8) 0;
    }
    
    .search-form {
        padding: var(--spacing-4);
    }
    
    .section-header h2 {
        font-size: 1.5rem;
    }
    
    .display-3 {
        font-size: 2rem;
    }
    
    .lead {
        font-size: 1rem;
    }
    
    .card-body {
        padding: var(--spacing-4);
    }
    
    .btn {
        padding: var(--spacing-3) var(--spacing-4);
    }
    
    .btn-lg {
        padding: var(--spacing-3) var(--spacing-6);
    }

    .dash-header {
        padding: var(--spacing-5);
    }

    .dash-header::after {
        display: none;
    }

    .dash-grid-4,
    .dash-grid-3,
    .dash-grid-2 {
        grid-template-columns: 1fr;
    }

    .dash-profile {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 576px) {
    .hero-badges .badge {
        font-size: 0.75rem;
        padding: var(--spacing-1) var(--spacing-3);
    }
    
    .quick-category-badge {
        font-size: 0.8125rem;
        padding: var(--spacing-2) var(--spacing-3);
    }
    
    .testimonial-float-card {
        position: static;
        margin-top: var(--spacing-4);
        animation: none;
    }

    /* Prevent horizontal drag and tighten footer columns on mobile */
    html, body {
        overflow-x: hidden;
    }
    footer div[style*="columns"] {
        columns: 2 !important;
        column-gap: 12px !important;
    }

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

    .dash-card {
        padding: var(--spacing-4);
    }

    .dash-stat-value {
        font-size: 1.6rem;
    }
}

/* ========================================
   CUSTOM SCROLLBAR
   ======================================== */

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--neutral-200);
}

::-webkit-scrollbar-thumb {
    background: var(--neutral-400);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--neutral-500);
}

/* ========================================
   ACCESSIBILITY
   ======================================== */

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

*:focus-visible {
    outline: 3px solid var(--primary-500);
    outline-offset: 2px;
}

/* Keep keyboard focus visible when Bootstrap's link reset takes precedence. */
.navbar a:focus-visible,
.navbar button:focus-visible,
.review-rating-options input:focus-visible + label {
    outline: 3px solid #096b70;
    outline-offset: 3px;
}

.review-rating-options {
    display: flex;
    gap: 4px;
}

.review-rating-options label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    color: #596176;
    font-size: 1.5rem;
    cursor: pointer;
}

.review-rating-options input:checked + label {
    color: #705000;
    background: #fff0bb;
    border-radius: 4px;
}

/* ========================================
   LOADING STATES
   ======================================== */

.spinner-border {
    width: 2rem;
    height: 2rem;
    border: 3px solid currentColor;
    border-right-color: transparent;
    border-radius: var(--radius-full);
    animation: spinner-border 0.75s linear infinite;
}

@keyframes spinner-border {
    to {
        transform: rotate(360deg);
    }
}

.skeleton {
    background: linear-gradient(90deg, var(--neutral-200) 25%, var(--neutral-100) 50%, var(--neutral-200) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
}

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

/* ========================================
   PRINT STYLES
   ======================================== */

@media print {
    .navbar,
    .hero-section,
    .newsletter-section,
    footer,
    .btn {
        display: none !important;
    }
    
    .card {
        box-shadow: none !important;
        border: 1px solid var(--neutral-300);
    }
}

/* Footer */
footer {
    margin-top: auto;
}

footer .nav-link {
    color: rgba(255, 255, 255, 0.8) !important;
    text-decoration: none;
    transition: color 0.3s ease;
}

footer .nav-link:hover {
    color: #fff !important;
}

/* Loading states */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

/* Responsive */
@media (max-width: 768px) {
    .card {
        margin-bottom: 1rem;
    }

    .stats-card {
        margin-bottom: 1rem;
    }

    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
}

/* Enhanced Homepage Specific Styles */

/* Hero Section with Video Background */
.hero-section {
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
    position: relative;
    overflow: hidden;
    min-height: 100vh;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.hero-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(13, 110, 253, 0.85);
    z-index: 1;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.1" d="M0,96L48,112C96,128,192,160,288,165.3C384,171,480,149,576,138.7C672,128,768,128,864,138.7C960,149,1056,171,1152,165.3C1248,160,1344,128,1392,112L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
}

.hero-content h1 {
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-content p {
    font-size: 1.1rem;
    opacity: 0.95;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Hero Badges */
.hero-badges .badge {
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
    font-weight: 600;
    border-radius: 50px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Enhanced Search Form */
.search-form {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 1rem;
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175);
}

.search-tabs .nav-pills .nav-link {
    border-radius: 50px;
    padding: 0.5rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.search-tabs .nav-pills .nav-link.active {
    background: var(--primary-color);
}

/* Quick Category Badges */
.quick-category-badge {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.quick-category-badge:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    color: white;
}

/* Hero Trust Indicators */
.hero-trust-indicators .small {
    font-weight: 500;
}

/* Hero Visual Elements */
.hero-image-container {
    position: relative;
}

.hero-main-image {
    border-radius: 1rem;
    box-shadow: 0 2rem 4rem rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.hero-main-image:hover {
    transform: scale(1.02);
}

.testimonial-float-card {
    top: -2rem;
    right: -1rem;
    z-index: 10;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* Enhanced Stats Section */
.stat-card {
    background: white;
    border: none;
    border-radius: 1rem;
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--success-color));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.stat-card:hover::before {
    transform: scaleX(1);
}

.stat-icon {
    opacity: 0.8;
    transition: all 0.3s ease;
}

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

.counter {
    font-weight: 700;
    color: var(--primary-color);
}

/* Enhanced Provider Cards */
.provider-card {
    position: relative;
    transition: all 0.3s ease;
    overflow: hidden;
    border-radius: 1rem;
}

.provider-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 1.5rem 3rem rgba(0, 0, 0, 0.175);
}

.provider-badges {
    z-index: 10;
}

.featured-badge,
.verified-badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.5rem 0.75rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.featured-badge {
    background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
}

.verified-badge {
    background: linear-gradient(135deg, #198754 0%, #157347 100%);
}

.quick-view-btn {
    width: 32px;
    height: 32px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.provider-logo-placeholder {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    background: var(--light-color);
    border: 2px solid rgba(0, 0, 0, 0.05);
}

.provider-rating {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

/* Provider Filters */
.provider-filters .btn {
    border-radius: 50px;
    padding: 0.5rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.provider-filters .btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

/* Enhanced Category Cards */
.category-card .card {
    border-radius: 1rem;
    overflow: hidden;
    position: relative;
}

.category-gradient {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--success-color) 100%);
    opacity: 0.05;
}

.icon-wrapper {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto;
    transition: all 0.3s ease;
}

.category-card:hover .icon-wrapper {
    transform: scale(1.1);
    background: var(--primary-color) !important;
}

.category-card:hover .icon-wrapper i {
    color: white !important;
}

.category-overlay {
    transform: translateY(100%);
    transition: transform 0.3s ease;
    background: var(--primary-color);
}

.category-card:hover .category-overlay {
    transform: translateY(0);
}

/* Category View Options */
.category-view-options .btn {
    border-radius: 50px;
    padding: 0.5rem 1.5rem;
    font-weight: 500;
}

.list-view .category-item {
    border-bottom: 1px solid #e9ecef;
    padding: 1rem 0;
}

.list-view .category-item:last-child {
    border-bottom: none;
}

/* Enhanced Location Cards */
.location-card .card {
    border-radius: 1rem;
    transition: all 0.3s ease;
}

.location-card:hover .card {
    transform: translateY(-5px);
    box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.15);
}

.location-icon .icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin: 0 auto;
}

/* Location View Toggle */
.location-view-toggle .btn {
    border-radius: 50px;
    padding: 0.5rem 1.5rem;
    font-weight: 500;
}

/* Map Container */
.locations-map {
    background: var(--light-color);
    border: 2px dashed #dee2e6;
}

/* Trust Badges */
.trust-badge-item {
    transition: all 0.3s ease;
    border: none;
}

.trust-badge-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.15);
}

.badge-icon {
    transition: transform 0.3s ease;
}

.trust-badge-item:hover .badge-icon {
    transform: scale(1.1);
}

/* Testimonials Carousel */
.testimonial-item {
    border: none;
    border-radius: 1rem;
    background: white;
}

.testimonial-item blockquote {
    font-style: italic;
    line-height: 1.6;
}

.testimonial-item img {
    border: 3px solid var(--primary-color);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.carousel-indicators [data-bs-target] {
    background-color: var(--primary-color);
    border-radius: 50%;
    width: 12px;
    height: 12px;
    margin: 0 4px;
}

/* Trust Features */
.trust-feature-item {
    transition: all 0.3s ease;
    border: none;
}

.trust-feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.15);
}

.icon-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto;
    transition: all 0.3s ease;
}

.trust-feature-item:hover .icon-circle {
    transform: scale(1.1);
}

/* Enhanced Newsletter Section */
.newsletter-pattern {
    pointer-events: none;
}

.newsletter-icon .icon-circle {
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.newsletter-benefits .benefit-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
}

.form-floating label {
    color: #6c757d;
}

.form-floating .form-control:focus ~ label,
.form-floating .form-select:focus ~ label {
    color: var(--primary-color);
}

.recent-subscribers-avatars img {
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.recent-subscribers-avatars .rounded-circle {
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Search Suggestions Enhanced */
.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #dee2e6;
    border-top: none;
    border-radius: 0 0 0.5rem 0.5rem;
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.suggestion-item {
    padding: 0.75rem 1rem;
    cursor: pointer;
    border-bottom: 1px solid #f8f9fa;
    transition: background-color 0.2s ease;
}

.suggestion-item:hover {
    background-color: #f8f9fa;
}

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

/* Enhanced Buttons */
.btn {
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.btn-lg {
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 0.5rem;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* Enhanced Mobile Responsiveness */
@media (max-width: 768px) {
    .hero-section .row {
        min-height: auto;
        padding: 2rem 0;
    }

    .hero-content .display-3 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .search-form .row.g-3 > * {
        margin-bottom: 0.5rem;
    }

    .testimonial-float-card {
        display: none;
    }

    .provider-card:hover {
        transform: translateY(-3px);
    }

    .featured-badge,
    .verified-badge {
        font-size: 0.625rem;
        padding: 0.25rem 0.5rem;
    }

    .newsletter-benefits {
        flex-direction: column;
        gap: 0.5rem;
    }

    .newsletter-benefits .benefit-item {
        text-align: center;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding: 1rem 0;
        min-height: auto;
    }

    .hero-content .display-3 {
        font-size: 2rem;
    }

    .stat-card {
        padding: 1.5rem;
    }

    .trust-badges .row.g-3 > * {
        margin-bottom: 1rem;
    }

    .newsletter-form .row.g-3 > * {
        margin-bottom: 0.5rem;
    }
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/* Enhanced Utility Classes */
.hover-lift {
    transition: all 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.15) !important;
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--success-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Search Form */
.search-form {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #dee2e6;
    border-top: none;
    border-radius: 0 0 0.375rem 0.375rem;
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.suggestion-item {
    padding: 0.75rem 1rem;
    cursor: pointer;
    border-bottom: 1px solid #f8f9fa;
    transition: background-color 0.2s ease;
}

.suggestion-item:hover {
    background-color: #f8f9fa;
}

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

/* Quick Categories */
.quick-categories .badge {
    font-size: 0.875rem;
    padding: 0.5rem 0.75rem;
    transition: all 0.2s ease;
}

.quick-categories .badge:hover {
    background-color: #0d6efd !important;
    color: white !important;
    transform: translateY(-1px);
}

/* Provider Cards */
.provider-card {
    position: relative;
    transition: all 0.3s ease;
    overflow: hidden;
}

.provider-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175);
}

.featured-badge,
.verified-badge {
    position: absolute;
    top: 1rem;
    z-index: 10;
    font-size: 0.75rem;
    font-weight: 600;
}

.featured-badge {
    left: 1rem;
    background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
}

.verified-badge {
    right: 1rem;
    background: linear-gradient(135deg, #198754 0%, #157347 100%);
}

.provider-header h5 a {
    color: #212529;
    text-decoration: none;
    transition: color 0.2s ease;
}

.provider-header h5 a:hover {
    color: var(--primary-color);
}

.provider-rating .stars {
    color: #ffc107;
}

.provider-rating .stars i {
    margin-right: 0.125rem;
}

/* Category Cards */
.category-card:hover .card {
    transform: translateY(-3px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

.category-icon {
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.category-card:hover .category-icon {
    transform: scale(1.1);
}

/* Location Cards */
.location-card:hover .card {
    transform: translateY(-3px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

/* Newsletter Section */
.newsletter-section {
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
    position: relative;
    overflow: hidden;
}

.newsletter-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.05" d="M0,96L48,112C96,128,192,160,288,165.3C384,171,480,149,576,138.7C672,128,768,128,864,138.7C960,149,1056,171,1152,165.3C1248,160,1344,128,1392,112L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
}

/* Stats Section */
.stats-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.stat-item h2 {
    font-weight: 700;
    color: var(--primary-color);
}

/* Trust Section */
.trust-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.trust-icon {
    color: var(--primary-color);
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.trust-item:hover .trust-icon {
    opacity: 1;
    transform: scale(1.05);
}

/* Utility Classes */
.hover-lift {
    transition: all 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-3px);
}

.text-gradient {
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Homepage Responsive Design */
@media (max-width: 768px) {
    .hero-section .row {
        min-height: auto;
    }

    .hero-section {
        padding: 3rem 0;
    }

    .hero-content .display-4 {
        font-size: 2rem;
    }

    .search-form {
        margin-top: 1.5rem;
    }

    .provider-card:hover {
        transform: translateY(-3px);
    }

    .featured-badge,
    .verified-badge {
        font-size: 0.625rem;
        padding: 0.25rem 0.5rem;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding: 2rem 0;
    }

    .hero-content .display-4 {
        font-size: 1.5rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .search-form .row.g-3 > * {
        margin-bottom: 0.5rem;
    }
}

/* ========================================
   HOMEPAGE SPECIFIC STYLES - NO INLINE STYLES
   ======================================== */

/* Main Page Background */
main.homepage {
    background: #F5F6FA;
}

/* Hero Section - Home Automation Theme */
.hero-home {
    background: linear-gradient(135deg, #0FB4BA 0%, #0C9BA0 100%);
    padding: 120px 0;
    position: relative;
}

.hero-home-title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-home-subtitle {
    font-size: 1.5rem;
    opacity: 0.95;
    max-width: 800px;
    margin: 0 auto;
}

/* Search Box */
.search-box-container {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 900px;
    margin: 0 auto;
    box-shadow: 0 12px 32px rgba(26,31,43,0.12);
}

.search-input {
    border: 2px solid #E8EAF0;
    border-radius: 8px;
}

.search-label {
    color: #30364A;
}

.search-btn {
    background: #0FB4BA;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    height: 58px;
}

.search-btn:hover {
    background: #0C9BA0;
    color: white;
}

/* Category Section */
.category-section {
    padding: 60px 0;
    background: white;
}

.category-icon-wrapper {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, #0FB4BA 0%, #0C9BA0 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.category-name {
    font-size: 1.125rem;
    font-weight: 700;
    color: #30364A;
    margin-bottom: 8px;
}

.category-count {
    color: #6B7280;
    font-size: 0.9375rem;
}

/* Featured Providers Section */
.providers-section {
    padding: 80px 0;
    background: #F5F6FA;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #30364A;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 1.125rem;
    color: #6B7280;
    margin-bottom: 48px;
}

/* Location Cards */
.locations-section {
    padding: 80px 0;
    background: white;
}

.location-icon-bg {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, rgba(15, 180, 186, 0.1) 0%, rgba(12, 155, 160, 0.1) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
}

/* Map Container */
.map-container {
    background: #E5E7EB;
    border-radius: 12px;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Footer Locations */
.footer-locations {
    background: #1E293B;
    padding: 40px 0 20px;
}

.footer-locations h6 {
    color: white;
    font-weight: 700;
    margin-bottom: 16px;
}

.footer-locations a {
    color: #94A3B8;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s;
}

.footer-locations a:hover {
    color: #0FB4BA;
}

.footer-copyright {
    background: #0F172A;
    padding: 20px 0;
    color: #64748B;
    font-size: 0.875rem;
}

/* Provider Card Styles */
.provider-image-placeholder {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #F3F4F6 0%, #E5E7EB 100%);
    border-radius: 8px 8px 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.provider-logo-circle {
    width: 80px;
    height: 80px;
    background: white;
    border: 2px solid #E5E7EB;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.provider-info {
    padding: 20px;
}

.provider-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: #30364A;
    margin-bottom: 8px;
}

.provider-location {
    color: #6B7280;
    font-size: 0.9375rem;
    margin-bottom: 12px;
}

.provider-services {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.service-badge {
    background: #F3F4F6;
    color: #374151;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.8125rem;
    font-weight: 500;
}

.provider-rating-box {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.rating-stars {
    color: #F59E0B;
}

.rating-count {
    color: #6B7280;
    font-size: 0.875rem;
}

.provider-cta {
    display: flex;
    gap: 8px;
}

.btn-view-profile {
    flex: 1;
    background: #0FB4BA;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-view-profile:hover {
    background: #0C9BA0;
    transform: translateY(-2px);
    color: white;
}

.btn-contact {
    flex: 1;
    background: white;
    color: #0FB4BA;
    border: 2px solid #0FB4BA;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-contact:hover {
    background: #F0FDFE;
    color: #0FB4BA;
}

/* Sticky-footer scaffold: body must grow with content so the document
   (not body) stays the scroll container — height: 100% here turned body
   into a nested scroller and broke window scroll, anchors and keyboard paging. */
html, body {
    margin: 0;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
}

/* ==========================================================================
   SHARED PUBLIC-PAGE STYLES
   Extracted from templates' embedded <style> blocks (cleanup 2026-09-08).
   Each page's rules are namespaced under a unique .pg-* wrapper class
   set on the page's <main> element. body/global-element overrides remain
   in small page-local <style> blocks on purpose.
   ========================================================================== */

/* ---- category/index.php (was an embedded <style> block; namespaced under .pg-categories-index) ---- */


.pg-categories-index .hero-section {
    background: linear-gradient(135deg, #0FB4BA 0%, #4FB3F6 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.pg-categories-index .hero-title {
    font-weight: 800;
    font-size: 3rem;
    margin-bottom: 20px;
}

.pg-categories-index .hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

.pg-categories-index .breadcrumb {
    background: white;
    padding: 20px 0;
    margin-bottom: 0;
}

.pg-categories-index .breadcrumb-item a {
    color: #0FB4BA;
    text-decoration: none;
}

.pg-categories-index .breadcrumb-item.active {
    color: #8B94A7;
}

.pg-categories-index .stats-section {
    background: white;
    padding: 60px 0;
    border-bottom: 1px solid #E8EAF0;
}

.pg-categories-index .stat-card {
    text-align: center;
    padding: 20px;
}

.pg-categories-index .stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #0FB4BA;
    margin-bottom: 8px;
}

.pg-categories-index .stat-label {
    color: #8B94A7;
    font-size: 1rem;
    font-weight: 500;
}

.pg-categories-index .categories-section {
    padding: 80px 0;
    background: #F5F6FA;
}

.pg-categories-index .section-title {
    text-align: center;
    font-weight: 700;
    font-size: 2.5rem;
    color: #1A1F2B;
    margin-bottom: 20px;
}

.pg-categories-index .section-subtitle {
    text-align: center;
    color: #8B94A7;
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto 60px;
}

.pg-categories-index .category-card {
    background: white;
    border-radius: 16px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(26,31,43,0.08);
    transition: all 0.3s;
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.pg-categories-index .category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #0FB4BA, #4FB3F6);
    transform: scaleX(0);
    transition: transform 0.3s;
}

.pg-categories-index .category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(26,31,43,0.12);
    text-decoration: none;
    color: inherit;
}

.pg-categories-index .category-card:hover::before {
    transform: scaleX(1);
}

.pg-categories-index .category-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #0FB4BA 0%, #4FB3F6 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 2rem;
    color: white;
}

.pg-categories-index .category-title {
    font-weight: 700;
    font-size: 1.5rem;
    color: #1A1F2B;
    margin-bottom: 12px;
}

.pg-categories-index .category-description {
    color: #8B94A7;
    font-size: 0.875rem;
    line-height: 1.6;
    margin-bottom: 20px;
    min-height: 48px;
}

.pg-categories-index .category-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-top: auto;
}

.pg-categories-index .provider-count {
    background: rgba(15,180,186,0.1);
    color: #0FB4BA;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.pg-categories-index .featured-count {
    background: rgba(255,184,77,0.1);
    color: #FFB84D;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.pg-categories-index .cta-section {
    background: white;
    padding: 80px 0;
    text-align: center;
}

.pg-categories-index .cta-title {
    font-weight: 700;
    font-size: 2.5rem;
    color: #1A1F2B;
    margin-bottom: 20px;
}

.pg-categories-index .cta-subtitle {
    color: #8B94A7;
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto 40px;
}

.pg-categories-index .btn-primary {
    background: #0FB4BA;
    color: white;
    border: none;
    padding: 16px 40px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s;
}

.pg-categories-index .btn-primary:hover {
    background: #0EA5AC;
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
}

/* ---- category/view.php (was an embedded <style> block; namespaced under .pg-category-view) ---- */


.pg-category-view .breadcrumb {
    background: white;
    padding: 20px 0;
    margin-bottom: 0;
}

.pg-category-view .breadcrumb-item a {
    color: #0FB4BA;
    text-decoration: none;
}

.pg-category-view .breadcrumb-item.active {
    color: #8B94A7;
}

.pg-category-view .search-section {
    background: white;
    padding: 30px 0;
    border-bottom: 1px solid #E8EAF0;
}

.pg-category-view .search-box {
    background: #F5F6FA;
    border: 2px solid #E8EAF0;
    border-radius: 8px;
    padding: 12px 16px;
    width: 100%;
}

.pg-category-view .search-box:focus {
    outline: none;
    border-color: #0FB4BA;
}

.pg-category-view .btn-search {
    background: #0FB4BA;
    color: white;
    border: none;
    padding: 12px 32px;
    border-radius: 8px;
    font-weight: 600;
}

.pg-category-view .results-header {
    background: white;
    padding: 20px 0;
    border-bottom: 1px solid #E8EAF0;
}

.pg-category-view .provider-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(26,31,43,0.08);
    margin-bottom: 20px;
    transition: all 0.3s;
    text-decoration: none;
    color: inherit;
    display: block;
}

.pg-category-view .provider-card:hover {
    box-shadow: 0 12px 32px rgba(26,31,43,0.12);
    transform: translateY(-4px);
}

.pg-category-view .provider-image {
    height: 200px;
    background: linear-gradient(135deg, #0FB4BA 0%, #4FB3F6 100%);
    position: relative;
}

.pg-category-view .provider-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pg-category-view .verified-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #36C88A;
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
}

.pg-category-view .favorite-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    background: white;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.pg-category-view .provider-content {
    padding: 20px;
}

.pg-category-view .provider-title {
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 8px;
    color: #1A1F2B;
}

.pg-category-view .provider-location {
    color: #8B94A7;
    font-size: 0.875rem;
    margin-bottom: 12px;
}

.pg-category-view .provider-rating {
    margin-bottom: 10px;
}

.pg-category-view .star {
    color: #FFB84D;
    font-size: 14px;
}

.pg-category-view .star.empty {
    opacity: 0.25;
}

.pg-category-view .rating-value {
    font-size: 14px;
    color: #1A1F2B;
    font-weight: 600;
    margin-left: 8px;
}

.pg-category-view .rating-count {
    font-size: 14px;
    color: #8B94A7;
}

.pg-category-view .pagination {
    margin-top: 30px;
}

.pg-category-view .page-link {
    color: #0FB4BA;
    border: 1px solid #E8EAF0;
    padding: 10px 16px;
    margin: 0 4px;
    border-radius: 8px;
}

.pg-category-view .page-link:hover {
    background: #0FB4BA;
    color: white;
    border-color: #0FB4BA;
}

.pg-category-view .page-item.active .page-link {
    background: #0FB4BA;
    border-color: #0FB4BA;
    color: white;
}

/* ---- service/service-location.php (was an embedded <style> block; namespaced under .pg-service-location) ---- */


.pg-service-location .breadcrumb {
    background: white;
    padding: 20px 0;
    margin-bottom: 0;
}

.pg-service-location .breadcrumb-item a {
    color: #0FB4BA;
    text-decoration: none;
}

.pg-service-location .breadcrumb-item.active {
    color: #8B94A7;
}

.pg-service-location .hero-section {
    background: linear-gradient(135deg, #0FB4BA 0%, #4FB3F6 100%);
    color: white;
    padding: 60px 0;
}

.pg-service-location .hero-title {
    font-weight: 800;
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.pg-service-location .hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 24px;
}

.pg-service-location .stats-section {
    background: white;
    padding: 40px 0;
    border-bottom: 1px solid #E8EAF0;
}

.pg-service-location .stat-card {
    text-align: center;
    padding: 20px;
}

.pg-service-location .stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: #0FB4BA;
    display: block;
}

.pg-service-location .stat-label {
    color: #8B94A7;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pg-service-location .provider-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(26,31,43,0.08);
    margin-bottom: 24px;
    transition: all 0.3s;
    text-decoration: none;
    color: inherit;
    display: block;
}

.pg-service-location .provider-card:hover {
    box-shadow: 0 12px 32px rgba(26,31,43,0.12);
    transform: translateY(-4px);
}

.pg-service-location .provider-image {
    height: 200px;
    background: linear-gradient(135deg, #0FB4BA 0%, #4FB3F6 100%);
    position: relative;
}

.pg-service-location .provider-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pg-service-location .verified-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #36C88A;
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
}

.pg-service-location .featured-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #FFB84D;
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
}

.pg-service-location .provider-content {
    padding: 24px;
}

.pg-service-location .provider-title {
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 8px;
    color: #1A1F2B;
}

.pg-service-location .provider-location {
    color: #8B94A7;
    font-size: 0.875rem;
    margin-bottom: 12px;
}

.pg-service-location .provider-rating {
    margin-bottom: 16px;
}

.pg-service-location .star {
    color: #FFB84D;
    font-size: 14px;
}

.pg-service-location .star.empty {
    opacity: 0.25;
}

.pg-service-location .rating-value {
    font-size: 14px;
    color: #1A1F2B;
    font-weight: 600;
    margin-left: 8px;
}

.pg-service-location .rating-count {
    font-size: 14px;
    color: #8B94A7;
}

.pg-service-location .provider-services {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.pg-service-location .service-tag {
    background: #F5F6FA;
    color: #30364A;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
}

.pg-service-location .cta-button {
    background: #0FB4BA;
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: background 0.3s;
}

.pg-service-location .cta-button:hover {
    background: #0A9BA1;
    color: white;
    text-decoration: none;
}

.pg-service-location .location-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 12px rgba(26,31,43,0.08);
    margin-bottom: 20px;
    transition: all 0.3s;
    text-decoration: none;
    color: inherit;
}

.pg-service-location .location-card:hover {
    box-shadow: 0 12px 32px rgba(26,31,43,0.12);
    transform: translateY(-2px);
}

.pg-service-location .location-title {
    font-weight: 700;
    font-size: 1.125rem;
    margin-bottom: 8px;
    color: #1A1F2B;
}

.pg-service-location .location-count {
    color: #8B94A7;
    font-size: 0.875rem;
}

.pg-service-location .faq-section {
    background: white;
    padding: 60px 0;
}

.pg-service-location .faq-item {
    background: #F5F6FA;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 16px;
}

.pg-service-location .faq-question {
    font-weight: 700;
    color: #1A1F2B;
    margin-bottom: 12px;
}

.pg-service-location .faq-answer {
    color: #30364A;
    line-height: 1.6;
}

/* ---- search/results.php (was an embedded <style> block; namespaced under .pg-search-results) ---- */

.pg-search-results .hover-shadow {
    transition: all 0.3s ease;
}
.pg-search-results .hover-shadow:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12) !important;
}

.pg-home { background: #F5F6FA; }

/* ---- home/index.php (converted from repeated inline styles; scoped under .pg-home) ---- */
.pg-home .hp-item { padding: 8px 0; }
.pg-home .hp-brand { color: #0FB4BA; }
.pg-home .hp-mb-20 { margin-bottom: 20px; }
.pg-home .hp-item-sm { padding: 4px 0; }
.pg-home .hp-heading { font-weight: 700; color: #1A1F2B; margin-top: 32px; margin-bottom: 16px; }
.pg-home .hp-mb-15 { margin-bottom: 15px; }
.pg-home .hp-card-text { padding: 20px 24px; background: white; color: #30364A; line-height: 1.7; }
.pg-home .hp-m-0 { margin: 0; }
.pg-home .hp-list-gap { list-style: none; padding-left: 0; margin-bottom: 15px; }
.pg-home .hp-acc-tab { background: white; color: #1A1F2B; font-weight: 700; padding: 20px 24px; border: none; box-shadow: none; }
.pg-home .hp-ico-green { color: #36C88A; margin-right: 8px; }
.pg-home .hp-divider { border: none; border-bottom: 1px solid #E8EAF0; }
.pg-home .hp-subhead { color: #1A1F2B; font-weight: 700; margin-bottom: 10px; }
.pg-home .hp-ico-brand { color: #0FB4BA; margin-right: 8px; }
.pg-home .hp-section-alt { padding: 60px 0; background: #F5F6FA; }
.pg-home .hp-row { padding: 12px 0; border-bottom: 1px solid #E8EAF0; }
.pg-home .hp-amber { color: #FFB84D; }
.pg-home .hp-green { color: #36C88A; }
.pg-home .hp-link-plain { text-decoration: none; color: inherit; }
.pg-home .hp-section { padding: 60px 0; background: white; }
.pg-home .hp-list { list-style: none; padding-left: 0; margin: 0; }
.pg-home .hp-title { font-weight: 800; color: #1A1F2B; margin-bottom: 1rem; }
.pg-home .hp-lead { color: #8B94A7; font-size: 1.125rem; }
.pg-home .hp-list-plain { list-style: none; padding-left: 0; }
.pg-home .hp-label { font-weight: 700; color: #1A1F2B; margin-bottom: 4px; }
.pg-home .hp-body-text { color: #30364A; }
.pg-home .hp-box { border: 2px solid #E8EAF0; border-radius: 8px; }

/* ---- provider/show.php (converted from repeated inline styles; scoped under .pv-provider) ---- */
.pv-provider .pv-mb-12 { margin-bottom: 12px; }
.pv-provider .pv-field-label { display: block; font-weight: 600; color: #30364A; margin-bottom: 6px; }
.pv-provider .pv-field-box { border: 2px solid #E8EAF0; border-radius: 8px; }
.pv-provider .pv-ico { width: 20px; color: #2852cf; }
.pv-provider .pv-row { padding: 16px 0; border-bottom: 1px solid #E8EAF0; }
.pv-provider .pv-hint { color: #8B94A7; font-size: 0.875rem; margin-bottom: 4px; }
.pv-provider .pv-mr-8 { margin-right: 8px; }
.pv-provider .pv-heading { font-weight: 700; color: #1A1F2B; margin-bottom: 20px; font-size: 1.5rem; }
.pv-provider .pv-field-label-lg { display: block; font-weight: 600; color: #30364A; margin-bottom: 8px; }
.pv-provider .pv-mb-16 { margin-bottom: 16px; }
.pv-provider .pv-hero-glyph { font-size: 2rem; color: white; opacity: 0.5; }
.pv-provider .pv-text-strong { color: #30364A; font-weight: 600; }
.pv-provider .pv-field-box-pad { border: 2px solid #E8EAF0; border-radius: 8px; padding: 12px; }
.pv-provider .pv-card { background: white; border-radius: 12px; padding: 32px; margin-bottom: 24px; box-shadow: 0 2px 8px rgba(26,31,43,0.06); }
.pv-provider .pv-amber { color: #FFB84D; }
.pv-provider .pv-link-strong { color: #30364A; text-decoration: none; font-weight: 600; }
.pv-provider .pv-brand { color: #2044b6; }
.pv-provider .pv-link { color: #2044b6; text-decoration: none; }
.pv-provider .pv-link-bold { color: #2044b6; text-decoration: none; font-weight: 600; }
