/* ==========================================================================
   HireYork.trade - Master Design System & Stylesheet
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
  --primary: #0c1a2c;
  --primary-dark: #070f1a;
  --primary-light: #152740;
  --primary-surface: #1e3352;
  
  --accent: #e69500;
  --accent-light: #f59e0b;
  --accent-hover: #d97706;
  --accent-soft: rgba(230, 149, 0, 0.12);
  --accent-glow: rgba(245, 158, 11, 0.35);

  --secondary: #0284c7;
  --secondary-soft: rgba(2, 132, 199, 0.12);

  --success: #10b981;
  --success-soft: rgba(16, 185, 129, 0.12);
  --danger: #ef4444;
  --danger-soft: rgba(239, 68, 68, 0.12);

  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-alt: #f1f5f9;
  --border: #e2e8f0;
  --border-light: #edf2f7;

  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --text-inverse: #ffffff;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.04);

  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

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

body {
  font-family: var(--font-body);
  background-color: var(--bg);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-main);
  font-weight: 700;
  line-height: 1.25;
}

a {
  color: var(--secondary);
  text-decoration: none;
  transition: all 0.2s ease;
}

a:hover {
  color: var(--accent-hover);
}

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

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.container-narrow {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Utility Badges & Tags */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.badge-verified {
  background-color: var(--success-soft);
  color: #047857;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.badge-emergency {
  background-color: var(--danger-soft);
  color: #b91c1c;
  border: 1px solid rgba(239, 68, 68, 0.25);
  animation: pulse-border 2s infinite;
}

.badge-gold {
  background-color: var(--accent-soft);
  color: #b45309;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-postcode {
  background-color: var(--surface-alt);
  color: var(--primary);
  border: 1px solid var(--border);
  font-weight: 700;
  font-family: var(--font-heading);
}

@keyframes pulse-border {
  0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4); }
  50% { box-shadow: 0 0 0 4px rgba(239, 68, 68, 0); }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.35rem;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
  color: #ffffff;
  box-shadow: 0 4px 12px var(--accent-glow);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--accent-light) 0%, var(--accent) 100%);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px var(--accent-glow);
}

.btn-dark {
  background-color: var(--primary);
  color: #ffffff;
}

.btn-dark:hover {
  background-color: var(--primary-light);
  color: #ffffff;
}

.btn-outline {
  background-color: transparent;
  border-color: var(--border);
  color: var(--text-main);
}

.btn-outline:hover {
  background-color: var(--surface-alt);
  border-color: var(--text-muted);
}

.btn-sm {
  padding: 0.4rem 0.85rem;
  font-size: 0.825rem;
}

.btn-lg {
  padding: 0.85rem 1.75rem;
  font-size: 1.05rem;
  border-radius: var(--radius-lg);
}

/* ==========================================================================
   Header & Top Navigation
   ========================================================================== */
.site-header {
  background-color: var(--primary);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-md);
}

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

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
}

.brand-icon {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--accent) 0%, #b45309 100%);
  color: #ffffff;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  box-shadow: 0 3px 8px var(--accent-glow);
}

.brand-text {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.brand-text span {
  color: var(--accent);
}

.brand-sub {
  display: block;
  font-size: 0.675rem;
  font-weight: 500;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: -3px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
}

.nav-link {
  color: #cbd5e1;
  font-weight: 500;
  font-size: 0.925rem;
  transition: color 0.2s;
}

.nav-link:hover, .nav-link.active {
  color: var(--accent);
}

.city-pill-dropdown {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.1);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.15);
  cursor: pointer;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  background: radial-gradient(circle at 80% 20%, #1e3352 0%, var(--primary) 70%);
  color: #ffffff;
  padding: 4.5rem 0 4rem;
  position: relative;
  overflow: visible;
  z-index: 20;
}

.hero-content {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 25;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(230, 149, 0, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: var(--accent-light);
  padding: 0.35rem 0.95rem;
  border-radius: var(--radius-full);
  font-size: 0.825rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.hero-title {
  font-size: 2.75rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

.hero-title span {
  background: linear-gradient(90deg, #fbbf24, #f59e0b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: #94a3b8;
  margin-bottom: 2rem;
  line-height: 1.5;
}

/* Hero Live Search Box */
.hero-search-wrapper {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 0.65rem;
  border-radius: var(--radius-xl);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
  position: relative;
  z-index: 30;
}

.hero-search-form {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.search-field-group {
  flex: 1;
  min-width: 200px;
  display: flex;
  align-items: center;
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 0.75rem 1rem;
  gap: 0.65rem;
}

.search-field-group i {
  color: var(--accent);
  font-size: 1.1rem;
}

.search-field-group input, .search-field-group select {
  width: 100%;
  border: none;
  outline: none;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-main);
  background: transparent;
}

.search-field-group input::placeholder {
  color: var(--text-light);
}

/* Autocomplete Dropdown */
.search-autocomplete-box {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: #ffffff;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--border);
  z-index: 99999;
  max-height: 420px;
  overflow-y: auto;
  display: none;
  text-align: left;
}

.autocomplete-section {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-light);
}

.autocomplete-section:last-child {
  border-bottom: none;
}

.autocomplete-header {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 0.4rem 1rem;
  letter-spacing: 0.05em;
}

.autocomplete-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 1rem;
  color: var(--text-main);
  cursor: pointer;
  transition: background 0.15s;
}

.autocomplete-item:hover {
  background-color: var(--surface-alt);
  color: var(--secondary);
}

.autocomplete-item-left {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

/* ==========================================================================
   York Postal Code District Map Component
   ========================================================================== */
.map-section {
  padding: 4rem 0;
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 2.5rem;
}

.section-tag {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent);
  letter-spacing: 0.08em;
  margin-bottom: 0.4rem;
  display: block;
}

.section-title {
  font-size: 2.15rem;
  font-weight: 800;
  margin-bottom: 0.65rem;
  letter-spacing: -0.02em;
}

.section-desc {
  color: var(--text-muted);
  font-size: 1rem;
}

.york-map-card {
  background: var(--surface);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  padding: 1.5rem;
}

.york-map-layout {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 1.5rem;
  align-items: flex-start;
}

.map-sidebar {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  max-height: 640px;
  overflow-y: auto;
  padding-right: 0.35rem;
}

.map-sidebar::-webkit-scrollbar {
  width: 6px;
}

.map-sidebar::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.04);
  border-radius: 999px;
}

.map-sidebar::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 999px;
}

.map-sidebar::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

@media (max-width: 960px) {
  .york-map-layout {
    grid-template-columns: 1fr;
  }
}

.york-svg-container {
  width: 100%;
  position: relative;
  background: linear-gradient(135deg, #0f1d30 0%, #08111e 100%);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.4);
}

.york-svg-container svg {
  width: 100%;
  height: auto;
  display: block;
}

/* SVG Map Interactive Path Styles */
.district-path {
  fill: #1e3352;
  stroke: #3b82f6;
  stroke-width: 1.5;
  stroke-linejoin: round;
  cursor: pointer;
  transition: all 0.25s ease;
}

.district-path:hover, .district-path.active {
  fill: var(--accent);
  stroke: #ffffff;
  stroke-width: 2.5;
  filter: drop-shadow(0 0 12px rgba(245, 158, 11, 0.8));
}

.district-label {
  fill: #ffffff;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 13px;
  pointer-events: none;
  text-anchor: middle;
  dominant-baseline: central;
}

.water-feature {
  fill: none;
  stroke: #0284c7;
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-dasharray: 6 3;
  opacity: 0.6;
}

.ring-road {
  fill: none;
  stroke: #64748b;
  stroke-width: 2;
  stroke-dasharray: 4 4;
  opacity: 0.5;
}

/* Floating Tooltip */
.map-tooltip {
  position: absolute;
  pointer-events: none;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(8px);
  color: #ffffff;
  padding: 0.65rem 0.95rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--accent);
  font-size: 0.825rem;
  box-shadow: var(--shadow-xl);
  display: none;
  z-index: 40;
  max-width: 220px;
  transform: translate(-50%, -120%);
}

.map-tooltip-title {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.15rem;
}

/* Leaflet Real Map Custom UI Styles */
.leaflet-custom-tooltip {
  background: rgba(15, 23, 42, 0.95) !important;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  border-radius: 8px !important;
  color: #ffffff !important;
  padding: 8px 12px !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.45) !important;
}

.leaflet-custom-tooltip strong {
  color: #f59e0b !important;
}

.leaflet-custom-tooltip span {
  color: #cbd5e1 !important;
}

.leaflet-custom-tooltip::before {
  border-top-color: rgba(15, 23, 42, 0.95) !important;
}

.map-district-badge-marker {
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.map-district-badge-marker:hover {
  transform: scale(1.25);
  z-index: 1000 !important;
}

.map-filter-btn {
  font-size: 0.75rem !important;
  padding: 0.35rem 0.75rem !important;
  border-radius: var(--radius-full) !important;
  transition: all 0.2s ease;
}

.map-filter-btn.active {
  background: var(--primary) !important;
  color: #ffffff !important;
  border-color: var(--primary) !important;
  box-shadow: 0 2px 6px rgba(12, 26, 44, 0.25);
}

/* District List Sidebar in Map Card */
.map-sidebar {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  max-height: 480px;
  overflow-y: auto;
  padding-right: 0.5rem;
}

.district-pill-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background: var(--surface-alt);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  text-decoration: none;
  color: var(--text-main);
  transition: all 0.2s ease;
}

.district-pill-card:hover {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  transform: translateX(4px);
}

.district-pill-card.hover-highlighted {
  background: #fef3c7 !important;
  color: #0f172a !important;
  border-color: #f59e0b !important;
  transform: translateX(4px);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.25);
}

.district-pill-card.hover-highlighted .district-badge {
  background: #f59e0b !important;
  color: #ffffff !important;
}

.district-pill-card.hover-highlighted .district-name {
  color: #0f172a !important;
}

.district-pill-card.hover-highlighted .district-count {
  color: #b45309 !important;
}

.district-pill-card:hover .district-badge {
  background: var(--accent);
  color: #ffffff;
}

.district-pill-card:hover .district-count {
  color: var(--text-light);
}

.district-badge {
  background: var(--primary);
  color: #ffffff;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.85rem;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
}

.district-info {
  flex: 1;
  margin-left: 0.75rem;
}

.district-name {
  font-weight: 700;
  font-size: 0.9rem;
}

.district-count {
  font-size: 0.775rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Trade Categories Grid
   ========================================================================== */
.trades-section {
  padding: 4rem 0;
  background-color: #ffffff;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.trades-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

.trade-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--text-main);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.trade-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: transparent;
  transition: background 0.2s;
}

.trade-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: var(--accent);
}

.trade-card:hover::before {
  background: linear-gradient(90deg, var(--accent), var(--secondary));
}

.trade-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.trade-icon-wrapper {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--surface-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  color: var(--primary);
  transition: all 0.2s;
}

.trade-card:hover .trade-icon-wrapper {
  background: var(--accent);
  color: #ffffff;
}

.trade-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.trade-card-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin-bottom: 1.25rem;
  flex: 1;
}

.trade-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-light);
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--secondary);
}

/* ==========================================================================
   Tradesmen Directory & Listings
   ========================================================================== */
.directory-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2rem;
  padding: 2.5rem 0 5rem;
  align-items: start;
}

@media (max-width: 880px) {
  .directory-layout {
    grid-template-columns: 1fr;
  }
}

.filter-sidebar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  position: sticky;
  top: 90px;
  box-shadow: var(--shadow-sm);
}

.filter-section {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-light);
}

.filter-section:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.filter-title {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.filter-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-main);
  cursor: pointer;
}

.filter-option input[type="checkbox"], .filter-option input[type="radio"] {
  accent-color: var(--accent);
  width: 16px;
  height: 16px;
}

/* Directory Header & Stats */
.directory-main {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.directory-header {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.breadcrumb a {
  color: var(--text-muted);
}

.breadcrumb a:hover {
  color: var(--accent);
}

.results-count {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.results-count strong {
  color: var(--text-main);
}

/* Tradesman Card in Directory */
.tradesman-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: grid;
  grid-template-columns: 80px 1fr 200px;
  gap: 1.5rem;
  align-items: center;
  transition: all 0.2s;
  box-shadow: var(--shadow-sm);
}

@media (max-width: 768px) {
  .tradesman-card {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

.tradesman-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.tradesman-avatar {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-md);
  background: var(--surface-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  color: var(--primary);
  font-weight: 800;
  border: 2px solid var(--border);
}

.tradesman-body {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.tradesman-name-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.tradesman-name {
  font-size: 1.25rem;
  font-weight: 700;
}

.tradesman-tagline {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.tradesman-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  margin-top: 0.25rem;
}

.rating-stars {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  color: #f59e0b;
  font-weight: 700;
}

.tradesman-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  justify-content: center;
}

/* ==========================================================================
   Tradesperson Profile Page
   ========================================================================== */
.profile-header-banner {
  background: linear-gradient(135deg, var(--primary) 0%, #172a45 100%);
  color: #ffffff;
  padding: 3.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.profile-header-layout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.profile-identity {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.profile-avatar-lg {
  width: 100px;
  height: 100px;
  border-radius: var(--radius-lg);
  background: #ffffff;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  font-weight: 800;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.profile-title-area h1 {
  color: #ffffff;
  font-size: 2.25rem;
  margin-bottom: 0.25rem;
}

.profile-tagline {
  color: #94a3b8;
  font-size: 1.05rem;
  margin-bottom: 0.65rem;
}

.profile-grid-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 2.5rem;
  padding: 3rem 0 5rem;
  align-items: start;
}

@media (max-width: 900px) {
  .profile-grid-layout {
    grid-template-columns: 1fr;
  }
}

.profile-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-sm);
}

.profile-card h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.services-checklist {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.65rem;
}

.services-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.925rem;
}

.services-checklist li i {
  color: var(--success);
  margin-top: 0.2rem;
}

.coverage-pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.coverage-pill {
  padding: 0.35rem 0.75rem;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  color: var(--text-main);
  text-decoration: none;
  transition: all 0.15s;
}

.coverage-pill:hover {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
}

/* Reviews List */
.review-item {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border-light);
}

.review-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.review-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.4rem;
}

.review-author {
  font-weight: 700;
  font-size: 0.95rem;
}

.review-location {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.review-project {
  display: inline-block;
  font-size: 0.775rem;
  background: var(--surface-alt);
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

/* Quote Sidebar Form */
.quote-box {
  background: var(--surface);
  border: 2px solid var(--accent);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  box-shadow: var(--shadow-xl);
  position: sticky;
  top: 90px;
}

.quote-box h3 {
  font-size: 1.35rem;
  color: var(--primary);
  margin-bottom: 0.35rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--text-main);
}

.form-control {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.925rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: #ffffff;
}

.form-control:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

textarea.form-control {
  resize: vertical;
  min-height: 90px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background-color: var(--primary-dark);
  color: #94a3b8;
  padding: 4rem 0 2rem;
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

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

.footer-col h4 {
  color: #ffffff;
  font-size: 1.05rem;
  margin-bottom: 1.25rem;
  position: relative;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links a {
  color: #94a3b8;
  font-size: 0.875rem;
  transition: color 0.15s;
}

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

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.825rem;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(4px);
  z-index: 999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.modal-content {
  background: #ffffff;
  border-radius: var(--radius-xl);
  max-width: 540px;
  width: 100%;
  padding: 2rem;
  box-shadow: var(--shadow-xl);
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: none;
  border: none;
  font-size: 1.25rem;
  cursor: pointer;
  color: var(--text-muted);
}
