/* ===================================================================
   Centralized Responsive System + Design System (MERGED)
   ===================================================================
   This file contains BOTH the design system tokens AND responsive
   enhancements in a single file to avoid @import issues.
   =================================================================== */

:root {
    /* =================================================================
       Brand Color Palette
       ================================================================= */
    
    /* Primary Colors - Blue */
    --color-primary: #004AAD;              /* Main brand blue */
    --color-primary-dark: #00388A;        /* Darker blue for hover states */
    --color-primary-light: #0056CC;       /* Lighter blue for highlights */
    --color-primary-lighter: #E6EFF9;     /* Very light blue for backgrounds */
    
    /* Secondary Colors - Orange/Yellow */
    --color-secondary: #FFA51F;           /* Main brand orange */
    --color-secondary-dark: #E6940C;      /* Darker orange for hover */
    --color-secondary-light: #FFB84D;     /* Lighter orange for highlights */
    --color-secondary-lighter: #FFF4E6;  /* Very light orange for backgrounds */
    
    /* Accent Colors - Derived from brand palette */
    --color-accent-teal: #00B8C4;         /* Complementary teal */
    --color-accent-teal-light: #E0F7F9;   /* Light teal background */
    --color-accent-purple: #6B46C1;       /* Complementary purple */
    --color-accent-purple-light: #EDE9FE; /* Light purple background */
    
    /* Neutral Colors */
    --color-white: #FFFFFF;
    --color-black: #000000;
    --color-gray-50: #F9FAFB;
    --color-gray-100: #F3F4F6;
    --color-gray-200: #E5E7EB;
    --color-gray-300: #D1D5DB;
    --color-gray-400: #9CA3AF;
    --color-gray-500: #6B7280;
    --color-gray-600: #4B5563;
    --color-gray-700: #374151;
    --color-gray-800: #1F2937;
    --color-gray-900: #111827;
    
    /* Semantic Colors */
    --color-success: #10B981;             /* Green for success states */
    --color-success-dark: #059669;        /* Darker green for hover */
    --color-success-light: #D1FAE5;       /* Light green background */
    --color-warning: #F59E0B;             /* Amber for warnings */
    --color-warning-light: #FEF3C7;       /* Light amber background */
    --color-error: #EF4444;                /* Red for errors */
    --color-error-dark: #B91C1C;          /* Darker red for hover */
    --color-error-light: #FEE2E2;          /* Light red background */
    --color-info: #3B82F6;                /* Blue for info */
    --color-info-light: #DBEAFE;           /* Light blue background */
    
    /* Background Colors */
    --color-bg-primary: var(--color-white);
    --color-bg-secondary: var(--color-gray-50);
    --color-bg-tertiary: var(--color-gray-100);
    --color-bg-overlay: rgba(0, 0, 0, 0.5);
    
    /* Text Colors */
    --color-text-primary: var(--color-gray-900);
    --color-text-secondary: var(--color-gray-600);
    --color-text-tertiary: var(--color-gray-500);
    --color-text-muted: var(--color-gray-400);
    --color-text-inverse: var(--color-white);
    --color-text-link: var(--color-primary);
    --color-text-link-hover: var(--color-primary-dark);
    
    /* Border Colors */
    --color-border-light: var(--color-gray-200);
    --color-border-medium: var(--color-gray-300);
    --color-border-dark: var(--color-gray-400);
    --color-border-primary: var(--color-primary);
    --color-border-secondary: var(--color-secondary);
    
    /* =================================================================
       Typography System
       ================================================================= */
    
    /* Font Families */
    --font-family-primary: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Roboto', sans-serif;
    --font-family-heading: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Roboto', sans-serif;
    --font-family-mono: 'Courier New', Courier, monospace;
    
    /* Font Sizes - Responsive Typography Scale */
    --font-size-xs: clamp(0.4375rem, 1vw, 0.5rem);         /* 7px - 8px */
    --font-size-sm: clamp(0.5rem, 1.2vw, 0.625rem);       /* 8px - 10px */
    --font-size-base: clamp(0.625rem, 1.4vw, 0.75rem);     /* 10px - 12px */
    --font-size-md: clamp(0.6875rem, 1.6vw, 0.875rem);    /* 11px - 14px */
    --font-size-lg: clamp(0.75rem, 1.8vw, 1rem);          /* 12px - 16px */
    --font-size-xl: clamp(0.875rem, 2vw, 1.125rem);       /* 14px - 18px */
    --font-size-2xl: clamp(1rem, 2.4vw, 1.375rem);       /* 16px - 22px */
    --font-size-3xl: clamp(1.125rem, 2.8vw, 1.625rem);    /* 18px - 26px */
    --font-size-4xl: clamp(1.375rem, 3.2vw, 1.875rem);     /* 22px - 30px */
    --font-size-5xl: clamp(1.625rem, 3.6vw, 2.25rem);     /* 26px - 36px */
    --font-size-6xl: clamp(1.875rem, 4vw, 2.75rem);       /* 30px - 44px */
    
    /* Font Weights */
    --font-weight-light: 300;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --font-weight-extrabold: 800;
    
    /* Line Heights */
    --line-height-tight: 1.25;
    --line-height-snug: 1.375;
    --line-height-normal: 1.5;
    --line-height-relaxed: 1.625;
    --line-height-loose: 2;
    
    /* Letter Spacing */
    --letter-spacing-tighter: -0.05em;
    --letter-spacing-tight: -0.025em;
    --letter-spacing-normal: 0;
    --letter-spacing-wide: 0.025em;
    --letter-spacing-wider: 0.05em;
    --letter-spacing-widest: 0.1em;
    
    /* Typography Roles */
    --font-title-h1: var(--font-size-5xl);
    --font-title-h2: var(--font-size-4xl);
    --font-title-h3: var(--font-size-3xl);
    --font-title-h4: var(--font-size-2xl);
    --font-title-h5: var(--font-size-xl);
    --font-title-h6: var(--font-size-lg);
    --font-subtitle: var(--font-size-lg);
    --font-body: var(--font-size-base);
    --font-body-small: var(--font-size-sm);
    --font-caption: var(--font-size-xs);
    
    /* Property Listing Typography - Component-specific tokens */
    --font-property-title: clamp(1rem, 2vw, 1.25rem);        /* Increased by 2 units from base */
    --font-property-price: clamp(0.5rem, 2.4vw, 0.875rem);    /* Decreased by 1 unit from base */
    
    /* Feature Card Typography - Component-specific tokens */
    --font-feature-title: clamp(0.25rem, 2vw, 0.625rem);    /* Reduced by 2 MORE units - EXTREMELY SMALL FOR VERIFICATION */
    
    --font-weight-title: var(--font-weight-bold);
    --font-weight-subtitle: var(--font-weight-medium);
    --font-weight-body: var(--font-weight-normal);
    
    /* =================================================================
       Spacing System
       ================================================================= */
    
    --spacing-xs: clamp(0.125rem, 0.7vw, 0.1875rem);       /* 2px - 3px */
    --spacing-sm: clamp(0.1875rem, 1vw, 0.375rem);         /* 3px - 6px */
    --spacing-md: clamp(0.375rem, 1.4vw, 0.625rem);        /* 6px - 10px */
    --spacing-lg: clamp(0.5rem, 1.8vw, 1rem);              /* 8px - 16px */
    --spacing-xl: clamp(0.75rem, 2.2vw, 1.5rem);           /* 12px - 24px */
    --spacing-2xl: clamp(1rem, 2.8vw, 2rem);               /* 16px - 32px */
    --spacing-3xl: clamp(1.5rem, 3.6vw, 3rem);             /* 24px - 48px */
    --spacing-4xl: clamp(2rem, 4.5vw, 4rem);               /* 32px - 64px */
    
    /* =================================================================
       Component Tokens - Buttons
       ================================================================= */
    
    /* Button Sizes */
    --btn-padding-x-sm: var(--spacing-sm);
    --btn-padding-y-sm: var(--spacing-xs);
    --btn-padding-x-md: var(--spacing-md);
    --btn-padding-y-md: var(--spacing-sm);
    --btn-padding-x-lg: var(--spacing-lg);
    --btn-padding-y-lg: var(--spacing-md);
    --btn-padding-x-xl: var(--spacing-xl);
    --btn-padding-y-xl: var(--spacing-lg);
    
    --btn-font-size-sm: var(--font-size-sm);
    --btn-font-size-md: var(--font-size-base);
    --btn-font-size-lg: var(--font-size-lg);
    
    --btn-height-sm: 1.75rem;    /* 28px */
    --btn-height-md: 2rem;       /* 32px */
    --btn-height-lg: 2.5rem;      /* 40px */
    
    --btn-border-radius: var(--radius-md);
    --btn-font-weight: var(--font-weight-semibold);
    --btn-transition: all 0.2s ease;
    
    /* Button Variants */
    --btn-primary-bg: var(--color-primary);
    --btn-primary-color: var(--color-white);
    --btn-primary-hover-bg: var(--color-primary-dark);
    --btn-primary-active-bg: var(--color-primary-dark);
    
    --btn-secondary-bg: var(--color-secondary);
    --btn-secondary-color: var(--color-white);
    --btn-secondary-hover-bg: var(--color-secondary-dark);
    --btn-secondary-active-bg: var(--color-secondary-dark);
    
    --btn-outline-border: 2px solid var(--color-primary);
    --btn-outline-color: var(--color-primary);
    --btn-outline-bg: transparent;
    --btn-outline-hover-bg: var(--color-primary);
    --btn-outline-hover-color: var(--color-white);
    
    --btn-ghost-color: var(--color-primary);
    --btn-ghost-bg: transparent;
    --btn-ghost-hover-bg: var(--color-primary-lighter);
    
    /* =================================================================
       Component Tokens - Inputs & Forms
       ================================================================= */
    
    --input-padding-x: var(--spacing-md);
    --input-padding-y: var(--spacing-sm);
    --input-font-size: var(--font-size-base);
    --input-height: 2rem;        /* 32px */
    --input-border-width: 1px;
    --input-border-color: var(--color-border-light);
    --input-border-radius: var(--radius-md);
    --input-bg: var(--color-white);
    --input-color: var(--color-text-primary);
    --input-placeholder-color: var(--color-text-muted);
    --input-focus-border-color: var(--color-primary);
    --input-focus-shadow: 0 0 0 3px rgba(0, 74, 173, 0.1);
    --input-error-border-color: var(--color-error);
    --input-disabled-bg: var(--color-gray-100);
    --input-disabled-color: var(--color-text-muted);
    
    /* =================================================================
       Component Tokens - Cards
       ================================================================= */
    
    --card-padding: var(--spacing-md);
    --card-padding-sm: var(--spacing-sm);
    --card-padding-lg: var(--spacing-lg);
    --card-bg: var(--color-white);
    --card-border-radius: var(--radius-lg);
    --card-border: 1px solid var(--color-border-light);
    --card-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    --card-shadow-hover: 0 4px 6px rgba(0, 0, 0, 0.1);
    --card-shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
    
    /* =================================================================
       Component Tokens - Badges & Tags
       ================================================================= */
    
    --badge-padding-x: var(--spacing-sm);
    --badge-padding-y: var(--spacing-xs);
    --badge-font-size: var(--font-size-xs);
    --badge-font-weight: var(--font-weight-semibold);
    --badge-border-radius: var(--radius-sm);
    
    /* =================================================================
       Shadows
       ================================================================= */
    
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.2);
    --shadow-2xl: 0 25px 50px rgba(0, 0, 0, 0.25);
    --shadow-inner: inset 0 2px 4px rgba(0, 0, 0, 0.06);
    
    --shadow-primary: 0 4px 14px rgba(0, 74, 173, 0.2);
    --shadow-secondary: 0 4px 14px rgba(255, 165, 31, 0.2);
    --shadow-btn-primary: 0 4px 12px rgba(0, 74, 173, 0.4);
    --shadow-btn-primary-strong: 0 6px 20px rgba(0, 74, 173, 0.5);
    --shadow-btn-secondary: 0 4px 12px rgba(255, 165, 31, 0.4);
    --shadow-btn-secondary-strong: 0 6px 20px rgba(255, 165, 31, 0.5);
    --shadow-hero-input: 0 10px 24px rgba(15, 23, 42, 0.08);
    --shadow-hero-input-focus: 0 0 0 3px rgba(0, 74, 173, 0.15);
    
    /* =================================================================
       Glass Surface Tokens
       ================================================================= */
    
    --surface-glass-bg: rgba(255, 255, 255, 0.18);
    --surface-glass-border: rgba(255, 255, 255, 0.15);
    --surface-glass-blur: 10px;
    --surface-glass-input-bg: rgba(255, 255, 255, 0.85);
    --surface-glass-input-border: rgba(255, 255, 255, 0.65);
    --surface-glass-input-radius: var(--radius-2xl);
    
    /* =================================================================
       Border Radius
       ================================================================= */
    
    --radius-none: 0;
    --radius-xs: clamp(0.125rem, 0.4vw, 0.125rem);   /* 2px (responsive) */
    --radius-sm: clamp(0.25rem, 0.6vw, 0.25rem);     /* 4px (responsive) */
    --radius-md: clamp(0.375rem, 0.8vw, 0.5rem);     /* 6px - 8px (responsive) */
    --radius-lg: clamp(0.5rem, 1vw, 0.75rem);        /* 8px - 12px (responsive) */
    --radius-xl: clamp(0.75rem, 1.4vw, 1rem);         /* 12px - 16px (responsive) */
    --radius-2xl: clamp(1rem, 1.8vw, 1.5rem);       /* 16px - 24px (responsive) */
    --radius-full: 9999px;
    
    /* =================================================================
       Transitions & Animations
       ================================================================= */
    
    --transition-fast: 0.15s ease;
    --transition-base: 0.2s ease;
    --transition-slow: 0.3s ease;
    --transition-all: all var(--transition-base);
    
    /* =================================================================
       Z-Index Scale
       ================================================================= */
    
    --z-index-base: 0;
    --z-index-dropdown: 1000;
    --z-index-sticky: 1020;
    --z-index-fixed: 1030;
    --z-index-modal-backdrop: 1040;
    --z-index-modal: 1050;
    --z-index-popover: 1060;
    --z-index-tooltip: 1070;
    
    /* =================================================================
       Layout Tokens
       ================================================================= */
    
    --container-sm: 640px;
    --container-md: 768px;
    --container-lg: 1024px;
    --container-xl: 1280px;
    --container-2xl: 1400px;
    
    --sidebar-width: 280px;
    --header-height: 64px;
    
    /* =================================================================
       Icon Sizes - Responsive
       ================================================================= */
    
    --icon-xs: clamp(0.375rem, 0.9vw, 0.5rem);      /* 6px - 8px (responsive) */
    --icon-sm: clamp(0.5rem, 1.2vw, 0.625rem);      /* 8px - 10px (responsive) */
    --icon-md: clamp(0.5625rem, 1.5vw, 0.75rem);    /* 9px - 12px (responsive) */
    --icon-lg: clamp(0.625rem, 1.8vw, 0.875rem);    /* 10px - 14px (responsive) */
    --icon-xl: clamp(0.75rem, 2.2vw, 1rem);         /* 12px - 16px (responsive) */
    --icon-2xl: clamp(0.875rem, 2.6vw, 1.375rem);   /* 14px - 22px (responsive) */
    --icon-3xl: clamp(1rem, 3vw, 1.75rem);          /* 16px - 28px (responsive) */
    
    /* =================================================================
       Breakpoint Variables
       ================================================================= */
    
    --bp-mobile-max: 479px;
    --bp-tablet-min: 480px;
    --bp-tablet-max: 767px;
    --bp-desktop-min: 768px;
    --bp-desktop-max: 1023px;
    --bp-large-desktop-min: 1024px;
    
    /* Container max widths */
    --container-mobile: 100%;
    --container-tablet: 100%;
    --container-desktop: 1200px;
    --container-large-desktop: 1400px;
    
    /* Sidebar width - responsive */
    --sidebar-width-mobile: clamp(226px, 84vw, 266px);
    --sidebar-width-desktop: clamp(246px, 17vw, 266px);
    
    /* Header height */
    --header-height-mobile: clamp(2.625rem, 7.5vw, 3.625rem);
    --header-height-desktop: clamp(3.125rem, 5.5vw, 3.625rem);
    
    /* Border width */
    --border-width: 1px;
}

/* =================================================================
   Typography Utility Classes
   ================================================================= */

.text-h1 { font-size: var(--font-title-h1); font-weight: var(--font-weight-title); line-height: var(--line-height-tight); }
.text-h2 { font-size: var(--font-title-h2); font-weight: var(--font-weight-title); line-height: var(--line-height-tight); }
.text-h3 { font-size: var(--font-title-h3); font-weight: var(--font-weight-title); line-height: var(--line-height-snug); }
.text-h4 { font-size: var(--font-title-h4); font-weight: var(--font-weight-title); line-height: var(--line-height-snug); }
.text-h5 { font-size: var(--font-title-h5); font-weight: var(--font-weight-title); line-height: var(--line-height-normal); }
.text-h6 { font-size: var(--font-title-h6); font-weight: var(--font-weight-title); line-height: var(--line-height-normal); }
.text-subtitle { font-size: var(--font-subtitle); font-weight: var(--font-weight-subtitle); line-height: var(--line-height-normal); }
.text-body { font-size: var(--font-body); font-weight: var(--font-weight-body); line-height: var(--line-height-relaxed); }
.text-body-small { font-size: var(--font-body-small); font-weight: var(--font-weight-body); line-height: var(--line-height-normal); }
.text-caption { font-size: var(--font-caption); font-weight: var(--font-weight-body); line-height: var(--line-height-normal); }

/* =================================================================
   Color Utility Classes
   ================================================================= */

.text-primary { color: var(--color-primary); }
.text-secondary { color: var(--color-secondary); }
.text-success { color: var(--color-success); }
.text-warning { color: var(--color-warning); }
.text-error { color: var(--color-error); }
.text-info { color: var(--color-info); }
.text-muted { color: var(--color-text-muted); }
.text-inverse { color: var(--color-text-inverse); }

.bg-primary { background-color: var(--color-primary); }
.bg-secondary { background-color: var(--color-secondary); }
.bg-success { background-color: var(--color-success); }
.bg-warning { background-color: var(--color-warning); }
.bg-error { background-color: var(--color-error); }
.bg-info { background-color: var(--color-info); }

/* =================================================================
   Button Component Classes
   ================================================================= */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
    font-family: var(--font-family-primary);
    font-weight: var(--btn-font-weight);
    border: none;
    border-radius: var(--btn-border-radius);
    cursor: pointer;
    transition: var(--btn-transition);
    text-decoration: none;
    white-space: nowrap;
}

.btn-sm {
    padding: var(--btn-padding-y-sm) var(--btn-padding-x-sm);
    font-size: var(--btn-font-size-sm);
    height: var(--btn-height-sm);
}

.btn-md {
    padding: var(--btn-padding-y-md) var(--btn-padding-x-md);
    font-size: var(--btn-font-size-md);
    height: var(--btn-height-md);
}

.btn-lg {
    padding: var(--btn-padding-y-lg) var(--btn-padding-x-lg);
    font-size: var(--btn-font-size-lg);
    height: var(--btn-height-lg);
}

.btn-primary {
    background-color: var(--btn-primary-bg);
    color: var(--btn-primary-color);
}

.btn-primary:hover {
    background-color: var(--btn-primary-hover-bg);
    transform: translateY(-1px);
    box-shadow: var(--shadow-primary);
}

.btn-secondary {
    background-color: var(--btn-secondary-bg);
    color: var(--btn-secondary-color);
}

.btn-secondary:hover {
    background-color: var(--btn-secondary-hover-bg);
    transform: translateY(-1px);
    box-shadow: var(--shadow-secondary);
}

.btn-outline {
    background-color: var(--btn-outline-bg);
    color: var(--btn-outline-color);
    border: var(--btn-outline-border);
}

.btn-outline:hover {
    background-color: var(--btn-outline-hover-bg);
    color: var(--btn-outline-hover-color);
}

.btn-ghost {
    background-color: var(--btn-ghost-bg);
    color: var(--btn-ghost-color);
}

.btn-ghost:hover {
    background-color: var(--btn-ghost-hover-bg);
}

.btn-full {
    border-radius: var(--radius-full);
}

.btn-gradient {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: var(--color-text-inverse);
}

.btn-gradient:hover {
    background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
    transform: translateY(-1px);
    box-shadow: var(--shadow-primary);
}

.btn-error {
    background-color: var(--color-error);
    color: var(--color-text-inverse);
}

.btn-error:hover {
    background-color: var(--color-error-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(220, 53, 69, 0.2);
}

.btn-success {
    background-color: var(--color-success);
    color: var(--color-text-inverse);
}

.btn-success:hover {
    background-color: var(--color-success-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.2);
}

/* =================================================================
   Card Component Classes
   ================================================================= */

.card {
    background-color: var(--card-bg);
    border: var(--card-border);
    border-radius: var(--card-border-radius);
    box-shadow: var(--card-shadow);
    padding: var(--card-padding);
    transition: var(--transition-all);
}

.card-sm { padding: var(--card-padding-sm); }
.card-lg { padding: var(--card-padding-lg); }

.card:hover {
    box-shadow: var(--card-shadow-hover);
    transform: translateY(-2px);
}

/* =================================================================
   Input Component Classes
   ================================================================= */

.input {
    width: 100%;
    padding: var(--input-padding-y) var(--input-padding-x);
    font-size: var(--input-font-size);
    font-family: var(--font-family-primary);
    height: var(--input-height);
    border: var(--input-border-width) solid var(--input-border-color);
    border-radius: var(--input-border-radius);
    background-color: var(--input-bg);
    color: var(--input-color);
    transition: var(--transition-all);
}

.input:focus {
    outline: none;
    border-color: var(--input-focus-border-color);
    box-shadow: var(--input-focus-shadow);
}

.input::placeholder {
    color: var(--input-placeholder-color);
}

.input:disabled {
    background-color: var(--input-disabled-bg);
    color: var(--input-disabled-color);
    cursor: not-allowed;
}

.input-error {
    border-color: var(--input-error-border-color);
}

/* =================================================================
   Badge Component Classes
   ================================================================= */

.badge {
    display: inline-flex;
    align-items: center;
    padding: var(--badge-padding-y) var(--badge-padding-x);
    font-size: var(--badge-font-size);
    font-weight: var(--badge-font-weight);
    border-radius: var(--badge-border-radius);
    white-space: nowrap;
}

.badge-primary {
    background-color: var(--color-primary-lighter);
    color: var(--color-primary);
}

.badge-secondary {
    background-color: var(--color-secondary-lighter);
    color: var(--color-secondary-dark);
}

.badge-success {
    background-color: var(--color-success-light);
    color: var(--color-success);
}

.badge-warning {
    background-color: var(--color-warning-light);
    color: var(--color-warning);
}

.badge-error {
    background-color: var(--color-error-light);
    color: var(--color-error);
}

/* -------------------------------------------------------------------
   Mobile First - Base Styles (Mobile: < 480px)
   ------------------------------------------------------------------- */
/* Base styles are mobile-first by default */

/* -------------------------------------------------------------------
   Tablet Styles (480px - 767px)
   ------------------------------------------------------------------- */
@media (min-width: 480px) and (max-width: 767px) {
    /* Tablet-specific overrides */
}

/* -------------------------------------------------------------------
   Desktop Styles (768px - 1023px)
   ------------------------------------------------------------------- */
@media (min-width: 768px) and (max-width: 1023px) {
    /* Desktop-specific overrides */
}

/* -------------------------------------------------------------------
   Large Desktop Styles (>= 1024px)
   ------------------------------------------------------------------- */
@media (min-width: 1024px) {
    /* Large desktop-specific overrides */
}

/* -------------------------------------------------------------------
   Utility Classes for Responsive Behavior
   ------------------------------------------------------------------- */

/* Hide on mobile, show on tablet+ */
.hide-mobile {
    display: none;
}

@media (min-width: 480px) {
    .hide-mobile {
        display: block;
    }
    
    .hide-mobile.inline {
        display: inline;
    }
    
    .hide-mobile.inline-block {
        display: inline-block;
    }
    
    .hide-mobile.flex {
        display: flex;
    }
    
    .hide-mobile.grid {
        display: grid;
    }
}

/* Hide on tablet, show on mobile and desktop+ */
.hide-tablet {
    display: block;
}

@media (min-width: 480px) and (max-width: 767px) {
    .hide-tablet {
        display: none !important;
    }
}

/* Show only on mobile */
.show-mobile-only {
    display: block;
}

@media (min-width: 480px) {
    .show-mobile-only {
        display: none !important;
    }
}

/* Show only on tablet */
.show-tablet-only {
    display: none;
}

@media (min-width: 480px) and (max-width: 767px) {
    .show-tablet-only {
        display: block;
    }
    
    .show-tablet-only.inline {
        display: inline;
    }
    
    .show-tablet-only.flex {
        display: flex;
    }
    
    .show-tablet-only.grid {
        display: grid;
    }
}

/* Responsive containers */
.container-responsive {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--spacing-md);
    padding-right: var(--spacing-md);
}

@media (min-width: 768px) {
    .container-responsive {
        max-width: var(--container-desktop);
        padding-left: var(--spacing-lg);
        padding-right: var(--spacing-lg);
    }
}

@media (min-width: 1024px) {
    .container-responsive {
        max-width: var(--container-large-desktop);
        padding-left: var(--spacing-xl);
        padding-right: var(--spacing-xl);
    }
}

/* Responsive grid */
.grid-responsive {
    display: grid;
    gap: var(--spacing-md);
    grid-template-columns: 1fr;
}

@media (min-width: 480px) {
    .grid-responsive {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-lg);
    }
}

@media (min-width: 768px) {
    .grid-responsive {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .grid-responsive {
        grid-template-columns: repeat(4, 1fr);
        gap: var(--spacing-xl);
    }
}

/* Responsive flex */
.flex-responsive {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

@media (min-width: 768px) {
    .flex-responsive {
        flex-direction: row;
        gap: var(--spacing-lg);
    }
}

/* Responsive text alignment */
.text-center-mobile {
    text-align: center;
}

@media (min-width: 768px) {
    .text-center-mobile {
        text-align: left;
    }
}

/* Responsive padding utilities */
.p-responsive {
    padding: var(--spacing-md);
}

@media (min-width: 768px) {
    .p-responsive {
        padding: var(--spacing-lg);
    }
}

@media (min-width: 1024px) {
    .p-responsive {
        padding: var(--spacing-xl);
    }
}

/* Responsive margin utilities */
.m-responsive {
    margin: var(--spacing-md);
}

@media (min-width: 768px) {
    .m-responsive {
        margin: var(--spacing-lg);
    }
}

@media (min-width: 1024px) {
    .m-responsive {
        margin: var(--spacing-xl);
    }
}

/* -------------------------------------------------------------------
   Common Responsive Patterns
   ------------------------------------------------------------------- */

/* Responsive images */
img.responsive {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Responsive tables */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

@media (max-width: 767px) {
    .table-responsive table {
        min-width: 600px;
    }
}

/* Responsive navigation */
.nav-responsive {
    flex-direction: column;
    gap: var(--spacing-sm);
}

@media (min-width: 768px) {
    .nav-responsive {
        flex-direction: row;
        gap: var(--spacing-md);
    }
}

/* Responsive buttons */
.btn-responsive {
    width: 100%;
    padding: var(--spacing-sm) var(--spacing-md);
    font-size: var(--font-size-base);
}

@media (min-width: 480px) {
    .btn-responsive {
        width: auto;
        padding: var(--spacing-sm) var(--spacing-lg);
    }
}

/* Responsive cards */
.card-responsive {
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

@media (min-width: 768px) {
    .card-responsive {
        padding: var(--spacing-lg);
        margin-bottom: var(--spacing-lg);
    }
}


/* -------------------------------------------------------------------
   Print Styles
   ------------------------------------------------------------------- */
@media print {
    .hide-print {
        display: none !important;
    }
    
    .show-print {
        display: block !important;
    }
    
    * {
        background: white !important;
        color: black !important;
        box-shadow: none !important;
    }
}
