/* ==========================================================================
   MY AGENCY FINDS — ACTIVELY HIRING STYLES
   Description: Premium layout, animations, cards, and forms for the
                "Actively Hiring" seasonal, temporary, and zero-hour job hub.
   ========================================================================== */

/* --- Design Tokens & Variables --- */
:root {
  --green-primary: #10B981;
  --green-hover: #059669;
  --green-glow: rgba(16, 185, 129, 0.25);
  --green-soft: rgba(16, 185, 129, 0.1);
  --glass-bg: rgba(255, 255, 255, 0.8);
  --glass-border: rgba(226, 232, 240, 0.8);
}

body.theme-dark {
  --glass-bg: rgba(19, 25, 38, 0.8);
  --glass-border: rgba(30, 41, 59, 0.8);
}

/* ==========================================================================
   1. FLOATING CTA CARD
   ========================================================================== */
.floating-cta-card {
  position: fixed;
  top: 95px;
  right: 24px;
  width: 320px;
  background-color: #22c55e;
  color: #ffffff;
  border-radius: var(--border-radius-md);
  padding: 16px 18px;
  box-shadow: 0 10px 25px -5px rgba(34, 197, 94, 0.4), var(--shadow-md);
  z-index: 999;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 6px;
  user-select: none;
  opacity: 1; /* Fallback: Visible by default if JS/animation fails */
}

/* Pulse animation runs by default on visible state */
.floating-cta-card {
  animation: ctaPulse 4s ease-in-out infinite;
}

/* Animated trigger state */
.floating-cta-card.animate-in {
  opacity: 1;
  animation: ctaSlideInBounce 1s cubic-bezier(0.25, 1, 0.5, 1) forwards,
             ctaPulse 4s ease-in-out infinite 1.2s;
}

/* If CTA is hidden during delay */
.floating-cta-card.cta-hidden {
  display: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Static visible override (no entrance slide-in animation) */
.floating-cta-card.cta-visible-static {
  opacity: 1 !important;
  transform: translate3d(0, 0, 0) scale(1) !important;
  display: flex !important;
  pointer-events: auto !important;
  animation: ctaPulse 4s ease-in-out infinite !important;
}

.floating-cta-card:hover {
  transform: scale(1.04) translateY(-2px) !important;
  box-shadow: 0 14px 30px -5px rgba(34, 197, 94, 0.5), 0 4px 12px rgba(0, 0, 0, 0.1);
}

.floating-cta-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.floating-cta-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.2);
  padding: 4px 10px;
  border-radius: var(--border-radius-pill);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.floating-cta-close-btn {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.75);
  font-size: 1.15rem;
  cursor: pointer;
  padding: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: color var(--transition-fast);
}

.floating-cta-close-btn:hover {
  color: #ffffff;
}

.floating-cta-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 1.25rem;
  line-height: 1.2;
}

.floating-cta-subtitle {
  font-size: 0.825rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
}

.floating-cta-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 8px;
}

.floating-cta-arrow {
  transition: transform var(--transition-fast);
}

.floating-cta-card:hover .floating-cta-arrow {
  transform: translateX(4px);
}

/* Animations */
@keyframes ctaSlideInBounce {
  0% {
    transform: translate3d(calc(-100vw + 24px), 200px, 0) scale(0.7);
    opacity: 0;
  }
  60% {
    transform: translate3d(30px, -15px, 0) scale(1.06);
    opacity: 1;
  }
  80% {
    transform: translate3d(-8px, 4px, 0) scale(0.98);
  }
  100% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 1;
  }
}

@keyframes ctaPulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 10px 25px -5px rgba(34, 197, 94, 0.4), var(--shadow-md);
  }
  50% {
    transform: scale(1.03);
    box-shadow: 0 12px 30px 4px rgba(34, 197, 94, 0.6), var(--shadow-lg);
  }
}

/* Responsive CTA override */
@media (max-width: 640px) {
  .floating-cta-card {
    top: 75px !important;
    right: 16px !important;
    left: auto !important;
    bottom: auto !important;
    width: 280px !important;
    padding: 12px 14px;
  }
  
  .floating-cta-title {
    font-size: 1.1rem;
  }
  
  .floating-cta-subtitle {
    font-size: 0.76rem;
  }
  
  @keyframes ctaSlideInBounce {
    0% {
      transform: translate3d(calc(-100vw + 16px), 150px, 0) scale(0.8);
      opacity: 0;
    }
    70% {
      transform: translate3d(15px, -8px, 0) scale(1.04);
      opacity: 1;
    }
    100% {
      transform: translate3d(0, 0, 0) scale(1);
      opacity: 1;
    }
  }
}

/* ==========================================================================
   2. LANDING PAGE HERO & STATISTICS
   ========================================================================== */
.hiring-hero {
  padding-top: 150px;
  padding-bottom: 60px;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.hiring-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--green-soft);
  border: 1px solid rgba(16, 185, 129, 0.2);
  color: var(--green-primary);
  padding: 6px 16px;
  border-radius: var(--border-radius-pill);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 20px;
}

.hiring-hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.15;
  max-width: 900px;
  margin: 0 auto 20px;
}

.hiring-hero h1 span {
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hiring-hero-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 760px;
  margin: 0 auto 40px;
}

/* ==========================================================================
   2b. HOW IT WORKS — three-step cards
   ========================================================================== */

.hiw-header {
  margin: 0 auto 24px;
  max-width: 860px;
  text-align: center;
}

.hiw-title {
  font-size: clamp(1.15rem, 2.8vw, 1.45rem);
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 7px;
  letter-spacing: -0.015em;
}

.hiw-subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ── Three-column grid ───────────────────────────────────────────────────── */
.hiw-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  max-width: 860px;
  margin: 0 auto;
  position: relative;
}

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

/* ── Individual card ─────────────────────────────────────────────────────── */
.hiw-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 28px 24px 26px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  text-align: left;
  position: relative;
  overflow: hidden;
  transition: transform 0.26s ease,
              box-shadow 0.26s ease,
              border-color 0.26s ease;
  cursor: default;
}

/* Top accent line that reveals on hover */
.hiw-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #10B981, #059669);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
  border-radius: 16px 16px 0 0;
}

.hiw-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.09);
  border-color: rgba(16, 185, 129, 0.28);
}

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

/* ── Icon circle ─────────────────────────────────────────────────────────── */
.hiw-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-bottom: 2px;
  transition: transform 0.26s ease;
}

.hiw-card:hover .hiw-icon-wrap {
  transform: scale(1.08);
}

.hiw-icon-wrap--green  { background: rgba(16, 185, 129, 0.10); }
.hiw-icon-wrap--blue   { background: rgba(59,  130, 246, 0.10); }

/* ── Map marker dot — Step 2 (matches UK map city dots exactly) ──────────── */
.hiring-dot {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 3px solid #EF4444;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-bottom: 2px;
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.12);
  transition: transform 0.26s ease, box-shadow 0.26s ease;
}

.hiring-dot::after {
  content: '';
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #EF4444;
}

body.theme-dark .hiring-dot {
  background: #1e293b;
}

.hiw-card:hover .hiring-dot {
  transform: scale(1.08);
  box-shadow: 0 0 0 6px rgba(239, 68, 68, 0.10);
}

/* ── Step pill ───────────────────────────────────────────────────────────── */
.hiw-step-label {
  display: inline-flex;
  align-items: center;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.18);
  color: var(--green-primary, #10B981);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 20px;
}

/* Red variant for Step 2 */
.hiw-step-label--orange {
  background: rgba(239, 68, 68, 0.10);
  border-color: rgba(239, 68, 68, 0.22);
  color: #EF4444;
}

/* ── CTA button on Step 2 ────────────────────────────────────────────────── */
.hiw-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 4px;
  padding: 10px 18px;
  background: #EF4444;
  color: #ffffff;
  border-radius: 10px;
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.01em;
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.30);
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  align-self: flex-start;
}

.hiw-cta-btn:hover {
  background: #DC2626;
  transform: translateY(-2px);
  box-shadow: 0 7px 20px rgba(239, 68, 68, 0.40);
}

.hiw-cta-btn:active {
  transform: scale(0.97);
}

/* Card with CTA gets a subtle red border accent */
.hiw-card--cta {
  border-color: rgba(239, 68, 68, 0.18);
}

.hiw-card--cta::before {
  background: linear-gradient(90deg, #EF4444, #DC2626);
}

.hiw-card--cta:hover {
  border-color: rgba(239, 68, 68, 0.35);
  box-shadow: 0 16px 32px rgba(239, 68, 68, 0.08);
}

/* ── Text ────────────────────────────────────────────────────────────────── */
.hiw-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.25;
  margin: 0;
}

/* Step 2 heading uses red accent */
.hiw-card--cta .hiw-card-title {
  color: #EF4444;
}

.hiw-card-desc {
  font-size: 0.835rem;
  color: var(--text-muted);
  line-height: 1.55;
  font-weight: 500;
  margin: 0;
}

/* ── Connector arrow between cards (desktop only) ────────────────────────── */
.hiw-connector {
  display: none;
}

@media (min-width: 640px) {
  .hiw-connector {
    display: block;
    position: absolute;
    right: -14px;
    top: 50px;
    width: 14px;
    height: 2px;
    background: var(--border-color);
    z-index: 1;
  }
  .hiw-connector::after {
    content: '';
    position: absolute;
    right: -4px;
    top: -3px;
    width: 0;
    height: 0;
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
    border-left: 5px solid var(--border-color);
  }
  /* Last card has no connector */
  .hiw-card:last-child .hiw-connector { display: none; }
}

/* ── Mobile tightening ───────────────────────────────────────────────────── */
@media (max-width: 480px) {
  .hiw-card {
    padding: 22px 18px 20px;
    border-radius: 14px;
    gap: 8px;
  }
  .hiw-icon-wrap {
    width: 42px;
    height: 42px;
    border-radius: 12px;
  }
  .hiw-card-title  { font-size: 0.95rem; }
  .hiw-card-desc   { font-size: 0.8rem; }
}



/* ==========================================================================
   3. INFORMATIONAL ZERO-HOUR SECTION
   ========================================================================== */
.info-section {
  padding: 60px 0;
  background: var(--bg-card);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  position: relative;
}

.info-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: flex-start;
}

@media (min-width: 992px) {
  .info-grid {
    grid-template-columns: 1.2fr 0.8fr;
  }
}

.info-content h2 {
  font-size: 1.8rem;
  margin-bottom: 18px;
  color: var(--text-dark);
}

.info-text {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 28px;
}

.info-lists-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 576px) {
  .info-lists-container {
    grid-template-columns: 1fr 1fr;
  }
}

.info-list-box h3 {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 12px;
  font-weight: 700;
}

.info-bullet-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.info-bullet-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-dark);
  font-weight: 500;
}

.info-bullet-icon {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.disclaimer-box {
  background: var(--bg-main);
  border-left: 4px solid var(--green-primary);
  border-radius: 4px;
  padding: 20px;
  display: flex;
  gap: 14px;
}

.disclaimer-icon {
  color: var(--green-primary);
  flex-shrink: 0;
  margin-top: 2px;
}

.disclaimer-text {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.disclaimer-text strong {
  color: var(--text-dark);
}

/* ==========================================================================
   4. BROWSE CITIES DIRECTORY
   ========================================================================== */
.directory-section {
  padding: 60px 0;
}

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 36px;
}

.section-header h2 {
  font-size: 1.8rem;
  margin-bottom: 12px;
}

.section-header p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Search bar styling */
.city-search-wrapper {
  max-width: 500px;
  margin: 0 auto 40px;
  position: relative;
  box-shadow: var(--shadow-sm);
  border-radius: 12px;
}

.city-search-input {
  width: 100%;
  height: 52px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 0 20px 0 48px;
  color: var(--text-dark);
  font-size: 0.95rem;
  font-weight: 500;
  transition: all var(--transition-fast);
}

.city-search-input:focus {
  border-color: var(--green-primary);
  box-shadow: 0 0 0 4px var(--green-glow);
}

.city-search-icon {
  position: absolute;
  top: 50%;
  left: 18px;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

/* Region grouping container */
.region-section {
  margin-bottom: 48px;
}

.region-title-btn {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 20px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border-color);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color var(--transition-fast);
}

.region-title-btn:hover {
  color: var(--green-primary);
}

.region-chevron {
  width: 18px;
  height: 18px;
  color: var(--text-muted);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), color var(--transition-fast);
}

.region-title-btn:hover .region-chevron {
  color: var(--green-primary);
}

.region-section.collapsed .region-chevron {
  transform: rotate(-90deg);
}

.region-section.collapsed .city-cards-grid {
  max-height: 0px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Staggered City Card Entry Animations */
@keyframes cardSlideUpFade {
  0% {
    opacity: 0;
    transform: translate3d(0, 15px, 0);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

.city-card.animate-card {
  opacity: 0;
  animation: cardSlideUpFade 0.45s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* --- OUTER container: regions must stack vertically, never in a grid row ---
   The HTML gives #city-cards-container the class city-cards-grid by mistake;
   this rule ensures the outer wrapper is always a plain vertical flex column. */
#city-cards-container.city-cards-grid {
  display: flex !important;
  flex-direction: column !important;
  grid-template-columns: unset !important;
  gap: 0 !important;
  max-height: none !important;
  overflow: visible !important;
}

/* --- INNER City Cards Grid (lives inside each .region-section) --- */
.city-cards-grid {
  display: grid;
  /* Mobile-first: 2 columns on phones so cards are compact and browsable */
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  max-height: 3500px;
  opacity: 1;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.35s ease;
}

@media (min-width: 576px) {
  .city-cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
}

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

@media (min-width: 1024px) {
  .city-cards-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
  }
}

/* --- City Card --- */
.city-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  /* Always show the green top accent bar — makes cards feel alive on mobile */
  border-top: 3px solid transparent;
  padding: 16px 14px;
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  gap: 8px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  /* Active press feel on touch */
  -webkit-tap-highlight-color: transparent;
}

/* Green top accent — always visible, not just on hover */
.city-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #10B981 0%, #14B8A6 100%);
  opacity: 1; /* Always visible */
  transition: none;
}

/* Desktop hover lift — suppressed on touch */
@media (hover: hover) {
  .city-card:hover {
    transform: translateY(-3px);
    border-color: var(--green-primary);
    box-shadow: 0 10px 20px rgba(16, 185, 129, 0.08), var(--shadow-md);
  }

  .city-card:hover .city-card-btn {
    background: var(--green-soft);
    color: var(--green-primary);
  }
}

/* Touch: tap highlight instead of hover lift */
@media (hover: none) {
  .city-card:active {
    background: rgba(16, 185, 129, 0.04);
    border-color: var(--green-primary);
    transform: scale(0.98);
  }
}

/* --- City Card Inner Elements --- */
.city-card-name {
  font-family: 'Plus Jakarta Sans', sans-serif;
  /* Scale down on 2-col mobile so long city names fit */
  font-size: clamp(0.85rem, 3vw, 1.1rem);
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.25;
  word-break: break-word;   /* prevent long names like "Gloucester & Cheltenham" cutting off */
  hyphens: auto;
}

.city-card-count {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
  line-height: 1.3;
}

.city-card-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--green-soft);       /* Always green-tinted — not grey */
  color: var(--green-primary);          /* Always green text */
  font-weight: 700;
  font-size: 0.75rem;
  padding: 7px 10px;
  border-radius: 6px;
  margin-top: auto;
  transition: all var(--transition-fast);
  border: 1px solid rgba(16, 185, 129, 0.15);
}

.city-card-btn svg {
  flex-shrink: 0;
  transition: transform var(--transition-fast);
}

@media (hover: hover) {
  .city-card:hover .city-card-btn svg {
    transform: translateX(3px);
  }
}

/* --- Mobile-specific card tweaks ≤ 480px --- */
@media (max-width: 480px) {
  .city-cards-grid {
    gap: 10px;
  }

  .city-card {
    padding: 13px 11px;
    gap: 7px;
    border-radius: 12px;
  }

  .city-card-name {
    font-size: 0.82rem;
  }

  .city-card-count {
    font-size: 0.68rem;
  }

  .city-card-btn {
    font-size: 0.68rem;
    padding: 6px 8px;
  }
}

/* --- Region title spacing on mobile --- */
@media (max-width: 640px) {
  .region-section {
    margin-bottom: 32px;
  }

  .region-title-btn {
    font-size: 0.95rem;
    margin-bottom: 14px;
    padding-bottom: 6px;
  }

  .directory-section {
    padding: 40px 0 60px;
  }

  .section-header {
    margin-bottom: 24px;
  }

  .section-header h2 {
    font-size: 1.45rem;
  }

  .city-search-wrapper {
    margin-bottom: 28px;
  }
}

/* Empty state for search */
.search-empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px;
  background: var(--bg-card);
  border: 1px dashed var(--border-color);
  border-radius: var(--border-radius-md);
}

.search-empty-state h3 {
  font-size: 1.1rem;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.search-empty-state p {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ==========================================================================
   5. AGENCY LISTINGS CONTAINER & CARDS
   ========================================================================== */
.listings-section {
  padding: 40px 0 80px;
  background: var(--bg-main);
  border-top: 1px solid var(--border-color);
  display: none; /* Shown dynamically via script */
  scroll-margin-top: 90px;
}

.listings-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
}

.listings-title-box {
  display: flex;
  flex-direction: column;
}

.listings-city-name {
  font-size: 1.8rem;
  color: var(--text-dark);
}

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

.btn-back-to-cities {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-dark);
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.btn-back-to-cities:hover {
  border-color: var(--green-primary);
  color: var(--green-primary);
}

/* Hiring Cards Grid */
.hiring-cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 992px) {
  .hiring-cards-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.hiring-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  padding: 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: all var(--transition-normal);
}

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

.hiring-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.hiring-card-identity {
  display: flex;
  gap: 14px;
  align-items: center;
}

.hiring-card-avatar {
  width: 52px;
  height: 52px;
  background: var(--green-soft);
  color: var(--green-primary);
  border-radius: 12px;
  font-size: 1.25rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid rgba(16, 185, 129, 0.15);
}

.hiring-card-title-box {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hiring-card-name {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-dark);
}

.hiring-card-sector {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hiring-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(16, 185, 129, 0.12);
  color: #047857;
  padding: 5px 12px;
  border-radius: var(--border-radius-pill);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  flex-shrink: 0;
  box-shadow: 0 2px 4px rgba(16, 185, 129, 0.05);
}

body.theme-dark .hiring-status-badge {
  color: #34d399;
}

.hiring-pulse-dot {
  width: 6px;
  height: 6px;
  background-color: var(--green-primary);
  border-radius: 50%;
  animation: badgePulse 2s infinite;
}

@keyframes badgePulse {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 5px rgba(16, 185, 129, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

.hiring-card-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.hiring-card-job-types {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: 12px 0;
}

.hiring-card-job-title {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 700;
  text-transform: uppercase;
  width: 100%;
  margin-bottom: 4px;
}

.job-pill {
  background: var(--bg-main);
  border: 1px solid var(--border-color);
  color: var(--text-dark);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 600;
}

.hiring-card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  gap: 12px;
}

.btn-card-apply {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  transition: all var(--transition-normal);
  flex: 1;
}

.btn-card-apply:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  box-shadow: 0 6px 15px -3px rgba(16, 185, 129, 0.4);
}

.hiring-card-phone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-muted);
  transition: all var(--transition-fast);
}

.hiring-card-phone:hover {
  border-color: var(--green-primary);
  color: var(--green-primary);
  background: var(--green-soft);
}

/* Empty listings state */
.listings-empty-state {
  text-align: center;
  padding: 50px;
  background: var(--bg-card);
  border-radius: var(--border-radius-md);
  border: 1px solid var(--border-color);
}

.listings-empty-state h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
}

/* ==========================================================================
   6. CANDIDATE REGISTRATION FORM PAGE
   ========================================================================== */
.form-hero {
  padding-top: 140px;
  padding-bottom: 40px;
  text-align: center;
}

.form-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin-bottom: 10px;
}

.form-hero p {
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
  font-size: 0.95rem;
}

.form-container-section {
  padding-bottom: 80px;
}

.form-layout-box {
  max-width: 760px;
  margin: 0 auto;
}

.registration-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-lg);
}

@media (max-width: 576px) {
  .registration-card {
    padding: 20px;
  }
}

.form-section-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 20px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-color);
}

.form-fields-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-bottom: 30px;
}

@media (min-width: 576px) {
  .form-fields-grid {
    grid-template-columns: 1fr 1fr;
  }
  .grid-full-width {
    grid-column: 1 / -1;
  }
}

/* Input group styling */
.form-input-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
}

.form-input-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dark);
}

.form-input-group input[type="text"],
.form-input-group input[type="email"],
.form-input-group input[type="tel"],
.form-input-group select {
  height: 48px;
  background: var(--bg-main);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 0 16px;
  color: var(--text-dark);
  font-size: 0.95rem;
  font-weight: 500;
  transition: all var(--transition-fast);
  width: 100%;
}

.form-input-group select {
  appearance: none;
  cursor: pointer;
}

.form-input-group select:invalid {
  color: var(--text-muted);
}

.form-select-arrow {
  position: absolute;
  right: 16px;
  bottom: 16px;
  color: var(--text-muted);
  pointer-events: none;
}

.form-input-group input:focus,
.form-input-group select:focus {
  border-color: var(--green-primary);
  background: var(--bg-card);
  box-shadow: 0 0 0 4px var(--green-glow);
}

.form-input-group input.has-error,
.form-input-group select.has-error {
  border-color: #EF4444 !important;
  background-color: rgba(239, 68, 68, 0.03);
}

.form-error-msg {
  font-size: 0.76rem;
  color: #EF4444;
  font-weight: 500;
  display: none;
}

/* Option Groups & Radios */
.form-option-row {
  display: flex;
  gap: 16px;
  margin-top: 4px;
}

.form-radio-card {
  flex: 1;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  background: var(--bg-main);
  font-size: 0.88rem;
  font-weight: 600;
  transition: all var(--transition-fast);
  user-select: none;
}

.form-radio-card input {
  display: none;
}

.form-radio-card:hover {
  border-color: var(--green-primary);
}

.form-radio-card.active-radio {
  background: var(--green-soft);
  border-color: var(--green-primary);
  color: var(--green-primary);
}

/* File upload styling */
.cv-drop-zone {
  border: 2px dashed var(--border-color);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  cursor: pointer;
  background: var(--bg-main);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.cv-drop-zone:hover,
.cv-drop-zone.drag-active {
  border-color: var(--green-primary);
  background-color: var(--green-soft);
}

.cv-icon {
  color: var(--text-muted);
}

.cv-drop-zone:hover .cv-icon {
  color: var(--green-primary);
}

.cv-text {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.cv-text strong {
  color: var(--green-primary);
}

.cv-file-info {
  display: none;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px solid var(--border-color);
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: 4px;
}

.cv-file-remove {
  background: none;
  border: none;
  color: #EF4444;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 700;
}

/* Consent styling */
.form-consent-box {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 10px;
}

.form-consent-box input[type="checkbox"] {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 1.5px solid var(--border-color);
  accent-color: var(--green-primary);
  margin-top: 2px;
  cursor: pointer;
}

.form-consent-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.4;
  cursor: pointer;
  user-select: none;
}

/* Submit Button */
.btn-submit-application {
  width: 100%;
  height: 52px;
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  color: #ffffff;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 8px 20px -4px rgba(16, 185, 129, 0.4);
  transition: all var(--transition-normal);
}

.btn-submit-application:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  box-shadow: 0 10px 24px -2px rgba(16, 185, 129, 0.5);
  transform: translateY(-1px);
}

.btn-submit-application:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

/* Form spinner */
.form-spinner {
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #ffffff;
  animation: formSpin 1s ease-in-out infinite;
  display: none;
}

@keyframes formSpin {
  to { transform: rotate(360deg); }
}

/* Success Card Styling */
.form-success-card {
  display: none; /* Shown on success */
  text-align: center;
  padding: 40px;
}

.success-check-wrapper {
  width: 64px;
  height: 64px;
  background: var(--green-soft);
  color: var(--green-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
}

.form-success-card h2 {
  font-size: 1.6rem;
  margin-bottom: 12px;
}

.form-success-card p {
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto 30px;
  font-size: 0.95rem;
}

.success-actions-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 320px;
  margin: 0 auto;
}

@media (min-width: 576px) {
  .success-actions-row {
    flex-direction: row;
    max-width: 100%;
    justify-content: center;
  }
}

.btn-success-action {
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.85rem;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
  transition: all var(--transition-normal);
}

.btn-success-action:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
}

.btn-success-secondary {
  background: var(--bg-main);
  border: 1px solid var(--border-color);
  color: var(--text-dark);
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.85rem;
  transition: all var(--transition-fast);
}

.btn-success-secondary:hover {
  background: var(--bg-card);
  border-color: var(--text-dark);
}

/* Page Transition views */
.page-view {
  opacity: 0;
  transform: translate3d(0, 15px, 0);
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.page-view.view-active {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

/* Form Progressive Section Reveal animations */
.registration-card form > * {
  opacity: 0;
  transform: translate3d(0, 10px, 0);
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.registration-card.revealed form > * {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

/* Button & Hover scales */
.btn-submit-application:hover,
.btn-back-to-cities:hover,
.btn-success-action:hover,
.btn-success-secondary:hover,
.city-card-btn:hover {
  transform: scale(1.02) !important;
}

/* Ensure smooth transition parameters for color/transforms */
.btn-submit-application,
.btn-back-to-cities,
.btn-success-action,
.btn-success-secondary,
.city-card-btn {
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

/* Accessibility settings for prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  *, ::before, ::after {
    animation-delay: -1ms !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    background-attachment: initial !important;
    scroll-behavior: auto !important;
    transition-duration: 0s !important;
    transition-delay: 0s !important;
    transform: none !important;
  }
}

/* ==========================================================================
   UK INTERACTIVE MAP SECTION
   ========================================================================== */

/* ── Section wrapper ─────────────────────────────────────────────────────── */
.uk-map-section {
  padding: 64px 0;
}

/* ── Search bar ──────────────────────────────────────────────────────────── */
.uk-map-search-wrap {
  position: relative;
  max-width: 480px;
  margin: 0 auto 32px;
}
.uk-map-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}
.uk-map-search-input {
  width: 100%;
  box-sizing: border-box;
  height: 50px;
  padding: 0 16px 0 46px;
  border: 1.5px solid var(--border-color);
  border-radius: 14px;
  background: var(--bg-card);
  color: var(--text-dark);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.uk-map-search-input::placeholder { color: var(--text-muted); }
.uk-map-search-input:focus {
  border-color: var(--green-primary);
  box-shadow: 0 0 0 4px var(--green-glow);
}

/* Pulse highlight triggered by HIW Step 2 button */
@keyframes hiwSearchPulse {
  0%   { box-shadow: 0 0 0 0   rgba(249, 115, 22, 0.5); border-color: #F97316; }
  50%  { box-shadow: 0 0 0 6px rgba(249, 115, 22, 0.15); border-color: #F97316; }
  100% { box-shadow: 0 0 0 0   rgba(249, 115, 22, 0);   border-color: var(--border-color); }
}
.hiw-pulse-input {
  animation: hiwSearchPulse 1.4s ease forwards;
}

/* ── Two-column layout ───────────────────────────────────────────────────── */
.uk-map-layout {
  display: grid;
  grid-template-columns: 1fr 310px;
  gap: 24px;
  align-items: start;
}
@media (max-width: 900px) {
  .uk-map-layout { grid-template-columns: 1fr; }
  .uk-map-panel  { order: 2; }
  .uk-map-left   { order: 1; }
}

/* ── Map left column ─────────────────────────────────────────────────────── */
.uk-map-left {
  position: relative;
  border-radius: 20px;
  overflow: visible;
}
#uk-svg {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 20px;
  background: var(--bg-card);
  border: 1.5px solid var(--border-color);
  padding: 16px;
  box-sizing: border-box;
  box-shadow: 0 2px 16px rgba(0,0,0,0.04);
  /* Ensure SVG has a sensible min height on mobile so it never collapses */
  min-height: 320px;
}

/* Land fill — slightly richer green tint */
.uk-land path {
  fill: rgba(16, 185, 129, 0.10);
  stroke: rgba(16, 185, 129, 0.35);
  stroke-width: 0.9;
  transition: fill 0.3s;
}
body.theme-dark .uk-land path {
  fill: rgba(16, 185, 129, 0.15);
  stroke: rgba(16, 185, 129, 0.45);
}

/* Region labels */
.uk-region-label {
  font-size: 9.5px;
  font-family: inherit;
  fill: #94a3b8;
  letter-spacing: 0.09em;
  pointer-events: none;
  user-select: none;
}
.uk-region-label-sm { font-size: 7.5px; }

/* ── City dots ───────────────────────────────────────────────────────────── */
.uk-city-dot {
  cursor: pointer;
  transform-box: fill-box;
  transform-origin: center;
  transition: transform 0.25s ease;
  outline: none;
}
.uk-city-dot:focus-visible .uk-dot-fill {
  stroke: #3b82f6;
  stroke-width: 3;
}
.uk-dot-ring {
  fill: none;
  stroke: var(--green-primary);
  stroke-width: 1.5;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.uk-dot-fill {
  fill: #ffffff;
  stroke: var(--green-primary);
  stroke-width: 2;
  transition: fill 0.25s ease;
}
body.theme-dark .uk-dot-fill { fill: #1e293b; }
.uk-city-dot:hover               { transform: scale(1.2); }
.uk-city-dot.uk-dot-selected     { transform: scale(1.45); }
.uk-city-dot.uk-dot-selected .uk-dot-fill  { fill: var(--green-primary); }
.uk-city-dot.uk-dot-selected .uk-dot-ring  { opacity: 1; }
.uk-city-dot.uk-dot-highlighted .uk-dot-fill { fill: var(--green-primary); }
.uk-city-dot.uk-dot-dimmed       { opacity: 0.18; }

/* ── Tooltip ─────────────────────────────────────────────────────────────── */
.uk-map-tooltip {
  position: absolute;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 8px 13px;
  pointer-events: none;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.15s ease, transform 0.15s ease;
  z-index: 20;
  white-space: nowrap;
  box-shadow: 0 6px 20px rgba(0,0,0,0.10);
}
.uk-map-tooltip.uk-tooltip-visible { opacity: 1; transform: translateY(0); }
.uk-tt-name  { font-size: 13px; font-weight: 700; color: var(--text-dark); }
.uk-tt-count { font-size: 11.5px; color: var(--green-primary); margin-top: 2px; }

/* ── Right panel ─────────────────────────────────────────────────────────── */
.uk-map-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: sticky;
  top: 90px;
}

/* Info card */
.uk-info-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border-color);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(0,0,0,0.04);
}
.uk-info-inner {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.28s ease, transform 0.28s ease;
}
.uk-info-inner.uk-panel-anim-out { opacity: 0; transform: translateY(10px); }

/* ── Empty state — more visual interest ──────────────────────────────────── */
.uk-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  text-align: center;
  background: linear-gradient(160deg, rgba(16,185,129,0.04) 0%, transparent 60%);
}
.uk-empty-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(16,185,129,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  color: var(--green-primary);
}
.uk-empty-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 6px;
}
.uk-empty-text {
  font-size: 0.825rem;
  color: var(--text-muted);
  max-width: 180px;
  line-height: 1.55;
}
/* Hint chips below empty state */
.uk-empty-hints {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  margin-top: 18px;
}
.uk-empty-hint-chip {
  background: var(--green-soft);
  color: var(--green-primary);
  border: 1px solid rgba(16,185,129,0.2);
  border-radius: 20px;
  padding: 5px 12px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s, transform 0.15s;
}
.uk-empty-hint-chip:hover {
  background: rgba(16,185,129,0.18);
  transform: translateY(-1px);
}

/* ── City detail panel ───────────────────────────────────────────────────── */
.uk-city-detail-header {
  background: linear-gradient(135deg, rgba(16,185,129,0.08) 0%, rgba(16,185,129,0.03) 100%);
  border-bottom: 1px solid var(--border-color);
  padding: 20px 22px 18px;
}
.uk-panel-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--green-primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.uk-panel-label::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green-primary);
  animation: ukPulseDot 2s ease-in-out infinite;
}
@keyframes ukPulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.7); }
}
.uk-panel-city {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1.15;
  margin-bottom: 8px;
}
.uk-panel-stats-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.uk-panel-count-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--green-soft);
  border: 1px solid rgba(16,185,129,0.2);
  color: var(--green-primary);
  border-radius: 20px;
  padding: 4px 11px;
  font-size: 0.8rem;
  font-weight: 700;
}
.uk-panel-count-badge svg { flex-shrink: 0; }
.uk-panel-active-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(245,158,11,0.08);
  border: 1px solid rgba(245,158,11,0.2);
  color: #b45309;
  border-radius: 20px;
  padding: 4px 11px;
  font-size: 0.8rem;
  font-weight: 600;
}
body.theme-dark .uk-panel-active-badge { color: #fbbf24; }

/* Body of the detail card */
.uk-city-detail-body {
  padding: 18px 22px 22px;
}
.uk-detail-section-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}
.uk-job-types {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  margin-bottom: 20px;
}
.uk-job-row {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--text-dark);
  background: var(--bg-main, var(--bg-card));
  border: 1px solid var(--border-color);
  border-radius: 9px;
  padding: 8px 10px;
}
.uk-job-row svg { color: var(--green-primary); flex-shrink: 0; }

/* CTA button */
.uk-browse-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 50px;
  background: var(--green-primary);
  color: #ffffff;
  border: none;
  border-radius: 13px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  letter-spacing: 0.01em;
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 16px rgba(16,185,129,0.30), 0 1px 4px rgba(16,185,129,0.15);
}
.uk-browse-btn:hover {
  background: var(--green-hover);
  transform: translateY(-1px);
  box-shadow: 0 7px 22px rgba(16,185,129,0.40);
}
.uk-browse-btn:active { transform: scale(0.98); }

/* ── City list panel ─────────────────────────────────────────────────────── */
.uk-city-list-wrap {
  background: var(--bg-card);
  border: 1.5px solid var(--border-color);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(0,0,0,0.04);
}
.uk-city-list-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 10px;
  border-bottom: 1px solid var(--border-color);
}
.uk-city-list-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.uk-city-list-count {
  font-size: 11px;
  font-weight: 600;
  color: var(--green-primary);
  background: var(--green-soft);
  border-radius: 10px;
  padding: 2px 8px;
}
.uk-city-list-scroll {
  max-height: 240px;
  overflow-y: auto;
  padding: 8px 8px;
  scrollbar-width: thin;
  scrollbar-color: var(--border-color) transparent;
}
.uk-list-region {
  font-size: 9.5px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 8px 8px 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.uk-list-region::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-color);
}
.uk-city-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  margin-bottom: 4px;
}
.uk-list-pill {
  background: none;
  border: none;
  padding: 8px 10px;
  border-radius: 9px;
  font-size: 0.845rem;
  color: var(--text-dark);
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.15s, color 0.15s;
}
.uk-list-pill:hover {
  background: var(--green-soft);
  color: var(--green-primary);
}
.uk-list-pill.uk-pill-active {
  background: var(--green-soft);
  color: var(--green-primary);
  font-weight: 700;
}
.uk-list-pill.uk-pill-active::after {
  content: '→';
  font-size: 12px;
  opacity: 0.7;
}
.uk-list-pill.uk-pill-hidden { display: none; }

/* ── Mobile overrides ────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .uk-map-section { padding: 48px 0; }
  .uk-map-search-wrap { max-width: 100%; }
  .uk-map-panel { position: static; }
  /* On mobile, show map + panel side by side if enough room, else stack */
}
@media (max-width: 640px) {
  #uk-svg { min-height: 380px; padding: 10px; }
  .uk-job-types { grid-template-columns: 1fr; }
  .uk-city-list-scroll { max-height: 180px; }
  .uk-panel-city { font-size: 1.4rem; }
  .uk-city-detail-header { padding: 16px 18px 14px; }
  .uk-city-detail-body { padding: 14px 18px 18px; }
}

/* ==========================================================================
   HIRING CAMPAIGN SIDEBAR — Red marker cards & inline application form
   ========================================================================== */

/* ── Layout: single-column panel, no city list below ────────────────────── */
.uk-map-panel {
  display: flex;
  flex-direction: column;
  gap: 0;                /* card fills the full panel */
}

/* ── Red dot styles ──────────────────────────────────────────────────────── */

/* Hiring city: red fill + red ring */
.uk-city-dot.uk-dot-hiring .uk-dot-fill {
  fill: #EF4444;
  stroke: #EF4444;
}
.uk-city-dot.uk-dot-hiring .uk-dot-ring {
  stroke: #EF4444;
}

/* Selected hiring city */
.uk-city-dot.uk-dot-hiring.uk-dot-selected .uk-dot-fill {
  fill: #DC2626;
  stroke: #DC2626;
}
.uk-city-dot.uk-dot-hiring.uk-dot-selected .uk-dot-ring {
  opacity: 1;
  stroke: #EF4444;
}

/* Cursor: pointer for hiring cities, default for informational */
.uk-city-dot.uk-dot-hiring {
  cursor: pointer;
}
.uk-city-dot:not(.uk-dot-hiring) {
  cursor: default;
}

/* Hover: only scale on hiring dots */
.uk-city-dot:not(.uk-dot-hiring):hover {
  transform: none;
}

/* ── Empty state ─────────────────────────────────────────────────────────── */
.hc-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 24px;
  background: var(--bg-card);
  border: 1.5px solid var(--border-color);
  border-radius: 24px;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.04);
  min-height: 200px;
}

.hc-empty-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(239, 68, 68, 0.08);
  color: #EF4444;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
}

.hc-empty-text {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.5;
  max-width: 220px;
  margin: 0 auto 8px;
}

.hc-empty-red {
  color: #EF4444;
  font-weight: 700;
}

.hc-empty-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin: 0;
}

/* ── Hiring campaign card ────────────────────────────────────────────────── */
.hc-card {
  background: rgba(239, 68, 68, 0.05);
  border: 1px solid rgba(239, 68, 68, 0.20);
  border-radius: 24px;
  /* No overflow:hidden — the form panel inside must be able to expand */
  box-shadow: 0 4px 20px rgba(239, 68, 68, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
}

@keyframes hcCardIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes hcCardOut {
  from { opacity: 1; transform: translateY(0); }
  to   { opacity: 0; transform: translateY(-8px); }
}
.hc-card-anim-in  { animation: hcCardIn  0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.hc-card-anim-out { animation: hcCardOut 0.2s  ease forwards; }

/* Card header */
.hc-card-header {
  padding: 22px 22px 16px;
  border-bottom: 1px solid rgba(239, 68, 68, 0.14);
}

/* HIRING NOW badge */
.hc-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(239, 68, 68, 0.10);
  border: 1px solid rgba(239, 68, 68, 0.22);
  color: #EF4444;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 4px 11px;
  border-radius: 20px;
  margin-bottom: 12px;
}

.hc-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #EF4444;
  flex-shrink: 0;
  animation: hcDotPulse 1.8s ease-in-out infinite;
}

@keyframes hcDotPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.55; transform: scale(0.72); }
}

.hc-city-name {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1.15;
  margin: 0 0 4px;
  letter-spacing: -0.02em;
}

.hc-card-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
  margin: 0;
}

/* ── Agency cards (max 3) ────────────────────────────────────────────────── */
.hc-agency-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px 20px;
}

.hc-agency-card {
  background: #ffffff;
  border: 1px solid rgba(239, 68, 68, 0.15);
  border-radius: 16px;
  padding: 18px;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  cursor: default;
}

body.theme-dark .hc-agency-card {
  background: var(--bg-card, #1e293b);
  border-color: rgba(239, 68, 68, 0.20);
}

.hc-agency-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.28);
}

.hc-agency-card-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.hc-agency-card-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.hc-agency-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hc-agency-category {
  font-size: 0.8rem;
  color: #64748B;
  font-weight: 500;
}

.hc-agency-tags {
  font-size: 0.75rem;
  color: #94a3b8;
  font-weight: 500;
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hc-agency-apply-btn {
  flex-shrink: 0;
  background: rgba(239, 68, 68, 0.08);
  color: #EF4444;
  border: none;
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 0.8rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  letter-spacing: 0.01em;
  transition: background 0.18s ease, color 0.18s ease, transform 0.15s ease;
  white-space: nowrap;
}

.hc-agency-apply-btn:hover {
  background: rgba(239, 68, 68, 0.15);
  transform: scale(1.04);
}

.hc-agency-apply-btn:active {
  transform: scale(0.97);
}

/* Selected agency card — highlighted when Apply was clicked */
.hc-agency-card--selected {
  border-color: rgba(239, 68, 68, 0.40);
  background: rgba(239, 68, 68, 0.04);
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.10);
}

body.theme-dark .hc-agency-card--selected {
  background: rgba(239, 68, 68, 0.08);
}

.hc-agency-card--selected .hc-agency-apply-btn {
  background: #EF4444;
  color: #ffffff;
}

.hc-agency-card--selected .hc-agency-apply-btn:hover {
  background: #DC2626;
}

/* ── Form panel — hidden until an agency Apply is clicked ────────────────── */
.hc-form-panel {
  overflow: hidden;        /* clips content while collapsed */
  max-height: 0;
  opacity: 0;
  transition: max-height 0.45s cubic-bezier(0.16, 1, 0.3, 1),
              opacity    0.30s ease;
  pointer-events: none;
  /* Ensure rounded corners from parent still clip correctly */
  border-radius: 0 0 24px 24px;
}

.hc-form-panel--open {
  max-height: 1200px;  /* generous ceiling — actual height is whatever the form needs */
  opacity: 1;
  pointer-events: auto;
}

/* ── Section divider ─────────────────────────────────────────────────────── */
.hc-section-divider {
  height: 1px;
  background: rgba(239, 68, 68, 0.12);
  margin: 0 20px;
}

/* ── "Applying to" context banner ────────────────────────────────────────── */
.hc-applying-banner {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px 22px 10px;
}

.hc-applying-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--text-muted);
}

.hc-applying-agency {
  font-size: 1.05rem;
  font-weight: 800;
  color: #EF4444;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.hc-applying-city {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ── Inline application form ─────────────────────────────────────────────── */
.hc-form-wrap {
  padding: 10px 22px 22px;
}

.hc-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hc-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hc-field-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
}

.hc-field input[type="text"],
.hc-field input[type="email"],
.hc-field input[type="tel"] {
  height: 42px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 0 13px;
  color: var(--text-dark);
  font-size: 0.875rem;
  font-weight: 500;
  font-family: inherit;
  width: 100%;
  box-sizing: border-box;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
  outline: none;
}

.hc-field input:focus {
  border-color: #EF4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12);
}

.hc-field input.hc-input-error {
  border-color: #EF4444 !important;
  background: rgba(239, 68, 68, 0.03);
}

/* Select wrapper */
.hc-select-wrap {
  position: relative;
}

.hc-select-wrap select {
  width: 100%;
  height: 42px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 0 36px 0 13px;
  color: var(--text-dark);
  font-size: 0.875rem;
  font-weight: 500;
  font-family: inherit;
  appearance: none;
  cursor: pointer;
  box-sizing: border-box;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
  outline: none;
}

.hc-select-wrap select:focus {
  border-color: #EF4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12);
}

.hc-select-wrap select.hc-input-error {
  border-color: #EF4444 !important;
}

.hc-select-arrow {
  position: absolute;
  right: 13px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.7rem;
  color: var(--text-muted);
  pointer-events: none;
}

/* CV upload zone */
.hc-upload-zone {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 42px;
  background: var(--bg-card);
  border: 1.5px dashed var(--border-color);
  border-radius: 10px;
  padding: 0 13px;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 0.825rem;
  font-weight: 500;
  font-family: inherit;
  transition: border-color 0.18s ease, background 0.18s ease;
  outline: none;
  box-sizing: border-box;
}

.hc-upload-zone:hover,
.hc-upload-zone.hc-upload-drag {
  border-color: #EF4444;
  background: rgba(239, 68, 68, 0.04);
  color: var(--text-dark);
}

.hc-upload-zone:focus-visible {
  border-color: #EF4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12);
}

.hc-upload-zone.hc-upload-error {
  border-color: #EF4444;
}

/* Error messages */
.hc-err {
  font-size: 0.72rem;
  color: #EF4444;
  font-weight: 500;
  display: none;
}

/* Submit button */
.hc-submit-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 46px;
  background: #EF4444;
  color: #ffffff;
  border: none;
  border-radius: 12px;
  font-size: 0.925rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  letter-spacing: 0.01em;
  margin-top: 4px;
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.30);
  transition: background 0.2s ease, transform 0.18s ease, box-shadow 0.2s ease;
}

.hc-submit-btn:hover {
  background: #DC2626;
  transform: translateY(-2px);
  box-shadow: 0 7px 20px rgba(239, 68, 68, 0.38);
}

.hc-submit-btn:active {
  transform: scale(0.97);
}

.hc-submit-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

/* Spinner inside submit button */
.hc-spinner {
  width: 16px;
  height: 16px;
  border: 2.5px solid rgba(255, 255, 255, 0.35);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: hcSpin 0.85s linear infinite;
  display: none;
  flex-shrink: 0;
}

@keyframes hcSpin {
  to { transform: rotate(360deg); }
}

/* Privacy note */
.hc-privacy-note {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-align: center;
  margin: 8px 0 0;
  line-height: 1.45;
}

/* ── Success state ────────────────────────────────────────────────────────── */
.hc-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 12px 8px 4px;
  gap: 10px;
}

.hc-success-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.10);
  color: var(--green-primary, #10B981);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hc-success-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-dark);
  margin: 0;
}

.hc-success-sub {
  font-size: 0.825rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
  max-width: 230px;
}

/* ── Dark mode adjustments ───────────────────────────────────────────────── */
body.theme-dark .hc-card {
  background: rgba(239, 68, 68, 0.07);
  border-color: rgba(239, 68, 68, 0.22);
}

body.theme-dark .hc-field input,
body.theme-dark .hc-select-wrap select,
body.theme-dark .hc-upload-zone {
  background: var(--bg-main, #0f172a);
}

body.theme-dark .hc-empty-state {
  background: var(--bg-card);
}

/* ── Mobile overrides ────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .hc-card-header     { padding: 18px 18px 14px; }
  .hc-agency-cards    { padding: 12px 16px; gap: 10px; }
  .hc-agency-card     { padding: 14px 16px; border-radius: 14px; }
  .hc-agency-name     { font-size: 1rem; }
  .hc-agency-apply-btn { padding: 7px 13px; font-size: 0.75rem; }
  .hc-section-divider  { margin: 0 16px; }
  .hc-applying-banner  { padding: 12px 16px 8px; }
  .hc-applying-agency  { font-size: 0.95rem; }
  .hc-form-wrap        { padding: 8px 16px 18px; }
  .hc-city-name    { font-size: 1.3rem; }

  .hc-empty-state {
    padding: 36px 20px;
    min-height: 160px;
  }
}

/* ── Suppress old city-list styles that are no longer in the DOM ─────────── */
.uk-city-list-wrap,
.uk-city-list-scroll,
.uk-city-list,
.uk-list-pill,
.uk-list-region,
.uk-empty-state,
.uk-empty-hints,
.uk-empty-hint-chip,
.uk-city-detail,
.uk-info-card,
.uk-info-inner {
  display: none !important;
}
