/* CSS Variables from Design System */
:root {
  --bg-primary: #ffffff;
  --bg-muted: #f4f5f7;
  --accent: #6b7280;
  --accent-dark: #4b5563;
  --text-primary: #111827;
  --text-secondary: #6b7280;
  --border-soft: #e5e7eb;
  
  --container-max-width: 1200px;
  --section-vertical: 4.5rem;
  --card-padding: 1.5rem;
  --gap: 1.5rem;
}

/* ============================================
   LAYOUT SYSTEM — Mobile-First
   ============================================
   Standard breakpoints (min-width):
     480px  — large phones
     768px  — tablets
     1024px — desktops
     1440px — large desktops

   New styles use min-width exclusively.
   Existing max-width queries are preserved
   for backward compatibility.
   ============================================ */

/* Spacing scale (8px base, augments existing --gap / --card-padding) */
:root {
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
}

/* Grid utilities — mobile-first (1 col by default) */
.grid-1    { display: grid; grid-template-columns: 1fr; gap: var(--gap); }
.grid-2    { display: grid; grid-template-columns: 1fr; gap: var(--gap); }
.grid-3    { display: grid; grid-template-columns: 1fr; gap: var(--gap); }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--gap); }

@media (min-width: 768px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}

/* Dark Mode Variables */
[data-theme="dark"] {
  --bg-primary: #15202b;
  --bg-muted: #192734;
  --accent: #6b7280;
  --accent-dark: #4b5563;
  --text-primary: #ffffff;
  --text-secondary: #8b98a5;
  --border-soft: #38444d;
}

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

html {
  width: 100%;
  overflow-x: hidden;
  scrollbar-gutter: stable; /* reserves scrollbar space on all pages — prevents layout shift when navigating */
}

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

main {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

/* Typography */
h1 {
  font-size: clamp(2.4rem, 3vw, 3rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

h2 {
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 2rem;
}

h3 {
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.4;
}

p {
  font-size: 1rem;
  font-weight: 400;
}

small,
.card-meta {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--text-secondary);
}

/* Container */
.container {
  width: 100%;
  max-width: var(--container-max-width) !important;
  margin: 0 auto;
  padding: 0 1.5rem;
  box-sizing: border-box;
}

/* Ensure all sections respect container */
section .container,
main .container,
header .container,
footer .container {
  max-width: var(--container-max-width) !important;
}

/* Responsive Container Padding */
@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 0.75rem;
  }
}

/* Navigation */
.nav {
  background-color: var(--bg-primary);
  border-bottom: 1px solid var(--border-soft);
  padding: 1rem 0;
  margin-bottom: 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

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

.nav-brand {
  flex-shrink: 0;
}

.nav-brand a {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex: 1;
  justify-content: center;
  flex-wrap: wrap;
}

.nav-links a {
  color: var(--text-primary);
  text-decoration: none;
  font-size: 1rem;
  transition: color 0.2s;
  white-space: nowrap;
  font-weight: 500;
}

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

.nav-version {
  font-size: 0.75rem;
  color: var(--text-secondary);
  opacity: 0.7;
  white-space: nowrap;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 40px;
  min-width: 180px; /* prevents layout shift when swapping between signed-out and signed-in states */
  justify-content: flex-end;
  flex-shrink: 0;
  opacity: 0;
  transition: opacity 0.15s ease;
}

/* ============================================
   HAMBURGER MENU + MOBILE NAV
   Hidden on desktop, shown at ≤768px
   ============================================ */

/* Hamburger button — hidden on desktop */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  width: 44px;
  height: 44px;
  border-radius: 6px;
  flex-shrink: 0;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

/* Animate to X when open */
.nav-hamburger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-hamburger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-hamburger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile dropdown menu — hidden by default */
.nav-mobile-menu {
  display: none;
  flex-direction: column;
  border-top: 1px solid var(--border-soft);
  padding: 1rem 0;
  gap: 0.25rem;
}

.nav-mobile-menu.open {
  display: flex;
}

.nav-mobile-links {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.nav-mobile-links a {
  display: block;
  padding: 0.75rem 0.5rem;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-primary);
  text-decoration: none;
  border-radius: 6px;
}

.nav-mobile-links a:hover,
.nav-mobile-links a.active {
  background-color: var(--bg-muted);
}

.nav-mobile-actions {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-soft);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.nav-mobile-actions .nav-signin {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1rem;
  min-height: 44px;
  font-weight: 500;
  color: var(--text-primary);
  text-decoration: none;
  border-radius: 6px;
}

.nav-mobile-actions .nav-signin:hover {
  background-color: var(--bg-muted);
}

.nav-mobile-actions .btn {
  width: 100%;
  text-align: center;
  min-height: 44px;
}

/* User menu inside mobile — show dropdown items inline (no toggle needed) */
.nav-mobile-actions .nav-user-menu {
  width: 100%;
}

.nav-mobile-actions .nav-user-btn {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  background: none;
  border: none;
  padding: 0.75rem 0.5rem;
  width: 100%;
  cursor: default;
  pointer-events: none;
  gap: 0;
}

/* Avatar/logo inside mobile menu — use margin-right for clear gap like a social post */
.nav-mobile-actions .nav-user-btn img {
  margin-right: 12px !important;
  margin-bottom: 0 !important;
  flex-shrink: 0;
}

/* Hide the dropdown arrow SVG in the mobile menu */
.nav-mobile-actions .nav-user-btn svg {
  display: none;
}

.nav-mobile-actions .nav-user-dropdown {
  display: flex !important;
  flex-direction: column;
  position: static;
  box-shadow: none;
  border: none;
  padding: 0;
  width: 100%;
}

.nav-mobile-actions .dropdown-item {
  padding: 0.75rem 0.5rem;
  min-height: 44px;
  display: flex;
  align-items: center;
  border-radius: 6px;
  color: var(--text-primary);
  text-decoration: none;
}

.nav-mobile-actions .dropdown-item:hover {
  background-color: var(--bg-muted);
}

.nav-mobile-actions .dropdown-divider {
  height: 1px;
  background-color: var(--border-soft);
  margin: 0.25rem 0;
}

/* Navbar placeholder elements (prevent layout shift during auth) */
.nav-placeholder-link,
.nav-placeholder-menu {
  display: inline-block;
  border-radius: 6px;
  background-color: transparent;
}

/* Version Display */
.nav-version-wrapper {
  display: flex;
  align-items: center;
}

.nav-version {
  display: flex;
  align-items: center;
  padding: 0.375rem 0.75rem;
  background-color: var(--bg-muted);
  border: 1px solid var(--border-soft);
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-secondary);
  white-space: nowrap;
  font-family: 'Courier New', monospace;
}

.nav-version-text {
  color: var(--text-secondary);
}

/* Theme Toggle */
.theme-toggle {
  background: none;
  border: 1px solid var(--border-soft);
  color: var(--text-primary);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  transition: all 0.2s;
  font-size: 1.2rem;
}

.theme-toggle:hover {
  background-color: var(--bg-muted);
  border-color: var(--accent);
  color: var(--accent);
}

.theme-toggle svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.nav-signin {
  color: var(--text-primary);
  text-decoration: none;
  font-size: 1rem;
  transition: color 0.2s;
  font-weight: 500;
}

.nav-signin:hover {
  color: var(--accent);
}

.nav .btn-primary {
  background-color: var(--accent);
  color: #ffffff;
  border: 1px solid var(--accent);
}

.nav .btn-primary:hover {
  background-color: var(--accent-dark);
  border-color: var(--accent-dark);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.65rem 1.5rem;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}

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

.btn-primary:hover {
  background-color: var(--accent-dark);
}

.btn-ghost {
  background-color: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-soft);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.back-to-dashboard-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem !important;
}

/* Hero Section */
.hero {
  padding: 1rem 0 0.5rem 0;
  text-align: center;
  position: relative;
  width: 100%;
}

.hero .container {
  position: relative;
  z-index: 1;
  padding-top: 0.5rem;
  padding-bottom: 1rem;
}

.hero .container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 1.5rem;
  right: 1.5rem;
  bottom: 0;
  border-radius: 8px;
  z-index: -1;
}

@media (max-width: 768px) {
  .hero .container::before {
    left: 1rem;
    right: 1rem;
  }
}

@media (max-width: 480px) {
  .hero .container::before {
    left: 0.75rem;
    right: 0.75rem;
  }
}

.hero h1,
.hero .hero-title {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 2rem;
  text-align: center;
  color: #000000;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 800;
  line-height: 1.2;
}

/* Hero Search Widget */
.hero-search-widget {
  background-color: var(--bg-primary);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  width: 100%;
  margin: 0 auto;
  padding: 0;
  overflow: hidden;
}

[data-theme="dark"] .hero-search-widget {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  border: 1px solid var(--border-soft);
}

[data-theme="dark"] .jobs-list-column,
[data-theme="dark"] .job-detail-column,
[data-theme="dark"] .map-list-column,
[data-theme="dark"] .map-list-column-full,
[data-theme="dark"] .map-view-column,
[data-theme="dark"] .map-view-column-full {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}


.hero-search-form {
  display: flex;
  gap: 0.75rem;
  padding: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.search-input-wrapper {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  border: 1px solid var(--border-soft);
  border-radius: 6px;
  background-color: var(--bg-primary);
  overflow: hidden;
}

.search-input-wrapper:focus-within {
  border-color: var(--accent);
}

.search-icon {
  position: absolute;
  left: 1rem;
  color: var(--text-secondary);
  pointer-events: none;
  z-index: 1;
}

.search-input {
  flex: 1;
  padding: 0.875rem 1rem 0.875rem 2.75rem;
  border: none;
  font-size: 1rem;
  font-family: inherit;
  background-color: transparent;
  color: var(--text-primary);
  min-width: 0;
}

.search-input:focus {
  outline: none;
}

.btn-filters {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
}

.btn-view-select {
  padding: 0.625rem 0.5rem;
  border: 1px solid var(--border-soft);
  border-radius: 6px;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
  white-space: nowrap;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='8' height='5' viewBox='0 0 8 5' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L4 4L7 1' stroke='%23666' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.5rem center;
  padding-right: 1rem;
  text-align: center;
}

.btn-view-select:hover {
  border-color: var(--accent);
  background-color: var(--bg-muted);
}

.btn-view-select:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

[data-theme="dark"] .btn-view-select {
  background-image: url("data:image/svg+xml,%3Csvg width='8' height='5' viewBox='0 0 8 5' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L4 4L7 1' stroke='%23999' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}


.btn-search {
  white-space: nowrap;
  font-weight: 600;
}

/* ── Filter Panel Styles ── */
.filter-panel {
  background: var(--bg-primary);
  border-left: 1px solid var(--border-soft);
  border-right: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  border-radius: 0 0 8px 8px;
  padding: 1.25rem;
  margin-top: 0;
}

.filter-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-soft);
}

.filter-panel-header strong {
  font-size: 1rem;
  font-weight: 700;
}

.filter-panel-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.btn-text {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 0.875rem;
  cursor: pointer;
  padding: 0;
  transition: color 0.2s;
}

.btn-text:hover {
  color: var(--accent);
}

.filter-section {
  margin-bottom: 1.5rem;
}

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

.filter-section-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.625rem;
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.filter-pill {
  padding: 0.5rem 0.875rem;
  border: 1px solid var(--border-soft);
  border-radius: 6px;
  background: var(--bg-muted);
  color: var(--text-primary);
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
  font-family: inherit;
}

.filter-pill:hover {
  border-color: var(--accent);
  background: var(--bg-primary);
}

.filter-pill.active {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

.filter-input {
  width: 100%;
  padding: 0.625rem 0.875rem;
  border: 1px solid var(--border-soft);
  border-radius: 6px;
  font-size: 0.9375rem;
  font-family: inherit;
  background: var(--bg-primary);
  color: var(--text-primary);
  transition: border-color 0.2s;
}

.filter-input:focus {
  outline: none;
  border-color: var(--accent);
}

.filter-input::placeholder {
  color: var(--text-secondary);
  opacity: 0.7;
}

.hero-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 800px;
  margin: 0 auto;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.hero-views {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.hero-views a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}

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

.hero-views span {
  color: var(--border-soft);
}

.hero-powered {
  color: var(--text-secondary);
}

.hero-views-integrated {
  display: flex;
  gap: 0;
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  background-color: var(--bg-primary);
  margin-top: 1.5rem;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

[data-theme="dark"] .hero-views-integrated {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  background-color: var(--bg-muted);
}

.view-btn {
  flex: 1;
  padding: 0.75rem 1rem;
  background: none;
  border: none;
  border-right: 1px solid var(--border-soft);
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
  text-align: center;
}

.view-btn:last-child {
  border-right: none;
}

.view-btn:hover {
  color: var(--text-primary);
  background-color: var(--bg-muted);
}

.view-btn.active {
  color: var(--accent);
  background-color: var(--bg-muted);
  font-weight: 600;
}

/* Sections */
section {
  padding: var(--section-vertical) 0;
}

/* Promotional Boxes */
.promo-boxes {
  padding: 1rem 0;
}

.promo-boxes-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gap);
}

.promo-box {
  display: flex;
  background-color: var(--bg-primary);
  border: 2px solid var(--border-soft);
  border-radius: 8px;
  padding: 2.5rem;
  text-decoration: none;
  color: var(--text-primary);
  transition: all 0.3s ease;
  min-height: 160px;
  align-items: center;
}

[data-theme="dark"] .promo-box {
  background-color: var(--bg-muted);
}

.promo-box:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  border-color: var(--accent);
}

[data-theme="dark"] .promo-box:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.promo-box-content h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.promo-box-content p {
  color: var(--text-secondary);
  font-size: 1rem;
  margin: 0;
}

.promo-box-job:hover {
  border-color: var(--accent);
}

.promo-box-job:hover .promo-box-content h3 {
  color: var(--accent);
}

.promo-box-hire:hover {
  border-color: var(--accent);
}

.promo-box-hire:hover .promo-box-content h3 {
  color: var(--accent);
}

.featured-jobs,
.featured-candidates,
.explore-jiver {
  padding: 1.5rem 0;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 2rem;
  min-height: 2.5rem;
}

.section-header h2 {
  margin: 0;
  flex-shrink: 0;
}

.section-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  transition: color 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
  margin-left: 1rem;
}

.section-link:hover {
  color: var(--accent-dark);
}

/* Card Grid */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
  align-items: stretch;
}

/* Cards */
.card {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  padding: var(--card-padding);
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  min-height: 280px;
  box-sizing: border-box;
}


[data-theme="dark"] .card {
  background-color: var(--bg-muted);
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.04);
  border-color: var(--accent);
}

[data-theme="dark"] .card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.card:hover .card-header h3,
.card:hover h3 {
  color: var(--accent);
}

.card-header {
  display: flex;
  flex-direction: column;
  margin-bottom: 0.75rem;
  min-height: 2.5rem;
  flex-shrink: 0;
  max-height: none;
}

.card-header h3 {
  margin-bottom: 0;
  font-size: 1.2rem;
  line-height: 1.3;
}

.card-title-group {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  width: 100%;
  min-width: 0;
}

.card-title-logo-row {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.5rem;
  width: 100%;
}

.card-title-logo-row h3 {
  flex: 1;
  min-width: 0;
  word-break: break-word;
  overflow-wrap: break-word;
  line-height: 1.4;
  margin: 0;
  font-size: 1.2rem;
}

.card-title-group h3 {
  margin: 0;
  word-break: break-word;
  overflow-wrap: break-word;
  line-height: 1.4;
}

.card-company-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

.card-title-group .card-company {
  font-size: 0.875rem;
  color: var(--text-secondary);
  font-weight: 500;
  flex: 0 0 auto;
  word-break: break-word;
  overflow-wrap: break-word;
}

.card-company-logo {
  flex-shrink: 0;
  width: 90px;
  height: 40px;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.logo-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

.card-company-logo img,
.card-company-logo svg {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.card-footer-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.card-footer-right .card-meta {
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

.card-footer > .card-meta {
  margin-left: 0;
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

/* Spacing for h3 headings directly in cards (Explore Jiver section) */
.card > h3 {
  margin-bottom: 1rem;
  font-size: 1.2rem;
  line-height: 1.3;
}

.card-meta {
  margin-left: 1rem;
  white-space: nowrap;
  flex-shrink: 0;
  font-size: 0.875rem;
}

.card-meta-row {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  align-items: flex-start;
  margin-bottom: 1rem;
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
  flex-shrink: 0;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-soft);
}

.card-description {
  flex: 0 1 auto;
  margin-bottom: 0.625rem;
  color: var(--text-primary);
  line-height: 1.55;
  font-size: 0.875rem;
  min-height: 9.5rem;
  max-height: 9.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 7;
  line-clamp: 7;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Remove min-height stretching and footer gap for job list cards and previews */
#jobs-list-container .card,
.map-list-scrollable > .card[data-job-id],
.community-board-card,
#preview-job-card,
#ipe-card {
  min-height: unset;
}

#jobs-list-container .card .card-footer,
.map-list-scrollable > .card[data-job-id] .card-footer,
#preview-job-card .card-footer,
#ipe-card .card-footer {
  margin-top: 0;
}

#preview-job-card .card-description,
#preview-job-card .preview-card-desc {
  margin-bottom: 0.625rem !important;
}

#preview-job-detail {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  padding: 2rem;
}

/* Ensure proper spacing when card-description follows h3 directly in card */
.card > h3 + .card-description {
  margin-top: 0;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid var(--border-soft);
  margin-top: auto;
  flex-shrink: 0;
  min-height: 2.5rem;
}

.card-company {
  font-weight: 500;
  color: var(--text-primary);
  font-size: 0.95rem;
  flex-shrink: 0;
}

.card-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.card-link:hover {
  color: var(--accent-dark);
}

.card-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.card-actions span {
  color: var(--border-soft);
}

.card-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--accent);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.875rem;
  flex-shrink: 0;
  margin-left: 1rem;
  text-transform: capitalize;
  min-width: 40px;
}

.card-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-shrink: 0;
}

/* Page Header */
.page-header {
  padding: 3rem 0 2rem;
  text-align: center;
  background-color: var(--bg-muted);
}

.page-header h1 {
  margin-bottom: 0.75rem;
}

.page-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* Jobs Search Hero */
.jobs-search-hero {
  padding: 2rem 0;
  background-color: var(--bg-primary);
  border-bottom: 1px solid var(--border-soft);
}

.jobs-search-hero h1 {
  text-align: center;
  margin-bottom: 1.5rem;
  font-size: clamp(1.8rem, 2.5vw, 2.4rem);
}

.jobs-search-form {
  display: flex;
  gap: 0.75rem;
  max-width: 1000px;
  margin: 0 auto 1rem;
}

.jobs-search-form .search-input {
  flex: 1;
}

.location-input {
  max-width: 200px;
}

/* Search Type Toggle */
.search-type-toggle {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.search-type-btn {
  padding: 0.5rem 1.5rem;
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  background-color: var(--bg-primary);
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}

.search-type-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.search-type-btn.active {
  background-color: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}

.hero-views {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.view-link {
  background: none;
  border: none;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s;
  cursor: pointer;
  font-family: inherit;
  padding: 0;
}

.view-link:hover,
.view-link.active {
  color: var(--text-primary);
  font-weight: 600;
}

/* Jobs Layout - Two Column */
.jobs-layout {
  padding: 0;
  background-color: var(--bg-primary);
  border-top: none;
}

.jobs-layout .container {
  border-top: none;
}

.container-full {
  max-width: 100%;
  margin: 0;
  padding: 0;
}

/* View Toggle Component */
.view-toggle-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  margin-top: 0.75rem;
  gap: 1rem;
}

.view-toggle {
  display: inline-flex;
  gap: 0;
  background: white;
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  padding: 0.25rem;
}

.view-toggle-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1rem;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
  white-space: nowrap;
  margin: 0;
}

.view-toggle-btn svg {
  width: 16px;
  height: 16px;
}

.view-toggle-btn:hover {
  color: var(--text-primary);
  background: var(--bg-primary);
}

.view-toggle-btn.active {
  background: var(--accent);
  color: white;
}

.view-toggle-btn.active:hover {
  background: var(--accent-dark);
}

/* View Toggle Inline (within search bar) */
.view-toggle-inline {
  display: inline-flex;
  margin: 0;
}

.view-toggle-inline .view-toggle-btn {
  padding: 0.625rem 0.75rem;
  font-size: 0.875rem;
}

@media (max-width: 640px) {
  .view-toggle-inline {
    display: none; /* Hide inline view toggle on mobile, could show below if needed */
  }
}

.jobs-two-column {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 1.5rem;
  min-height: calc(100vh - 400px);
}

.jobs-list-column {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  height: calc(100vh - 200px);
  min-height: 600px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.jobs-list-column::-webkit-scrollbar {
  display: none;
}

.jobs-list-column[style*="display: none"] {
  display: none !important;
}

.jobs-list-column .map-list-header {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border-soft);
  background-color: var(--accent);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
  border-radius: 8px 8px 0 0;
}

.jobs-list-column .map-list-header .sort-label {
  color: #ffffff;
}

.jobs-list-column .map-list-header .sort-select {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}

.jobs-list-column .map-list-header .sort-select:focus {
  border-color: rgba(255, 255, 255, 0.5);
  background-color: rgba(255, 255, 255, 0.2);
}

.jobs-list-column .listings-header h2 {
  margin: 0;
  font-size: 1.5rem;
  line-height: 1.2;
}

.listings-header-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.75rem;
  padding-top: 0;
}

.jobs-list-column .listings-header .results-count {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.2;
}

.sort-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.sort-label {
  font-size: 0.875rem;
  color: var(--text-secondary);
  white-space: nowrap;
}

.sort-select {
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border-soft);
  border-radius: 0.5rem;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-size: 0.875rem;
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s;
  -webkit-appearance: auto;
  appearance: auto;
  color-scheme: light dark;
}

.sort-select:hover {
  border-color: var(--accent);
}

.sort-select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(107, 114, 128, 0.1);
}

.sort-select option {
  background-color: var(--bg-primary);
  color: var(--text-primary);
}
[data-theme="dark"] .sort-select {
  background-color: var(--bg-muted);
  border-color: var(--border-soft);
}
[data-theme="dark"] .sort-select option {
  background-color: var(--bg-muted);
  color: var(--text-primary);
}

.jobs-list-scrollable {
  overflow-y: auto;
  overflow-x: hidden;
  flex: 1;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.job-card-list {
  padding: var(--card-padding);
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  background-color: var(--bg-primary);
  margin-bottom: 1rem;
}

.job-card-list:last-child {
  margin-bottom: 0;
}

.job-card-list:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.04);
}

.job-card-list.active {
  border: 2px solid var(--accent);
  box-shadow: 0 8px 18px rgba(107, 114, 128, 0.1);
}

.job-card-list .card-header {
  margin-bottom: 0.5rem;
}

.job-card-list .card-description {
  margin-bottom: 1.5rem;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.job-detail-column {
  padding: 2rem 2rem 0 2rem;
  background-color: var(--bg-primary);
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  overflow-y: auto;
  max-height: calc(100vh - 200px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.job-detail-column::-webkit-scrollbar {
  display: none;
}

.job-detail-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 400px;
  color: var(--text-secondary);
  font-size: 1.125rem;
}

.job-detail-content {
  max-width: 800px;
  margin: 0 auto;
}

.job-detail-header-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.job-detail-title-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
  min-width: 0;
}

.job-detail-header h2 {
  font-size: 2rem;
  margin: 0;
}

.job-detail-title-group .job-detail-company {
  font-size: 0.875rem;
  color: var(--text-secondary);
  font-weight: 500;
  display: block;
  margin: 0.375rem 0;
  gap: 0;
}

.job-detail-logo {
  flex-shrink: 0;
  width: 180px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.job-detail-logo img,
.job-detail-logo svg {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.job-detail-meta {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 1.5rem;
  font-size: 1rem;
  color: var(--text-primary);
}

.job-detail-meta-vertical {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 2rem;
  font-size: 1rem;
  color: var(--text-primary);
}

.job-detail-meta-item {
  display: flex;
  align-items: center;
}

.job-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.job-tag {
  display: inline-block;
  padding: 0.375rem 0.75rem;
  background-color: var(--bg-muted);
  color: var(--text-primary);
  border-radius: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  border: 1px solid var(--border);
}

.job-tag-empty {
  display: inline-block;
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-style: italic;
}

.job-detail-report {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  padding-bottom: 2rem;
  border-top: 1px solid var(--border-soft);
  text-align: center;
}

.report-link {
  color: var(--text-secondary);
  font-size: 0.875rem;
  text-decoration: none;
  transition: color 0.2s;
}

.report-link:hover {
  color: var(--accent);
  text-decoration: underline;
}

.detail-location {
  color: var(--text-secondary);
  font-weight: 400;
}

.job-detail-image {
  margin-bottom: 2rem;
}

.job-detail-images {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.detail-image-placeholder {
  width: 100%;
  height: 200px;
  background-color: var(--bg-muted);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 0.875rem;
  border: 1px solid var(--border-soft);
}

.job-detail-sections {
  margin-bottom: 2rem;
}

.detail-section {
  margin-bottom: 2rem;
}

.detail-section h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.detail-section p {
  line-height: 1.7;
  color: var(--text-primary);
}

.detail-list {
  list-style: none;
  padding-left: 0;
}

.detail-list li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
  color: var(--text-primary);
  line-height: 1.6;
}

.detail-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 600;
  font-size: 1.25rem;
}

.job-detail-apply {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-soft);
}

.btn-large {
  padding: 0.875rem 2rem;
  font-size: 1.125rem;
  width: 100%;
  margin-bottom: 0.75rem;
}

.job-detail-apply .btn-large:last-child {
  margin-bottom: 0;
}

/* Candidate Detail Styles */
.candidate-detail-header {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
  align-items: flex-start;
}

.candidate-detail-header-new {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid var(--border-soft);
  gap: 2rem;
}

.candidate-detail-info-new {
  flex: 1;
}

.candidate-detail-info-new h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.candidate-detail-meta-new {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem 1.5rem;
  margin-top: 1.5rem;
  margin-bottom: 1rem;
}

.candidate-detail-meta-new span:nth-child(odd) {
  color: var(--text-secondary);
  font-weight: 400;
}

.candidate-detail-meta-new span:nth-child(even) {
  color: var(--text-primary);
  font-weight: 500;
}

.candidate-detail-roles-inline {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  font-size: 0.9375rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-soft);
}

.roles-label {
  color: var(--text-secondary);
  font-weight: 500;
  white-space: nowrap;
}

.roles-tags-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.role-tag-plain {
  color: var(--text-primary);
  font-weight: 400;
  font-size: 0.9375rem;
}

.role-tag-plain:not(:last-child)::after {
  content: ',';
  margin-left: 0.125rem;
  color: var(--text-secondary);
}

.candidate-detail-avatar-large-new {
  flex-shrink: 0;
}

.card-avatar-large {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background-color: var(--accent);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.5rem;
  flex-shrink: 0;
  text-transform: uppercase;
  box-shadow: 0 4px 12px rgba(107, 114, 128, 0.3);
}

.candidate-detail-info h2 {
  font-size: 1.75rem;
  margin-bottom: 0.25rem;
}

.candidate-detail-info h3 {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
  font-weight: 500;
}

.candidate-detail-meta {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.skills-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.skill-tag {
  padding: 0.4rem 0.875rem;
  background-color: var(--bg-muted);
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  font-size: 0.875rem;
  color: var(--text-primary);
}

/* Map View */
.map-view-container {
  padding: 2rem;
  background-color: var(--bg-primary);
  min-height: calc(100vh - 200px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.map-view-full {
  position: relative;
  width: 100%;
  height: calc(100vh - 200px);
  min-height: 600px;
  margin-top: 2rem;
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

#leaflet-map {
  width: 100%;
  height: 100%;
  z-index: 0;
}

/* jobs.html — mobile "back to list" button over map view, hidden on desktop */
.map-back-btn {
  display: none;
}

@media (max-width: 640px) {
  .map-back-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: fixed;
    bottom: calc(var(--space-5) + env(safe-area-inset-bottom, 0px));
    left: 50%;
    transform: translateX(-50%);
    z-index: 900;
    background: var(--text-primary);
    color: var(--bg-primary);
    border: none;
    border-radius: 24px;
    padding: 0.625rem 1.25rem;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    white-space: nowrap;
  }
}

.map-sidebar-card {
  cursor: pointer;
  transition: box-shadow 0.15s, border-color 0.15s;
  min-height: unset;
  margin: 0;
}

.map-sidebar-card:hover {
  box-shadow: 0 2px 12px rgba(0,0,0,0.1);
}

.map-sidebar-card.selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-light, rgba(107,114,128,0.25));
}

/* ── Map detail drawer ────────────────────────────── */
.map-detail-drawer {
  position: fixed;
  top: 130px; /* below nav + filter bar */
  right: 0;
  width: 440px;
  max-width: 95vw;
  height: calc(100vh - 130px);
  background: var(--bg-primary);
  border-left: 1px solid var(--border-soft);
  box-shadow: -4px 0 24px rgba(0,0,0,0.12);
  transform: translateX(100%);
  transition: transform 0.25s ease;
  z-index: 800;
  overflow-y: auto;
  scrollbar-width: thin;
}

.map-detail-drawer.open {
  transform: translateX(0);
}

.map-drawer-close {
  position: sticky;
  top: 0;
  float: right;
  margin: 0.75rem 0.75rem 0 0;
  background: var(--bg-muted);
  border: 1px solid var(--border-soft);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  color: var(--text-secondary);
  z-index: 1;
  flex-shrink: 0;
  padding: 0;
}

.map-drawer-close:hover {
  background: var(--border-soft);
  color: var(--text-primary);
}

.map-drawer-inner {
  clear: both;
}

@media (max-width: 768px) {
  .map-view-full { height: calc(100vh - 180px); min-height: 400px; margin-top: 1rem; }
  .map-detail-drawer { width: 100%; top: auto; bottom: 0; height: 70vh; transform: translateY(100%); border-left: none; border-top: 1px solid var(--border-soft); }
  .map-detail-drawer.open { transform: translateY(0); }
}

.map-two-column-full {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 1.5rem;
  min-height: calc(100vh - 400px);
}

.map-list-column-full {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  height: calc(100vh - 200px);
  min-height: 600px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.map-list-column-full::-webkit-scrollbar {
  display: none;
}

.map-list-column-full .map-list-header {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border-soft);
  background-color: var(--accent);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
  border-radius: 8px 8px 0 0;
}

.map-list-column-full .map-list-header .sort-label {
  color: #ffffff;
}

.map-list-column-full .map-list-header .sort-select {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}

.map-list-column-full .map-list-header .sort-select:focus {
  border-color: rgba(255, 255, 255, 0.5);
  background-color: rgba(255, 255, 255, 0.2);
}

.map-list-column-full .map-list-scrollable {
  overflow-y: auto;
  overflow-x: hidden;
  flex: 1;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-height: 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.map-list-column-full .map-list-scrollable::-webkit-scrollbar {
  display: none;
}

.map-view-column-full {
  padding: 2rem;
  background-color: var(--bg-primary);
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  overflow-y: auto;
  overflow-x: hidden;
  max-height: calc(100vh - 200px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.map-view-column-full::-webkit-scrollbar {
  display: none;
}

.map-view-column-full .map-container {
  flex: 1;
  position: relative;
  background-color: var(--bg-muted);
  min-height: 0;
}

.ai-view-full {
  width: 100%;
  margin-top: 2rem;
}

.ai-view-main-full {
  display: block;
  width: 100%;
}

.ai-suggestions-panel {
  order: 1;
  background-color: var(--bg-primary);
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  height: calc(100vh - 200px);
  min-height: 600px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.ai-suggestions-panel .map-list-header {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border-soft);
  background-color: var(--accent);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 1rem;
  border-radius: 8px 8px 0 0;
  box-sizing: border-box;
}

.ai-suggestions-panel .map-list-header h3 {
  margin: 0;
  padding: 0;
  line-height: 1.5;
  font-size: 1.25rem;
  font-weight: 600;
  color: #ffffff;
}

.ai-suggestions-panel .map-list-scrollable {
  overflow-y: auto;
  overflow-x: hidden;
  flex: 1;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-height: 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.ai-suggestions-panel::-webkit-scrollbar {
  display: none;
}

.ai-suggestions-panel .map-list-scrollable::-webkit-scrollbar {
  display: none;
}

.ai-chat-container-full {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  height: calc(100vh - 200px);
  min-height: 600px;
  max-height: calc(100vh - 200px);
  width: 100%;
  max-width: 100%;
}

.map-placeholder {
  text-align: center;
  color: var(--text-secondary);
}

.map-placeholder h2 {
  margin-bottom: 1rem;
  color: var(--text-primary);
}

/* AI View */
.ai-view-container {
  padding: 2rem;
  background-color: var(--bg-primary);
  min-height: calc(100vh - 200px);
}

.ai-view-content {
  max-width: 800px;
  margin: 0 auto;
}

.ai-view-content h2 {
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.ai-view-content p {
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.ai-suggestions {
  padding: 2rem;
  background-color: var(--bg-muted);
  border-radius: 8px;
  border: 1px solid var(--border-soft);
  text-align: center;
  color: var(--text-secondary);
}

/* Map View Layout */
.map-layout {
  padding: 0;
  background-color: var(--bg-primary);
}

.map-two-column {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 1.5rem;
  min-height: calc(100vh - 200px);
}

.map-list-column {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 200px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.map-list-header {
  padding: 1rem;
  border-bottom: 1px solid var(--border-soft);
  background-color: var(--bg-primary);
}

.map-search-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--bg-muted);
  border-radius: 6px;
  padding: 0.5rem 0.75rem;
}

.map-sort-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
  flex-wrap: wrap;
}

.limit-select {
  min-width: 60px;
}

.search-icon-small {
  color: var(--text-secondary);
  flex-shrink: 0;
}

.map-search-input {
  flex: 1;
  border: none;
  background: none;
  font-size: 0.9rem;
  color: var(--text-primary);
  font-family: inherit;
  outline: none;
}

.map-add-btn {
  width: 24px;
  height: 24px;
  border: none;
  background-color: var(--accent);
  color: #ffffff;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1.2rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.map-list-scrollable {
  overflow-y: auto;
  overflow-x: hidden;
  flex: 1;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-height: 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.map-list-scrollable::-webkit-scrollbar {
  display: none;
}

/* Ensure cards in list view maintain consistent sizing like index.html */
.map-list-scrollable > .card {
  min-height: 280px;
  max-height: none;
  height: auto !important;
  max-width: 100%;
  flex-shrink: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  align-items: stretch;
}

/* Prevent cards from expanding beyond container */
.map-list-scrollable > .card > * {
  min-width: 0;
  max-width: 100%;
}


.map-job-card {
  padding: var(--card-padding);
  margin-bottom: 1rem;
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  background-color: var(--bg-primary);
  transition: all 0.2s;
  cursor: pointer;
}

.map-job-card:last-child {
  margin-bottom: 0;
}

.map-job-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.04);
  border-color: var(--accent);
}

[data-theme="dark"] .map-job-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}


.map-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.map-card-header h3 {
  font-size: 1.1rem;
  margin-bottom: 0;
  color: var(--text-primary);
}

.map-card-title-group {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  flex: 1;
  min-width: 0;
}

.map-card-title-group h3 {
  margin: 0;
}

.map-card-title-group .map-card-company {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.map-card-logo {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.map-card-logo img,
.map-card-logo svg {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.map-card-meta {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  align-items: flex-start;
  margin-bottom: 0.75rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.map-card-description {
  margin-bottom: 1rem;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-primary);
}

.map-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-soft);
}

.map-card-company {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.95rem;
}

.map-card-actions-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.map-card-actions-row .card-link {
  color: var(--accent);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s;
}

.map-card-actions-row .card-link:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

.map-card-actions-row span {
  color: var(--text-secondary);
  font-size: 0.75rem;
}

.map-card-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.map-card-date {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-right: 0.5rem;
}

/* Design 1 Card Styles */
.map-job-card-design1 {
  /* Inherits base .map-job-card styles */
}

.map-card-header-design1 {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.75rem;
}

.map-card-header-design1:has(.map-card-header-top) {
  display: flex;
  flex-direction: column;
}

.map-card-name-section-design1 {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 1;
}

.map-card-name-design1 {
  font-size: 1.125rem;
  font-weight: 700;
  margin: 0;
  color: var(--text-primary);
}

.map-card-backpacker-design1 {
  font-size: 0.875rem;
  color: var(--text-secondary);
  font-weight: 400;
}

.map-card-avatar-design1 {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--accent);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 1rem;
  flex-shrink: 0;
  text-transform: uppercase;
}

.map-card-meta-design1 {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--text-primary);
}

.map-card-meta-design1 .meta-line {
  color: var(--text-primary);
}

.map-card-meta-design1 .meta-line strong {
  font-weight: 600;
  color: var(--text-primary);
}

.map-card-meta-design1 .role-tag {
  display: inline-block;
  margin-left: 0.25rem;
}

.map-card-meta-design1 .role-tag:first-of-type {
  margin-left: 0.5rem;
}

.map-card-description-design1 {
  margin-bottom: 0.75rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--text-primary);
  font-style: italic;
}

[data-design="2"] .map-card-description-design1 {
  font-style: normal;
}

.map-card-location-section-design1 {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 0;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-soft);
}

.location-row-design1 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
}

.location-label-design1 {
  color: var(--text-secondary);
  font-weight: 500;
}

.location-value-design1 {
  color: var(--text-primary);
  font-weight: 600;
}

.location-badges-design1 {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.location-badge-design1 {
  display: inline-block;
  padding: 0.375rem 0.75rem;
  background-color: var(--bg-muted);
  color: var(--text-primary);
  border: 1px solid var(--border-soft);
  border-radius: 6px;
  font-size: 0.8125rem;
  font-weight: 500;
}

.map-card-footer-design1 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-soft);
}

.map-card-date-design1 {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.map-card-save-design1 {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
}

.map-card-save-design1:hover {
  color: var(--accent);
}

/* Design 2 Card Styles - Modern, Clean & Simple */
.map-job-card-design2 {
  /* Inherits base .map-job-card styles */
}

.map-card-header-design2 {
  margin-bottom: 1rem;
}

.map-card-header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
  gap: 0.75rem;
  width: 100%;
}

.map-card-header-design1 .map-card-header-top {
  width: 100%;
}

.map-card-header-top .map-card-name-design1 {
  flex: 1;
  min-width: 0;
}

.map-card-header-top .map-card-badge-available {
  flex-shrink: 0;
}

.map-card-name-design2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
  color: var(--text-primary);
  flex: 1;
}

.map-card-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.625rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}

.map-card-badge-available {
  background-color: #dcfce7;
  color: #166534;
}

[data-theme="dark"] .map-card-badge-available {
  background-color: #166534;
  color: #dcfce7;
}

.map-card-badge-location,
.map-card-badge-work {
  background-color: var(--bg-muted);
  color: var(--text-secondary);
  border: 1px solid var(--border-soft);
}

.map-card-location-badges {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.map-card-location-section {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.75rem;
  margin-bottom: 0.75rem;
}

.location-row {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  flex-wrap: wrap;
}

.location-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
  min-width: fit-content;
}

.location-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  flex: 1;
}

.location-pill {
  display: inline-block;
  padding: 0.375rem 0.75rem;
  background-color: var(--bg-muted);
  color: var(--text-primary);
  border: 1px solid var(--border-soft);
  border-radius: 6px;
  font-size: 0.8125rem;
  font-weight: 500;
  transition: all 0.2s;
}

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

.map-card-description-design2 {
  margin-bottom: 1rem;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

.map-card-roles-design2 {
  margin-bottom: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-soft);
}

.roles-label-design2 {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.roles-badges-design2 {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
}

.role-badge {
  display: inline-block;
  padding: 0.375rem 0.75rem;
  background-color: var(--accent);
  color: #ffffff;
  border-radius: 6px;
  font-size: 0.8125rem;
  font-weight: 500;
}

.map-card-footer-design2 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-soft);
}

.map-card-date-design2 {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.map-card-save-design2 {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
  border-radius: 4px;
}

.map-card-save-design2:hover {
  color: var(--accent);
  background-color: var(--bg-muted);
}

/* Design 3 Card Styles - Duplicate of Design 2 (original) */
.map-job-card-design3 {
  /* Inherits base .map-job-card styles */
}

.map-card-header-design3 {
  margin-bottom: 1rem;
}

.map-card-header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
  gap: 0.75rem;
}

.map-card-name-design3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
  color: var(--text-primary);
  flex: 1;
}

.map-card-description-design3 {
  margin-bottom: 1rem;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

.map-card-roles-design3 {
  margin-bottom: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-soft);
}

.roles-label-design3 {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.roles-badges-design3 {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
}

.map-card-footer-design3 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-soft);
}

.map-card-date-design3 {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.map-card-save-design3 {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
  border-radius: 4px;
}

.map-card-save-design3:hover {
  color: var(--accent);
  background-color: var(--bg-muted);
}

/* Design 2: Grid-based Candidate Detail */
.candidate-detail-header-design2 {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid var(--border-soft);
}

.candidate-detail-header-design2 h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.candidate-info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.info-grid-item {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 1rem;
  background-color: var(--bg-muted);
}

.info-grid-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
  line-height: 1;
}

.info-grid-content {
  flex: 1;
  min-width: 0;
}

.info-grid-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.info-grid-value {
  font-size: 0.9375rem;
  color: var(--text-primary);
  font-weight: 500;
  word-wrap: break-word;
}

/* Candidate Info Pills */
.candidate-info-pills {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem 1.5rem;
  margin-top: 1.5rem;
  margin-bottom: 2rem;
}

.info-pill-section {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* Responsive adjustments for candidate info pills */
@media (max-width: 768px) {
  .candidate-info-pills,
  .candidate-detail-meta-new {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .candidate-info-pills,
  .candidate-detail-meta-new {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

/* Responsive: Keep 2 columns on all screens */
@media (max-width: 600px) {
  .candidate-info-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
}

.map-icon-btn {
  width: 32px;
  height: 32px;
  border: 1px solid var(--border-soft);
  background-color: var(--bg-primary);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-secondary);
  transition: all 0.2s;
}

.map-icon-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background-color: var(--bg-muted);
}

.map-view-column {
  display: flex;
  flex-direction: column;
  background-color: var(--bg-primary);
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  overflow: hidden;
}

.map-header-info {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border-soft);
  background-color: var(--bg-primary);
}

.map-property-count {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.map-container {
  flex: 1;
  position: relative;
  background-color: var(--bg-muted);
}

.map-placeholder-large {
  width: 100%;
  height: 100%;
  min-height: calc(100vh - 300px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  position: relative;
  background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf0 100%);
}

.map-placeholder-large p {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.map-subtitle {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--text-secondary);
}

.map-markers {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
}

.map-marker {
  position: absolute;
  width: 12px;
  height: 12px;
  background-color: var(--accent);
  border-radius: 50%;
  border: 2px solid #ffffff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.map-marker:nth-child(1) { top: 20%; left: 30%; }
.map-marker:nth-child(2) { top: 35%; left: 45%; }
.map-marker:nth-child(3) { top: 50%; left: 25%; }
.map-marker:nth-child(4) { top: 65%; left: 60%; }
.map-marker:nth-child(5) { top: 40%; left: 70%; }

/* AI View Styles */
.ai-view-section {
  padding: var(--section-vertical) 0;
}

.ai-view-main {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
  max-width: var(--container-max-width);
  margin: 0 auto;
}

.ai-chat-container {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  height: 600px;
}

.ai-chat-header {
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-soft);
}

.ai-chat-header h2 {
  margin-bottom: 0.5rem;
}

.ai-chat-header p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.ai-chat-messages {
  flex: 1;
  overflow-y: auto;
  margin-bottom: 1rem;
}

.ai-message {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.ai-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--accent);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.875rem;
  flex-shrink: 0;
}

.ai-text {
  flex: 1;
}

.ai-text p {
  margin-bottom: 0.5rem;
  line-height: 1.6;
  color: var(--text-primary);
}

.ai-text ul {
  margin: 0.5rem 0;
  padding-left: 1.5rem;
  color: var(--text-primary);
}

.ai-text li {
  margin-bottom: 0.25rem;
}

.ai-chat-input {
  display: flex;
  gap: 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-soft);
}

.ai-input {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-soft);
  border-radius: 6px;
  font-size: 1rem;
  font-family: inherit;
  color: var(--text-primary);
}

.ai-input:focus {
  outline: none;
  border-color: var(--accent);
}

.ai-suggestions-panel h3 {
  margin-bottom: 1.5rem;
  font-size: 1.25rem;
}

.ai-suggestion-cards {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.ai-suggestions-panel .ai-suggestion-cards .map-job-card {
  margin-bottom: 1rem;
}

.ai-suggestions-panel .ai-suggestion-cards .map-job-card:last-child {
  margin-bottom: 0;
}

.ai-suggestion-card {
  padding: 1.5rem;
}

.ai-suggestion-card h4 {
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.ai-suggestion-card p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Auth Section */
.auth-section {
  padding: 4rem 0;
  min-height: calc(100vh - 200px);
  display: flex;
  align-items: center;
  background-color: var(--bg-muted);
}

.auth-container {
  max-width: 480px;
  margin: 0 auto;
  background-color: var(--bg-primary);
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  padding: 2.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.auth-header {
  text-align: center;
  margin-bottom: 2rem;
}

.auth-header h1,
.auth-header h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.auth-subtitle {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.auth-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border-soft);
}

.auth-tab {
  flex: 1;
  padding: 0.875rem 1rem;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  color: var(--text-secondary);
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
  text-align: center;
}

.auth-tab:hover {
  color: var(--text-primary);
  background-color: var(--bg-muted);
}

.auth-tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
  font-weight: 600;
}

.auth-form-container {
  width: 100%;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Mobile responsive auth styling */
@media (max-width: 768px) {
  .auth-section {
    padding: 2rem 0;
    min-height: auto;
  }

  .auth-container {
    max-width: 100%;
    margin: 0 1rem;
    padding: 1.5rem;
  }

  .auth-header h1,
  .auth-header h2 {
    font-size: 1.5rem;
  }

  .auth-header {
    margin-bottom: 1.5rem;
  }

  .auth-tabs {
    margin-bottom: 1.5rem;
  }

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.form-group:last-child {
  margin-bottom: 0;
}

.form-group label {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"] {
  padding: 0.875rem 1rem;
  border: 1px solid var(--border-soft);
  border-radius: 6px;
  font-size: 1rem;
  font-family: inherit;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  transition: border-color 0.2s;
}

.form-group input:focus {
  outline: none;
  border-color: var(--accent);
}

.form-hint {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: -0.25rem;
}

.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  color: var(--text-primary);
}

.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--accent);
}

.checkbox-label span {
  line-height: 1.4;
}

.checkbox-label a {
  color: var(--accent);
  text-decoration: none;
}

.checkbox-label a:hover {
  text-decoration: underline;
}

.forgot-link {
  color: var(--accent);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.forgot-link:hover {
  color: var(--accent-dark);
  text-decoration: underline;
}

.btn-full {
  width: 100%;
  justify-content: center;
}

.btn-ghost {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.auth-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 0.5rem 0;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--border-soft);
}

.auth-divider span {
  padding: 0 1rem;
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.form-error {
  background-color: #fee2e2;
  color: #dc2626;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  font-size: 0.875rem;
  border: 1px solid #fecaca;
}

.form-group select {
  padding: 0.875rem 1rem;
  border: 1px solid var(--border-soft);
  border-radius: 6px;
  font-size: 1rem;
  font-family: inherit;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  cursor: pointer;
  transition: border-color 0.2s;
}

.form-group select:focus {
  outline: none;
  border-color: var(--accent);
}

/* Navigation User Menu */
.nav-link {
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
  position: relative;
  font-weight: 500;
}

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

/* Ensure nav-actions links use proper text color */
.nav-actions .nav-link {
  color: var(--text-primary);
}

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

/* Ensure all links in navbar use proper text color */
.nav a.nav-link,
.nav .nav-link,
.nav-actions a.nav-link {
  color: var(--text-primary);
}

/* Ensure all links in nav-actions use proper text color, except dropdown items */
.nav-actions > a:not(.btn-primary):not(.dropdown-item),
.nav-actions a:not(.dropdown-item):not(.btn-primary) {
  color: var(--text-primary);
}

.nav-actions > a:not(.btn-primary):not(.dropdown-item):hover,
.nav-actions a:not(.dropdown-item):not(.btn-primary):hover {
  color: var(--accent);
}

.nav-user-menu {
  position: relative;
}

.nav-user-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  transition: background-color 0.2s;
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--text-primary);
}

.nav-user-btn:hover {
  background-color: var(--bg-muted);
}

.nav-user-btn svg {
  color: var(--text-primary);
  stroke: var(--text-primary);
}

.nav-user-name {
  font-weight: 500;
  color: var(--text-primary);
}

.nav-badge {
  display: inline-block;
  background-color: var(--accent);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.125rem 0.5rem;
  border-radius: 12px;
  margin-left: 0.25rem;
}

.nav-user-dropdown {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  background-color: var(--bg-primary);
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  min-width: 200px;
  z-index: 1000;
  overflow: hidden;
}

.dropdown-item {
  display: block;
  padding: 0.75rem 1rem;
  color: var(--text-primary) !important;
  text-decoration: none;
  font-size: 0.9rem;
  transition: background-color 0.2s;
}

/* Ensure dropdown items in nav-user-dropdown are black (white background) */
.nav-user-dropdown .dropdown-item {
  color: var(--text-primary) !important;
}

.dropdown-item:hover {
  background-color: var(--bg-muted);
}

.dropdown-divider {
  height: 1px;
  background-color: var(--border-soft);
  margin: 0.5rem 0;
}

/* Listings Header */
.listings-header {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.listings-header h2 {
  margin: 0;
  font-size: 1.5rem;
}

.results-count {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin: 0;
}

/* About Page */
.about-content {
  padding: var(--section-vertical) 0;
}

.about-section {
  margin-bottom: 3rem;
}

.about-section h2 {
  margin-bottom: 1.5rem;
}

.about-section p {
  margin-bottom: 1rem;
  line-height: 1.7;
  color: var(--text-primary);
}

.about-list {
  list-style: none;
  padding-left: 0;
  margin-top: 1rem;
}

.about-list li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
  color: var(--text-primary);
  line-height: 1.6;
}

.about-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 600;
}

.about-cta {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

/* Footer */
footer {
  border-top: none;
  padding: 2rem 0;
  margin-top: var(--section-vertical);
  background-color: var(--accent);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-brand {
  font-size: 1.125rem;
  font-weight: 700;
  color: #ffffff;
}

.footer-copyright {
  font-size: 0.875rem;
  color: #ffffff;
  opacity: 0.9;
}

.footer-right {
  display: flex;
  gap: 1.5rem;
}

.footer-right a {
  color: #ffffff;
  text-decoration: none;
  font-size: 0.875rem;
  transition: opacity 0.2s;
  opacity: 0.9;
}

.footer-right a:hover {
  opacity: 1;
}

/* Dashboard Styles */
.dashboard-section {
  padding: var(--section-vertical) 0;
}

.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.stat-card {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  padding: 1.5rem;
  text-align: center;
}

.stat-value {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.dashboard-actions {
  margin-bottom: 3rem;
}

.dashboard-actions h2 {
  margin-bottom: 1.5rem;
}

.action-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.action-card {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  padding: 2rem;
  text-decoration: none;
  color: var(--text-primary);
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.action-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.action-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.action-card h3 {
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.action-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.dashboard-activity {
  margin-bottom: 2rem;
}

.dashboard-activity h2 {
  margin-bottom: 1.5rem;
}

.activity-list {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  padding: 1.5rem;
}

.activity-empty {
  text-align: center;
  color: var(--text-secondary);
  padding: 2rem;
}

.activity-empty a {
  color: var(--text-primary) !important;
  text-decoration: none !important;
}

.activity-item {
  display: flex;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-soft);
}

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

.activity-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.activity-content {
  flex: 1;
}

.activity-title {
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.activity-meta {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* Form Section Styles */
.form-section {
  padding: var(--section-vertical) 0;
}

.job-form {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.form-section-block {
  width: 100%;
  max-width: 100%;
  margin-bottom: 2rem;
  background-color: var(--bg-primary);
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  padding: 2rem;
  box-sizing: border-box;
}

.form-section-block h2 {
  margin-bottom: 2rem;
  margin-top: 0;
  font-size: 1.5rem;
}

.form-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.75rem;
  align-items: flex-start;
}

.form-row .form-group {
  flex: 0 1 auto;
}

.form-row .form-group select,
.form-row .form-group input[type="text"] {
  width: auto;
  min-width: fit-content;
}

.form-row .form-group input[type="number"] {
  width: 6em;
}

/* Postcode input - fixed width for 4 digits */
#job-postcode {
  width: 12ch !important;
  max-width: 12ch !important;
  min-width: 12ch !important;
  flex-shrink: 0;
}

/* Override form-row text input defaults for postcode */
.form-row .form-group #job-postcode {
  width: 12ch !important;
  min-width: 12ch !important;
}

.form-group textarea {
  padding: 0.875rem 1rem;
  border: 1px solid var(--border-soft);
  border-radius: 6px;
  font-size: 1rem;
  font-family: inherit;
  resize: vertical;
  min-height: 100px;
  transition: border-color 0.2s;
}

.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.form-group input[type="file"] {
  padding: 0.5rem;
  border: 1px solid var(--border-soft);
  border-radius: 6px;
  font-size: 0.9rem;
  font-family: inherit;
}

.form-group input[type="number"] {
  padding: 0.875rem 1rem;
  border: 1px solid var(--border-soft);
  border-radius: 6px;
  font-size: 1rem;
  font-family: inherit;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  transition: border-color 0.2s;
  width: 100%;
  box-sizing: border-box;
}

.form-group input[type="number"]:focus {
  outline: none;
  border-color: var(--accent);
}

.pay-input-group {
  display: flex;
  gap: 0.5rem;
  width: 100%;
}

.pay-input-group input[type="number"] {
  flex: 1;
  min-width: 0;
}

.pay-input-group select {
  flex: 0 0 auto;
  min-width: 130px;
}

.form-actions-inline {
  margin-top: 0.5rem;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

/* Rich Text Editor Styles */
.rich-text-editor {
  border: 1px solid var(--border-soft);
  border-radius: 6px;
  background-color: var(--bg-primary);
  overflow: hidden;
  transition: border-color 0.2s;
}

.rich-text-editor:focus-within {
  border-color: var(--accent);
}

.rich-text-toolbar {
  display: flex;
  gap: 0.5rem;
  padding: 0.5rem;
  border-bottom: 1px solid var(--border-soft);
  background-color: var(--bg-muted);
}

.toolbar-btn {
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border-soft);
  border-radius: 4px;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
}

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

.toolbar-btn:active {
  transform: scale(0.95);
}

.toolbar-btn strong {
  font-weight: 700;
}

.toolbar-btn em,
.toolbar-btn i {
  font-style: italic;
  font-weight: 600;
}

.toolbar-btn u {
  text-decoration: underline;
  font-weight: 600;
}

.rich-text-content {
  min-height: 200px;
  max-height: 400px;
  overflow-y: auto;
  padding: 0.875rem 1rem;
  font-size: 1rem;
  font-family: inherit;
  line-height: 1.6;
  color: var(--text-primary);
  outline: none;
}

.rich-text-content:empty:before {
  content: attr(data-placeholder);
  color: var(--text-secondary);
  opacity: 0.6;
}

.rich-text-content.has-content:empty:before {
  content: '';
}

.rich-text-content ul {
  margin: 0.5rem 0;
  padding-left: 1.5rem;
  list-style-type: disc;
}

.rich-text-content li {
  margin: 0.25rem 0;
}

.rich-text-content strong,
.rich-text-content b {
  font-weight: 700;
}

.rich-text-content em,
.rich-text-content i {
  font-style: italic;
}

.rich-text-content u {
  text-decoration: underline;
}

.rich-text-content p {
  margin: 0.5rem 0;
}

.rich-text-content p:first-child {
  margin-top: 0;
}

.rich-text-content p:last-child {
  margin-bottom: 0;
}

.rich-text-footer {
  display: flex;
  justify-content: flex-end;
  padding: 0.5rem 1rem;
  border-top: 1px solid var(--border-soft);
  background-color: var(--bg-muted);
}

.word-count {
  font-size: 0.875rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.responsibility-item,
.benefit-item,
.tag-item {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  align-items: center;
}

.responsibility-input,
.benefit-input,
.tag-input {
  flex: 1;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border-soft);
  border-radius: 6px;
  font-size: 0.9rem;
  font-family: inherit;
}

.images-preview {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.image-preview-item {
  position: relative;
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 4/3;
}

.image-preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.btn-remove-image {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background-color: rgba(220, 38, 38, 0.9);
  color: white;
  border: none;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  cursor: pointer;
  font-size: 1.2rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s;
}

.btn-remove-image:hover {
  background-color: rgba(220, 38, 38, 1);
}

.btn-remove {
  background-color: #fee2e2;
  color: #dc2626;
  border: none;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  cursor: pointer;
  font-size: 1.2rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s;
}

.btn-remove:hover {
  background-color: #fecaca;
}

.duration-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
}

.duration-option {
  cursor: pointer;
}

.duration-option input[type="radio"] {
  display: none;
}

.duration-card {
  border: 2px solid var(--border-soft);
  border-radius: 8px;
  padding: 1.5rem;
  text-align: center;
  transition: border-color 0.2s, background-color 0.2s;
}

.duration-option input[type="radio"]:checked + .duration-card {
  border-color: var(--accent);
  background-color: #eff6ff;
}

.duration-days {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.duration-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
}

.duration-note {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-top: 0.5rem;
  font-weight: 400;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  margin-top: 2rem;
}

/* Job Management Styles */
.jobs-management-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.job-management-card {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  padding: 1.5rem;
}

.job-mgmt-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
  gap: 1rem;
}

.job-mgmt-header h3 {
  margin-bottom: 0.5rem;
}

.job-mgmt-meta {
  display: flex;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
  flex-wrap: wrap;
}

.job-status {
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: capitalize;
}

.job-status-active {
  background-color: #d1fae5;
  color: #065f46;
}

.job-status-pending {
  background-color: #fef3c7;
  color: #92400e;
}

.job-status-expired {
  background-color: #fee2e2;
  color: #991b1b;
}

.job-mgmt-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.btn-danger {
  color: #dc2626;
}

.btn-danger:hover {
  background-color: #fee2e2;
}

.job-mgmt-footer {
  display: flex;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
  padding-top: 1rem;
  border-top: 1px solid var(--border-soft);
}

/* Candidate Profile Styles */
.experience-item,
.education-item {
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  position: relative;
}

.experience-item .btn-remove,
.education-item .btn-remove {
  position: absolute;
  top: 1rem;
  right: 1rem;
}

.skills-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.skill-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--bg-muted);
  border: 1px solid var(--border-soft);
  border-radius: 20px;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.skill-remove {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 1.2rem;
  line-height: 1;
  padding: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color 0.2s;
}

.skill-remove:hover {
  background-color: var(--border-soft);
}

/* Shortlist Styles */
.shortlist-tabs {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  border-bottom: 2px solid var(--border-soft);
}

.shortlist-tab {
  background: none;
  border: none;
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: color 0.2s;
}

.shortlist-tab:hover {
  color: var(--text-primary);
}

.shortlist-tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.shortlist-content {
  min-height: 400px;
}

/* Job Detail Page Styles */
.job-detail-page {
  padding: var(--section-vertical) 0;
}

.job-detail-banner {
  position: relative;
  margin-bottom: 2rem;
}

.company-banner-placeholder {
  width: 100%;
  height: 200px;
  background-color: var(--bg-muted);
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.company-logo-placeholder {
  position: absolute;
  top: 150px;
  right: 2rem;
  width: 100px;
  height: 100px;
  background-color: var(--bg-primary);
  border: 2px solid var(--border-soft);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 0.75rem;
  text-align: center;
  padding: 0.5rem;
}

.job-detail-main {
  max-width: 800px;
  margin: 0 auto;
}

.job-detail-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  text-decoration: underline;
}

.job-detail-quick-info {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
  font-size: 0.9rem;
  color: var(--text-primary);
}

.detail-info-item {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.job-detail-section {
  margin-bottom: 2rem;
}

.job-detail-section h2 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.job-detail-section p {
  line-height: 1.7;
  color: var(--text-primary);
}

.job-detail-list {
  list-style: none;
  padding-left: 0;
}

.job-detail-list li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
  line-height: 1.6;
}

.job-detail-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: bold;
  font-size: 1.2rem;
}

.job-detail-cta {
  background-color: var(--bg-muted);
  border-radius: 8px;
  padding: 2rem;
  text-align: center;
  margin: 3rem 0;
}

.job-detail-cta p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.btn-large {
  padding: 1rem 3rem;
  font-size: 1.1rem;
}

.job-detail-posted {
  text-align: left;
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin-top: 2rem;
}

/* Modal Styles */
.modal {
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background-color: var(--bg-primary);
  border-radius: 8px;
  padding: 2rem;
  max-width: 600px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 2rem;
  font-weight: bold;
  color: var(--text-secondary);
  cursor: pointer;
  line-height: 1;
}

.modal-close:hover {
  color: var(--text-primary);
}

.modal-content h2 {
  margin-bottom: 1.5rem;
}

/* Messages Styles */
.messages-section {
  padding: var(--section-vertical) 0;
}

.messages-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 2rem;
  height: 600px;
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  overflow: hidden;
}

.messages-list {
  border-right: 1px solid var(--border-soft);
  overflow-y: auto;
  background-color: var(--bg-muted);
}

.conversation-item {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  border-bottom: 1px solid var(--border-soft);
  cursor: pointer;
  transition: background-color 0.2s;
}

.conversation-item:hover {
  background-color: var(--bg-primary);
}

.conversation-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--accent);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  flex-shrink: 0;
}

.conversation-info {
  flex: 1;
  min-width: 0;
}

.conversation-name {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.conversation-preview {
  font-size: 0.875rem;
  color: var(--text-secondary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.conversation-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.25rem;
}

.conversation-time {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.message-conversation {
  display: flex;
  flex-direction: column;
  background-color: var(--bg-primary);
}

.conversation-header {
  padding: 1rem;
  border-bottom: 1px solid var(--border-soft);
}

.conversation-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.message {
  max-width: 70%;
  display: flex;
  flex-direction: column;
}

.message-sent {
  align-self: flex-end;
}

.message-received {
  align-self: flex-start;
}

.message-content {
  padding: 0.75rem 1rem;
  border-radius: 8px;
  margin-bottom: 0.25rem;
}

.message-sent .message-content {
  background-color: var(--accent);
  color: #ffffff;
}

.message-received .message-content {
  background-color: var(--bg-muted);
  color: var(--text-primary);
}

.message-time {
  font-size: 0.75rem;
  color: var(--text-secondary);
  padding: 0 0.5rem;
}

.conversation-input {
  padding: 1rem;
  border-top: 1px solid var(--border-soft);
}

.conversation-input form {
  display: flex;
  gap: 0.5rem;
}

.conversation-input input {
  flex: 1;
  padding: 0.75rem;
  border: 1px solid var(--border-soft);
  border-radius: 6px;
  font-size: 0.9rem;
}

/* Candidate Profile View Styles */
.candidate-profile-view {
  padding: var(--section-vertical) 0;
}

.candidate-profile-header {
  margin-bottom: 3rem;
}

.profile-header-top {
  margin-bottom: 0.5rem;
}

.profile-anonymous {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.candidate-profile-header h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.profile-user-id {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.profile-meta-info {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-primary);
}

.candidate-profile-content {
  max-width: 900px;
}

.profile-section {
  margin-bottom: 2.5rem;
}

.profile-section h2 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.profile-section-title {
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.profile-section p {
  line-height: 1.7;
  color: var(--text-primary);
}

.profile-experience-item,
.profile-education-item {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-soft);
}

.profile-experience-item:last-child,
.profile-education-item:last-child {
  border-bottom: none;
}

.experience-header {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 0.5rem;
}

.experience-header strong {
  font-size: 1.1rem;
  font-weight: 600;
}

.experience-dates {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
}

.experience-responsibilities {
  list-style: none;
  padding-left: 0;
  margin-top: 0.5rem;
}

.experience-responsibilities li {
  padding: 0.25rem 0;
  padding-left: 1.5rem;
  position: relative;
  line-height: 1.6;
}

.experience-responsibilities li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: bold;
  font-size: 1.2rem;
}

.profile-education-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.profile-education-item strong {
  font-size: 1rem;
  font-weight: 600;
}

.profile-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-soft);
}

.profile-action-link {
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.profile-action-link:hover {
  color: var(--accent);
  text-decoration: underline;
}

.status-select {
  padding: 0.5rem;
  border: 1px solid var(--border-soft);
  border-radius: 6px;
  font-size: 0.875rem;
  font-family: inherit;
}

.applications-filters {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
}

.applications-filters .select {
  padding: 0.75rem;
  border: 1px solid var(--border-soft);
  border-radius: 6px;
  font-size: 0.9rem;
  font-family: inherit;
  min-width: 200px;
}

/* Responsive Design */
@media (max-width: 968px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 968px) {
  .jobs-two-column {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .jobs-list-column {
    max-height: 400px;
  }
  
  .job-detail-column {
    max-height: none;
  }
  
  .map-two-column {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .map-list-column {
    max-height: 400px;
  }
  
  .ai-view-main {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .hero {
    padding: 1rem 0 0.5rem 0;
  }
  
  .hero-search-form {
    flex-direction: column;
  }
  
  .hero-search-form .btn {
    width: 100%;
  }
  
  .btn-view-select {
    width: 100%;
  }
  
  .search-type-dropdown {
    position: relative;
    width: 100%;
    margin-bottom: 0.5rem;
    border: 1px solid var(--border-soft);
    border-radius: 6px;
    padding: 0.875rem 1.75rem 0.875rem 0.75rem;
    min-width: auto;
  }
  
  .search-icon {
    left: 1rem;
  }
  
  .search-input {
    padding-left: 3rem;
  }
  
  
  .hero-search-widget {
    width: 100%;
    max-width: none;
  }
  
  /* Version-specific mobile overrides */
  .hero-search-v1 .hero-search-form,
  .hero-search-v2 .hero-search-form {
    flex-direction: column;
  }
  
  /* View toggle mobile */
  .view-toggle-container {
    justify-content: center;
    margin-top: 0.5rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }
  
  .map-state-selector {
    justify-content: center;
    order: 1;
  }
  
  .view-toggle {
    width: 100%;
    max-width: 100%;
    order: 2;
  }
  
  .view-toggle-btn {
    flex: 1;
    justify-content: center;
    padding: 0.75rem 0.5rem;
  }
  
  .hero h1,
  .hero .hero-title {
    text-align: center;
    padding: 0 1rem;
    margin-bottom: 1.5rem;
  }
  
  .promo-boxes-grid {
    grid-template-columns: 1fr;
  }
  
  .promo-box {
    padding: 2rem;
    min-height: 140px;
  }
  
  .promo-box-content h3 {
    font-size: 1.25rem;
  }
  
  .jobs-search-form {
    flex-direction: column;
  }
  
  .location-input {
    max-width: 100%;
  }
  
  .hero-meta {
    flex-direction: column;
    gap: 0.75rem;
    align-items: flex-start;
  }
  
  .card-grid {
    grid-template-columns: 1fr;
  }
  
  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  
  .listings-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  .listings-header-right {
    align-items: flex-start;
    width: 100%;
  }
  
  .footer-content {
    flex-direction: column;
  }
  
  .footer-right {
    flex-wrap: wrap;
  }
  
  .nav-content {
    gap: 1rem;
  }
  
  .nav-actions {
    gap: 0.5rem;
  }
  
  .btn {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
  }
  
  .about-cta {
    flex-direction: column;
  }
  
  .about-cta .btn {
    width: 100%;
    text-align: center;
  }
  
  .candidate-detail-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .candidate-detail-header-new {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }

  .candidate-detail-avatar-large-new {
    align-self: flex-end;
  }
  
  .job-detail-header h2 {
    font-size: 1.5rem;
  }
  
  .auth-container {
    padding: 1.5rem;
    margin: 1rem;
  }
  
  .auth-header h1 {
    font-size: 1.5rem;
  }
  
  .auth-tab {
    padding: 0.75rem 0.5rem;
    font-size: 0.9rem;
  }

  /* Navigation — hamburger replaces wrapping layout */
  .nav-hamburger {
    display: flex;
  }

  .nav-links {
    display: none;
  }

  .nav-actions {
    display: none;
  }

  .nav-content {
    flex-wrap: nowrap;
    gap: 0;
    justify-content: space-between;
    align-items: center;
  }

  .nav-brand {
    min-width: unset;
  }

  .theme-toggle {
    min-width: 44px;
    min-height: 44px;
  }

  /* Typography adjustments */
  h1 {
    font-size: 1.75rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  h3 {
    font-size: 1.125rem;
  }

  /* Form adjustments */
  .form-group {
    margin-bottom: 1rem;
  }

  input[type="text"],
  input[type="email"],
  input[type="password"],
  select,
  textarea {
    font-size: 16px; /* Prevents zoom on iOS */
  }

  /* jobs.html — prevent list and map from being taller than viewport on phones */
  .jobs-list-column {
    min-height: 300px;
    height: auto;
  }

  .map-view-full {
    min-height: 300px;
    height: calc(100vh - 160px);
  }
}

/* ============================================
   SMALL MOBILE (480px and below)
   ============================================ */
@media (max-width: 480px) {
  .container {
    padding: 0 0.75rem;
  }

  .nav {
    padding: 0.75rem 0;
  }

  .nav-brand a {
    font-size: 1.125rem;
  }

  .btn {
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
  }

  .card {
    padding: 1rem;
  }

  .card-header h3 {
    font-size: 1.125rem;
  }

  .card-meta-row {
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-start;
  }

  h1 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }

  h2 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .section-header .btn {
    width: 100%;
  }
}

/* ============================================
   index.html — Hero search form: tablet gap fix
   Applies only between 641px and 768px.
   Below 641px: handled by existing max-width: 640px block.
   Above 768px: desktop layout restored automatically.
   ============================================ */
@media (min-width: 641px) and (max-width: 768px) {
  .hero-search-form {
    flex-direction: column;
  }

  .hero-search-form .btn {
    width: 100%;
  }

  .btn-view-select {
    width: 100%;
  }

  .search-type-dropdown {
    position: relative;
    width: 100%;
    margin-bottom: 0.5rem;
    border: 1px solid var(--border-soft);
    border-radius: 6px;
    padding: 0.875rem 1.75rem 0.875rem 0.75rem;
    min-width: auto;
  }

  .search-icon {
    left: 1rem;
  }

  .search-input {
    padding-left: 3rem;
  }

  .hero-search-widget {
    width: 100%;
    max-width: none;
  }
  
  /* View toggle on tablet - allow wrapping */
  .view-toggle-container {
    flex-wrap: wrap;
    gap: 0.75rem;
  }
  
  .map-state-selector {
    flex: 0 1 auto;
  }

  .promo-boxes-grid {
    grid-template-columns: 1fr;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   jobs.html — detail column padding: reduce on mid-size tablets
   Applies only between 641px and 968px.
   ============================================ */
@media (min-width: 641px) and (max-width: 968px) {
  .job-detail-column {
    padding: 1rem;
  }
}

/* ============================================
   LARGE DESKTOP (1440px and above)
   ============================================ */
@media (min-width: 1440px) {
  .container {
    max-width: var(--container-max-width);
  }

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

/* ============================================
   EXTRA LARGE DESKTOP (1920px and above)
   ============================================ */
@media (min-width: 1920px) {
  .container {
    max-width: var(--container-max-width);
  }
}

/* ============================================
   MAP STATE SELECTOR
   ============================================ */
.map-state-selector {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 0.75rem;
}

.state-btn {
  background: white;
  border: 1px solid var(--border-soft);
  border-radius: 6px;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 60px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.state-btn:hover {
  background: var(--bg-muted);
  border-color: var(--accent);
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.state-btn:active {
  transform: translateY(0);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
  .map-state-selector {
    gap: 0.375rem;
  }
  
  .state-btn {
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
    min-width: 50px;
  }
}

/* Map State Selector Overlay (horizontal next to zoom controls) */
.map-state-selector-overlay {
  position: absolute;
  top: 0.625rem;
  left: 3.5rem;
  z-index: 1000;
  display: flex;
  flex-direction: row;
  gap: 0.375rem;
  background: white;
  border-radius: 8px;
  padding: 0.5rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.state-btn-overlay {
  background: white;
  border: 1px solid var(--border-soft);
  border-radius: 6px;
  padding: 0.375rem 0.625rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  text-align: center;
  font-family: inherit;
}

.state-btn-overlay:hover {
  background: var(--bg-muted);
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.state-btn-overlay:active {
  transform: translateY(0);
  box-shadow: none;
}

@media (max-width: 768px) {
  .map-state-selector-overlay {
    flex-wrap: wrap;
    max-width: calc(100% - 1rem);
  }
  
  .state-btn-overlay {
    padding: 0.25rem 0.5rem;
    font-size: 0.6875rem;
  }
}

/* Custom circle marker */
.custom-circle-marker {
  background: transparent !important;
  border: none !important;
}

/* Custom cluster icon */
.custom-cluster-icon {
  background: transparent !important;
  border: none !important;
}


/* =====================================================
   NOTIFICATION BADGES & WIDGET
   ===================================================== */

/* ── Nav unread message badge ──────────────────────── */
.nav-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  background: #ef4444;
  color: #fff;
  border-radius: 9px;
  font-size: 0.6875rem;
  font-weight: 700;
  line-height: 1;
  margin-left: 6px;
  vertical-align: middle;
  flex-shrink: 0;
}

/* ── Notifications sidebar widget items ────────────── */
.notif-item {
  padding: 8px 0;
  border-bottom: 1px solid var(--border-soft);
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 6px;
  transition: background 0.1s;
}
.notif-item:last-child { border-bottom: none; }
.notif-item-unread {
  border-left: 3px solid var(--accent);
  padding-left: 8px;
  margin-left: -8px;
}
.notif-item-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  cursor: pointer;
}
.notif-item-title {
  font-size: 0.8125rem;
  color: var(--text-primary);
  font-weight: 500;
  line-height: 1.35;
}
.notif-item-time {
  font-size: 0.725rem;
  color: var(--text-secondary);
}
.notif-item:hover .notif-item-title { color: var(--accent); }
.notif-dismiss {
  flex-shrink: 0;
  background: none;
  border: none;
  padding: 2px 4px;
  cursor: pointer;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1;
  border-radius: 4px;
  opacity: 0.6;
  transition: opacity 0.15s, background 0.15s;
}
.notif-dismiss:hover {
  opacity: 1;
  background: var(--bg-muted);
  color: var(--text-primary);
}

/* =============================================
   TALENT CARD COMPONENT
   Used on: /index.html, /talent/, /community.html,
            /employer/candidates/saved/
   ============================================= */

.post-card {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  transition: box-shadow 0.2s, border-color 0.2s;
}
.post-card:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
[data-theme="dark"] .post-card { box-shadow: 0 1px 3px rgba(0,0,0,0.3); }
[data-theme="dark"] .post-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.4); }

/* =============================================
   TALENT CARD — HEADER & AVATAR
   ============================================= */

.post-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}
/* Avatar variant — header with avatar left, text right */
.post-card-header-with-avatar {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}
.post-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--bg-muted);
  border: 1px solid var(--border-soft);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-secondary);
  overflow: hidden;
}
.post-avatar-title-group {
  flex: 1;
  min-width: 0;
}
/* Name (h3) inside the card header */
.post-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.35;
  flex: 1;
  min-width: 0;
}
/* Role subtitle directly under name */
.post-subtitle {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  font-weight: 400;
  margin: 0.1rem 0 0.5rem;
}

/* =============================================
   TALENT CARD — BODY & META GRID
   ============================================= */

.post-info-rows {
  display: grid;
  grid-template-columns: 5rem 1fr;
  gap: 0.15rem 0.75rem;
  margin-bottom: 0.75rem;
}
.post-info-label {
  color: var(--text-secondary);
  font-weight: 400;
  font-size: 0.8125rem;
  white-space: nowrap;
}
.post-info-value {
  color: var(--text-secondary);
  font-weight: 400;
  font-size: 0.8125rem;
}
/* Full about / description text (talent browse cards) — 7-line clamp for consistent card height */
.post-body {
  font-size: 0.875rem;
  color: var(--text-primary);
  line-height: 1.6;
  margin: 0 0 0.75rem;
  min-height: 9.8rem;
  max-height: 9.8rem;
  display: -webkit-box;
  -webkit-line-clamp: 7;
  line-clamp: 7;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* Community cards: expand clamp when "See more" is active */
.post-body.expanded {
  max-height: none;
  -webkit-line-clamp: unset;
  line-clamp: unset;
  overflow: visible;
}
/* Truncated about text (saved-candidates cards) */
.post-card-body {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0.5rem 0 0.75rem;
  padding: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* =============================================
   TALENT CARD — FOOTER & ACTIONS
   No border-top — spacing achieved via padding-top only.
   ============================================= */

.post-footer,
.post-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0.75rem;
  font-size: 0.8125rem;
  flex-wrap: wrap;
  gap: 1rem;
}
.post-date,
.post-card-date {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--text-secondary);
  font-size: 0.875rem;
}
.post-actions,
.post-card-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-secondary);
  flex-wrap: wrap;
  flex-shrink: 0;
}
.post-actions a,
.post-card-actions a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.15s;
}
.post-actions a:hover,
.post-card-actions a:hover {
  color: var(--accent);
}
.post-action-divider { color: var(--border-soft); }

/* =============================================
   COMMUNITY CARD BADGE  (.post-badge)
   Used in community.html on Job and Hire cards
   ============================================= */
.post-badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  flex-shrink: 0;
  align-self: flex-start;
}
.post-badge.badge-job  { background-color: var(--accent); color: #ffffff; }
.post-badge.badge-hire { background-color: var(--accent); color: #ffffff; }

/* =============================================
   SEE MORE / SEE LESS BUTTON  (.post-see-more)
   Used in community.html post body truncation
   ============================================= */
.post-see-more {
  display: block;
  font-size: 0.8125rem;
  color: var(--accent);
  cursor: pointer;
  margin: -0.25rem 0 0.75rem;
  text-decoration: none;
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
}
.post-see-more:hover { text-decoration: underline; }

/* =============================================
   SAVE CANDIDATE BUTTON
   Used inside .post-actions / .post-card-actions
   ============================================= */

.save-candidate-btn {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: var(--text-secondary);
  font-size: inherit;
  font-family: inherit;
  transition: color 0.15s;
}
.save-candidate-btn:hover { color: var(--accent); }
.save-candidate-btn.saved { color: var(--accent); }
.save-candidate-btn:disabled { opacity: 0.6; cursor: wait; }

/* =============================================
   SAVED CANDIDATES PAGE — CARD LAYOUT EXTENSIONS
   Extra classes used only in /employer/candidates/saved/
   ============================================= */

.post-card-main {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1;
  margin: 0;
  padding: 0;
}
.post-card-title-group {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0;
  padding: 0;
}
.post-card-title-group h3 {
  margin: 0;
  padding: 0;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
}
.post-card-subtitle {
  font-size: 0.875rem;
  color: var(--text-secondary);
  padding: 0;
  background-color: transparent;
  border-radius: 0;
  margin: 0;
  display: inline-block;
}
.post-card-meta {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
}
/* Action buttons inside saved-candidates card footer */
.list-action-btn {
  padding: 0.5rem 1rem;
  border: 1px solid var(--border-soft);
  border-radius: 6px;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}
.list-action-btn:hover:not(.disabled) {
  background-color: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}
.list-action-btn.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
