/**
 * Location Real Estate Layout - Template Styles
 * 
 * @package Portal_Innovations
 * @subpackage Location_RE_Layout
 * @version 1.0.1
 * 
 * Purpose: Template-specific styles for Location Real Estate layout
 * Dependencies: None (standalone)
 * Affects: Only pages using location-re-style.php template
 * Isolation: All styles scoped to .page-template-location-re-style
 */

/* CSS Custom Properties for Location RE Layout */
:root {
  /* Primary Brand Colors */
  --loc-re-primary: #4F46E5;
  --loc-re-primary-dark: #3730A3;
  --loc-re-secondary: #10B981;
  
  /* Neutral Colors */
  --loc-re-gray-50: #F9FAFB;
  --loc-re-gray-100: #F3F4F6;
  --loc-re-gray-200: #E5E7EB;
  --loc-re-gray-300: #D1D5DB;
  --loc-re-gray-400: #9CA3AF;
  --loc-re-gray-500: #6B7280;
  --loc-re-gray-600: #4B5563;
  --loc-re-gray-700: #374151;
  --loc-re-gray-800: #1F2937;
  --loc-re-gray-900: #111827;
  
  /* Accent Colors */
  --loc-re-blue-50: #EFF6FF;
  --loc-re-blue-100: #DBEAFE;
  --loc-re-blue-600: #2563EB;
  --loc-re-green-50: #ECFDF5;
  --loc-re-green-100: #D1FAE5;
  
  /* Typography Scale */
  --loc-re-text-xs: 0.75rem;
  --loc-re-text-sm: 0.875rem;
  --loc-re-text-base: 1rem;
  --loc-re-text-lg: 1.125rem;
  --loc-re-text-xl: 1.25rem;
  --loc-re-text-2xl: 1.5rem;
  --loc-re-text-3xl: 1.875rem;
  --loc-re-text-4xl: 2.25rem;
  --loc-re-text-5xl: 3rem;
  --loc-re-text-6xl: 3.75rem;
  
  /* Spacing Scale */
  --loc-re-space-1: 0.25rem;
  --loc-re-space-2: 0.5rem;
  --loc-re-space-3: 0.75rem;
  --loc-re-space-4: 1rem;
  --loc-re-space-5: 1.25rem;
  --loc-re-space-6: 1.5rem;
  --loc-re-space-8: 2rem;
  --loc-re-space-10: 2.5rem;
  --loc-re-space-12: 3rem;
  --loc-re-space-16: 4rem;
  --loc-re-space-20: 5rem;
  
  /* Border Radius */
  --loc-re-radius-sm: 0.125rem;
  --loc-re-radius: 0.25rem;
  --loc-re-radius-md: 0.375rem;
  --loc-re-radius-lg: 0.5rem;
  --loc-re-radius-xl: 0.75rem;
  --loc-re-radius-2xl: 1rem;
  
  /* Shadows */
  --loc-re-shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --loc-re-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --loc-re-shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --loc-re-shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --loc-re-shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  
  /* Transitions */
  --loc-re-transition: all 0.3s ease;
  --loc-re-transition-fast: all 0.15s ease;
}

/* Base Template Scoping - All styles must be within this scope */
.page-template-location-re-style {
  /* Template-specific base styles */
}

/* Container Utilities */
.page-template-location-re-style .loc-re-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--loc-re-space-4);
}

@media (min-width: 768px) {
  .page-template-location-re-style .loc-re-container {
    padding: 0 var(--loc-re-space-6);
  }
}

@media (min-width: 1024px) {
  .page-template-location-re-style .loc-re-container {
    padding: 0 var(--loc-re-space-8);
  }
}

/* Grid Utilities */
.page-template-location-re-style .loc-re-grid {
  display: grid;
  gap: var(--loc-re-space-6);
}

.page-template-location-re-style .loc-re-grid-cols-1 {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

.page-template-location-re-style .loc-re-grid-cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.page-template-location-re-style .loc-re-grid-cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.page-template-location-re-style .loc-re-grid-cols-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* Responsive Grid */
@media (max-width: 767px) {
  .page-template-location-re-style .loc-re-grid-cols-2,
  .page-template-location-re-style .loc-re-grid-cols-3,
  .page-template-location-re-style .loc-re-grid-cols-4 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .page-template-location-re-style .loc-re-grid-cols-3,
  .page-template-location-re-style .loc-re-grid-cols-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Flexbox Utilities */
.page-template-location-re-style .loc-re-flex {
  display: flex;
}

.page-template-location-re-style .loc-re-flex-col {
  flex-direction: column;
}

.page-template-location-re-style .loc-re-items-center {
  align-items: center;
}

.page-template-location-re-style .loc-re-justify-center {
  justify-content: center;
}

.page-template-location-re-style .loc-re-justify-between {
  justify-content: space-between;
}

.page-template-location-re-style .loc-re-gap-4 {
  gap: var(--loc-re-space-4);
}

.page-template-location-re-style .loc-re-gap-6 {
  gap: var(--loc-re-space-6);
}

.page-template-location-re-style .loc-re-gap-8 {
  gap: var(--loc-re-space-8);
}

/* Typography Utilities */
.page-template-location-re-style .loc-re-heading-xl {
  font-size: var(--loc-re-text-5xl);
  line-height: 1.1;
  font-weight: 700;
  color: var(--loc-re-gray-900);
}

.page-template-location-re-style .loc-re-heading-lg {
  font-size: var(--loc-re-text-3xl);
  line-height: 1.2;
  font-weight: 600;
  color: var(--loc-re-gray-900);
}

.page-template-location-re-style .loc-re-heading-md {
  font-size: var(--loc-re-text-2xl);
  line-height: 1.3;
  font-weight: 600;
  color: var(--loc-re-gray-900);
}

.page-template-location-re-style .loc-re-heading-sm {
  font-size: var(--loc-re-text-xl);
  line-height: 1.4;
  font-weight: 600;
  color: var(--loc-re-gray-900);
}

.page-template-location-re-style .loc-re-body-lg {
  font-size: var(--loc-re-text-lg);
  line-height: 1.6;
  color: var(--loc-re-gray-700);
}

.page-template-location-re-style .loc-re-body {
  font-size: var(--loc-re-text-base);
  line-height: 1.6;
  color: var(--loc-re-gray-700);
}

.page-template-location-re-style .loc-re-body-sm {
  font-size: var(--loc-re-text-sm);
  line-height: 1.5;
  color: var(--loc-re-gray-600);
}

.page-template-location-re-style .loc-re-text-center {
  text-align: center;
}

/* Button Utilities */
.page-template-location-re-style .loc-re-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--loc-re-space-3) var(--loc-re-space-6);
  border-radius: var(--loc-re-radius-lg);
  font-size: var(--loc-re-text-base);
  font-weight: 600;
  text-decoration: none;
  transition: var(--loc-re-transition);
  cursor: pointer;
  border: none;
  min-height: 44px; /* Touch-friendly */
}

.page-template-location-re-style .loc-re-btn-primary {
  background-color: var(--loc-re-primary);
  color: white;
}

.page-template-location-re-style .loc-re-btn-primary:hover {
  background-color: var(--loc-re-primary-dark);
  transform: translateY(-1px);
  box-shadow: var(--loc-re-shadow-md);
}

.page-template-location-re-style .loc-re-btn-secondary {
  background-color: rgba(255, 255, 255, 0.9);
  color: var(--loc-re-gray-900);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-template-location-re-style .loc-re-btn-secondary:hover {
  background-color: white;
  transform: translateY(-1px);
  box-shadow: var(--loc-re-shadow-md);
}

.page-template-location-re-style .loc-re-btn-large {
  padding: var(--loc-re-space-4) var(--loc-re-space-8);
  font-size: var(--loc-re-text-lg);
}

/* Card Utilities */
.page-template-location-re-style .loc-re-card {
  background: white;
  border-radius: var(--loc-re-radius-xl);
  box-shadow: var(--loc-re-shadow);
  overflow: hidden;
  transition: var(--loc-re-transition);
}

.page-template-location-re-style .loc-re-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--loc-re-shadow-lg);
}

.page-template-location-re-style .loc-re-card-content {
  padding: var(--loc-re-space-6);
}

/* Section Utilities */
.page-template-location-re-style .loc-re-section {
  padding: var(--loc-re-space-16) 0;
}

.page-template-location-re-style .loc-re-section-sm {
  padding: var(--loc-re-space-12) 0;
}

.page-template-location-re-style .loc-re-section-lg {
  padding: var(--loc-re-space-20) 0;
}

/* Background Utilities */
.page-template-location-re-style .loc-re-bg-gray-50 {
  background-color: var(--loc-re-gray-50);
}

.page-template-location-re-style .loc-re-bg-white {
  background-color: white;
}

/* Responsive Typography */
@media (max-width: 767px) {
  .page-template-location-re-style .loc-re-heading-xl {
    font-size: var(--loc-re-text-4xl);
  }
  
  .page-template-location-re-style .loc-re-heading-lg {
    font-size: var(--loc-re-text-2xl);
  }
  
  .page-template-location-re-style .loc-re-section {
    padding: var(--loc-re-space-12) 0;
  }
  
  .page-template-location-re-style .loc-re-section-lg {
    padding: var(--loc-re-space-16) 0;
  }
}

/* Animation Utilities */
.page-template-location-re-style .loc-re-fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.page-template-location-re-style .loc-re-fade-in.loc-re-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Accessibility Utilities */
.page-template-location-re-style .loc-re-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.page-template-location-re-style .loc-re-focus-visible:focus-visible {
  outline: 2px solid var(--loc-re-primary);
  outline-offset: 2px;
}

/* Print Styles */
@media print {
  .page-template-location-re-style .loc-re-btn,
  .page-template-location-re-style .loc-re-interactive {
    display: none;
  }
}

body.page-template-page-location-re a.wp-block-button__link,
body.page-template-page-location-re .wp-block-button:not(.is-style-outline):not(.is-style-link) .wp-block-button__link {
  background: #007bff;
  color: white;
  border: none;
  margin: 0 0.5rem;
  padding: 12px 24px;
  border-radius: 5px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  text-align: center;
  vertical-align: middle;
}

